WoW:API GetRepairAllCost: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
m (Move page script moved page API GetRepairAllCost to API GetRepairAllCost without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{wowapi}} __NOTOC__
{{wowapi}}
 
repairAllCost, canRepair = GetRepairAllCost()
 
<!-- Describe the purpose of the function, exhausting detail can be saved for a later section -->
One line summary description of function.
<!-- List return values and arguments as well as function name, follow Blizzard usage convention for args -->
{{Code/Begin}}
repairAllCost, canRepair = GetRepairAllCost()
{{Code/End}}
 


== Parameters ==
== Parameters ==
Line 20: 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