summaryrefslogtreecommitdiff
path: root/docs/disables.md
blob: 0cbf107cd661165f10a00fad099f5a1b899f95eb (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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
# disables

`Back-to:World`

**The \`disables\` table**

This table is used to disable dungeons/bgs/spells/etc.

**Structure**

<table>
<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="#disables-sourceType">sourceType</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>NULL</p></td>
<td><p><br />
</p></td>
<td><p><br />
</p></td>
</tr>
<tr class="odd">
<td><p><a href="#disables-entry">entry</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>NULL</p></td>
<td><p><br />
</p></td>
<td><p><br />
</p></td>
</tr>
<tr class="even">
<td><p><a href="#disables-flags">flags</a></p></td>
<td><p>tinyint(3)</p></td>
<td><p>unsigned</p></td>
<td><p><br />
</p></td>
<td><p>NO</p></td>
<td><p>0</p></td>
<td><p><br />
</p></td>
<td><p><br />
</p></td>
</tr>
<tr class="odd">
<td><p><a href="#disables-params_0">params_0</a></p></td>
<td><p>varchar(255)</p></td>
<td><p><br />
</p></td>
<td><p><br />
</p></td>
<td><p>NO</p></td>
<td><p>&quot;</p></td>
<td><p><br />
</p></td>
<td><p><br />
</p></td>
</tr>
<tr class="even">
<td><p><a href="#disables-params_1">params_1</a></p></td>
<td><p>varchar(255)</p></td>
<td><p><br />
</p></td>
<td><p><br />
</p></td>
<td><p>NO</p></td>
<td><p>&quot;</p></td>
<td><p><br />
</p></td>
<td><p><br />
</p></td>
</tr>
<tr class="odd">
<td><p><a href="#disables-comment">comment</a></p></td>
<td><p>varchar(255)</p></td>
<td><p><br />
</p></td>
<td><p><br />
</p></td>
<td><p>NO</p></td>
<td><p>&quot;</p></td>
<td><p><br />
</p></td>
<td><p><br />
</p></td>
</tr>
</tbody>
</table>

**Description of the fields**

### sourceType

| Value | Type                                 |
|-------|--------------------------------------|
| 0     | DISABLE\_TYPE\_SPELL                 |
| 1     | DISABLE\_TYPE\_QUEST                 |
| 2     | DISABLE\_TYPE\_MAP                   |
| 3     | DISABLE\_TYPE\_BATTLEGROUND          |
| 4     | DISABLE\_TYPE\_ACHIEVEMENT\_CRITERIA |
| 5     | DISABLE\_TYPE\_OUTDOORPVP            |
| 6     | DISABLE\_TYPE\_VMAP                  |
| 7     | DISABLE\_TYPE\_MMAP                  |
| 8     | DISABLE\_TYPE\_LFG\_MAP              |

### entry

Entry of Spell/Quest/Map/BG/Achievement/Map.

### flags

If sourceType = DISABLE\_TYPE\_SPELL: Specifies who the spell is disabled for.

| Value | Type                                                                                          |
|-------|-----------------------------------------------------------------------------------------------|
| 0     | Spell enabled                                                                                 |
| 1     | Spell disabled for players                                                                    |
| 2     | Spell disabled for creatures                                                                  |
| 4     | Spell disabled for pets                                                                       |
| 8     | Spell completely disabled (used for no logner existing spells in DBCs)                        |
| 16    | Spell disabled for MapId                                                                      |
| 32    | Spell disabled for AreaId                                                                     |
| 64    | Line of Sight (LOS) is disabled for this spell (replaces "vmap.ignoreSpellIds" config option) |

Example: INSERT INTO \`disables\` VALUES (0, 8921, (1+16+32), "571,1", "1519", "Moonfire Example");

This will disable spell Moonfire (8921) for players in maps 571,1 and area 1519.

***If sourceType = DISABLE\_TYPE\_MAP:***

Specifies what type of map is disabled (5man/10man/heroic/etc).

<table>
<colgroup>
<col width="50%" />
<col width="50%" />
</colgroup>
<thead>
<tr class="header">
<th><p>Value</p></th>
<th><p>Type</p></th>
</tr>
</thead>
<tbody>
<tr class="odd">
<td><p>1</p></td>
<td><p>DUNGEON_STATUSFLAG_NORMAL OR RAID_STATUSFLAG_10MAN_NORMAL</p></td>
</tr>
<tr class="even">
<td><p>2</p></td>
<td><p>DUNGEON_STATUSFLAG_HEROIC OR RAID_STATUSFLAG_25MAN_NORMAL</p></td>
</tr>
<tr class="odd">
<td><p>4</p></td>
<td><p>RAID_STATUSFLAG_10MAN_HEROIC</p></td>
</tr>
<tr class="even">
<td><p>8</p></td>
<td><p>RAID_STATUSFLAG_25MAN_HEROIC</p></td>
</tr>
</tbody>
</table>

The value is a bitmask of VALID modes for the specific map, 15 is as such NOT a valid mask on certain maps, only those actually found possible for the respective map.

***If sourceType = DISABLE\_TYPE\_VMAP:***

Specifies on which map should be vMap disabled

| Value | Type                    |
|-------|-------------------------|
| 1     | VMAP\_DISABLE\_AREAFLAG |
| 2     | VMAP\_DISABLE\_HEIGHT   |
| 4     | VMAP\_DISABLE\_LOS      |
| 8     | VMAP\_LIQUIDSTATUS      |

Example: INSERT INTO \`disables\` VALUES (6, 1, (2 + 4), 0, 0, "Disable Kalimdor vMaps");

This will disable vMaps on whole Kalimdor.

***If sourceType = DISABLE\_TYPE\_QUEST:***

***If sourceType = DISABLE\_TYPE\_ACHIEVEMENT\_CRITERIA:***

***If sourceType = DISABLE\_TYPE\_OUTDOORPVP:***

***If sourceType = DISABLE\_TYPE\_MMAP:***

******If sourceType = DISABLE\_TYPE\_LFG\_MAP:***
***

No flags needed just add the entry to the table with \`flags\`=0.

### params\_0

MapId if DISABLE\_TYPE\_SPELL used, 0 for all maps.

### params\_1

AreaId if DISABLE\_TYPE\_SPELL used, 0 for all areas.

### comment

A comment as to why the something was disabled, or any other text that you want.