summaryrefslogtreecommitdiff
path: root/docs/achievement_dbc.md
blob: 0b25073e302f15c699856df66ef4902310f17a91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
# achievement\_dbc

`            Back-to:World     `

**The \`achievement\_dbc\` table**

Stores achievement data that is missing in [Achievement.dbc](Achievement)

**Structure**

<table>
<colgroup>
<col width="12%" />
<col width="12%" />
<col width="12%" />
<col width="12%" />
<col width="12%" />
<col width="12%" />
<col width="12%" />
<col width="12%" />
</colgroup>
<tbody>
<tr class="odd">
<td><p><strong>Field</strong></p></td>
<td><p><strong>Type</strong></p></td>
<td><p><strong>Attributes</strong></p></td>
<td><p><strong>Key</strong></p></td>
<td><p><strong>Null</strong></p></td>
<td><p><strong>Default</strong></p></td>
<td><p><strong>Extra</strong></p></td>
<td><p><strong>Comment</strong></p></td>
</tr>
<tr class="even">
<td><p><a href="#id">ID</a></p></td>
<td><p>int(10)</p></td>
<td><p>unsigned</p></td>
<td><p>PRI</p></td>
<td><p>NO</p></td>
<td><p> </p></td>
<td><p> </p></td>
<td><p> </p></td>
</tr>
<tr class="odd">
<td><p><a href="#requiredfaction">requiredFaction</a></p></td>
<td><p>int(11)</p></td>
<td><p>signed</p></td>
<td><p> </p></td>
<td><p>NO</p></td>
<td><p>-1</p></td>
<td><p> </p></td>
<td><p> </p></td>
</tr>
<tr class="even">
<td><p><a href="#mapid">mapID</a></p></td>
<td><p>int(11)</p></td>
<td><p>signed</p></td>
<td><p> </p></td>
<td><p>NO</p></td>
<td><p>-1</p></td>
<td><p> </p></td>
<td><p> </p></td>
</tr>
<tr class="odd">
<td><p><a href="#points">points</a></p></td>
<td><p>int(10)</p></td>
<td><p>unsigned</p></td>
<td><p> </p></td>
<td><p>NO</p></td>
<td><p>0</p></td>
<td><p> </p></td>
<td><p>Achievement points awarded for completing the achievement, has no use serverside</p></td>
</tr>
<tr class="even">
<td><p><a href="#flags">flags</a></p></td>
<td><p>int(10)</p></td>
<td><p>unsigned</p></td>
<td><p> </p></td>
<td><p>NO</p></td>
<td><p>0</p></td>
<td><p> </p></td>
<td><p> </p></td>
</tr>
<tr class="odd">
<td><p><a href="#count">count</a></p></td>
<td><p>int(10)</p></td>
<td><p>unsigned</p></td>
<td><p> </p></td>
<td><p>NO</p></td>
<td><p>0</p></td>
<td><p> </p></td>
<td><p> </p></td>
</tr>
<tr class="even">
<td><p><a href="#refachievement">refAchievement</a></p></td>
<td><p>int(10)</p></td>
<td><p>unsigned</p></td>
<td><p> </p></td>
<td><p>NO</p></td>
<td><p>0</p></td>
<td><p> </p></td>
<td><p> </p></td>
</tr>
</tbody>
</table>

**Description of the fields**

### ID

This is the ID of the achievement from [Achievement\_Criteria.dbc](Achievement+Criteria) (2nd column)

### requiredFaction

-   Condition:
    -   Both: -1,
    -   Horde: 0,
    -   Alliance: 1

### mapID

Condition: Player must be on that map to be allowed criteria updates (-1 if not set)

### points

Achievement points awarded for completing the achievement, has no use serverside

### flags

<table>
<colgroup>
<col width="33%" />
<col width="33%" />
<col width="33%" />
</colgroup>
<thead>
<tr class="header">
<th><p>Name</p></th>
<th><p>Value</p></th>
<th><p>Comment</p></th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td><p>ACHIEVEMENT_FLAG_COUNTER</p></td>
<td><p>0x00000001</p></td>
<td><p>Just count statistic (never stop and complete)</p></td>
</tr>
<tr class="even">
<td><p>ACHIEVEMENT_FLAG_HIDDEN</p></td>
<td><p>0x00000002</p></td>
<td><p>Not sent to client - internal use only</p></td>
</tr>
<tr class="odd">
<td><p>ACHIEVEMENT_FLAG_STORE_MAX_VALUE</p></td>
<td><p>0x00000004</p></td>
<td><p>Store only max value? used only in &quot;Reach level xx&quot;</p></td>
</tr>
<tr class="even">
<td><p>ACHIEVEMENT_FLAG_SUMM</p></td>
<td><p>0x00000008</p></td>
<td><p>Use summ criteria value from all reqirements (and calculate max value)</p></td>
</tr>
<tr class="odd">
<td><p>ACHIEVEMENT_FLAG_MAX_USED</p></td>
<td><p>0x00000010</p></td>
<td><p>Show max criteria (and calculate max value ??)</p></td>
</tr>
<tr class="even">
<td><p>ACHIEVEMENT_FLAG_REQ_COUNT</p></td>
<td><p>0x00000020</p></td>
<td><p>Use not zero req count (and calculate max value)</p></td>
</tr>
<tr class="odd">
<td><p>ACHIEVEMENT_FLAG_AVERAGE</p></td>
<td><p>0x00000040</p></td>
<td><p>Show as average value (value / time_in_days) depend from other flag (by def use last criteria value)</p></td>
</tr>
<tr class="even">
<td><p>ACHIEVEMENT_FLAG_BAR</p></td>
<td><p>0x00000080</p></td>
<td><p>Show as progress bar (value / max vale) depend from other flag (by def use last criteria value)</p></td>
</tr>
<tr class="odd">
<td><p>ACHIEVEMENT_FLAG_REALM_FIRST_REACH</p></td>
<td><p>0x00000100</p></td>
<td><p> </p></td>
</tr>
<tr class="even">
<td><p>ACHIEVEMENT_FLAG_REALM_FIRST_KILL</p></td>
<td><p>0x00000200</p></td>
<td><p> </p></td>
</tr>
</tbody>
</table>

### count

Should always be 1.

### refAchievement

Should always be 0.