benilla-re systems structs docs

ConfirmDestroyCursorItem

function · ui · orchestration

Address
0x495300 · 209 bytes, up to 0x4953d0
Signature
void __cdecl (void)
Meaning
Signals DELETE_ITEM_CONFIRM for the cursor item, or refuses an undestroyable one
Confidence
verified, proof one
Finding
ui/cursor#delete_item_confirm

Finding: DELETE_ITEM_CONFIRM in ui: the cursor payload

0x495300 runs when an item payload is released over the world. It does nothing unless the held item exists and its owner is the active player. If the item template's flags have bit 0x20 set it shows error 0x152 and returns. Otherwise it signals DELETE_ITEM_CONFIRM with the item's name and quality ("%s%d"). It never clears the cursor.

DeleteCursorItem sends the destroy. With a held item it finds the inventory slot of the source container (0x5e13b0) and refuses an item with the same flag bit (error 0x152). Otherwise it sends opcode 0x111 with that slot, the source slot and the split count (two bytes and a dword), clears the cursor and locks the item.

The derivation is in the doc.

Callers 2

Callees 5

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