<?xml version="1.0" encoding="utf-8"?><waypoints>
<OnLoad>

<!-- User Options -->
local useHide = false
changeProfileOption("MAX_TARGET_DIST", 100)
changeProfileOption("LOOT_DISTANCE", 150)
changeProfileOption("LOOT_ALL", true)
<!-- 			  -->

local playerX, playerY, playerZ = player.X, player.Y, player.Z
while true do
	-- Wait for mob
	repeat
        yrest(1)
        player:update()
		
		if useHide and (player.Class1 == 3) and not player:hasBuff(500675) then
			player:cast("ROGUE_HIDE")
		end
		
	until player.Battling or player:findEnemy(nil,nil,evalTargetDefault)
	-- Fight till there are no more mobs
	enemy = player:findEnemy(nil,nil,evalTargetDefault)
	while enemy do
        player:target(enemy)
        player:fight()
        enemy = player:findEnemy(nil,nil,evalTargetDefault)
	end
	-- Return to starting position
	player:moveTo(CWaypoint(playerX,playerZ,playerY), true)
end
</OnLoad>
</waypoints>