<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<onLoad>
<!--**************************************************************************************************************************************************************
******************************************************************************************************************************************************************
**																	The Spirit of Food (Daily)																		**
**																			by Ego95																			**
**																																								**
**																																								**
******************************************************************************************************************************************************************
***************************************************************************************************************************************************************-->

-- =============================== User Options ======================================== -- 
	DailyRepeat = false			-- If you want to use daily reset tickets, set this to true. It won't use any, if you are already lvl 85
	startGMDetect()				-- Delete this, if you don't have the "userfunction_gmmonitor" by lisa	
	speed()						-- Delete this, if you don't have the "userfunction_speedhack"
-- ===================================================================================== --
	
	function DoQuest()
		local queststate = getQuestStatus("426417")
		if queststate == "complete" then
			player:target_NPC("117304");
			CompleteQuestByName(426417)	
		end
		yrest(1000)
		local dqCount, dqPerDay = RoMScript("Daily_count()");
		if dqCount ~= 10 then
			player:target_NPC("117304");
			AcceptQuestByName(426417)
		elseif player.Level == 85 then
			cprintf(cli.lightred,"Dailys done. We already reached lvl 85, so we won't use any daily repeat tickets even though DailyRepeat is true\n")
			player:sleep()
		elseif DailyRepeat then
			inventory:update();
			player:update();
			if inventory:itemTotalCount(202434) > 0 then
				inventory:useItem(202434);
				cprintf(cli.lightgreen,"Daily ticked used\n")
				yrest(2000)
				player:target_NPC("117304");
				AcceptQuestByName(426417)			
			else
				player:sleep();
			end
		else
			cprintf(cli.lightgreen,"Dailys done successfully\n")
			player:sleep();
		end
	end
</onLoad>
	<!-- #  1 --><waypoint x="-2575" z="1124" y="9">
		if not player:hasBuff("506688") then   
			inventory:useItem(207204);
			yrest(1000)
		end
		player:mount() 
		DoQuest()
		__WPL:setDirection(WPT_FORWARD);
	</waypoint>
	<!-- #  2 --><waypoint x="-2478" z="1050" y="3">	</waypoint>
	<!-- #  3 --><waypoint x="-2150" z="567" y="23">	</waypoint>
	<!-- #  4 --><waypoint x="-1940" z="-418" y="8" tag="collect">
		player:target_Object(118808)
		yrest(1000)
		local queststate = getQuestStatus("426417")
		if queststate == "complete" then
			if not player:hasBuff("506688") then   
				inventory:useItem(207204);
				yrest(1000)
			end
			player:mount() 
			__WPL:setDirection(WPT_BACKWARD);
		else 
			__WPL:setWaypointIndex(__WPL:findWaypointTag("collect"))
		end
	</waypoint>
</waypoints>