<?xml version="1.0" encoding="utf-8"?><waypoints>
<!-- By Rock5. verson 1.1-->
<onLoad>
	changeProfileOption("HARVEST_DISTANCE", 50)
	repeat questname=RoMScript("TEXT('Sys421032_name')"); yrest(500) until questname -- ie. "Collect Scattered Wood"
	repeat npcname=RoMScript("TEXT('Sys114418_name')"); yrest(500) until npcname -- ie. "Herb George"

	function CollectWood()
		while 9 > inventory:itemTotalCount(206756) and player:target_Object(114470,null,null,false) do
		end
		if inventory:itemTotalCount(206756) == 9 then
			yrest(1000)
			if inventory:itemTotalCount(206756) == 9 then
				player:target_Object(114470,null,null,false)
			end
		end
	end
	function IfEnoughGoto(wp)
		if inventory:itemTotalCount(206756) > 9 then
			__WPL:setWaypointIndex(__WPL:findWaypointTag(wp));
		end
	end
</onLoad>
	<!-- #  1 --><waypoint x="-2011" z="4875" tag="npc">
			repeat queststate = getQuestStatus(questname); yrest(500) until queststate
			if queststate == "complete" then
				-- Complete quest
				player:target_NPC(npcname);
				RoMScript("OnClick_QuestListButton(3,1)"); yrest(1000)
				RoMScript("CompleteQuest()"); yrest(2000);
				-- Check if no more dailies.
				repeat questcount = RoMScript("Daily_count()") until questcount
				if questcount > 9 then
					-- Finished. No more dailies.
					player:sleep()
				end
			end
			if queststate ~= "incomplete" then
				-- Accept quest
				player:target_NPC(npcname);
				RoMScript("OnClick_QuestListButton(1,1)"); yrest(1000)
				RoMScript("AcceptQuest()"); yrest(2000);
			end
	</waypoint>
	<!-- #  2 --><waypoint x="-1836" z="4865" tag="start">
		CollectWood()
		IfEnoughGoto("npc")
	</waypoint>
	<!-- #  3 --><waypoint x="-1720" z="4956">
		CollectWood()
		IfEnoughGoto("npc")
	</waypoint>
	<!-- # 13 --><waypoint x="-1833" z="4981">
		CollectWood()
		IfEnoughGoto("npc")
	</waypoint>
	<!-- # 12 --><waypoint x="-1802" z="5016">	</waypoint>
	<!-- #  4 --><waypoint x="-1725" z="5070">	</waypoint>
	<!-- #  5 --><waypoint x="-1670" z="5123">
		CollectWood()
		IfEnoughGoto("point1")
	</waypoint>
	<!-- #  6 --><waypoint x="-1701" z="5196">
		CollectWood()
	</waypoint>
	<!-- #  7 --><waypoint x="-1742" z="5159">
		IfEnoughGoto("npc")
	</waypoint>
	<!-- # 11 --><waypoint x="-1906" z="5111">
		CollectWood()
		IfEnoughGoto("npc")
	</waypoint>
	<!-- # 10 --><waypoint x="-1917" z="5217">	</waypoint>
	<!-- #  9 --><waypoint x="-2024" z="5289">
		CollectWood()
		IfEnoughGoto("point2")
	</waypoint>
	<!-- # 10 --><waypoint x="-1917" z="5217">	</waypoint>
	<!-- # 12 --><waypoint x="-1802" z="5016" tag="point1">	</waypoint>
	<!-- # 13 --><waypoint x="-1833" z="4981">
		CollectWood()
		if inventory:itemTotalCount(206756) > 9 then
			__WPL:setWaypointIndex(__WPL:findWaypointTag("npc"));
		else
			__WPL:setWaypointIndex(__WPL:findWaypointTag("start"));
		end
	</waypoint>
	<!-- # 14 --><waypoint x="-2050" z="5087" tag="point2">	</waypoint>
</waypoints>
