How to mark a waypoint to not be skipped

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Message
Author
Dsanchez
Posts: 77
Joined: Thu Aug 04, 2011 11:20 pm

Re: How to mark a waypoint to not be skipped

#21 Post by Dsanchez » Tue Aug 23, 2011 11:02 pm

rock5 wrote:
Dsanchez wrote:I've been playing around with waypoints a little bit and have had this problem also where it would skip a waypoint and not execute the code on the previous waypoint.
Skipped waypoint code does execute. Maybe it just seemed to not run like it did for Lisa. What was the code? Maybe we can figure out why didn't work.
sometimes while still going to this location from my travel waypoints it will skip the first one and go to another and not execute the code. it changes the target distance because of all the obstacles. otherwise i'm getting stuck on the fence all the time.

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
	<!-- #  1 --><waypoint x="3325" z="5980" y="0">
	changeProfileOption("MAX_TARGET_DIST", 50);
	</waypoint>
	<!-- #  2 --><waypoint x="3375" z="5715" y="20"></waypoint>
	<!-- #  3 --><waypoint x="3375" z="5715" y="20"></waypoint>
	<!-- #  4 --><waypoint x="3480" z="5675" y="25">
	player:restrnd(30, 3, 10);
	</waypoint>
	<!-- #  5 --><waypoint x="3780" z="5675" y="25">
	player:restrnd(30, 3, 10);
	__WPL:setDirection(WPT_FORWARD);
	</waypoint>
	<!-- #  6 --><waypoint x="3480" z="5675" y="25">
	player:restrnd(30, 3, 10);
	if( player.Level > 17) then
		loadPaths("11-20Silverspring/l18t_Tagena");
  	end
	</waypoint>
	<!-- #  7 --><waypoint x="3480" z="5375" y="25">
	player:restrnd(30, 3, 10);
	</waypoint>
	<!-- #  8 --><waypoint x="3780" z="5375" y="25">
	player:restrnd(30, 3, 10);
	__WPL:setDirection(WPT_BACKWARD);
	</waypoint>
</waypoints>

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: How to mark a waypoint to not be skipped

#22 Post by rock5 » Wed Aug 24, 2011 1:27 am

Ah so you are saying that it skips the first waypoint when you load the file with a loadPaths command? That's normal. When it loads a file it starts at the nearest waypoint. Your other file probably just ends in the middle of the 1st and 2nd waypoint so sometimes it skips the first waypoint. If you want to change the target distance for the whole of that file then you should be changing it in the onload section. Add this to the top of the file below the first line

Code: Select all

<onLoad>
changeProfileOption("MAX_TARGET_DIST", 50);
</onLoad>
Seeing as the previous file ends between the 1st and 2nd waypoint you could probably completely remove the first 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

Dsanchez
Posts: 77
Joined: Thu Aug 04, 2011 11:20 pm

Re: How to mark a waypoint to not be skipped

#23 Post by Dsanchez » Wed Aug 24, 2011 4:23 am

thanks again =)

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 4 guests