Event id for taking an action on an NPC (either from click or minimenu) Calls the OnNpcOpCallback.
-- Create a functionlocal npcOp = function(action, objID, npcID) osrs.printf("Used Action: %s with Object: %i on NPC: %i", action, objID, npcID)end-- Subscribe to the functionosrs.Events.subscribe(npcOp, osrs.Events.ON_NPC_OP) Copy
-- Create a functionlocal npcOp = function(action, objID, npcID) osrs.printf("Used Action: %s with Object: %i on NPC: %i", action, objID, npcID)end-- Subscribe to the functionosrs.Events.subscribe(npcOp, osrs.Events.ON_NPC_OP)
Event id for taking an action on an NPC (either from click or minimenu) Calls the OnNpcOpCallback.
Example