CGItem_C::GetUseSpell
function · objectlayer · primitive
- Address
0x5d8c80· 125 bytes, up to0x5d8cfc- Meaning
- Returns the first use spell of an item's record, or 0
- Confidence
- verified, proof one
- Finding
- objectlayer/items#item-use-gates
Finding: Item use gates in objectlayer: items
An equippable item with a use spell must be held by the active player in one of the first 23
slots of its list, not broken, and not a disarmed hand's. Then a use spell whose record's +0x1d8
is set and whose aura is on the player with bit 0 of its aura flags is cancelled instead of
cast. A bind-on-use item (+0x194 = 3) not yet bound
asks first: unless confirmed, it keeps the item and target GUIDs and signals
USE_BIND_CONFIRM; the confirmation 0x5d9290 uses the kept item with confirmed 1. Otherwise
CastSpellAsActivePlayer casts the use spell with the item at the target.
The derivation is in the doc.
Callers 3
- CGItem_C::Use objectlayer
- FindLockOpener objectlayer
- FindGameObjectLockOpener objectlayer
Callees 1
Calls and jumps by a bare address, from tables/calls.tsv.