OSRS Plugin API
    Preparing search index...

    Enumeration ON_TILE_OP

    Event id for taking an action on a tile. Calls the OnTileOpCallback.

    -- Create a function
    local tileOp = function(op, tileCoord)
    osrs.printf("Action: %s on tile at: %d %d %d", op, tileCoord.x, tileCoord.level, tileCoord.z)
    local tileLevel, tileMapX, tileMapZ, tileX, tileZ = tileCoord:getMapTile()
    osrs.printf('Tile OP - level: %d, x: %d, z: %d, x2: %d, z2: %d', tileLevel, tileMapX, tileMapZ, tileX, tileZ)
    end
    -- Subscribe to the function
    osrs.Events.subscribe(tileOp, osrs.Events.ON_TILE_OP)