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
Simple script to finish after going through wp-file
Re: Simple script to finish after going through wp-file
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
So when it reaches waypoint #15 it will start the WPfilename.xml
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>
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: Simple script to finish after going through wp-file
If you are simply asking, how to stop a waypoint file, then I would use
in the last waypoint.
Code: Select all
error("Waypoint file finished.")
- 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
Re: Simple script to finish after going through wp-file
how about if i want to use #1-#15 when finish then #15-1?
Re: Simple script to finish after going through wp-file
just change the direction it does the waypoints in.
--=== to do the waypoints in reverse
--=== so at waypoint #15 do
--=== to make it go in order again
--=== at waypoint #1 make sure to change it to forward
--=== to do the waypoints in reverse
--=== so at waypoint #15 do
Code: Select all
__WPL:setDirection(WPT_BACKWARD);
--=== 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
wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
Who is online
Users browsing this forum: No registered users and 16 guests