Event id for NPC loading on the client. Calls the OnNpcLoadUnloadCallback.
-- Create a functionlocal npcLoad = function(name, ID) osrs.printf("NPC %s loaded in, has ID: %i", name, ID)end-- Subscribe to the functionosrs.Events.subscribe(npcLoad, osrs.Events.ON_NPC_LOAD) Copy
-- Create a functionlocal npcLoad = function(name, ID) osrs.printf("NPC %s loaded in, has ID: %i", name, ID)end-- Subscribe to the functionosrs.Events.subscribe(npcLoad, osrs.Events.ON_NPC_LOAD)
Event id for NPC loading on the client. Calls the OnNpcLoadUnloadCallback.
Example