Script::GetInventoryAlertStatus
function · ui · primitive
- Address
0x4c94b0· 117 bytes, up to0x4c9524- Signature
int __fastcall (lua_State *L)- Meaning
- Returns the alert status of region index, 0 outside 1 to 12
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/inventory#inventory-alerts
Finding: Inventory alerts in ui: inventory queries and alerts
The client keeps 12 alert statuses, recomputed whole by 0x4c7ee0 and read by GetInventoryAlertStatus(index)
(0x4c94b0), which returns status[index - 1] as a number, and 0 for an index outside 1 to 12; a non-number raises
Usage: GetInventoryAlertStatus(index). The regions are flat slots 0, 2, 4, 5, 6, 7, 8, 9, 15, 16 and 17 (head,
shoulders, chest, waist, legs, feet, wrists, hands, main hand, off hand, ranged) and, last, ammunition. Each pass sets all
12 to 0 and fires UPDATE_INVENTORY_ALERTS (501) unconditionally at its end, whether or not a status changed. With
no active player it does nothing.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 5
- __ftol crt
- lua_isnumber lua
- lua_tonumber lua
- lua_pushnumber lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.