<?xml version="1.0" encoding="utf-8"?>
<waypoints type="RUN">
	<onLoad>
		function checkAshGrass()
			local ashTimber = inventory:itemTotalCount("Ash Timber");
			local ashWood = inventory:itemTotalCount("Ash Wood");
			local mDemonGrass = inventory:itemTotalCount("Mountain Demon Grass");
			if (2 * ashTimber + ashWood > 9) and (mDemonGrass > 19) then
				return true;
			else
				return false;
			end
		end
		function sPassionHarvest()
			if not checkAshGrass() then
				player:harvest();
			else 
				CQuest:chooseEndPath(38,51);
			end
		end
		function sPassionCraft()
			local ashTimber = inventory:itemTotalCount("Ash Timber");
			while 5 > ashTimber do
				xCount = 5-ashTimber;
				botCraftItem("ASH_TIMBER", xCount);
				ashTimber = inventory:itemTotalCount("Ash Timber");
			end
		end
		__WPL:setWaypointIndex(__WPL:findWaypointTag("queststart"));
	</onLoad>
	<!-- #  1 --><waypoint x="-3873" z="-8770" y="226" tag="queststart">sPassionHarvest();</waypoint>
	<!-- #  2 --><waypoint x="-3876" z="-9067" y="205">sPassionHarvest();</waypoint>
	<!-- #  3 --><waypoint x="-3947" z="-9074" y="205">sPassionHarvest();</waypoint>
	<!-- #  4 --><waypoint x="-3996" z="-8855" y="218">sPassionHarvest();</waypoint>
	<!-- #  5 --><waypoint x="-4051" z="-8855" y="215">sPassionHarvest();</waypoint>
	<!-- #  6 --><waypoint x="-4104" z="-8845" y="209">sPassionHarvest();</waypoint>
	<!-- #  7 --><waypoint x="-4089" z="-8775" y="205">sPassionHarvest();</waypoint>
	<!-- #  8 --><waypoint x="-4380" z="-8771" y="213">sPassionHarvest();</waypoint>
	<!-- #  9 --><waypoint x="-4431" z="-8718" y="206">sPassionHarvest();</waypoint>
	<!-- # 10 --><waypoint x="-4424" z="-8488" y="192">sPassionHarvest();</waypoint>
	<!-- # 11 --><waypoint x="-4444" z="-8487" y="194">sPassionHarvest();</waypoint>
	<!-- # 12 --><waypoint x="-4247" z="-8432" y="193">sPassionHarvest();</waypoint>
	<!-- # 13 --><waypoint x="-4054" z="-8468" y="217">sPassionHarvest();</waypoint>
	<!-- # 14 --><waypoint x="-3716" z="-8426" y="205">sPassionHarvest();</waypoint>
	<!-- # 15 --><waypoint x="-3716" z="-8332" y="213">sPassionHarvest();</waypoint>
	<!-- # 16 --><waypoint x="-3128" z="-8580" y="194">sPassionHarvest();</waypoint>
	<!-- # 17 --><waypoint x="-3144" z="-8761" y="226">sPassionHarvest();</waypoint>
	<!-- # 18 --><waypoint x="-2776" z="-8519" y="218">sPassionHarvest();</waypoint>
	<!-- # 19 --><waypoint x="-2751" z="-8194" y="218">sPassionHarvest();</waypoint>
	<!-- # 20 --><waypoint x="-2560" z="-8610" y="193">sPassionHarvest();</waypoint>
	<!-- # 21 --><waypoint x="-2636" z="-8854" y="211">sPassionHarvest();</waypoint>
	<!-- # 22 --><waypoint x="-2557" z="-9070" y="283">sPassionHarvest();</waypoint>
	<!-- # 23 --><waypoint x="-2324" z="-9105" y="265">sPassionHarvest();</waypoint>
	<!-- # 24 --><waypoint x="-2148" z="-9379" y="224">sPassionHarvest();</waypoint>
	<!-- # 25 --><waypoint x="-1914" z="-9410" y="213">sPassionHarvest();</waypoint>
	<!-- # 26 --><waypoint x="-1764" z="-9367" y="197">sPassionHarvest();</waypoint>
	<!-- # 27 --><waypoint x="-1593" z="-9347" y="178">sPassionHarvest();</waypoint>
	<!-- # 28 --><waypoint x="-1578" z="-9282" y="193">sPassionHarvest();</waypoint>
	<!-- # 29 --><waypoint x="-1661" z="-9009" y="234">sPassionHarvest();</waypoint>
	<!-- # 30 --><waypoint x="-1987" z="-8819" y="233">sPassionHarvest();</waypoint>
	<!-- # 31 --><waypoint x="-1987" z="-8806" y="233">sPassionHarvest();</waypoint>
	<!-- # 32 --><waypoint x="-2421" z="-8912" y="262">sPassionHarvest();</waypoint>
	<!-- # 33 --><waypoint x="-2687" z="-8715" y="190">sPassionHarvest();</waypoint>
	<!-- # 34 --><waypoint x="-2853" z="-8877" y="226">sPassionHarvest();</waypoint>
	<!-- # 35 --><waypoint x="-3265" z="-8696" y="204">sPassionHarvest();</waypoint>
	<!-- # 36 --><waypoint x="-3395" z="-8689" y="207">sPassionHarvest();</waypoint>
	<!-- # 37 --><waypoint x="-3462" z="-8657" y="211">	
		__WPL:setWaypointIndex(__WPL:findWaypointTag("queststart"));
	</waypoint>
	<!-- # 38 --><waypoint x="-3790" z="-8451" y="221">	</waypoint>
	<!-- # 39 --><waypoint x="-3688" z="-8669" y="222">	</waypoint>
	<!-- # 40 --><waypoint x="-3544" z="-8690" y="219">	</waypoint>
	<!-- # 41 --><waypoint x="-3636" z="-8967" y="228" tag="questfinish">
		sPassionCraft();
		loadPaths("0_Human_Quest");
		__WPL:setWaypointIndex(__WPL:findWaypointTag("sPassionDone"));
	</waypoint>
	<!-- # 42 --><waypoint x="-3957" z="-8390" y="241">	</waypoint>
	<!-- # 43 --><waypoint x="-3990" z="-8541" y="224">	</waypoint>
	<!-- # 44 --><waypoint x="-4099" z="-8786" y="222">	</waypoint>
	<!-- # 45 --><waypoint x="-3618" z="-9035" y="249">	</waypoint>
	<!-- # 46 --><waypoint x="-3582" z="-8965" y="244">		
		__WPL:setWaypointIndex(__WPL:findWaypointTag("questfinish"));
	</waypoint>
	<!-- # 47 --><waypoint x="-2718" z="-8376" y="255">	</waypoint>
	<!-- # 48 --><waypoint x="-2285" z="-8620" y="257">	</waypoint>
	<!-- # 49 --><waypoint x="-2220" z="-8867" y="255">	</waypoint>
	<!-- # 50 --><waypoint x="-2542" z="-8938" y="296">	</waypoint>
	<!-- # 51 --><waypoint x="-3447" z="-9007" y="269">	
		__WPL:setWaypointIndex(__WPL:findWaypointTag("questfinish"));
	</waypoint>
</waypoints>