<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
function breaktiles()
	tilecoords = {
	[1] = {x="2472", z="2955", id=111811},	
	[2] = {x="2504", z="3042", id=111812},
	[3] = {x="2503", z="2942", id=111812},	
	[4] = {x="2534", z="3032", id=111811},	
	[5] = {x="2528", z="2932", id=111811},	
	[6] = {x="2564", z="3022", id=111812},	
	[7] = {x="2559", z="2921", id=111812},	
	[8] = {x="2593", z="3011", id=111811},	
	[9] = {x="2590", z="2912", id=111811},	
	[10] = {x="2624", z="3001", id=111812},	
	[11] = {x="2620", z="2896", id=111812},	
	[12] = {x="2652", z="2983", id=111811},
	[13] = {x="2484", z="2981", id=111812},	
	[14] = {x="2518", z="3071", id=111811},	
	[15] = {x="2510", z="2969", id=111811},	
	[16] = {x="2545", z="3060", id=111812},	
	[17] = {x="2541", z="2959", id=111812},	
	[18] = {x="2576", z="3052", id=111811},	
	[19] = {x="2573", z="2951", id=111811},	
	[20] = {x="2607", z="3040", id=111812},	
	[21] = {x="2600", z="2937", id=111812},
	[22] = {x="2634", z="3026", id=111811},	
	[23] = {x="2629", z="2926", id=111811},	
	[24] = {x="2663", z="3018", id=111812},	
	[25] = {x="2495", z="3014", id=111811},	
	[26] = {x="2525", z="3100", id=111812},	
	[27] = {x="2521", z="2995", id=111812},	
	[28] = {x="2557", z="3093", id=111811},	
	[29] = {x="2552", z="2990", id=111811},	
	[30] = {x="2584", z="3079", id=111812},	
	[31] = {x="2582", z="2978", id=111812},	
	[32] = {x="2615", z="3069", id=111811},	
	[33] = {x="2610", z="2970", id=111811},	
	[34] = {x="2645", z="3058", id=111812},	
	[35] = {x="2641", z="2959", id=111812},	
	[36] = {x="2674", z="3048", id=111811},	
	}
	tilecoords2 = {}
	for i = 1,36 do
	   table.insert(tilecoords2,tilecoords[i])
	end

	function clicktile(address)
		local tmp = memoryReadRepeat("int", getProc(), address + addresses.pawnAttackable_offset) or 0;
		if bitAnd(tmp,0x8) then
			return true
		else
			return false
		end
	end
	function tiles1() --First run of tiles
		for i,v in pairs(tilecoords2) do
			if player.Battling then
				local _enemy = player:findEnemy(true,nil)
				if _enemy then
					player:target(_enemy.Address);
					player:fight()
				end
			end
			teleport(v.x,v.z)
			player:target_Object(v.id, nil, nil, true, clicktile);
		end
	end
	tiles1()
	repeat
	tile = player:findNearestNameOrId("Treasure Tile", nil, clicktile)
		if tile then
			teleport(tile.X,tile.Z)
			player:target_Object({111811,111812}, nil, nil, true, clicktile);
		end
		if player.Battling then
			local _enemy = player:findEnemy(true,nil)
			if _enemy then
				player:target(_enemy.Address);
				player:fight()
			end
		end
	until tile == nil
end

breaktiles()
player:sleep()
</onLoad>
</waypoints>