Event id for taking an action on a player Calls the OnPlayerOpCallback.
-- Create a functionlocal playerOp = function(op, obj, player) osrs.printf("Action: %s with Object: %i on Player: %i", op, obj, player)end-- Subscribe to the functionosrs.Events.subscribe(playerOp, osrs.Events.ON_PLAYER_OP) Copy
-- Create a functionlocal playerOp = function(op, obj, player) osrs.printf("Action: %s with Object: %i on Player: %i", op, obj, player)end-- Subscribe to the functionosrs.Events.subscribe(playerOp, osrs.Events.ON_PLAYER_OP)
Event id for taking an action on a player Calls the OnPlayerOpCallback.
Example