benilla-re systems structs docs

BindSpellTargetTradeSlot

function · spell · primitive

Address
0x6e6900 · 104 bytes, up to 0x6e6967
Signature
uint32_t __cdecl (void)
Meaning
Binds trade slot 6 as an item target and sends the cast when the word empties
Confidence
verified, proof one
Finding
spell/targeting#binding-the-trade-slot

Finding: Binding the trade slot in spell: targeting

0x6e6900 binds trade slot 6 (item guid {6, 0}) when the word has 0x10 or 0x4000 and the trade global 0xb7150c is nonzero: it ORs 0x1000 into the mask, clears 0x4010, stores the item guid {6, 0} at +0x20, and fires events 214 and 261. When the word is then 0 it sends the cast with dl 1 and calls AbortCast(0, 0, 0x17). It returns 1 when it bound, else 0.

The derivation is in the doc.

Callers 2

Callees 3

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