The callback for Events.ON_NPC_OP events.
The Action selected by the player.
The id of the inventory object currently selected, if exists. Otherwise, -1.
The id of the NPC the player is acting on.
-- NPC says their name and the action the player selected to take on them.osrs.ClientOp.npcSay(npcId, string.format("You have selected %s with me, %s", opName, osrs.ClientOp.npcName(npcId)), 100) Copy
-- NPC says their name and the action the player selected to take on them.osrs.ClientOp.npcSay(npcId, string.format("You have selected %s with me, %s", opName, osrs.ClientOp.npcName(npcId)), 100)
The callback for Events.ON_NPC_OP events.