<?xml version="1.0" encoding="utf-8"?><waypoints type="RUN">
<!-- EOJs version 2 by Rock5 -->
<onLoad>
	YourTargetScore = 4

	settings.profile.friends={"Plains Mosto", "Plains Galidun"}
	settings.profile.options.ANTI_KS = false

	function waitForEventStart()
		repeat
			yrest(1000) -- check every second
			local namePE,messagePE,namePH,ScorePE,Count , IsScoreVisible= RoMScript("PE_GetInfo(1)")
			if Count == 2 and YourTargetScore > ScorePE then break end
		until false
	end

	if oldOnLeaveCombat == nil then oldOnLeaveCombat = settings.profile.events.onLeaveCombat end
	function settings.profile.events.onLeaveCombat()
		oldOnLeaveCombat()
		local namePE,messagePE,namePH,ScorePE,Count , IsScoreVisible= RoMScript("PE_GetInfo(1)")
		if Count ~= 2 or ScorePE >= YourTargetScore then
			__WPL:setForcedWaypointType("RUN")
			__WPL:setWaypointIndex(__WPL:findWaypointTag("Home Base"));
		end
	end

</onLoad>

	<!-- #  1 --><waypoint x="-26870" z="29521" y="-141" tag="Home Base">
		waitForEventStart()
		__WPL:setForcedWaypointType("NORMAL")
	</waypoint>
	<!-- #  2 --><waypoint x="-26928" z="29308" y="-156" tag="loop">	</waypoint>
	<!-- #  3 --><waypoint x="-27078" z="29371" y="-139">	</waypoint>
	<!-- #  4 --><waypoint x="-27145" z="29487" y="-138">
		__WPL:setWaypointIndex(__WPL:findWaypointTag("loop"));
	</waypoint>
</waypoints>
