Script::GetRepairAllCost
function · ui · primitive
- Address
0x4fbd60· 638 bytes, up to0x4fbfdd- Signature
int __fastcall (lua_State *L)- Meaning
- Returns the repair cost of the equipped items, backpack and bag contents and whether any is damaged
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/merchant#repair-all-cost
Finding: Repair-all cost in ui: buy-back, shopping tooltips and repair
GetRepairAllCost() returns the number 0 alone unless a repair vendor is open and a player exists; otherwise two
values: the total, and 1 when any counted item is damaged else nil. It sums 0x4faf30 over the equipped slots 0
to 18, the backpack slots 23 to 38 and every item inside the four equipped bags (slots 19 to 22); the bags themselves,
the bank, the keyring and the buy-back slots are not counted. An item counts when bit 1 of its object type word is
set, its flags lack 0x8 and its maximum durability is above 0. The damaged flag is any counted item with current
durability below maximum.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 7
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- MerchantCanRepair ui
- GetItemRepairCost ui
- GetItemInSlot objectlayer
- lua_pushnil lua
- lua_pushnumber lua
Calls and jumps by a bare address, from tables/calls.tsv.