benilla-re systems structs docs

OnTradeSkillCastDone

function · ui · orchestration

Address
0x4fd7b0 · 60 bytes, up to 0x4fd7eb
Signature
void __fastcall (uint32_t spell)
Meaning
Counts down the repeat and casts the spell again, or clears the latch
Confidence
verified, proof one
Finding
tradeskill/cast#repeat-latch

Finding: Repeat latch in tradeskill: cast

The latch is the repeat spell 0xbde05c and the repeat count 0xbde060. 0x4fd770 stores both and raises UPDATE_TRADESKILL_RECAST. 0x4fd790 zeroes the spell and raises the event, only when a spell is set; the count stays. When the player's cast of a spell completes, 0x4fd7b0 takes its id: with a latched spell, a nonzero count and the same id, it decrements the count; a count that is still above 0 casts the spell again with 0x6e5a90 and raises the event, and a count that reaches 0 returns with nothing else. Any other case clears the latch.

The derivation is in the doc.

Callers 1

Callees 3

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