[10266] Implement CONDITION_ACHIEVEMENT and CONDITION_ACHIEVEMENT_REALM

This commit is contained in:
VladimirMangos 2010-07-25 00:00:52 +04:00
parent 30def33fed
commit d9a7a2ba12
5 changed files with 45 additions and 2 deletions

View file

@ -370,9 +370,11 @@ enum ConditionType
CONDITION_SPELL = 17, // spell_id 0, 1 (0: has spell, 1: hasn't spell)
CONDITION_INSTANCE_SCRIPT = 18, // map_id instance_condition_id (instance script specific enum)
CONDITION_QUESTAVAILABLE = 19, // quest_id 0 for case when loot/gossip possible only if player can start quest
CONDITION_ACHIEVEMENT = 20, // ach_id 0, 1 (0: has achievement, 1: hasn't achievement) for player
CONDITION_ACHIEVEMENT_REALM = 21, // ach_id 0, 1 (0: has achievement, 1: hasn't achievement) for server
};
#define MAX_CONDITION 20 // maximum value in ConditionType enum
#define MAX_CONDITION 22 // maximum value in ConditionType enum
struct PlayerCondition
{