Page 1 of 1

Waypoint tag being skipped

Posted: Sun May 04, 2014 3:31 am
by ZZZZZ
I found this with my SecretGarden waypoint and have been getting the same with my daily quest as well. Instead of going to the waypoint specified it would instead go the the one after it, but it would only do this on the 2nd run and all those after.

Code: Select all

	<!-- #  1 --><waypoint x="-2559" z="1107" y="19" tag="Main">	
			doSpiceQuest()
			player:mount()
			__WPL:setDirection(WPT_FORWARD);
	</waypoint>
	<!-- #  2 --><waypoint x="-2539" z="1092" y="18" tag="Quest">	
	</waypoint>
	<!-- #  3 --><waypoint x="-2482" z="1056" y="15">	</waypoint> -- skips to this one
	<!-- #  4 --><waypoint x="-2257" z="785" y="9">		</waypoint>

Code: Select all

else
					buyAndSplitPoison()
					__WPL:setWaypointIndex(__WPL:findWaypointTag("Quest"));
				end
Both had either __WPL:setDirection(WPT_FORWARD); or the BACKWARD equivalent after setting the waypoint, could that be causing it to move to the next waypoint in one direction or the other?

Re: Waypoint tag being skipped

Posted: Sun May 04, 2014 5:49 am
by rock5
Yes that's what happens when you change direction. It adds or removes 2 from the current waypoint. This is as it's supposed to be but can cause problems when changing the next waypoint.

You should be able to avoid any such issues if you make sure to always change direction before setting the waypoint.

Re: Waypoint tag being skipped

Posted: Sun May 04, 2014 6:07 am
by ZZZZZ
Ahh ok, will keep that in mind for later use, thank you.