Core/Mail: implement a way to specify NPC sender for mails when they should be different from the quest ender (#17601)

(cherry picked from commit d4e15f1aac3159bb5e17808ee06efb847fdd4789)

# Conflicts:
#	src/server/game/Quests/QuestDef.cpp
#	src/server/game/Quests/QuestDef.h

Rename 9999_99_99_99_world.sql to sql/updates/world/3.3.5/2016_07_19_00_world.sql
(cherry picked from commit 3a77dec6e6fac47fedeb0aeddd09dfe12c3817a2)
This commit is contained in:
SnapperRy
2017-02-11 15:19:42 +01:00
committed by joschiwald
parent 8d45095e28
commit 13bac539d6
7 changed files with 40 additions and 4 deletions
+2 -1
View File
@@ -206,7 +206,8 @@ void Quest::LoadQuestTemplateAddon(Field* fields)
RequiredMinRepValue = fields[13].GetInt32();
RequiredMaxRepValue = fields[14].GetInt32();
SourceItemIdCount = fields[15].GetUInt8();
SpecialFlags = fields[16].GetUInt8();
RewardMailSenderEntry = fields[16].GetUInt32();
SpecialFlags = fields[17].GetUInt8();
if (SpecialFlags & QUEST_SPECIAL_FLAGS_AUTO_ACCEPT)
Flags |= QUEST_FLAGS_AUTO_ACCEPT;