Page 2 of 2

Re: How to mark a waypoint to not be skipped

Posted: Tue Aug 23, 2011 11:02 pm
by Dsanchez
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>

Re: How to mark a waypoint to not be skipped

Posted: Wed Aug 24, 2011 1:27 am
by rock5
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.

Re: How to mark a waypoint to not be skipped

Posted: Wed Aug 24, 2011 4:23 am
by Dsanchez
thanks again =)