<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
	quest_Id=???????;
	quest = __QL:getQuestById(quest_Id);
	quest:update();
	
	printf("Starting waypoint for Quest: "..quest.Name.." ("..tostring(quest.Id)..")\n");
	
	if (not quest.Accepted) then
		redirectToWaypointTag("start");
	else
		__QB:update();
	end;
	
	repeatGuard = 0;
	
	function qUpdateMobs()
		if (CheckGoalsComplete(quest.Id)) then
			Mobs_Remove(GetIdName(?mobs?));
		else
			Mobs_Add(GetIdName(?mobs?));
		end;
	end;

	Mobs_Add("__");
</onLoad>
<onUnload>
	Mobs_Remove("__");
</onUnload>
	<!-- #   0 --><waypoint x="-4701" z="2814" y="643" tag="start">
		PickupQuestIfIDontHaveIt(quest);
	</waypoint>
	<!-- #  17 --><waypoint x="-4630" z="2801" y="644" tag="finish">
		if (repeatGuard == 0) then
			repeatGuard = 1;
			printf("Turning in Quest\n");
			TurnInQuestIfComplete(quest);
		end;
	</waypoint>
</waypoints>
