benilla-re systems structs docs

Script::SplitContainerItem

function · ui · primitive

Address
0x4f9f70 · 358 bytes, up to 0x4fa0d5
Signature
int __fastcall (lua_State *L)
Meaning
Puts part of a bag stack on the cursor
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/inventoryverbs#container-cooldown-and-splitting

Finding: Container cooldown and splitting in ui: inventory, container, bank and vendor getters

GetContainerItemCooldown(bag, slot) is the worn version without the use spell test: it returns the start, duration and enable value for an item with a cooldown (an item with charges needs one left), else 0, 0, 0. SplitContainerItem(bag, slot, amount) needs the three numbers (else Usage: SplitContainerItem(index, slot, amount)), a player who has control or the control-flag bit (bit 20 of the unit flags), an unlocked item and an amount from 1 to the stack count. It then clears the cursor and spell targeting, puts the amount on the cursor (the whole stack when it equals the count) and locks the item.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 12

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