WoW:API GetRepairAllCost: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(upgraded code block)
m (Move page script moved page API GetRepairAllCost to API GetRepairAllCost without leaving a redirect)
 
(One intermediate revision by one other user not shown)
Line 12: Line 12:
:repairAllCost, canRepair <!-- remove this line if it's just one value -->
:repairAllCost, canRepair <!-- remove this line if it's just one value -->


:;repairAllCost: Number - repair cost
:;repairAllCost: Number - repair cost in copper
:;canRepair : Boolean - repairs needed?
:;canRepair : Number - returns 1 if merchant can repair and player has damaged items, nil otherwise


==Details==
==Details==

Latest revision as of 04:46, 15 August 2023

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