RecomputeInventoryAlerts
function · ui · primitive
- Address
0x4c7ee0· 433 bytes, up to0x4c8090- Signature
void __stdcall ()- Meaning
- Recomputes the 12 inventory alert statuses and signals UPDATE_INVENTORY_ALERTS
- Confidence
- verified, proof one
- Finding
- ui/inventory#equipment-alert-rules
Finding: Equipment alert rules in ui: inventory queries and alerts
For an equipped item the status is 4 when bit 0x10 of ITEM_FIELD_FLAGS (descriptor +0x3c) is set. Otherwise an item
with bit 0x8 clear and MAXDURABILITY (+0xa4) not zero is 4 at DURABILITY (+0xa0) of 0 and 3 at 1 to 5; the bound
is the absolute 5, not a fraction. Any other equipped item goes to the enchantment test: with bit 0x2000 of the
item record's virtual answer clear and the temporary enchantment id (+0x4c) set, the status is 1, and 2 when that
enchantment has 30000 ms or less left. Ammunition is 3 when the active player's PLAYER_AMMO_ID is set and its count
(as in the item count) is 20 or less, else 0.
The derivation is in the doc.
Callers 7
- InitInventoryAlerts ui
- Script::UpdateInventoryAlertStatus ui
- OnItemStackCountChanged objectlayer
- OnItemFlagsChanged objectlayer
- OnItemDurabilityChanged objectlayer
- RefreshItemEnchantmentVisual objectlayer
- CGPlayer_C::OnVisibleItemChanged objectlayer
Callees 7
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- FireTutorial ui
- CGItem_C::GetEnchantmentRemainingMs objectlayer
- CountInventoryItemsByEntry objectlayer
- GetItemInSlot objectlayer
- FrameScript_SignalEvent ui
Calls and jumps by a bare address, from tables/calls.tsv.