Event id for updating player stats. Calls the OnStatTransmitCallback.
-- Create a functionlocal statTransmit = function(statTable) for index, table in pairs(statTable) do osrs.printf("Stat ID: %i XP: %i Value: %i Max: %i", table["id"], table["xp"], table["value"], table["max"]) endend-- Subscribe to the functionosrs.Events.subscribe(statTransmit, osrs.Events.ON_STAT_TRANSMIT) Copy
-- Create a functionlocal statTransmit = function(statTable) for index, table in pairs(statTable) do osrs.printf("Stat ID: %i XP: %i Value: %i Max: %i", table["id"], table["xp"], table["value"], table["max"]) endend-- Subscribe to the functionosrs.Events.subscribe(statTransmit, osrs.Events.ON_STAT_TRANSMIT)
Event id for updating player stats. Calls the OnStatTransmitCallback.
Example