Core/Quests: Implemented QUEST_OBJECTIVE_FLAG_2_QUEST_BOUND_ITEM that makes required items not be stored in inventory
Port From (https://github.com/TrinityCore/TrinityCore/commit/4dce6ab228c54319032b346d2d791262eac3d9cd)
This commit is contained in:
@@ -5000,7 +5000,7 @@ namespace Game
|
||||
var time = Time.GetMSTime();
|
||||
|
||||
uint count = 0;
|
||||
SQLResult result = DB.World.Query("SELECT Id, FlagsCu, FoodType, MinMoneyLoot, MaxMoneyLoot, SpellPPMChance, RandomBonusListTemplateId FROM item_template_addon");
|
||||
SQLResult result = DB.World.Query("SELECT Id, FlagsCu, FoodType, MinMoneyLoot, MaxMoneyLoot, SpellPPMChance, RandomBonusListTemplateId, QuestLogItemId FROM item_template_addon");
|
||||
if (!result.IsEmpty())
|
||||
{
|
||||
do
|
||||
@@ -5028,6 +5028,7 @@ namespace Game
|
||||
itemTemplate.MaxMoneyLoot = maxMoneyLoot;
|
||||
itemTemplate.SpellPPMRate = result.Read<float>(5);
|
||||
itemTemplate.RandomBonusListTemplateId = result.Read<uint>(6);
|
||||
itemTemplate.QuestLogItemId = result.Read<int>(7);
|
||||
++count;
|
||||
} while (result.NextRow());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user