benilla-re systems structs docs

Script::GetRewardSpell

function · ui · orchestration

Address
0x501df0 · 162 bytes, up to 0x501e91
Signature
int __fastcall (lua_State *L)
Meaning
Returns the icon, name and trade skill flag of the last offered reward spell
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/questrewardspell#reward-spell-values

Finding: Reward spell values in ui: quest reward spell functions

GetRewardSpell() always returns three values for the reward spell id of the last quest details or offer reward message: the texture file name of the spell's icon, the spell's name for the client locale, and the number 1 when bit 5 (0x20) of the spell's attributes is set, else nil. The id must be above 0, at most the spell table's highest id and have a row; otherwise the three values are nil. The icon is nil when the spell's icon id is negative, above the icon table's highest id, has no row, or the row's file name is null. The name is nil only when its pointer is null. The three are decided independently.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 3

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