Hey, looking for some help with my scirpt

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
eragon2450
Posts: 9
Joined: Tue Jul 26, 2011 2:34 pm

Hey, looking for some help with my scirpt

#1 Post by eragon2450 »

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?
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Hey, looking for some help with my scirpt

#2 Post by lisa »

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>
--=== Edited ===--
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
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Hey, looking for some help with my scirpt

#3 Post by rock5 »

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

#4 Post by eragon2450 »

alright, thanks
Post Reply