benilla-re systems structs docs

Script::GetTradeskillRepeatCount

function · ui · orchestration

Address
0x500230 · 71 bytes, up to 0x500276
Signature
int __fastcall (lua_State *L)
Meaning
Returns the repeat count of the running repeated cast, or 1
Confidence
verified, proof one
Name from
the community database (idb)
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 0

None by a direct call or jump.

Callees 1

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