|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
Functions | |
| int | CanBeTraded (lua_State *L, Item *item) |
| int | ClearEnchantment (lua_State *L, Item *item) |
| int | GetAllowableClass (lua_State *L, Item *item) |
| int | GetAllowableRace (lua_State *L, Item *item) |
| int | GetBagSize (lua_State *L, Item *item) |
| int | GetBagSlot (lua_State *L, Item *item) |
| int | GetBuyCount (lua_State *L, Item *item) |
| int | GetBuyPrice (lua_State *L, Item *item) |
| int | GetClass (lua_State *L, Item *item) |
| int | GetCount (lua_State *L, Item *item) |
| int | GetDisplayId (lua_State *L, Item *item) |
| int | GetEnchantmentId (lua_State *L, Item *item) |
| int | GetGUID (lua_State *L, Item *item) |
| int | GetGUIDLow (lua_State *L, Item *item) |
| int | GetInventoryType (lua_State *L, Item *item) |
| int | GetItemLevel (lua_State *L, Item *item) |
| int | GetItemLink (lua_State *L, Item *item) |
| int | GetItemSet (lua_State *L, Item *item) |
| int | GetMaxStackCount (lua_State *L, Item *item) |
| int | GetName (lua_State *L, Item *item) |
| int | GetOwner (lua_State *L, Item *item) |
| int | GetOwnerGUID (lua_State *L, Item *item) |
| int | GetQuality (lua_State *L, Item *item) |
| int | GetRandomProperty (lua_State *L, Item *item) |
| int | GetRandomSuffix (lua_State *L, Item *item) |
| int | GetRequiredLevel (lua_State *L, Item *item) |
| int | GetSellPrice (lua_State *L, Item *item) |
| int | GetSlot (lua_State *L, Item *item) |
| int | GetSpellId (lua_State *L, Item *item) |
| int | GetSpellTrigger (lua_State *L, Item *item) |
| int | GetStatsCount (lua_State *L, Item *item) |
| int | GetSubClass (lua_State *L, Item *item) |
| int | HasQuest (lua_State *L, Item *item) |
| int | IsArmorVellum (lua_State *L, Item *item) |
| int | IsBag (lua_State *L, Item *item) |
| int | IsBoundAccountWide (lua_State *L, Item *item) |
| int | IsBoundByEnchant (lua_State *L, Item *item) |
| int | IsBroken (lua_State *L, Item *item) |
| int | IsConjuredConsumable (lua_State *L, Item *item) |
| int | IsCurrencyToken (lua_State *L, Item *item) |
| int | IsEquipped (lua_State *L, Item *item) |
| int | IsInBag (lua_State *L, Item *item) |
| int | IsInTrade (lua_State *L, Item *item) |
| int | IsLocked (lua_State *L, Item *item) |
| int | IsNotBoundToPlayer (lua_State *L, Item *item) |
| int | IsNotEmptyBag (lua_State *L, Item *item) |
| int | IsPotion (lua_State *L, Item *item) |
| int | IsRefundExpired (lua_State *L, Item *item) |
| int | IsSoulBound (lua_State *L, Item *item) |
| int | IsWeaponVellum (lua_State *L, Item *item) |
| int | SaveToDB (lua_State *L, Item *item) |
| int | SetBinding (lua_State *L, Item *item) |
| int | SetCount (lua_State *L, Item *item) |
| int | SetEnchantment (lua_State *L, Item *item) |
| int | SetOwner (lua_State *L, Item *item) |
| int LuaItem::CanBeTraded | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 171 of file ItemMethods.cpp.
References Item::CanBeTraded(), and sEluna.
| int LuaItem::ClearEnchantment | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 297 of file ItemMethods.cpp.
References Player::ApplyEnchantment(), Item::ClearEnchantment(), Item::GetEnchantmentId(), Item::GetOwner(), MAX_INSPECTED_ENCHANTMENT_SLOT, and sEluna.
| int LuaItem::GetAllowableClass | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 424 of file ItemMethods.cpp.
References ItemTemplate::AllowableClass, Item::GetTemplate(), and sEluna.
| int LuaItem::GetAllowableRace | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 430 of file ItemMethods.cpp.
References ItemTemplate::AllowableRace, Item::GetTemplate(), and sEluna.
| int LuaItem::GetBagSize | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 473 of file ItemMethods.cpp.
References sEluna, and Item::ToBag().
| int LuaItem::GetBagSlot | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 209 of file ItemMethods.cpp.
References Item::GetBagSlot(), and sEluna.
| int LuaItem::GetBuyCount | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 400 of file ItemMethods.cpp.
References ItemTemplate::BuyCount, Item::GetTemplate(), and sEluna.
| int LuaItem::GetBuyPrice | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 406 of file ItemMethods.cpp.
References ItemTemplate::BuyPrice, Item::GetTemplate(), and sEluna.
| int LuaItem::GetClass | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 370 of file ItemMethods.cpp.
References ItemTemplate::Class, Item::GetTemplate(), and sEluna.
| int LuaItem::GetCount | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 184 of file ItemMethods.cpp.
References Item::GetCount(), and sEluna.
| int LuaItem::GetDisplayId | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 388 of file ItemMethods.cpp.
References ItemTemplate::DisplayInfoID, Item::GetTemplate(), and sEluna.
| int LuaItem::GetEnchantmentId | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 332 of file ItemMethods.cpp.
References Item::GetEnchantmentId(), MAX_INSPECTED_ENCHANTMENT_SLOT, and sEluna.
| int LuaItem::GetGUID | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 78 of file ItemMethods.cpp.
References Object::GetGUID(), and sEluna.
| int LuaItem::GetGUIDLow | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 326 of file ItemMethods.cpp.
References Object::GetGUID(), GUID_LOPART(), and sEluna.
| int LuaItem::GetInventoryType | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 418 of file ItemMethods.cpp.
References Item::GetTemplate(), ItemTemplate::InventoryType, and sEluna.
| int LuaItem::GetItemLevel | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 436 of file ItemMethods.cpp.
References Item::GetTemplate(), ItemTemplate::ItemLevel, and sEluna.
| int LuaItem::GetItemLink | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 12 of file ItemMethods.cpp.
References BONUS_ENCHANTMENT_SLOT, DEFAULT_LOCALE, Item::GetEnchantmentId(), Item::GetItemRandomPropertyId(), Item::GetItemSuffixFactor(), Unit::getLevel(), ObjectMgr::GetLocaleString(), Item::GetOwner(), Item::GetTemplate(), ItemTemplate::ItemId, ItemQualityColors, MAX_LOCALES, ItemTemplate::Name1, ItemRandomPropertiesEntry::nameSuffix, ItemRandomSuffixEntry::nameSuffix, PERM_ENCHANTMENT_SLOT, ItemTemplate::Quality, sEluna, sItemRandomPropertiesStore, sItemRandomSuffixStore, sObjectMgr, SOCK_ENCHANTMENT_SLOT, SOCK_ENCHANTMENT_SLOT_2, and SOCK_ENCHANTMENT_SLOT_3.
| int LuaItem::GetItemSet | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 467 of file ItemMethods.cpp.
References Item::GetTemplate(), ItemTemplate::ItemSet, and sEluna.
| int LuaItem::GetMaxStackCount | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 197 of file ItemMethods.cpp.
References Item::GetMaxStackCount(), and sEluna.
| int LuaItem::GetName | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 382 of file ItemMethods.cpp.
References Item::GetTemplate(), ItemTemplate::Name1, and sEluna.
| int LuaItem::GetOwner | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 90 of file ItemMethods.cpp.
References Item::GetOwner(), and sEluna.
| int LuaItem::GetOwnerGUID | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 84 of file ItemMethods.cpp.
References Item::GetOwnerGUID(), and sEluna.
| int LuaItem::GetQuality | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 394 of file ItemMethods.cpp.
References Item::GetTemplate(), ItemTemplate::Quality, and sEluna.
| int LuaItem::GetRandomProperty | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 455 of file ItemMethods.cpp.
References Item::GetTemplate(), ItemTemplate::RandomProperty, and sEluna.
| int LuaItem::GetRandomSuffix | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 461 of file ItemMethods.cpp.
References Item::GetTemplate(), ItemTemplate::RandomSuffix, and sEluna.
| int LuaItem::GetRequiredLevel | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 442 of file ItemMethods.cpp.
References Item::GetTemplate(), ItemTemplate::RequiredLevel, and sEluna.
| int LuaItem::GetSellPrice | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 412 of file ItemMethods.cpp.
References Item::GetTemplate(), ItemTemplate::SellPrice, and sEluna.
| int LuaItem::GetSlot | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 203 of file ItemMethods.cpp.
References Item::GetSlot(), and sEluna.
| int LuaItem::GetSpellId | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 344 of file ItemMethods.cpp.
References Item::GetTemplate(), MAX_ITEM_PROTO_SPELLS, sEluna, _Spell::SpellId, and ItemTemplate::Spells.
| int LuaItem::GetSpellTrigger | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 357 of file ItemMethods.cpp.
References Item::GetTemplate(), MAX_ITEM_PROTO_SPELLS, sEluna, ItemTemplate::Spells, and _Spell::SpellTrigger.
| int LuaItem::GetStatsCount | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 448 of file ItemMethods.cpp.
| int LuaItem::GetSubClass | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 376 of file ItemMethods.cpp.
References Item::GetTemplate(), sEluna, and ItemTemplate::SubClass.
| int LuaItem::HasQuest | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 227 of file ItemMethods.cpp.
References Item::hasQuest(), and sEluna.
| int LuaItem::IsArmorVellum | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 247 of file ItemMethods.cpp.
| int LuaItem::IsBag | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 147 of file ItemMethods.cpp.
References Item::IsBag(), and sEluna.
| int LuaItem::IsBoundAccountWide | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 119 of file ItemMethods.cpp.
References Item::IsBoundAccountWide(), and sEluna.
| int LuaItem::IsBoundByEnchant | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 125 of file ItemMethods.cpp.
References Item::IsBoundByEnchant(), and sEluna.
| int LuaItem::IsBroken | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 165 of file ItemMethods.cpp.
References Item::IsBroken(), and sEluna.
| int LuaItem::IsConjuredConsumable | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 254 of file ItemMethods.cpp.
References Item::IsConjuredConsumable(), and sEluna.
| int LuaItem::IsCurrencyToken | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 153 of file ItemMethods.cpp.
References Item::IsCurrencyToken(), and sEluna.
| int LuaItem::IsEquipped | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 221 of file ItemMethods.cpp.
References Item::IsEquipped(), and sEluna.
| int LuaItem::IsInBag | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 215 of file ItemMethods.cpp.
References Item::IsInBag(), and sEluna.
| int LuaItem::IsInTrade | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 178 of file ItemMethods.cpp.
References Item::IsInTrade(), and sEluna.
| int LuaItem::IsLocked | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 141 of file ItemMethods.cpp.
References Item::IsLocked(), and sEluna.
| int LuaItem::IsNotBoundToPlayer | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 131 of file ItemMethods.cpp.
References Item::IsBindedNotWith(), and sEluna.
| int LuaItem::IsNotEmptyBag | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 159 of file ItemMethods.cpp.
References Item::IsNotEmptyBag(), and sEluna.
| int LuaItem::IsPotion | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 234 of file ItemMethods.cpp.
References Item::IsPotion(), and sEluna.
| int LuaItem::IsRefundExpired | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 260 of file ItemMethods.cpp.
| int LuaItem::IsSoulBound | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 113 of file ItemMethods.cpp.
References Item::IsSoulBound(), and sEluna.
| int LuaItem::IsWeaponVellum | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 240 of file ItemMethods.cpp.
| int LuaItem::SaveToDB | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 482 of file ItemMethods.cpp.
References Item::SaveToDB().
| int LuaItem::SetBinding | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 105 of file ItemMethods.cpp.
References Item::SetBinding().
| int LuaItem::SetCount | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 190 of file ItemMethods.cpp.
References Item::SetCount().
| int LuaItem::SetEnchantment | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 266 of file ItemMethods.cpp.
References Player::ApplyEnchantment(), Item::GetOwner(), MAX_INSPECTED_ENCHANTMENT_SLOT, sEluna, Item::SetEnchantment(), and sSpellItemEnchantmentStore.
| int LuaItem::SetOwner | ( | lua_State * | L, |
| Item * | item ) |
Definition at line 96 of file ItemMethods.cpp.
References Object::GetGUID(), sEluna, and Item::SetOwnerGUID().