ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: declo on April 22, 2015, 06:05:50 PM

Title: Simple Timer
Post by: declo on April 22, 2015, 06:05:50 PM
For what ever reason, I can't wrap my mind around how to use #time to make a simple timer that can execute after 30, 40 or 60 seconds.

Any help for this old mind would be very appreciated.
Title: Re: Simple Timer
Post by: manwinc on April 22, 2015, 08:48:16 PM
Typically for seconds you want to use #scnt

set %Timer #Scnt + 30 ; (30 seconds)
repeat
wait 1
Until %Timer <= #Scnt


You can also use #Systime (ms) if you are looking for something more exact.

set %Timer #Systime + 30000
Repeat
wait 1
Until %Timer <= #Systime
Title: Re: Simple Timer
Post by: declo on April 23, 2015, 06:13:15 PM
Thank you!!!!