Yoko
http://forum.yoko.com.ua/

timer
http://forum.yoko.com.ua/viewtopic.php?f=20&t=13963
Page 1 of 1

Author:  zars [ 2008-09-17 16:02:49 ]
Post subject:  timer

Code:
until uo.InJournal('put') OR uo.InJournal('fail') OR WAIT 10 sec



how to make OR wait10sec? i dont understand what timers do


Code:
until uo.InJournal('put') OR uo.InJournal('fail') OR LastTimer+300<UO.Timer()

i think dont work , but i dont realy know how much time is LastTimer+300<UO.Timer()

please help

Author:  Destruction [ 2008-09-18 07:12:09 ]
Post subject: 

uo.timer() returns number, this number increased by 1 each 1/10 sec.

Example:
Code:
LastTimer = uo.timer() ; remember current timer value.
repeat
    wait( 100 )
until uo.InJournal( 'message' ) OR LastTimer+300 < uo.timer()

as result - loop wait for 'message' in journal and will break after 30 seconds.

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/