Simple script to finish after going through wp-file

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
spawni
Posts: 100
Joined: Wed Sep 28, 2011 11:21 am

Simple script to finish after going through wp-file

#1 Post by spawni » Sat Dec 24, 2011 1:04 am

hmm..if i want to run a wp-file only once - then I have to put a piece of code to end the script (like in your malatina code but that one is a little to complicated cause there is a multi-account-changing-script).
Oterhwise the bot will run to the first wp? (Haven´t tested yet - not enough time).

Maybe you can give me a tipp?

btw.. happy holidays and merry xmas :-)

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Simple script to finish after going through wp-file

#2 Post by lisa » Sat Dec 24, 2011 1:52 am

A normal Wp will go through the waypoints until the last and then start agaon from the first.

so if you have 15 waypoints and #1 is closest to character when the WP is started it will do
1 -> 15 -> 1 -> 15 -> 1 -> 15
and continue on forever.

if # 6 is closest to character at startup then it does
6 -> 15 -> 1 -> 15 -> 1 -> 15
and continue on forever.

So if you want it to do another WP after it reaches #15 then add in code, something like this

Code: Select all

<!-- # 15 --><waypoint x="-13658" z="40641" y="709">	
loadPaths("WPfilename")
</waypoint>
So when it reaches waypoint #15 it will start the WPfilename.xml
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: Simple script to finish after going through wp-file

#3 Post by rock5 » Sun Dec 25, 2011 7:59 am

If you are simply asking, how to stop a waypoint file, then I would use

Code: Select all

error("Waypoint file finished.")
in the last waypoint.
  • 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

kuripot
Posts: 493
Joined: Mon Nov 07, 2011 9:14 pm

Re: Simple script to finish after going through wp-file

#4 Post by kuripot » Fri Jan 06, 2012 7:37 pm

how about if i want to use #1-#15 when finish then #15-1?

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Simple script to finish after going through wp-file

#5 Post by lisa » Fri Jan 06, 2012 7:57 pm

just change the direction it does the waypoints in.


--=== to do the waypoints in reverse
--=== so at waypoint #15 do

Code: Select all

__WPL:setDirection(WPT_BACKWARD);
--=== to make it go in order again
--=== at waypoint #1 make sure to change it to forward

Code: Select all

__WPL:setDirection(WPT_FORWARD);
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

Post Reply

Who is online

Users browsing this forum: No registered users and 16 guests