WoW:API RepairAllItems: Difference between revisions

added proper definition for optional argument, updated template
(Update for 2.3 Repair from guild bank)
(added proper definition for optional argument, updated template)
Line 1: Line 1:
{{wowapi}}
{{wowapi}}
RepairAllItems()
Repairs all equipped and inventory items.


== Parameters ==
RepairAllItems([guildBankRepair])


<big>'''Arguments'''</big>
----
<!-- List each argument, together with its type -->
;''Arguments''
:;nil


:(Flag guildBankRepair)


<big>'''Returns'''</big>
:;guildBankRepair: Flag <small>''(optional)''</small> - If 1, use guild funds to repair.  If 0, nil, or missing, use player funds.
<!-- List each return value, together with its type -->
:;nil


== Notes ==
----
;''Returns''


Added in patch 2.3 this function call takes an argument of 1, being pull money from the guild bank.
:''nil''
Related API is CanGuildBankRepair(), returns nil if you cannot and 1 if you can. [[User:Orionshock|Orionshock]] 12:37, 16 November 2007 (UTC)
 
==Notes==
 
The guildBankRepair argument was added in [[Patch 2.3]].
Anonymous user