Yoko

All sides of Injection
It is currently 2025-10-16 18:28:28

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 2010-03-03 16:42:49 
Offline
User avatar

Joined: 2006-11-06 00:55:40
Posts: 45
В теле скрипта присутствует
REPEAT
Wait(150)
Until UO.InJournal("You apply bandages to yourself") or wait(3500)

Т.е. я отслеживаю строку в жулнале, но хочу чтобы скрипт ждал ее не больше 3,5 секунд. В итоге скрипт ждет 3,5 секунды, а строчку в журнале не смотрит.
Подскажите, плз, что я не так сделал?

Спасибо!

_________________
[img][/img]


Top
   
PostPosted: 2010-03-03 19:50:12 
Offline
Expert!
User avatar

Joined: 2005-04-23 10:19:43
Posts: 388
Самый простой вариант:

Code:
var timeLeft = 3000

repeat
    Wait(150)
    timeLeft = timeLeft - 150
until UO.InJournal("Message") or timeLeft <= 0

if (timeLeft <= 0) then
    UO.Print("Не дождались")
else
    UO.Print("Дождались")
endif


Top
   
PostPosted: 2010-03-05 11:37:28 
Offline
User avatar

Joined: 2006-11-06 00:55:40
Posts: 45
Beyonder wrote:
Самый простой вариант:

Code:
var timeLeft = 3000

repeat
    Wait(150)
    timeLeft = timeLeft - 150
until UO.InJournal("Message") or timeLeft <= 0

if (timeLeft <= 0) then
    UO.Print("Не дождались")
else
    UO.Print("Дождались")
endif


Туплю... -)

Спасибо!

_________________
[img][/img]


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

All times are UTC+02:00


Who is online

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