Core/Quests: Fixed questgiver icons

Port From (https://github.com/TrinityCore/TrinityCore/commit/5f3a2d2abf296d1eaf9788244100c91de8b7a619)
This commit is contained in:
hondacrx
2020-12-14 14:01:25 -05:00
parent 5d6f0d6401
commit 56d007da4c
11 changed files with 178 additions and 48 deletions
+44 -15
View File
@@ -230,23 +230,32 @@ namespace Framework.Constants
Max
}
public enum QuestGiverStatus
public enum QuestGiverStatus : uint
{
None = 0x000,
Unk = 0x001,
Unavailable = 0x002,
LowLevelAvailable = 0x004,
LowLevelRewardRep = 0x008,
LowLevelAvailableRep = 0x010,
Incomplete = 0x020,
RewardRep = 0x040,
AvailableRep = 0x080,
Available = 0x100,
Reward2 = 0x200, // No Yellow Dot On Minimap
Reward = 0x400, // Yellow Dot On Minimap
None = 0x00,
Future = 0x02,
Trivial = 0x04,
TrivialRepeatableTurnin = 0x08,
TrivialDailyQuest = 0x10,
Reward = 0x20,
JourneyReward = 0x40,
CovenantCallingReward = 0x80,
RepeatableTurnin = 0x100,
DailyQuest = 0x200,
Quest = 0x400,
RewardCompleteNoPOI = 0x800,
RewardCompletePOI = 0x1000,
LegendaryQuest = 0x2000,
LegendaryRewardCompleteNoPOI = 0x4000,
LegendaryRewardCompletePOI = 0x8000,
JourneyQuest = 0x10000,
JourneyRewardCompleteNoPOI = 0x20000,
JourneyRewardCompletePOI = 0x40000,
CovenantCallingQuest = 0x80000,
CovenantCallingRewardCompleteNoPOI = 0x100000,
CovenantCallingRewardCompletePOI = 0x200000,
// Custom value meaning that script call did not return any valid quest status
ScriptedNoStatus = 0x1000
ScriptedDefault = 0x80000000
}
[Flags]
@@ -373,4 +382,24 @@ namespace Framework.Constants
Delete,
ForceDelete
}
public enum QuestTagType
{
Tag,
Profession,
Normal,
Pvp,
PetBattle,
Bounty,
Dungeon,
Invasion,
Raid,
Contribution,
RatedRreward,
InvasionWrapper,
FactionAssault,
Islands,
Threat,
CovenantCalling
}
}
@@ -790,6 +790,11 @@ namespace Framework.Database
PrepareStatement(HotfixStatements.SEL_QUEST_FACTION_REWARD, "SELECT ID, Difficulty1, Difficulty2, Difficulty3, Difficulty4, Difficulty5, Difficulty6, " +
"Difficulty7, Difficulty8, Difficulty9, Difficulty10 FROM quest_faction_reward");
// QuestInfo.db2
PrepareStatement(HotfixStatements.SEL_QUEST_INFO, "SELECT ID, InfoName, Type, Modifiers, Profession FROM quest_info");
PrepareStatement(HotfixStatements.SEL_QUEST_INFO_LOCALE, "SELECT ID, InfoName_lang FROM quest_info_locale WHERE locale = ?");
// QuestMoneyReward.db2
PrepareStatement(HotfixStatements.SEL_QUEST_MONEY_REWARD, "SELECT ID, Difficulty1, Difficulty2, Difficulty3, Difficulty4, Difficulty5, Difficulty6, " +
"Difficulty7, Difficulty8, Difficulty9, Difficulty10 FROM quest_money_reward");
@@ -1534,6 +1539,9 @@ namespace Framework.Database
SEL_QUEST_FACTION_REWARD,
SEL_QUEST_INFO,
SEL_QUEST_INFO_LOCALE,
SEL_QUEST_MONEY_REWARD,
SEL_QUEST_PACKAGE_ITEM,