benilla-re systems structs docs

Script::GetGossipOptions

function · ui · primitive

Address
0x4e28d0 · 93 bytes, up to 0x4e292c
Signature
int __fastcall (lua_State *L)
Meaning
Pushes the text and type name of each gossip option in slot order
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/gossip#the-icon-names

Finding: The icon names in ui: the gossip window

GetGossipOptions() returns two strings for each used option, in slot order: the text and the type name gossip, vendor, taxi, trainer, healer, binder, banker, petition, tabard, battlemaster or auctioneer, picked by the icon byte (0 to 10; 11, 12 and 13 are also gossip; 14 gives nil). Slots with an index below 0 are skipped, so holes are compacted, and an index with its top bit set hides the option. The count returned is twice the option count. The icon is never checked: a byte of 15 or more reads past the name table into the function registration table.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 2

Calls and jumps by a bare address, from tables/calls.tsv.