Script::DeleteCursorItem
function · ui · primitive
- Address
0x4897b0· 311 bytes, up to0x4898e6- Signature
int __fastcall (lua_State *L)- Meaning
- Implements the Lua function DeleteCursorItem
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- 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 0
None by a direct call or jump.
Callees 11
- CDataStore::PutInt8 base
- CDataStore::PutUInt32 base
- CDataStore::PutUInt32_3 base
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- GetCursorItemInfo ui
- ClearCursor ui
- LockItem ui
- CGGameUI::DisplayError ui
- ClientServices::Send net
- CGPlayer_C::FindSlotIndex objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.