Class Item [-] [+]
Represents an instance of an item in the game world.
Inherits all methods from: Object
Methods
| CanBeTraded |
Returns 'true' if the Item can be traded, 'false' otherwise |
| ClearEnchantment |
Removes an enchant from the Item by the specified slot |
| GetAllowableClass | |
| GetAllowableRace | |
| GetBagSize | |
| GetBagSlot |
Returns the Items current bag slot |
| GetBuyCount |
Returns the default purchase count of the Item |
| GetBuyPrice |
Returns the purchase price of the Item |
| GetClass |
Returns class of the Item |
| GetCount |
Returns the Items stack count |
| GetDisplayId |
Returns the display ID of the Item |
| GetEnchantmentId |
Returns the Items enchantment ID by enchant slot specified |
| GetInventoryType |
Returns the inventory type of the Item |
| GetItemLevel |
Returns the Items level |
| GetItemLink |
Returns the chat link of the Item |
| GetItemSet |
Returns the item set ID of this Item |
| GetItemTemplate |
Returns the ItemTemplate for this Item. |
| GetMaxStackCount |
Returns the Items max stack count |
| GetName |
Returns the name of the Item |
| GetOwner | |
| GetOwnerGUID | |
| GetQuality |
Returns the quality of the Item |
| GetRandomProperty |
Returns the random property ID of this Item |
| GetRandomSuffix |
Returns the random suffix ID of the specified Item. This corresponds to the |
| GetRequiredLevel |
Returns the minimum level required to use this Item |
| GetSellPrice |
Returns the sell price of the Item |
| GetSlot |
Returns the Items current slot |
| GetSpellId |
Returns the spell ID tied to the Item by spell index |
| GetSpellTrigger |
Returns the spell trigger tied to the Item by spell index |
| GetStatsCount |
Returns the number of stat entries defined on the Item's ItemTemplate. This reflects how many stat slots (e.g., Strength, Stamina, etc.) are defined for the item. |
| GetSubClass |
Returns subclass of the Item |
| HasQuest |
Returns 'true' if the Item has the Quest specified tied to it, 'false' otherwise |
| IsArmorVellum |
Returns 'true' if the Item is an armor vellum, 'false' otherwise |
| IsBag |
Returns 'true' if the Item is a bag, 'false' otherwise |
| IsBoundAccountWide |
Returns 'true' if the Item is account bound, 'false' otherwise |
| IsBoundByEnchant |
Returns 'true' if the Item is bound to a Player by an enchant, 'false' otehrwise |
| IsBroken |
Returns 'true' if the Item is broken, 'false' otherwise |
| IsConjuredConsumable |
Returns 'true' if the Item is a conjured consumable, 'false' otherwise |
| IsCurrencyToken |
Returns 'true' if the Item is a currency token, 'false' otherwise |
| IsEquipped |
Returns 'true' if the Item is currently equipped, 'false' otherwise |
| IsInBag |
Returns 'true' if the Item is currently in a bag, 'false' otherwise |
| IsInTrade |
Returns 'true' if the Item is currently in a trade window, 'false' otherwise |
| IsLocked |
Returns 'true' if the Item is locked, 'false' otherwise |
| IsNotBoundToPlayer |
Returns 'true' if the Item is not bound to the Player specified, 'false' otherwise |
| IsNotEmptyBag |
Returns 'true' if the Item is a not an empty bag, 'false' otherwise |
| IsPotion |
Returns 'true' if the Item is a potion, 'false' otherwise |
| IsSoulBound |
Returns 'true' if the Item is soulbound, 'false' otherwise |
| IsWeaponVellum |
Returns 'true' if the Item is a weapon vellum, 'false' otherwise |
| SaveToDB |
Saves the Item to the database |
| SetBinding |
Sets the binding of the Item to 'true' or 'false' |
| SetCount |
Sets the stack count of the Item |
| SetEnchantment |
Sets the specified enchantment of the Item to the specified slot |
| SetOwner | |
| SetRandomProperty |
Sets the random properties for the Item from a given random property ID. |
| SetRandomSuffix |
Sets the random suffix for the Item from a given random suffix ID. |