benilla-re systems structs docs

Script::GetInventoryItemBroken

function · ui · orchestration

Address
0x4c8590 · 232 bytes, up to 0x4c8677
Signature
int __fastcall (lua_State *L)
Meaning
Returns 1 when the item in a slot is broken, else nil
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/inventoryverbs#broken-and-cooldown

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

GetInventoryItemBroken returns 1 for an item of the unit's own inventory with a maximum durability above 0, a durability of 0 and no wrapped flag (bit 8 of the item flags), else nil; other players' items give nil. GetInventoryItemCooldown returns the start and the duration in seconds and the enable value of the item's cooldown. It requires a use spell in the record (+0x11c), and, for an item with charges (+0x144), a charge left (+0x28 of the item field block). Anything else, and slot -1, returns 0, 0, 0.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 9

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