2407 *(
int32*)requiredDisenchantSkill = -1;
2409 itemTemplate.GetBonding() ==
BIND_QUEST_ITEM || itemTemplate.GetArea() || itemTemplate.GetMap() ||
2410 itemTemplate.GetMaxStackSize() > 1 ||
2422 if (disenchant->
ItemClass == itemTemplate.GetClass() &&
2423 disenchant->
ItemQuality == itemTemplate.GetQuality() &&
2424 disenchant->
MinItemLevel <= itemTemplate.GetBaseItemLevel() &&
2425 disenchant->
MaxItemLevel >= itemTemplate.GetBaseItemLevel())
2427 if (disenchant->
ID == 60 || disenchant->
ID == 61)
2429 if (itemTemplate.GetBaseRequiredLevel() > 60 || itemTemplate.GetRequiredSkillRank() > 300)
2432 else if (disenchant->
ID == 66 || disenchant->
ID == 67)
2434 if (itemTemplate.GetBaseRequiredLevel() <= 60 || (itemTemplate.GetRequiredSkill() && itemTemplate.GetRequiredSkillRank() <= 300))
2438 *disenchantID = disenchant->
ID;
Definition: ItemTemplate.h:174
uint32 RequiredDisenchantSkill
Definition: DB2Structure.h:693
Definition: DB2Structure.h:685
Definition: ItemTemplate.h:123
DB2Storage< ItemCurrencyCostEntry > sItemCurrencyCostStore("ItemCurrencyCost.db2", ItemCurrencyCostFormat, HOTFIX_SEL_ITEM_CURRENCY_COST)
uint32 ItemQuality
Definition: DB2Structure.h:690
static uint32 GetSpecialPrice(ItemTemplate const *proto, uint32 minimumPrice=10000)
Definition: Item.cpp:1661
uint32 MaxItemLevel
Definition: DB2Structure.h:692
int32_t int32
Definition: Define.h:146
uint32_t uint32
Definition: Define.h:150
Definition: SharedDefines.h:322
uint32 MinItemLevel
Definition: DB2Structure.h:691
Definition: ItemTemplate.h:369
Definition: ItemTemplate.h:188
Definition: SharedDefines.h:324
uint32 ID
Definition: DB2Structure.h:687
Definition: ItemTemplate.h:371
uint32 ItemClass
Definition: DB2Structure.h:688
DB2Storage< ItemDisenchantLootEntry > sItemDisenchantLootStore("ItemDisenchantLoot.db2", ItemDisenchantLootFormat, HOTFIX_SEL_ITEM_DISENCHANT_LOOT)