benilla-re systems structs docs

CanTurnInQuest

function · ui · primitive

Address
0x4df580 · 560 bytes, up to 0x4df7af
Signature
int32_t __fastcall (uint32_t row)
Meaning
Tells whether a row's quest can be handed in (complete bit if flagged, objectives, standing, money); fires tutorial 0x21
Confidence
verified, proof one
Finding
ui/questobjectives#the-turn-in-test

Finding: The turn-in test in ui: quest objectives

0x4df580(row) returns 1 when a row's quest can be handed in. A bad or header row, no player, an uncached template, no slot, a failed slot or a set expiry latch fail. When the template's flags +0x38 & 6 are non-zero, the slot's complete bit must be set; with them zero and no reputation id at +0x14 or +0x1c, a quest whose ReqCreatureOrGOId and ReqItemId are all 0 is never complete. Then standing with +0x14 must be at least +0x18, with +0x1c at most +0x20; a negative +0x28 needs -[+0x28] coinage; each creature or object count and the live count of each non-zero ReqItemId, the source item included, must reach its required count. A pass fires a tutorial (below).

The derivation is in the doc.

Callers 2

Callees 7

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