I think I have seen it somewhere, but couldn't find.
Is there a way to execute some path on certain hour. For example my char is doing waypoint file a1 and after reaching waypoint 4 in that file it checks time. If it is past 0:00 and before 0:05 it loads waypoint file a2.
Thanks ahead.
Get OS Time
Re: Get OS Time
"os.date("*t")" returns a table with current time values. eg.
So you could do something like
Of course if you want it to wait there until that time then you would put it into a loop.
Code: Select all
table.print(os.date("*t"))
table: 01EEC9B8
hour: 20
min: 16
wday: 3
day: 4
month: 12
year: 2012
sec: 59
yday: 339
isdst: true
Code: Select all
local time = os.date("*t")
if time.min >= 0 and 5 >= time.min then
loadProfile("a2")
end
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Who is online
Users browsing this forum: No registered users and 11 guests