<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<onload>
               
        YourTargetScore = 6000

	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

	function isEventFinished()
		 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="-2700" z="-17945" y="810">
   player:target_NPC("Myan Kellas");
   yrest(1000);
   
   </waypoint>
   <!-- #  2 --><waypoint x="-2700" z="-17945" y="810">
    keyboardPress( key.VK_1 ); <!-- In game Slot where I put my Arrowheads -->
   RoMScript("AcceptBorderQuest()")
   player:target_NPC("Myan Kellas");
      end
   </waypoint>
   <!-- #  3 --><waypoint x="-2700" z="-17945" y="810" tag="Home Base">
 		waitForEventStart()
		__WPL:setForcedWaypointType("NORMAL")           
               if (isEventFinished()) then
               __WPL:setWaypointIndex(__WPL:findWaypointTag("Home Base"));
            end
   </waypoint>
</waypoints>