<?xml version="1.0" encoding="utf-8"?><waypoints>

<!--        Rock5's Millers Ranch Chickens run        -->
<!--           By Rock5         Version 2.0           -->
<!-- www.solarstrike.net/phpBB3/viewtopic.php?p=12139 -->
<!--				MODDED by T_Zero			 	  -->
<onLoad>
--File can be deleted if you do not want to deliver the quest BUT you have to do some changes in teggs1 (explained in file)
	changeProfileOption("HARVEST_DISTANCE", 150);
	changeProfileOption("QUICK_TURN", true);
	repeat questname=RoMScript("TEXT('Sys422386_name')"); yrest(500) until questname -- ie. "An Easy Lay?"
	repeat npcname=RoMScript("TEXT('Sys114930_name')"); yrest(500) until npcname -- ie. "Jenna Miller"
	
	repeat zoneid = RoMScript("GetZoneID()") until zoneid
	if zoneid ~= 304 then -- not at Miller's Ranch
		-- Try to find Sorrun and teleport in
		if player:target_NPC("Sorrun") then
			sendMacro("ChoiceOption(3)") yrest(1000)
			sendMacro("ChoiceOption(1)")
			waitForLoadingScreen()
		else
			error("You are too far from Miller's Ranch")
		end
	end
</onLoad>
	<!-- #  1 --><waypoint x="4033" z="3450">	</waypoint>
	<!-- #  2 --><waypoint x="4029" z="3327">	</waypoint>
	<!-- #  3 --><waypoint x="4016" z="3172">	</waypoint>
	<!-- #  4 --><waypoint x="3948" z="3107" tag="Main">
		while inventory:itemTotalCount(204795) > 9 do -- While you have eggs
			player:target_NPC(npcname); yrest(1000);
			sendMacro("CompleteQuest()"); yrest(1000);
			player:target_NPC(npcname); yrest(1000);
			sendMacro("AcceptQuest()"); yrest(1000);
			__WPL:setWaypointIndex(__WPL:findWaypointTag("Main"));
		end
		loadPaths("teggs1");
	</waypoint>
</waypoints>

