<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
	<onLoad>
		--[[ Set Options ]]--
			options = {}
			optionDescriptions = { 	"Choose destination after finishing script...\n\t0 = Nowhere (stay) || 1 = Recall || 2 = Heffner Camp\nChoice: ",
									"Log out after finishing script?\n\t0 = No || 1 = Yes\nChoice: " }
			function set_options()
				for i,v in ipairs(optionDescriptions) do
					cprintf(cli.lightblue, optionDescriptions[i])
					while not options[i] do
						options[i] = io.stdin:read()
						options[i] = tonumber(options[i])
					end
				end
			end

			set_options()

		--[[ Give Options a Variable Name for code readability ]]--
			portAway = options[1]
			exitGame = options[2]

		--[[ Process Options ]]--
			function doOption_portAway()
				if portAway == 1 then
					cprintn(cli.lightred,"You chose to cast Recall.")
					RoMScript('CastSpellByName("Recall")')
					waitForLoadingScreen()
				elseif portAway == 2 then
					cprintn(cli.lightred,"You chose to cast Heffner Camp Transport Spell.")
					RoMScript('CastSpellByName("Heffner Camp Transport Spell")')
					waitForLoadingScreen()
				else
					cprintn(cli.lightred,"You chose to stay.")
				end
			end

			function doOption_exitGame()
				if exitGame == 0 then
					cprintn(cli.lightred,"You chose to stay logged in after script finish.")
				elseif exitGame == 1 then
					cprintn(cli.lightred,"You chose to log out after script finish. Have a great day!")
					player:logout()
				end
				error(" Script finish - 10 daily quests complete!")
			end

		--[[ Objects by ID ]]--
			snoop 		= GetIdName(118002) -- NPC "Snoop the Stubborn"
			fiona 		= GetIdName(118070) -- NPC "Fiona Andus"
			defenses 	= GetIdName(424176) -- Quest "The Elves' Defenses"
			vine 		= 118193 			-- Object "Protector Vine"

		--[[ Other Functions ]]--
			function cprintn(color, string)
				cprintf(color, string.."\n")
			end

			function goto_wp(waypointTag)
				__WPL:setWaypointIndex(__WPL:findWaypointTag(waypointTag))
			end

			function take_snoop(snoopname, destination, _next)
				player:target_NPC(snoopname)
				if _next == 1 then ChoiceOptionByName("Next Page") end
				ChoiceOptionByName(destination)
				local acceptCost = RoMScript("StaticPopup_Visible('SET_REQUESTDIALOG')")
				if acceptCost then RoMScript("StaticPopup_EnterPressed("..acceptCost..");") end
				cprintn(cli.lightblue, "Transporting via "..snoopname.." to "..destination)
				waitForLoadingScreen()
			end
	</onLoad>
	<!-- #  1 --><waypoint x="-6322" z="-3913" y="173" tag="heffsnoop">
		player:mount()
		if player:findNearestNameOrId(snoop) then
			take_snoop(snoop, "Transport to: Jinners Camp")
		else
			cprintn(cli.yellow, "Cannot find Snoop, maybe you broke it!")
			player:sleep()
		end
	</waypoint>
	<!-- #  2 --><waypoint x="12873" z="1955" y="64" tag="jinners">
		player:mount()
	</waypoint>
	<!-- #  3 --><waypoint x="12740" z="2048" y="67">	</waypoint>
	<!-- #  4 --><waypoint x="12732" z="2188" y="66">	</waypoint>
	<!-- #  5 --><waypoint x="12833" z="2419" y="60">	</waypoint>
	<!-- #  6 --><waypoint x="12742" z="2580" y="74">	</waypoint>
	<!-- #  7 --><waypoint x="12620" z="2594" y="84">	</waypoint>
	<!-- #  8 --><waypoint x="12336" z="2625" y="82">	</waypoint>
	<!-- #  9 --><waypoint x="12085" z="2654" y="87">	</waypoint>
	<!-- # 10 --><waypoint x="11774" z="2679" y="89">	</waypoint>
	<!-- # 11 --><waypoint x="11500" z="2674" y="139">	</waypoint>
	<!-- # 12 --><waypoint x="11297" z="2790" y="140">	</waypoint>
	<!-- # 13 --><waypoint x="11078" z="3013" y="138">	</waypoint>
	<!-- # 14 --><waypoint x="10917" z="3242" y="140">	</waypoint>
	<!-- # 15 --><waypoint x="10784" z="3506" y="143">	</waypoint>
	<!-- # 16 --><waypoint x="10590" z="3914" y="147">	</waypoint>
	<!-- # 17 --><waypoint x="10552" z="4283" y="188">	</waypoint>
	<!-- # 18 --><waypoint x="10567" z="4465" y="210">	</waypoint>
	<!-- # 19 --><waypoint x="10551" z="4731" y="218">	</waypoint>
	<!-- # 20 --><waypoint x="10522" z="4996" y="218">	</waypoint>
	<!-- # 21 --><waypoint x="10478" z="5238" y="213">	</waypoint>
	<!-- # 22 --><waypoint x="10435" z="5416" y="220">	</waypoint>
	<!-- # 23 --><waypoint x="10358" z="5446" y="222" tag="fiona">		
		player:target_NPC(fiona)
		
		if getQuestStatus(defenses) == "complete" then
			CompleteQuestByName(defenses)
		end

		if RoMScript("Daily_count()") == 10 then
			changeProfileOption("HARVEST_DISTANCE", 120)
			doOption_portAway()
			doOption_exitGame()
		else
			if getQuestStatus(defenses) == "not accepted" then
				AcceptQuestByName(defenses)
			end
		end
	</waypoint>
	<!-- # 24 --><waypoint x="10352" z="5444" y="223">	</waypoint>
	<!-- # 25 --><waypoint x="10294" z="5609" y="220" tag="vines">	
		if 200 > settings.profile.options.HARVEST_DISTANCE then changeProfileOption("HARVEST_DISTANCE", 200) end
		while getQuestStatus(defenses) == "incomplete" do
			player:target_Object(vine, 500)
		end
	</waypoint>
	<!-- # 26 --><waypoint x="10303" z="5576" y="220">
		goto_wp("fiona")
	</waypoint>
</waypoints>