benilla-re systems structs docs

Script::GetInventoryItemCooldown

function · ui · primitive

Address
0x4c8a60 · 430 bytes, up to 0x4c8c0d
Signature
int __fastcall (lua_State *L)
Meaning
Returns the start, duration and enable value of a worn item cooldown
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/inventoryverbs#broken-and-cooldown
Test
ui::luabind_4c8a60_get_inventory_item_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 10

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