Im trying to make it so that the waypoint scirpt changes after a certain amount of time. I was thinking, since there is a logout time, the time is probably being recorded. So could we make this somehow work:
<?xml version="1.0" encoding="UTF-8"?>
-<waypoints>
<!-- # 1 -->
<waypoint y="168" z="4413" x="6436"> if time(); > 3 then loadPaths("scirpt2") end, reset time() </waypoint>
<!-- # 2 -->
<waypoint y="168" z="4413" x="6436"> </waypoint>
<!-- # 3 -->
<waypoint y="168" z="4413" x="6436"> </waypoint> </waypoint
I don't know lua, but im guessing we have to make a variable time() and link it back to place where time is being counted in minutes. So any suggestions?
Hey, looking for some help with my scirpt
Re: Hey, looking for some help with my scirpt
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<onload>
mytime = os.time()
</onload>
<!-- # 1 -->
<waypoint y="168" z="4413" x="6436"> if (os.time() - mytime) > 3 then loadPaths("scirpt2") end </waypoint>
<!-- # 2 -->
<waypoint y="168" z="4413" x="6436"> </waypoint>
<!-- # 3 -->
<waypoint y="168" z="4413" x="6436"> </waypoint>
</waypoints>
Removed the *1000, thanks rock =)
Remember no matter you do in life to always have a little fun while you are at it 
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Re: Hey, looking for some help with my scirpt
os.time() and os.clock() are in seconds.
- 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
-
eragon2450
- Posts: 9
- Joined: Tue Jul 26, 2011 2:34 pm
Re: Hey, looking for some help with my scirpt
alright, thanks