benilla-re systems structs docs

CGItem_C::Use

function · objectlayer · primitive

Address
0x5d8d00 · 1410 bytes, up to 0x5d9281
Signature
uint8_t __thiscall (CGItem_C *this, uint64_t *target, uint32_t confirmed)
Meaning
Uses an item: wrapping, page text, control, equip, repair, disarm, form and bind gates, then casts
Confidence
verified, proof one
Finding
objectlayer/items#using-an-item

Finding: Using an item in objectlayer: items

0x5d8d00(target, confirmed) uses an item through a ladder of tests; each refusal shows its error and returns 0.

test, in orderresult
a container, lock bit 0, no record or player0
record flags 0x200unwrap (0x5edd60) when wrapped, else start wrapping (0x5edea0)
record +0x1a80x5eab80(&guid, value)
0x5ea930 refusesits error; error 2 with the record's +0x3c
record +0x19c or ITEM_FIELD_ITEM_TEXT_ID0x4e32e0(&guid, 0)
client locked out, no fear, confusion or charm spellERR_CLIENT_LOCKED_OUT
record flags 0x4 / 0x2000open (0x5edc80) / 0x5eef40(guid)
no use spell0
an equippable itemthe equip tests (next entry)
shapeshifted, the form not allowing itemsERR_NO_ITEMS_WHILE_SHAPESHIFTED

The derivation is in the doc.

Callers 5

Callees 22

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