mirror of
https://github.com/mangosfour/server.git
synced 2025-12-22 22:37:06 +00:00
[10266] Implement CONDITION_ACHIEVEMENT and CONDITION_ACHIEVEMENT_REALM
This commit is contained in:
parent
30def33fed
commit
d9a7a2ba12
5 changed files with 45 additions and 2 deletions
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue