Wikia

WoWWiki

API IsEquippableItem

Talk0
102,016pages on
this wiki
Revision as of 20:25, January 4, 2009 by Catamorfizm (Talk | contribs)

(diff) ←Older revision | Latest revision (diff) | Newer revision → (diff)
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

Arguments

(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

result 
1 if equip-able, nil otherwise.

Example

On a Druid:

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

Around Wikia's network

Random Wiki