Event id for taking an action on a tile. Calls the OnTileOpCallback.
-- Create a functionlocal 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 functionosrs.Events.subscribe(tileOp, osrs.Events.ON_TILE_OP) Copy
-- Create a functionlocal 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 functionosrs.Events.subscribe(tileOp, osrs.Events.ON_TILE_OP)
Event id for taking an action on a tile. Calls the OnTileOpCallback.
Example