<?xml version="1.0" encoding="utf-8"?><waypoints type="RUN">
	<onLoad>
		-- Sap_Send by Rock5. Version 1.0. --
		--
		-- Continuously collects Pipi Tree Sap
		-- and sends them to another character.

		-- =========================
		-- == User options

		Send_To     = "recipient name" -- Character to send the Pipi to.
		Send_Amount = 0                -- Stop after sending this many. Set to 0, to not stop.

		-- =========================

		-- Set up to use splitCollect()
		harvestId = 115605 -- Pipi Tree Sap
		questItemId = 207435 -- Pipi Tree Sap
		itemStackLimit = 5
		splitCollectSetup(harvestId, questItemId, itemStackLimit)


		changeProfileOption("LOOT",false)
		changeProfileOption("HARVEST_DISTANCE",40)
		SapsSent = 0 -- Counter so we know how much we have sent

	</onLoad>
	<!-- #  1 --><waypoint x="2250" z="31880" tag="main">
		-- At mailbox

		-- Send Pipi Tree Saps
		if inventory:itemTotalCount(questItemId) > 4 then
			-- Count Saps sent
			SapsSent = SapsSent + inventory:itemTotalCount(questItemId)

			UMM_SendByNameOrId(Send_To,{questItemId}) -- Pipi Tree Sap
			RoMCode("HideUIPanel(MailFrame)")

			-- Print how many sent so far
			cprintf(cli.yellow,"%d Pipi Tree Saps sent so far.\n", SapsSent)

			if Send_Amount > 0 and SapsSent >= Send_Amount then
				error(SapsSent .. " Pipi Tree Saps sent. Finished.")
			end
		end

		-- Go get quest if we don't have it
		if getQuestStatus(422899) == "not accepted" then -- Effective Deterrent
			__WPL:setWaypointIndex(__WPL:findWaypointTag("npc"));
		end
		player:mount()
	</waypoint>
	<!-- #  2 --><waypoint x="2328" z="31538" tag="to sap">	</waypoint>
	<!-- #  3 --><waypoint x="2328" z="31392">	</waypoint>
	<!-- #  4 --><waypoint x="2448" z="31221">	</waypoint>
	<!-- #  5 --><waypoint x="2566" z="31045">	</waypoint>
	<!-- #  6 --><waypoint x="2585" z="30891" tag="collect">
		while splitCollect() == true do yrest(100) end
	</waypoint>
	<!-- #  7 --><waypoint x="2633" z="30892">
		while splitCollect() == true do yrest(100) end
	</waypoint>
	<!-- #  8 --><waypoint x="2689" z="30826">
		while splitCollect() == true do yrest(100) end
	</waypoint>
	<!-- #  9 --><waypoint x="2678" z="30786">
		while splitCollect() == true do yrest(100) end
	</waypoint>
	<!-- # 10 --><waypoint x="2629" z="30758">
		while splitCollect() == true do yrest(100) end
	</waypoint>
	<!-- # 11 --><waypoint x="2585" z="30745">
		while splitCollect() == true do yrest(100) end
	</waypoint>
	<!-- # 12 --><waypoint x="2598" z="30777">
		while splitCollect() == true do yrest(100) end
	</waypoint>
	<!-- # 13 --><waypoint x="2490" z="30769">
		while splitCollect() == true do yrest(100) end
	</waypoint>
	<!-- # 14 --><waypoint x="2502" z="30855">
		while splitCollect() == true do yrest(100) end
	</waypoint>
	<!-- # 15 --><waypoint x="2492" z="30914">
		if inventory:itemTotalCount(questItemId) > 4 then
			__WPL:setWaypointIndex(__WPL:findWaypointTag("toNPC"));
		end
	</waypoint>
	<!-- # 16 --><waypoint x="2630" z="30907">	</waypoint>
	<!-- # 17 --><waypoint x="3031" z="30564">
		while splitCollect() == true do yrest(100) end
	</waypoint>
	<!-- # 18 --><waypoint x="3012" z="30565">
		while splitCollect() == true do yrest(100) end
	</waypoint>
	<!-- # 19 --><waypoint x="2994" z="30516">
		while splitCollect() == true do yrest(100) end
	</waypoint>
	<!-- # 20 --><waypoint x="3001" z="30448">
		while splitCollect() == true do yrest(100) end
	</waypoint>
	<!-- # 21 --><waypoint x="3060" z="30464">
		while splitCollect() == true do yrest(100) end
	</waypoint>
	<!-- # 22 --><waypoint x="3073" z="30497">
		while splitCollect() == true do yrest(100) end
	</waypoint>
	<!-- # 23 --><waypoint x="3061" z="30530">
		while splitCollect() == true do yrest(100) end
	</waypoint>
	<!-- # 24 --><waypoint x="3061" z="30530" tag="toTree1">
		if inventory:itemTotalCount(questItemId) > 4 then
			__WPL:setWaypointIndex(__WPL:findWaypointTag("toNPC"));
		end
	</waypoint>
	<!-- # 25 --><waypoint x="3307" z="30249">	</waypoint>
	<!-- # 26 --><waypoint x="3483" z="30022">	</waypoint>
	<!-- # 27 --><waypoint x="3514" z="29921">	</waypoint>
	<!-- # 28 --><waypoint x="3605" z="29938">
		while splitCollect() == true do yrest(100) end
	</waypoint>
	<!-- # 29 --><waypoint x="3676" z="29944">
		while splitCollect() == true do yrest(100) end
	</waypoint>
	<!-- # 30 --><waypoint x="3667" z="29993">
		while splitCollect() == true do yrest(100) end
	</waypoint>
	<!-- # 31 --><waypoint x="3634" z="30017">
		while splitCollect() == true do yrest(100) end
		if  inventory:itemTotalCount(questItemId) > 4 then
			__WPL:setWaypointIndex(__WPL:findWaypointTag("toTree1"));
		end
	</waypoint>
	<!-- # 32 --><waypoint x="3591" z="30386">	</waypoint>
	<!-- # 33 --><waypoint x="3529" z="30901">	</waypoint>
	<!-- # 34 --><waypoint x="3561" z="31032">
		while splitCollect() == true do yrest(100) end
	</waypoint>
	<!-- # 35 --><waypoint x="3614" z="31048">
		while splitCollect() == true do yrest(100) end
	</waypoint>
	<!-- # 36 --><waypoint x="3279" z="31042">	</waypoint>
	<!-- # 37 --><waypoint x="2930" z="30972">	</waypoint>
	<!-- # 38 --><waypoint x="2870" z="30919">	</waypoint>
	<!-- # 39 --><waypoint x="2627" z="30919">
		if itemStackLimit > inventory:itemTotalCount(questItemId) then
			__WPL:setWaypointIndex(__WPL:findWaypointTag("collect"));
		end
	</waypoint>
	<!-- # 40 --><waypoint x="2482" z="31070" tag="toNPC">	</waypoint>
	<!-- # 41 --><waypoint x="2431" z="31254">	</waypoint>
	<!-- # 42 --><waypoint x="2334" z="31374">	</waypoint>
	<!-- # 43 --><waypoint x="2330" z="31559">	__WPL:setWaypointIndex(__WPL:findWaypointTag("main")); </waypoint>
	<!-- # 44 --><waypoint x="2341" z="31930" tag="npc">
		player:target_NPC(115611) -- Jaexis Spider skin
		AcceptQuestByName(422899) -- Effective Deterrent
		yrest(1000)
	</waypoint>
</waypoints>
