<?xml version="1.0" encoding="utf-8"?><waypoints>
  <onLoad>

  
  
	function questsDone()
		local dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()");
		if (dailyQuestCount==dailyQuestsPerDay) then
			return true;
		else 
			return false;
		end
	end	
  
	function mountUp()
		if not player:hasBuff(506688) and inventory:itemTotalCount(207204) > 0 then
			inventory:useItem(207204)
			yrest(500);
			
		end
 		player:mount()	
		MountSpeedHack(99)
	end
	-- end of functions	
 

	questtype 		= "daily" -- "public" or "daily";
	questItemId 	= 122187;  -- Missing Goods
	questid 		= 423441;  -- A Good Deed Every Day
	questName 		= GetIdName(questid);
 

   </onLoad>

	<!-- #  1 --><waypoint x="6786" z="22340" y="26" type="TRAVEL">
	player:sleep()
		player:target_NPC(123023) -- Adam Adamson
		CompleteQuestByName("A Good Deed Every Day") -- A Good Deed Every Day
		yrest(1);
	
		
if  questsDone() and questtype       == "daily" then
    --travelTo("WailingFjord")
 -- travelTo("VaranasCastleEast")
error ("Dailys done for today!",0);
--player:sleep()
end
		
		player:target_NPC(123023) -- Adam Adamson
		AcceptQuestByName("A Good Deed Every Day") -- A Good Deed Every Day
		yrest(1);
		__WPL:setDirection(WPT_FORWARD);
		  mountUp();
	</waypoint>
	<!-- #  2 --><waypoint x="6683" z="22460" y="41" type="TRAVEL">		</waypoint>
	<!-- #  3 --><waypoint x="6285" z="22498" y="39" type="TRAVEL">		</waypoint>
	<!-- #  4 --><waypoint x="5938" z="22809" y="22" type="TRAVEL">		</waypoint>
	<!-- #  5 --><waypoint x="5456" z="22955" y="23" type="TRAVEL">	
	repeat
		player:target_Object("Missing Goods")	
	until getQuestStatus("A Good Deed Every Day") == "complete"
	
		__WPL:setDirection(WPT_BACKWARD);
			  mountUp();
	</waypoint>
</waypoints>