Callback invoked from Events.ON_IF_LOAD when subscribed from Events.subscribe.
The id of the IfType, which can be identified from gamevals.
The id of the subcomponent of the IfType. 0 is the base component.
-- Create a functionlocal iftypeLoadCallback = function(ifTypeId, componentId) if(group == osrs.gamevals.iftypes.xptracker.id and id == 0) then osrs.print("EXP Tracker opened.") end if(group == osrs.gamevals.iftypes.loottools.id and id == 0) then osrs.print("Loot tools opened.") endend Copy
-- Create a functionlocal iftypeLoadCallback = function(ifTypeId, componentId) if(group == osrs.gamevals.iftypes.xptracker.id and id == 0) then osrs.print("EXP Tracker opened.") end if(group == osrs.gamevals.iftypes.loottools.id and id == 0) then osrs.print("Loot tools opened.") endend
Callback invoked from Events.ON_IF_LOAD when subscribed from Events.subscribe.