Wikia

WoWWiki

Changes: API IsEquippableItem

Edit

Back to page

(add documentation for IsEquippableItem)
 
(Function behavior does not change with character class, statement did not add value, does lend to confusion.)
 
Line 15: Line 15:
   
 
== Example ==
 
== Example ==
On a Druid:
 
   
 
/dump IsEquippableItem("{{loot|epic|Heroes' Dreadnaught Helmet}}")
 
/dump IsEquippableItem("{{loot|epic|Heroes' Dreadnaught Helmet}}")

Latest revision as of 04:44, November 2, 2012

WoW API < IsEquippableItem

Returns 1 if item is an equip-able one at all, your character notwithstanding, or nil if not.

result = IsEquippableItem(itemId or "itemName" or "itemLink")

Parameters Edit

Arguments Edit

(itemId or "itemName" or "itemLink")
itemId 
Integer - The numeric ID of the item. ie. 12345
itemName 
String - The Name of the Item, e.g. "Heavy Silk Bandage"
itemLink 
String - The itemLink, when Shift-Clicking items.

Returns Edit

result 
1 if equip-able, nil otherwise.

Example Edit

/dump IsEquippableItem("[Heroes' Dreadnaught Helmet]")
1
/dump IsEquippableItem("[Heroes' Dreamwalker Headguard]")
1
/dump IsEquippableItem("[Mr. Pinchy]")
nil

Around Wikia's network

Random Wiki