Event id for on updating items in the inventory. Calls the OnInvTransmitCallback.
-- Create a functionlocal invTransmit = function(invTable) for index, table in pairs(invTable) do if table["id"] == 93 then osrs.print("From Backpack") else osrs.print("From Equipped") end for i, item in pairs(table["items"]) do osrs.printf("Item ID: %i Slot: %i Count: %i", item["id"], item["slot"], item["count"]) end endend-- Subscribe to the functionosrs.Events.subscribe(invTransmit, osrs.Events.ON_INV_TRANSMIT) Copy
-- Create a functionlocal invTransmit = function(invTable) for index, table in pairs(invTable) do if table["id"] == 93 then osrs.print("From Backpack") else osrs.print("From Equipped") end for i, item in pairs(table["items"]) do osrs.printf("Item ID: %i Slot: %i Count: %i", item["id"], item["slot"], item["count"]) end endend-- Subscribe to the functionosrs.Events.subscribe(invTransmit, osrs.Events.ON_INV_TRANSMIT)
Event id for on updating items in the inventory. Calls the OnInvTransmitCallback.
Example