Any chance to get something similar to this?
macro(1000, "Dzwignia", function()
for x = -1, 1 do
for y = -1, 1 do
local tile = g_map.getTile({x = posx() + x, y = posy() + y, z = posz()})
for u,item in ipairs(tile:getItems()) do
if (tile and item and item:getId() == 2773 or item:getId() == 2772) then
g_game.use(item)
return
end
end
end
end
end,toolsTab)
It basically uses a lever or an item with specific ID if it appears on map, just not sure how to edit it, so it works with OTClientBot.
Many thanks.