<?xml version="1.0" encoding="utf-8"?><waypoints>
	<onLoad>
	eggpet = CEggPet(settings.profile.options.EGGPET_ASSIST_SLOT)
	--=== Version 1.5 ===--
	settings.profile.events.onDeath = function()
		RoMScript("BrithRevive();");
		waitForLoadingScreen();
		yrest(3000)
		sendMacro("LeaveParty();");
		player:update();
		__WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));		
	end

	setwindow("gold")
	changeProfileOption("LOOT_SIGILS", false)
	changeProfileOption("INV_AUTOSELL_ENABLE",true)
	changeProfileOption("LOOT_ALL", false)
	changeProfileOption("LOOT", false)
	changeProfileOption("COMBAT_TYPE", "melee")	

	for i, skill in pairs(settings.profile.skills) do
		if skill.Name == "MAGE_PURGATORY_FIRE" then
			settings.profile.skills[i].AutoUse = true
		end
		if skill.Name == "MAGE_FLAME" then
			settings.profile.skills[i].AutoUse = false
		end
		if skill.Name == "MAGE_PLASMA_ARROW" then
			settings.profile.skills[i].AutoUse = false
		end
	end

	function bagcheck()
		if inventory:itemTotalCount(0) == 0 then
			sendMacro("LeaveParty();");
			waitForLoadingScreen(); 
			yrest(3000)
			player:update();
			changeProfileOption("LOOT", false)
			__WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));
		end
	end

	function unStick3()
		if getZoneId() == 6 then
			__WPL:setForcedWaypointType("RUN")	
		else	
			sendMacro("LeaveParty();");
			waitForLoadingScreen(); 
			yrest(3000)
			player:update();
			__WPL:setWaypointIndex(__WPL:findWaypointTag("rerun"));
		end
	end
	
	function CleanBagKS()
		for i, item in pairs(inventory.BagSlot) do
			if item.SlotNumber >= settings.profile.options.INV_AUTOSELL_FROMSLOT + 60 and
			settings.profile.options.INV_AUTOSELL_TOSLOT + 60 >= item.SlotNumber then
				if item:isType("Runes") or item:isType("Monster Cards") then 
					item:delete()
				end
				if ( item:isType("Weapons") or item:isType("Armor") ) and (100 > item.Worth and 3 > item.Quality) then
					item:delete()
				end
				if item:isType("Production Runes") then
					item:delete()
				end
				if item:isType("Potions") and (45 > item.RequiredLvl and item.RequiredLvl > 10) then
					item:delete()
				end			
			end
		end
	end	
	</onLoad>
	<!-- #  1 --><waypoint x="-18562" z="12458" type="TRAVEL" tag="enter"> </waypoint>	
	<!-- #  2 --><waypoint x="-18562" z="12458" > 
	sendMacro("LeaveParty();");
	yrest(1000)
	if not player:hasBuff(506841) then
		inventory:useItem(202879);
		yrest(3000)
		SlashCommand("ILG inv")
	else
		SlashCommand("ILG inv")
	end
	yrest(2000)
	GoThroughPortal()
	</waypoint>		
	<!-- #  3 --><waypoint x="4708" z="914" y="679" type="RUN" > 
	changeProfileOption("LOOT", true)
	changeProfileOption("USE_PHIRIUS_POTION", true);
	changeProfileOption("COMBAT_DISTANCE", 90)
	changeProfileOption("MAX_TARGET_DIST", 100)
	eggpet:Return()
	eggpet:Summon()
	</waypoint>
	<!-- #  4 --><waypoint x="4448" z="911" y="679"  >
	changeProfileOption("COMBAT_DISTANCE", 170)	
	changeProfileOption("MAX_TARGET_DIST", 180)
	</waypoint>
	<!-- #  5 --><waypoint x="4245" z="904" y="679">	bagcheck()	</waypoint>
	<!-- #  6 --><waypoint x="4448" z="911" y="679">	CleanBagKS() </waypoint>
	<!-- #  7 --><waypoint x="4708" z="914" y="679">	
	GoThroughPortal(250,110578)
	__WPL:setWaypointIndex(__WPL:findWaypointTag("enter"));	
	</waypoint>
	<!-- going to sell loot -->	
	<!-- #  8 --><waypoint x="-15147" z="11542" y="136" type="TRAVEL" tag="rerun"> 
    player:mount();
	player:update()
	if not player.Mounted then 
		inventory:useItem(203033)
		yrest(2000)
		inventory:update()
		player:mount();
	end
	</waypoint>
	<!-- #  9 --><waypoint x="-15764" z="11358" type="TRAVEL" >	</waypoint>
	<!-- #  10 --><waypoint x="-15967" z="11304" type="TRAVEL">	</waypoint>
	<!-- #  11 --><waypoint x="-16078" z="11312" type="TRAVEL">	</waypoint>
	<!-- #  12 --><waypoint x="-16249" z="11327" type="TRAVEL">	</waypoint>
	<!-- #  13 --><waypoint x="-16450" z="11350" type="TRAVEL">	</waypoint>
	<!-- #  14 --><waypoint x="-16607" z="11365" type="TRAVEL">	</waypoint>
	<!-- #  15 --><waypoint x="-16618" z="11352" type="TRAVEL"> 
	changeProfileOption("HARVEST_DISTANCE", 200);  
	yrest(100);
	if inventory:itemTotalCount(0) == 0 then -- make sure to get pet xtras
		player:merchant("Pancer");
		yrest(100);
	end
	player:merchant("Pancer");
	yrest(100);
	</waypoint>
	<!-- #  16 --><waypoint x="-16650" z="11463" type="TRAVEL">	</waypoint>
	<!-- #  17 --><waypoint x="-16836" z="11573" type="TRAVEL">	</waypoint>
	<!-- #  18 --><waypoint x="-17141" z="11250" type="TRAVEL">	</waypoint>
	<!-- #  19 --><waypoint x="-17448" z="10703" type="TRAVEL">
	changeProfileOption("USE_PHIRIUS_POTION", false);
	</waypoint>
	<!-- #  20 --><waypoint x="-17668" z="10680" type="TRAVEL">	player:mount();
	</waypoint>
	<!-- #  21 --><waypoint x="-17936" z="10586" type="TRAVEL"> </waypoint>
	<!-- #  22 --><waypoint x="-18160" z="10707" type="TRAVEL">	</waypoint>
	<!-- #  23 --><waypoint x="-18288" z="11068" type="TRAVEL">	</waypoint>
	<!-- #  24 --><waypoint x="-18416" z="11681" type="TRAVEL"> </waypoint>	
</waypoints>