Yoko

All sides of Injection
It is currently 2025-12-20 03:43:11

All times are UTC+02:00




Post new topic  Reply to topic  [ 12 posts ] 
Author Message
 Post subject: UO.automenu
PostPosted: 2005-08-28 22:59:06 
Offline

Joined: 2005-08-28 17:12:55
Posts: 22
Code:
UO.automenu('Blacksmithing','Weapons') 
UO.automenu('Weapons','Swords & Blades')
UO.automenu('Swords & Blades','dagger')

Возможно ли избежать вывода строк о "successfull menu choice" и т.п.? Неохота этим вывод засорять =)


Top
   
 Post subject:
PostPosted: 2005-08-28 23:47:27 
Offline
User avatar

Joined: 2005-07-10 21:53:05
Posts: 457
пример с UO.AutoMenu

Code:
sub Tinker()
#      готовимся....
   UO.DeleteJournal()
   UO.CancelMenu()
   UO.AutoMenu('Tinkering','Keys')
   UO.AutoMenu('Keys','Iron key')
#      делаем....
   repeat
      if UO.Count(0x1BEF) and UO.Count(TinkerTools) then
         UO.DeleteJournal()
         UO.Usetype(TinkerTools)
         repeat
            wait(100)
         until UO.InJournal("You put|fail|You broke your tools")
      endif
   until UO.Dead()
end sub


Top
   
 Post subject:
PostPosted: 2005-08-28 23:51:06 
Offline

Joined: 2005-08-28 17:12:55
Posts: 22
А каким образом это относится к моему вопросу, можно узнать? =)


Top
   
 Post subject:
PostPosted: 2005-08-28 23:56:44 
Offline
User avatar

Joined: 2005-07-10 21:53:05
Posts: 457
UO.AutoMenu() в отличии от uo.waitmenu() нужно задать один раз….
Прочти скрипт и 2 комментария в нем


Top
   
 Post subject:
PostPosted: 2005-08-29 00:03:07 
Offline

Joined: 2005-08-28 17:12:55
Posts: 22
Я это знаю, меня интересует не использование этого в скрипте. Скрипт сам работает на ура. Просто помимо нужных мне сообщений он при выборе меню (автовыборе) каждый раз выводит сообщения типа
"Menu 0 blacksmithing --> 1 swords
Menu choice successfull"
И так для каждого выбора, то есть 6 строк лишнего текста на экране... Мне бы их как-нибудь убить.


Top
   
 Post subject:
PostPosted: 2005-08-29 00:12:59 
Offline
User avatar

Joined: 2005-07-10 21:53:05
Posts: 457
В примере что я привел эти строки появятся один раз…. Только при запуске скрипта.
Далее ключики делаются, а строчек про которые ты говоришь нет

Выбор нужно сделать один раз!!!!!!!!!!!!! Перед циклом.


Top
   
 Post subject:
PostPosted: 2005-08-29 00:26:31 
Offline

Joined: 2005-08-28 17:12:55
Posts: 22
Нет... в скрипте это написано 1 раз, но выбор он делает КАЖДЫЙ раз, и КАЖДЫЙ раз пишет об этом... Вот кусок моего скрипта, можешь убедиться, что он не сильно-то отличается по сути
Code:
Wait(500) 
    UO.automenu('Blacksmithing','Weapons')
    UO.automenu('Weapons','Swords & Blades')
    UO.automenu('Swords & Blades','dagger')
   repeat
    UO.usetype("0x1BEF")
    UO.DeleteJournal()
    while not UO.InJournal("You put the dagger") and not UO.InJournal("You fail") and not UO.InJournal("You have fail")
      Wait(100)
    wend
   until (UO.Count('0x1BEF',0) < 6)


Top
   
 Post subject:
PostPosted: 2005-08-29 00:38:03 
Offline
User avatar

Joined: 2005-07-10 21:53:05
Posts: 457
пробуй ,set quiet [0 или 1]
это отключение всех сообщений Injection


Top
   
 Post subject:
PostPosted: 2005-08-29 00:46:47 
Offline

Joined: 2005-08-28 17:12:55
Posts: 22
В том то и дело, что всех =) А мне бы только "системные", а то что я вывожу Uo.Print'ом оставить...

Зы, а хотя проклюнулась идейка... - как это квает в скрипте написать?
uo.say(',set quiet 1') или можно по-другому?


Top
   
 Post subject:
PostPosted: 2005-08-29 10:31:35 
Offline
User avatar

Joined: 2005-07-10 21:53:05
Posts: 457
Code:
UO.Set('quiet', '1')
---code---
UO.Set('quiet', '0')


Top
   
 Post subject:
PostPosted: 2005-08-29 10:41:35 
Offline

Joined: 2005-08-28 17:12:55
Posts: 22
Спасибо. Правда "Quiet mode off" в начале сообщения избежать похоже не удастся, но всё-таки уже не 6 строк лишних...


Top
   
 Post subject:
PostPosted: 2005-08-31 20:29:12 
Offline

Joined: 2005-08-30 02:23:50
Posts: 13
в main выруби verbose menu


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 12 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited