Core/Quests: Implement quests that require PlayerSlain. Closes #169

This commit is contained in:
Nay
2011-09-05 15:20:02 +01:00
parent 99935fd98c
commit fd3bd4c49d
7 changed files with 88 additions and 9 deletions
+4 -1
View File
@@ -40,6 +40,7 @@ class ObjectMgr;
#define QUEST_DEPLINK_COUNT 10
#define QUEST_REPUTATIONS_COUNT 5
#define QUEST_EMOTE_COUNT 4
#define QUEST_PVP_KILL_SLOT 0
enum QuestFailedReasons
{
@@ -157,6 +158,7 @@ enum __QuestFlags
QUEST_TRINITY_FLAGS_SPEAKTO = 0x08000000, // Internal flag computed only
QUEST_TRINITY_FLAGS_KILL_OR_CAST = 0x10000000, // Internal flag computed only
QUEST_TRINITY_FLAGS_TIMED = 0x20000000, // Internal flag computed only
QUEST_TRINITY_FLAGS_PLAYER_KILL = 0x40000000, // Internal flag computed only
};
struct QuestLocale
@@ -355,7 +357,7 @@ class Quest
struct QuestStatusData
{
QuestStatusData(): m_status(QUEST_STATUS_NONE), m_explored(false), m_timer(0)
QuestStatusData(): m_status(QUEST_STATUS_NONE), m_explored(false), m_timer(0), m_playercount(0)
{
memset(m_itemcount, 0, QUEST_ITEM_OBJECTIVES_COUNT * sizeof(uint16));
memset(m_creatureOrGOcount, 0, QUEST_OBJECTIVES_COUNT * sizeof(uint16));
@@ -366,5 +368,6 @@ struct QuestStatusData
uint32 m_timer;
uint16 m_itemcount[QUEST_ITEM_OBJECTIVES_COUNT];
uint16 m_creatureOrGOcount[QUEST_OBJECTIVES_COUNT];
uint16 m_playercount;
};
#endif