Jump to content

ROTS training


strat3g

Recommended Posts

local tiles = g_map.getTiles()
for i = 1, #tiles do
    local tile = tiles[i]
    if tile:getPosition():getDistance(g_game.getLocalPlayer():getPosition()) == 1 then
        local topItem = tile:getTopItem()
        if topItem and topItem:getId() == 15710 then
            g_game.useMapItem(tile:getPosition())
            sleep(250)
            break
        end
    end
end
auto(100)

Link to comment
Share on other sites

  • 3 months later...

is this still working? i've tested some scripts for heal and food and they worked just fine, but i cant get this one to work.

 

Edit: got it to work, had to toggle read map tiles in the "info and options"

Edited by blodd
Link to comment
Share on other sites

×
×
  • Create New...