Yoko

All sides of Injection
It is currently 2025-11-03 18:55:58

All times are UTC+02:00




Post new topic  Reply to topic  [ 9 posts ] 
Author Message
PostPosted: 2008-04-10 22:15:11 
Offline

Joined: 2008-03-12 14:35:20
Posts: 38
Скрипт может работать как минуту, так и час , потом ругается на парсер.

Подскажите как делать не надо :-) инжа 505.18 Gumpfix
клиент 1.26.4b

[*]Flush Loging
[*]Lights
[*]Target XYZ fix


###################################
sub Tinker()

VAR Exit=0, LastTimer
UO.AutoMenu('Tinkering','Tools')
UO.AutoMenu('Tools','Empty Alchemist Bottle')

while Exit<>1
UO.DeleteJournal()
LastTimer=UO.Timer()
UO.AutoMenu('Tinkering','Tools','Empty Alchemist Bottle')
UO.UseType(0x1EBC)

while NOT UO.InJournal("You put") and NOT UO.InJournal("Tinkering failed")
wait(500)
wend
wait(1000)
wend
end sub

############################


Top
   
 Post subject:
PostPosted: 2008-04-10 22:19:04 
Offline
Expert!
User avatar

Joined: 2005-05-04 14:05:19
Posts: 2580
Location: Москва
UO.AutoMenu('Tinkering','Tools','Empty Alchemist Bottle')
как минимум из цикла убери...


Top
   
 Post subject:
PostPosted: 2008-04-10 22:50:03 
Offline

Joined: 2008-03-12 14:35:20
Posts: 38
Ты меня прям в тупик поставил, собственно этой строчкой у меня все и крафтится :-) Вопрос на что заменить.

uo.waitmenu ???




Может проблема закопана тут ?
var exit=0
while Exit<>1 - на сколько это корректно

......

wait(1000)
wend


Top
   
 Post subject:
PostPosted: 2008-04-10 23:21:37 
Offline
Expert!
User avatar

Joined: 2005-05-04 14:05:19
Posts: 2580
Location: Москва
плохо что в тупик поставил...


Top
   
 Post subject:
PostPosted: 2008-04-10 23:28:15 
Offline
Expert!
User avatar

Joined: 2005-05-04 14:05:19
Posts: 2580
Location: Москва
http://yoko.com.ua/help/help.php?lang=r ... m=automenu

эта команда не расчитана на 3 параметра...

то что тебе надо ты уже прописал в
UO.AutoMenu('Tinkering','Tools')
UO.AutoMenu('Tools','Empty Alchemist Bottle')
и больше ничего не нужно...

Code:
sub Tinker()

   UO.AutoMenu('Tinkering','Tools')
   UO.AutoMenu('Tools','Empty Alchemist Bottle')
   
   while 1
      UO.DeleteJournal()
      UO.UseType(0x1EBC)
      while NOT UO.InJournal("put|failed")
         wait(500)
      wend
      wait(1000)
   wend
   
end sub


Top
   
 Post subject:
PostPosted: 2008-04-10 23:31:42 
Offline

Joined: 2008-03-12 14:35:20
Posts: 38
Так цикл мне все равно понадобится, мне надо что бы это работало очень долго.


Top
   
 Post subject:
PostPosted: 2008-04-10 23:33:42 
Offline

Joined: 2008-03-12 14:35:20
Posts: 38
Грин ты гений !!!


Top
   
 Post subject:
PostPosted: 2008-04-11 11:00:10 
Offline
Expert!
User avatar

Joined: 2006-02-07 08:51:40
Posts: 1348
Location: г. Старый Оскол
altukhov wrote:
Так цикл мне все равно понадобится, мне надо что бы это работало очень долго.


Да ужжж. Читаем уроки, или хотя бы хелп. И сам станешь гением.


Top
   
 Post subject:
PostPosted: 2008-04-11 12:33:15 
Offline

Joined: 2008-03-12 14:35:20
Posts: 38
Да все намного прощще, надо было про uo.automenu прочитать подробней, неправильно понимал как использовать надо :-)


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 19 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:  
cron
Powered by phpBB® Forum Software © phpBB Limited