Yoko

All sides of Injection
It is currently 2025-11-05 17:45:03

All times are UTC+02:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: 2008-07-29 23:04:09 
Offline

Joined: 2007-07-01 21:23:58
Posts: 82
Code:
sub Taming() 
var count=0
uo.print('Тотем')
uo.exec('addobject TOT')
while uo.targeting()
wait(100)
wend
UO.DeleteJournal()
while NOT UO.Dead()
UO.DeleteJournal()
UO.WaitTargetObject('TOT')
UO.UseSkill('Animal Taming')
repeat
wait(1000)
until UO.InJournal('You fail') OR UO.InJournal('It seems')
If Uo.InJournal('It seems') Then
UO.Say('All release')
Endif
wend
end sub



собственно скрипт идеальный) только есть одна проблема, на шарде не всегда выдвется сообщение об удачном/неудачном применении скила. Можно ли как то сделать проверку, чтобы если допустим черз 10 секунд нет никакого сообщения чар снова юзал таминг на животину? Хелп плс оч надо)


Top
   
 Post subject:
PostPosted: 2008-07-29 23:22:00 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Code:
sub Taming() 
var k
var count=0
uo.print('Тотем')
uo.exec('addobject TOT')
while uo.targeting()
wait(100)
wend
UO.DeleteJournal()
while NOT UO.Dead()
UO.DeleteJournal()
k=0
UO.WaitTargetObject('TOT')
UO.UseSkill('Animal Taming')
repeat
wait(1000)
k=k+1
until UO.InJournal('You fail') OR UO.InJournal('It seems') OR (k>10)
If Uo.InJournal('It seems') Then
UO.Say('All release')
Endif
wend
end sub


Top
   
 Post subject:
PostPosted: 2008-07-29 23:40:07 
Offline

Joined: 2007-07-01 21:23:58
Posts: 82
огромное спасибо) а не мог бы обьяснить что в скрипте означает строчка к=к+1?


Top
   
 Post subject:
PostPosted: 2008-07-30 00:26:47 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Code:
repeat 
wait(1000)
k=k+1
until UO.InJournal('You fail') OR UO.InJournal('It seems') OR (k>10)

Смотри в каком случае происходит выход из цикла


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

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 6 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