Class Item [-] [+]

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

Returns the Player classes allowed to use this Item

GetAllowableRace

Returns the Player races allowed to use this Item

GetBagSize

Returns the bag size of this Item, 0 if Item is not a bag

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

GetExtraFlags

Returns the extraFlags of the Item

GetFlags

Returns the flags of the Item

GetFlags2

Returns the flags2 of the Item

GetInventoryType

Returns the inventory type of the Item

GetItemId

Returns the ID 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

GetMaxStackCount

Returns the Items max stack count

GetName

Returns the name of the Item

GetOwner

Returns the Player who currently owns the Item

GetOwnerGUID

Returns GUID of the Player who currently owns the Item

GetQuality

Returns the quality of the Item

GetRandomProperty

Returns the random property ID of this Item

GetRandomSuffix

Returns the random suffix ID of this Item

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 amount of stat values on this 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

IsRefundExpired

Returns 'true' if the refund period has expired for this Item, '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

Sets the Player specified as the owner of the Item

Generated on
© 2010 - 2024 Eluna Lua Engine