<?xml version="1.0" encoding="utf-8"?><waypoints>

<onload>
	function gettile()
		player:target_Object("Treasure Tile") 
		yrest(300);
		teleportToWP()
	end

	function getchest()
		player:target_Object("Brown wooden chest") 
		yrest(300);
		teleportToWP()
	end

	function doaoe()
		player:cast("MAGE_PURGATORY_FIRE");	-- change it to your aoe
		yrest(300);
	end
</onload>

	<!-- #  1 --><waypoint x="2542" z="2628" y="9">
		player:target_NPC("Hill Joker");
		sendMacro("ChoiceOption(2);");
		yrest(1000);
	</waypoint>
	<!-- #  2 --><waypoint x="2549" z="2687" y="9">
		changeProfileOption("LOOT", false);
		yrest(500);
		__WPL:setForcedWaypointType("TRAVEL");	
	</waypoint>
	<!-- #  3 --><waypoint x="2596" z="2802" y="9">	</waypoint>
	<!-- #  4 --><waypoint x="2612" z="2854" y="9">	</waypoint>
	<!-- #  5 --><waypoint x="2586" z="2886" y="9">		doaoe()	</waypoint>
	<!-- #  6 --><waypoint x="2493" z="2917" y="9">		doaoe()	</waypoint>
	<!-- #  7 --><waypoint x="2418" z="2942" y="9">	</waypoint>
	<!-- #  8 --><waypoint x="2454" z="2992" y="9">		doaoe()	</waypoint>
	<!-- #  9 --><waypoint x="2489" z="3084" y="9">		doaoe()	</waypoint>
	<!-- # 10 --><waypoint x="2502" z="3151" y="9">	</waypoint>
	<!-- # 11 --><waypoint x="2562" z="3117" y="9">		doaoe()	</waypoint>
	<!-- # 12 --><waypoint x="2653" z="3085" y="9">		doaoe()	</waypoint>
	<!-- # 13 --><waypoint x="2719" z="3076" y="9">	</waypoint>
	<!-- # 14 --><waypoint x="2693" z="3013" y="9">		doaoe()	</waypoint>
	<!-- # 15 --><waypoint x="2659" z="2923" y="9">		doaoe()	</waypoint>
	<!-- # 16 --><waypoint x="2644" z="2853" y="9">	</waypoint>
	<!-- # 17 --><waypoint x="2586" z="2886" y="9">		doaoe()	</waypoint>
	<!-- # 18 --><waypoint x="2493" z="2917" y="9">		doaoe()	</waypoint>
	<!-- # 19 --><waypoint x="2418" z="2942" y="9">	</waypoint>
	<!-- # 20 --><waypoint x="2454" z="2992" y="9">		doaoe()	</waypoint>
	<!-- # 21 --><waypoint x="2489" z="3084" y="9">		doaoe()	</waypoint>
	<!-- # 22 --><waypoint x="2502" z="3151" y="9">	</waypoint>
	<!-- # 23 --><waypoint x="2562" z="3117" y="9">		doaoe()	</waypoint>
	<!-- # 24 --><waypoint x="2653" z="3085" y="9">		doaoe()	</waypoint>
	<!-- # 25 --><waypoint x="2719" z="3076" y="9">	</waypoint>
	<!-- # 26 --><waypoint x="2693" z="3013" y="9">		doaoe()	</waypoint>
	<!-- # 27 --><waypoint x="2659" z="2923" y="9">		doaoe()	</waypoint>

-- here be harvesting

	<!-- # 28 --><waypoint x="2622" z="2899" y="10">
		__WPL:setForcedWaypointType("RUN");	
		yrest(500);
		gettile()
	</waypoint>
	<!-- # 29 --><waypoint x="2533" z="2932" y="10">	gettile()	</waypoint>
	<!-- # 30 --><waypoint x="2633" z="2930" y="10">	gettile()	</waypoint>
	<!-- # 31 --><waypoint x="2541" z="2962" y="10">	gettile()	</waypoint>
	<!-- # 32 --><waypoint x="2643" z="2959" y="10">	gettile()	</waypoint>
	<!-- # 33 --><waypoint x="2555" z="2993" y="10">	gettile()	</waypoint>
	<!-- # 34 --><waypoint x="2654" z="2990" y="10">	gettile()	</waypoint>
	<!-- # 35 --><waypoint x="2563" z="3022" y="10">	gettile()	</waypoint>
	<!-- # 36 --><waypoint x="2666" z="3020" y="10">	gettile()	</waypoint>
	<!-- # 37 --><waypoint x="2577" z="3052" y="10">	gettile()	</waypoint>
	<!-- # 38 --><waypoint x="2675" z="3050" y="10">	gettile()	</waypoint>
	<!-- # 39 --><waypoint x="2585" z="3083" y="10">	gettile()	</waypoint>
	<!-- # 40 --><waypoint x="2593" z="2911" y="10">	gettile()	</waypoint>
	<!-- # 41 --><waypoint x="2502" z="2943" y="10">	gettile()	</waypoint>
	<!-- # 42 --><waypoint x="2602" z="2941" y="10">	gettile()	</waypoint>
	<!-- # 43 --><waypoint x="2510" z="2975" y="10">	gettile()	</waypoint>
	<!-- # 44 --><waypoint x="2613" z="2970" y="10">	gettile()	</waypoint>
	<!-- # 45 --><waypoint x="2525" z="3004" y="10">	gettile()	</waypoint>
	<!-- # 46 --><waypoint x="2623" z="3002" y="10">	gettile()	</waypoint>
	<!-- # 47 --><waypoint x="2532" z="3034" y="10">	gettile()	</waypoint>
	<!-- # 48 --><waypoint x="2638" z="3030" y="10">	gettile()	</waypoint>
	<!-- # 49 --><waypoint x="2548" z="3064" y="10">	gettile()	</waypoint>
	<!-- # 50 --><waypoint x="2645" z="3061" y="10">	gettile()	</waypoint>
	<!-- # 51 --><waypoint x="2555" z="3094" y="10">	gettile()	</waypoint>
	<!-- # 52 --><waypoint x="2561" z="2921" y="10">	gettile()	</waypoint>
	<!-- # 53 --><waypoint x="2472" z="2955" y="10">	gettile()	</waypoint>
	<!-- # 54 --><waypoint x="2574" z="2952" y="10">	gettile()	</waypoint>
	<!-- # 55 --><waypoint x="2482" z="2985" y="10">	gettile()	</waypoint>
	<!-- # 56 --><waypoint x="2585" z="2982" y="10">	gettile()	</waypoint>
	<!-- # 57 --><waypoint x="2493" z="3015" y="10">	gettile()	</waypoint>
	<!-- # 58 --><waypoint x="2593" z="3013" y="10">	gettile()	</waypoint>
	<!-- # 59 --><waypoint x="2504" z="3045" y="10">	gettile()	</waypoint>
	<!-- # 60 --><waypoint x="2607" z="3041" y="10">	gettile()	</waypoint>
	<!-- # 61 --><waypoint x="2517" z="3074" y="10">	gettile()	</waypoint>
	<!-- # 62 --><waypoint x="2614" z="3072" y="10">	gettile()	</waypoint>
	<!-- # 63 --><waypoint x="2526" z="3104" y="10">	gettile()	</waypoint>

	-- 4 additional tiles to check if missed something
	<!-- # 64 --><waypoint x="2602" z="2941" y="10"		tag="gettiles">
		changeProfileOption("HARVEST_DISTANCE", 400);	gettile()	</waypoint>
	<!-- # 65 --><waypoint x="2510" z="2975" y="10">	gettile()	</waypoint>
	<!-- # 66 --><waypoint x="2638" z="3030" y="10">	gettile()	</waypoint>
	<!-- # 67 --><waypoint x="2548" z="3064" y="10">	gettile()	</waypoint>

	-- if there are still tiles around
	<!-- # 68 --><waypoint x="2563" z="3022" y="10">
		player:findNearestNameOrId(111811) ;
		local checktiles = player:findNearestNameOrId(111811); 
			if checktiles ~= nil then
				__WPL:setWaypointIndex(__WPL:findWaypointTag("gettiles"));	
		end
 	</waypoint>

-- here be chests

	<!-- # 69 --><waypoint x="2602" z="2941" y="10"		tag="getchests">	getchest()	</waypoint>
	<!-- # 70 --><waypoint x="2510" z="2975" y="10">	getchest()	</waypoint>
	<!-- # 71 --><waypoint x="2638" z="3030" y="10">	getchest()	</waypoint>
	<!-- # 72 --><waypoint x="2548" z="3064" y="10">	getchest()	</waypoint>
	<!-- # 73 --><waypoint x="2575" z="3002" y="10">
		player:findNearestNameOrId("Brown wooden chest") ;
		local checkchests = player:findNearestNameOrId("Brown wooden chest"); 
			if checkchests ~= nil then
				__WPL:setWaypointIndex(__WPL:findWaypointTag("getchests"));	
		 	  else
				player:sleep();
			end
 	</waypoint>
</waypoints>
