<?xml version="1.0" encoding="utf-8"?><waypoints>
<onload>

	<!--		NoobBotter's Dailies for patch 6.0.6 in Wailing Fjord	-->
	<!--		  Wanted: "Guargo the Mad Bull" daily/public quest		-->
	<!--							  V 1.2								-->
	<!--																-->
	<!--	Starts at snoop at the new Wailing Fjord Port				-->
	<!--																-->
	<!--	Will do all 10 dailies, and use daily resets if available.	-->
	<!--		(Can change the option to use dailies just below)		-->
	<!--																-->
	<!--	Can change it to do this as a public quest					-->
	<!--		(I didn't include any event start/stop timers)			-->
	<!--																-->
	<!--	Gives Average Time per round after each round. 				-->
	<!--	At end, it gives Total time, Average time per quest,		-->
	<!--	   number of quests completed, number of Daily Resets used, --> 
	<!--	   and number of Daily Resets remaining in inventory.		-->
	
	<!--				Version 1.2 Changes:							-->
	<!--		Added option to swap classes to do quest with 			-->
	<!--		lower class. set swapClass to true to enable.			-->
	<!--		** If using this start it with your higher level class.	-->
	
	<!--				Version 1.1 Changes:							-->
	<!--		By default, the bot will not use up pots. 				-->
	<!--		If you need the extra firepower, set usePots to true	-->
	<!--																-->
	<!--		By default, the bot will not use speed() boost.			-->
	<!--		If you want the extra speed, set highSpeed to true		-->
	
	
	<!--	User adjustable variables: 	-->
	questtype 		= "daily" 			-- "public" or "daily"
	usereset		= false 				-- set to true if you want to use daily reset tickets
	publicafterdaily = false			-- set to true to do public quests when dailies are done. If doing this, usereset must be false.
	maxPlayerLevel	= 85				-- Player Level that will no longer Complete quest **only applies to dailies... Public would still do the quest. Typically, Player Level Cap
	usePots			= false				-- set to true if you need it to use pots
	highSpeed		= true				-- set to true to use speed() function to speed up more. This has potential of causing pullbacks if you speed too great a distance.
										-- I modified my speed() userfunction to reduce the max speed just a bit.
	swapClass		= false				-- set to true to enable turning in quest with your secondary class.
	
	<!--	Functions	-->
	function swClass()
		player:target_NPC(123003)		-- Warehouse Manager Nahalya Kohn
		yrest(150);
		ChoiceOptionByName(getTEXT("SO_110581_1"));	-- "I'd like to chance class"
		yrest(150);
		player:update();
		RoMScript("ExchangeClass("..(player.Class2+1)..","..(player.Class1+1)..")");
		yrest(250);
		loadProfile()
		if player.Class1 == secClass then
			for k,v in pairs(settings.profile.skills) do
				v.AutoUse = false
			end
		end
		doMount()
	end
	
	function questsDone()
		local dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()");
		if (dailyQuestCount==dailyQuestsPerDay) then
			return true;
		else 
			return false;
		end
	end	
	
	function checkToDoMore()
		yrest(500)
		if questsDone() and questtype == "daily" then
			if usereset == true and maxPlayerLevel > player.Level then
				inventory:update();
				player:update();
				if inventory:itemTotalCount(202434) > 0 then --daily reset tickets
					inventory:useItem(202434);
					yrest(500)
					__WPL:setWaypointIndex(__WPL:findWaypointTag("getquest"))
				else
					__WPL:setWaypointIndex(__WPL:findWaypointTag("allDone"))
				end
			elseif publicafterdaily == true then
				questtype = "public"
				__WPL:setWaypointIndex(__WPL:findWaypointTag("getquest"))
			else
				__WPL:setWaypointIndex(__WPL:findWaypointTag("allDone"))
			end
		elseif questsDone() and questtype == "public" then
			__WPL:setWaypointIndex(__WPL:findWaypointTag("getquest"))
		end
	end
	
	function doMount()
		if not player.Mounted then
			if (useGoodie) then
				useGoodie("riding")
			end
			player:mount()
		end
		if highSpeed == true then
			speed()
		end
	end
	
	function getquest()
		quest = questlog:haveQuest(GetIdName(426557), questtype) -- Wanted: "Guargo the Mad Bull"
		if quest == false then 
			repeat
				player:target_Object(122806) -- Port Bulletin Board
				yrest(100)
				AcceptQuestByName(GetIdName(426557,questtype)
				yrest(200)
			until questlog:haveQuest(GetIdName(426557), questtype)
		end
	end
	
	function completequest()
		quest2 = questlog:getQuest(GetIdName(426557), questtype)
		if quest2:isComplete() then
			repeat
				player:target_NPC(122760) -- Chuck Willis
				yrest(200)
				CompleteQuestByName(GetIdName(426557),questtype) -- Wanted: "Guargo the Mad Bull"
			until not questlog:haveQuest(GetIdName(426557), questtype)
		end
		local roundTime = os.time()-restartTime
		cprintf (cli.pink,"Time spend for this round: %s Seconds\n",roundTime)
		restartTime = os.time()
		questsCompleted = questsCompleted + 1
		averageTime = (os.time()-time)/questsCompleted
		cprintf (cli.yellow,"Average time per round: %s Seconds\n",averageTime)
		checkToDoMore()
	end
	
	<!--	Start of Waypoint	-->
	questsCompleted = 0
	resetsUsed = 0
	priClass = player.Class1
	secClass = player.Class2
	time = os.time();		-- Startingtime of Waypoint File
	restartTime = time		-- Startingtime of Each quest
	changeProfileOption("WAYPOINT_DEVIATION",2);
	__WPL:setForcedWaypointType("TRAVEL")
	changeOptionFriendMob("mob", 108173, "Add") -- Guargo the Furious Bull
	questsDone()
	if questsDone() and questtype == "daily" then
		if usereset == true and maxPlayerLevel > player.Level then
			inventory:update();
			player:update();
			if inventory:itemTotalCount(202434) > 0 then --daily reset tickets
				inventory:useItem(202434);
				yrest(500)
			else
				error("Done with Dailies. To continue get more resets.")
			end
		else
			if usereset == false then
				error("Done with today's dailies. Option is set to not use reset tickets.")
			elseif publicafterdaily == true then
				questtype = "public"
				__WPL:setWaypointIndex(1)
			else
				error("Done with today's dailies. Player is at level Cap")
			end
		end
	elseif questsDone() and questtype == "public" then
		print("Commencing Public quests.")
	end
	__WPL:setWaypointIndex(1)
</onload>
	<!-- #  1 --><waypoint x="-9162" z="3050">	
		doMount()
	</waypoint>
	<!-- #  2 --><waypoint x="-9218" z="2938">	</waypoint>
	<!-- #  3 --><waypoint x="-9446" z="2733">	</waypoint>
	<!-- #  4 --><waypoint x="-9688" z="2889">	</waypoint> -- ********** Somewhere in here I resume after swapping back to primary class. use tag "resumeaccepting"
	<!-- #  5 --><waypoint x="-9793" z="3028" tag="getquest">
			getquest()
	</waypoint>
	<!-- #  6 --><waypoint x="-9633" z="2849">	</waypoint>
	<!-- #  1 --><waypoint x="-9437" z="2768">	</waypoint>
	<!-- #  2 --><waypoint x="-9299" z="2826">	</waypoint>
	<!-- #  3 --><waypoint x="-9026" z="2676">	</waypoint>
	<!-- #  4 --><waypoint x="-8985" z="2649">	</waypoint>
	<!-- #  5 --><waypoint x="-8804" z="2496">	</waypoint>
	<!-- #  6 --><waypoint x="-8643" z="2264">	</waypoint>
	<!-- # 12 --><waypoint x="-8284" z="2127">	
			__WPL:setForcedWaypointType("NORMAL")
			repeat
				local mytarget = player:findNearestNameOrId(108173) -- Guargo the Furious Bull
				if not mytarget then 
					yrest(500) 
				end
			until mytarget
			player:update()
			player:checkSkills(true)
			if usePots == true then
				itemBuffs()
			end
	</waypoint>
	<!-- # 12 --><waypoint x="-8212" z="2037" tag="atBull">	
			player:target_NPC(108173) 
			player:fight()			
	</waypoint>
	<!-- #  1 --><waypoint x="-8284" z="2127">
		quest = questlog:getQuest(GetIdName(426557), questtype)
		if quest:isComplete() then
			__WPL:setForcedWaypointType("TRAVEL")
			doMount()
		else
			__WPL:setWaypointIndex(__WPL:findWaypointTag("atBull"))
		end
	</waypoint>
	<!-- #  1 --><waypoint x="-8591" z="2448">	</waypoint>
	<!-- #  2 --><waypoint x="-9016" z="2671">	</waypoint>
	<!-- #  3 --><waypoint x="-9322" z="2828">	</waypoint>
	<!-- #  4 --><waypoint x="-9516" z="2781">
		if swapClass == true then
			if player.Class1 == priClass then
				__WPL:setWaypointIndex(__WPL:findWaypointTag("swappingToSec"))
			end
		end
	</waypoint>
	<!-- #  5 --><waypoint x="-9549" z="2870" tag="resumeturnin">	</waypoint>  -- tag resumeturnin should be here somewhere.
	<!-- #  6 --><waypoint x="-9555" z="2999">	</waypoint>
	<!-- #  7 --><waypoint x="-9603" z="3096">	</waypoint>
	<!-- #  8 --><waypoint x="-9716" z="3165">	</waypoint>
	<!-- #  9 --><waypoint x="-9796" z="3159">
			completequest()
	</waypoint>
	<!-- # 10 --><waypoint x="-9770" z="2998">
		if player.Class1 == priClass then
			__WPL:setWaypointIndex(__WPL:findWaypointTag("getquest"))	
		else
			__WPL:setWaypointIndex(__WPL:findWaypointTag("swappingToPri"))	
		end
	</waypoint>
	<!-- #  5 --><waypoint x="-9770" z="2998" tag="allDone">	</waypoint>
	<!-- #  4 --><waypoint x="-9688" z="2889">	</waypoint>
	<!-- #  3 --><waypoint x="-9446" z="2733">	</waypoint>
	<!-- #  2 --><waypoint x="-9218" z="2938">	</waypoint>
	<!-- #  1 --><waypoint x="-9162" z="3050">
		local totalTime = (os.time()-time)/60
		cprintf (cli.pink,"Total Time spend on these %s quests: %s Minutes\n",questtype,totalTime)
		local averageTime = (totalTime*60)/questsCompleted
		cprintf (cli.pink,"Average time per round: %s Seconds\n",averageTime)
		cprintf (cli.pink,"Completed total of %s quests.\n",questsCompleted)
		if usereset == true then
			local resetsRemaining = inventory:itemTotalCount(202434)
			cprintf (cli.pink,"Used %s Daily Reset Tickets, and has %s remaining.\n",resetsUsed,resetsRemaining)
		end
		error("All Done.")
	</waypoint>	
	
	<!-- Below is the waypoints for swapping pri to sec class to turn in quest. -->
	<!-- ********************************************************************** -->
	<!-- ******  Need to get correct waypoint coordinates for these parts****** -->
	<!-- ********************************************************************** -->
	
	<!-- #  5 --><waypoint x="-9488" z="2672" tag="swappingToSec">	</waypoint>
	<!-- #  5 --><waypoint x="-9397" z="2594">	
		if player.Class1 == priClass then
			swClass()
		end
	</waypoint> -- at the correct waypoint do these actions
	<!-- #  5 --><waypoint x="-9488" z="2672">		</waypoint>
	<!-- #  5 --><waypoint x="-9553" z="2813">
		__WPL:setWaypointIndex(__WPL:findWaypointTag("resumeturnin")) -- ************need to set this name on correct waypoint.
	</waypoint>
	
	<!-- Below is the waypoints for swapping sec to pri class to accept quest. -->
	<!-- #  5 --><waypoint x="-9582" z="2819" tag="swappingToPri">	</waypoint>
	<!-- #  5 --><waypoint x="-9488" z="2672">	</waypoint>
	<!-- #  5 --><waypoint x="-9397" z="2594">	
		if player.Class1 == secClass then
			swClass()
		end
	</waypoint>
	<!-- #  5 --><waypoint x="-9488" z="2672">	</waypoint>
	<!-- #  5 --><waypoint x="-9582" z="2819">	
		__WPL:setWaypointIndex(__WPL:findWaypointTag("getquest")) -- ************need to set this name on correct waypoint.
	</waypoint>
</waypoints>