benilla-re systems structs docs

Script::RepairAllItems

function · ui · primitive

Address
0x4fbfe0 · 371 bytes, up to 0x4fc152
Signature
int __fastcall (lua_State *L)
Meaning
Sends CMSG_REPAIR_ITEM for all items after an equipped-slots affordability check
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/merchant#repair-all

Finding: Repair all in ui: buy-back, shopping tooltips and repair

RepairAllItems() does nothing unless a repair vendor is open and a player exists. It sums the cost of the equipped slots 0 to 18 only; if that exceeds the player's coin it shows ERR_NOT_ENOUGH_MONEY (error 0x25) and sends nothing. Otherwise it sends CMSG_REPAIR_ITEM (0x2a8) with the vendor GUID and an item GUID of 0, which repairs everything. It plays no sound; the interface plays ITEM_REPAIR after the call whether or not it sent.

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.