Changeset 18 for trunk/src/game/QuestDef.h
- Timestamp:
- 11/19/08 13:23:29 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/game/QuestDef.h
r2 r18 115 115 // Flags used at server and sended to client 116 116 QUEST_FLAGS_STAY_ALIVE = 1, // Not used currently 117 QUEST_FLAGS_ EVENT = 2, // Not used currently117 QUEST_FLAGS_PARTY_ACCEPT = 2, // Not used currently. If player in party, all players that can accept this quest will receive confirmation box to accept quest CMSG_QUEST_CONFIRM_ACCEPT/SMSG_QUEST_CONFIRM_ACCEPT 118 118 QUEST_FLAGS_EXPLORATION = 4, // Not used currently 119 119 QUEST_FLAGS_SHARABLE = 8, // Can be shared: Player::CanShareQuest() … … 168 168 // table data accessors: 169 169 uint32 GetQuestId() const { return QuestId; } 170 uint32 GetQuestMethod() const { return QuestMethod; } 170 171 int32 GetZoneOrSort() const { return ZoneOrSort; } 171 172 int32 GetSkillOrClass() const { return SkillOrClass; } … … 213 214 uint32 GetQuestCompleteScript() const { return QuestCompleteScript; } 214 215 bool IsRepeatable() const { return QuestFlags & QUEST_MANGOS_FLAGS_REPEATABLE; } 215 bool IsAutoComplete() const { return Objectives.empty(); }216 bool IsAutoComplete() const { return QuestMethod ? false : true; } 216 217 uint32 GetFlags() const { return QuestFlags; } 217 218 bool IsDaily() const { return QuestFlags & QUEST_FLAGS_DAILY; } … … 256 257 protected: 257 258 uint32 QuestId; 259 uint32 QuestMethod; 258 260 int32 ZoneOrSort; 259 261 int32 SkillOrClass;