summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/achievement_criteria_data.md160
1 files changed, 78 insertions, 82 deletions
diff --git a/docs/achievement_criteria_data.md b/docs/achievement_criteria_data.md
index 17f9dac..c4fe76b 100644
--- a/docs/achievement_criteria_data.md
+++ b/docs/achievement_criteria_data.md
@@ -10,11 +10,11 @@ This table contains the data that a player needs to obtain / complete in order t
| Field | Type | Attributes | Key | Null | Default | Extra | Comment |
|------------------|--------------|------------|-----|------|---------|-------|---------|
-| [criteria_id][1] | mediumint(8) | signed | PRI | NO | NULL | | |
+| [criteria_id][1] | mediumint(8) | | PRI | NO | | | |
| [type][2] | tinyint(3) | unsigned | PRI | NO | 0 | | |
-| [value1][3] | medium(8) | unsigned | | NO | 0 | | |
-| [value2][4] | medium(8) | unsigned | | NO | 0 | | |
-| [ScriptName][5] | char(64) | signed | | NO | | | |
+| [value1][3] | mediumint(8) | unsigned | | NO | 0 | | |
+| [value2][4] | mediumint(8) | unsigned | | NO | 0 | | |
+| [ScriptName][5] | char(64) | | | NO | | | |
[1]: #criteria_id
[2]: #type
@@ -61,146 +61,142 @@ Depending on this value, it will determine how value1 and value2 are used.
### value1
-\***TYPE\_T\_CREATURE**
+**TYPE\_T\_CREATURE**
-- - The target here must be a valid entry from creature\_template
+- The target here must be a valid entry from creature\_template
-\***TYPE\_T\_PLAYER\_CLASS\_RACE**
+**TYPE\_T\_PLAYER\_CLASS\_RACE**
-- - The target here is a valid class (paste class list). value2 must also be set
+- The target here is a valid class (paste class list). value2 must also be set
-\***TYPE\_T\_PLAYER\_LESS\_HEALTH**
+**TYPE\_T\_PLAYER\_LESS\_HEALTH**
-- - The percentage of health that the target must reach.
+- The percentage of health that the target must reach.
-\***TYPE\_T\_PLAYER\_DEAD**
+**TYPE\_T\_PLAYER\_DEAD**
-- - The faction of the target player (must match player attempting achievement).
+- The faction of the target player (must match player attempting achievement).
-\***TYPE\_S\_AURA**
+**TYPE\_S\_AURA**
-- - The spell ID of the aura that must be on the player. value2 must also be set.
+- The spell ID of the aura that must be on the player. value2 must also be set.
-\***TYPE\_S\_AREA**
+**TYPE\_S\_AREA**
-- - Area ID from AreaTable.dbc
+- Area ID from AreaTable.dbc
-\***TYPE\_T\_AURA**
+**TYPE\_T\_AURA**
-- - The spell ID of the aura that must be on the target. value2 must also be set.
+- The spell ID of the aura that must be on the target. value2 must also be set.
-\***TYPE\_VALUE**
+**TYPE\_VALUE**
-- - Value to compare needed to attain achievement. This value is used in conjunction with another type. (see value2 for comparisation type)
+- Value to compare needed to attain achievement. This value is used in conjunction with another type. (see value2 for comparisation type)
-\***TYPE\_T\_LEVEL**
+**TYPE\_T\_LEVEL**
-- - The minimum level that the target can be.
+- The minimum level that the target can be.
-\***TYPE\_T\_GENDER**
+**TYPE\_T\_GENDER**
-- - Gender: 0=Male, 1=Female
+- Gender: 0=Male, 1=Female
-\***TYPE\_SCRIPT**
+**TYPE\_SCRIPT**
-- - Used to disable an achievement if all requirements are not defined. Would usually be used if not all are known.
+- Used to disable an achievement if all requirements are not defined. Would usually be used if not all are known.
-\***TYPE\_MAP\_DIFFICULTY**
+**TYPE\_MAP\_DIFFICULTY**
-- - Map difficulty: (for dungeons)
- - Normal = 0
- - Heroic = 1
- - Map difficulty: (for raids)
- - 10 Man Normal = 0
- - 25 Man Normal = 1
- - 10 Man Heroic = 2
- - 25 Man Heroic = 3
+- Map difficulty: (for dungeons)
+ - Normal = 0
+ - Heroic = 1
+- Map difficulty: (for raids)
+ - 10 Man Normal = 0
+ - 25 Man Normal = 1
+ - 10 Man Heroic = 2
+ - 25 Man Heroic = 3
-\***TYPE\_MAP\_PLAYER\_COUNT**
+**TYPE\_MAP\_PLAYER\_COUNT**
-- - The number of other players that must be in the zone. (not sure if it is minimum or maximum).
+- The number of other players that must be in the zone. (not sure if it is minimum or maximum).
-\***TYPE\_T\_TEAM**
+**TYPE\_T\_TEAM**
-- - The target must be on this team: Alliance = 469, Horde = 67
+- The target must be on this team: Alliance = 469, Horde = 67
-\***TYPE\_S\_DRUNK**
+**TYPE\_S\_DRUNK**
-- - How drunk the player must be:
- - DRUNKEN\_SOBER = 0
- - DRUNKEN\_TIPSY = 1
- - DRUNKEN\_DRUNK = 2
- - DRUNKEN\_SMASHED = 3
+- How drunk the player must be:
+ - DRUNKEN\_SOBER = 0
+ - DRUNKEN\_TIPSY = 1
+ - DRUNKEN\_DRUNK = 2
+ - DRUNKEN\_SMASHED = 3
-\***TYPE\_HOLIDAY**
+**TYPE\_HOLIDAY**
-- - Holiday ID from Holiday.dbc and game\_event. Must be an active holiday.
+- Holiday ID from Holiday.dbc and game\_event. Must be an active holiday.
-\***TYPE\_BG\_LOSS\_TEAM\_SCORE**
+**TYPE\_BG\_LOSS\_TEAM\_SCORE**
-- - Player's team win bg and opposition team have team score in range. // Min. score
+- Player's team win bg and opposition team have team score in range. // Min. score
-\***TYPE\_INSTANCE\_SCRIPT**
+**TYPE\_INSTANCE\_SCRIPT**
-- - Make instance script call for check current criteria requirements fit.
+- Make instance script call for check current criteria requirements fit.
-\***TYPE\_S\_EQUIPED\_ITEM**
+**TYPE\_S\_EQUIPED\_ITEM**
-- - Item level
+- Item level
-\***TYPE\_MAP\_ID**
+**TYPE\_MAP\_ID**
-- - Player must be on mapId
+- Player must be on mapId
-\***TYPE\_S\_PLAYER\_CLASS\_RACE**
+**TYPE\_S\_PLAYER\_CLASS\_RACE**
-- - The Source here is a valid class (paste class list). value2 must also be set
+- The Source here is a valid class (paste class list). value2 must also be set
 
-\***TYPE\_NTH\_BIRTHDAY**
+**TYPE\_NTH\_BIRTHDAY**
--  Number of Birthday
+- Number of Birthday
-\***TYPE\_S\_KNOWN\_TITLE**
+**TYPE\_S\_KNOWN\_TITLE**
- The value here is a valid titleId. See CharTitles.dbc
-
### value2
-\***TYPE\_T\_PLAYER\_CLASS\_RACE**
-\***TYPE\_S\_PLAYER\_CLASS\_RACE**
+**TYPE\_T\_PLAYER\_CLASS\_RACE**
+**TYPE\_S\_PLAYER\_CLASS\_RACE**
-- - The value here is a valid race ID. See ChrRaces.dbc
+- The value here is a valid race ID. See ChrRaces.dbc
-\***TYPE\_S\_AURA**
+**TYPE\_S\_AURA**
-- - Effect Index of the aura
+- Effect Index of the aura
-\***TYPE\_T\_AURA**
+**TYPE\_T\_AURA**
-- - Effect Index of the aura
+- Effect Index of the aura
-\***TYPE\_BG\_LOSS\_TEAM\_SCORE**
+**TYPE\_BG\_LOSS\_TEAM\_SCORE**
-- - Max. score
+- Max. score
-\***TYPE\_S\_EQUIPED\_ITEM**
+**TYPE\_S\_EQUIPED\_ITEM**
- Item quality
-\***TYPE\_VALUE**
-
-- ComparisationType:
+**TYPE\_VALUE**
- | |
- |--------------------------|
- | COMP\_TYPE\_EQ = 0 |
- | COMP\_TYPE\_HIGH = 1 |
- | COMP\_TYPE\_LOW = 2 |
- | COMP\_TYPE\_HIGH\_EQ = 3 |
- | COMP\_TYPE\_LOW\_EQ = 4 |
+| ComparisationType |
+|--------------------------|
+| COMP\_TYPE\_EQ = 0 |
+| COMP\_TYPE\_HIGH = 1 |
+| COMP\_TYPE\_LOW = 2 |
+| COMP\_TYPE\_HIGH\_EQ = 3 |
+| COMP\_TYPE\_LOW\_EQ = 4 |
### ScriptName