vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 smctVars.events = {
2 ["CHAT_MSG_SYSTEM"] = {
3 doSearch = true,
4 func = nil,
5 groups = {
6 {
7 name = "Rolls (/roll)",
8 description = "Roll messages (only those done using the /roll command).",
9 group = "ROLL",
10 strings = {
11 [1] = smctConvStr2(RANDOM_ROLL_RESULT),
12 },
13 },
14 {
15 name = "Money looting",
16 description = "Messages related to looting money.",
17 group = "MONEY_LOOTING",
18 strings = {
19 [1] = smctConvStr(ERR_AUTOLOOT_MONEY_S),
20 [2] = smctConvStr(LOOT_MONEY_SPLIT),
21 [3] = smctConvStr(LOOT_MONEY),
22 },
23 },
24 {
25 name = "Duel countdown",
26 description = "Countdown messages for when a duel is about to start.",
27 group = "DUEL_COUNTDOWN",
28 strings = {
29 [1] = smctConvStr(DUEL_COUNTDOWN),
30 },
31 },
32 {
33 name = "Duels",
34 description = "Messages related to duel outcomes.",
35 group = "DUEL",
36 strings = {
37 [1] = string.gsub(DUEL_WINNER_KNOCKOUT, "%%%d$s", "[%%S]+"),
38 [2] = string.gsub(DUEL_WINNER_RETREAT, "%%%d$s", "[%%S]+"),
39 },
40 },
41 {
42 name = "Hearthstone",
43 description = "Message for when you set a new home for your hearthstone.",
44 group = "HEARTHSTONE",
45 strings = {
46 [1] = smctConvStr(ERR_DEATHBIND_SUCCESS_S),
47 },
48 },
49 {
50 name = "Drunk (others)",
51 description = "Messages related to other people being drunk.",
52 group = "DRUNK_OTHER",
53 strings = {
54 [1] = smctConvStr(DRUNK_MESSAGE_OTHER1),
55 [2] = smctConvStr(DRUNK_MESSAGE_OTHER2),
56 [3] = smctConvStr(DRUNK_MESSAGE_OTHER3),
57 [4] = smctConvStr(DRUNK_MESSAGE_OTHER4),
58 },
59 },
60 {
61 name = "Drunk (you)",
62 description = "Messages related to you being drunk.",
63 group = "DRUNK_SELF",
64 strings = {
65 [1] = smctConvStr(DRUNK_MESSAGE_SELF1),
66 [2] = smctConvStr(DRUNK_MESSAGE_SELF2),
67 [3] = smctConvStr(DRUNK_MESSAGE_SELF3),
68 [4] = smctConvStr(DRUNK_MESSAGE_SELF4),
69 },
70 },
71 {
72 name = "Online/offline",
73 description = "Messages related to friends or guildies going online or offline.",
74 group = "CONNECTIONS",
75 strings = {
76 [1] = smctConvStr2(ERR_FRIEND_ONLINE_SS),
77 [2] = smctConvStr(ERR_FRIEND_OFFLINE_S),
78 },
79 },
80 {
81 name = "Rest state changes",
82 description = "Messages related to when your rest state changes (like \"You feel normal\").",
83 group = "REST_STATE",
84 strings = {
85 [1] = smctConvStr(ERR_EXHAUSTION_NORMAL),
86 [2] = smctConvStr(ERR_EXHAUSTION_RESTED),
87 },
88 },
89 {
90 name = "Raid information",
91 description = "Messages related raid instances (reset time, ID and such).",
92 group = "RAID_INFO",
93 strings = {
94 [1] = smctConvStr(INSTANCE_SAVED),
95 [2] = smctConvStr(NO_RAID_INSTANCES_SAVED),
96 [3] = string.gsub(smctConvStr2(RAID_INSTANCE_INFO_FMT), "%%lx", "[%%S]+"),
97 [4] = smctConvStr(RAID_INSTANCE_INFO_HDR),
98 [5] = smctConvStr(RAID_INSTANCE_WARNING_HOURS),
99 [6] = smctConvStr(RAID_INSTANCE_WARNING_HOURS_P1),
100 [7] = smctConvStr(RAID_INSTANCE_WARNING_MIN),
101 [8] = smctConvStr(RAID_INSTANCE_WARNING_MIN_P1),
102 [9] = smctConvStr(RAID_INSTANCE_WARNING_MIN_SOON),
103 [10] = smctConvStr(RAID_INSTANCE_WARNING_MIN_SOON_P1),
104 [11] = smctConvStr(RAID_INSTANCE_WELCOME),
105 },
106 },
107 {
108 name = "Raid",
109 description = "Messages related to raid control.",
110 group = "RAID",
111 strings = {
112 [1] = smctConvStr(ERR_RAID_MEMBER_ADDED_S),
113 [2] = smctConvStr(ERR_RAID_MEMBER_REMOVED_S),
114 [3] = smctConvStr(ERR_RAID_GROUP_FULL),
115 [4] = smctConvStr(ERR_RAID_GROUP_ONLY),
116 [5] = smctConvStr(ERR_RAID_YOU_JOINED),
117 [6] = smctConvStr(ERR_RAID_YOU_LEFT),
118 },
119 },
120 {
121 name = "Group",
122 description = "Messages related to group control.",
123 group = "GROUP",
124 strings = {
125 [1] = smctConvStr(ERR_INVITED_TO_GROUP_S),
126 [2] = smctConvStr(ERR_INVITE_PLAYER_S),
127 [3] = smctConvStr(ERR_GROUP_JOIN_BATTLEGROUND_S),
128 [4] = smctConvStr(ERR_JOINED_GROUP_S),
129 [5] = smctConvStr(ERR_LEFT_GROUP_S),
130 [6] = smctConvStr(ERR_NEW_LEADER_S),
131 [7] = smctConvStr(ERR_NEW_LOOT_MASTER_S),
132 [8] = smctConvStr(ERR_ALREADY_IN_GROUP_S),
133 [9] = smctConvStr(ERR_INVITE_SELF),
134 [10] = smctConvStr(ERR_GROUP_DISBANDED),
135 [11] = smctConvStr(ERR_GROUP_FULL),
136 [12] = smctConvStr(ERR_GROUP_JOIN_BATTLEGROUND_FAIL),
137 [13] = smctConvStr(ERR_GROUP_JOIN_BATTLEGROUND_TOO_MANY),
138 [14] = smctConvStr(ERR_LEFT_GROUP_YOU),
139 [15] = smctConvStr(ERR_NEW_LEADER_YOU),
140 [16] = smctConvStr(ERR_UNINVITE_YOU),
141 [17] = smctConvStr(ERR_PLAYER_DIED_S),
142 },
143 },
144 {
145 name = "Trade",
146 description = "Messages related to trading.",
147 group = "TRADE",
148 strings = {
149 [1] = smctConvStr(ERR_INITIATE_TRADE_S),
150 [2] = smctConvStr(ERR_TRADE_BLOCKED_S),
151 [3] = smctConvStr(ERR_TRADE_REQUEST_S),
152 [4] = smctConvStr(ERR_ALREADY_TRADING),
153 },
154 },
155 {
156 name = "Away From Keyboard",
157 description = "Messages related to AFK mode.",
158 group = "AFK",
159 strings = {
160 [1] = smctConvStr(MARKED_AFK_MESSAGE),
161 [2] = smctConvStr(CLEARED_AFK),
162 [3] = smctConvStr(MARKED_AFK),
163 },
164 },
165 {
166 name = "Do Not Disturb",
167 description = "Messages related to DND mode.",
168 group = "DND",
169 strings = {
170 [1] = smctConvStr(MARKED_DND),
171 [2] = smctConvStr(CLEARED_DND),
172 },
173 },
174 {
175 name = "Auction",
176 description = "Messages related to the auction house.",
177 group = "AUTCION",
178 strings = {
179 [1] = smctConvStr(ERR_AUCTION_EXPIRED_S),
180 [2] = smctConvStr(ERR_AUCTION_OUTBID_S),
181 [3] = smctConvStr(ERR_AUCTION_REMOVED_S),
182 [4] = smctConvStr(ERR_AUCTION_SOLD_S),
183 [5] = smctConvStr(ERR_AUCTION_WON_S),
184 [6] = smctConvStr(ERR_AUCTION_BID_PLACED),
185 [7] = smctConvStr(ERR_AUCTION_REMOVED),
186 [8] = smctConvStr(ERR_AUCTION_STARTED),
187 },
188 },
189 {
190 name = "Area discovering",
191 description = "Messages related to discovering new areas.",
192 group = "DISCOVER",
193 strings = {
194 [1] = smctConvStr(ERR_ZONE_EXPLORED),
195 [2] = smctConvStr(ERR_ZONE_EXPLORED_XP),
196 },
197 },
198 {
199 name = "Loot rules",
200 description = "Messages related to setting the loot rules for a group/raid.",
201 group = "LOOT_RULES",
202 strings = {
203 [1] = smctConvStr(ERR_SET_LOOT_FREEFORALL),
204 [2] = smctConvStr(ERR_SET_LOOT_GROUP),
205 [3] = smctConvStr(ERR_SET_LOOT_MASTER),
206 [4] = smctConvStr(ERR_SET_LOOT_NBG),
207 [5] = smctConvStr(ERR_SET_LOOT_ROUNDROBIN),
208 [6] = smctConvStr(ERR_SET_LOOT_THRESHOLD_S),
209 [7] = smctConvStr(ERR_NEW_LOOT_MASTER_S),
210 },
211 },
212 {
213 name = "Server",
214 description = "Messages from the server (like \"[SERVER] Restart in 10 minutes.\").",
215 group = "SERVER",
216 strings = {
217 [1] = "^%[SERVER%] [%S]+[%s*%S+]*",
218 },
219 },
220 {
221 name = "Quest",
222 description = "Messages related to quests (like sharing and such).",
223 group = "QUESTS",
224 strings = {
225 [1] = smctConvStr(ERR_QUEST_ACCEPTED_S),
226 [2] = smctConvStr(ERR_QUEST_COMPLETE_S),
227 [3] = smctConvStr(ERR_QUEST_FAILED_BAG_FULL_S),
228 [4] = smctConvStr(ERR_QUEST_FAILED_MAX_COUNT_S),
229 [5] = smctConvStr(ERR_QUEST_PUSH_ACCEPTED_S),
230 [6] = smctConvStr(ERR_QUEST_PUSH_ALREADY_DONE_S),
231 [7] = smctConvStr(ERR_QUEST_PUSH_BUSY_S),
232 [8] = smctConvStr(ERR_QUEST_PUSH_DECLINED_S),
233 [9] = smctConvStr(ERR_QUEST_PUSH_INVALID_S),
234 [10] = smctConvStr(ERR_QUEST_PUSH_LOG_FULL_S),
235 [11] = smctConvStr(ERR_QUEST_PUSH_ONQUEST_S),
236 [12] = smctConvStr(ERR_QUEST_PUSH_SUCCESS_S),
237 [13] = smctConvStr(ERR_QUEST_PUSH_TOO_FAR_S),
238 [14] = smctConvStr(ERR_QUEST_REWARD_ITEM_S),
239 [15] = smctConvStr(ERR_QUEST_REWARD_MONEY_S),
240 [16] = smctConvStr(ERR_QUEST_REWARD_EXP_I),
241 [17] = smctConvStr(ERR_QUEST_ALREADY_ON),
242 [18] = smctConvStr(ERR_QUEST_FAILED_LOW_LEVEL),
243 [19] = smctConvStr(ERR_QUEST_FAILED_MISSING_ITEMS),
244 [20] = smctConvStr(ERR_QUEST_FAILED_NOT_ENOUGH_MONEY),
245 [21] = smctConvStr(ERR_QUEST_FAILED_WRONG_RACE),
246 [22] = smctConvStr(ERR_QUEST_NEED_PREREQS),
247 [23] = smctConvStr(ERR_QUEST_ONLY_ONE_TIMED),
248 },
249 },
250 {
251 name = "Learning",
252 description = "Messages related to learning new spells, abilities and recipes.",
253 group = "LEARNING",
254 strings = {
255 [1] = smctConvStr(ERR_LEARN_ABILITY_S),
256 [2] = smctConvStr(ERR_LEARN_RECIPE_S),
257 [3] = smctConvStr(ERR_LEARN_SPELL_S),
258 },
259 },
260 {
261 name = "Who",
262 description = "Messages related to using the /who command.",
263 group = "WHO",
264 strings = {
265 [1] = smctConvStr(WHO_LIST_FORMAT),
266 [2] = smctConvStr(WHO_LIST_GUILD_FORMAT),
267 [3] = smctConvStr(WHO_NUM_RESULTS),
268 [4] = smctConvStr(WHO_NUM_RESULTS_P1),
269 },
270 },
271 {
272 name = "Ignore",
273 description = "Messages regarding the ignore function.",
274 group = "IGNORE",
275 strings = {
276 [1] = smctConvStr(CHAT_IGNORED),
277 [2] = smctConvStr(ERR_IGNORE_ADDED_S),
278 [3] = smctConvStr(ERR_IGNORE_ALREADY_S),
279 [4] = smctConvStr(ERR_IGNORE_FULL),
280 [5] = smctConvStr(ERR_IGNORE_NOT_FOUND),
281 [6] = smctConvStr(ERR_IGNORE_REMOVED_S),
282 [7] = smctConvStr(ERR_IGNORE_SELF),
283 [8] = smctConvStr(ERR_IGNORING_YOU_S),
284 },
285 },
286 {
287 name = "Friends",
288 description = "Messages related to the friends list.",
289 group = "FRIENDS",
290 strings = {
291 [1] = smctConvStr(ERR_FRIEND_ADDED_S),
292 [2] = smctConvStr(ERR_FRIEND_ALREADY_S),
293 [3] = smctConvStr(ERR_FRIEND_REMOVED_S),
294 [4] = smctConvStr(ERR_FRIEND_DB_ERROR),
295 [5] = smctConvStr(ERR_FRIEND_ERROR),
296 [6] = smctConvStr(ERR_FRIEND_LIST_FULL),
297 [7] = smctConvStr(ERR_FRIEND_NOT_FOUND),
298 [8] = smctConvStr(ERR_FRIEND_SELF),
299 [9] = smctConvStr(ERR_FRIEND_WRONG_FACTION),
300 },
301 },
302 {
303 name = "Guild",
304 description = "Messages related to guild control.",
305 group = "GUILD_CONTROL",
306 strings = {
307 [1] = smctConvStr(ERR_INVITED_TO_GUILD_SS),
308 [2] = smctConvStr(ERR_INVITE_PLAYER_S),
309 [3] = smctConvStr(ERR_GUILD_DECLINE_S),
310 [4] = smctConvStr(ERR_GUILD_DEMOTE_SSS),
311 [5] = smctConvStr(ERR_GUILD_DISBAND_S),
312 [6] = smctConvStr(ERR_GUILD_FOUNDER_S),
313 [7] = smctConvStr(ERR_GUILD_INVITE_S),
314 [8] = smctConvStr(ERR_GUILD_JOIN_S),
315 [9] = smctConvStr(ERR_GUILD_LEADER_CHANGED_SS),
316 [10] = smctConvStr(ERR_GUILD_LEADER_IS_S),
317 [11] = smctConvStr(ERR_GUILD_LEADER_S),
318 [12] = smctConvStr(ERR_GUILD_LEAVE_S),
319 [13] = smctConvStr(ERR_GUILD_NAME_EXISTS_S),
320 [14] = smctConvStr(ERR_GUILD_PLAYER_NOT_FOUND_S),
321 [15] = smctConvStr(ERR_GUILD_PLAYER_NOT_IN_GUILD_S),
322 [16] = smctConvStr(ERR_GUILD_PROMOTE_SSS),
323 [17] = smctConvStr(ERR_GUILD_QUIT_S),
324 [18] = smctConvStr(ERR_GUILD_RANK_TOO_HIGH_S),
325 [19] = smctConvStr(ERR_GUILD_RANK_TOO_LOW_S),
326 [20] = smctConvStr(ERR_GUILD_REMOVE_SS),
327 [21] = smctConvStr(ERR_GUILD_PLAYER_NOT_FOUND_S),
328 [22] = smctConvStr(ERR_ALREADY_INVITED_TO_GUILD_S),
329 [23] = smctConvStr(ERR_ALREADY_IN_GUILD_S),
330 [24] = smctConvStr(ERR_INVITED_TO_GUILD),
331 [25] = smctConvStr(ERR_GUILDEMBLEM_NOGUILD),
332 [26] = smctConvStr(ERR_GUILD_ACCEPT),
333 [27] = smctConvStr(ERR_GUILD_DISBANDED),
334 [28] = smctConvStr(ERR_GUILD_DISBAND_SELF),
335 [29] = smctConvStr(ERR_GUILD_INTERNAL),
336 [30] = smctConvStr(ERR_GUILD_LEADER_LEAVE),
337 [31] = smctConvStr(ERR_GUILD_LEADER_SELF),
338 [32] = smctConvStr(ERR_GUILD_LEAVE_RESULT),
339 [33] = smctConvStr(ERR_GUILD_NOT_ALLIED),
340 [34] = smctConvStr(ERR_GUILD_PERMISSIONS),
341 [35] = smctConvStr(ERR_GUILD_PLAYER_NOT_IN_GUILD),
342 [36] = smctConvStr(ERR_GUILD_RANKS_LOCKED),
343 [37] = smctConvStr(ERR_GUILD_RANK_IN_USE),
344 [38] = smctConvStr(ERR_GUILD_REMOVE_SELF),
345 [39] = smctConvStr(ERR_ALREADY_IN_GUILD),
346 },
347 },
348 {
349 name = "Meeting stone",
350 description = "Messages related to the meeting stone.",
351 group = "MEETING_STONE",
352 strings = {
353 [1] = smctConvStr(ERR_MEETING_STONE_GROUP_FULL),
354 [2] = smctConvStr(ERR_MEETING_STONE_INVALID_LEVEL),
355 [3] = smctConvStr(ERR_MEETING_STONE_IN_PROGRESS),
356 [4] = smctConvStr(ERR_MEETING_STONE_IN_QUEUE_S),
357 [5] = smctConvStr(ERR_MEETING_STONE_LEFT_QUEUE_S),
358 [6] = smctConvStr(ERR_MEETING_STONE_MEMBER_ADDED_S),
359 [7] = smctConvStr(ERR_MEETING_STONE_MEMBER_STILL_IN_QUEUE),
360 [8] = smctConvStr(ERR_MEETING_STONE_MUST_BE_LEADER),
361 [9] = smctConvStr(ERR_MEETING_STONE_NOT_LEADER),
362 [10] = smctConvStr(ERR_MEETING_STONE_NO_RAID_GROUP),
363 [11] = smctConvStr(ERR_MEETING_STONE_OTHER_MEMBER_LEFT),
364 [12] = smctConvStr(ERR_MEETING_STONE_PARTY_KICKED_FROM_QUEUE),
365 [13] = smctConvStr(ERR_MEETING_STONE_SUCCESS),
366 },
367 },
368 },
369 },
370 ["CHAT_MSG_CHANNEL_LIST"] = {
371 doSearch = false,
372 func = nil,
373 groups = {
374 {
375 name = "Channel list",
376 description = "Messages related to channel listings.",
377 group = "CHAT_MSG_CHANNEL_LIST",
378 },
379 },
380 },
381 ["CHAT_MSG_CHANNEL_NOTICE"] = {
382 doSearch = true,
383 func = smctChannelNotice,
384 groups = {
385 {
386 name = "Channel notices",
387 description = "Messages related to channel join/leave/change.",
388 group = "CHAT_MSG_CHANNEL_NOTICE",
389 strings = {
390 [1] = "YOU_CHANGED",
391 [2] = "YOU_JOINED",
392 [3] = "YOU_LEFT",
393 [4] = "SUSPENDED",
394 },
395 },
396 },
397 },
398 ["CHAT_MSG_BG_SYSTEM_ALLIANCE"] = {
399 doSearch = false,
400 func = smctBGMessageRerouter,
401 groups = {
402 {
403 name = "BG: Alliance",
404 description = "Alliance messages inside battlegrounds.",
405 group = "CHAT_MSG_BG_SYSTEM_ALLIANCE",
406 },
407 },
408 },
409 ["CHAT_MSG_BG_SYSTEM_HORDE"] = {
410 doSearch = false,
411 func = smctBGMessageRerouter,
412 groups = {
413 {
414 name = "BG: Horde",
415 description = "Horde messages inside battlegrounds.",
416 group = "CHAT_MSG_BG_SYSTEM_HORDE",
417 },
418 },
419 },
420 ["CHAT_MSG_BG_SYSTEM_NEUTRAL"] = {
421 doSearch = false,
422 func = smctBGMessageRerouter,
423 groups = {
424 {
425 name = "BG: Neutral",
426 description = "Neutral messages inside battelgrounds (like \"Battle starting in...\").",
427 group = "CHAT_MSG_BG_SYSTEM_NEUTRAL",
428 },
429 },
430 },
431 ["CHARACTER_POINTS_CHANGED"] = {
432 doSearch = false,
433 func = smctCharacterPointsChanged,
434 groups = {
435 {
436 name = "Character progress",
437 description = "Messages related to when you level or otherwise do progress with your character.",
438 group = "CHARACTER_PROGRESS",
439 },
440 },
441 },
442 ["TIME_PLAYED_MSG"] = {
443 doSearch = false,
444 func = smctTimePlayed,
445 groups = {
446 {
447 name = "Time played",
448 description = "Message for showing your time played.",
449 group = "TIME_PLAYED",
450 },
451 },
452 },
453 ["PLAYER_LEVEL_UP"] = {
454 doSearch = false,
455 func = smctPlayerLevelUp,
456 groups = {
457 {
458 name = "Character progress",
459 description = "Messages related to when you level or otherwise do progress with your character.",
460 group = "CHARACTER_PROGRESS",
461 },
462 },
463 },
464 ["CHAT_MSG_LOOT"] = {
465 doSearch = true,
466 func = nil,
467 groups = {
468 {
469 name = "Rolls (roll system)",
470 description = "Roll messages related to the in-game roll system.",
471 group = "CHAT_MSG_LOOT",
472 strings = {
473 [1] = smctConvStr2(LOOT_ROLL_ROLLED),
474 [2] = smctConvStr2(LOOT_ROLL_ROLLED_GREED),
475 [3] = smctConvStr2(LOOT_ROLL_ROLLED_GREED_SELF),
476 [4] = smctConvStr2(LOOT_ROLL_ROLLED_NEED),
477 [5] = smctConvStr2(LOOT_ROLL_ROLLED_NEED_SELF),
478 [6] = smctConvStr2(LOOT_ROLL_ROLLED_SELF),
479 },
480 },
481 {
482 name = "Rolls (roll system (type))",
483 description = "Roll messages related to what type of roll people choose.",
484 group = "CHAT_MSG_LOOT_SMCT1",
485 strings = {
486 [1] = smctConvStr2(LOOT_ROLL_ALL_PASSED),
487 [2] = smctConvStr2(LOOT_ROLL_GREED),
488 [3] = smctConvStr2(LOOT_ROLL_GREED_SELF),
489 [4] = smctConvStr2(LOOT_ROLL_NEED),
490 [5] = smctConvStr2(LOOT_ROLL_NEED_SELF),
491 [6] = smctConvStr2(LOOT_ROLL_PASSED),
492 [7] = smctConvStr2(LOOT_ROLL_PASSED_SELF),
493 },
494 },
495 },
496 },
497 };