benilla-re systems structs docs

Script::GetNumQuestLeaderBoards

function · ui · primitive

Address
0x4e0000 · 265 bytes, up to 0x4e0108
Signature
int __fastcall (lua_State *L)
Meaning
Returns the number of objective lines of a quest
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/questobjectives#the-lines-of-a-quest

Finding: The lines of a quest in ui: quest objectives

A quest has up to one event line, then one line for each creature or game object it requires, then one for each item, then one reputation line, in that order. The event line is present when the template's inline text at +0x129c is non-empty. A creature or object line exists for each non-zero id in ReqCreatureOrGOId[4] (+0x149c; a negative id is a game object). An item line exists for each id above 0 in ReqItemId[4] (+0x14bc) except the quest's own source item (+0x34). The reputation line exists when +0x14 is non-zero. GetNumQuestLeaderBoards([row]) returns the number of lines of the quest in the optional row, else of the selected quest, as one number, 0 with no player.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 8

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