Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
CharacterBoost.h
Go to the documentation of this file.
1/*
2* This file is part of Project SkyFire https://www.projectskyfire.org.
3* See LICENSE.md file for Copyright information
4*/
5
6#ifndef SF_CHARACTER_BOOST_H
7#define SF_CHARACTER_BOOST_H
8
9#include "Player.h"
10
11typedef std::map<uint8, uint32> SlotEquipmentMap;
12
14{
15 { INVENTORY_SLOT_BAG_START + 0, 54443 },
16 { INVENTORY_SLOT_BAG_START + 1, 54443 },
17 { INVENTORY_SLOT_BAG_START + 2, 54443 },
18 { INVENTORY_SLOT_BAG_START + 3, 54443 }
19};
20
22{
23 { EQUIPMENT_SLOT_HEAD, 100996 },
24 { EQUIPMENT_SLOT_NECK, 100998 },
25 { EQUIPMENT_SLOT_SHOULDERS, 101003 },
26 { EQUIPMENT_SLOT_BACK, 100993 },
27 { EQUIPMENT_SLOT_CHEST, 100992 },
28 { EQUIPMENT_SLOT_WRISTS, 101005 },
29 { EQUIPMENT_SLOT_HANDS, 100995 },
30 { EQUIPMENT_SLOT_WAIST, 101004 },
31 { EQUIPMENT_SLOT_LEGS, 100997 },
32 { EQUIPMENT_SLOT_FEET, 100994 },
33 { EQUIPMENT_SLOT_FINGER1, 101000 },
34 { EQUIPMENT_SLOT_FINGER2, 101001 },
35 { EQUIPMENT_SLOT_TRINKET1, 100999 },
36 { EQUIPMENT_SLOT_TRINKET2, 101002 },
37 { EQUIPMENT_SLOT_MAINHAND, 100976 }
38};
39
41{
42 { EQUIPMENT_SLOT_HEAD, 100980 },
43 { EQUIPMENT_SLOT_NECK, 100987 },
44 { EQUIPMENT_SLOT_SHOULDERS, 100982 },
45 { EQUIPMENT_SLOT_BACK, 100986 },
46 { EQUIPMENT_SLOT_CHEST, 100977 },
47 { EQUIPMENT_SLOT_WRISTS, 100984 },
48 { EQUIPMENT_SLOT_HANDS, 100979 },
49 { EQUIPMENT_SLOT_WAIST, 100983 },
50 { EQUIPMENT_SLOT_LEGS, 100981 },
51 { EQUIPMENT_SLOT_FEET, 100978 },
52 { EQUIPMENT_SLOT_FINGER1, 100988 },
53 { EQUIPMENT_SLOT_FINGER2, 100989 },
54 { EQUIPMENT_SLOT_TRINKET1, 100990 },
55 { EQUIPMENT_SLOT_TRINKET2, 100991 },
56 { EQUIPMENT_SLOT_MAINHAND, 100985 },
57 { EQUIPMENT_SLOT_OFFHAND, 100985 }
58};
59
61{
62 { EQUIPMENT_SLOT_HEAD, 100980 },
63 { EQUIPMENT_SLOT_NECK, 100987 },
64 { EQUIPMENT_SLOT_SHOULDERS, 100982 },
65 { EQUIPMENT_SLOT_BACK, 100986 },
66 { EQUIPMENT_SLOT_CHEST, 100977 },
67 { EQUIPMENT_SLOT_WRISTS, 100984 },
68 { EQUIPMENT_SLOT_HANDS, 100979 },
69 { EQUIPMENT_SLOT_WAIST, 100983 },
70 { EQUIPMENT_SLOT_LEGS, 100981 },
71 { EQUIPMENT_SLOT_FEET, 100978 },
72 { EQUIPMENT_SLOT_FINGER1, 100988 },
73 { EQUIPMENT_SLOT_FINGER2, 100989 },
74 { EQUIPMENT_SLOT_TRINKET1, 100990 },
75 { EQUIPMENT_SLOT_TRINKET2, 100991 },
76 { EQUIPMENT_SLOT_MAINHAND, 101006 }
77};
78
80{
81 { EQUIPMENT_SLOT_HEAD, 101016 },
82 { EQUIPMENT_SLOT_NECK, 101022 },
83 { EQUIPMENT_SLOT_SHOULDERS, 101018 },
84 { EQUIPMENT_SLOT_BACK, 101042 },
85 { EQUIPMENT_SLOT_CHEST, 101013 },
86 { EQUIPMENT_SLOT_WRISTS, 101021 },
87 { EQUIPMENT_SLOT_HANDS, 101045 },
88 { EQUIPMENT_SLOT_WAIST, 101020 },
89 { EQUIPMENT_SLOT_LEGS, 101017 },
90 { EQUIPMENT_SLOT_FEET, 101014 },
91 { EQUIPMENT_SLOT_FINGER1, 101025 },
92 { EQUIPMENT_SLOT_FINGER2, 101024 },
93 { EQUIPMENT_SLOT_TRINKET1, 101026 },
94 { EQUIPMENT_SLOT_TRINKET2, 101023 },
95 { EQUIPMENT_SLOT_MAINHAND, 101019 }
96};
97
99{
100 { EQUIPMENT_SLOT_HEAD, 101030 },
101 { EQUIPMENT_SLOT_NECK, 101008 },
102 { EQUIPMENT_SLOT_SHOULDERS, 101033 },
103 { EQUIPMENT_SLOT_BACK, 101007 },
104 { EQUIPMENT_SLOT_CHEST, 101027 },
105 { EQUIPMENT_SLOT_WRISTS, 101035 },
106 { EQUIPMENT_SLOT_HANDS, 101029 },
107 { EQUIPMENT_SLOT_WAIST, 101034 },
108 { EQUIPMENT_SLOT_LEGS, 101031 },
109 { EQUIPMENT_SLOT_FEET, 101028 },
110 { EQUIPMENT_SLOT_FINGER1, 101011 },
111 { EQUIPMENT_SLOT_FINGER2, 101010 },
112 { EQUIPMENT_SLOT_TRINKET1, 101012 },
113 { EQUIPMENT_SLOT_TRINKET2, 101009 },
114 { EQUIPMENT_SLOT_MAINHAND, 101032 }
115};
116
118{
119 { EQUIPMENT_SLOT_HEAD, 101046 },
120 { EQUIPMENT_SLOT_NECK, 101037 },
121 { EQUIPMENT_SLOT_SHOULDERS, 101048 },
122 { EQUIPMENT_SLOT_BACK, 101036 },
123 { EQUIPMENT_SLOT_CHEST, 101043 },
124 { EQUIPMENT_SLOT_WRISTS, 101050 },
125 { EQUIPMENT_SLOT_HANDS, 101015 },
126 { EQUIPMENT_SLOT_WAIST, 101049 },
127 { EQUIPMENT_SLOT_LEGS, 101047 },
128 { EQUIPMENT_SLOT_FEET, 101044 },
129 { EQUIPMENT_SLOT_FINGER1, 101040 },
130 { EQUIPMENT_SLOT_FINGER2, 101039 },
131 { EQUIPMENT_SLOT_TRINKET1, 101041 },
132 { EQUIPMENT_SLOT_TRINKET2, 101038 },
133 { EQUIPMENT_SLOT_MAINHAND, 101051 }
134};
135
137{
138 { EQUIPMENT_SLOT_HEAD, 101061 },
139 { EQUIPMENT_SLOT_NECK, 101053 },
140 { EQUIPMENT_SLOT_SHOULDERS, 101063 },
141 { EQUIPMENT_SLOT_BACK, 101052 },
142 { EQUIPMENT_SLOT_CHEST, 101058 },
143 { EQUIPMENT_SLOT_WRISTS, 101065 },
144 { EQUIPMENT_SLOT_HANDS, 101060 },
145 { EQUIPMENT_SLOT_WAIST, 101064 },
146 { EQUIPMENT_SLOT_LEGS, 101062 },
147 { EQUIPMENT_SLOT_FEET, 101059 },
148 { EQUIPMENT_SLOT_FINGER1, 101055 },
149 { EQUIPMENT_SLOT_FINGER2, 101056 },
150 { EQUIPMENT_SLOT_TRINKET1, 101054 },
151 { EQUIPMENT_SLOT_TRINKET2, 101057 },
152 { EQUIPMENT_SLOT_MAINHAND, 101066 }
153};
154
156{
157 { EQUIPMENT_SLOT_NECK, 101068 },
158 { EQUIPMENT_SLOT_TRINKET2, 101069 },
159 { EQUIPMENT_SLOT_FINGER1, 101070 },
160 { EQUIPMENT_SLOT_FINGER2, 101071 },
161 { EQUIPMENT_SLOT_TRINKET1, 101072 },
162 { EQUIPMENT_SLOT_FEET, 101073 },
163 { EQUIPMENT_SLOT_HANDS, 101074 },
164 { EQUIPMENT_SLOT_HEAD, 101075 },
165 { EQUIPMENT_SLOT_LEGS, 101076 },
166 { EQUIPMENT_SLOT_CHEST, 101077 },
167 { EQUIPMENT_SLOT_SHOULDERS, 101078 },
168 { EQUIPMENT_SLOT_WAIST, 101079 },
169 { EQUIPMENT_SLOT_WRISTS, 101080 },
170 { EQUIPMENT_SLOT_BACK, 101082 },
171 { EQUIPMENT_SLOT_MAINHAND, 101083 }
172};
173
175{
176 { EQUIPMENT_SLOT_HEAD, 101093 },
177 { EQUIPMENT_SLOT_NECK, 101084 },
178 { EQUIPMENT_SLOT_SHOULDERS, 101095 },
179 { EQUIPMENT_SLOT_BACK, 101118 },
180 { EQUIPMENT_SLOT_CHEST, 101090 },
181 { EQUIPMENT_SLOT_WRISTS, 101097 },
182 { EQUIPMENT_SLOT_HANDS, 101092 },
183 { EQUIPMENT_SLOT_WAIST, 101096 },
184 { EQUIPMENT_SLOT_LEGS, 101094 },
185 { EQUIPMENT_SLOT_FEET, 101091 },
186 { EQUIPMENT_SLOT_FINGER1, 101086 },
187 { EQUIPMENT_SLOT_FINGER2, 101085 },
188 { EQUIPMENT_SLOT_TRINKET1, 101087 },
189 { EQUIPMENT_SLOT_TRINKET2, 101089 },
190 { EQUIPMENT_SLOT_MAINHAND, 101088 }
191};
192
194{
195 { EQUIPMENT_SLOT_HEAD, 101100 },
196 { EQUIPMENT_SLOT_NECK, 101104 },
197 { EQUIPMENT_SLOT_SHOULDERS, 101108 },
198 { EQUIPMENT_SLOT_BACK, 101101 },
199 { EQUIPMENT_SLOT_CHEST, 101119 },
200 { EQUIPMENT_SLOT_WRISTS, 101111 },
201 { EQUIPMENT_SLOT_HANDS, 101099 },
202 { EQUIPMENT_SLOT_WAIST, 101110 },
203 { EQUIPMENT_SLOT_LEGS, 101103 },
204 { EQUIPMENT_SLOT_FEET, 101098 },
205 { EQUIPMENT_SLOT_FINGER1, 101105 },
206 { EQUIPMENT_SLOT_FINGER2, 101106 },
207 { EQUIPMENT_SLOT_TRINKET1, 101102 },
208 { EQUIPMENT_SLOT_TRINKET2, 101107 },
209 { EQUIPMENT_SLOT_MAINHAND, 101109 }
210};
211
213{
214 { EQUIPMENT_SLOT_HEAD, 101093 },
215 { EQUIPMENT_SLOT_NECK, 101114 },
216 { EQUIPMENT_SLOT_SHOULDERS, 101095 },
217 { EQUIPMENT_SLOT_BACK, 101118 },
218 { EQUIPMENT_SLOT_CHEST, 101090 },
219 { EQUIPMENT_SLOT_WRISTS, 101097 },
220 { EQUIPMENT_SLOT_HANDS, 101092 },
221 { EQUIPMENT_SLOT_WAIST, 101096 },
222 { EQUIPMENT_SLOT_LEGS, 101094 },
223 { EQUIPMENT_SLOT_FEET, 101091 },
224 { EQUIPMENT_SLOT_FINGER1, 101116 },
225 { EQUIPMENT_SLOT_FINGER2, 101115 },
226 { EQUIPMENT_SLOT_TRINKET1, 101113 },
227 { EQUIPMENT_SLOT_TRINKET2, 101117 },
228 { EQUIPMENT_SLOT_MAINHAND, 101112 },
229 { EQUIPMENT_SLOT_OFFHAND, 101112 }
230};
231
233{
234 { EQUIPMENT_SLOT_HEAD, 101132 },
235 { EQUIPMENT_SLOT_NECK, 101134 },
236 { EQUIPMENT_SLOT_SHOULDERS, 101139 },
237 { EQUIPMENT_SLOT_BACK, 101129 },
238 { EQUIPMENT_SLOT_CHEST, 101128 },
239 { EQUIPMENT_SLOT_WRISTS, 101141 },
240 { EQUIPMENT_SLOT_HANDS, 101131 },
241 { EQUIPMENT_SLOT_WAIST, 101140 },
242 { EQUIPMENT_SLOT_LEGS, 101133 },
243 { EQUIPMENT_SLOT_FEET, 101130 },
244 { EQUIPMENT_SLOT_FINGER1, 101136 },
245 { EQUIPMENT_SLOT_FINGER2, 101137 },
246 { EQUIPMENT_SLOT_TRINKET1, 101135 },
247 { EQUIPMENT_SLOT_TRINKET2, 101138 },
248 { EQUIPMENT_SLOT_MAINHAND, 101142 },
249 { EQUIPMENT_SLOT_OFFHAND, 101143 }
250};
251
253{
254 { EQUIPMENT_SLOT_HEAD, 101157 },
255 { EQUIPMENT_SLOT_NECK, 101159 },
256 { EQUIPMENT_SLOT_SHOULDERS, 101164 },
257 { EQUIPMENT_SLOT_BACK, 101154 },
258 { EQUIPMENT_SLOT_CHEST, 101153 },
259 { EQUIPMENT_SLOT_WRISTS, 101166 },
260 { EQUIPMENT_SLOT_HANDS, 101156 },
261 { EQUIPMENT_SLOT_WAIST, 101165 },
262 { EQUIPMENT_SLOT_LEGS, 101158 },
263 { EQUIPMENT_SLOT_FEET, 101155 },
264 { EQUIPMENT_SLOT_FINGER1, 101161 },
265 { EQUIPMENT_SLOT_FINGER2, 101162 },
266 { EQUIPMENT_SLOT_TRINKET1, 101160 },
267 { EQUIPMENT_SLOT_TRINKET2, 101163 },
268 { EQUIPMENT_SLOT_MAINHAND, 101144 },
269 { EQUIPMENT_SLOT_OFFHAND, 101145 }
270};
271
273{
274 { EQUIPMENT_SLOT_HEAD, 101123 },
275 { EQUIPMENT_SLOT_NECK, 101148 },
276 { EQUIPMENT_SLOT_SHOULDERS, 101125 },
277 { EQUIPMENT_SLOT_BACK, 101147 },
278 { EQUIPMENT_SLOT_CHEST, 101120 },
279 { EQUIPMENT_SLOT_WRISTS, 101127 },
280 { EQUIPMENT_SLOT_HANDS, 101122 },
281 { EQUIPMENT_SLOT_WAIST, 101126 },
282 { EQUIPMENT_SLOT_LEGS, 101124 },
283 { EQUIPMENT_SLOT_FEET, 101121 },
284 { EQUIPMENT_SLOT_FINGER1, 101149 },
285 { EQUIPMENT_SLOT_FINGER2, 101150 },
286 { EQUIPMENT_SLOT_TRINKET1, 101151 },
287 { EQUIPMENT_SLOT_TRINKET2, 101152 },
288 { EQUIPMENT_SLOT_MAINHAND, 101146 }
289};
290
292{
293 { EQUIPMENT_SLOT_HEAD, 101191 },
294 { EQUIPMENT_SLOT_NECK, 101178 },
295 { EQUIPMENT_SLOT_SHOULDERS, 101184 },
296 { EQUIPMENT_SLOT_BACK, 101173 },
297 { EQUIPMENT_SLOT_CHEST, 101182 },
298 { EQUIPMENT_SLOT_WRISTS, 101186 },
299 { EQUIPMENT_SLOT_HANDS, 101190 },
300 { EQUIPMENT_SLOT_WAIST, 101185 },
301 { EQUIPMENT_SLOT_LEGS, 101192 },
302 { EQUIPMENT_SLOT_FEET, 101174 },
303 { EQUIPMENT_SLOT_FINGER1, 101180 },
304 { EQUIPMENT_SLOT_FINGER2, 101181 },
305 { EQUIPMENT_SLOT_TRINKET1, 101179 },
306 { EQUIPMENT_SLOT_TRINKET2, 101183 },
307 { EQUIPMENT_SLOT_MAINHAND, 101187 }
308};
309
311{
312 { EQUIPMENT_SLOT_HEAD, 101176 },
313 { EQUIPMENT_SLOT_NECK, 101167 },
314 { EQUIPMENT_SLOT_SHOULDERS, 101194 },
315 { EQUIPMENT_SLOT_BACK, 101188 },
316 { EQUIPMENT_SLOT_CHEST, 101193 },
317 { EQUIPMENT_SLOT_WRISTS, 101196 },
318 { EQUIPMENT_SLOT_HANDS, 101175 },
319 { EQUIPMENT_SLOT_WAIST, 101195 },
320 { EQUIPMENT_SLOT_LEGS, 101177 },
321 { EQUIPMENT_SLOT_FEET, 101189 },
322 { EQUIPMENT_SLOT_FINGER1, 101169 },
323 { EQUIPMENT_SLOT_FINGER2, 101170 },
324 { EQUIPMENT_SLOT_TRINKET1, 101171 },
325 { EQUIPMENT_SLOT_TRINKET2, 101168 },
326 { EQUIPMENT_SLOT_MAINHAND, 101197 }
327};
328
330{
331 { EQUIPMENT_SLOT_HEAD, 101207 },
332 { EQUIPMENT_SLOT_NECK, 101199},
333 { EQUIPMENT_SLOT_SHOULDERS, 101209 },
334 { EQUIPMENT_SLOT_BACK, 101198 },
335 { EQUIPMENT_SLOT_CHEST, 101204 },
336 { EQUIPMENT_SLOT_WRISTS, 101211 },
337 { EQUIPMENT_SLOT_HANDS, 101206 },
338 { EQUIPMENT_SLOT_WAIST, 101210 },
339 { EQUIPMENT_SLOT_LEGS, 101208 },
340 { EQUIPMENT_SLOT_FEET, 101205 },
341 { EQUIPMENT_SLOT_FINGER1, 101201 },
342 { EQUIPMENT_SLOT_FINGER2, 101202 },
343 { EQUIPMENT_SLOT_TRINKET1, 101200 },
344 { EQUIPMENT_SLOT_TRINKET2, 101203 },
345 { EQUIPMENT_SLOT_MAINHAND, 101214 },
346 { EQUIPMENT_SLOT_OFFHAND, 101214 }
347};
348
350{
351 { EQUIPMENT_SLOT_HEAD, 101207 },
352 { EQUIPMENT_SLOT_NECK, 101199 },
353 { EQUIPMENT_SLOT_SHOULDERS, 101209 },
354 { EQUIPMENT_SLOT_BACK, 101198 },
355 { EQUIPMENT_SLOT_CHEST, 101204 },
356 { EQUIPMENT_SLOT_WRISTS, 101211 },
357 { EQUIPMENT_SLOT_HANDS, 101206 },
358 { EQUIPMENT_SLOT_WAIST, 101210 },
359 { EQUIPMENT_SLOT_LEGS, 101208 },
360 { EQUIPMENT_SLOT_FEET, 101205 },
361 { EQUIPMENT_SLOT_FINGER1, 101201 },
362 { EQUIPMENT_SLOT_FINGER2, 101202 },
363 { EQUIPMENT_SLOT_TRINKET1, 101200 },
364 { EQUIPMENT_SLOT_TRINKET2, 101203 },
365 { EQUIPMENT_SLOT_MAINHAND, 101213 },
366 { EQUIPMENT_SLOT_OFFHAND, 101213 }
367};
368
370{
371 { EQUIPMENT_SLOT_HEAD, 101207 },
372 { EQUIPMENT_SLOT_NECK, 101199 },
373 { EQUIPMENT_SLOT_SHOULDERS, 101209 },
374 { EQUIPMENT_SLOT_BACK, 101198 },
375 { EQUIPMENT_SLOT_CHEST, 101204 },
376 { EQUIPMENT_SLOT_WRISTS, 101211 },
377 { EQUIPMENT_SLOT_HANDS, 101206 },
378 { EQUIPMENT_SLOT_WAIST, 101210 },
379 { EQUIPMENT_SLOT_LEGS, 101208 },
380 { EQUIPMENT_SLOT_FEET, 101205 },
381 { EQUIPMENT_SLOT_FINGER1, 101201 },
382 { EQUIPMENT_SLOT_FINGER2, 101202 },
383 { EQUIPMENT_SLOT_TRINKET1, 101200 },
384 { EQUIPMENT_SLOT_TRINKET2, 101203 },
385 { EQUIPMENT_SLOT_MAINHAND, 101212 },
386 { EQUIPMENT_SLOT_OFFHAND, 101212 }
387};
388
390{
391 { EQUIPMENT_SLOT_HEAD, 101230 },
392 { EQUIPMENT_SLOT_NECK, 101221 },
393 { EQUIPMENT_SLOT_SHOULDERS, 101233 },
394 { EQUIPMENT_SLOT_BACK, 101251 },
395 { EQUIPMENT_SLOT_CHEST, 101227 },
396 { EQUIPMENT_SLOT_WRISTS, 101235 },
397 { EQUIPMENT_SLOT_HANDS, 101255 },
398 { EQUIPMENT_SLOT_WAIST, 101234 },
399 { EQUIPMENT_SLOT_LEGS, 101257 },
400 { EQUIPMENT_SLOT_FEET, 101254 },
401 { EQUIPMENT_SLOT_FINGER1, 101223 },
402 { EQUIPMENT_SLOT_FINGER2, 101224 },
403 { EQUIPMENT_SLOT_TRINKET1, 101222 },
404 { EQUIPMENT_SLOT_TRINKET2, 101225 },
405 { EQUIPMENT_SLOT_MAINHAND, 101226 },
406 { EQUIPMENT_SLOT_OFFHAND, 101232 }
407};
408
410{
411 { EQUIPMENT_SLOT_HEAD, 101240 },
412 { EQUIPMENT_SLOT_NECK, 101216 },
413 { EQUIPMENT_SLOT_SHOULDERS, 101242 },
414 { EQUIPMENT_SLOT_BACK, 101215 },
415 { EQUIPMENT_SLOT_CHEST, 101237 },
416 { EQUIPMENT_SLOT_WRISTS, 101244 },
417 { EQUIPMENT_SLOT_HANDS, 101239 },
418 { EQUIPMENT_SLOT_WAIST, 101243 },
419 { EQUIPMENT_SLOT_LEGS, 101241 },
420 { EQUIPMENT_SLOT_FEET, 101238 },
421 { EQUIPMENT_SLOT_FINGER1, 101218 },
422 { EQUIPMENT_SLOT_FINGER2, 101219 },
423 { EQUIPMENT_SLOT_TRINKET1, 101217 },
424 { EQUIPMENT_SLOT_TRINKET2, 101220 },
425 { EQUIPMENT_SLOT_MAINHAND, 101236 },
426 { EQUIPMENT_SLOT_OFFHAND, 101236 }
427};
428
430{
431 { EQUIPMENT_SLOT_HEAD, 101256 },
432 { EQUIPMENT_SLOT_NECK, 101246 },
433 { EQUIPMENT_SLOT_SHOULDERS, 101259 },
434 { EQUIPMENT_SLOT_BACK, 101245 },
435 { EQUIPMENT_SLOT_CHEST, 101253 },
436 { EQUIPMENT_SLOT_WRISTS, 101261 },
437 { EQUIPMENT_SLOT_HANDS, 101229 },
438 { EQUIPMENT_SLOT_WAIST, 101260 },
439 { EQUIPMENT_SLOT_LEGS, 101231 },
440 { EQUIPMENT_SLOT_FEET, 101228 },
441 { EQUIPMENT_SLOT_FINGER1, 101249 },
442 { EQUIPMENT_SLOT_FINGER2, 101248 },
443 { EQUIPMENT_SLOT_TRINKET1, 101247 },
444 { EQUIPMENT_SLOT_TRINKET2, 101250 },
445 { EQUIPMENT_SLOT_MAINHAND, 101252 },
446 { EQUIPMENT_SLOT_OFFHAND, 101258 }
447};
448
450{
451 { EQUIPMENT_SLOT_HEAD, 101269 },
452 { EQUIPMENT_SLOT_NECK, 101262 },
453 { EQUIPMENT_SLOT_SHOULDERS, 101272 },
454 { EQUIPMENT_SLOT_BACK, 101276 },
455 { EQUIPMENT_SLOT_CHEST, 101271 },
456 { EQUIPMENT_SLOT_WRISTS, 101274 },
457 { EQUIPMENT_SLOT_HANDS, 101268 },
458 { EQUIPMENT_SLOT_WAIST, 101273 },
459 { EQUIPMENT_SLOT_LEGS, 101270 },
460 { EQUIPMENT_SLOT_FEET, 101267 },
461 { EQUIPMENT_SLOT_FINGER1, 101264 },
462 { EQUIPMENT_SLOT_FINGER2, 101265 },
463 { EQUIPMENT_SLOT_TRINKET1, 101266 },
464 { EQUIPMENT_SLOT_TRINKET2, 101263 },
465 { EQUIPMENT_SLOT_MAINHAND, 101277 }
466};
467
469{
470 { EQUIPMENT_SLOT_HEAD, 101282 },
471 { EQUIPMENT_SLOT_NECK, 101291 },
472 { EQUIPMENT_SLOT_SHOULDERS, 101284 },
473 { EQUIPMENT_SLOT_BACK, 101290 },
474 { EQUIPMENT_SLOT_CHEST, 101279 },
475 { EQUIPMENT_SLOT_WRISTS, 101286 },
476 { EQUIPMENT_SLOT_HANDS, 101281 },
477 { EQUIPMENT_SLOT_WAIST, 101285 },
478 { EQUIPMENT_SLOT_LEGS, 101283 },
479 { EQUIPMENT_SLOT_FEET, 101280 },
480 { EQUIPMENT_SLOT_FINGER1, 101292 },
481 { EQUIPMENT_SLOT_FINGER2, 101293 },
482 { EQUIPMENT_SLOT_TRINKET1, 101294 },
483 { EQUIPMENT_SLOT_TRINKET2, 101295 },
484 { EQUIPMENT_SLOT_MAINHAND, 101278 }
485};
486
488{
489 { EQUIPMENT_SLOT_HEAD, 101282 },
490 { EQUIPMENT_SLOT_NECK, 101291 },
491 { EQUIPMENT_SLOT_SHOULDERS, 101284 },
492 { EQUIPMENT_SLOT_BACK, 101290 },
493 { EQUIPMENT_SLOT_CHEST, 101279 },
494 { EQUIPMENT_SLOT_WRISTS, 101286 },
495 { EQUIPMENT_SLOT_HANDS, 101281 },
496 { EQUIPMENT_SLOT_WAIST, 101285 },
497 { EQUIPMENT_SLOT_LEGS, 101283 },
498 { EQUIPMENT_SLOT_FEET, 101280 },
499 { EQUIPMENT_SLOT_FINGER1, 101292 },
500 { EQUIPMENT_SLOT_FINGER2, 101293 },
501 { EQUIPMENT_SLOT_TRINKET1, 101294 },
502 { EQUIPMENT_SLOT_TRINKET2, 101295 },
503 { EQUIPMENT_SLOT_MAINHAND, 101287 },
504 { EQUIPMENT_SLOT_OFFHAND, 101287 }
505};
506
508{
509 { EQUIPMENT_SLOT_HEAD, 101300 },
510 { EQUIPMENT_SLOT_NECK, 101302 },
511 { EQUIPMENT_SLOT_SHOULDERS, 101307 },
512 { EQUIPMENT_SLOT_BACK, 101297 },
513 { EQUIPMENT_SLOT_CHEST, 101296 },
514 { EQUIPMENT_SLOT_WRISTS, 101309 },
515 { EQUIPMENT_SLOT_HANDS, 101299 },
516 { EQUIPMENT_SLOT_WAIST, 101308 },
517 { EQUIPMENT_SLOT_LEGS, 101301 },
518 { EQUIPMENT_SLOT_FEET, 101298 },
519 { EQUIPMENT_SLOT_FINGER1, 101305 },
520 { EQUIPMENT_SLOT_FINGER2, 101304 },
521 { EQUIPMENT_SLOT_TRINKET1, 101303 },
522 { EQUIPMENT_SLOT_TRINKET2, 101306 },
523 { EQUIPMENT_SLOT_MAINHAND, 101288 },
524 { EQUIPMENT_SLOT_OFFHAND, 101289 }
525};
526
527#define CHARRACTER_BOOST_EQUIPED_ITEMS_MAIL_BODY "We've supplied you with a whole new set of high-level gear, but attached you'll find all the old items and equipment you once carried."
528#define CHARRACTER_BOOST_EQUIPED_ITEMS_MAIL_SUBJECT "Character Boost"
529
543
544std::vector<uint32> const CharBoostSpells =
545{
546 34091, // Artisan Riding
547 54197, // ColdWeather Flying
548 90267, // Flight Master License
549 115913, // Wisdom of the Four Winds
550 110406, // First aid
551 104381 // Cooking
552};
553
554float const startPosition[2][4] =
555{
556 {1605.908f, 921.2222f, 470.6227f, 0.124413f}, // horde
557 {880.6965f, 296.6945f, 503.1162f, 3.779655f} // alliance
558};
559
570
572{
573public:
575
576 uint32 GetCurrentAction() const { return m_charBoostInfo.action; }
577 uint32 GetGuidLow() const { return m_charBoostInfo.lowGuid; }
579 bool IsBoosting(uint32 lowGuid) const { return m_boosting && (m_charBoostInfo.lowGuid == lowGuid); }
580 void SetBoostedCharInfo(uint64 guid, uint32 action, uint32 specialization, bool allianceFaction);
581 void Update(uint32 diff);
582
583private:
584 SlotEquipmentMap const* _GetCharBoostItems(std::vector<std::pair<uint32, uint32> >& itemsToMail) const;
585 std::string _EquipItems(SQLTransaction& trans, SlotEquipmentMap const* itemsToEquip) const;
586 uint8 _GetRace() const;
587 void _HandleCharacterBoost() const;
588 void _LearnSpells(SQLTransaction& trans, uint8 const& raceId, uint8 const& classId) const;
589 void _MailEquipedItems(SQLTransaction& trans) const;
590 uint32 _PrepareMail(SQLTransaction& trans, std::string const& subject, std::string const& body) const;
591 std::string _SetSpecialization(SQLTransaction& trans, uint8 const& classId) const;
592 void _SaveBoostedChar(SQLTransaction& trans, std::string const& items, uint8 const& raceId, uint8 const& classId) const;
593 void _SendMail(SQLTransaction& trans, std::vector<std::pair<uint32, uint32> > const& items) const;
594 void _SendCharBoostPacket(SlotEquipmentMap const* items) const;
595
601};
602
603#endif
SlotEquipmentMap const deathKnightEquipmentUnholy
SlotEquipmentMap const druidEquipmentBalance
SlotEquipmentMap const shamanEquipmentRestoration
SlotEquipmentMap const embersilkBags
std::map< uint8, uint32 > SlotEquipmentMap
SlotEquipmentMap const druidEquipmentRestoration
SlotEquipmentMap const paladinEquipmentHoly
SlotEquipmentMap const monkEquipmentWindwalker
SlotEquipmentMap const deathKnightEquipmentFrost
SlotEquipmentMap const shamanEquipmentElemental
float const startPosition[2][4]
SlotEquipmentMap const rogueEquipmentSubtlety
SlotEquipmentMap const warriorEquipmentProtection
SlotEquipmentMap const monkEquipmentMistweaver
SlotEquipmentMap const shamanEquipmentEnhancement
SlotEquipmentMap const rogueEquipmentCombat
std::vector< uint32 > const CharBoostSpells
SlotEquipmentMap const paladinEquipmentProtection
CharBoostMisc
@ SWIFT_PURPLE_GRYPGON_SPELL
@ PLATE_MAIL_ARMOR_SPELL
@ LEMON_FLAVOUR_PUDING_ID
@ LEMON_FLAVOUR_PUDING_COUNT
@ SWIFT_PURPLE_WIND_RIDER_SPELL
@ VALE_OF_ETERNAL_BLOSSOMS_MAP_ID
@ EMBERSILK_BAG_ID
SlotEquipmentMap const paladinEquipmentRetribution
SlotEquipmentMap const deathKnightEquipmentBlood
SlotEquipmentMap const priestEquipmentDisciplineAndHoly
SlotEquipmentMap const warlockEquipment
SlotEquipmentMap const hunterEquipment
SlotEquipmentMap const monkEquipmentBrewmaster
SlotEquipmentMap const warriorEquipmentArms
SlotEquipmentMap const mageEquipment
SlotEquipmentMap const priestEquipmentShadow
SlotEquipmentMap const rogueEquipmentAssassionation
SlotEquipmentMap const druidEquipmentFeral
SlotEquipmentMap const warriorEquipmentFury
std::uint8_t uint8
Definition Define.h:79
std::uint32_t uint32
Definition Define.h:77
std::uint64_t uint64
Definition Define.h:76
@ INVENTORY_SLOT_BAG_START
Definition Player.h:713
@ EQUIPMENT_SLOT_SHOULDERS
Definition Player.h:691
@ EQUIPMENT_SLOT_HANDS
Definition Player.h:698
@ EQUIPMENT_SLOT_FINGER1
Definition Player.h:699
@ EQUIPMENT_SLOT_NECK
Definition Player.h:690
@ EQUIPMENT_SLOT_FINGER2
Definition Player.h:700
@ EQUIPMENT_SLOT_MAINHAND
Definition Player.h:704
@ EQUIPMENT_SLOT_TRINKET1
Definition Player.h:701
@ EQUIPMENT_SLOT_HEAD
Definition Player.h:689
@ EQUIPMENT_SLOT_LEGS
Definition Player.h:695
@ EQUIPMENT_SLOT_BACK
Definition Player.h:703
@ EQUIPMENT_SLOT_OFFHAND
Definition Player.h:705
@ EQUIPMENT_SLOT_WAIST
Definition Player.h:694
@ EQUIPMENT_SLOT_FEET
Definition Player.h:696
@ EQUIPMENT_SLOT_CHEST
Definition Player.h:693
@ EQUIPMENT_SLOT_WRISTS
Definition Player.h:697
@ EQUIPMENT_SLOT_TRINKET2
Definition Player.h:702
Skyfire::AutoPtr< Transaction, Skyfire::Mutex > SQLTransaction
Definition Transaction.h:42
WorldSession * m_session
uint32 GetGuidLow() const
CharacterBooster(WorldSession *session)
CharacterBoostData m_charBoostInfo
std::string _EquipItems(SQLTransaction &trans, SlotEquipmentMap const *itemsToEquip) const
uint32 _PrepareMail(SQLTransaction &trans, std::string const &subject, std::string const &body) const
void _HandleCharacterBoost() const
bool IsBoosting(uint32 lowGuid) const
void SetBoostedCharInfo(uint64 guid, uint32 action, uint32 specialization, bool allianceFaction)
uint8 _GetRace() const
uint32 GetCurrentAction() const
void _SendMail(SQLTransaction &trans, std::vector< std::pair< uint32, uint32 > > const &items) const
void _SaveBoostedChar(SQLTransaction &trans, std::string const &items, uint8 const &raceId, uint8 const &classId) const
void _LearnSpells(SQLTransaction &trans, uint8 const &raceId, uint8 const &classId) const
std::string _SetSpecialization(SQLTransaction &trans, uint8 const &classId) const
void Update(uint32 diff)
void _SendCharBoostPacket(SlotEquipmentMap const *items) const
SlotEquipmentMap const * _GetCharBoostItems(std::vector< std::pair< uint32, uint32 > > &itemsToMail) const
void _MailEquipedItems(SQLTransaction &trans) const
Player session in the World.