benilla-re systems structs docs

Script::CanMerchantRepair

function · ui · orchestration

Address
0x4fba80 · 45 bytes, up to 0x4fbaac
Signature
int __fastcall (lua_State *L)
Meaning
Returns 1 when the open vendor repairs, else nil
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/merchant#repair-capability

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

CanMerchantRepair() returns the number 1 when a vendor is open and its UNIT_NPC_FLAGS has bit 0x4000, else nil. It reads the cached vendor GUID 0xbddfa0, not the unit under the mouse. InRepairMode(), ShowRepairCursor() and HideRepairCursor() are in ui/merchantcursor#the-repair-cursor.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 3

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