Event id for when a varbit value is changed. Calls the OnVarbitUpdateCallback.
-- Create a functionfunction onVarBit(varbit, value) if(varbit == 12392) then osrs.printf("Varbit: %d, Value: %d", varbit, value) endend-- Subscribe to the functionosrs.Events.subscribe(onVarBit, osrs.Events.ON_VARBIT_UPDATE) Copy
-- Create a functionfunction onVarBit(varbit, value) if(varbit == 12392) then osrs.printf("Varbit: %d, Value: %d", varbit, value) endend-- Subscribe to the functionosrs.Events.subscribe(onVarBit, osrs.Events.ON_VARBIT_UPDATE)
Event id for when a varbit value is changed. Calls the OnVarbitUpdateCallback.
Example