• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

Question - Can someone recommend a script that makes good use of timestamps?

Joined
May 8, 2019
RedCents
775¢
I want to write a macro that does something for a certain period of time, then have it execute a 2nd macro to take over instead. With Lavishscript if I wanted something to run for 30 minutes before going to another I would do something like this for example:
declare howlongtorun time script ${Time.Timestamp}
howlongtorun.Minute:Inc[30]
howlongtorun:Update

if ${Math.Calc[${howlongtorun.Timestamp}-${Time.Timestamp}]}<1
{
run secondscript
Script:End
}

Is there a macro I could look at on here that makes use of Macroquest's Time variables?
 
You are looking for a timer object probably, this works like a stopwatch.
You set the timer to 30m and then when it gets to 0 you do stuff, can use a loop or an if statement.

If you are wanting to play with timestamps for actually timing things you can look at what I did in zonebench
 
Thank you. The timer object looks like what I want to do in this case, and the zonebench's approach of using ${Time.SecondsSinceMidnight} is good to know too.
 
Question - Can someone recommend a script that makes good use of timestamps?

Users who are viewing this thread

Back
Top
Cart