s_merchantGuid
global · ui
- Address
0xbddfa0· 8 bytes, up to0xbddfa7- Type
uint64_t- Meaning
- Holds the GUID of the open vendor, 0 when none is open
- Confidence
- verified, proof one
- 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.