benilla-re systems structs docs

Script::DropItemOnUnit

function · ui · primitive

Address
0x48d960 · 322 bytes, up to 0x48daa1
Signature
int __fastcall (lua_State *L)
Meaning
Implements the Lua function DropItemOnUnit
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/cursor#dropping-an-item-on-a-unit

Finding: Dropping an item on a unit in ui: the cursor payload

DropItemOnUnit(unit) needs a string or number argument (usage error DropItemOnUnit("unit") otherwise) and returns nothing on every path. It does nothing unless an item is on the cursor and the unit token names a unit. For another player who can cooperate with the active player (same faction group) it first handles trade: the open trade partner gets the item in a trade slot, and with no trade open the call asks to trade (opcode 0x116). The payload stays. Then, for the unit whose GUID is the pet bar's (0xb714a0), it tries to feed it (spell/cast#cast-entries) and, when that returns true, clears the cursor with ClearCursor(1, 1). A refusal leaves the cursor alone. There is no distance test.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 13

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