Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
 
mNo edit summary
 
Line 1: Line 1:
  +
{{wowapi}}
−
{{for|the level 45 version|First Sergeant's Leather Armguards (level 45)}}
 
  +
Returns information about a saved equipment set:
−
{{#data:itemtip
 
  +
name, icon, setID, isEquipped, totalItems, equippedItems, inventoryItems, missingItems, ignoredSlots = GetEquipmentSetInfo(index)
−
|name=First Sergeant's Leather Armguards
 
  +
icon, setID, isEquipped, numItems, equippedItems, availableItems, missingItems, ignoredSlots = GetEquipmentSetInfoByName("name")
−
|quality=rare
 
−
|icon=inv_bracer_07
 
−
|bind=BoP
 
−
|unique=1
 
−
|slot=Wrist
 
−
|type=Leather
 
−
|armor=112
 
−
|agility=7
 
−
|stamina=17
 
−
|durability=45
 
−
|classes=Rogue
 
−
|level=58
 
−
|ilvl=63
 
−
|sellprice=12385
 
−
|itemid=16497}}
 
   
−
==Source==
+
==Arguments==
  +
;GetEquipmentSetInfo -- index : Number: an ascending index going from 1 to [[API_GetNumEquipmentSets|GetNumEquipmentSets]]().
−
This item is a PvP reward, and can be purchased for {{cost|h=1600}} from {{NPC||First Sergeant Hola'mahi|Legacy Armor Quartermaster}} in [[Hall of Legends]].
 
  +
;GetEquipmentSetInfoByName -- name: String: equipment set name.
   
−
==See also==
+
==Returns==
  +
The functions returns nothing if the queried index or set name does not exist. If the index/name is valid, the following values are returned:
−
[[Sergeant Major's Leather Armsplints]]
 
  +
; name : String: Equipment set name.
  +
; icon : String: Icon texture file name (relative to Interface/Icons) selected for this set.
  +
; setID : Number: Unknown.
  +
; isEquipped : Boolean: True if all non-ignored slots in this set are equipped.
  +
; numItems : Number: Number of items included in the set
  +
; equippedItems : Number: Number of items in this set currently equipped
  +
; availableItems: Number: Number of items in this set currently in the player's bags/bank, if bank is available
  +
; missingItems: Number: Number of items in this set that are not currently available to the player.
  +
; ignoredSlots: Number: Number of inventory slots ignored by this set
   
−
==Patch changes==
+
==Example==
  +
local name, icon = GetEquipmentSetInfo(1);
−
*{{Patch 3.3.3|note=Items which previously required Marks of Honor will have their costs adjusted to remove these requirements.}}
 
  +
if not name then
−
*{{Patch 2.0.1|note=PvP Rank requirement removed.}}
 
  +
print("You have no equipment sets");
−
*{{Patch 1.4.0|note=Added.}}
 
  +
else
  +
print("First equipment set: \124TInterface\\Icons\\" .. icon .. ":16\124t " .. name);
  +
end
   
  +
{{API Trail EquipmentManager}}
−
==External links==
 
−
<!-- Read http://www.wowpedia.org/Wowpedia:External_links before posting your links here.
 
−
Links that do not conform to the rules will be DELETED.
 
−
Repeat violations may result in a BAN.
 
−
Have a nice day. :) -->
 
−
{{elinks-item|16497}}
 
−
[[Category:Honor rewards]]
 
−
[[Category:World of Warcraft leather wrist items]]
 
−
[[Category:World of Warcraft rare items]]
 

Revision as of 00:34, 25 July 2011

Returns information about a saved equipment set:

name, icon, setID, isEquipped, totalItems, equippedItems, inventoryItems, missingItems, ignoredSlots = GetEquipmentSetInfo(index)
icon, setID, isEquipped, numItems, equippedItems, availableItems, missingItems, ignoredSlots = GetEquipmentSetInfoByName("name")

Arguments

GetEquipmentSetInfo -- index
Number: an ascending index going from 1 to GetNumEquipmentSets().
GetEquipmentSetInfoByName -- name
String: equipment set name.

Returns

The functions returns nothing if the queried index or set name does not exist. If the index/name is valid, the following values are returned:

name
String: Equipment set name.
icon
String: Icon texture file name (relative to Interface/Icons) selected for this set.
setID
Number: Unknown.
isEquipped
Boolean: True if all non-ignored slots in this set are equipped.
numItems
Number: Number of items included in the set
equippedItems
Number: Number of items in this set currently equipped
availableItems
Number: Number of items in this set currently in the player's bags/bank, if bank is available
missingItems
Number: Number of items in this set that are not currently available to the player.
ignoredSlots
Number: Number of inventory slots ignored by this set

Example

local name, icon = GetEquipmentSetInfo(1);
if not name then
 print("You have no equipment sets");
else
 print("First equipment set: \124TInterface\\Icons\\" .. icon .. ":16\124t " .. name);
end