Appearance
NPCOffer ​
GameserverMessageNPCOffer · inbound · 64 bytes
Subscribe with Engine.on("NPCOffer", fn). Print the live usage block with Engine.help("NPCOffer").
lua
local Engine = require("sdk.engine")
Engine.on("NPCOffer", function(ev)
print(ev.npc_name, ev.currency_id, ev.currency_name)
end)| Name | Kind | Nested |
|---|---|---|
npc_name | str | — |
offers | rep | NPCOffer |
currency_id | u32 | — |
currency_name | str | — |