WoW API: GetRepairAllCost

From AddOn Studio
Revision as of 04:46, 15 August 2023 by Move page script (talk) (Move page script moved page API GetRepairAllCost to API GetRepairAllCost without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < GetRepairAllCost

repairAllCost, canRepair = GetRepairAllCost()

Parameters

Arguments none

Returns

repairAllCost, canRepair
repairAllCost
Number - repair cost in copper
canRepair
Number - returns 1 if merchant can repair and player has damaged items, nil otherwise

Details

Used by MerchantFrame when the MerchantRepairAllButton button is clicked
Does NOT work without the proper type of merchant window open