﻿<?xml version="1.0" encoding="utf-8"?>
<waypoints>
<onload>

startGMDetect()

	settings.profile.mobs = {
			"Agile Shadow Mink", "Agiler Schattennerz",
			"Ancient Demon Bloom", "Uralte Dämonenblume",
			"Scavenger Chupura", "Aasfresser-Chupura",
			"Red Scavenger Bear", "Roter Aasfresserbär",
		}

	
	function getDailyComplete()
		--[[
		local dailycomplete_ptr = 0x9CD1E0
		local dailycomplete_offset = 0xACF4
		return memoryReadBytePtr(getProc(),dailycomplete_ptr,dailycomplete_offset)
		--]]
		local dailyQuestCount, dailyQuestsPerDay;
		repeat dailyQuestCount, dailyQuestsPerDay = RoMScript("Daily_count()") until dailyQuestCount and dailyQuestsPerDay
		return dailyQuestCount;
	end	
		
	function checkDQCount()
		local _tmpQC = getDailyComplete()
		cprintf(cli.lightblue,"%s quests completed.\n",tostring(_tmpQC))
		--[[
		if (_tmpQC == 10) then
			cprintf(cli.lightblue,"Sleepytime.\n")
			player:sleep()
		end
		return _tmpQC;
		--]]
	end

	function getXP()
		-- return memoryReadRepeat("intptr", getProc(), addresses.charExp_address, 0)
		
		local exp
		repeat exp = RoMScript("GetPlayerExp()") until exp
		return exp;
	end
	
	function COO_Merchant(p_npcNameOrId)
		if nil == p_npcNameOrId then p_npcNameOrId = 118102; end
		if type(p_npcNameOrId) == "number" then
			local tmp = p_npcNameOrId;
			repeat p_npcNameOrId = RoMScript("TEXT('Sys" .. tmp .. "_name')"); yrest(500) until p_npcNameOrId
		end
		printf("COO_Merchant(%s)\n", p_npcNameOrId);
		
		player:merchant(p_npcNameOrId)
	end

	function COO_AcceptQuest(p_npcNameOrId, p_questNameOrId)
			if type(p_npcNameOrId) == "number" then
				local tmp = p_npcNameOrId;
				repeat p_npcNameOrId = RoMScript("TEXT('Sys" .. tmp .. "_name')"); yrest(500) until p_npcNameOrId
			end

			if type(p_questNameOrId) == "number" then
				local tmp = p_questNameOrId;
				repeat p_questNameOrId = RoMScript("TEXT('Sys" .. tmp .. "_name')"); yrest(500) until p_questNameOrId
			end

			printf("COO_AcceptQuest(%s, %s)\n", p_npcNameOrId, p_questNameOrId);

			player:target_NPC(p_npcNameOrId)
			yrest(400)
			if nil ~= AcceptQuestByName then
				AcceptQuestByName(p_questNameOrId)
			else
				sendMacro("OnClick_QuestListButton(1,1);"); 
				yrest(400);
				sendMacro("AcceptQuest()"); 
				yrest(400);
			end
	end
	
	function COO_CompleteQuest(p_npcNameOrId, p_questNameOrId)
			if type(p_npcNameOrId) == "number" then
				local tmp = p_npcNameOrId;
				repeat p_npcNameOrId = RoMScript("TEXT('Sys" .. tmp .. "_name')"); yrest(500) until p_npcNameOrId
			end

			if type(p_questNameOrId) == "number" then
				local tmp = p_questNameOrId;
				repeat p_questNameOrId = RoMScript("TEXT('Sys" .. tmp .. "_name')"); yrest(500) until p_questNameOrId
			end

			printf("COO_CompleteQuest(%s, %s)\n", p_npcNameOrId, p_questNameOrId);

			player:target_NPC(p_npcNameOrId)
			yrest(400)
			if nil ~= CompleteQuestByName then
				CompleteQuestByName(p_questNameOrId)
			else
				sendMacro("OnClick_QuestListButton(3,1);"); 
				yrest(400);
				sendMacro("CompleteQuest()"); 
				yrest(400);
			end
	end
</onload>
	<!-- #  1 --><waypoint x="1008" z="13379" y="328">
	__WPL:setForcedWaypointType("RUN")
	if player.Level > 42 then
		__WPL:setWaypointIndex(__WPL:findWaypointTag("travel2ChefFhil"))
	end	</waypoint>
	<!-- #  2 --><waypoint x="935" z="13327" y="322">	</waypoint>
	<!-- #  3 --><waypoint x="905" z="13247" y="323">	</waypoint>
	<!-- #  4 --><waypoint x="768" z="12971" y="323">	
		local dqCount, dqPerDay = RoMScript("Daily_count()");
         if dqCount > 1 then  
		__WPL:setWaypointIndex(__WPL:findWaypointTag("SoftBrush"))
	end
	if player.Level == 41 then
	COO_AcceptQuest(118056, 424151) -- Calm The Fury (once a day)
	else
	__WPL:setWaypointIndex(__WPL:findWaypointTag("SoftBrush"))
	end
	</waypoint>
	<!-- #  7 --><waypoint x="809" z="12970" y="321">	</waypoint>
	<!-- #  8 --><waypoint x="897" z="12375" y="314">	</waypoint>
	<!-- #  9 --><waypoint x="900" z="12291" y="314">	</waypoint>
	<!-- # 10 --><waypoint x="1123" z="12326" y="333" tag="incomplete">		
		player:target_NPC("Ruins Excavator");
		sendMacro("ChoiceOption(1);");yrest(2000);
		sendMacro("ChoiceOption(1);");yrest(2000);
		yrest(7000);
		player:target_NPC("Ruins Excavator");
		sendMacro("ChoiceOption(1);");yrest(2000);
		sendMacro("ChoiceOption(1);");yrest(2000);
		yrest(7000);
	</waypoint>
	<!-- # 17 --><waypoint x="1183" z="12266" y="331">		player:target_NPC("Ruins Excavator");
		sendMacro("ChoiceOption(1);");yrest(2000);
		sendMacro("ChoiceOption(1);");yrest(2000);
		yrest(7000);
		player:target_NPC("Ruins Excavator");
		sendMacro("ChoiceOption(1);");yrest(2000);
		sendMacro("ChoiceOption(1);");yrest(2000);
		yrest(7000);
		player:target_NPC("Ruins Excavator");
		sendMacro("ChoiceOption(1);");yrest(2000);
		sendMacro("ChoiceOption(1);");yrest(2000);
		queststate = getQuestStatus("Calm the Fury")
         if queststate == "incomplete" then
		 __WPL:setWaypointIndex(__WPL:findWaypointTag("incomplete"))
		 end
	</waypoint>
	<!-- # 26 --><waypoint x="895" z="12524" y="312">	</waypoint>
	<!-- # 27 --><waypoint x="850" z="12976" y="320">	</waypoint>
	<!-- # 28 --><waypoint x="774" z="12966" y="322">
	COO_CompleteQuest(118056, 424151) -- Calm The Fury (once a day)
	</waypoint>
	<!-- # 28 --><waypoint x="774" z="12966" y="322" tag="SoftBrush">
	__WPL:setWaypointIndex(__WPL:findWaypointTag("DawaKana"))
	</waypoint>
	<!-- # 33 --><waypoint x="843" z="12963" y="321">
	__WPL:setForcedWaypointType("RUN")
	</waypoint>
	<!-- # 34 --><waypoint x="854" z="12798" y="312" tag="travel2SoftBrush"> setwindow("Soft Mink Pelt")
__WPL:setForcedWaypointType("RUN")	</waypoint>
	<!-- # 35 --><waypoint x="1086" z="12590" y="313">	</waypoint>
	<!-- # 36 --><waypoint x="1600" z="12549" y="209">	</waypoint>
	<!-- # 37 --><waypoint x="1824" z="12302" y="220">	</waypoint>
	<!-- # 38 --><waypoint x="2053" z="12241" y="212">	</waypoint>
	<!-- # 39 --><waypoint x="2523" z="11501" y="140">	</waypoint>
	<!-- # 40 --><waypoint x="2721" z="11482" y="151">	</waypoint>
	<!-- # 41 --><waypoint x="3250" z="10570" y="141">	</waypoint>
	<!-- # 42 --><waypoint x="3370" z="10494" y="153">	</waypoint>
	<!-- # 43 --><waypoint x="3377" z="9998" y="139">	</waypoint>
	<!-- # 44 --><waypoint x="3545" z="9964" y="147">	</waypoint>
	<!-- # 45 --><waypoint x="3595" z="9917" y="143">	</waypoint>
	<!-- # 46 --><waypoint x="3592" z="10084" y="197" tag="SoftBrushStart">
	__WPL:setForcedWaypointType("NORMAL")
	</waypoint>
	<!-- # 48 --><waypoint x="3477" z="10121" y="186">	</waypoint>
	<!-- # 49 --><waypoint x="3497" z="10522" y="186">	</waypoint>
	<!-- # 50 --><waypoint x="3569" z="10789" y="189">	</waypoint>
	<!-- # 51 --><waypoint x="3572" z="11140" y="185">	</waypoint>
	<!-- # 52 --><waypoint x="3497" z="11492" y="189">	</waypoint>
	<!-- # 53 --><waypoint x="3622" z="11654" y="189">	</waypoint>
	<!-- # 54 --><waypoint x="4119" z="11629" y="194">	</waypoint>
	<!-- # 55 --><waypoint x="4372" z="11359" y="191">	</waypoint>
	<!-- # 56 --><waypoint x="4377" z="10831" y="190">	</waypoint>
	<!-- # 57 --><waypoint x="4138" z="10568" y="187">	</waypoint>
	<!-- # 58 --><waypoint x="3887" z="10519" y="184">	</waypoint>
	<!-- # 59 --><waypoint x="3874" z="10040" y="187">	</waypoint>
	<!-- # 60 --><waypoint x="3607" z="10041" y="186">
	if 70 > inventory:getItemCount(209427) or getDailyComplete() > 9 then
		__WPL:setWaypointIndex(__WPL:findWaypointTag("SoftBrushStart"))
	end
	</waypoint>
	<!-- # 62 --><waypoint x="3571" z="10074" y="198">	</waypoint>
	<!-- # 63 --><waypoint x="3396" z="10465" y="184">	</waypoint>
	<!-- # 64 --><waypoint x="3306" z="10554" y="136">	</waypoint>
	<!-- # 65 --><waypoint x="3220" z="10647" y="155">	</waypoint>
	<!-- # 66 --><waypoint x="3047" z="10868" y="133">	</waypoint>
	<!-- # 67 --><waypoint x="2991" z="11015" y="132">	</waypoint>
	<!-- # 68 --><waypoint x="2685" z="11675" y="139">	</waypoint>
	<!-- # 69 --><waypoint x="2376" z="11809" y="132">	</waypoint>
	<!-- # 70 --><waypoint x="1865" z="12533" y="213">	</waypoint>
	<!-- # 71 --><waypoint x="1076" z="12602" y="313">	</waypoint>
	<!-- # 72 --><waypoint x="798" z="12973" y="322">	</waypoint>
	<!-- # 73 --><waypoint x="766" z="12967" y="323" tag="DawaKana">
	while inventory:getItemCount(209427) > 9 and 10 > getDailyComplete() and player.Level == 41 do
	
	COO_AcceptQuest(118056, 424153) --
	COO_CompleteQuest(118056, 424153) -- 
		
	checkDQCount()
	player:update()
	
	end
	
	if player.Level > 41 then
			if player.Current_waypoint_type == WPT_NORMAL then
				__WPL:setForcedWaypointType()
				__WPL:setWaypointIndex(__WPL:findWaypointTag("ToStoneGiftDaily"))
			end
			yrest(100)
		else
				__WPL:setWaypointIndex(__WPL:findWaypointTag("travel2SoftBrush"))
	end

	</waypoint>
	<!-- # 76 --><waypoint x="888" z="13055" y="323">	</waypoint>
	<!-- # 77 --><waypoint x="937" z="13091" y="323">	</waypoint>
	<!-- # 78 --><waypoint x="1022" z="13121" y="322">	</waypoint>
	<!-- # 79 --><waypoint x="1066" z="13132" y="326">	</waypoint>
	<!-- # 80 --><waypoint x="1007" z="13378" y="328">	</waypoint>
	<!-- #  1 --><waypoint x="1046" z="13342" y="323" >
	__WPL:setForcedWaypointType("RUN")
	if player.Level > 42 then
		__WPL:setWaypointIndex(__WPL:findWaypointTag("travel2ChefFhil"))
	end
	</waypoint>
	<!-- #  2 --><waypoint x="1195" z="13269" y="313" tag="travel2ChefFhil">	</waypoint>
	<!-- #  3 --><waypoint x="1255" z="13190" y="310"> setwindow("Sweet Demon Bloom Honey")	</waypoint>
	<!-- #  4 --><waypoint x="1723" z="13320" y="318">	</waypoint>
	<!-- #  5 --><waypoint x="2249" z="13146" y="216">	</waypoint>
	<!-- #  6 --><waypoint x="4361" z="13156" y="204">	</waypoint>
	<!-- #  7 --><waypoint x="4942" z="12980" y="209">	</waypoint>
	<!-- #  8 --><waypoint x="5481" z="12884" y="200">	</waypoint>
	<!-- #  9 --><waypoint x="5695" z="12969" y="167">	</waypoint>
	<!-- # 10 --><waypoint x="5892" z="12826" y="129">	</waypoint>
	<!-- # 11 --><waypoint x="6098" z="12720" y="130">	</waypoint>
	<!-- # 12 --><waypoint x="6195" z="12514" y="125">	</waypoint>
	<!-- # 13 --><waypoint x="6195" z="12514" y="125">	</waypoint>
	<!-- # 14 --><waypoint x="6561" z="12409" y="43">
	if player.Level > 43 then
		if player.Class1 == CLASS_PRIEST or player.Class1 == CLASS_DRUID then 
		__WPL:setWaypointIndex(__WPL:findWaypointTag("2Chupra"))
		__WPL:setForcedWaypointType("RUN")
		end
	end
	printf("Bloomfarm or not?\n")
	</waypoint>
	<!-- # 15 --><waypoint x="6929" z="12300" y="-47">	</waypoint>
	<!-- # 16 --><waypoint x="7188" z="12310" y="-77">	</waypoint>
	<!-- # 17 --><waypoint x="7426" z="12418" y="-78">	</waypoint>
	<!-- # 18 --><waypoint x="7413" z="12388" y="-78" tag="atChef">		
	while inventory:getItemCount(209436) > 5 and 10 > getDailyComplete() and player.Level == 43 do
	
	COO_AcceptQuest(117776, 424161) -- Chef Fhil, ancient demon bloom, sweet demon bloom honey:209436
	COO_CompleteQuest(117776, 424161) -- Chef Fhil, ancient demon bloom, sweet demon bloom honey:209436
		
	checkDQCount()
	player:update()
	
	end
	
	if  getXP() > 900000 or player.Level > 43 then
			if player.Current_waypoint_type == WPT_NORMAL then
				__WPL:setForcedWaypointType()
			end
			yrest(100)
		else
			if player.Current_waypoint_type == WPT_RUN then
				__WPL:setForcedWaypointType("NORMAL")
			end		
			__WPL:setWaypointIndex(__WPL:findWaypointTag("killMoreBloom"))
	end
	</waypoint>
	<!-- # 22 --><waypoint x="7423" z="12415" y="-78" tag="killMoreBloom"> setwindow("Sweet Demon Bloom Honey")	</waypoint>
	<!-- # 23 --><waypoint x="7290" z="12369" y="-82">	</waypoint>
	<!-- # 24 --><waypoint x="7148" z="12294" y="-77">	</waypoint>
	<!-- # 25 --><waypoint x="6870" z="12279" y="-46">	</waypoint>
	<!-- # 26 --><waypoint x="6698" z="12282" y="-2">
	if player.Level > 43 then
		__WPL:setWaypointIndex(__WPL:findWaypointTag("2Chupra"))
		__WPL:setForcedWaypointType("RUN")
		end
	</waypoint>
	<!-- # 27 --><waypoint x="6612" z="12164" y="45" tag="bloomFarm">
	changeProfileOption("MAX_TARGET_DIST", 100)	
	</waypoint>
	<!-- # 28 --><waypoint x="6582" z="11976" y="67">	</waypoint>
	<!-- # 29 --><waypoint x="6493" z="12251" y="54">	</waypoint>
	<!-- # 30 --><waypoint x="6279" z="12498" y="105">	</waypoint>
	<!-- # 31 --><waypoint x="6148" z="12487" y="131">	</waypoint>
	<!-- # 32 --><waypoint x="6185" z="12648" y="128">	</waypoint>
	<!-- # 33 --><waypoint x="6572" z="12545" y="53">	</waypoint>
	<!-- # 34 --><waypoint x="6695" z="12476" y="33">	</waypoint>
	<!-- # 35 --><waypoint x="6734" z="12294" y="-15">
	if 10 > inventory:getItemCount(209436) or getDailyComplete() > 9 then
		__WPL:setWaypointIndex(__WPL:findWaypointTag("bloomFarm"))
	end
	</waypoint>	
	<!-- #  1 --><waypoint x="6868" z="12263" y="-47" tag="bloomFarm2Chef">	</waypoint>
	<!-- #  2 --><waypoint x="7166" z="12280" y="-77">	</waypoint>
	<!-- #  3 --><waypoint x="7413" z="12437" y="-78">	</waypoint>
	<!-- #  4 --><waypoint x="7418" z="12396" y="-78">	
	__WPL:setWaypointIndex(__WPL:findWaypointTag("atChef"))
	</waypoint>
	<!-- #  1 --><waypoint x="6970" z="12238" y="-59" tag="2Chupra">	</waypoint>
	<!-- #  2 --><waypoint x="7215" z="12016" y="-85">	</waypoint>
	<!-- #  3 --><waypoint x="7452" z="11892" y="-79">	</waypoint>
	<!-- #  4 --><waypoint x="7858" z="11318" y="-75">	</waypoint>
	<!-- #  5 --><waypoint x="7980" z="10803" y="-117">	</waypoint>
	<!-- #  6 --><waypoint x="8219" z="10411" y="-127">	</waypoint>
	<!-- #  7 --><waypoint x="8779" z="10363" y="-20">	</waypoint>
	<!-- #  8 --><waypoint x="8846" z="10339" y="-19">	</waypoint>
	<!-- #  9 --><waypoint x="9127" z="10226" y="-20">	</waypoint>
	<!-- # 10 --><waypoint x="9558" z="10284" y="-19">	</waypoint>
	<!-- # 11 --><waypoint x="10029" z="10285" y="-33">	</waypoint>
	<!-- # 12 --><waypoint x="10022" z="9355" y="0">	</waypoint>
	<!-- # 13 --><waypoint x="10022" z="9355" y="0">	</waypoint>
	<!-- # 14 --><waypoint x="10091" z="9366" y="4">		
	COO_AcceptQuest(118060, 424165) -- Sofie Paichu 
	</waypoint>
	<!-- # 17 --><waypoint x="10021" z="9362" y="0" tag="ChupraHunt">	
	if player.Level > 44 then 
	__WPL:setWaypointIndex(__WPL:findWaypointTag("22Bears"))
	elseif player.Current_waypoint_type == WPT_RUN then
		__WPL:setForcedWaypointType("NORMAL")
	end	
	</waypoint>
	<!-- # 18 --><waypoint x="10044" z="9772" y="-6">	</waypoint>
	<!-- # 19 --><waypoint x="9980" z="10048" y="-45" tag="MoreChupuras">	</waypoint>
	<!-- # 20 --><waypoint x="9827" z="10087" y="-42"> queststate = getQuestStatus("Shut Them Up")
         if queststate == "complete" then
		 __WPL:setForcedWaypointType("RUN")
		 __WPL:setWaypointIndex(__WPL:findWaypointTag("toDeliver"))
		 end	</waypoint>
	<!-- # 21 --><waypoint x="9827" z="10087" y="-42"> queststate = getQuestStatus("Shut Them Up")
         if queststate == "complete" then
		 __WPL:setForcedWaypointType("RUN")
		 __WPL:setWaypointIndex(__WPL:findWaypointTag("toDeliver"))
		 end	</waypoint>
	<!-- # 22 --><waypoint x="9725" z="10064" y="-21"> queststate = getQuestStatus("Shut Them Up")
         if queststate == "complete" then
		 __WPL:setForcedWaypointType("RUN")
		 __WPL:setWaypointIndex(__WPL:findWaypointTag("toDeliver"))
		 end	</waypoint>
	<!-- # 23 --><waypoint x="9627" z="9924" y="-5"> queststate = getQuestStatus("Shut Them Up")
         if queststate == "complete" then
		 __WPL:setForcedWaypointType("RUN")
		 __WPL:setWaypointIndex(__WPL:findWaypointTag("toDeliver"))
		 end	</waypoint>
	<!-- # 24 --><waypoint x="9749" z="9854" y="2"> queststate = getQuestStatus("Shut Them Up")
         if queststate == "complete" then
		 __WPL:setForcedWaypointType("RUN")
		 __WPL:setWaypointIndex(__WPL:findWaypointTag("toDeliver"))
		 end	</waypoint>
	<!-- # 25 --><waypoint x="10026" z="9676" y="-2" tag="toDeliver">  queststate = getQuestStatus("Shut Them Up")
         if queststate == "incomplete" then
		 __WPL:setWaypointIndex(__WPL:findWaypointTag("MoreChupuras"))
		 end
		 </waypoint>
	<!-- # 27 --><waypoint x="10025" z="9351" y="0" tag="ChupraDeliver"></waypoint>
	<!-- # 28 --><waypoint x="10095" z="9370" y="4">
	COO_CompleteQuest(118060, 424165) -- Sofie Paichu
	
	checkDQCount()
	player:update()
	
	
	if  player.Level == 44 then
			if player.Current_waypoint_type == WPT_RUN then
				__WPL:setForcedWaypointType("NORMAL")
			end	
			COO_AcceptQuest(118060, 424165) -- Sofie Paichu 
			__WPL:setWaypointIndex(__WPL:findWaypointTag("ChupraHunt"))
	end
	</waypoint>
	<!-- #  1 ><waypoint x="10047" z="9112" y="0">	</waypoint-->
	<!-- #  1 --><waypoint x="10020" z="9347" y="0" tag="22Bears">	</waypoint>
	<!-- #  2 --><waypoint x="10020" z="8765" y="0">	</waypoint>
	<!-- #  3 --><waypoint x="10070" z="8718" y="-3">	</waypoint>
	<!-- #  4 --><waypoint x="10074" z="8680" y="-1">
	COO_AcceptQuest(118062, 424167) -- Qobbis Kenn
	</waypoint>
	<!-- #  6 --><waypoint x="10053" z="8740" y="0" tag="2Bears">
	setwindow("Bloody Bear Meat")
		if player.Level > 45 then
__WPL:setWaypointIndex(__WPL:findWaypointTag("2Corpses"))
	end
	if player.Current_waypoint_type == WPT_NORMAL then
		__WPL:setForcedWaypointType("RUN")
	end
	changeProfileOption("MAX_TARGET_DIST", 150)
	</waypoint>
	<!-- #  7 --><waypoint x="9986" z="8817" y="0">	</waypoint>
	<!-- #  8 --><waypoint x="10025" z="9059" y="0">	</waypoint>
	<!-- #  9 --><waypoint x="10050" z="9606" y="0">	</waypoint>
	<!-- # 10 --><waypoint x="10073" z="9634" y="0">	</waypoint>
	<!-- # 11 --><waypoint x="10382" z="9742" y="-5">	</waypoint>
	<!-- # 12 --><waypoint x="10551" z="10184" y="-40">	</waypoint>
	<!-- # 13 --><waypoint x="10519" z="10197" y="-28">	</waypoint>
	<!-- # 14 --><waypoint x="10551" z="10262" y="0">	</waypoint>
	<!-- # 15 --><waypoint x="10546" z="10538" y="-24" tag="huntBears">
	if player.Current_waypoint_type == WPT_RUN then
		__WPL:setForcedWaypointType("NORMAL")
	end	
	</waypoint>
	<!-- # 17 --><waypoint x="10739" z="10603" y="-28">	</waypoint>
	<!-- # 18 --><waypoint x="10984" z="10687" y="-4">	</waypoint>
	<!-- # 19 --><waypoint x="11278" z="10730" y="-18">	</waypoint>
	<!-- # 20 --><waypoint x="11414" z="10791" y="-24">	</waypoint>
	<!-- # 21 --><waypoint x="11271" z="10942" y="-5">	</waypoint>
	<!-- # 22 --><waypoint x="11098" z="10968" y="0">	</waypoint>
	<!-- # 23 --><waypoint x="11161" z="11042" y="-10">	</waypoint>
	<!-- # 24 --><waypoint x="11149" z="11178" y="-6">	</waypoint>
	<!-- # 25 --><waypoint x="11203" z="11309" y="38">	</waypoint>
	<!-- # 26 --><waypoint x="10943" z="11506" y="79">	</waypoint>
	<!-- # 27 --><waypoint x="10765" z="11451" y="66">	</waypoint>
	<!-- # 28 --><waypoint x="10728" z="11283" y="21">	</waypoint>
	<!-- # 29 --><waypoint x="10540" z="10958" y="-8">	</waypoint>
	<!-- # 30 --><waypoint x="10535" z="10875" y="11">	</waypoint>
	<!-- # 31 --><waypoint x="10402" z="10701" y="5">	</waypoint>
	<!-- # 32 --><waypoint x="10541" z="10549" y="-23">
	if 90 > inventory:getItemCount(209440) or getDailyComplete() > 9 or 45 > player.Level then
			__WPL:setWaypointIndex(__WPL:findWaypointTag("huntBears"))
	end
	</waypoint>
	<!-- # 34 --><waypoint x="10528" z="10368" y="-14" tag="2Qobbis">
	if player.Current_waypoint_type == WPT_NORMAL then
		__WPL:setForcedWaypointType("RUN")
	end	</waypoint>
	<!-- # 35 --><waypoint x="10482" z="10267" y="0">	</waypoint>
	<!-- # 36 --><waypoint x="10601" z="10127" y="-48">	</waypoint>
	<!-- # 37 --><waypoint x="10494" z="9902" y="-38">	</waypoint>
	<!-- # 38 --><waypoint x="10498" z="9858" y="-21">	</waypoint>
	<!-- # 39 --><waypoint x="10456" z="9829" y="-3">	</waypoint>
	<!-- # 40 --><waypoint x="10288" z="9644" y="2">	</waypoint>
	<!-- # 41 --><waypoint x="10072" z="9636" y="0">	</waypoint>
	<!-- # 42 --><waypoint x="10029" z="9604" y="0">	</waypoint>
	<!-- # 43 --><waypoint x="10040" z="8881" y="0">	</waypoint>
	<!-- # 44 --><waypoint x="10016" z="8756" y="0">	</waypoint>
	<!-- # 45 --><waypoint x="10071" z="8723" y="-3">	</waypoint>
	<!-- # 46 --><waypoint x="10072" z="8672" y="0">
	while inventory:getItemCount(209440) > 9 and 10 > getDailyComplete() and player.Level == 45 do
	
	COO_AcceptQuest(118062, 424167) -- Qobbis Kenn, Red Scavenger Bear, Bloody Bear Meat:209440
	COO_CompleteQuest(118062, 424167) -- Qobbis Kenn, Red Scavenger Bear, Bloody Bear Meat:209440
		
	checkDQCount()
	player:update()
	
	end
	
		__WPL:setWaypointIndex(__WPL:findWaypointTag("2Bears"))
	
	
	</waypoint>
	
	-- Alleexx2 additions
	
	<!-- #  1 --><waypoint x="10087" z="8704" y="-2" tag="2Corpses"> 	if player.Current_waypoint_type == WPT_NORMAL then
		__WPL:setForcedWaypointType("RUN")
	end	</waypoint>
	<!-- #  2 --><waypoint x="10142" z="8775" y="0"> 	</waypoint>
	<!-- #  3 --><waypoint x="10071" z="8916" y="0">	</waypoint>
	<!-- #  4 --><waypoint x="10032" z="9052" y="0">	</waypoint>
	<!-- #  5 --><waypoint x="10038" z="9569" y="0">	</waypoint>
	<!-- #  6 --><waypoint x="10072" z="9637" y="0">	</waypoint>
	<!-- #  7 --><waypoint x="10309" z="9642" y="4">	</waypoint>
	<!-- #  8 --><waypoint x="10553" z="9922" y="-48"> 
--	player:sleep();
	player:target_NPC("Stable Manager");
	yrest(100);
sendMacro("ChoiceOption(3)")
yrest(1000);
sendMacro('StaticPopup_OnClick(StaticPopup1, 1);')
yrest(1000);
player:mount();	</waypoint>
	<!-- #  9 --><waypoint x="10555" z="10177" y="-25">	</waypoint>
	<!-- # 10 --><waypoint x="10434" z="10223" y="-1">	</waypoint>
	<!-- # 11 --><waypoint x="10453" z="10337" y="4">	</waypoint>
	<!-- # 12 --><waypoint x="11013" z="10548" y="0">	</waypoint>
	<!-- # 13 --><waypoint x="11240" z="10598" y="0">	</waypoint>
	<!-- # 14 --><waypoint x="11408" z="10684" y="-8">	</waypoint>
	<!-- # 15 --><waypoint x="11635" z="10692" y="-10">	</waypoint>
	<!-- # 16 --><waypoint x="11899" z="10683" y="-7">	</waypoint>
	<!-- # 17 --><waypoint x="12154" z="10611" y="-5">	</waypoint>
	<!-- # 18 --><waypoint x="12395" z="10403" y="8">	</waypoint>
	<!-- # 19 --><waypoint x="12572" z="9858" y="16">	</waypoint>
	<!-- # 20 --><waypoint x="12693" z="9686" y="6"> 	</waypoint>
	<!-- # 21 --><waypoint x="12886" z="9452" y="17"> 	</waypoint>
	<!-- # 22 --><waypoint x="12875" z="8550" y="72"> printf("Dangerous so pass using the bot. Press delete to try or pass manually and then restart the script when you've left the forest\n")
	player:sleep(); 	</waypoint>
	<!-- # 23 --><waypoint x="12839" z="7772" y="74"> 	</waypoint>
	<!-- # 24 --><waypoint x="12743" z="7574" y="83">	</waypoint>
	<!-- # 25 --><waypoint x="12756" z="7331" y="75">	</waypoint>
	<!-- # 26 --><waypoint x="12911" z="6869" y="89">	</waypoint>
	<!-- # 27 --><waypoint x="12899" z="6752" y="89">	</waypoint>
	<!-- # 28 --><waypoint x="12830" z="6483" y="66">	</waypoint>
	<!-- # 29 --><waypoint x="12815" z="6225" y="83">	</waypoint>
	<!-- # 30 --><waypoint x="12868" z="6057" y="91">	</waypoint>
	<!-- # 31 --><waypoint x="12839" z="5938" y="95">	</waypoint>
	<!-- # 32 --><waypoint x="12940" z="5631" y="19">	</waypoint>
	<!-- # 33 --><waypoint x="12920" z="5413" y="-5">	</waypoint>
	<!-- # 34 --><waypoint x="12910" z="5294" y="-8">	</waypoint>
	<!-- # 35 --><waypoint x="12974" z="5000" y="-14">	</waypoint>
	<!-- # 36 --><waypoint x="13205" z="4706" y="47">	</waypoint>
	<!-- # 37 --><waypoint x="12934" z="4291" y="73">	</waypoint>
	<!-- # 38 --><waypoint x="12881" z="3969" y="71" tag="StartOfCorpses">		
	changeProfileOption("MAX_TARGET_DIST", 200)
setwindow("Stinky Corpse Grease")	
		__WPL:setForcedWaypointType("NORMAL")
	changeOptionFriendMob("mob", "Wandering Corpse", "Add")
	</waypoint>
	<!-- # 44 --><waypoint x="12821" z="3758" y="79">	</waypoint>
	<!-- # 45 --><waypoint x="12681" z="3672" y="88">	</waypoint>
	<!-- # 46 --><waypoint x="12655" z="3463" y="89">	</waypoint>
	<!-- # 47 --><waypoint x="12876" z="3366" y="77">	</waypoint>
	<!-- # 48 --><waypoint x="12750" z="3076" y="71">			if 5 > inventory:getItemCount(209446) then
			__WPL:setWaypointIndex(__WPL:findWaypointTag("StartOfCorpses"))
	end
	</waypoint>
	<!-- # 51 --><waypoint x="12769" z="2659" y="72">	</waypoint>
	<!-- # 52 --><waypoint x="12848" z="2485" y="69">	</waypoint>
	<!-- # 53 --><waypoint x="12833" z="2451" y="65">	</waypoint>
	<!-- # 54 --><waypoint x="12800" z="2426" y="64">	</waypoint>
	<!-- # 55 --><waypoint x="12812" z="2257" y="72">	</waypoint>
	<!-- # 56 --><waypoint x="12908" z="2077" y="70">	</waypoint>
	<!-- # 57 --><waypoint x="12886" z="1940" y="69">		player:target_NPC("Ailic's Aide");
	</waypoint>
	<!-- # 59 --><waypoint x="12878" z="1835" y="70" tag="turnincorpses">	
	while inventory:getItemCount(209446) > 4 and 10 > getDailyComplete() do
	
	COO_AcceptQuest(118068, 424182) -- Wunnis Kitte, Turned into ashes, Wandering Corpse, Stinky Corpse Grease:209446
	COO_CompleteQuest(118068, 424182) -- Wunnis Kitte, Turned into ashes, Wandering Corpse, Stinky Corpse Grease:209446 
		
	checkDQCount()
	player:update()
	end
	</waypoint>
	<!-- #  1 --><waypoint x="12941" z="1848" y="55">	</waypoint>
	<!-- # 61 --><waypoint x="13099" z="1721" y="58" tag="LiwagelStart">
	setwindow("Silvermoon Lake Frog Meat, Grass of Loathing")
	if 10 > getDailyComplete() then
	COO_AcceptQuest(118067, 424172) -- Liwagel, Dangerous Worm Eggs, Grass of Loathing
	COO_AcceptQuest(118067, 424173) -- Liwagel, The Harpies can't resist..., Silvermoon Lake Frog Meat
else
player:sleep()
end
	if player.Level > 46 then
__WPL:setWaypointIndex(__WPL:findWaypointTag("ToVines"))
end
	</waypoint>
	<!-- # 63 --><waypoint x="12880" z="1610" y="70">	</waypoint>
	<!-- # 64 --><waypoint x="12504" z="1661" y="69" tag="grass">		player:target_Object("Grass of Loathing");
	</waypoint>
		<!-- #  1 --><waypoint x="12369" z="1902" y="70">		player:target_Object("Grass of Loathing"); 
if inventory:getItemCount(209444) > 4 then
	__WPL:setWaypointIndex(__WPL:findWaypointTag("frogs"))
	end
	</waypoint>
	<!-- #  3 --><waypoint x="12366" z="1971" y="71">	</waypoint>
	<!-- #  4 --><waypoint x="12445" z="2051" y="73">	
	player:target_Object("Grass of Loathing");
	</waypoint>
	<!-- #  6 --><waypoint x="12363" z="1951" y="70" tag="frogs">
	changeProfileOption("MAX_TARGET_DIST", 50)
	changeOptionFriendMob("friend", "Silvermoon Dragonfly", "Add")
	changeOptionFriendMob("mob", "Silvermoon Lake Frog", "Add")
	changeOptionFriendMob("mob", "Young Silvermoon Frog", "Add")
		if player.Current_waypoint_type == WPT_RUN then
		__WPL:setForcedWaypointType("NORMAL")
	end	
	</waypoint>
	<!-- #  8 --><waypoint x="12340" z="1762" y="57"> changeProfileOption("MAX_TARGET_DIST", 100)	</waypoint>
	<!-- #  9 --><waypoint x="12460" z="1582" y="65">	</waypoint>
	<!-- # 10 --><waypoint x="12743" z="1578" y="70">		if player.Current_waypoint_type == WPT_NORMAL then
		__WPL:setForcedWaypointType("RUN")
	end
	if inventory:getItemCount(209444) > 4 or inventory:getItemCount(209447) > 9 then
	__WPL:setWaypointIndex(__WPL:findWaypointTag("LiwagelTurnin"))
	else
	__WPL:setWaypointIndex(__WPL:findWaypointTag("grass"))
	end
	</waypoint>
	<!-- # 16 --><waypoint x="12873" z="1616" y="70" tag="LiwagelTurnin"> changeProfileOption("MAX_TARGET_DIST", 200)	</waypoint>
	<!-- # 17 --><waypoint x="13099" z="1721" y="58">
if 10 > getDailyComplete() then
	COO_CompleteQuest(118067, 424172) -- Liwagel, Dangerous Worm Eggs, Grass of Loathing
	checkDQCount()
	player:update()
	if player.Level == 46 then
	COO_CompleteQuest(118067, 424173) -- Liwagel, The Harpies can't resist..., Silvermoon Lake Frog Meat
	checkDQCount()
	player:update()
	end
	__WPL:setWaypointIndex(__WPL:findWaypointTag("LiwagelStart"))
	else
player:sleep()
end
	</waypoint>
		<!-- #  1 --><waypoint x="13063" z="1755" y="56" tag="ToVines">	</waypoint>
	<!-- #  2 --><waypoint x="12798" z="1970" y="50">	</waypoint>
	<!-- #  3 --><waypoint x="12746" z="2113" y="54">	</waypoint>
	<!-- #  4 --><waypoint x="12761" z="2400" y="51">	</waypoint>
	<!-- #  5 --><waypoint x="12734" z="2411" y="52">	</waypoint>
	<!-- #  6 --><waypoint x="12702" z="2449" y="59">	</waypoint>
	<!-- #  7 --><waypoint x="12597" z="2408" y="64">	</waypoint>
	<!-- #  8 --><waypoint x="12399" z="2375" y="88">	</waypoint>
	<!-- #  9 --><waypoint x="12203" z="2405" y="93">	</waypoint>
	<!-- # 10 --><waypoint x="12098" z="2516" y="82">	</waypoint>
	<!-- # 11 --><waypoint x="11966" z="2600" y="82">	</waypoint>
	<!-- # 12 --><waypoint x="11939" z="2823" y="86">		
	</waypoint>
	<!-- # 14 --><waypoint x="11809" z="2877" y="85">	</waypoint>
	<!-- # 15 --><waypoint x="11589" z="2921" y="88">	
	</waypoint>
	<!-- # 17 --><waypoint x="11538" z="3019" y="88">	</waypoint>
	<!-- # 18 --><waypoint x="11419" z="3046" y="110">	</waypoint>
	<!-- # 19 --><waypoint x="11214" z="3060" y="136">	</waypoint>
	<!-- # 20 --><waypoint x="10990" z="3155" y="128">	</waypoint>
	<!-- # 21 --><waypoint x="10763" z="3548" y="128">	</waypoint>
	<!-- # 22 --><waypoint x="10581" z="4080" y="154">	</waypoint>
	<!-- # 23 --><waypoint x="10572" z="4519" y="199">	</waypoint>
	<!-- # 24 --><waypoint x="10578" z="4783" y="203">	</waypoint>
	<!-- # 25 --><waypoint x="10439" z="5418" y="208">	</waypoint>
	<!-- # 26 --><waypoint x="10329" z="5432" y="212" tag="FionaStart">		setwindow("Empty Bottles")	
	if 10 > getDailyComplete() and player.Level == 47 then
	COO_AcceptQuest(118070, 424176) -- Fiona Andus, The elves' defenses
else
player:sleep()
end
	</waypoint>
	<!-- # 28 --><waypoint x="10338" z="5553" y="208">	</waypoint>
	<!-- # 29 --><waypoint x="10260" z="5546" y="209" tag="Vines">		player:target_Object("Protector Vine");
	if inventory:getItemCount(209459) > 4 then -- Empty Bottles
	__WPL:setWaypointIndex(__WPL:findWaypointTag("Turnin"))
	end
	</waypoint>
		<!-- # 29 --><waypoint x="10260" z="5546" y="209">		player:target_Object("Protector Vine");
	if inventory:getItemCount(209459) > 4 then -- Empty Bottles
	__WPL:setWaypointIndex(__WPL:findWaypointTag("Turnin"))
	end
	</waypoint>
	<!-- # 32 --><waypoint x="10209" z="5574" y="208">		player:target_Object("Protector Vine");
		if inventory:getItemCount(209459) > 4 then -- Empty Bottles
	__WPL:setWaypointIndex(__WPL:findWaypointTag("Turnin"))
	end
	</waypoint>
	<!-- # 34 --><waypoint x="10185" z="5581" y="209">	</waypoint>
		<!-- #  1 --><waypoint x="10184" z="5584" y="208">
		player:target_Object("Protector Vine");
			if inventory:getItemCount(209459) > 4 then -- Empty Bottles
	__WPL:setWaypointIndex(__WPL:findWaypointTag("Turnin"))
	end
	</waypoint>
	<!-- #  2 --><waypoint x="10172" z="5629" y="208">		player:target_Object("Protector Vine");
		if inventory:getItemCount(209459) > 4 then -- Empty Bottles
	__WPL:setWaypointIndex(__WPL:findWaypointTag("Turnin"))
	end
	</waypoint>
	<!-- #  5 --><waypoint x="10268" z="5765" y="216">		player:target_Object("Protector Vine");
		if inventory:getItemCount(209459) > 4 then -- Empty Bottles
	__WPL:setWaypointIndex(__WPL:findWaypointTag("Turnin"))
	end
	</waypoint>
		<!-- #  5 --><waypoint x="10268" z="5765" y="216">		player:target_Object("Protector Vine");
		if inventory:getItemCount(209459) > 4 then -- Empty Bottles
	__WPL:setWaypointIndex(__WPL:findWaypointTag("Turnin"))
	end
	</waypoint>
		<!-- #  5 --><waypoint x="10268" z="5765" y="216">		player:target_Object("Protector Vine");
		if inventory:getItemCount(209459) > 4 then -- Empty Bottles
	__WPL:setWaypointIndex(__WPL:findWaypointTag("Turnin"))
	end
	</waypoint>
	<!-- #  9 --><waypoint x="10268" z="5714" y="214">	</waypoint>
	<!-- # 10 --><waypoint x="10327" z="5705" y="216">		player:target_Object("Protector Vine");
		if inventory:getItemCount(209459) > 4 then -- Empty Bottles
	__WPL:setWaypointIndex(__WPL:findWaypointTag("Turnin"))
	end
	</waypoint>
		<!-- # 10 --><waypoint x="10327" z="5705" y="216">		player:target_Object("Protector Vine");
		if inventory:getItemCount(209459) > 4 then -- Empty Bottles
	__WPL:setWaypointIndex(__WPL:findWaypointTag("Turnin"))
	end
	</waypoint>
	<!-- # 13 --><waypoint x="10326" z="5650" y="210">		player:target_Object("Protector Vine");
		if inventory:getItemCount(209459) > 4 then -- Empty Bottles
	__WPL:setWaypointIndex(__WPL:findWaypointTag("Turnin"))
	else
	__WPL:setWaypointIndex(__WPL:findWaypointTag("Vines"))
	end
	</waypoint>
	<!-- # 15 --><waypoint x="10280" z="5609" y="208" tag="Turnin">	
	</waypoint>
	<!-- # 17 --><waypoint x="10377" z="5517" y="208">	</waypoint>
	<!-- # 18 --><waypoint x="10325" z="5434" y="212" tag="FionaEnd">		if 10 > getDailyComplete() and player.Level == 47 then
	COO_CompleteQuest(118070, 424176) -- Fiona Andus, The elves' defenses
	checkDQCount()
	player:update()
	__WPL:setWaypointIndex(__WPL:findWaypointTag("FionaStart"))
	else
player:sleep()
end
	</waypoint>
	-- Lvl 42 daily
	<!-- #  1 --><waypoint x="830" z="12960" y="321" tag="ToStoneGiftDaily"> setwindow("Stone Gift")	</waypoint>
	<!-- #  2 --><waypoint x="931" z="12704" y="313">	</waypoint>
	<!-- #  3 --><waypoint x="1066" z="12634" y="313">	</waypoint>
	<!-- #  4 --><waypoint x="1352" z="12583" y="309">	</waypoint>
	<!-- #  5 --><waypoint x="1597" z="12580" y="209">				changeOptionFriendMob("mob", "Stone Protector", "Add")	
	if player.Current_waypoint_type == WPT_RUN then
				__WPL:setForcedWaypointType("NORMAL")
			end	
	</waypoint>
	<!-- #  8 --><waypoint x="1633" z="12517" y="209">	</waypoint>
	<!-- #  9 --><waypoint x="2140" z="12361" y="211">	</waypoint>
	<!-- # 10 --><waypoint x="2312" z="12056" y="177">	</waypoint>
	<!-- # 11 --><waypoint x="2174" z="11801" y="137" tag="StoneGiftRoute">	
	</waypoint>
	<!-- # 13 --><waypoint x="1918" z="11894" y="134">	</waypoint>
	<!-- # 14 --><waypoint x="2206" z="11691" y="137">	</waypoint>
	<!-- # 15 --><waypoint x="2336" z="11660" y="132">	</waypoint>
	<!-- # 16 --><waypoint x="2585" z="11722" y="131">	</waypoint>
	<!-- # 17 --><waypoint x="2844" z="11641" y="132" tag="stonecheck">
   if player.Level > 42 then
   __WPL:setForcedWaypointType("RUN")
__WPL:setWaypointIndex(__WPL:findWaypointTag("BackToCamp"))
   elseif inventory:getItemCount(209457) > 39 and player.Level > 41 and 10 > getDailyComplete() then -- Stone Gift
   __WPL:setForcedWaypointType("RUN")
   __WPL:setWaypointIndex(__WPL:findWaypointTag("StoneGiftTurnin"))
   end
	</waypoint>
	<!-- # 19 --><waypoint x="3054" z="11676" y="140">	</waypoint>
	<!-- # 20 --><waypoint x="3207" z="11849" y="136">	</waypoint>
	<!-- # 21 --><waypoint x="3165" z="12045" y="134">	</waypoint>
	<!-- # 22 --><waypoint x="2919" z="12203" y="133">	</waypoint>
	<!-- # 23 --><waypoint x="2690" z="12085" y="138">	</waypoint>
	<!-- # 24 --><waypoint x="2466" z="11903" y="141"> __WPL:setWaypointIndex(__WPL:findWaypointTag("StoneGiftRoute"))	</waypoint>
	<!-- #  1 --><waypoint x="2806" z="11280" y="143">	</waypoint>
	<!-- #  2 --><waypoint x="2770" z="11190" y="141">	</waypoint>
	<!-- #  3 --><waypoint x="2816" z="11112" y="133" tag="StoneGiftTurnin">	while 10 > getDailyComplete() and inventory:getItemCount(209457) > 4 and player.Level == 42 do
	COO_AcceptQuest(118058, 424158) -- Libisil Gelunhuder, Living Cultural Relics, Stone Gifts
	COO_CompleteQuest(118058, 424158) -- Libisil Gelunhuder, Living Cultural Relics, Stone Gifts
	checkDQCount()
	player:update()
end
if getDailyComplete() > 9 then
player:sleep()
end
__WPL:setForcedWaypointType("NORMAL")
changeOptionFriendMob("mob", "Stone Protector", "Add")	
__WPL:setWaypointIndex(__WPL:findWaypointTag("stonecheck"))	
</waypoint>
	<!-- #  8 --><waypoint x="2655" z="11696" y="137" tag="BackToCamp">	</waypoint>
	<!-- #  9 --><waypoint x="2164" z="12246" y="208">	</waypoint>
	<!-- # 10 --><waypoint x="1717" z="12483" y="208">	</waypoint>
	<!-- # 11 --><waypoint x="1658" z="12550" y="209">	</waypoint>
	<!-- # 12 --><waypoint x="1565" z="12561" y="215">	</waypoint>
	<!-- # 13 --><waypoint x="1331" z="12573" y="309">	</waypoint>
	<!-- # 14 --><waypoint x="991" z="12697" y="316">	</waypoint>
	<!-- # 15 --><waypoint x="858" z="12875" y="314">	</waypoint>
	<!-- # 16 --><waypoint x="777" z="12981" y="322"> __WPL:setWaypointIndex(__WPL:findWaypointTag("travel2ChefFhil"))	</waypoint>
</waypoints>