benilla-re systems structs docs

ClearTradeSkillRecast

function · ui · orchestration

Address
0x4fd790 · 30 bytes, up to 0x4fd7ad
Signature
void __cdecl (void)
Meaning
Clears the trade-skill repeat spell when one is set and fires UPDATE_TRADESKILL_RECAST
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 4

Callees 1

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