├── .editorconfig ├── .gitattributes ├── .gitignore ├── LICENSE ├── README.md ├── conf └── Brawlers-Guild.conf.dist ├── data └── sql │ ├── db-characters │ └── mod_brawlers_guild.sql │ └── db-world │ ├── Misc.sql │ ├── NPCs.sql │ ├── Season1 NPCs.sql │ └── spell_dbc.sql ├── include.sh ├── pull_request_template.md └── src ├── BG_loader.cpp ├── npc_brawlers_guild.cpp └── npc_brawlers_guild_fights.cpp /.editorconfig: -------------------------------------------------------------------------------- 1 | [*] 2 | charset = utf-8 3 | indent_style = space 4 | indent_size = 4 5 | tab_width = 4 6 | insert_final_newline = true 7 | trim_trailing_whitespace = true 8 | max_line_length = 80 9 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | ## AUTO-DETECT 2 | ## Handle line endings automatically for files detected as 3 | ## text and leave all files detected as binary untouched. 4 | ## This will handle all files NOT defined below. 5 | * text=auto eol=lf 6 | 7 | # Text 8 | *.conf text 9 | *.conf.dist text 10 | *.cmake text 11 | 12 | ## Scripts 13 | *.sh text 14 | *.fish text 15 | *.lua text 16 | 17 | ## SQL 18 | *.sql text 19 | 20 | ## C++ 21 | *.c text 22 | *.cc text 23 | *.cxx text 24 | *.cpp text 25 | *.c++ text 26 | *.hpp text 27 | *.h text 28 | *.h++ text 29 | *.hh text 30 | 31 | 32 | ## For documentation 33 | 34 | # Documents 35 | *.doc diff=astextplain 36 | *.DOC diff=astextplain 37 | *.docx diff=astextplain 38 | *.DOCX diff=astextplain 39 | *.dot diff=astextplain 40 | *.DOT diff=astextplain 41 | *.pdf diff=astextplain 42 | *.PDF diff=astextplain 43 | *.rtf diff=astextplain 44 | *.RTF diff=astextplain 45 | 46 | ## DOCUMENTATION 47 | *.markdown text 48 | *.md text 49 | *.mdwn text 50 | *.mdown text 51 | *.mkd text 52 | *.mkdn text 53 | *.mdtxt text 54 | *.mdtext text 55 | *.txt text 56 | AUTHORS text 57 | CHANGELOG text 58 | CHANGES text 59 | CONTRIBUTING text 60 | COPYING text 61 | copyright text 62 | *COPYRIGHT* text 63 | INSTALL text 64 | license text 65 | LICENSE text 66 | NEWS text 67 | readme text 68 | *README* text 69 | TODO text 70 | 71 | ## GRAPHICS 72 | *.ai binary 73 | *.bmp binary 74 | *.eps binary 75 | *.gif binary 76 | *.ico binary 77 | *.jng binary 78 | *.jp2 binary 79 | *.jpg binary 80 | *.jpeg binary 81 | *.jpx binary 82 | *.jxr binary 83 | *.pdf binary 84 | *.png binary 85 | *.psb binary 86 | *.psd binary 87 | *.svg text 88 | *.svgz binary 89 | *.tif binary 90 | *.tiff binary 91 | *.wbmp binary 92 | *.webp binary 93 | 94 | 95 | ## ARCHIVES 96 | *.7z binary 97 | *.gz binary 98 | *.jar binary 99 | *.rar binary 100 | *.tar binary 101 | *.zip binary 102 | 103 | ## EXECUTABLES 104 | *.exe binary 105 | *.pyc binary 106 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | !.gitignore 2 | 3 | # 4 | #Generic 5 | # 6 | 7 | .directory 8 | .mailmap 9 | *.orig 10 | *.rej 11 | *.*~ 12 | .hg/ 13 | *.kdev* 14 | .DS_Store 15 | CMakeLists.txt.user 16 | *.bak 17 | *.patch 18 | *.diff 19 | *.REMOTE.* 20 | *.BACKUP.* 21 | *.BASE.* 22 | *.LOCAL.* 23 | 24 | # 25 | # IDE & other softwares 26 | # 27 | /.settings/ 28 | /.externalToolBuilders/* 29 | # exclude in all levels 30 | nbproject/ 31 | .sync.ffs_db 32 | *.kate-swp 33 | 34 | # 35 | # Eclipse 36 | # 37 | *.pydevproject 38 | .metadata 39 | .gradle 40 | tmp/ 41 | *.tmp 42 | *.swp 43 | *~.nib 44 | local.properties 45 | .settings/ 46 | .loadpath 47 | .project 48 | .cproject 49 | .vscode/settings.json 50 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ![logo](https://raw.githubusercontent.com/azerothcore/azerothcore.github.io/master/images/logo-github.png) AzerothCore 2 | 3 | ## Description 4 | 5 | Adds [Mist of Pandaria's Brawler's Guild](https://wowpedia.fandom.com/wiki/Brawler%27s_Guild) to [AzerothCore](http://azerothcore.org/). 6 | 7 |

8 | The Brawler's Guild 9 |

10 | 11 |

12 | The Brawler's Guild 13 | The Brawler's Guild 14 |

15 | 16 | 17 | > [!IMPORTANT] 18 | > Requires at least AzerothCore commit [d6d49a9](https://github.com/azerothcore/azerothcore-wotlk/commit/e4df159f5c370e1a1890a6a999b33b30d72eb55e). 19 | > Does not support PlayerBots or any other custom AzerothCore forks. 20 | ## How to use ingame (Horde only) 21 | 22 | - .tele ringofvalor 23 | - Be level 80 24 | 25 | ## Description 26 | 27 | The Brawler's Guild is an organization that arranges one on one battles between willing combatants, captured monsters, and other participants in gladiatorial combat. Being a neutral organization, only members of the Horde are allowed to enter, rising through the Brawler's Guild ranks with more wins. Prizes are awarded at higher ranks. The fights are all solo PvE matches in which the players must adapt and use different strategies depending on which opponent they are currently facing, making the Brawler's Guild one of the most challenging PvE activities a player can attempt on their own. 28 | 29 | > [!NOTE] 30 | > Features:\ 31 | > Betting on win/lose for current fight\ 32 | > Multiple ranks to progress through.\ 33 | > VIP Area (South Seas) (Teleporter unlockable after reaching the highest rank (8))\ 34 | > Multiple Seasons (4 in total, 1 for each raid tier) *NYI* 35 | ### Season tuning information 36 | 37 | - Season 1 - Tier 7   (213~) 38 | - Season 2 - Tier 8   (232~) 39 | - Season 3 - Tier 9   (245~) 40 | - Season 4 - Tier 10 (264~) 41 | 42 | (Item level is based on the highest obtainable gear from 10m) 43 | 44 | ## Installation 45 | 46 | ``` 47 | 1) Simply place the module under the `modules` directory of your AzerothCore source. 48 | 2) Import the SQL(s) manually to the right Database (auth, world or characters) or with the `db_assembler.sh`. 49 | 3) Re-run cmake and launch a clean build of AzerothCore. 50 | ``` 51 | 52 | ## Edit module configuration (optional) 53 | 54 | If you need to change the module configuration, go to your server configuration folder (where your `worldserver` or `worldserver.exe` is), copy `modarenatop.conf.dist` to `modarenatop.conf` and edit that new file. 55 | 56 | ## Edit shop configuration 57 | 58 | In `npc_brawlers_guild.cpp` look for "Shop", there you can edit prices, items and required rank for every item. 59 | 60 | ## Credits 61 | Avarishd: [GitHub](https://github.com/avarishd) [Discord](https://discordapp.com/users/125563894310633472) 62 | 63 | AzerothCore: [GitHub Repository](https://github.com/azerothcore) [Website](http://azerothcore.org/) [Discord](https://discord.gg/PaqQRkd) 64 | -------------------------------------------------------------------------------- /conf/Brawlers-Guild.conf.dist: -------------------------------------------------------------------------------- 1 | [worldserver] 2 | 3 | ############## Global settings ############## 4 | 5 | # 6 | # BrawlersGuild.Enabled 7 | # Description: Enable or Disable the BrawlersGuild Module. 8 | # Default: BrawlersGuild.Enabled = 1 9 | # 10 | 11 | BrawlersGuild.Enabled = 1 12 | 13 | # 14 | # BrawlersGuild.Announce 15 | # Description: Announce the BrawlersGuild Module at logon. 16 | # Default: BrawlersGuild.Announce = 1 17 | # 18 | 19 | BrawlersGuild.Announce = 1 20 | 21 | # 22 | # BrawlersGuild.CurrentSeason 23 | # Description: Current season of BrawlersGuild. 24 | # Default: Default = 1 25 | # 26 | # Season 1 - Tier 7 (213~) 27 | # Season 2 - Tier 8 (232~) 28 | # Season 3 - Tier 9 (245~) 29 | # Season 4 - Tier 10 (264~) 30 | # 31 | 32 | BrawlersGuild.CurrentSeason = 1 33 | 34 | ############## Coin Settings ############## 35 | 36 | # 37 | # BrawlersGuild.CoinsStartingQuestReward 38 | # Description: Amount of coins that are rewarded upon completing the starting quest. 39 | # Default: Default = 10 40 | # 41 | 42 | BrawlersGuild.CoinsStartingQuestReward = 10 43 | 44 | # 45 | # BrawlersGuild.CoinsVictoryReward 46 | # Description: Amount of coins that are rewarded upon victory. 47 | # Default: Default = 2 48 | # 49 | 50 | BrawlersGuild.CoinsVictoryReward = 2 51 | 52 | # 53 | # BrawlersGuild.Gambler 54 | # Description: Enable or Disable the coin gambling. (Chip) 55 | # Default: Default = 1 56 | # 57 | 58 | BrawlersGuild.Gambler = 1 59 | 60 | ############## Rank settings ############## 61 | 62 | # 63 | # BrawlersGuild.RankRequired 64 | # Description: Required rank points to progress to next rank. 65 | # Default: Default = 10 66 | # 67 | 68 | BrawlersGuild.RankRequired = 10 69 | 70 | # 71 | # BrawlersGuild.RankWin 72 | # Description: Rank points rewarded upon victory. 73 | # Default: Default = 1 74 | # 75 | 76 | BrawlersGuild.RankWin = 1 77 | 78 | # 79 | # BrawlersGuild.RankLose 80 | # Description: Rank points lost upon defeat. (0 to disable) 81 | # Default: Default = 2 82 | # 83 | 84 | BrawlersGuild.RankLose = 2 85 | 86 | ############## Fight settings ############## 87 | 88 | # 89 | # BrawlersGuild.FightDuration 90 | # Description: Maximum allowed duration of every fight 91 | # Default: Default = 120 (seconds) 92 | # 93 | # If changed some SAI scripts also need to be altered (summon durations mostly) 94 | # 95 | 96 | BrawlersGuild.FightDuration = 120 97 | 98 | ############## Challenge Cards & Rare settings (NYI) ############## 99 | 100 | # 101 | # BrawlersGuild.RareEnable 102 | # Description: Enable or Disable rare spawns 103 | # Default: Default = 0 104 | # 105 | 106 | BrawlersGuild.RareEnable = 0 107 | 108 | # 109 | # BrawlersGuild.RarePercent 110 | # Description: Percentage to spawn a rare. 111 | # Default: Default = 0 112 | # 113 | 114 | BrawlersGuild.RarePercent = 0 115 | 116 | ############## Arena Settings (NYI) ############## 117 | 118 | # 119 | # BrawlersGuild.ArenaRandomize 120 | # Description: Enable or Disable randomizing arena. (Obstacles) 121 | # Default: Default = 0 122 | # 123 | 124 | BrawlersGuild.ArenaRandomize = 0 125 | 126 | # 127 | # BrawlersGuild.ArenaHazard 128 | # Description: Enable or Disable arena hazards. 129 | # Default: Default = 0 130 | # 131 | 132 | BrawlersGuild.ArenaHazard = 0 -------------------------------------------------------------------------------- /data/sql/db-characters/mod_brawlers_guild.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE IF NOT EXISTS `brawlersguild` ( 2 | `CharacterGUID` int(11) NOT NULL, 3 | `Progress` int(11) NOT NULL DEFAULT '0', 4 | `Rank` int(11) NOT NULL DEFAULT '0', 5 | PRIMARY KEY (`CharacterGUID`) 6 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; 7 | -------------------------------------------------------------------------------- /data/sql/db-world/Misc.sql: -------------------------------------------------------------------------------- 1 | SET @Quests := 90000; 2 | SET @HelixID := 200000; 3 | 4 | -- Quest: Into the Arena! 5 | DELETE FROM `quest_template` WHERE (`ID` = @Quests); 6 | INSERT INTO `quest_template` (`ID`, `QuestType`, `QuestLevel`, `MinLevel`, `QuestSortID`, `QuestInfoID`, `SuggestedGroupNum`, `RequiredFactionId1`, `RequiredFactionId2`, `RequiredFactionValue1`, `RequiredFactionValue2`, `RewardNextQuest`, `RewardXPDifficulty`, `RewardMoney`, `RewardMoneyDifficulty`, `RewardDisplaySpell`, `RewardSpell`, `RewardHonor`, `RewardKillHonor`, `StartItem`, `Flags`, `RequiredPlayerKills`, `RewardItem1`, `RewardAmount1`, `RewardItem2`, `RewardAmount2`, `RewardItem3`, `RewardAmount3`, `RewardItem4`, `RewardAmount4`, `ItemDrop1`, `ItemDropQuantity1`, `ItemDrop2`, `ItemDropQuantity2`, `ItemDrop3`, `ItemDropQuantity3`, `ItemDrop4`, `ItemDropQuantity4`, `RewardChoiceItemID1`, `RewardChoiceItemQuantity1`, `RewardChoiceItemID2`, `RewardChoiceItemQuantity2`, `RewardChoiceItemID3`, `RewardChoiceItemQuantity3`, `RewardChoiceItemID4`, `RewardChoiceItemQuantity4`, `RewardChoiceItemID5`, `RewardChoiceItemQuantity5`, `RewardChoiceItemID6`, `RewardChoiceItemQuantity6`, `POIContinent`, `POIx`, `POIy`, `POIPriority`, `RewardTitle`, `RewardTalents`, `RewardArenaPoints`, `RewardFactionID1`, `RewardFactionValue1`, `RewardFactionOverride1`, `RewardFactionID2`, `RewardFactionValue2`, `RewardFactionOverride2`, `RewardFactionID3`, `RewardFactionValue3`, `RewardFactionOverride3`, `RewardFactionID4`, `RewardFactionValue4`, `RewardFactionOverride4`, `RewardFactionID5`, `RewardFactionValue5`, `RewardFactionOverride5`, `TimeAllowed`, `AllowableRaces`, `LogTitle`, `LogDescription`, `QuestDescription`, `AreaDescription`, `QuestCompletionLog`, `RequiredNpcOrGo1`, `RequiredNpcOrGo2`, `RequiredNpcOrGo3`, `RequiredNpcOrGo4`, `RequiredNpcOrGoCount1`, `RequiredNpcOrGoCount2`, `RequiredNpcOrGoCount3`, `RequiredNpcOrGoCount4`, `RequiredItemId1`, `RequiredItemId2`, `RequiredItemId3`, `RequiredItemId4`, `RequiredItemId5`, `RequiredItemId6`, `RequiredItemCount1`, `RequiredItemCount2`, `RequiredItemCount3`, `RequiredItemCount4`, `RequiredItemCount5`, `RequiredItemCount6`, `Unknown0`, `ObjectiveText1`, `ObjectiveText2`, `ObjectiveText3`, `ObjectiveText4`, `VerifiedBuild`) VALUES 7 | (@Quests, 0, 80, 80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Into the Arena!', 'Speak with Helix to learn more about the Brawler\'s Guild.', 'Speak with Helix to learn more about the Brawler\'s Guild.', '', 'Speak with Helix to learn more about the Brawler\'s Guild.', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', '', '', '', 0); 8 | 9 | DELETE FROM `quest_offer_reward` WHERE (`ID` = @Quests); 10 | INSERT INTO `quest_offer_reward` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `RewardText`, `VerifiedBuild`) VALUES 11 | (@Quests, 1, 0, 0, 0, 0, 0, 0, 0, 'You must be here for the Brawler\'s Guild, eh? $B$BWell, let me tell you, it\'s not for the faint of heart. Those fights can get pretty intense, but the rewards are worth it. $B$BI\'ve heard that some of the toughest fighters in Azeroth have made their way through these doors. $B$BAnd rumor has it that a new challenger has just arrived, someone who\'s been making waves in the underground fight scene. $B$BWho knows what kind of surprises they\'ll bring to the ring? $B$BGood luck, friend. You\'re gonna need it.', 0); 12 | 13 | DELETE FROM `creature_queststarter` WHERE (`quest` = @Quests); 14 | INSERT INTO `creature_queststarter` (`id`, `quest`) VALUES 15 | (@HelixID, @Quests); 16 | DELETE FROM `creature_questender` WHERE (`quest` = @Quests); 17 | INSERT INTO `creature_questender` (`id`, `quest`) VALUES 18 | (@HelixID, @Quests); 19 | 20 | -- Item (PH item) 21 | DELETE FROM `item_template` WHERE (`entry` = 43003); 22 | INSERT INTO `item_template` (`entry`, `class`, `subclass`, `SoundOverrideSubclass`, `name`, `displayid`, `Quality`, `Flags`, `FlagsExtra`, `BuyCount`, `BuyPrice`, `SellPrice`, `InventoryType`, `AllowableClass`, `AllowableRace`, `ItemLevel`, `RequiredLevel`, `RequiredSkill`, `RequiredSkillRank`, `requiredspell`, `requiredhonorrank`, `RequiredCityRank`, `RequiredReputationFaction`, `RequiredReputationRank`, `maxcount`, `stackable`, `ContainerSlots`, `StatsCount`, `stat_type1`, `stat_value1`, `stat_type2`, `stat_value2`, `stat_type3`, `stat_value3`, `stat_type4`, `stat_value4`, `stat_type5`, `stat_value5`, `stat_type6`, `stat_value6`, `stat_type7`, `stat_value7`, `stat_type8`, `stat_value8`, `stat_type9`, `stat_value9`, `stat_type10`, `stat_value10`, `ScalingStatDistribution`, `ScalingStatValue`, `dmg_min1`, `dmg_max1`, `dmg_type1`, `dmg_min2`, `dmg_max2`, `dmg_type2`, `armor`, `holy_res`, `fire_res`, `nature_res`, `frost_res`, `shadow_res`, `arcane_res`, `delay`, `ammo_type`, `RangedModRange`, `spellid_1`, `spelltrigger_1`, `spellcharges_1`, `spellppmRate_1`, `spellcooldown_1`, `spellcategory_1`, `spellcategorycooldown_1`, `spellid_2`, `spelltrigger_2`, `spellcharges_2`, `spellppmRate_2`, `spellcooldown_2`, `spellcategory_2`, `spellcategorycooldown_2`, `spellid_3`, `spelltrigger_3`, `spellcharges_3`, `spellppmRate_3`, `spellcooldown_3`, `spellcategory_3`, `spellcategorycooldown_3`, `spellid_4`, `spelltrigger_4`, `spellcharges_4`, `spellppmRate_4`, `spellcooldown_4`, `spellcategory_4`, `spellcategorycooldown_4`, `spellid_5`, `spelltrigger_5`, `spellcharges_5`, `spellppmRate_5`, `spellcooldown_5`, `spellcategory_5`, `spellcategorycooldown_5`, `bonding`, `description`, `PageText`, `LanguageID`, `PageMaterial`, `startquest`, `lockid`, `Material`, `sheath`, `RandomProperty`, `RandomSuffix`, `block`, `itemset`, `MaxDurability`, `area`, `Map`, `BagFamily`, `TotemCategory`, `socketColor_1`, `socketContent_1`, `socketColor_2`, `socketContent_2`, `socketColor_3`, `socketContent_3`, `socketBonus`, `GemProperties`, `RequiredDisenchantSkill`, `ArmorDamageModifier`, `duration`, `ItemLimitCategory`, `HolidayId`, `ScriptName`, `DisenchantID`, `FoodType`, `minMoneyLoot`, `maxMoneyLoot`, `flagsCustom`, `VerifiedBuild`) VALUES 23 | (43003, 15, 0, -1, 'Brawler\'s Gold', 34104, 4, 134217760, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1000, 1000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1000, 0, 0, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 0, 0, 0, -1, 0, -1, 0, 'Awarded to victors of the Brawler\'s Guild. Use it to purchase Rumble Cards and other world-altering items at the Brawler\'s Gold Exchange vendor.', 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 0, 0, '', 0, 0, 0, 0, 0, 0); 24 | 25 | SET @GoID := 900000; 26 | SET @GoGUID := 3000000; 27 | 28 | /* 29 | -- Need to add LOS for Door type GOs in the core in order for this to work 30 | -- arena pillars 31 | DELETE FROM `gameobject_template` WHERE (`entry` = @GoID-1); 32 | INSERT INTO `gameobject_template` (`entry`, `type`, `displayId`, `name`, `IconName`, `castBarCaption`, `unk1`, `size`, `Data0`, `Data1`, `Data2`, `Data3`, `Data4`, `Data5`, `Data6`, `Data7`, `Data8`, `Data9`, `Data10`, `Data11`, `Data12`, `Data13`, `Data14`, `Data15`, `Data16`, `Data17`, `Data18`, `Data19`, `Data20`, `Data21`, `Data22`, `Data23`, `AIName`, `ScriptName`, `VerifiedBuild`) VALUES 33 | (@GoGUID-1, 5, 249, 'Arena Pillar', '', '', '', 2.5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', '', 0); 34 | */ 35 | 36 | -- Boulder 37 | DELETE FROM `gameobject_template` WHERE `entry` IN (@GoID+0, @GoID+1); 38 | INSERT INTO `gameobject_template` (`entry`, `type`, `displayId`, `name`, `IconName`, `castBarCaption`, `unk1`, `size`, `Data0`, `Data1`, `Data2`, `Data3`, `Data4`, `Data5`, `Data6`, `Data7`, `Data8`, `Data9`, `Data10`, `Data11`, `Data12`, `Data13`, `Data14`, `Data15`, `Data16`, `Data17`, `Data18`, `Data19`, `Data20`, `Data21`, `Data22`, `Data23`, `AIName`, `ScriptName`, `VerifiedBuild`) VALUES 39 | (@GoID+0, 5, 7749, 'Boulder', '', '', '', 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', '', 0), 40 | (@GoID+1, 5, 8187, 'Boulder', '', '', '', 0.6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', '', 0); 41 | DELETE FROM `gameobject` WHERE `id` IN (@GoID+0, @GoID+1); 42 | INSERT INTO `gameobject` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`, `ScriptName`, `VerifiedBuild`, `Comment`) VALUES 43 | (@GoGUID+0, @GoID+0, 1, 0, 0, 1, 1, 2200.75, -4746.16, 55.1381, 0.785397, 0, 0, -0.382683, -0.92388, 0, 0, 1, '', NULL, NULL), 44 | (@GoGUID+1, @GoID+0, 1, 0, 0, 1, 1, 2170.73, -4795.2, 55.1375, 4.47677, 0, 0, -0.785317, 0.619094, 300, 0, 1, '', NULL, NULL), 45 | (@GoGUID+2, @GoID+1, 1, 0, 0, 1, 1, 2169.29, -4791.9, 62.3471, 4.54746, 0, 0, -0.76295, 0.646457, 0, 0, 1, '', NULL, NULL), 46 | (@GoGUID+3, @GoID+1, 1, 0, 0, 1, 1, 2199.4, -4745.35, 62.6408, 4.22151, 0, 0, -0.857729, 0.514102, 0, 0, 1, '', NULL, NULL); 47 | 48 | -- Heat Pillar 900002 49 | DELETE FROM `gameobject_template` WHERE (`entry` = @GoID+2); 50 | INSERT INTO `gameobject_template` (`entry`, `type`, `displayId`, `name`, `IconName`, `castBarCaption`, `unk1`, `size`, `Data0`, `Data1`, `Data2`, `Data3`, `Data4`, `Data5`, `Data6`, `Data7`, `Data8`, `Data9`, `Data10`, `Data11`, `Data12`, `Data13`, `Data14`, `Data15`, `Data16`, `Data17`, `Data18`, `Data19`, `Data20`, `Data21`, `Data22`, `Data23`, `AIName`, `ScriptName`, `VerifiedBuild`) VALUES 51 | (@GoID+2, 5, 235, 'Heat Pillar', '', '', '', 0.25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'SmartGameObjectAI', '', 0); 52 | DELETE FROM `smart_scripts` WHERE (`source_type` = 1 AND `entryorguid` = @GoID+2); 53 | INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `event_param6`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES 54 | (@GoID+2, 1, 0, 1, 60, 0, 100, 0, 2000, 2000, 2000, 2000, 0, 0, 75, 62055, 0, 0, 0, 0, 0, 9, 200138, 0, 3, 1, 0, 0, 0, 0, 'Heat Pillar - On Update - Add Aura \'Brittle Skin\''), 55 | (@GoID+2, 1, 1, 0, 61, 0, 100, 0, 0, 0, 0, 0, 0, 0, 75, 16791, 0, 0, 0, 0, 0, 9, 200138, 0, 3, 1, 0, 0, 0, 0, 'Heat Pillar - On Update - Add Aura \'Furious Anger\''); 56 | 57 | -- VIP Teleporter 58 | DELETE FROM `gameobject_template` WHERE (`entry` = @GoID+3); 59 | INSERT INTO `gameobject_template` (`entry`, `type`, `displayId`, `name`, `IconName`, `castBarCaption`, `unk1`, `size`, `Data0`, `Data1`, `Data2`, `Data3`, `Data4`, `Data5`, `Data6`, `Data7`, `Data8`, `Data9`, `Data10`, `Data11`, `Data12`, `Data13`, `Data14`, `Data15`, `Data16`, `Data17`, `Data18`, `Data19`, `Data20`, `Data21`, `Data22`, `Data23`, `AIName`, `ScriptName`, `VerifiedBuild`) VALUES 60 | (@GoID+3, 10, 2047, 'VIP Teleporter', '', '', '', 0.75, 0, 0, 0, 0, 0, 0, 1500, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 'go_brawlers_vip', 0); 61 | 62 | DELETE FROM `gameobject` WHERE (`id` = @GoID+3); 63 | INSERT INTO `gameobject` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`, `ScriptName`, `VerifiedBuild`, `Comment`) VALUES 64 | (@GoGUID+4, @GoID+3, 1, 0, 0, 1, 1, 2203.38, -4795.52, 64.9979, 2.63108, 0, 0, -0.967599, -0.252491, 0, 0, 1, '', NULL, "Arena"), 65 | (@GoGUID+5, @GoID+3, 1, 0, 0, 1, 1, -11342.1, -4760.08, 6.0295, 3.20599, 0, 0, -0.999482, 0.0321921, 0, 0, 1, '', NULL, "South Seas"); 66 | 67 | -------------------------------------------------------------------------------- /data/sql/db-world/NPCs.sql: -------------------------------------------------------------------------------- 1 | SET @ID := 200000; 2 | SET @GUID := 3000000; 3 | 4 | -- Helix (Main) 5 | DELETE FROM `creature_template` WHERE (`entry` = @ID+0); 6 | INSERT INTO `creature_template` (`entry`, `difficulty_entry_1`, `difficulty_entry_2`, `difficulty_entry_3`, `KillCredit1`, `KillCredit2`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `exp`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `speed_swim`, `speed_flight`, `detection_range`, `scale`, `rank`, `dmgschool`, `DamageModifier`, `BaseAttackTime`, `RangeAttackTime`, `BaseVariance`, `RangeVariance`, `unit_class`, `unit_flags`, `unit_flags2`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `PetSpellDataId`, `VehicleId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `HoverHeight`, `HealthModifier`, `ManaModifier`, `ArmorModifier`, `ExperienceModifier`, `RacialLeader`, `movementId`, `RegenHealth`, `mechanic_immune_mask`, `spell_school_immune_mask`, `flags_extra`, `ScriptName`, `VerifiedBuild`) VALUES 7 | (@ID+0, 0, 0, 0, 0, 0, 'Helix', 'Brawler\'s Guild', '', 0, 80, 80, 0, 35, 3, 1, 1, 1, 1, 1, 2, 3, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 0, '', 0, 1, 400, 1, 1, 1, 0, 0, 1, 0, 0, 2, 'npc_brawlers_guild', 0); 8 | 9 | DELETE FROM `creature_template_model` WHERE `CreatureID` = @ID+0; 10 | INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, `DisplayScale`, `Probability`, `VerifiedBuild`) VALUES 11 | (@ID+0, 0, 30076, 1, 1, 0); 12 | 13 | DELETE FROM `creature` WHERE (`id1` = @ID+0); 14 | INSERT INTO `creature` (`guid`, `id1`, `id2`, `id3`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`, `CreateObject`, `Comment`) VALUES 15 | (@GUID+0, @ID+0, 0, 0, 1, 0, 0, 1, 1, 0, 2204.28, -4781.21, 65.8329, 2.55355, 120, 0, 0, 1, 0, 0, 0, 0, 0, '', 0, 0, NULL); 16 | 17 | 18 | -- Selena (Vendor) 19 | DELETE FROM `creature_template` WHERE (`entry` = @ID+1); 20 | INSERT INTO `creature_template` (`entry`, `difficulty_entry_1`, `difficulty_entry_2`, `difficulty_entry_3`, `KillCredit1`, `KillCredit2`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `exp`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `speed_swim`, `speed_flight`, `detection_range`, `scale`, `rank`, `dmgschool`, `DamageModifier`, `BaseAttackTime`, `RangeAttackTime`, `BaseVariance`, `RangeVariance`, `unit_class`, `unit_flags`, `unit_flags2`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `PetSpellDataId`, `VehicleId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `HoverHeight`, `HealthModifier`, `ManaModifier`, `ArmorModifier`, `ExperienceModifier`, `RacialLeader`, `movementId`, `RegenHealth`, `mechanic_immune_mask`, `spell_school_immune_mask`, `flags_extra`, `ScriptName`, `VerifiedBuild`) VALUES 21 | (@ID+1, 0, 0, 0, 0, 0, 'Selena', 'Brawler\'s Guild', 'Speak', 0, 80, 80, 0, 35, 129, 1, 1, 1, 1, 1, 2, 3, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, '', 0, 1, 400, 1, 1, 1, 0, 0, 1, 0, 0, 2, 'npc_brawlers_vendor', 0); 22 | 23 | DELETE FROM `npc_vendor` WHERE (`entry` = @ID+1); 24 | INSERT INTO `npc_vendor` (`entry`, `slot`, `item`, `maxcount`, `incrtime`, `ExtendedCost`, `VerifiedBuild`) VALUES 25 | (@ID+1, 0, 33445, 0, 0, 0, 0), 26 | (@ID+1, 0, 40202, 0, 0, 0, 0); 27 | 28 | DELETE FROM `creature_template_model` WHERE `CreatureID` = @ID+1; 29 | INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, `DisplayScale`, `Probability`, `VerifiedBuild`) VALUES 30 | (@ID+1, 0, 10746, 1, 1, 0); 31 | 32 | DELETE FROM `creature` WHERE (`id1` = @ID+1); 33 | INSERT INTO `creature` (`guid`, `id1`, `id2`, `id3`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`, `CreateObject`, `Comment`) VALUES 34 | (@GUID+1, @ID+1, 0, 0, 1, 0, 0, 1, 1, 0, 2214.9, -4772.83, 64.9912, 4.01499, 300, 0, 0, 2136800, 0, 0, 0, 0, 0, '', NULL, 0, NULL); 35 | 36 | 37 | -- El Rato (Get out of Arena) 38 | DELETE FROM `creature_template` WHERE (`entry` = @ID+2); 39 | INSERT INTO `creature_template` (`entry`, `difficulty_entry_1`, `difficulty_entry_2`, `difficulty_entry_3`, `KillCredit1`, `KillCredit2`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `exp`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `speed_swim`, `speed_flight`, `detection_range`, `scale`, `rank`, `dmgschool`, `DamageModifier`, `BaseAttackTime`, `RangeAttackTime`, `BaseVariance`, `RangeVariance`, `unit_class`, `unit_flags`, `unit_flags2`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `PetSpellDataId`, `VehicleId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `HoverHeight`, `HealthModifier`, `ManaModifier`, `ArmorModifier`, `ExperienceModifier`, `RacialLeader`, `movementId`, `RegenHealth`, `mechanic_immune_mask`, `spell_school_immune_mask`, `flags_extra`, `ScriptName`, `VerifiedBuild`) VALUES 40 | (@ID+2, 0, 0, 0, 0, 0, 'El Rato', 'Brawler\'s Guild', '', 0, 80, 80, 0, 35, 1, 1, 1, 1, 1, 1, 3, 3, 0, 1, 0, 0, 0, 0, 1, 768, 0, 0, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 0, 0, 0, '', 0, 1, 400, 1, 1, 1, 0, 0, 1, 0, 0, 2, 'npc_anti_stuck', 0); 41 | 42 | DELETE FROM `creature_template_model` WHERE `CreatureID` = @ID+2; 43 | INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, `DisplayScale`, `Probability`, `VerifiedBuild`) VALUES 44 | (@ID+2, 0, 1141, 1, 1, 0); 45 | 46 | DELETE FROM `creature` WHERE (`id1` = @ID+2); 47 | INSERT INTO `creature` (`guid`, `id1`, `id2`, `id3`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`, `CreateObject`, `Comment`) VALUES 48 | (@GUID+2, @ID+2, 0, 0, 1, 0, 0, 1, 1, 0, 2200.73, -4769.51, 55.1391, 2.72533, 300, 0, 0, 2136800, 0, 0, 0, 0, 0, '', NULL, 0, NULL); 49 | 50 | 51 | -- Brawler's Medic (AoE Resurrect) 52 | DELETE FROM `creature_template` WHERE (`entry` = @ID+3); 53 | INSERT INTO `creature_template` (`entry`, `difficulty_entry_1`, `difficulty_entry_2`, `difficulty_entry_3`, `KillCredit1`, `KillCredit2`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `exp`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `speed_swim`, `speed_flight`, `detection_range`, `scale`, `rank`, `dmgschool`, `DamageModifier`, `BaseAttackTime`, `RangeAttackTime`, `BaseVariance`, `RangeVariance`, `unit_class`, `unit_flags`, `unit_flags2`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `PetSpellDataId`, `VehicleId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `HoverHeight`, `HealthModifier`, `ManaModifier`, `ArmorModifier`, `ExperienceModifier`, `RacialLeader`, `movementId`, `RegenHealth`, `mechanic_immune_mask`, `spell_school_immune_mask`, `flags_extra`, `ScriptName`, `VerifiedBuild`) VALUES 54 | (@ID+3, 0, 0, 0, 0, 0, 'Brawler\'s Medic', '', NULL, 0, 20, 20, 0, 35, 0, 1.2, 1.14286, 1, 1, 20, 1, 0, 0, 1, 2000, 2000, 1, 1, 1, 768, 2048, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'SmartAI', 0, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 2, '', 12340); 55 | 56 | DELETE FROM `creature_template_model` WHERE `CreatureID` = @ID+3; 57 | INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, `DisplayScale`, `Probability`, `VerifiedBuild`) VALUES 58 | (@ID+3, 0, 3943, 1, 1, 0); 59 | 60 | DELETE FROM `creature` WHERE (`id1` = @ID+3); 61 | INSERT INTO `creature` (`guid`, `id1`, `id2`, `id3`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`, `CreateObject`, `Comment`) VALUES 62 | (@GUID+3, @ID+3, 0, 0, 1, 0, 0, 1, 1, 0, 2151.15, -4748.14, 67.73, 5.768, 300, 0, 0, 484, 0, 0, 0, 0, 0, '', NULL, 0, NULL); 63 | 64 | DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = @ID+3); 65 | INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `event_param6`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES 66 | (@ID+3, 0, 0, 0, 60, 0, 100, 0, 30000, 30000, 30000, 30000, 0, 0, 11, 200003, 2, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Brawler\'s Medic - On Update - Cast \'Mass Resurrect\''); 67 | 68 | 69 | -- Arena Spectator 70 | DELETE FROM `creature_template` WHERE (`entry` = @ID+4); 71 | INSERT INTO `creature_template` (`entry`, `difficulty_entry_1`, `difficulty_entry_2`, `difficulty_entry_3`, `KillCredit1`, `KillCredit2`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `exp`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `speed_swim`, `speed_flight`, `detection_range`, `scale`, `rank`, `dmgschool`, `DamageModifier`, `BaseAttackTime`, `RangeAttackTime`, `BaseVariance`, `RangeVariance`, `unit_class`, `unit_flags`, `unit_flags2`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `PetSpellDataId`, `VehicleId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `HoverHeight`, `HealthModifier`, `ManaModifier`, `ArmorModifier`, `ExperienceModifier`, `RacialLeader`, `movementId`, `RegenHealth`, `mechanic_immune_mask`, `spell_school_immune_mask`, `flags_extra`, `ScriptName`, `VerifiedBuild`) VALUES 72 | (@ID+4, 0, 0, 0, 0, 0, 'Arena Spectator', NULL, NULL, 0, 70, 80, 0, 35, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 2000, 2000, 1, 1, 2, 0, 2048, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'SmartAI', 0, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 2, '', 12340); 73 | 74 | DELETE FROM `creature_template_model` WHERE `CreatureID` = @ID+4; 75 | INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, `DisplayScale`, `Probability`, `VerifiedBuild`) VALUES 76 | (@ID+4, 0, 9069, 1, 1, 0), 77 | (@ID+4, 1, 9070, 1, 1, 0), 78 | (@ID+4, 2, 9071, 1, 1, 0), 79 | (@ID+4, 3, 9072, 1, 1, 0); 80 | 81 | DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = @ID+4); 82 | INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `event_param6`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES 83 | (@ID+4, 0, 0, 0, 11, 0, 50, 0, 0, 0, 0, 0, 0, 0, 90, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Arena Spectator - On Respawn - Set Flag Standstate Sit Down'), 84 | (@ID+4, 0, 1, 2, 1, 0, 50, 0, 10000, 30000, 10000, 30000, 0, 0, 10, 22, 4, 5, 11, 21, 25, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Arena Spectator - Out of Combat - Play Random Emote'), 85 | (@ID+4, 0, 2, 0, 61, 0, 50, 0, 0, 0, 0, 0, 0, 0, 91, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Arena Spectator - Out of Combat - Remove FlagStandstate Sit Down'), 86 | (@ID+4, 0, 3, 0, 1, 0, 50, 0, 30000, 50000, 30000, 50000, 0, 0, 90, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Arena Spectator - Out of Combat - Set Flag Standstate Sit Down'); 87 | 88 | DELETE FROM `creature` WHERE (`id1` = @ID+4); 89 | INSERT INTO `creature` (`guid`, `id1`, `id2`, `id3`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`, `CreateObject`, `Comment`) VALUES 90 | (@GUID+4, @ID+4, 0, 0, 1, 0, 0, 1, 1, 0, 2187.68, -4799.1, 69.2771, 1.83551, 300, 0, 0, 4042, 3809, 0, 0, 0, 0, '', NULL, 0, NULL), 91 | (@GUID+5, @ID+4, 0, 0, 1, 0, 0, 1, 1, 0, 2191.09, -4801.61, 71.7994, 1.9219, 300, 0, 0, 4042, 3809, 0, 0, 0, 0, '', NULL, 0, NULL), 92 | (@GUID+6, @ID+4, 0, 0, 1, 0, 0, 1, 1, 0, 2195.24, -4800.17, 71.9483, 1.92976, 300, 0, 0, 3722, 3561, 0, 0, 0, 0, '', NULL, 0, NULL), 93 | (@GUID+7, @ID+4, 0, 0, 1, 0, 0, 1, 1, 0, 2195.05, -4796.63, 69.5951, 1.96903, 300, 0, 0, 3422, 3309, 0, 0, 0, 0, '', NULL, 0, NULL), 94 | (@GUID+8, @ID+4, 0, 0, 1, 0, 0, 1, 1, 0, 2153.2, -4791.66, 70.2852, 0.790929, 300, 0, 0, 3240, 3155, 0, 0, 0, 0, '', NULL, 0, NULL), 95 | (@GUID+9, @ID+4, 0, 0, 1, 0, 0, 1, 1, 0, 2145.96, -4786.94, 72.0682, 0.790929, 300, 0, 0, 3722, 3561, 0, 0, 0, 0, '', NULL, 0, NULL), 96 | (@GUID+10, @ID+4, 0, 0, 1, 0, 0, 1, 1, 0, 2138.08, -4774.16, 72.8311, 0.115486, 300, 0, 0, 4155, 3893, 0, 0, 0, 0, '', NULL, 0, NULL), 97 | (@GUID+11, @ID+4, 0, 0, 1, 0, 0, 1, 1, 0, 2148.36, -4741.24, 71.4997, 5.72323, 300, 0, 0, 4155, 3893, 0, 0, 0, 0, '', NULL, 0, NULL), 98 | (@GUID+12, @ID+4, 0, 0, 1, 0, 0, 1, 1, 0, 2142, -4756.69, 70.2852, 5.99026, 300, 0, 0, 3933, 3725, 0, 0, 0, 0, '', NULL, 0, NULL), 99 | (@GUID+13, @ID+4, 0, 0, 1, 0, 0, 1, 1, 0, 2174.18, -4723.97, 72.8293, 4.67865, 300, 0, 0, 3933, 3725, 0, 0, 0, 0, '', NULL, 0, NULL), 100 | (@GUID+14, @ID+4, 0, 0, 1, 0, 0, 1, 1, 0, 2184.07, -4727.8, 70.8666, 4.45481, 300, 0, 0, 3240, 3155, 0, 0, 0, 0, '', NULL, 0, NULL), 101 | (@GUID+15, @ID+4, 0, 0, 1, 0, 0, 1, 1, 0, 2185.48, -4728.08, 70.9617, 4.3959, 300, 0, 0, 3519, 3387, 0, 0, 0, 0, '', NULL, 0, NULL), 102 | (@GUID+16, @ID+4, 0, 0, 1, 0, 0, 1, 1, 0, 2209.51, -4743.88, 70.2847, 3.8422, 300, 0, 0, 3519, 3387, 0, 0, 0, 0, '', NULL, 0, NULL), 103 | (@GUID+17, @ID+4, 0, 0, 1, 0, 0, 1, 1, 0, 2212.99, -4758.6, 69.1504, 3.29635, 300, 0, 0, 3933, 3725, 0, 0, 0, 0, '', NULL, 0, NULL), 104 | (@GUID+18, @ID+4, 0, 0, 1, 0, 0, 1, 1, 0, 2217.33, -4767.35, 71.7272, 3.15105, 300, 0, 0, 4274, 3994, 0, 0, 0, 0, '', NULL, 0, NULL); 105 | 106 | 107 | -- Arena Spectator 2 108 | DELETE FROM `creature_template` WHERE (`entry` = @ID+5); 109 | INSERT INTO `creature_template` (`entry`, `difficulty_entry_1`, `difficulty_entry_2`, `difficulty_entry_3`, `KillCredit1`, `KillCredit2`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `exp`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `speed_swim`, `speed_flight`, `detection_range`, `scale`, `rank`, `dmgschool`, `DamageModifier`, `BaseAttackTime`, `RangeAttackTime`, `BaseVariance`, `RangeVariance`, `unit_class`, `unit_flags`, `unit_flags2`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `PetSpellDataId`, `VehicleId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `HoverHeight`, `HealthModifier`, `ManaModifier`, `ArmorModifier`, `ExperienceModifier`, `RacialLeader`, `movementId`, `RegenHealth`, `mechanic_immune_mask`, `spell_school_immune_mask`, `flags_extra`, `ScriptName`, `VerifiedBuild`) VALUES 110 | (@ID+5, 0, 0, 0, 0, 0, 'Arena Spectator', NULL, NULL, 0, 70, 80, 0, 35, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 2000, 2000, 1, 1, 2, 0, 2048, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 'SmartAI', 0, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 2, '', 12340); 111 | 112 | DELETE FROM `creature_template_model` WHERE `CreatureID` = @ID+5; 113 | INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, `DisplayScale`, `Probability`, `VerifiedBuild`) VALUES 114 | (@ID+5, 0, 29572, 1, 1, 0), 115 | (@ID+5, 1, 29579, 1, 1, 0), 116 | (@ID+5, 2, 25431, 1, 1, 0), 117 | (@ID+5, 3, 2860, 1, 1, 0); 118 | 119 | DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = @ID+5); 120 | INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `event_param6`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES 121 | (@ID+5, 0, 0, 0, 11, 0, 50, 0, 0, 0, 0, 0, 0, 0, 90, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Arena Spectator - On Respawn - Set Flag Standstate Sit Down'), 122 | (@ID+5, 0, 1, 2, 1, 0, 50, 0, 10000, 30000, 10000, 30000, 0, 0, 10, 22, 4, 5, 11, 21, 25, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Arena Spectator - Out of Combat - Play Random Emote'), 123 | (@ID+5, 0, 2, 0, 61, 0, 50, 0, 0, 0, 0, 0, 0, 0, 91, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Arena Spectator - Out of Combat - Remove FlagStandstate Sit Down'), 124 | (@ID+5, 0, 3, 0, 1, 0, 50, 0, 30000, 50000, 30000, 50000, 0, 0, 90, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Arena Spectator - Out of Combat - Set Flag Standstate Sit Down'); 125 | 126 | DELETE FROM `creature` WHERE (`id1` = @ID+5); 127 | INSERT INTO `creature` (`guid`, `id1`, `id2`, `id3`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`, `CreateObject`, `Comment`) VALUES 128 | (@GUID+19, @ID+5, 0, 0, 1, 0, 0, 1, 1, 0, 2190.74, -4800.09, 70.7193, 2.03971, 300, 0, 0, 3240, 3155, 0, 0, 0, 0, '', NULL, 0, NULL), 129 | (@GUID+20, @ID+5, 0, 0, 1, 0, 0, 1, 1, 0, 2165.96, -4800.58, 70.2852, 1.2229, 300, 0, 0, 4155, 3893, 0, 0, 0, 0, '', NULL, 0, NULL), 130 | (@GUID+21, @ID+5, 0, 0, 1, 0, 0, 1, 1, 0, 2158.61, -4800.81, 72.8294, 1.01869, 300, 0, 0, 3422, 3309, 0, 0, 0, 0, '', NULL, 0, NULL), 131 | (@GUID+22, @ID+5, 0, 0, 1, 0, 0, 1, 1, 0, 2150.26, -4791.61, 71.8545, 0.73595, 300, 0, 0, 3519, 3387, 0, 0, 0, 0, '', NULL, 0, NULL), 132 | (@GUID+23, @ID+5, 0, 0, 1, 0, 0, 1, 1, 0, 2150.21, -4786.92, 69.7826, 0.767366, 300, 0, 0, 4274, 3994, 0, 0, 0, 0, '', NULL, 0, NULL), 133 | (@GUID+24, @ID+5, 0, 0, 1, 0, 0, 1, 1, 0, 2143.42, -4777.62, 70.2849, 0.374666, 300, 0, 0, 3422, 3309, 0, 0, 0, 0, '', NULL, 0, NULL), 134 | (@GUID+25, @ID+5, 0, 0, 1, 0, 0, 1, 1, 0, 2143.52, -4747.77, 71.9087, 5.80962, 300, 0, 0, 3519, 3387, 0, 0, 0, 0, '', NULL, 0, NULL), 135 | (@GUID+26, @ID+5, 0, 0, 1, 0, 0, 1, 1, 0, 2147.19, -4746.18, 70.2849, 5.80962, 300, 0, 0, 3722, 3561, 0, 0, 0, 0, '', NULL, 0, NULL), 136 | (@GUID+27, @ID+5, 0, 0, 1, 0, 0, 1, 1, 0, 2150.17, -4743.57, 69.564, 5.80962, 300, 0, 0, 3422, 3309, 0, 0, 0, 0, '', NULL, 0, NULL), 137 | (@GUID+28, @ID+5, 0, 0, 1, 0, 0, 1, 1, 0, 2158.69, -4728.57, 72.8306, 5.05564, 300, 0, 0, 3240, 3155, 0, 0, 0, 0, '', NULL, 0, NULL), 138 | (@GUID+29, @ID+5, 0, 0, 1, 0, 0, 1, 1, 0, 2167.72, -4729.34, 70.2861, 4.98888, 300, 0, 0, 3825, 3643, 0, 0, 0, 0, '', NULL, 0, NULL), 139 | (@GUID+30, @ID+5, 0, 0, 1, 0, 0, 1, 1, 0, 2190.43, -4731.62, 69.5029, 4.52549, 300, 0, 0, 4155, 3893, 0, 0, 0, 0, '', NULL, 0, NULL), 140 | (@GUID+31, @ID+5, 0, 0, 1, 0, 0, 1, 1, 0, 2203.03, -4732.09, 72.8298, 4.12494, 300, 0, 0, 4274, 3994, 0, 0, 0, 0, '', NULL, 0, NULL), 141 | (@GUID+32, @ID+5, 0, 0, 1, 0, 0, 1, 1, 0, 2215.83, -4747.27, 72.8298, 3.59087, 300, 0, 0, 3519, 3387, 0, 0, 0, 0, '', NULL, 0, NULL), 142 | (@GUID+33, @ID+5, 0, 0, 1, 0, 0, 1, 1, 0, 2213.75, -4762.85, 69.425, 3.33954, 300, 0, 0, 3519, 3387, 0, 0, 0, 0, '', NULL, 0, NULL); 143 | 144 | 145 | -- Goblin Firework Tonk 146 | DELETE FROM `creature_template` WHERE (`entry` = @ID+6); 147 | INSERT INTO `creature_template` (`entry`, `difficulty_entry_1`, `difficulty_entry_2`, `difficulty_entry_3`, `KillCredit1`, `KillCredit2`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `exp`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `speed_swim`, `speed_flight`, `detection_range`, `scale`, `rank`, `dmgschool`, `DamageModifier`, `BaseAttackTime`, `RangeAttackTime`, `BaseVariance`, `RangeVariance`, `unit_class`, `unit_flags`, `unit_flags2`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `PetSpellDataId`, `VehicleId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `HoverHeight`, `HealthModifier`, `ManaModifier`, `ArmorModifier`, `ExperienceModifier`, `RacialLeader`, `movementId`, `RegenHealth`, `mechanic_immune_mask`, `spell_school_immune_mask`, `flags_extra`, `ScriptName`, `VerifiedBuild`) VALUES 148 | (@ID+6, 0, 0, 0, 0, 0, 'Goblin Firework Tonk', '', NULL, 0, 1, 1, 0, 35, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 2000, 2000, 1, 1, 2, 768, 0, 0, 0, 0, 0, 0, 0, 9, 1048576, 0, 0, 0, 0, 0, 0, 0, 'SmartAI', 0, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 2, '', 12340); 149 | 150 | DELETE FROM `creature_template_model` WHERE `CreatureID` = @ID+6; 151 | INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, `DisplayScale`, `Probability`, `VerifiedBuild`) VALUES 152 | (@ID+6, 0, 15381, 1, 1, 0); 153 | 154 | DELETE FROM `creature` WHERE (`id1` = @ID+6); 155 | INSERT INTO `creature` (`guid`, `id1`, `id2`, `id3`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`, `CreateObject`, `Comment`) VALUES 156 | (@GUID+34, @ID+6, 0, 0, 1, 0, 0, 1, 1, 0, 2203.25, -4762.87, 60.7895, 3.27511, 300, 0, 0, 41, 60, 0, 0, 0, 0, '', NULL, 0, NULL), 157 | (@GUID+35, @ID+6, 0, 0, 1, 0, 0, 1, 1, 0, 2188.07, -4787.94, 60.7898, 1.95957, 300, 0, 0, 41, 60, 0, 0, 0, 0, '', NULL, 0, NULL), 158 | (@GUID+36, @ID+6, 0, 0, 1, 0, 0, 1, 1, 0, 2184.3, -4740.96, 60.7894, 4.48462, 300, 0, 0, 41, 60, 0, 0, 0, 0, '', NULL, 0, NULL), 159 | (@GUID+37, @ID+6, 0, 0, 1, 0, 0, 1, 1, 0, 2157.35, -4752.09, 60.7901, 5.72555, 300, 0, 0, 41, 60, 0, 0, 0, 0, '', NULL, 0, NULL), 160 | (@GUID+38, @ID+6, 0, 0, 1, 0, 0, 1, 1, 0, 2159.7, -4781.09, 60.7898, 0.753985, 300, 0, 0, 41, 60, 0, 0, 0, 0, '', NULL, 0, NULL); 161 | 162 | DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = @ID+6); 163 | INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `event_param6`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES 164 | (@ID+6, 0, 0, 0, 38, 0, 100, 0, 1, 1, 0, 0, 0, 0, 11, 11543, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 'Goblin Firework Tonk - On Data Set 1 1 - Cast \'Red, White and Blue Firework\''); 165 | 166 | 167 | -- Arena Annnouncer 168 | DELETE FROM `creature_template` WHERE (`entry` = @ID+7); 169 | INSERT INTO `creature_template` (`entry`, `difficulty_entry_1`, `difficulty_entry_2`, `difficulty_entry_3`, `KillCredit1`, `KillCredit2`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `exp`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `speed_swim`, `speed_flight`, `detection_range`, `scale`, `rank`, `dmgschool`, `DamageModifier`, `BaseAttackTime`, `RangeAttackTime`, `BaseVariance`, `RangeVariance`, `unit_class`, `unit_flags`, `unit_flags2`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `PetSpellDataId`, `VehicleId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `HoverHeight`, `HealthModifier`, `ManaModifier`, `ArmorModifier`, `ExperienceModifier`, `RacialLeader`, `movementId`, `RegenHealth`, `mechanic_immune_mask`, `spell_school_immune_mask`, `flags_extra`, `ScriptName`, `VerifiedBuild`) VALUES 170 | (@ID+7, 0, 0, 0, 0, 0, 'Jesse', '', NULL, 0, 1, 1, 0, 35, 0, 1, 1, 1, 1, 1, 1.5, 0, 0, 1, 2000, 2000, 1, 1, 1, 33554432, 0, 0, 0, 0, 0, 0, 0, 9, 1048576, 0, 0, 0, 0, 0, 0, 0, '', 0, 1, 1, 1, 1, 1, 0, 100, 1, 0, 0, 2, 'npc_arena_announcer', 12340); 171 | 172 | DELETE FROM `creature_template_model` WHERE `CreatureID` = @ID+7; 173 | INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, `DisplayScale`, `Probability`, `VerifiedBuild`) VALUES 174 | (@ID+7, 0, 17192, 1, 1, 0); 175 | 176 | DELETE FROM `creature_template_addon` WHERE (`entry` = @ID+7); 177 | INSERT INTO `creature_template_addon` (`entry`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `visibilityDistanceType`, `auras`) VALUES 178 | (@ID+7, @ID+7*10, 0, 0, 0, 0, 0, ''); 179 | 180 | DELETE FROM `creature_template_movement` WHERE (`CreatureId` = @ID+7); 181 | INSERT INTO `creature_template_movement` (`CreatureId`, `Ground`, `Swim`, `Flight`, `Rooted`, `Chase`, `Random`, `InteractionPauseTimer`) VALUES 182 | (@ID+7, 0, 0, 2, 0, 0, 0, 0); 183 | 184 | DELETE FROM `creature` WHERE (`id1` = @ID+7); 185 | INSERT INTO `creature` (`guid`, `id1`, `id2`, `id3`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`, `CreateObject`, `Comment`) VALUES 186 | (@GUID+39, @ID+7, 0, 0, 1, 0, 0, 1, 1, 0, 2197.32, -4766.33, 75, 2.05853, 120, 0, 0, 1, 0, 2, 0, 0, 0, '', 0, 0, NULL); 187 | 188 | DELETE FROM `waypoint_data` WHERE `id` = @ID+7*10; 189 | INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`, `move_type`, `action`, `action_chance`, `wpguid`) VALUES 190 | (@ID+7*10, 1, 2197.32, -4766.33, 75, 2.05853, 0, 0, 0, 100, 0), 191 | (@ID+7*10, 2, 2184.99, -4747.26, 75, 2.8832, 0, 0, 0, 100, 0), 192 | (@ID+7*10, 3, 2162.1, -4753.4, 75, 4.06915, 0, 0, 0, 100, 0), 193 | (@ID+7*10, 4, 2163.26, -4777.66, 75, 5.41925, 0, 0, 0, 100, 0), 194 | (@ID+7*10, 5, 2186, -4784.54, 75, 0.56549, 0, 0, 0, 100, 0); 195 | 196 | -- Chip (Gambler) 197 | DELETE FROM `creature_template` WHERE (`entry` = @ID+8); 198 | INSERT INTO `creature_template` (`entry`, `difficulty_entry_1`, `difficulty_entry_2`, `difficulty_entry_3`, `KillCredit1`, `KillCredit2`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `exp`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `speed_swim`, `speed_flight`, `detection_range`, `scale`, `rank`, `dmgschool`, `DamageModifier`, `BaseAttackTime`, `RangeAttackTime`, `BaseVariance`, `RangeVariance`, `unit_class`, `unit_flags`, `unit_flags2`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `PetSpellDataId`, `VehicleId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `HoverHeight`, `HealthModifier`, `ManaModifier`, `ArmorModifier`, `ExperienceModifier`, `RacialLeader`, `movementId`, `RegenHealth`, `mechanic_immune_mask`, `spell_school_immune_mask`, `flags_extra`, `ScriptName`, `VerifiedBuild`) VALUES 199 | (@ID+8, 0, 0, 0, 0, 0, 'Chip', 'The Gambler', NULL, 0, 1, 1, 0, 35, 1, 1, 1, 1, 1, 1, 1.5, 0, 0, 1, 2000, 2000, 1, 1, 1, 768, 32768, 0, 0, 0, 0, 0, 0, 9, 1048576, 0, 0, 0, 0, 0, 0, 0, '', 0, 1, 1, 1, 1, 1, 0, 100, 1, 0, 0, 2, 'npc_brawlers_gambler', 12340); 200 | 201 | DELETE FROM `creature_template_model` WHERE `CreatureID` = @ID+8; 202 | INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, `DisplayScale`, `Probability`, `VerifiedBuild`) VALUES 203 | (@ID+8, 0, 22525, 1, 1, 0); 204 | 205 | DELETE FROM `creature_template_addon` WHERE (`entry` = @ID+8); 206 | INSERT INTO `creature_template_addon` (`entry`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `visibilityDistanceType`, `auras`) VALUES 207 | (@ID+8, 0, 0, 0, 0, 0, 0, '51126'); 208 | 209 | DELETE FROM `creature` WHERE (`id1` = @ID+8); 210 | INSERT INTO `creature` (`guid`, `id1`, `id2`, `id3`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`, `CreateObject`, `Comment`) VALUES 211 | (@GUID+43, @ID+8, 0, 0, 1, 0, 0, 1, 1, 0, 2204.41, -4776.7, 74.2963, 2.7067, 300, 0, 0, 42, 0, 0, 0, 0, 0, '', NULL, 0, NULL); 212 | 213 | 214 | -- ### Trigger NPCS ### > @ID+20 215 | -- Player Healing Reduce (25%) 216 | DELETE FROM `creature_template` WHERE (`entry` = @ID+20); 217 | INSERT INTO `creature_template` (`entry`, `difficulty_entry_1`, `difficulty_entry_2`, `difficulty_entry_3`, `KillCredit1`, `KillCredit2`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `exp`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `speed_swim`, `speed_flight`, `detection_range`, `scale`, `rank`, `dmgschool`, `DamageModifier`, `BaseAttackTime`, `RangeAttackTime`, `BaseVariance`, `RangeVariance`, `unit_class`, `unit_flags`, `unit_flags2`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `PetSpellDataId`, `VehicleId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `HoverHeight`, `HealthModifier`, `ManaModifier`, `ArmorModifier`, `ExperienceModifier`, `RacialLeader`, `movementId`, `RegenHealth`, `mechanic_immune_mask`, `spell_school_immune_mask`, `flags_extra`, `ScriptName`, `VerifiedBuild`) VALUES 218 | (@ID+20, 0, 0, 0, 0, 0, 'Player Healing Reduce (25%)', '', '', 0, 1, 1, 0, 35, 0, 1, 1.14286, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 1, 768, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'SmartAI', 0, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 130, '', 0); 219 | 220 | DELETE FROM `creature_template_model` WHERE `CreatureID` = @ID+20; 221 | INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, `DisplayScale`, `Probability`, `VerifiedBuild`) VALUES 222 | (@ID+20, 0, 169, 1, 1, 0); 223 | 224 | DELETE FROM `creature` WHERE (`id1` = @ID+20); 225 | INSERT INTO `creature` (`guid`, `id1`, `id2`, `id3`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`, `CreateObject`, `Comment`) VALUES 226 | (@GUID+40, @ID+20, 0, 0, 1, 0, 0, 1, 1, 0, 2178.22, -4764.79, 55.1381, 1.12705, 300, 0, 0, 42, 0, 0, 0, 33554432, 0, '', NULL, 0, NULL); 227 | 228 | DELETE FROM `smart_scripts` WHERE (`source_type` = 0 AND `entryorguid` = @ID+20); 229 | INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `event_param5`, `event_param6`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_param4`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES 230 | (@ID+20, 0, 0, 0, 101, 0, 100, 0, 1, 25, 10000, 10000, 10000, 0, 11, 200002, 2, 0, 0, 0, 0, 201, 200002, 1, 25, 0, 0, 0, 0, 0, 'Player Healing Reduce (25%) - On 1 or More Players in Range - Add Aura \'=25% healing\''); 231 | 232 | -- Other Players Detector 233 | DELETE FROM `creature_template` WHERE (`entry` = @ID+21); 234 | INSERT INTO `creature_template` (`entry`, `difficulty_entry_1`, `difficulty_entry_2`, `difficulty_entry_3`, `KillCredit1`, `KillCredit2`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `exp`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `speed_swim`, `speed_flight`, `detection_range`, `scale`, `rank`, `dmgschool`, `DamageModifier`, `BaseAttackTime`, `RangeAttackTime`, `BaseVariance`, `RangeVariance`, `unit_class`, `unit_flags`, `unit_flags2`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `PetSpellDataId`, `VehicleId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `HoverHeight`, `HealthModifier`, `ManaModifier`, `ArmorModifier`, `ExperienceModifier`, `RacialLeader`, `movementId`, `RegenHealth`, `mechanic_immune_mask`, `spell_school_immune_mask`, `flags_extra`, `ScriptName`, `VerifiedBuild`) VALUES 235 | (@ID+21, 0, 0, 0, 0, 0, 'Other Players Detector', '', '', 0, 1, 1, 0, 35, 0, 1, 1.14286, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 0, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 130, 'npc_other_players_detector', 0); 236 | 237 | DELETE FROM `creature_template_model` WHERE `CreatureID` = @ID+21; 238 | INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, `DisplayScale`, `Probability`, `VerifiedBuild`) VALUES 239 | (@ID+21, 0, 169, 1, 1, 0); 240 | 241 | DELETE FROM `creature` WHERE (`id1` = @ID+21); 242 | INSERT INTO `creature` (`guid`, `id1`, `id2`, `id3`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`, `CreateObject`, `Comment`) VALUES 243 | (@GUID+41, @ID+21, 0, 0, 1, 0, 0, 1, 1, 0, 2178.22, -4764.79, 55.1381, 0.942478, 300, 0, 0, 42, 0, 0, 0, 33554432, 0, '', NULL, 0, NULL); 244 | 245 | -- Player Detector (Logic NPC, npc_player_detector) 246 | DELETE FROM `creature_template` WHERE (`entry` = @ID+22); 247 | INSERT INTO `creature_template` (`entry`, `difficulty_entry_1`, `difficulty_entry_2`, `difficulty_entry_3`, `KillCredit1`, `KillCredit2`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `exp`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `speed_swim`, `speed_flight`, `detection_range`, `scale`, `rank`, `dmgschool`, `DamageModifier`, `BaseAttackTime`, `RangeAttackTime`, `BaseVariance`, `RangeVariance`, `unit_class`, `unit_flags`, `unit_flags2`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `PetSpellDataId`, `VehicleId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `HoverHeight`, `HealthModifier`, `ManaModifier`, `ArmorModifier`, `ExperienceModifier`, `RacialLeader`, `movementId`, `RegenHealth`, `mechanic_immune_mask`, `spell_school_immune_mask`, `flags_extra`, `ScriptName`, `VerifiedBuild`) VALUES 248 | (@ID+22, 0, 0, 0, 0, 0, 'Player Detector', '', '', 0, 1, 1, 0, 35, 0, 1, 1.14286, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 0, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 130, 'npc_player_detector', 0); 249 | 250 | DELETE FROM `creature_template_model` WHERE `CreatureID` = @ID+22; 251 | INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, `DisplayScale`, `Probability`, `VerifiedBuild`) VALUES 252 | (@ID+22, 0, 169, 1, 1, 0); 253 | 254 | DELETE FROM `creature` WHERE (`id1` = @ID+22); 255 | INSERT INTO `creature` (`guid`, `id1`, `id2`, `id3`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`, `CreateObject`, `Comment`) VALUES 256 | (@GUID+42, @ID+22, 0, 0, 1, 0, 0, 1, 1, 0, 2178.22, -4764.79, 55.1381, 4.1, 300, 0, 0, 42, 0, 0, 0, 33554432, 0, '', NULL, 0, NULL); 257 | -------------------------------------------------------------------------------- /data/sql/db-world/spell_dbc.sql: -------------------------------------------------------------------------------- 1 | SET @SpellID := 200000; 2 | 3 | -- Queue Cooldown 4 | DELETE FROM `spell_dbc` WHERE (`ID` = @SpellID+1); 5 | INSERT INTO `spell_dbc` (`ID`, `Category`, `DispelType`, `Mechanic`, `Attributes`, `AttributesEx`, `AttributesEx2`, `AttributesEx3`, `AttributesEx4`, `AttributesEx5`, `AttributesEx6`, `AttributesEx7`, `ShapeshiftMask`, `unk_320_2`, `ShapeshiftExclude`, `unk_320_3`, `Targets`, `TargetCreatureType`, `RequiresSpellFocus`, `FacingCasterFlags`, `CasterAuraState`, `TargetAuraState`, `ExcludeCasterAuraState`, `ExcludeTargetAuraState`, `CasterAuraSpell`, `TargetAuraSpell`, `ExcludeCasterAuraSpell`, `ExcludeTargetAuraSpell`, `CastingTimeIndex`, `RecoveryTime`, `CategoryRecoveryTime`, `InterruptFlags`, `AuraInterruptFlags`, `ChannelInterruptFlags`, `ProcTypeMask`, `ProcChance`, `ProcCharges`, `MaxLevel`, `BaseLevel`, `SpellLevel`, `DurationIndex`, `PowerType`, `ManaCost`, `ManaCostPerLevel`, `ManaPerSecond`, `ManaPerSecondPerLevel`, `RangeIndex`, `Speed`, `ModalNextSpell`, `CumulativeAura`, `Totem_1`, `Totem_2`, `Reagent_1`, `Reagent_2`, `Reagent_3`, `Reagent_4`, `Reagent_5`, `Reagent_6`, `Reagent_7`, `Reagent_8`, `ReagentCount_1`, `ReagentCount_2`, `ReagentCount_3`, `ReagentCount_4`, `ReagentCount_5`, `ReagentCount_6`, `ReagentCount_7`, `ReagentCount_8`, `EquippedItemClass`, `EquippedItemSubclass`, `EquippedItemInvTypes`, `Effect_1`, `Effect_2`, `Effect_3`, `EffectDieSides_1`, `EffectDieSides_2`, `EffectDieSides_3`, `EffectRealPointsPerLevel_1`, `EffectRealPointsPerLevel_2`, `EffectRealPointsPerLevel_3`, `EffectBasePoints_1`, `EffectBasePoints_2`, `EffectBasePoints_3`, `EffectMechanic_1`, `EffectMechanic_2`, `EffectMechanic_3`, `ImplicitTargetA_1`, `ImplicitTargetA_2`, `ImplicitTargetA_3`, `ImplicitTargetB_1`, `ImplicitTargetB_2`, `ImplicitTargetB_3`, `EffectRadiusIndex_1`, `EffectRadiusIndex_2`, `EffectRadiusIndex_3`, `EffectAura_1`, `EffectAura_2`, `EffectAura_3`, `EffectAuraPeriod_1`, `EffectAuraPeriod_2`, `EffectAuraPeriod_3`, `EffectMultipleValue_1`, `EffectMultipleValue_2`, `EffectMultipleValue_3`, `EffectChainTargets_1`, `EffectChainTargets_2`, `EffectChainTargets_3`, `EffectItemType_1`, `EffectItemType_2`, `EffectItemType_3`, `EffectMiscValue_1`, `EffectMiscValue_2`, `EffectMiscValue_3`, `EffectMiscValueB_1`, `EffectMiscValueB_2`, `EffectMiscValueB_3`, `EffectTriggerSpell_1`, `EffectTriggerSpell_2`, `EffectTriggerSpell_3`, `EffectPointsPerCombo_1`, `EffectPointsPerCombo_2`, `EffectPointsPerCombo_3`, `EffectSpellClassMaskA_1`, `EffectSpellClassMaskA_2`, `EffectSpellClassMaskA_3`, `EffectSpellClassMaskB_1`, `EffectSpellClassMaskB_2`, `EffectSpellClassMaskB_3`, `EffectSpellClassMaskC_1`, `EffectSpellClassMaskC_2`, `EffectSpellClassMaskC_3`, `SpellVisualID_1`, `SpellVisualID_2`, `SpellIconID`, `ActiveIconID`, `SpellPriority`, `Name_Lang_enUS`, `Name_Lang_enGB`, `Name_Lang_koKR`, `Name_Lang_frFR`, `Name_Lang_deDE`, `Name_Lang_enCN`, `Name_Lang_zhCN`, `Name_Lang_enTW`, `Name_Lang_zhTW`, `Name_Lang_esES`, `Name_Lang_esMX`, `Name_Lang_ruRU`, `Name_Lang_ptPT`, `Name_Lang_ptBR`, `Name_Lang_itIT`, `Name_Lang_Unk`, `Name_Lang_Mask`, `NameSubtext_Lang_enUS`, `NameSubtext_Lang_enGB`, `NameSubtext_Lang_koKR`, `NameSubtext_Lang_frFR`, `NameSubtext_Lang_deDE`, `NameSubtext_Lang_enCN`, `NameSubtext_Lang_zhCN`, `NameSubtext_Lang_enTW`, `NameSubtext_Lang_zhTW`, `NameSubtext_Lang_esES`, `NameSubtext_Lang_esMX`, `NameSubtext_Lang_ruRU`, `NameSubtext_Lang_ptPT`, `NameSubtext_Lang_ptBR`, `NameSubtext_Lang_itIT`, `NameSubtext_Lang_Unk`, `NameSubtext_Lang_Mask`, `Description_Lang_enUS`, `Description_Lang_enGB`, `Description_Lang_koKR`, `Description_Lang_frFR`, `Description_Lang_deDE`, `Description_Lang_enCN`, `Description_Lang_zhCN`, `Description_Lang_enTW`, `Description_Lang_zhTW`, `Description_Lang_esES`, `Description_Lang_esMX`, `Description_Lang_ruRU`, `Description_Lang_ptPT`, `Description_Lang_ptBR`, `Description_Lang_itIT`, `Description_Lang_Unk`, `Description_Lang_Mask`, `AuraDescription_Lang_enUS`, `AuraDescription_Lang_enGB`, `AuraDescription_Lang_koKR`, `AuraDescription_Lang_frFR`, `AuraDescription_Lang_deDE`, `AuraDescription_Lang_enCN`, `AuraDescription_Lang_zhCN`, `AuraDescription_Lang_enTW`, `AuraDescription_Lang_zhTW`, `AuraDescription_Lang_esES`, `AuraDescription_Lang_esMX`, `AuraDescription_Lang_ruRU`, `AuraDescription_Lang_ptPT`, `AuraDescription_Lang_ptBR`, `AuraDescription_Lang_itIT`, `AuraDescription_Lang_Unk`, `AuraDescription_Lang_Mask`, `ManaCostPct`, `StartRecoveryCategory`, `StartRecoveryTime`, `MaxTargetLevel`, `SpellClassSet`, `SpellClassMask_1`, `SpellClassMask_2`, `SpellClassMask_3`, `MaxTargets`, `DefenseType`, `PreventionType`, `StanceBarOrder`, `EffectChainAmplitude_1`, `EffectChainAmplitude_2`, `EffectChainAmplitude_3`, `MinFactionID`, `MinReputation`, `RequiredAuraVision`, `RequiredTotemCategoryID_1`, `RequiredTotemCategoryID_2`, `RequiredAreasID`, `SchoolMask`, `RuneCostID`, `SpellMissileID`, `PowerDisplayID`, `EffectBonusMultiplier_1`, `EffectBonusMultiplier_2`, `EffectBonusMultiplier_3`, `SpellDescriptionVariableID`, `SpellDifficultyID`) VALUES 6 | (@SpellID+1, 0, 0, 0, 256, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 0, 80, 80, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 320, 0, 0, 'Queue Cooldown', '', '', '', '', '', '', '', '', '0', '0', '0', '0', '0', '0', '0', 0, '', '', '', '', '', '', '', '', '', '0', '0', '0', '0', '0', '0', '0', 0, '', '', '', '', '', '', '', '', '', '0', '0', '0', '0', '0', '0', '0', 0, '', NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); 7 | 8 | -- Heal Reduction (-25%) 9 | DELETE FROM `spell_dbc` WHERE (`ID` = @SpellID+2); 10 | INSERT INTO `spell_dbc` (`ID`, `Category`, `DispelType`, `Mechanic`, `Attributes`, `AttributesEx`, `AttributesEx2`, `AttributesEx3`, `AttributesEx4`, `AttributesEx5`, `AttributesEx6`, `AttributesEx7`, `ShapeshiftMask`, `unk_320_2`, `ShapeshiftExclude`, `unk_320_3`, `Targets`, `TargetCreatureType`, `RequiresSpellFocus`, `FacingCasterFlags`, `CasterAuraState`, `TargetAuraState`, `ExcludeCasterAuraState`, `ExcludeTargetAuraState`, `CasterAuraSpell`, `TargetAuraSpell`, `ExcludeCasterAuraSpell`, `ExcludeTargetAuraSpell`, `CastingTimeIndex`, `RecoveryTime`, `CategoryRecoveryTime`, `InterruptFlags`, `AuraInterruptFlags`, `ChannelInterruptFlags`, `ProcTypeMask`, `ProcChance`, `ProcCharges`, `MaxLevel`, `BaseLevel`, `SpellLevel`, `DurationIndex`, `PowerType`, `ManaCost`, `ManaCostPerLevel`, `ManaPerSecond`, `ManaPerSecondPerLevel`, `RangeIndex`, `Speed`, `ModalNextSpell`, `CumulativeAura`, `Totem_1`, `Totem_2`, `Reagent_1`, `Reagent_2`, `Reagent_3`, `Reagent_4`, `Reagent_5`, `Reagent_6`, `Reagent_7`, `Reagent_8`, `ReagentCount_1`, `ReagentCount_2`, `ReagentCount_3`, `ReagentCount_4`, `ReagentCount_5`, `ReagentCount_6`, `ReagentCount_7`, `ReagentCount_8`, `EquippedItemClass`, `EquippedItemSubclass`, `EquippedItemInvTypes`, `Effect_1`, `Effect_2`, `Effect_3`, `EffectDieSides_1`, `EffectDieSides_2`, `EffectDieSides_3`, `EffectRealPointsPerLevel_1`, `EffectRealPointsPerLevel_2`, `EffectRealPointsPerLevel_3`, `EffectBasePoints_1`, `EffectBasePoints_2`, `EffectBasePoints_3`, `EffectMechanic_1`, `EffectMechanic_2`, `EffectMechanic_3`, `ImplicitTargetA_1`, `ImplicitTargetA_2`, `ImplicitTargetA_3`, `ImplicitTargetB_1`, `ImplicitTargetB_2`, `ImplicitTargetB_3`, `EffectRadiusIndex_1`, `EffectRadiusIndex_2`, `EffectRadiusIndex_3`, `EffectAura_1`, `EffectAura_2`, `EffectAura_3`, `EffectAuraPeriod_1`, `EffectAuraPeriod_2`, `EffectAuraPeriod_3`, `EffectMultipleValue_1`, `EffectMultipleValue_2`, `EffectMultipleValue_3`, `EffectChainTargets_1`, `EffectChainTargets_2`, `EffectChainTargets_3`, `EffectItemType_1`, `EffectItemType_2`, `EffectItemType_3`, `EffectMiscValue_1`, `EffectMiscValue_2`, `EffectMiscValue_3`, `EffectMiscValueB_1`, `EffectMiscValueB_2`, `EffectMiscValueB_3`, `EffectTriggerSpell_1`, `EffectTriggerSpell_2`, `EffectTriggerSpell_3`, `EffectPointsPerCombo_1`, `EffectPointsPerCombo_2`, `EffectPointsPerCombo_3`, `EffectSpellClassMaskA_1`, `EffectSpellClassMaskA_2`, `EffectSpellClassMaskA_3`, `EffectSpellClassMaskB_1`, `EffectSpellClassMaskB_2`, `EffectSpellClassMaskB_3`, `EffectSpellClassMaskC_1`, `EffectSpellClassMaskC_2`, `EffectSpellClassMaskC_3`, `SpellVisualID_1`, `SpellVisualID_2`, `SpellIconID`, `ActiveIconID`, `SpellPriority`, `Name_Lang_enUS`, `Name_Lang_enGB`, `Name_Lang_koKR`, `Name_Lang_frFR`, `Name_Lang_deDE`, `Name_Lang_enCN`, `Name_Lang_zhCN`, `Name_Lang_enTW`, `Name_Lang_zhTW`, `Name_Lang_esES`, `Name_Lang_esMX`, `Name_Lang_ruRU`, `Name_Lang_ptPT`, `Name_Lang_ptBR`, `Name_Lang_itIT`, `Name_Lang_Unk`, `Name_Lang_Mask`, `NameSubtext_Lang_enUS`, `NameSubtext_Lang_enGB`, `NameSubtext_Lang_koKR`, `NameSubtext_Lang_frFR`, `NameSubtext_Lang_deDE`, `NameSubtext_Lang_enCN`, `NameSubtext_Lang_zhCN`, `NameSubtext_Lang_enTW`, `NameSubtext_Lang_zhTW`, `NameSubtext_Lang_esES`, `NameSubtext_Lang_esMX`, `NameSubtext_Lang_ruRU`, `NameSubtext_Lang_ptPT`, `NameSubtext_Lang_ptBR`, `NameSubtext_Lang_itIT`, `NameSubtext_Lang_Unk`, `NameSubtext_Lang_Mask`, `Description_Lang_enUS`, `Description_Lang_enGB`, `Description_Lang_koKR`, `Description_Lang_frFR`, `Description_Lang_deDE`, `Description_Lang_enCN`, `Description_Lang_zhCN`, `Description_Lang_enTW`, `Description_Lang_zhTW`, `Description_Lang_esES`, `Description_Lang_esMX`, `Description_Lang_ruRU`, `Description_Lang_ptPT`, `Description_Lang_ptBR`, `Description_Lang_itIT`, `Description_Lang_Unk`, `Description_Lang_Mask`, `AuraDescription_Lang_enUS`, `AuraDescription_Lang_enGB`, `AuraDescription_Lang_koKR`, `AuraDescription_Lang_frFR`, `AuraDescription_Lang_deDE`, `AuraDescription_Lang_enCN`, `AuraDescription_Lang_zhCN`, `AuraDescription_Lang_enTW`, `AuraDescription_Lang_zhTW`, `AuraDescription_Lang_esES`, `AuraDescription_Lang_esMX`, `AuraDescription_Lang_ruRU`, `AuraDescription_Lang_ptPT`, `AuraDescription_Lang_ptBR`, `AuraDescription_Lang_itIT`, `AuraDescription_Lang_Unk`, `AuraDescription_Lang_Mask`, `ManaCostPct`, `StartRecoveryCategory`, `StartRecoveryTime`, `MaxTargetLevel`, `SpellClassSet`, `SpellClassMask_1`, `SpellClassMask_2`, `SpellClassMask_3`, `MaxTargets`, `DefenseType`, `PreventionType`, `StanceBarOrder`, `EffectChainAmplitude_1`, `EffectChainAmplitude_2`, `EffectChainAmplitude_3`, `MinFactionID`, `MinReputation`, `RequiredAuraVision`, `RequiredTotemCategoryID_1`, `RequiredTotemCategoryID_2`, `RequiredAreasID`, `SchoolMask`, `RuneCostID`, `SpellMissileID`, `PowerDisplayID`, `EffectBonusMultiplier_1`, `EffectBonusMultiplier_2`, `EffectBonusMultiplier_3`, `SpellDescriptionVariableID`, `SpellDifficultyID`) VALUES 11 | (@SpellID+2, 0, 0, 0, 2684354816, 1024, 0, 256, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 6, 0, 0, 1, 0, 0, 0, 0, 0, -26, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 0, 0, 136, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 127, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 'Healing Reduce (-25%)', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); 12 | 13 | -- AoE Resurect 14 | DELETE FROM `spell_dbc` WHERE (`ID` = @SpellID+3); 15 | INSERT INTO `spell_dbc` (`ID`, `Category`, `DispelType`, `Mechanic`, `Attributes`, `AttributesEx`, `AttributesEx2`, `AttributesEx3`, `AttributesEx4`, `AttributesEx5`, `AttributesEx6`, `AttributesEx7`, `ShapeshiftMask`, `unk_320_2`, `ShapeshiftExclude`, `unk_320_3`, `Targets`, `TargetCreatureType`, `RequiresSpellFocus`, `FacingCasterFlags`, `CasterAuraState`, `TargetAuraState`, `ExcludeCasterAuraState`, `ExcludeTargetAuraState`, `CasterAuraSpell`, `TargetAuraSpell`, `ExcludeCasterAuraSpell`, `ExcludeTargetAuraSpell`, `CastingTimeIndex`, `RecoveryTime`, `CategoryRecoveryTime`, `InterruptFlags`, `AuraInterruptFlags`, `ChannelInterruptFlags`, `ProcTypeMask`, `ProcChance`, `ProcCharges`, `MaxLevel`, `BaseLevel`, `SpellLevel`, `DurationIndex`, `PowerType`, `ManaCost`, `ManaCostPerLevel`, `ManaPerSecond`, `ManaPerSecondPerLevel`, `RangeIndex`, `Speed`, `ModalNextSpell`, `CumulativeAura`, `Totem_1`, `Totem_2`, `Reagent_1`, `Reagent_2`, `Reagent_3`, `Reagent_4`, `Reagent_5`, `Reagent_6`, `Reagent_7`, `Reagent_8`, `ReagentCount_1`, `ReagentCount_2`, `ReagentCount_3`, `ReagentCount_4`, `ReagentCount_5`, `ReagentCount_6`, `ReagentCount_7`, `ReagentCount_8`, `EquippedItemClass`, `EquippedItemSubclass`, `EquippedItemInvTypes`, `Effect_1`, `Effect_2`, `Effect_3`, `EffectDieSides_1`, `EffectDieSides_2`, `EffectDieSides_3`, `EffectRealPointsPerLevel_1`, `EffectRealPointsPerLevel_2`, `EffectRealPointsPerLevel_3`, `EffectBasePoints_1`, `EffectBasePoints_2`, `EffectBasePoints_3`, `EffectMechanic_1`, `EffectMechanic_2`, `EffectMechanic_3`, `ImplicitTargetA_1`, `ImplicitTargetA_2`, `ImplicitTargetA_3`, `ImplicitTargetB_1`, `ImplicitTargetB_2`, `ImplicitTargetB_3`, `EffectRadiusIndex_1`, `EffectRadiusIndex_2`, `EffectRadiusIndex_3`, `EffectAura_1`, `EffectAura_2`, `EffectAura_3`, `EffectAuraPeriod_1`, `EffectAuraPeriod_2`, `EffectAuraPeriod_3`, `EffectMultipleValue_1`, `EffectMultipleValue_2`, `EffectMultipleValue_3`, `EffectChainTargets_1`, `EffectChainTargets_2`, `EffectChainTargets_3`, `EffectItemType_1`, `EffectItemType_2`, `EffectItemType_3`, `EffectMiscValue_1`, `EffectMiscValue_2`, `EffectMiscValue_3`, `EffectMiscValueB_1`, `EffectMiscValueB_2`, `EffectMiscValueB_3`, `EffectTriggerSpell_1`, `EffectTriggerSpell_2`, `EffectTriggerSpell_3`, `EffectPointsPerCombo_1`, `EffectPointsPerCombo_2`, `EffectPointsPerCombo_3`, `EffectSpellClassMaskA_1`, `EffectSpellClassMaskA_2`, `EffectSpellClassMaskA_3`, `EffectSpellClassMaskB_1`, `EffectSpellClassMaskB_2`, `EffectSpellClassMaskB_3`, `EffectSpellClassMaskC_1`, `EffectSpellClassMaskC_2`, `EffectSpellClassMaskC_3`, `SpellVisualID_1`, `SpellVisualID_2`, `SpellIconID`, `ActiveIconID`, `SpellPriority`, `Name_Lang_enUS`, `Name_Lang_enGB`, `Name_Lang_koKR`, `Name_Lang_frFR`, `Name_Lang_deDE`, `Name_Lang_enCN`, `Name_Lang_zhCN`, `Name_Lang_enTW`, `Name_Lang_zhTW`, `Name_Lang_esES`, `Name_Lang_esMX`, `Name_Lang_ruRU`, `Name_Lang_ptPT`, `Name_Lang_ptBR`, `Name_Lang_itIT`, `Name_Lang_Unk`, `Name_Lang_Mask`, `NameSubtext_Lang_enUS`, `NameSubtext_Lang_enGB`, `NameSubtext_Lang_koKR`, `NameSubtext_Lang_frFR`, `NameSubtext_Lang_deDE`, `NameSubtext_Lang_enCN`, `NameSubtext_Lang_zhCN`, `NameSubtext_Lang_enTW`, `NameSubtext_Lang_zhTW`, `NameSubtext_Lang_esES`, `NameSubtext_Lang_esMX`, `NameSubtext_Lang_ruRU`, `NameSubtext_Lang_ptPT`, `NameSubtext_Lang_ptBR`, `NameSubtext_Lang_itIT`, `NameSubtext_Lang_Unk`, `NameSubtext_Lang_Mask`, `Description_Lang_enUS`, `Description_Lang_enGB`, `Description_Lang_koKR`, `Description_Lang_frFR`, `Description_Lang_deDE`, `Description_Lang_enCN`, `Description_Lang_zhCN`, `Description_Lang_enTW`, `Description_Lang_zhTW`, `Description_Lang_esES`, `Description_Lang_esMX`, `Description_Lang_ruRU`, `Description_Lang_ptPT`, `Description_Lang_ptBR`, `Description_Lang_itIT`, `Description_Lang_Unk`, `Description_Lang_Mask`, `AuraDescription_Lang_enUS`, `AuraDescription_Lang_enGB`, `AuraDescription_Lang_koKR`, `AuraDescription_Lang_frFR`, `AuraDescription_Lang_deDE`, `AuraDescription_Lang_enCN`, `AuraDescription_Lang_zhCN`, `AuraDescription_Lang_enTW`, `AuraDescription_Lang_zhTW`, `AuraDescription_Lang_esES`, `AuraDescription_Lang_esMX`, `AuraDescription_Lang_ruRU`, `AuraDescription_Lang_ptPT`, `AuraDescription_Lang_ptBR`, `AuraDescription_Lang_itIT`, `AuraDescription_Lang_Unk`, `AuraDescription_Lang_Mask`, `ManaCostPct`, `StartRecoveryCategory`, `StartRecoveryTime`, `MaxTargetLevel`, `SpellClassSet`, `SpellClassMask_1`, `SpellClassMask_2`, `SpellClassMask_3`, `MaxTargets`, `DefenseType`, `PreventionType`, `StanceBarOrder`, `EffectChainAmplitude_1`, `EffectChainAmplitude_2`, `EffectChainAmplitude_3`, `MinFactionID`, `MinReputation`, `RequiredAuraVision`, `RequiredTotemCategoryID_1`, `RequiredTotemCategoryID_2`, `RequiredAreasID`, `SchoolMask`, `RuneCostID`, `SpellMissileID`, `PowerDisplayID`, `EffectBonusMultiplier_1`, `EffectBonusMultiplier_2`, `EffectBonusMultiplier_3`, `SpellDescriptionVariableID`, `SpellDifficultyID`) VALUES 16 | (@SpellID+3, 0, 0, 0, 545259776, 136, 5, 269484032, 0, 72, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 18, 0, 0, 1, 0, 0, 0, 0, 0, 9, 0, 0, 0, 0, 0, 22, 0, 0, 7, 0, 0, 24, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 177, 1711, 0, 'Mass Resurrect', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0); 17 | 18 | -- Massive Crash 19 | DELETE FROM `spell_dbc` WHERE (`ID` = @SpellID+4); 20 | INSERT INTO `spell_dbc` (`ID`, `Category`, `DispelType`, `Mechanic`, `Attributes`, `AttributesEx`, `AttributesEx2`, `AttributesEx3`, `AttributesEx4`, `AttributesEx5`, `AttributesEx6`, `AttributesEx7`, `ShapeshiftMask`, `unk_320_2`, `ShapeshiftExclude`, `unk_320_3`, `Targets`, `TargetCreatureType`, `RequiresSpellFocus`, `FacingCasterFlags`, `CasterAuraState`, `TargetAuraState`, `ExcludeCasterAuraState`, `ExcludeTargetAuraState`, `CasterAuraSpell`, `TargetAuraSpell`, `ExcludeCasterAuraSpell`, `ExcludeTargetAuraSpell`, `CastingTimeIndex`, `RecoveryTime`, `CategoryRecoveryTime`, `InterruptFlags`, `AuraInterruptFlags`, `ChannelInterruptFlags`, `ProcTypeMask`, `ProcChance`, `ProcCharges`, `MaxLevel`, `BaseLevel`, `SpellLevel`, `DurationIndex`, `PowerType`, `ManaCost`, `ManaCostPerLevel`, `ManaPerSecond`, `ManaPerSecondPerLevel`, `RangeIndex`, `Speed`, `ModalNextSpell`, `CumulativeAura`, `Totem_1`, `Totem_2`, `Reagent_1`, `Reagent_2`, `Reagent_3`, `Reagent_4`, `Reagent_5`, `Reagent_6`, `Reagent_7`, `Reagent_8`, `ReagentCount_1`, `ReagentCount_2`, `ReagentCount_3`, `ReagentCount_4`, `ReagentCount_5`, `ReagentCount_6`, `ReagentCount_7`, `ReagentCount_8`, `EquippedItemClass`, `EquippedItemSubclass`, `EquippedItemInvTypes`, `Effect_1`, `Effect_2`, `Effect_3`, `EffectDieSides_1`, `EffectDieSides_2`, `EffectDieSides_3`, `EffectRealPointsPerLevel_1`, `EffectRealPointsPerLevel_2`, `EffectRealPointsPerLevel_3`, `EffectBasePoints_1`, `EffectBasePoints_2`, `EffectBasePoints_3`, `EffectMechanic_1`, `EffectMechanic_2`, `EffectMechanic_3`, `ImplicitTargetA_1`, `ImplicitTargetA_2`, `ImplicitTargetA_3`, `ImplicitTargetB_1`, `ImplicitTargetB_2`, `ImplicitTargetB_3`, `EffectRadiusIndex_1`, `EffectRadiusIndex_2`, `EffectRadiusIndex_3`, `EffectAura_1`, `EffectAura_2`, `EffectAura_3`, `EffectAuraPeriod_1`, `EffectAuraPeriod_2`, `EffectAuraPeriod_3`, `EffectMultipleValue_1`, `EffectMultipleValue_2`, `EffectMultipleValue_3`, `EffectChainTargets_1`, `EffectChainTargets_2`, `EffectChainTargets_3`, `EffectItemType_1`, `EffectItemType_2`, `EffectItemType_3`, `EffectMiscValue_1`, `EffectMiscValue_2`, `EffectMiscValue_3`, `EffectMiscValueB_1`, `EffectMiscValueB_2`, `EffectMiscValueB_3`, `EffectTriggerSpell_1`, `EffectTriggerSpell_2`, `EffectTriggerSpell_3`, `EffectPointsPerCombo_1`, `EffectPointsPerCombo_2`, `EffectPointsPerCombo_3`, `EffectSpellClassMaskA_1`, `EffectSpellClassMaskA_2`, `EffectSpellClassMaskA_3`, `EffectSpellClassMaskB_1`, `EffectSpellClassMaskB_2`, `EffectSpellClassMaskB_3`, `EffectSpellClassMaskC_1`, `EffectSpellClassMaskC_2`, `EffectSpellClassMaskC_3`, `SpellVisualID_1`, `SpellVisualID_2`, `SpellIconID`, `ActiveIconID`, `SpellPriority`, `Name_Lang_enUS`, `Name_Lang_enGB`, `Name_Lang_koKR`, `Name_Lang_frFR`, `Name_Lang_deDE`, `Name_Lang_enCN`, `Name_Lang_zhCN`, `Name_Lang_enTW`, `Name_Lang_zhTW`, `Name_Lang_esES`, `Name_Lang_esMX`, `Name_Lang_ruRU`, `Name_Lang_ptPT`, `Name_Lang_ptBR`, `Name_Lang_itIT`, `Name_Lang_Unk`, `Name_Lang_Mask`, `NameSubtext_Lang_enUS`, `NameSubtext_Lang_enGB`, `NameSubtext_Lang_koKR`, `NameSubtext_Lang_frFR`, `NameSubtext_Lang_deDE`, `NameSubtext_Lang_enCN`, `NameSubtext_Lang_zhCN`, `NameSubtext_Lang_enTW`, `NameSubtext_Lang_zhTW`, `NameSubtext_Lang_esES`, `NameSubtext_Lang_esMX`, `NameSubtext_Lang_ruRU`, `NameSubtext_Lang_ptPT`, `NameSubtext_Lang_ptBR`, `NameSubtext_Lang_itIT`, `NameSubtext_Lang_Unk`, `NameSubtext_Lang_Mask`, `Description_Lang_enUS`, `Description_Lang_enGB`, `Description_Lang_koKR`, `Description_Lang_frFR`, `Description_Lang_deDE`, `Description_Lang_enCN`, `Description_Lang_zhCN`, `Description_Lang_enTW`, `Description_Lang_zhTW`, `Description_Lang_esES`, `Description_Lang_esMX`, `Description_Lang_ruRU`, `Description_Lang_ptPT`, `Description_Lang_ptBR`, `Description_Lang_itIT`, `Description_Lang_Unk`, `Description_Lang_Mask`, `AuraDescription_Lang_enUS`, `AuraDescription_Lang_enGB`, `AuraDescription_Lang_koKR`, `AuraDescription_Lang_frFR`, `AuraDescription_Lang_deDE`, `AuraDescription_Lang_enCN`, `AuraDescription_Lang_zhCN`, `AuraDescription_Lang_enTW`, `AuraDescription_Lang_zhTW`, `AuraDescription_Lang_esES`, `AuraDescription_Lang_esMX`, `AuraDescription_Lang_ruRU`, `AuraDescription_Lang_ptPT`, `AuraDescription_Lang_ptBR`, `AuraDescription_Lang_itIT`, `AuraDescription_Lang_Unk`, `AuraDescription_Lang_Mask`, `ManaCostPct`, `StartRecoveryCategory`, `StartRecoveryTime`, `MaxTargetLevel`, `SpellClassSet`, `SpellClassMask_1`, `SpellClassMask_2`, `SpellClassMask_3`, `MaxTargets`, `DefenseType`, `PreventionType`, `StanceBarOrder`, `EffectChainAmplitude_1`, `EffectChainAmplitude_2`, `EffectChainAmplitude_3`, `MinFactionID`, `MinReputation`, `RequiredAuraVision`, `RequiredTotemCategoryID_1`, `RequiredTotemCategoryID_2`, `RequiredAreasID`, `SchoolMask`, `RuneCostID`, `SpellMissileID`, `PowerDisplayID`, `EffectBonusMultiplier_1`, `EffectBonusMultiplier_2`, `EffectBonusMultiplier_3`, `SpellDescriptionVariableID`, `SpellDifficultyID`) VALUES 21 | (@SpellID+4, 0, 0, 0, 0, 0, 0, 262144, 0, 0, 16777216, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 32, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 98, 2, 6, 1, 1201, 1, 0, 0, 0, 99, 7399, -1, 0, 0, 0, 22, 22, 22, 15, 15, 15, 20, 20, 20, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 300, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 14150, 0, 148, 0, 0, 'Massive Crash', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 16712190, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 16712188, 'Leaps into the air and crashes down with massive force, dealing $s2 Physical damage to all enemies, stunning them, and knocking them back.', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 16712190, 'Stunned.', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 16712190, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 619); 22 | 23 | -- Leap 24 | DELETE FROM `spell_dbc` WHERE (`ID` = @SpellID+5); 25 | INSERT INTO `spell_dbc` (`ID`, `Category`, `DispelType`, `Mechanic`, `Attributes`, `AttributesEx`, `AttributesEx2`, `AttributesEx3`, `AttributesEx4`, `AttributesEx5`, `AttributesEx6`, `AttributesEx7`, `ShapeshiftMask`, `unk_320_2`, `ShapeshiftExclude`, `unk_320_3`, `Targets`, `TargetCreatureType`, `RequiresSpellFocus`, `FacingCasterFlags`, `CasterAuraState`, `TargetAuraState`, `ExcludeCasterAuraState`, `ExcludeTargetAuraState`, `CasterAuraSpell`, `TargetAuraSpell`, `ExcludeCasterAuraSpell`, `ExcludeTargetAuraSpell`, `CastingTimeIndex`, `RecoveryTime`, `CategoryRecoveryTime`, `InterruptFlags`, `AuraInterruptFlags`, `ChannelInterruptFlags`, `ProcTypeMask`, `ProcChance`, `ProcCharges`, `MaxLevel`, `BaseLevel`, `SpellLevel`, `DurationIndex`, `PowerType`, `ManaCost`, `ManaCostPerLevel`, `ManaPerSecond`, `ManaPerSecondPerLevel`, `RangeIndex`, `Speed`, `ModalNextSpell`, `CumulativeAura`, `Totem_1`, `Totem_2`, `Reagent_1`, `Reagent_2`, `Reagent_3`, `Reagent_4`, `Reagent_5`, `Reagent_6`, `Reagent_7`, `Reagent_8`, `ReagentCount_1`, `ReagentCount_2`, `ReagentCount_3`, `ReagentCount_4`, `ReagentCount_5`, `ReagentCount_6`, `ReagentCount_7`, `ReagentCount_8`, `EquippedItemClass`, `EquippedItemSubclass`, `EquippedItemInvTypes`, `Effect_1`, `Effect_2`, `Effect_3`, `EffectDieSides_1`, `EffectDieSides_2`, `EffectDieSides_3`, `EffectRealPointsPerLevel_1`, `EffectRealPointsPerLevel_2`, `EffectRealPointsPerLevel_3`, `EffectBasePoints_1`, `EffectBasePoints_2`, `EffectBasePoints_3`, `EffectMechanic_1`, `EffectMechanic_2`, `EffectMechanic_3`, `ImplicitTargetA_1`, `ImplicitTargetA_2`, `ImplicitTargetA_3`, `ImplicitTargetB_1`, `ImplicitTargetB_2`, `ImplicitTargetB_3`, `EffectRadiusIndex_1`, `EffectRadiusIndex_2`, `EffectRadiusIndex_3`, `EffectAura_1`, `EffectAura_2`, `EffectAura_3`, `EffectAuraPeriod_1`, `EffectAuraPeriod_2`, `EffectAuraPeriod_3`, `EffectMultipleValue_1`, `EffectMultipleValue_2`, `EffectMultipleValue_3`, `EffectChainTargets_1`, `EffectChainTargets_2`, `EffectChainTargets_3`, `EffectItemType_1`, `EffectItemType_2`, `EffectItemType_3`, `EffectMiscValue_1`, `EffectMiscValue_2`, `EffectMiscValue_3`, `EffectMiscValueB_1`, `EffectMiscValueB_2`, `EffectMiscValueB_3`, `EffectTriggerSpell_1`, `EffectTriggerSpell_2`, `EffectTriggerSpell_3`, `EffectPointsPerCombo_1`, `EffectPointsPerCombo_2`, `EffectPointsPerCombo_3`, `EffectSpellClassMaskA_1`, `EffectSpellClassMaskA_2`, `EffectSpellClassMaskA_3`, `EffectSpellClassMaskB_1`, `EffectSpellClassMaskB_2`, `EffectSpellClassMaskB_3`, `EffectSpellClassMaskC_1`, `EffectSpellClassMaskC_2`, `EffectSpellClassMaskC_3`, `SpellVisualID_1`, `SpellVisualID_2`, `SpellIconID`, `ActiveIconID`, `SpellPriority`, `Name_Lang_enUS`, `Name_Lang_enGB`, `Name_Lang_koKR`, `Name_Lang_frFR`, `Name_Lang_deDE`, `Name_Lang_enCN`, `Name_Lang_zhCN`, `Name_Lang_enTW`, `Name_Lang_zhTW`, `Name_Lang_esES`, `Name_Lang_esMX`, `Name_Lang_ruRU`, `Name_Lang_ptPT`, `Name_Lang_ptBR`, `Name_Lang_itIT`, `Name_Lang_Unk`, `Name_Lang_Mask`, `NameSubtext_Lang_enUS`, `NameSubtext_Lang_enGB`, `NameSubtext_Lang_koKR`, `NameSubtext_Lang_frFR`, `NameSubtext_Lang_deDE`, `NameSubtext_Lang_enCN`, `NameSubtext_Lang_zhCN`, `NameSubtext_Lang_enTW`, `NameSubtext_Lang_zhTW`, `NameSubtext_Lang_esES`, `NameSubtext_Lang_esMX`, `NameSubtext_Lang_ruRU`, `NameSubtext_Lang_ptPT`, `NameSubtext_Lang_ptBR`, `NameSubtext_Lang_itIT`, `NameSubtext_Lang_Unk`, `NameSubtext_Lang_Mask`, `Description_Lang_enUS`, `Description_Lang_enGB`, `Description_Lang_koKR`, `Description_Lang_frFR`, `Description_Lang_deDE`, `Description_Lang_enCN`, `Description_Lang_zhCN`, `Description_Lang_enTW`, `Description_Lang_zhTW`, `Description_Lang_esES`, `Description_Lang_esMX`, `Description_Lang_ruRU`, `Description_Lang_ptPT`, `Description_Lang_ptBR`, `Description_Lang_itIT`, `Description_Lang_Unk`, `Description_Lang_Mask`, `AuraDescription_Lang_enUS`, `AuraDescription_Lang_enGB`, `AuraDescription_Lang_koKR`, `AuraDescription_Lang_frFR`, `AuraDescription_Lang_deDE`, `AuraDescription_Lang_enCN`, `AuraDescription_Lang_zhCN`, `AuraDescription_Lang_enTW`, `AuraDescription_Lang_zhTW`, `AuraDescription_Lang_esES`, `AuraDescription_Lang_esMX`, `AuraDescription_Lang_ruRU`, `AuraDescription_Lang_ptPT`, `AuraDescription_Lang_ptBR`, `AuraDescription_Lang_itIT`, `AuraDescription_Lang_Unk`, `AuraDescription_Lang_Mask`, `ManaCostPct`, `StartRecoveryCategory`, `StartRecoveryTime`, `MaxTargetLevel`, `SpellClassSet`, `SpellClassMask_1`, `SpellClassMask_2`, `SpellClassMask_3`, `MaxTargets`, `DefenseType`, `PreventionType`, `StanceBarOrder`, `EffectChainAmplitude_1`, `EffectChainAmplitude_2`, `EffectChainAmplitude_3`, `MinFactionID`, `MinReputation`, `RequiredAuraVision`, `RequiredTotemCategoryID_1`, `RequiredTotemCategoryID_2`, `RequiredAreasID`, `SchoolMask`, `RuneCostID`, `SpellMissileID`, `PowerDisplayID`, `EffectBonusMultiplier_1`, `EffectBonusMultiplier_2`, `EffectBonusMultiplier_3`, `SpellDescriptionVariableID`, `SpellDifficultyID`) VALUES 26 | (@SpellID+5, 0, 0, 0, 262160, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 101, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 42, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 47, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 150, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1891, 0, 0, 'Leap', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, 0, 133, 1500, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0); 27 | 28 | -- Shared Bonds // Visual: 41363 29 | DELETE FROM `spell_dbc` WHERE (`ID` = @SpellID+6); 30 | INSERT INTO `spell_dbc` (`ID`, `Category`, `DispelType`, `Mechanic`, `Attributes`, `AttributesEx`, `AttributesEx2`, `AttributesEx3`, `AttributesEx4`, `AttributesEx5`, `AttributesEx6`, `AttributesEx7`, `ShapeshiftMask`, `unk_320_2`, `ShapeshiftExclude`, `unk_320_3`, `Targets`, `TargetCreatureType`, `RequiresSpellFocus`, `FacingCasterFlags`, `CasterAuraState`, `TargetAuraState`, `ExcludeCasterAuraState`, `ExcludeTargetAuraState`, `CasterAuraSpell`, `TargetAuraSpell`, `ExcludeCasterAuraSpell`, `ExcludeTargetAuraSpell`, `CastingTimeIndex`, `RecoveryTime`, `CategoryRecoveryTime`, `InterruptFlags`, `AuraInterruptFlags`, `ChannelInterruptFlags`, `ProcTypeMask`, `ProcChance`, `ProcCharges`, `MaxLevel`, `BaseLevel`, `SpellLevel`, `DurationIndex`, `PowerType`, `ManaCost`, `ManaCostPerLevel`, `ManaPerSecond`, `ManaPerSecondPerLevel`, `RangeIndex`, `Speed`, `ModalNextSpell`, `CumulativeAura`, `Totem_1`, `Totem_2`, `Reagent_1`, `Reagent_2`, `Reagent_3`, `Reagent_4`, `Reagent_5`, `Reagent_6`, `Reagent_7`, `Reagent_8`, `ReagentCount_1`, `ReagentCount_2`, `ReagentCount_3`, `ReagentCount_4`, `ReagentCount_5`, `ReagentCount_6`, `ReagentCount_7`, `ReagentCount_8`, `EquippedItemClass`, `EquippedItemSubclass`, `EquippedItemInvTypes`, `Effect_1`, `Effect_2`, `Effect_3`, `EffectDieSides_1`, `EffectDieSides_2`, `EffectDieSides_3`, `EffectRealPointsPerLevel_1`, `EffectRealPointsPerLevel_2`, `EffectRealPointsPerLevel_3`, `EffectBasePoints_1`, `EffectBasePoints_2`, `EffectBasePoints_3`, `EffectMechanic_1`, `EffectMechanic_2`, `EffectMechanic_3`, `ImplicitTargetA_1`, `ImplicitTargetA_2`, `ImplicitTargetA_3`, `ImplicitTargetB_1`, `ImplicitTargetB_2`, `ImplicitTargetB_3`, `EffectRadiusIndex_1`, `EffectRadiusIndex_2`, `EffectRadiusIndex_3`, `EffectAura_1`, `EffectAura_2`, `EffectAura_3`, `EffectAuraPeriod_1`, `EffectAuraPeriod_2`, `EffectAuraPeriod_3`, `EffectMultipleValue_1`, `EffectMultipleValue_2`, `EffectMultipleValue_3`, `EffectChainTargets_1`, `EffectChainTargets_2`, `EffectChainTargets_3`, `EffectItemType_1`, `EffectItemType_2`, `EffectItemType_3`, `EffectMiscValue_1`, `EffectMiscValue_2`, `EffectMiscValue_3`, `EffectMiscValueB_1`, `EffectMiscValueB_2`, `EffectMiscValueB_3`, `EffectTriggerSpell_1`, `EffectTriggerSpell_2`, `EffectTriggerSpell_3`, `EffectPointsPerCombo_1`, `EffectPointsPerCombo_2`, `EffectPointsPerCombo_3`, `EffectSpellClassMaskA_1`, `EffectSpellClassMaskA_2`, `EffectSpellClassMaskA_3`, `EffectSpellClassMaskB_1`, `EffectSpellClassMaskB_2`, `EffectSpellClassMaskB_3`, `EffectSpellClassMaskC_1`, `EffectSpellClassMaskC_2`, `EffectSpellClassMaskC_3`, `SpellVisualID_1`, `SpellVisualID_2`, `SpellIconID`, `ActiveIconID`, `SpellPriority`, `Name_Lang_enUS`, `Name_Lang_enGB`, `Name_Lang_koKR`, `Name_Lang_frFR`, `Name_Lang_deDE`, `Name_Lang_enCN`, `Name_Lang_zhCN`, `Name_Lang_enTW`, `Name_Lang_zhTW`, `Name_Lang_esES`, `Name_Lang_esMX`, `Name_Lang_ruRU`, `Name_Lang_ptPT`, `Name_Lang_ptBR`, `Name_Lang_itIT`, `Name_Lang_Unk`, `Name_Lang_Mask`, `NameSubtext_Lang_enUS`, `NameSubtext_Lang_enGB`, `NameSubtext_Lang_koKR`, `NameSubtext_Lang_frFR`, `NameSubtext_Lang_deDE`, `NameSubtext_Lang_enCN`, `NameSubtext_Lang_zhCN`, `NameSubtext_Lang_enTW`, `NameSubtext_Lang_zhTW`, `NameSubtext_Lang_esES`, `NameSubtext_Lang_esMX`, `NameSubtext_Lang_ruRU`, `NameSubtext_Lang_ptPT`, `NameSubtext_Lang_ptBR`, `NameSubtext_Lang_itIT`, `NameSubtext_Lang_Unk`, `NameSubtext_Lang_Mask`, `Description_Lang_enUS`, `Description_Lang_enGB`, `Description_Lang_koKR`, `Description_Lang_frFR`, `Description_Lang_deDE`, `Description_Lang_enCN`, `Description_Lang_zhCN`, `Description_Lang_enTW`, `Description_Lang_zhTW`, `Description_Lang_esES`, `Description_Lang_esMX`, `Description_Lang_ruRU`, `Description_Lang_ptPT`, `Description_Lang_ptBR`, `Description_Lang_itIT`, `Description_Lang_Unk`, `Description_Lang_Mask`, `AuraDescription_Lang_enUS`, `AuraDescription_Lang_enGB`, `AuraDescription_Lang_koKR`, `AuraDescription_Lang_frFR`, `AuraDescription_Lang_deDE`, `AuraDescription_Lang_enCN`, `AuraDescription_Lang_zhCN`, `AuraDescription_Lang_enTW`, `AuraDescription_Lang_zhTW`, `AuraDescription_Lang_esES`, `AuraDescription_Lang_esMX`, `AuraDescription_Lang_ruRU`, `AuraDescription_Lang_ptPT`, `AuraDescription_Lang_ptBR`, `AuraDescription_Lang_itIT`, `AuraDescription_Lang_Unk`, `AuraDescription_Lang_Mask`, `ManaCostPct`, `StartRecoveryCategory`, `StartRecoveryTime`, `MaxTargetLevel`, `SpellClassSet`, `SpellClassMask_1`, `SpellClassMask_2`, `SpellClassMask_3`, `MaxTargets`, `DefenseType`, `PreventionType`, `StanceBarOrder`, `EffectChainAmplitude_1`, `EffectChainAmplitude_2`, `EffectChainAmplitude_3`, `MinFactionID`, `MinReputation`, `RequiredAuraVision`, `RequiredTotemCategoryID_1`, `RequiredTotemCategoryID_2`, `RequiredAreasID`, `SchoolMask`, `RuneCostID`, `SpellMissileID`, `PowerDisplayID`, `EffectBonusMultiplier_1`, `EffectBonusMultiplier_2`, `EffectBonusMultiplier_3`, `SpellDescriptionVariableID`, `SpellDifficultyID`) VALUES 31 | (@SpellID+6, 0, 0, 19, 604307712, 1024, 4, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 699048, 101, 0, 0, 80, 80, 21, 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 6, 0, 0, 1, 0, 0, 0, 0, 0, 49, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 0, 0, 81, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 127, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 8244, 0, 2177, 0, 0, 'Shared Bonds', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 16712190, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 16712172, 'The life force of the target and caster are linked, sharing damage equally between each other.', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 16712190, '$s1\% of damage taken is split with ally.', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 16712190, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0); 32 | 33 | -- Chains Of Woe 34 | DELETE FROM `spell_dbc` WHERE (`ID` = @SpellID+7); 35 | INSERT INTO `spell_dbc` (`ID`, `Category`, `DispelType`, `Mechanic`, `Attributes`, `AttributesEx`, `AttributesEx2`, `AttributesEx3`, `AttributesEx4`, `AttributesEx5`, `AttributesEx6`, `AttributesEx7`, `ShapeshiftMask`, `unk_320_2`, `ShapeshiftExclude`, `unk_320_3`, `Targets`, `TargetCreatureType`, `RequiresSpellFocus`, `FacingCasterFlags`, `CasterAuraState`, `TargetAuraState`, `ExcludeCasterAuraState`, `ExcludeTargetAuraState`, `CasterAuraSpell`, `TargetAuraSpell`, `ExcludeCasterAuraSpell`, `ExcludeTargetAuraSpell`, `CastingTimeIndex`, `RecoveryTime`, `CategoryRecoveryTime`, `InterruptFlags`, `AuraInterruptFlags`, `ChannelInterruptFlags`, `ProcTypeMask`, `ProcChance`, `ProcCharges`, `MaxLevel`, `BaseLevel`, `SpellLevel`, `DurationIndex`, `PowerType`, `ManaCost`, `ManaCostPerLevel`, `ManaPerSecond`, `ManaPerSecondPerLevel`, `RangeIndex`, `Speed`, `ModalNextSpell`, `CumulativeAura`, `Totem_1`, `Totem_2`, `Reagent_1`, `Reagent_2`, `Reagent_3`, `Reagent_4`, `Reagent_5`, `Reagent_6`, `Reagent_7`, `Reagent_8`, `ReagentCount_1`, `ReagentCount_2`, `ReagentCount_3`, `ReagentCount_4`, `ReagentCount_5`, `ReagentCount_6`, `ReagentCount_7`, `ReagentCount_8`, `EquippedItemClass`, `EquippedItemSubclass`, `EquippedItemInvTypes`, `Effect_1`, `Effect_2`, `Effect_3`, `EffectDieSides_1`, `EffectDieSides_2`, `EffectDieSides_3`, `EffectRealPointsPerLevel_1`, `EffectRealPointsPerLevel_2`, `EffectRealPointsPerLevel_3`, `EffectBasePoints_1`, `EffectBasePoints_2`, `EffectBasePoints_3`, `EffectMechanic_1`, `EffectMechanic_2`, `EffectMechanic_3`, `ImplicitTargetA_1`, `ImplicitTargetA_2`, `ImplicitTargetA_3`, `ImplicitTargetB_1`, `ImplicitTargetB_2`, `ImplicitTargetB_3`, `EffectRadiusIndex_1`, `EffectRadiusIndex_2`, `EffectRadiusIndex_3`, `EffectAura_1`, `EffectAura_2`, `EffectAura_3`, `EffectAuraPeriod_1`, `EffectAuraPeriod_2`, `EffectAuraPeriod_3`, `EffectMultipleValue_1`, `EffectMultipleValue_2`, `EffectMultipleValue_3`, `EffectChainTargets_1`, `EffectChainTargets_2`, `EffectChainTargets_3`, `EffectItemType_1`, `EffectItemType_2`, `EffectItemType_3`, `EffectMiscValue_1`, `EffectMiscValue_2`, `EffectMiscValue_3`, `EffectMiscValueB_1`, `EffectMiscValueB_2`, `EffectMiscValueB_3`, `EffectTriggerSpell_1`, `EffectTriggerSpell_2`, `EffectTriggerSpell_3`, `EffectPointsPerCombo_1`, `EffectPointsPerCombo_2`, `EffectPointsPerCombo_3`, `EffectSpellClassMaskA_1`, `EffectSpellClassMaskA_2`, `EffectSpellClassMaskA_3`, `EffectSpellClassMaskB_1`, `EffectSpellClassMaskB_2`, `EffectSpellClassMaskB_3`, `EffectSpellClassMaskC_1`, `EffectSpellClassMaskC_2`, `EffectSpellClassMaskC_3`, `SpellVisualID_1`, `SpellVisualID_2`, `SpellIconID`, `ActiveIconID`, `SpellPriority`, `Name_Lang_enUS`, `Name_Lang_enGB`, `Name_Lang_koKR`, `Name_Lang_frFR`, `Name_Lang_deDE`, `Name_Lang_enCN`, `Name_Lang_zhCN`, `Name_Lang_enTW`, `Name_Lang_zhTW`, `Name_Lang_esES`, `Name_Lang_esMX`, `Name_Lang_ruRU`, `Name_Lang_ptPT`, `Name_Lang_ptBR`, `Name_Lang_itIT`, `Name_Lang_Unk`, `Name_Lang_Mask`, `NameSubtext_Lang_enUS`, `NameSubtext_Lang_enGB`, `NameSubtext_Lang_koKR`, `NameSubtext_Lang_frFR`, `NameSubtext_Lang_deDE`, `NameSubtext_Lang_enCN`, `NameSubtext_Lang_zhCN`, `NameSubtext_Lang_enTW`, `NameSubtext_Lang_zhTW`, `NameSubtext_Lang_esES`, `NameSubtext_Lang_esMX`, `NameSubtext_Lang_ruRU`, `NameSubtext_Lang_ptPT`, `NameSubtext_Lang_ptBR`, `NameSubtext_Lang_itIT`, `NameSubtext_Lang_Unk`, `NameSubtext_Lang_Mask`, `Description_Lang_enUS`, `Description_Lang_enGB`, `Description_Lang_koKR`, `Description_Lang_frFR`, `Description_Lang_deDE`, `Description_Lang_enCN`, `Description_Lang_zhCN`, `Description_Lang_enTW`, `Description_Lang_zhTW`, `Description_Lang_esES`, `Description_Lang_esMX`, `Description_Lang_ruRU`, `Description_Lang_ptPT`, `Description_Lang_ptBR`, `Description_Lang_itIT`, `Description_Lang_Unk`, `Description_Lang_Mask`, `AuraDescription_Lang_enUS`, `AuraDescription_Lang_enGB`, `AuraDescription_Lang_koKR`, `AuraDescription_Lang_frFR`, `AuraDescription_Lang_deDE`, `AuraDescription_Lang_enCN`, `AuraDescription_Lang_zhCN`, `AuraDescription_Lang_enTW`, `AuraDescription_Lang_zhTW`, `AuraDescription_Lang_esES`, `AuraDescription_Lang_esMX`, `AuraDescription_Lang_ruRU`, `AuraDescription_Lang_ptPT`, `AuraDescription_Lang_ptBR`, `AuraDescription_Lang_itIT`, `AuraDescription_Lang_Unk`, `AuraDescription_Lang_Mask`, `ManaCostPct`, `StartRecoveryCategory`, `StartRecoveryTime`, `MaxTargetLevel`, `SpellClassSet`, `SpellClassMask_1`, `SpellClassMask_2`, `SpellClassMask_3`, `MaxTargets`, `DefenseType`, `PreventionType`, `StanceBarOrder`, `EffectChainAmplitude_1`, `EffectChainAmplitude_2`, `EffectChainAmplitude_3`, `MinFactionID`, `MinReputation`, `RequiredAuraVision`, `RequiredTotemCategoryID_1`, `RequiredTotemCategoryID_2`, `RequiredAreasID`, `SchoolMask`, `RuneCostID`, `SpellMissileID`, `PowerDisplayID`, `EffectBonusMultiplier_1`, `EffectBonusMultiplier_2`, `EffectBonusMultiplier_3`, `SpellDescriptionVariableID`, `SpellDifficultyID`) VALUES 36 | (@SpellID+7, 0, 0, 7, 2751463424, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 101, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 36, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, -1, 0, 0, 6, 6, 0, 0, 1, 0, 0, 0, 0, 0, 999, 0, 0, 0, 0, 6, 6, 6, 0, 0, 47, 0, 0, 0, 26, 3, 0, 0, 1000, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 38, 0, 20, 0, 0, 'Chains of Woe', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, 'Immobilized.', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, 'Immobilized.', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', 0, 0, 133, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 32, 0, 0, 0, 0, 0, 0, 0, 0); 37 | -------------------------------------------------------------------------------- /include.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/avarishd/mod-brawlers-guild/d413d7ca7183d5f721480475e3a21cb633050eb9/include.sh -------------------------------------------------------------------------------- /pull_request_template.md: -------------------------------------------------------------------------------- 1 | 2 | 3 | ## Changes Proposed: 4 | - 5 | - 6 | 7 | ## Issues Addressed: 8 | 9 | - Closes 10 | 11 | ## SOURCE: 12 | 13 | 14 | ## Tests Performed: 15 | 16 | - 17 | - 18 | 19 | 20 | ## How to Test the Changes: 21 | 22 | 23 | 1. 24 | 2. 25 | 3. 26 | -------------------------------------------------------------------------------- /src/BG_loader.cpp: -------------------------------------------------------------------------------- 1 | void AddBrawlersGuildScripts(); 2 | void AddBrawlersGuildScriptsFights(); 3 | 4 | void Addmod_brawlers_guildScripts() 5 | { 6 | AddBrawlersGuildScripts(); 7 | AddBrawlersGuildScriptsFights(); 8 | } -------------------------------------------------------------------------------- /src/npc_brawlers_guild.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "Configuration/Config.h" 4 | #include "ObjectMgr.h" 5 | #include "CreatureScript.h" 6 | #include "Chat.h" 7 | #include "GameObjectAI.h" 8 | #include "GameObjectScript.h" 9 | #include "PassiveAI.h" 10 | #include "ScriptMgr.h" 11 | #include "ScriptedGossip.h" 12 | #include "ScriptedCreature.h" 13 | #include "World.h" 14 | #include "Player.h" 15 | #include "Chat.h" 16 | 17 | /* TODO 18 | Teleport player's pet too 19 | Correct tuning (requires testing with proper ilvl) (After all creatures for s1 are done (+ rares)) 20 | More scripted fights (outside of SAI) 21 | Custom area fights (e.g void zones closing in the arena) 22 | Seasons 23 | */ 24 | 25 | bool BrawlersGuild_Enabled; 26 | bool BrawlersGuild_AnnounceModule; 27 | bool BrawlersGuild_Gambler; 28 | uint8 BrawlersGuild_CurrentSeason; 29 | 30 | class BrawlersGuild_conf : public WorldScript 31 | { 32 | public: 33 | BrawlersGuild_conf() : WorldScript("BrawlersGuild_conf") { } 34 | 35 | void OnBeforeConfigLoad(bool /*reload*/) override 36 | { 37 | BrawlersGuild_Enabled = sConfigMgr->GetOption("BrawlersGuild.Enabled", true); 38 | BrawlersGuild_AnnounceModule = sConfigMgr->GetOption("BrawlersGuild.Announce", true); 39 | BrawlersGuild_Gambler = sConfigMgr->GetOption("BrawlersGuild.Gambler", true); 40 | BrawlersGuild_CurrentSeason = 1; //sConfigMgr->GetOption("BrawlersGuild.CurrentSeason", 1); 41 | 42 | /* 43 | if (BrawlersGuild_CurrentSeason < 1 || BrawlersGuild_CurrentSeason > 4) 44 | { 45 | LOG_ERROR("error", "Config BrawlersGuild.CurrentSeason has invalid value [{}].", BrawlersGuild_CurrentSeason); 46 | BrawlersGuild_Enabled = false; 47 | } 48 | */ 49 | } 50 | }; 51 | 52 | enum Crowd 53 | { 54 | NPC_CROWD_ARENA_SPECTATOR = 200004, 55 | NPC_CROWD_ARENA_SPECTATOR_2 = 200005, 56 | }; 57 | 58 | enum BrawlersGuild 59 | { 60 | GOSSIP_HELLO = 11201, 61 | QUEST_BRAWLERS_GUILD = 90000, 62 | ITEM_BRAWLERS_GOLD = 43003, 63 | 64 | NPC_RAT = 200002, 65 | NPC_BRAWLERS_GUILD = 200000, 66 | NPC_TARGET_SELECTOR = 200022, 67 | 68 | // Current Player 69 | ACTION_FIND_PLAYER = 1, 70 | EVENT_FIND_PLAYER = 2, // Move queue 71 | EVENT_START = 3, 72 | EVENT_NOT_FOUND = 4, 73 | ACTION_DEFEAT = 7, 74 | 75 | // Other players 76 | ACTION_FIND_OTHER_PLAYERS = 5, 77 | EVENT_FIND_OTHER_PLAYERS = 6, 78 | 79 | // Arena Events 80 | EVENT_ARENA_UNKNOWN = 20, 81 | 82 | // Crowd Events 83 | EVENT_LOAD_ARENA_OBJECTS = 21, 84 | EVENT_CROWD_VICTORY = 22, 85 | EVENT_CROWD_DEFEAT = 23, 86 | 87 | // Gambler 88 | EVENT_GAMBLER_CLOSE_BETTING = 24, 89 | 90 | 91 | // Helix 92 | MY_RANK = 10, 93 | ADD_TO_QUEUE = 11, 94 | TOP_15 = 12, 95 | GOODBYE = 13, 96 | DEL_FROM_QUEUE = 14, 97 | 98 | // Gambler 99 | BET_FOR = 30, 100 | BET_AGAINST = 31, 101 | 102 | SPELL_QUEUE_COOLDOWN = 200001, 103 | SPELL_CHEAP_SHOT = 30986, 104 | SOUND_STEALTH = 3325, 105 | SPELL_MARKER = 42171, // Red Arrow marker 106 | SPELL_GREEN_MARKER = 75779 // Green Arrow Marker 107 | }; 108 | 109 | enum ArenaObjects 110 | { 111 | //GO_ARENA_PILLAR = 900002, 112 | //GO_FROST_TRAP = 202106, 113 | 114 | NPC_FIREWORK_TONK = 200006, // Firework on Victory. // Fire(cosmetic) 46679, 51195 115 | NPC_ARENA_ANNOUNCER = 200007, 116 | NPC_ARENA_GAMBLER = 200008 117 | }; 118 | 119 | enum Announcer 120 | { 121 | ACTION_ANNOUNCE_VICTORY = 1, 122 | ACTION_ANNOUNCE_DEFEAT_TIME = 2, 123 | ACTION_ANNOUNCE_DEFEAT_DEATH = 3 124 | }; 125 | 126 | const Position goArenaPillar[6] = 127 | { 128 | {2192.73f, -4764.74f, 55.13f}, 129 | {2174.02f, -4754.84f, 55.13f}, 130 | {2175.51f, -4771.19f, 55.13f}, 131 | {2183.32f, -4752.23f, 55.13f}, 132 | {2186.81f, -4778.53f, 55.13f}, 133 | {2166.56f, -4763.95f, 55.13f} 134 | }; 135 | 136 | std::vector goFrostTrap = 137 | { 138 | {2191.561f, -4758.389f, 55.13f}, 139 | {2192.785f, -4772.621f, 55.13f}, 140 | {2187.672f, -4778.614f, 55.13f}, 141 | {2180.190f, -4782.718f, 55.13f}, 142 | {2170.234f, -4775.148f, 55.13f}, 143 | {2163.880f, -4767.833f, 55.13f}, 144 | {2166.656f, -4756.252f, 55.13f}, 145 | {2176.379f, -4750.622f, 55.13f}, 146 | {2175.636f, -4758.154f, 55.13f} 147 | }; 148 | 149 | // Player queue list 150 | std::list queueList; 151 | 152 | // Crowd list 153 | std::list spectatorList; 154 | 155 | // Firework tonks list 156 | std::list fireworkList; 157 | 158 | // Gambler - Bet FOR 159 | std::list betFor; 160 | 161 | // Gambler - Bet AGAINST 162 | std::list betAgainst; 163 | 164 | // Crowd emotes 165 | const uint32 crowdEmotes[5] = {75, 11, 4, 18, 5}; 166 | // Crowd Cheer sounds 167 | const uint32 crowdCheer[4] = {8571, 8572, 8573, 8574}; 168 | 169 | // The current player that is about to/already fighting in the arena. 170 | Player* CurrentPlayer = nullptr; 171 | 172 | // Teleport position when starting 173 | const Position playerSpawnPos = {2194.21f, -4751.58f, 55.13f, 3.83f}; 174 | 175 | // Reset position 176 | const Position playerResetPos = {2208.17f, -4778.42f, 65.41f, 3.1f}; 177 | 178 | // Arena mobs spawn position. 179 | const Position spawnPos = {2172, -4786, 55.13f, 1.15f}; 180 | 181 | // [Season][Rank][Creature] 182 | const uint32 Rank[1][8][4] = 183 | { 184 | // Season 1 185 | { 186 | // Rank 1 - Bob, Smiley, Dungeon Master Billey, Zerg 187 | {200100, 200101, 200102, 200103}, 188 | // Rank 2 - Electrified Golem, Bomb Bot, Projection Unit (+pets), King Dash 189 | {200104, 200105, 200106 /*200107*/, 200108}, 190 | // Rank 3 - Mazhareen, Gorenog, Darkfeather, Ming Li 191 | {200109, 200110, 200111, 200112}, 192 | // Rank 4 - Crash, Illaria the Illusionist (+pets), Circuitron, Terror 193 | {200113, 200114 /*200115*/, 200116, 200117}, 194 | // Rank 5 - Shadowthorn, Leper Gnome Quin, Darkfang (+pets), Klunk 195 | {200118, 200119, 200120 /*200121*/, 200122}, 196 | // Rank 6 - Shortneck, Shadowfeather (+pets), Scaleslash, Carl 197 | {200123, 200124 /*200125*/, 200126, 200127}, 198 | // Rank 7 - Springcoil (+ Gadgetclank + pets), Boltstrike (+pets), Tyson Sanders (+pets), T800 Multi-Mode Robot 199 | {200128 /*200129, 200130*/, 200131 /*200132*/, 200133 /*200134*/, 200135}, 200 | // Rank 8 - Lord Nelly (+pets), Karsh, Rom'ogg Bonecrusher (+pets), Deathstealer (+pets) 201 | {200136 /*200137*/, 200138, 200139 /*200140*/, 200141 /*200142*/}, 202 | }, 203 | 204 | /* 205 | // Season 2 NYI 206 | { 207 | {60011, 60012, 60013, 60014}, 208 | {60011, 60012, 60013, 60014}, 209 | {60011, 60012, 60013, 60014}, 210 | {60011, 60012, 60013, 60014}, 211 | {60011, 60012, 60013, 60014}, 212 | {60011, 60012, 60013, 60014}, 213 | {60011, 60012, 60013, 60014}, 214 | {60011, 60012, 60013, 60014}, 215 | } 216 | */ 217 | }; 218 | 219 | /* 220 | // [Season][Creature] - Class fights, buffed each 5 ranks 221 | const uint32 RankRare[2][10] 222 | { 223 | // Season 1 224 | {}, 225 | 226 | // Season 2 227 | {}, 228 | }; 229 | */ 230 | 231 | // https://github.com/azerothcore/azerothcore-wotlk/blob/master/src/server/game/Scripting/ScriptMgr.h 232 | class BrawlersGuild_Announce : public PlayerScript 233 | { 234 | public: 235 | 236 | BrawlersGuild_Announce() : PlayerScript("BrawlersGuild_Announce") {} 237 | 238 | // Announce Module 239 | void OnLogin(Player* player) override 240 | { 241 | if (BrawlersGuild_AnnounceModule) 242 | { 243 | ChatHandler(player->GetSession()).SendSysMessage("This server is running the |cffe67b09Brawlers Guild|r module."); 244 | } 245 | } 246 | 247 | // Remove players that join group activities or logout 248 | void OnQueueRandomDungeon(Player* player, uint32 & rDungeonId) override 249 | { 250 | if (BrawlersGuild_Enabled && CurrentPlayer) 251 | { 252 | for (Player* p : queueList) 253 | { 254 | if (p == player) 255 | { 256 | queueList.remove(player); 257 | ChatHandler(player->GetSession()).SendNotification("You have been removed from the queue."); 258 | player->CastSpell(player, SPELL_QUEUE_COOLDOWN, true); // 60 second cooldown to prevent queue abuse. 259 | break; 260 | } 261 | } 262 | } 263 | } 264 | 265 | void OnAddToBattleground(Player* player, Battleground* bg) override 266 | { 267 | if (BrawlersGuild_Enabled && CurrentPlayer) 268 | { 269 | for (Player* p : queueList) 270 | { 271 | if (p == player) 272 | { 273 | queueList.remove(player); 274 | ChatHandler(player->GetSession()).SendNotification("You have been removed from the queue."); 275 | player->CastSpell(player, SPELL_QUEUE_COOLDOWN, true); // 60 second cooldown to prevent queue abuse. 276 | break; 277 | } 278 | } 279 | } 280 | } 281 | 282 | void OnLogout(Player* player) override 283 | { 284 | if (BrawlersGuild_Enabled && CurrentPlayer) 285 | { 286 | for (Player* p : queueList) 287 | { 288 | if (p == player) 289 | { 290 | queueList.remove(player); 291 | break; 292 | } 293 | } 294 | } 295 | } 296 | 297 | void OnPlayerJoinBG(Player* player) override 298 | { 299 | if (BrawlersGuild_Enabled && CurrentPlayer) 300 | { 301 | for (Player* p : queueList) 302 | { 303 | if (p == player) 304 | { 305 | queueList.remove(player); 306 | ChatHandler(player->GetSession()).SendNotification("You have been removed from the queue."); 307 | player->CastSpell(player, SPELL_QUEUE_COOLDOWN, true); // 60 second cooldown to prevent queue abuse. 308 | break; 309 | } 310 | } 311 | } 312 | } 313 | 314 | // On Player Death, checks only for the CurrentPlayer. 315 | void OnPlayerJustDied(Player* player) override 316 | { 317 | if (BrawlersGuild_Enabled && CurrentPlayer && player == CurrentPlayer) 318 | { 319 | uint32 mapId = player->GetMapId(); 320 | uint32 areaId = player->GetAreaId(); 321 | 322 | // Check only for Kalimdor, Orgrimmar /// @TOOD: Find a way to get subzone name (e.g "Ring of Valor") 323 | if (mapId == 1 && areaId == 1637) 324 | { 325 | float z = player->GetPositionZ(); 326 | 327 | // Center of the arena and ground elevation + jump Z. 328 | if (player->IsInRange2d(2178.2f, -4764.79f, 0, 30.0f) && (z >= 55.0f && z <= 57.0f)) 329 | { 330 | if (Creature* t = player->FindNearestCreature(NPC_TARGET_SELECTOR, 30)) 331 | { 332 | t->AI()->DoAction(ACTION_DEFEAT); 333 | } 334 | } 335 | } 336 | } 337 | } 338 | }; 339 | 340 | class npc_brawlers_guild : public CreatureScript 341 | { 342 | public: 343 | npc_brawlers_guild() : CreatureScript("npc_brawlers_guild") { } 344 | 345 | bool OnGossipHello(Player* player, Creature* creature) override 346 | { 347 | if (creature->IsQuestGiver()) 348 | player->PrepareQuestMenu(creature->GetGUID()); 349 | 350 | if (player->GetQuestStatus(QUEST_BRAWLERS_GUILD) == QUEST_STATUS_REWARDED) 351 | { 352 | if (BrawlersGuild_Enabled) 353 | { 354 | if (!player->HasAura(SPELL_QUEUE_COOLDOWN)) 355 | { 356 | // Check if player is not in the queue. 357 | if ((std::find(queueList.begin(), queueList.end(), player) == queueList.end())) 358 | { 359 | // Do not allow to queue if at rank 0. (Require to buy X from shop to restore rank to 1.) 360 | QueryResult result = CharacterDatabase.Query("SELECT `Rank` FROM `brawlersguild` WHERE `CharacterGUID` = '{}';", player->GetGUID().GetCounter()); 361 | if (result) 362 | { 363 | Field *fields = result->Fetch(); 364 | uint32 rank = fields[0].Get(); 365 | if (rank != 0) 366 | { 367 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, "Sign me up for a fight!", GOSSIP_SENDER_MAIN, ADD_TO_QUEUE); 368 | } 369 | else 370 | { 371 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, "You cannot queue at rank 0, visit the shop to learn more!", GOSSIP_SENDER_MAIN, 0); 372 | } 373 | } 374 | } 375 | // Already in queue, 376 | else 377 | { 378 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, "Remove me from the queue!", GOSSIP_SENDER_MAIN, DEL_FROM_QUEUE); 379 | } 380 | } 381 | else 382 | { 383 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, "You will be allowed to queue in 1 minute.", GOSSIP_SENDER_MAIN, 0); 384 | } 385 | } 386 | else 387 | { 388 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, "Queue is currently disabled.", GOSSIP_SENDER_MAIN, 0); 389 | } 390 | 391 | // Queue size 392 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, "-----------------", GOSSIP_SENDER_MAIN, 0); 393 | std::stringstream size; 394 | size << "Current queue size: " << queueList.size(); 395 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, size.str(), GOSSIP_SENDER_MAIN, 0); 396 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, "-----------------", GOSSIP_SENDER_MAIN, 0); 397 | 398 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, "What is my current rank progress?", GOSSIP_SENDER_MAIN, MY_RANK); 399 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, "Show me top 15!", GOSSIP_SENDER_MAIN, TOP_15); 400 | AddGossipItemFor(player, GOSSIP_ICON_CHAT, "I am at the wrong place.", GOSSIP_SENDER_MAIN, GOODBYE); 401 | } 402 | SendGossipMenuFor(player, GOSSIP_HELLO, creature->GetGUID()); 403 | 404 | return true; 405 | } 406 | 407 | bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action) override 408 | { 409 | ClearGossipMenuFor(player); 410 | 411 | if (action == ADD_TO_QUEUE) 412 | { 413 | if (player->ToPlayer()) 414 | { 415 | queueList.push_back(player); 416 | ChatHandler(player->GetSession()).SendNotification("You have been added to the queue."); 417 | 418 | if (Creature* t = creature->FindNearestCreature(NPC_TARGET_SELECTOR, 40)) 419 | { 420 | t->AI()->DoAction(ACTION_FIND_PLAYER); 421 | } 422 | } 423 | 424 | CloseGossipMenuFor(player); 425 | } 426 | 427 | if (action == DEL_FROM_QUEUE) 428 | { 429 | if (player->ToPlayer()) 430 | { 431 | queueList.remove(player); 432 | ChatHandler(player->GetSession()).SendNotification("You have been removed from the queue."); 433 | player->CastSpell(player, SPELL_QUEUE_COOLDOWN, true); // 60 second cooldown to prevent queue abuse. 434 | } 435 | 436 | CloseGossipMenuFor(player); 437 | } 438 | 439 | if (action == MY_RANK) 440 | { 441 | QueryResult result = CharacterDatabase.Query("SELECT `Rank`, `Progress` FROM `brawlersguild` WHERE `CharacterGUID` = '{}'", player->GetGUID().GetCounter()); 442 | if (!result) 443 | { 444 | AddGossipItemFor(player, GOSSIP_ICON_CHAT, "You are currently unranked.", GOSSIP_SENDER_MAIN, GOODBYE); 445 | SendGossipMenuFor(player, GOSSIP_HELLO, creature->GetGUID()); 446 | } 447 | else 448 | { 449 | Field *fields = result->Fetch(); 450 | std::string rank = fields[0].Get(); 451 | std::string progress = fields[1].Get(); 452 | uint32 reqprogress = sConfigMgr->GetOption("BrawlersGuild.RankRequired", 10); 453 | 454 | std::stringstream buf; 455 | buf << "Current rank: " << rank; 456 | 457 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, buf.str(), GOSSIP_SENDER_MAIN, GOODBYE); 458 | buf.str(""); 459 | buf << "Progress towards next rank: " << progress << " / " << reqprogress; 460 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, buf.str(), GOSSIP_SENDER_MAIN, GOODBYE); 461 | SendGossipMenuFor(player, GOSSIP_HELLO, creature->GetGUID()); 462 | } 463 | } 464 | 465 | if (action == TOP_15) 466 | { 467 | QueryResult result = CharacterDatabase.Query("SELECT `CharacterGUID`, `Rank` FROM `brawlersguild` ORDER BY `Rank` DESC LIMIT 15"); 468 | if (!result) 469 | { 470 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, "Position - Name - Rank", GOSSIP_SENDER_MAIN, GOODBYE); 471 | AddGossipItemFor(player, GOSSIP_ICON_CHAT, "Leaderboard is empty.", GOSSIP_SENDER_MAIN, GOODBYE); 472 | SendGossipMenuFor(player, GOSSIP_HELLO, creature->GetGUID()); 473 | } 474 | else 475 | { 476 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, "Position - Name - Rank", GOSSIP_SENDER_MAIN, GOODBYE); 477 | uint32 top = 1; 478 | do { 479 | Field *fields = result->Fetch(); 480 | ObjectGuid pguid = ObjectGuid::Create((*result)[0].Get()); 481 | std::string rank = fields[1].Get(); 482 | 483 | std::string playername; 484 | sCharacterCache->GetCharacterNameByGuid(pguid, playername); 485 | 486 | std::stringstream buffer; 487 | buffer << top << ". [" << playername << "] - " << rank; 488 | 489 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, buffer.str(), GOSSIP_SENDER_MAIN, GOODBYE); 490 | 491 | top++; 492 | } while(result->NextRow()); 493 | } 494 | SendGossipMenuFor(player, GOSSIP_HELLO, creature->GetGUID()); 495 | } 496 | 497 | if (action == GOODBYE) 498 | { 499 | CloseGossipMenuFor(player); 500 | } 501 | 502 | return true; 503 | } 504 | 505 | bool OnQuestReward(Player* player, Creature* /*creature*/, const Quest* Quest, uint32 /*slot*/) override 506 | { 507 | if (Quest->GetQuestId() == QUEST_BRAWLERS_GUILD) 508 | { 509 | player->AddItem(ITEM_BRAWLERS_GOLD, sConfigMgr->GetOption("BrawlersGuild.CoinsStartingQuestReward", 10)); 510 | 511 | // Register player upon quest completion 512 | QueryResult result = CharacterDatabase.Query("SELECT `CharacterGUID` FROM `brawlersguild` WHERE `CharacterGUID` = '{}'", player->GetGUID().GetCounter()); 513 | if (!result) 514 | { 515 | // Award 2 progress, in order to prevent instant downranking on first loss. 516 | // GUID, Progress, Rank 517 | CharacterDatabase.DirectExecute("REPLACE INTO `brawlersguild` (`CharacterGUID`, `Progress`, `Rank`) VALUES ('{}', '2', '1');", player->GetGUID().GetCounter()); 518 | } 519 | } 520 | return false; 521 | } 522 | 523 | 524 | private: 525 | //bool ArenaActive = false; 526 | }; 527 | 528 | class npc_player_detector : public CreatureScript 529 | { 530 | public: 531 | npc_player_detector() : CreatureScript("npc_player_detector") { } 532 | 533 | struct npc_player_detectorAI : public ScriptedAI 534 | { 535 | npc_player_detectorAI(Creature* creature) : ScriptedAI(creature), summons(me) 536 | { 537 | events.ScheduleEvent(EVENT_LOAD_ARENA_OBJECTS, 2s); 538 | } 539 | 540 | 541 | // Maybe add custom announcement per summon, maybe. 542 | void JustSummoned(Creature* cr) override 543 | { 544 | summons.Summon(cr); 545 | 546 | /* === [Core] Disabled due to creatures not pathing around objects. (Still blocks LoS though) === 547 | 548 | // Arena Objects, automatically cleaned with creature despawn. 549 | if (cr->GetEntry() != 60015) // Exceptions for: Crash 550 | { 551 | uint8 rng = urand(0,5); 552 | float rngO = frand(0.0f, 2 * M_PI); 553 | cr->SummonGameObject(GO_ARENA_PILLAR, goArenaPillar[rng].GetPositionX(), goArenaPillar[rng].GetPositionY(), goArenaPillar[rng].GetPositionZ(), rngO, 0, 0, 0, 0, 0, false, GO_SUMMON_TIMED_OR_CORPSE_DESPAWN); 554 | } 555 | */ 556 | 557 | /* 558 | // Summon Traps 559 | Acore::Containers::RandomShuffle(goFrostTrap); // Randomize every arena 560 | for (uint8 i = 0; i < urand(1,2); ++i) 561 | { 562 | cr->SummonGameObject(GO_FROST_TRAP, goFrostTrap[i].GetPositionX(), goFrostTrap[i].GetPositionY(), goFrostTrap[i].GetPositionZ(), 0, 0, 0, 0, 0, 0, false, GO_SUMMON_TIMED_OR_CORPSE_DESPAWN); 563 | } 564 | */ 565 | } 566 | 567 | // Defeat by timing out. 568 | void SummonedCreatureDespawn(Creature* /*summon*/) override 569 | { 570 | if (CurrentPlayer && CurrentPlayer->IsAlive()) // Prevent double callback 571 | { 572 | Defeat(true); 573 | } 574 | } 575 | 576 | // We still lose if we evade the creature. 577 | void SummonedCreatureEvade(Creature* summon) override 578 | { 579 | summon->DespawnOrUnsummon(); 580 | } 581 | 582 | // Victory by kill 583 | void SummonedCreatureDies(Creature* summon, Unit* /*killer*/) 584 | { 585 | if (CurrentPlayer) 586 | { 587 | Victory(CurrentPlayer); 588 | queueList.remove(CurrentPlayer); 589 | CurrentPlayer = nullptr; 590 | events.ScheduleEvent(EVENT_FIND_PLAYER, 2s); 591 | } 592 | 593 | if (summon) 594 | { 595 | summon->DespawnOrUnsummon(); 596 | } 597 | } 598 | 599 | // Gambler - betFor & betAgainst 600 | void CalculateBets(bool outcome) 601 | { 602 | if (outcome) // Win 603 | { 604 | for (Player* player : betFor) 605 | { 606 | if (player) 607 | { 608 | if (player->GetFreeInventorySpace()) 609 | { 610 | ChatHandler(player->GetSession()).SendNotification("You've won your bet. (+5 Brawler's Gold)"); 611 | player->AddItem(ITEM_BRAWLERS_GOLD, 10); 612 | } 613 | } 614 | } 615 | for (Player* player : betAgainst) 616 | { 617 | if (player) 618 | { 619 | ChatHandler(player->GetSession()).SendNotification("You've lost your bet. (-5 Brawler's Gold)"); 620 | } 621 | } 622 | } 623 | else // Lose 624 | { 625 | for (Player* player : betAgainst) 626 | { 627 | if (player) 628 | { 629 | if (player->GetFreeInventorySpace()) 630 | { 631 | ChatHandler(player->GetSession()).SendNotification("You've won your bet. (+5 Brawler's Gold)"); 632 | player->AddItem(ITEM_BRAWLERS_GOLD, 10); 633 | } 634 | } 635 | } 636 | for (Player* player : betFor) 637 | { 638 | if (player) 639 | { 640 | ChatHandler(player->GetSession()).SendNotification("You've lost your bet. (-5 Brawler's Gold)"); 641 | } 642 | } 643 | } 644 | 645 | betFor.clear(); 646 | betAgainst.clear(); 647 | } 648 | 649 | // Rank Increase handler 650 | void Victory(Player* player) 651 | { 652 | if (player) 653 | { 654 | me->Whisper("Victory!", LANG_UNIVERSAL, player, true); 655 | player->AddItem(ITEM_BRAWLERS_GOLD, sConfigMgr->GetOption("BrawlersGuild.CoinsVictoryReward", 2)); 656 | player->NearTeleportTo(playerResetPos.GetPositionX(), playerResetPos.GetPositionY(), playerResetPos.GetPositionZ(), playerResetPos.GetOrientation()); 657 | 658 | QueryResult result = CharacterDatabase.Query("SELECT `Rank`, `Progress` FROM `brawlersguild` WHERE `CharacterGUID` = '{}';", player->GetGUID().GetCounter()); 659 | if (result) 660 | { 661 | Field *fields = result->Fetch(); 662 | uint32 rank = fields[0].Get(); 663 | uint32 progress = fields[1].Get(); 664 | 665 | // Update Rank (and Progress) if we reach the threshold, progress always goes to 0. 666 | if (progress + sConfigMgr->GetOption("BrawlersGuild.RankWin", 1) >= (sConfigMgr->GetOption("BrawlersGuild.RankRequired", 10))) 667 | { 668 | rank += 1; 669 | std::stringstream rankup; 670 | rankup << "You've reached Rank " << rank << "!"; 671 | 672 | me->Whisper(rankup.str(), LANG_UNIVERSAL, player, true); 673 | CharacterDatabase.DirectExecute("UPDATE `brawlersguild` SET `Progress` = '0', `Rank` = '{}' WHERE `CharacterGUID` = '{}';", rank, player->GetGUID().GetCounter()); 674 | } 675 | // Update Progress 676 | else 677 | { 678 | progress += sConfigMgr->GetOption("BrawlersGuild.RankWin", 1); 679 | CharacterDatabase.DirectExecute("UPDATE `brawlersguild` SET `Progress` = '{}' WHERE `CharacterGUID` = '{}';", progress, player->GetGUID().GetCounter()); 680 | } 681 | } 682 | 683 | if (Creature* ann = ObjectAccessor::GetCreature(*me, announcer)) 684 | { 685 | ann->AI()->DoAction(ACTION_ANNOUNCE_VICTORY); 686 | } 687 | 688 | if (roll_chance_i(10)) 689 | me->PlayRadiusSound(crowdCheer[urand(0,3)], 50); 690 | 691 | Firework(); 692 | CrowdReaction(); 693 | CalculateBets(true); 694 | } 695 | } 696 | 697 | // Rank deduction handler // true = timed out, false = player died 698 | void Defeat(bool type) 699 | { 700 | if (CurrentPlayer) 701 | { 702 | CurrentPlayer->NearTeleportTo(playerResetPos.GetPositionX(), playerResetPos.GetPositionY(), playerResetPos.GetPositionZ(), playerResetPos.GetOrientation()); 703 | std::string msg = type ? "You ran out of time!" : "You have failed."; 704 | me->Whisper(msg, LANG_UNIVERSAL, CurrentPlayer, true); 705 | 706 | if (sConfigMgr->GetOption("BrawlersGuild.RankLose", 2) != 0) 707 | { 708 | QueryResult result = CharacterDatabase.Query("SELECT `Rank`, `Progress` FROM `brawlersguild` WHERE `CharacterGUID` = '{}';", CurrentPlayer->GetGUID().GetCounter()); 709 | if (result) 710 | { 711 | Field *fields = result->Fetch(); 712 | uint32 rank = fields[0].Get(); 713 | int32 progress = fields[1].Get(); // Required to go negative, in order to downrank. 714 | 715 | // Update Rank (and Progress) if we reach the threshold, progress always goes to 0. 716 | if (progress - sConfigMgr->GetOption("BrawlersGuild.RankLose", 2) < 0) 717 | { 718 | rank -= 1; 719 | std::stringstream rankup; 720 | rankup << "You've downranked to Rank " << rank << "!"; 721 | 722 | me->Whisper(rankup.str(), LANG_UNIVERSAL, CurrentPlayer, true); 723 | CharacterDatabase.DirectExecute("UPDATE `brawlersguild` SET `Progress` = '0', `Rank` = '{}' WHERE `CharacterGUID` = '{}';", rank, CurrentPlayer->GetGUID().GetCounter()); 724 | } 725 | // Update Progress 726 | else 727 | { 728 | progress -= sConfigMgr->GetOption("BrawlersGuild.RankLose", 2); 729 | CharacterDatabase.DirectExecute("UPDATE `brawlersguild` SET `Progress` = '{}' WHERE `CharacterGUID` = '{}';", progress, CurrentPlayer->GetGUID().GetCounter()); 730 | } 731 | } 732 | } 733 | 734 | if (Creature* ann = ObjectAccessor::GetCreature(*me, announcer)) 735 | { 736 | ann->AI()->DoAction(type ? ACTION_ANNOUNCE_DEFEAT_TIME : ACTION_ANNOUNCE_DEFEAT_DEATH); 737 | } 738 | 739 | // Gambler - Open Betting (Just in case) 740 | if (Creature* gam = ObjectAccessor::GetCreature(*me, gambler)) 741 | { 742 | gam->RemoveAura(SPELL_MARKER); 743 | } 744 | 745 | CrowdReaction(); 746 | queueList.remove(CurrentPlayer); 747 | summons.DespawnAll(); 748 | CurrentPlayer = nullptr; 749 | events.ScheduleEvent(EVENT_FIND_PLAYER, 2s); 750 | CalculateBets(false); 751 | } 752 | } 753 | 754 | void Firework() 755 | { 756 | if (!fireworkList.empty()) 757 | { 758 | for (Creature* tonks : fireworkList) 759 | { 760 | tonks->AI()->SetData(1, 1); 761 | } 762 | } 763 | } 764 | 765 | void CrowdReaction() 766 | { 767 | if (!spectatorList.empty()) 768 | { 769 | for (Creature* spectators : spectatorList) 770 | { 771 | if (roll_chance_i(50)) 772 | { 773 | if (spectators) 774 | { 775 | uint8 rng = urand(0,4); 776 | spectators->HandleEmoteCommand(crowdEmotes[rng]); 777 | 778 | if (roll_chance_i(50)) 779 | { 780 | spectators->HandleEmoteCommand(26); //EMOTE_STATE_STAND 781 | } 782 | } 783 | } 784 | } 785 | } 786 | } 787 | 788 | void DoAction(int32 action) 789 | { 790 | if (action == ACTION_FIND_PLAYER) 791 | { 792 | events.ScheduleEvent(EVENT_FIND_PLAYER, 2s); 793 | } 794 | 795 | if (action == ACTION_DEFEAT) 796 | { 797 | Defeat(false); 798 | } 799 | } 800 | 801 | void AddRatGossip(bool s) 802 | { 803 | if (Creature* rat = me->FindNearestCreature(NPC_RAT, 20)) 804 | if (s) 805 | { 806 | if (!rat->HasNpcFlag(UNIT_NPC_FLAG_GOSSIP)) 807 | rat->SetNpcFlag(UNIT_NPC_FLAG_GOSSIP); 808 | } 809 | else 810 | { 811 | if (rat->HasNpcFlag(UNIT_NPC_FLAG_GOSSIP)) 812 | rat->RemoveNpcFlag(UNIT_NPC_FLAG_GOSSIP); 813 | } 814 | } 815 | 816 | void UpdateAI(uint32 diff) override 817 | { 818 | events.Update(diff); 819 | { 820 | { 821 | switch (events.ExecuteEvent()) 822 | { 823 | case EVENT_FIND_PLAYER: 824 | { 825 | if (!CurrentPlayer) 826 | { 827 | for (Player* player : queueList) 828 | { 829 | if (player) 830 | { 831 | CurrentPlayer = player; 832 | break; 833 | } 834 | else 835 | { 836 | // Remove player from queue list 837 | queueList.remove(CurrentPlayer); 838 | CurrentPlayer = nullptr; 839 | events.ScheduleEvent(EVENT_FIND_PLAYER, 2s); 840 | } 841 | } 842 | 843 | if (CurrentPlayer) 844 | { 845 | CurrentPlayer->NearTeleportTo(playerSpawnPos.GetPositionX(), playerSpawnPos.GetPositionY(), playerSpawnPos.GetPositionZ(), playerSpawnPos.GetOrientation()); 846 | events.ScheduleEvent(EVENT_START, 2s); 847 | events.ScheduleEvent(EVENT_NOT_FOUND, 5s); 848 | } 849 | } 850 | break; 851 | } 852 | 853 | // Something went wrong 854 | case EVENT_NOT_FOUND: 855 | { 856 | if (CurrentPlayer) 857 | { 858 | CurrentPlayer->NearTeleportTo(playerResetPos.GetPositionX(), playerResetPos.GetPositionY(), playerResetPos.GetPositionZ(), playerResetPos.GetOrientation()); 859 | queueList.remove(CurrentPlayer); 860 | CurrentPlayer = nullptr; 861 | } 862 | 863 | events.ScheduleEvent(EVENT_FIND_PLAYER, 2s); 864 | AddRatGossip(true); 865 | summons.DespawnAll(); 866 | break; 867 | } 868 | case EVENT_START: 869 | { 870 | if (CurrentPlayer) 871 | { 872 | QueryResult result = CharacterDatabase.Query("SELECT `Rank` FROM `brawlersguild` WHERE `CharacterGUID` = '{}';", CurrentPlayer->GetGUID().GetCounter()); 873 | 874 | if (result) 875 | { 876 | Field *fields = result->Fetch(); 877 | uint32 rank = fields[0].Get(); 878 | 879 | // Max rank is 8, anything above that start spawning rares, with increased chance per higher rank (NYI) 880 | me->SummonCreature(Rank[BrawlersGuild_CurrentSeason - 1][rank - 1][urand(0,3)], spawnPos.GetPositionX(), spawnPos.GetPositionY(), spawnPos.GetPositionZ(), 1.1, TEMPSUMMON_TIMED_DESPAWN, 1000 * sConfigMgr->GetOption("BrawlersGuild.FightDuration", 120)); 881 | 882 | AddRatGossip(false); 883 | me->Whisper("Begin!", LANG_UNIVERSAL, CurrentPlayer, true); 884 | 885 | // Gambler - Open Betting 886 | if (Creature* gam = ObjectAccessor::GetCreature(*me, gambler)) 887 | { 888 | betFor.clear(); 889 | betAgainst.clear(); 890 | me->AddAura(SPELL_MARKER, gam); 891 | } 892 | events.ScheduleEvent(EVENT_GAMBLER_CLOSE_BETTING, 10s); 893 | } 894 | else 895 | { 896 | // Something went wrong 897 | events.ScheduleEvent(EVENT_FIND_PLAYER, 2s); 898 | AddRatGossip(true); 899 | } 900 | 901 | events.CancelEvent(EVENT_NOT_FOUND); 902 | } 903 | break; 904 | } 905 | case EVENT_ARENA_UNKNOWN: 906 | { 907 | //uint8 rng = urand(0,5); 908 | //me->SummonGameObject(GO_ARENA_PILLAR, goArenaPillar[rng].GetPositionX(), goArenaPillar[rng].GetPositionY(), goArenaPillar[rng].GetPositionZ(), 0, 0, 0, 0, 0, 0); 909 | break; 910 | } 911 | // Ran only once 912 | case EVENT_LOAD_ARENA_OBJECTS: 913 | { 914 | me->GetCreatureListWithEntryInGrid(spectatorList, NPC_CROWD_ARENA_SPECTATOR, 50); 915 | me->GetCreatureListWithEntryInGrid(spectatorList, NPC_CROWD_ARENA_SPECTATOR_2, 50); 916 | me->GetCreatureListWithEntryInGrid(fireworkList, NPC_FIREWORK_TONK, 40); 917 | if (Creature* c = me->FindNearestCreature(NPC_ARENA_ANNOUNCER, 40)) 918 | { 919 | announcer = c->GetGUID(); 920 | } 921 | if (Creature* c = me->FindNearestCreature(NPC_ARENA_GAMBLER, 40)) 922 | { 923 | gambler = c->GetGUID(); 924 | } 925 | break; 926 | } 927 | case EVENT_GAMBLER_CLOSE_BETTING: 928 | { 929 | if (Creature* gam = ObjectAccessor::GetCreature(*me, gambler)) 930 | { 931 | gam->RemoveAura(SPELL_MARKER); 932 | } 933 | break; 934 | } 935 | case EVENT_CROWD_DEFEAT: // do it as a function or in victory/defeat 936 | { 937 | break; 938 | } 939 | } 940 | } 941 | } 942 | } 943 | 944 | private: 945 | EventMap events; 946 | SummonList summons; 947 | ObjectGuid announcer; 948 | ObjectGuid gambler; 949 | }; 950 | 951 | CreatureAI* GetAI(Creature* creature) const override 952 | { 953 | return new npc_player_detectorAI (creature); 954 | } 955 | }; 956 | 957 | // Checks for players (and pets) that are not supposed to be in the arena. 958 | class npc_other_players_detector : public CreatureScript 959 | { 960 | public: 961 | npc_other_players_detector() : CreatureScript("npc_other_players_detector") { } 962 | 963 | struct npc_other_players_detectorAI : public ScriptedAI 964 | { 965 | npc_other_players_detectorAI(Creature* creature) : ScriptedAI(creature) {} 966 | 967 | void MoveInLineOfSight(Unit* who) override 968 | { 969 | if (who) 970 | { 971 | if (me->GetExactDist2d(who) <= 29.0f) 972 | { 973 | if (who->IsPlayer()) 974 | { 975 | if (!who->ToPlayer()->IsGameMaster()) 976 | { 977 | if (me->GetMap()->isInLineOfSight(me->GetPositionX(), me->GetPositionY(), me->GetPositionZ(), who->GetPositionX(), who->GetPositionY(), who->GetPositionZ(), 2, LINEOFSIGHT_CHECK_VMAP , VMAP::ModelIgnoreFlags::Nothing)) 978 | { 979 | if (who->ToPlayer() != CurrentPlayer) 980 | { 981 | me->PlayDirectSound(SOUND_STEALTH, who->ToPlayer()); 982 | me->AddAura(SPELL_CHEAP_SHOT, who); 983 | who->NearTeleportTo(playerResetPos.GetPositionX(), playerResetPos.GetPositionY(), playerResetPos.GetPositionZ(), playerResetPos.GetOrientation()); 984 | } 985 | } 986 | } 987 | } 988 | if (who->IsPet()) 989 | { 990 | if (me->GetMap()->isInLineOfSight(me->GetPositionX(), me->GetPositionY(), me->GetPositionZ(), who->GetPositionX(), who->GetPositionY(), who->GetPositionZ(), 2, LINEOFSIGHT_CHECK_VMAP , VMAP::ModelIgnoreFlags::Nothing)) 991 | { 992 | if (who->ToCreature()->GetOwner() != CurrentPlayer) 993 | { 994 | who->ToCreature()->DespawnOrUnsummon(); 995 | } 996 | } 997 | } 998 | } 999 | } 1000 | } 1001 | }; 1002 | 1003 | CreatureAI* GetAI(Creature* creature) const override 1004 | { 1005 | return new npc_other_players_detectorAI (creature); 1006 | } 1007 | }; 1008 | 1009 | const std::string annVictory[30] = 1010 | { 1011 | {"Ladies and gentlemen, let's give it up for our incredible champion!"}, 1012 | {"And there we have it, folks! Another victorious win for the fighter of the century!"}, 1013 | {"A stunning display of skill and power! Our fighter takes home the well-deserved victory!"}, 1014 | {"What an extraordinary performance! Our fighter has triumphed once again, proving their unparalleled dominance!"}, 1015 | {"The crowd goes wild as our warrior emerges triumphant! What a mesmerizing show!"}, 1016 | {"Incredible! Our fighter outshines the competition, solidifying their place in the hall of champions"}, 1017 | {"The roar of the crowd echoes the triumph of our champion! A well-deserved triumph!"}, 1018 | {"Unbelievable! Our fighter emerged as the ultimate victor, leaving a trail of awe and admiration!"}, 1019 | {"A resounding victory! Our fighter has electrified this arena with their indomitable spirit!"}, 1020 | {"It's official, folks! Our fighter has risen to the top, leaving their opponents in awe and us in pure amazement!"}, 1021 | {"And the champion rises, a true warrior in the arena!"}, 1022 | {"With heart and grit, he has secured his victory tonight!"}, 1023 | {"A phenomenal performance! He truly showcased his skill and determination!"}, 1024 | {"What an incredible display of strength and finesse!"}, 1025 | {"He fought like a lion, and the crown is now his!"}, 1026 | {"Against all odds, he has emerged victorious!"}, 1027 | {"A masterclass in strategy and power – well done, champion!"}, 1028 | {"He has claimed his place at the top with unwavering resolve!"}, 1029 | {"Tonight, he proved that hard work pays off!"}, 1030 | {"With every punch, he carved his path to victory!"}, 1031 | {"A relentless spirit has brought him triumph this evening!"}, 1032 | {"What an electrifying performance! The crowd is on their feet!"}, 1033 | {"A true testament to his dedication and skill!"}, 1034 | {"He’s not just a fighter; he’s a phenomenon!"}, 1035 | {"With courage, he has written a new chapter in his legacy!"}, 1036 | {"He’s claimed his destiny with style and valor!"}, 1037 | {"A brilliant showcase of tenacity and talent!"}, 1038 | {"Against the odds, he has written his own victory story!"}, 1039 | {"He is the embodiment of strength and determination!"}, 1040 | {"Tonight, he has shown the world what it means to be a champion!"} 1041 | }; 1042 | 1043 | const std::string annTime[10] = 1044 | { 1045 | {"Time's up! Don't worry, I'm sure the excitement will continue... somewhere else."}, 1046 | {"Well, folks, that's all she wrote. Time ran out, and so did our hopes for a thrilling finish."}, 1047 | {"And the clock hits zero! It's like watching paint dry, but with more disappointment."}, 1048 | {"Time flies when you're... bored out of your mind. Thanks for making the minutes feel like hours!"}, 1049 | {"Time has expired, and so has our patience. Let's hope the action picks up next time!"}, 1050 | {"Tick tock, tick tock, and just like that, the excitement went down the drain."}, 1051 | {"Time ran out, just like my enthusiasm. Let's keep the pity party going, shall we?"}, 1052 | {"No more time left! Reality check: this could've been better spent doing something else."}, 1053 | {"Time's up, folks! File this game under 'forgettable' and move on with your lives."}, 1054 | {"And just like that, the clock steals away the opportunity for anything exciting to happen."}, 1055 | {"Looks like the clock struck zero on your chance to shine!"}, 1056 | {"Time’s up, champ! Back to the drawing board!"}, 1057 | {"You’re late to the party—hope you won’t mind the empty seats!"}, 1058 | {"The countdown is over, and so is your chance!"}, 1059 | {"Tick-tock! Looks like you let the opportunity slip away!"}, 1060 | {"Well, well—time waits for no fighter!"}, 1061 | {"And here you are, fashionably late to your own demise!"}, 1062 | {"Sorry, the hourglass has run out; no extra rounds for you!"}, 1063 | {"Time’s a cruel foe, and it just knocked you out!"}, 1064 | {"The final bell’s rung, and you didn’t even step in the ring!"}, 1065 | {"Your time just expired—don’t let the door hit you on the way out!"}, 1066 | {"And there goes your shot—time to clock out!"}, 1067 | {"Too slow, my friend—the sands of time have spoken!"}, 1068 | {"Looks like you overslept your chance at glory!"}, 1069 | {"The clock has struck, and your moment has vanished!"}, 1070 | {"You’re all dressed up with nowhere to go—time’s up!"}, 1071 | {"Sad news, buddy—the fight schedule just closed!"}, 1072 | {"Time can be a ruthless opponent—you just got KO'd by it!"}, 1073 | {"The arena’s ready, but sadly, your clock just ran out!"}, 1074 | {"Looks like the universe conspired against your big moment!"} 1075 | }; 1076 | 1077 | const std::string annDeath[30] = 1078 | { 1079 | {"And that's one less hero in the arena! They'll be missed. By someone. Probably."}, 1080 | {"Well, well, well, looks like someone just got schooled! Maybe they should've studied harder."}, 1081 | {"Ouch! That was a face plant for the books! Better luck next time, pal."}, 1082 | {"And the player has been knocked out! Time to start reevaluating life choices, my friend."}, 1083 | {"Down goes another one! That's gotta sting, both physically and emotionally."}, 1084 | {"Game over for that poor soul. May they find solace in respawns and redemption."}, 1085 | {"RIP, player. We hardly knew ya. And honestly, we probably won't remember ya either."}, 1086 | {"That was a swift defeat! They couldn't even blink before they were knocked out."}, 1087 | {"And... crash! This player's dreams just shattered faster than a screen protector."}, 1088 | {"Another one bites the dust! Can someone get these players a map? They seem lost."}, 1089 | {"Looks like that last round really took his breath away—permanently!"}, 1090 | {"Guess he won't be needing a rematch now!"}, 1091 | {"Talk about a knockout; he took it to the extreme!"}, 1092 | {"And that's one way to make a dramatic exit!"}, 1093 | {"He went down like a tree—never to rise again!"}, 1094 | {"Well, folks, he certainly left it all in the ring—forever!"}, 1095 | {"I guess you could say he really 'took one for the team'… the afterlife team!"}, 1096 | {"He wasn't just knocked out; he was sent packing six feet under!"}, 1097 | {"Looks like he found the ultimate way to avoid a post-fight interview!"}, 1098 | {"And that’s a wrap! Someone call the coroner; he just took the ultimate dive!"}, 1099 | {"Well, he definitely took the 'knockout' part too literally!"}, 1100 | {"Looks like he found a way to take his fight to the next level—permanently!"}, 1101 | {"Talk about going to sleep on the job—he really committed!"}, 1102 | {"He came, he fought, he... checked out!"}, 1103 | {"Guess he didn’t know when to throw in the towel—or stay out of the ring!"}, 1104 | {"That’s one way to ensure you never have to face an opponent again!"}, 1105 | {"He took 'going down for the count' to a whole new extreme!"}, 1106 | {"Looks like he crossed the ultimate finish line a little too soon!"}, 1107 | {"He always wanted to make a grand exit, but this was a bit much!"}, 1108 | {"Guess he found the ultimate way to avoid the rematch!"}, 1109 | {"He really took 'tap out' to heart—literally!"}, 1110 | {"He didn't just lose; he went on his final vacation!"}, 1111 | {"His career ended with a bang—or was that just the final bell?"}, 1112 | {"He sure knew how to make an exit; just not the right one!"}, 1113 | {"Well, that’s one way to dodge the next fight!"}, 1114 | {"He truly left it all in the ring—too much, perhaps!"}, 1115 | {"Looks like he won't be needing a post-fight interview!"}, 1116 | {"He went for glory and ended up with a long nap instead!"}, 1117 | {"Talk about taking a 'hard fall' to a whole new level!"}, 1118 | {"Well, he certainly put the 'final' in 'final round!'"} 1119 | }; 1120 | 1121 | class npc_arena_announcer : public CreatureScript 1122 | { 1123 | public: 1124 | npc_arena_announcer() : CreatureScript("npc_arena_announcer") { } 1125 | 1126 | struct npc_arena_announcerAI : public ScriptedAI 1127 | { 1128 | npc_arena_announcerAI(Creature* creature) : ScriptedAI(creature) {} 1129 | 1130 | void Announce(std::string type) 1131 | { 1132 | // Find a way to consolidate that 1133 | uint8 rng = urand(0,9); 1134 | if (type == "Victory") 1135 | { 1136 | me->Yell(annVictory[rng], LANG_UNIVERSAL); 1137 | } 1138 | else if (type == "DefeatTime") 1139 | { 1140 | me->Yell(annTime[rng], LANG_UNIVERSAL); 1141 | } 1142 | else 1143 | { 1144 | me->Yell(annDeath[rng], LANG_UNIVERSAL); 1145 | } 1146 | 1147 | } 1148 | 1149 | void DoAction(int32 action) override 1150 | { 1151 | if (action == ACTION_ANNOUNCE_VICTORY) 1152 | { 1153 | Announce("Victory"); 1154 | } 1155 | 1156 | if (action == ACTION_ANNOUNCE_DEFEAT_TIME) 1157 | { 1158 | Announce("DefeatTime"); 1159 | } 1160 | 1161 | if (action == ACTION_ANNOUNCE_DEFEAT_DEATH) 1162 | { 1163 | Announce("DefeatDeath"); 1164 | } 1165 | } 1166 | 1167 | }; 1168 | 1169 | CreatureAI* GetAI(Creature* creature) const override 1170 | { 1171 | return new npc_arena_announcerAI (creature); 1172 | } 1173 | 1174 | }; 1175 | 1176 | class npc_anti_stuck : public CreatureScript 1177 | { 1178 | public: 1179 | npc_anti_stuck() : CreatureScript("npc_anti_stuck") { } 1180 | 1181 | bool OnGossipHello(Player* player, Creature* creature) override 1182 | { 1183 | AddGossipItemFor(player, GOSSIP_ICON_CHAT, "I'm stuck, little help please.", GOSSIP_SENDER_MAIN, 1); 1184 | SendGossipMenuFor(player, GOSSIP_HELLO, creature->GetGUID()); 1185 | 1186 | return true; 1187 | } 1188 | 1189 | bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action) override 1190 | { 1191 | ClearGossipMenuFor(player); 1192 | 1193 | if (action == 1) 1194 | { 1195 | if (player->ToPlayer()) 1196 | { 1197 | player->NearTeleportTo(playerResetPos.GetPositionX(), playerResetPos.GetPositionY(), playerResetPos.GetPositionZ(), playerResetPos.GetOrientation()); 1198 | } 1199 | } 1200 | 1201 | return true; 1202 | } 1203 | }; 1204 | 1205 | enum Shop 1206 | { 1207 | OPEN_SHOP = 19, 1208 | 1209 | // Rank 0 1210 | BUY_RANK_0 = 20, // Required to be bought after downranking to Rank 0. 1211 | 1212 | // Rank 1 1213 | SHOP_ITEM_ARCTIC_FUR = 44128, 1214 | SHOP_ITEM_SARONITE_BAR = 36913, 1215 | BUY_RANK_1_FUR = 21, 1216 | BUY_RANK_1_BAR = 22, 1217 | 1218 | // Rank 2 1219 | SHOP_ITEM_GIGANTIQUE_BAG = 38082, 1220 | SHOP_ITEM_FORTUNE_COIN = 32465, 1221 | BUY_RANK_2_BAG = 23, 1222 | BUY_RANK_2_COIN = 24, 1223 | 1224 | // Rank 3 1225 | SHOP_ITEM_NAXX_HORSE = 23193, 1226 | SHOP_ITEM_EPIC_SHIRT = 45037, 1227 | BUY_RANK_3_NAXX = 25, 1228 | BUY_RANK_3_SHIRT = 26, 1229 | 1230 | // Rank 4 1231 | SHOP_ITEM_DREAD_RING = 50255, 1232 | SHOP_ITEM_EOH = 40752, 1233 | BUY_RANK_4_RING = 27, 1234 | BUY_RANK_4_EOH = 28, 1235 | /* 1236 | // Rank 5 1237 | SHOP_ITEM_GIGANTIQUE_BAG = 38082, 1238 | SHOP_ITEM_FORTUNE_COIN = 32465, 1239 | BUY_RANK_5_BAG = 29, 1240 | BUY_RANK_5_COIN = 30, 1241 | 1242 | // Rank 6 1243 | SHOP_ITEM_GIGANTIQUE_BAG = 38082, 1244 | SHOP_ITEM_FORTUNE_COIN = 32465, 1245 | BUY_RANK_6_BAG = 31, 1246 | BUY_RANK_6_COIN = 32, 1247 | 1248 | // Rank 7 1249 | SHOP_ITEM_GIGANTIQUE_BAG = 38082, 1250 | SHOP_ITEM_FORTUNE_COIN = 32465, 1251 | BUY_RANK_7_BAG = 33, 1252 | BUY_RANK_7_COIN = 34, 1253 | 1254 | // Rank 8 1255 | SHOP_ITEM_GIGANTIQUE_BAG = 38082, 1256 | SHOP_ITEM_FORTUNE_COIN = 32465, 1257 | BUY_RANK_8_BAG = 35, 1258 | BUY_RANK_8_COIN = 36, 1259 | */ 1260 | }; 1261 | 1262 | class npc_brawlers_vendor : public CreatureScript 1263 | { 1264 | public: 1265 | npc_brawlers_vendor() : CreatureScript("npc_brawlers_vendor") { } 1266 | 1267 | bool OnGossipHello(Player* player, Creature* creature) override 1268 | { 1269 | if (player->GetQuestStatus(QUEST_BRAWLERS_GUILD) == QUEST_STATUS_REWARDED) 1270 | { 1271 | AddGossipItemFor(player, GOSSIP_ICON_VENDOR, GOSSIP_TEXT_BROWSE_GOODS, GOSSIP_SENDER_MAIN, GOSSIP_ACTION_TRADE); 1272 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, "Set my hearthstone here.", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_INN); 1273 | AddGossipItemFor(player, GOSSIP_ICON_MONEY_BAG, "Show my bank.", GOSSIP_SENDER_MAIN, GOSSIP_ACTION_BANK); 1274 | if (player->HasItemCount(ITEM_BRAWLERS_GOLD)) 1275 | AddGossipItemFor(player, GOSSIP_ICON_TABARD, "Browse Brawler's Guild.", GOSSIP_SENDER_MAIN, OPEN_SHOP); 1276 | } 1277 | 1278 | SendGossipMenuFor(player, GOSSIP_HELLO, creature->GetGUID()); 1279 | return true; 1280 | } 1281 | 1282 | bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action) override 1283 | { 1284 | ClearGossipMenuFor(player); 1285 | 1286 | switch (action) 1287 | { 1288 | case GOSSIP_ACTION_TRADE: 1289 | player->GetSession()->SendListInventory(creature->GetGUID()); 1290 | break; 1291 | case GOSSIP_ACTION_INN: 1292 | player->GetSession()->SendBindPoint(creature); 1293 | break; 1294 | case GOSSIP_ACTION_BANK: 1295 | player->GetSession()->SendShowBank(creature->GetGUID()); 1296 | break; 1297 | case OPEN_SHOP: 1298 | { 1299 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, "|TInterface\\Icons\\inv_misc_elvencoins:16|t Welcome to the shop. |TInterface\\Icons\\inv_misc_elvencoins:16|t \n\n Rank up to unlock more! \n\n", GOSSIP_SENDER_MAIN, OPEN_SHOP); 1300 | 1301 | QueryResult result = CharacterDatabase.Query("SELECT `Rank` FROM `brawlersguild` WHERE `CharacterGUID` = '{}'", player->GetGUID().GetCounter()); 1302 | if (result) 1303 | { 1304 | Field *fields = result->Fetch(); 1305 | uint32 rank = fields[0].Get(); 1306 | 1307 | if (rank == 0) 1308 | { 1309 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, "|TInterface\\Icons\\inv_shirt_guildtabard_01:16|t Rank 0 |TInterface\\Icons\\inv_shirt_guildtabard_01:16|t", GOSSIP_SENDER_MAIN, OPEN_SHOP); 1310 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, "|TInterface\\Icons\\inv_misc_coin_02:16|t100| Buy Rank 1", GOSSIP_SENDER_MAIN, BUY_RANK_0); 1311 | } 1312 | if (rank >= 1) 1313 | { 1314 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, "|TInterface\\Icons\\inv_shirt_guildtabard_01:16|t Rank 1 |TInterface\\Icons\\inv_shirt_guildtabard_01:16|t", GOSSIP_SENDER_MAIN, OPEN_SHOP); 1315 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, "|TInterface\\Icons\\inv_misc_elvencoins:16|t50 | x1 Arctic Fur", GOSSIP_SENDER_MAIN, BUY_RANK_1_FUR); 1316 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, "|TInterface\\Icons\\inv_misc_elvencoins:16|t50 | x20 Saronite Bar", GOSSIP_SENDER_MAIN, BUY_RANK_1_BAR); 1317 | } 1318 | if (rank >= 2) 1319 | { 1320 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, "|TInterface\\Icons\\inv_shirt_guildtabard_01:16|t Rank 2 |TInterface\\Icons\\inv_shirt_guildtabard_01:16|t", GOSSIP_SENDER_MAIN, OPEN_SHOP); 1321 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, "|TInterface\\Icons\\inv_misc_elvencoins:16|t100| x1 'Gigantique' Bag", GOSSIP_SENDER_MAIN, BUY_RANK_2_BAG); 1322 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, "|TInterface\\Icons\\inv_misc_elvencoins:16|t100| x1 Fortune Coin (pet)", GOSSIP_SENDER_MAIN, BUY_RANK_2_COIN); 1323 | } 1324 | if (rank >= 3) 1325 | { 1326 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, "|TInterface\\Icons\\inv_shirt_guildtabard_01:16|t Rank 3 |TInterface\\Icons\\inv_shirt_guildtabard_01:16|t", GOSSIP_SENDER_MAIN, OPEN_SHOP); 1327 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, "|TInterface\\Icons\\inv_misc_elvencoins:16|t150| x1 Naxxramas Deathcharger Reins", GOSSIP_SENDER_MAIN, BUY_RANK_3_NAXX); 1328 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, "|TInterface\\Icons\\inv_misc_elvencoins:16|t150| x1 Epic Purple Shirt", GOSSIP_SENDER_MAIN, BUY_RANK_3_SHIRT); 1329 | } 1330 | if (rank >= 4) 1331 | { 1332 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, "|TInterface\\Icons\\inv_shirt_guildtabard_01:16|t Rank 4 |TInterface\\Icons\\inv_shirt_guildtabard_01:16|t", GOSSIP_SENDER_MAIN, OPEN_SHOP); 1333 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, "|TInterface\\Icons\\inv_misc_elvencoins:16|t200| x1 Dread Pirate Ring (heirloom)", GOSSIP_SENDER_MAIN, BUY_RANK_4_RING); 1334 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, "|TInterface\\Icons\\inv_misc_elvencoins:16|t200| x20 Emblems of Heroism", GOSSIP_SENDER_MAIN, BUY_RANK_4_EOH); 1335 | } 1336 | } 1337 | 1338 | SendGossipMenuFor(player, GOSSIP_HELLO, creature->GetGUID()); 1339 | break; 1340 | } 1341 | 1342 | // Rank 0 1343 | case BUY_RANK_0: 1344 | { 1345 | if (player->HasEnoughMoney(1000000)) 1346 | { 1347 | // Only accessible at rank 0, don't require any checks. 1348 | CharacterDatabase.DirectExecute("REPLACE INTO `brawlersguild` (`CharacterGUID`, `Progress`, `Rank`) VALUES ('{}', '2', '1');", player->GetGUID().GetCounter()); 1349 | player->ModifyMoney(-1000000); 1350 | ChatHandler(player->GetSession()).SendNotification("You have been promoted to Rank 1."); 1351 | } 1352 | else 1353 | { 1354 | ChatHandler(player->GetSession()).SendNotification("Not enough gold."); 1355 | } 1356 | CloseGossipMenuFor(player); 1357 | break; 1358 | } 1359 | // Rank 1 1360 | case BUY_RANK_1_FUR: 1361 | { 1362 | if (HasGold(player, 50)) 1363 | { 1364 | player->DestroyItemCount(ITEM_BRAWLERS_GOLD, 50, true); 1365 | player->AddItem(SHOP_ITEM_ARCTIC_FUR, 1); 1366 | CloseGossipMenuFor(player); 1367 | } 1368 | break; 1369 | } 1370 | case BUY_RANK_1_BAR: 1371 | { 1372 | if (HasGold(player, 50)) 1373 | { 1374 | player->DestroyItemCount(ITEM_BRAWLERS_GOLD, 50, true); 1375 | player->AddItem(SHOP_ITEM_SARONITE_BAR, 20); 1376 | CloseGossipMenuFor(player); 1377 | } 1378 | break; 1379 | } 1380 | 1381 | // Rank 2 1382 | case BUY_RANK_2_BAG: 1383 | { 1384 | if (HasGold(player, 100)) 1385 | { 1386 | player->DestroyItemCount(ITEM_BRAWLERS_GOLD, 100, true); 1387 | player->AddItem(SHOP_ITEM_GIGANTIQUE_BAG, 1); 1388 | CloseGossipMenuFor(player); 1389 | } 1390 | break; 1391 | } 1392 | case BUY_RANK_2_COIN: 1393 | { 1394 | if (HasGold(player, 100)) 1395 | { 1396 | player->DestroyItemCount(ITEM_BRAWLERS_GOLD, 100, true); 1397 | player->AddItem(SHOP_ITEM_FORTUNE_COIN, 1); 1398 | CloseGossipMenuFor(player); 1399 | } 1400 | break; 1401 | } 1402 | // Rank 3 1403 | case BUY_RANK_3_NAXX: 1404 | { 1405 | if (HasGold(player, 150)) 1406 | { 1407 | player->DestroyItemCount(ITEM_BRAWLERS_GOLD, 150, true); 1408 | player->AddItem(SHOP_ITEM_NAXX_HORSE, 1); 1409 | CloseGossipMenuFor(player); 1410 | } 1411 | break; 1412 | } 1413 | case BUY_RANK_3_SHIRT: 1414 | { 1415 | if (HasGold(player, 150)) 1416 | { 1417 | player->DestroyItemCount(ITEM_BRAWLERS_GOLD, 150, true); 1418 | player->AddItem(SHOP_ITEM_EPIC_SHIRT, 1); 1419 | CloseGossipMenuFor(player); 1420 | } 1421 | break; 1422 | } 1423 | // Rank 4 1424 | case BUY_RANK_4_RING: 1425 | { 1426 | if (HasGold(player, 200)) 1427 | { 1428 | player->DestroyItemCount(ITEM_BRAWLERS_GOLD, 200, true); 1429 | player->AddItem(SHOP_ITEM_DREAD_RING, 1); 1430 | CloseGossipMenuFor(player); 1431 | } 1432 | break; 1433 | } 1434 | case BUY_RANK_4_EOH: 1435 | { 1436 | if (HasGold(player, 200)) 1437 | { 1438 | player->DestroyItemCount(ITEM_BRAWLERS_GOLD, 200, true); 1439 | player->AddItem(SHOP_ITEM_EOH, 20); 1440 | CloseGossipMenuFor(player); 1441 | } 1442 | break; 1443 | } 1444 | } 1445 | return true; 1446 | } 1447 | 1448 | bool HasGold(Player* player, uint32 gold) 1449 | { 1450 | if (!player || !gold) 1451 | return false; 1452 | 1453 | if (player->HasItemCount(ITEM_BRAWLERS_GOLD, gold) && player->GetFreeInventorySpace()) 1454 | return true; 1455 | else 1456 | ChatHandler(player->GetSession()).SendNotification("Not enough bag space or gold."); 1457 | return false; 1458 | } 1459 | }; 1460 | 1461 | // NOTE TO SELF: CreatureScripts cannot have BOTH GOSSIP & UPDATEAI/DOACTION <> <> <> 1462 | class npc_brawlers_gambler : public CreatureScript 1463 | { 1464 | public: 1465 | npc_brawlers_gambler() : CreatureScript("npc_brawlers_gambler") {} 1466 | 1467 | bool OnGossipHello(Player* player, Creature* creature) override 1468 | { 1469 | if (BrawlersGuild_Gambler) 1470 | { 1471 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, "|TInterface\\Icons\\inv_misc_elvencoins:16|t Are you willing to bet your coins? |TInterface\\Icons\\inv_misc_elvencoins:16|t", GOSSIP_SENDER_MAIN, 0); 1472 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, "-------------------------------------", GOSSIP_SENDER_MAIN, 0); 1473 | 1474 | if (player->GetItemCount(ITEM_BRAWLERS_GOLD) >= 5) 1475 | { 1476 | std::stringstream balance; 1477 | balance << "Your current balance is :" << player->GetItemCount(ITEM_BRAWLERS_GOLD); 1478 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, balance.str(), GOSSIP_SENDER_MAIN, 0); 1479 | } 1480 | else 1481 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, "Come back when you earn more brawlers gold. (Min 5)", GOSSIP_SENDER_MAIN, 0); 1482 | 1483 | // Check if we already bet 1484 | if ((std::find(betFor.begin(), betFor.end(), player) == betFor.end()) && (std::find(betAgainst.begin(), betAgainst.end(), player) == betAgainst.end())) 1485 | { 1486 | if (CurrentPlayer && creature->HasAura(SPELL_MARKER) && (player->GetItemCount(ITEM_BRAWLERS_GOLD) >= 5)) 1487 | { 1488 | std::string playername = CurrentPlayer->ToPlayer()->GetName().c_str(); 1489 | std::stringstream name; 1490 | name << ">> Bet on " << playername << " or against! <<"; 1491 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, name.str(), GOSSIP_SENDER_MAIN, 0); 1492 | 1493 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, "-------------------------------------", GOSSIP_SENDER_MAIN, 0); 1494 | 1495 | name.str(""); 1496 | name << "|TInterface\\Icons\\Achievement_pvp_h_12:64|t Bet 5 on " << playername << "!"; 1497 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, name.str(), GOSSIP_SENDER_MAIN, BET_FOR); 1498 | 1499 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, "-------------------------------------", GOSSIP_SENDER_MAIN, 0); 1500 | 1501 | name.str(""); 1502 | name << "|TInterface\\Icons\\inv_misc_bone_dwarfskull_01:64|t Bet 5 against " << playername << "!"; 1503 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, name.str(), GOSSIP_SENDER_MAIN, BET_AGAINST); 1504 | } 1505 | } 1506 | else 1507 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1,"You've already placed a bet on this fight.", GOSSIP_SENDER_MAIN, GOODBYE); 1508 | } 1509 | else 1510 | { 1511 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, "|TInterface\\Icons\\inv_misc_elvencoins:16|t Are you willing to bet your coins? |TInterface\\Icons\\inv_misc_elvencoins:16|t", GOSSIP_SENDER_MAIN, GOODBYE); 1512 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, "I'm currently out of business.", GOSSIP_SENDER_MAIN, GOODBYE); 1513 | } 1514 | 1515 | SendGossipMenuFor(player, GOSSIP_HELLO, creature->GetGUID()); 1516 | return true; 1517 | } 1518 | 1519 | bool OnGossipSelect(Player* player, Creature* creature, uint32 /*sender*/, uint32 action) override 1520 | { 1521 | ClearGossipMenuFor(player); 1522 | switch (action) 1523 | { 1524 | case BET_FOR: 1525 | { 1526 | if (player->HasItemCount(ITEM_BRAWLERS_GOLD, 5)) 1527 | { 1528 | player->DestroyItemCount(ITEM_BRAWLERS_GOLD, 5, true); 1529 | ChatHandler(player->GetSession()).SendNotification("Your bid on winning has been accepted."); 1530 | 1531 | betFor.push_back(player); 1532 | CloseGossipMenuFor(player); 1533 | } 1534 | break; 1535 | } 1536 | case BET_AGAINST: 1537 | { 1538 | if (player->HasItemCount(ITEM_BRAWLERS_GOLD, 5)) 1539 | { 1540 | player->DestroyItemCount(ITEM_BRAWLERS_GOLD, 5, true); 1541 | ChatHandler(player->GetSession()).SendNotification("Your bid on defeat has been accepted."); 1542 | 1543 | betAgainst.push_back(player); 1544 | CloseGossipMenuFor(player); 1545 | } 1546 | break; 1547 | } 1548 | case GOODBYE: 1549 | { 1550 | CloseGossipMenuFor(player); 1551 | break; 1552 | } 1553 | } 1554 | 1555 | return true; 1556 | } 1557 | }; 1558 | 1559 | enum VIPArea 1560 | { 1561 | // Gossip 1562 | VIP_TELE_ARENA = 1, 1563 | VIP_TELE_ISLAND = 2, 1564 | 1565 | // AreaIDs 1566 | VIP_ARENA_ID = 1637, 1567 | VIP_ISLAND_ID = 2317 1568 | }; 1569 | 1570 | const Position VipArena = {2203.38f, -4795.52f, 65.617493f, 1.73f}; 1571 | const Position VipIsland = {-11342.36f, -4759.87f, 6.637663f, 2.38f}; 1572 | 1573 | class go_brawlers_vip : public GameObjectScript 1574 | { 1575 | public: 1576 | go_brawlers_vip() : GameObjectScript("go_brawlers_vip") {} 1577 | 1578 | bool OnGossipHello(Player* player, GameObject* go) override 1579 | { 1580 | uint32 areaId = player->GetAreaId(); 1581 | 1582 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, "This teleporter is only available to those that have reached the highest rank.", GOSSIP_SENDER_MAIN, 0); 1583 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, "-------------------------------------", GOSSIP_SENDER_MAIN, 0); 1584 | 1585 | QueryResult result = CharacterDatabase.Query("SELECT `Rank` FROM `brawlersguild` WHERE `CharacterGUID` = '{}';", player->GetGUID().GetCounter()); 1586 | if (result) 1587 | { 1588 | Field *fields = result->Fetch(); 1589 | uint32 rank = fields[0].Get(); 1590 | if (rank >= 8 || player->IsGameMaster()) 1591 | { 1592 | if (areaId == VIP_ISLAND_ID) 1593 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, "|TInterface\\Icons\\achievement_arena_2v2_7:64|t To the Arena!", GOSSIP_SENDER_MAIN, VIP_TELE_ARENA); 1594 | if (areaId == VIP_ARENA_ID) 1595 | AddGossipItemFor(player, GOSSIP_ICON_INTERACT_1, "|TInterface\\Icons\\inv_bijou_gold:64|t To the VIP Area!", GOSSIP_SENDER_MAIN, VIP_TELE_ISLAND); 1596 | } 1597 | } 1598 | 1599 | SendGossipMenuFor(player, GOSSIP_HELLO, go->GetGUID()); 1600 | return true; 1601 | } 1602 | 1603 | bool OnGossipSelect(Player* player, GameObject* go, uint32 /*sender*/, uint32 action) override 1604 | { 1605 | ClearGossipMenuFor(player); 1606 | switch(action) 1607 | { 1608 | case VIP_TELE_ARENA: 1609 | { 1610 | player->TeleportTo(1, VipArena.GetPositionX(), VipArena.GetPositionY(), VipArena.GetPositionZ(), VipArena.GetOrientation()); 1611 | CloseGossipMenuFor(player); 1612 | break; 1613 | } 1614 | case VIP_TELE_ISLAND: 1615 | { 1616 | player->TeleportTo(1, VipIsland.GetPositionX(), VipIsland.GetPositionY(), VipIsland.GetPositionZ(), VipIsland.GetOrientation()); 1617 | CloseGossipMenuFor(player); 1618 | break; 1619 | } 1620 | default: 1621 | break; 1622 | } 1623 | 1624 | return true; 1625 | } 1626 | }; 1627 | 1628 | void AddBrawlersGuildScripts() 1629 | { 1630 | new BrawlersGuild_conf(); 1631 | new BrawlersGuild_Announce(); 1632 | new npc_brawlers_guild(); 1633 | new npc_player_detector(); 1634 | new npc_other_players_detector(); 1635 | new npc_arena_announcer(); 1636 | new npc_anti_stuck(); 1637 | new npc_brawlers_vendor(); 1638 | new npc_brawlers_gambler(); 1639 | new go_brawlers_vip(); 1640 | } 1641 | -------------------------------------------------------------------------------- /src/npc_brawlers_guild_fights.cpp: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include "ObjectMgr.h" 4 | #include "ScriptMgr.h" 5 | #include "ScriptedCreature.h" 6 | #include "World.h" 7 | #include "Player.h" 8 | #include "Chat.h" 9 | 10 | const Position ArenaCenter = {2178.2f, -4764.79f, 55.2f}; 11 | 12 | enum General 13 | { 14 | SPELL_MARKER = 42171, // Arrow marker 15 | }; 16 | 17 | enum Crash 18 | { 19 | EVENT_CRASH_JUMP_MIDDLE = 1, 20 | EVENT_CRASH_SPELL_MASSIVE_CRASH = 2, 21 | EVENT_CRASH_GAZE = 3, 22 | EVENT_CRASH_JUMP_BACK = 4, 23 | EVENT_CRASH_TRAMPLE = 5, 24 | 25 | SPELL_MASSIVE_CRASH = 200004, 26 | SPELL_STAGGERED_DAZE = 66758, 27 | }; 28 | 29 | class bguild_crash : public CreatureScript 30 | { 31 | public: 32 | bguild_crash() : CreatureScript("bguild_crash") { } 33 | 34 | struct bguild_crashAI : public ScriptedAI 35 | { 36 | bguild_crashAI(Creature* creature) : ScriptedAI(creature) {} 37 | 38 | void JustEngagedWith(Unit* who) override 39 | { 40 | events.RescheduleEvent(EVENT_CRASH_JUMP_MIDDLE, 20s); 41 | TargetGUID.Clear(); 42 | } 43 | 44 | void AttackStart(Unit* who) override 45 | { 46 | if (me->GetReactState() != REACT_PASSIVE) 47 | ScriptedAI::AttackStart(who); 48 | } 49 | 50 | void UpdateAI(uint32 diff) override 51 | { 52 | if (!UpdateVictim()) 53 | return; 54 | 55 | events.Update(diff); 56 | 57 | if (me->HasUnitState(UNIT_STATE_CASTING)) 58 | return; 59 | 60 | switch (events.ExecuteEvent()) 61 | { 62 | case EVENT_CRASH_JUMP_MIDDLE: 63 | { 64 | // Charge highest threat target (player only). 65 | if (Unit* target = SelectTarget(SelectTargetMethod::MaxThreat, 0, 0.0f, true)) 66 | TargetGUID = target->GetGUID(); 67 | 68 | me->StopMoving(); 69 | me->GetMotionMaster()->Clear(); 70 | me->GetMotionMaster()->MoveIdle(); 71 | me->SetReactState(REACT_PASSIVE); 72 | me->AttackStop(); 73 | me->GetMotionMaster()->MoveJump(ArenaCenter.GetPositionX(), ArenaCenter.GetPositionY(), ArenaCenter.GetPositionZ(), 20.0f, 6.0f); 74 | //events.Reset(); 75 | events.RescheduleEvent(EVENT_CRASH_SPELL_MASSIVE_CRASH, 2s); 76 | break; 77 | } 78 | case EVENT_CRASH_SPELL_MASSIVE_CRASH: 79 | { 80 | me->GetMotionMaster()->Clear(); 81 | DoCastSelf(SPELL_MASSIVE_CRASH); 82 | 83 | events.RescheduleEvent(EVENT_CRASH_GAZE, 2s); 84 | break; 85 | } 86 | case EVENT_CRASH_GAZE: 87 | { 88 | if (Unit* target = ObjectAccessor::GetPlayer(*me, TargetGUID)) 89 | { 90 | me->SetFacingToObject(target); 91 | me->HandleEmoteCommand(EMOTE_ONESHOT_BATTLE_ROAR); 92 | events.RescheduleEvent(EVENT_CRASH_JUMP_BACK, 2s); 93 | } 94 | else // in case something went wrong 95 | { 96 | events.RescheduleEvent(EVENT_CRASH_JUMP_MIDDLE, 30s, 50s); 97 | me->GetMotionMaster()->MovementExpired(); 98 | me->SetReactState(REACT_AGGRESSIVE); 99 | } 100 | break; 101 | } 102 | case EVENT_CRASH_JUMP_BACK: 103 | { 104 | float angle; 105 | if (Unit* target = ObjectAccessor::GetPlayer(*me, TargetGUID)) 106 | angle = me->GetAngle(target); 107 | else // in case something went wrong 108 | angle = rand_norm() * 2 * M_PI; 109 | 110 | float jumpangle = angle >= M_PI ? angle - M_PI : angle + M_PI; 111 | float dist = 22.0f; 112 | destX = ArenaCenter.GetPositionX() + cos(angle) * dist; 113 | destY = ArenaCenter.GetPositionY() + std::sin(angle) * dist; 114 | destZ = ArenaCenter.GetPositionZ() + 1.0f; 115 | me->StopMoving(); 116 | me->GetMotionMaster()->MoveJump(ArenaCenter.GetPositionX() + cos(jumpangle) * 23.0f, ArenaCenter.GetPositionY() + std::sin(jumpangle) * 23.0f, ArenaCenter.GetPositionZ(), 20.0f, 6.0f); 117 | 118 | events.RescheduleEvent(EVENT_CRASH_TRAMPLE, 2s); 119 | break; 120 | } 121 | case EVENT_CRASH_TRAMPLE: 122 | { 123 | me->DisableSpline(); 124 | me->GetMotionMaster()->Clear(); 125 | me->GetMotionMaster()->MoveCharge(destX, destY, destZ + 1.0f, 15.0f); 126 | break; 127 | } 128 | } 129 | 130 | if (me->GetReactState() != REACT_PASSIVE) 131 | DoMeleeAttackIfReady(); 132 | } 133 | 134 | bool DoTrampleIfValid() 135 | { 136 | if (Unit* p = ObjectAccessor::GetPlayer(*me, TargetGUID)) 137 | { 138 | if( p->IsAlive() && p->GetExactDist(me) <= 8.0f ) 139 | { 140 | p->KillSelf(); 141 | return true; 142 | } 143 | } 144 | return false; 145 | } 146 | 147 | void MovementInform(uint32 /*type*/, uint32 id) override 148 | { 149 | if (id == EVENT_CHARGE) 150 | { 151 | //events.Reset(); 152 | events.RescheduleEvent(EVENT_CRASH_JUMP_MIDDLE, 30s, 35s); 153 | 154 | float angle = me->GetAngle(&ArenaCenter); 155 | angle = angle >= M_PI ? angle - M_PI : angle + M_PI; 156 | 157 | me->UpdatePosition(destX, destY, destZ, angle, true); 158 | me->StopMovingOnCurrentPos(); 159 | 160 | if (!DoTrampleIfValid()) 161 | { 162 | me->CastSpell(me, SPELL_STAGGERED_DAZE, true); 163 | events.DelayEvents(15000); 164 | } 165 | 166 | me->SetReactState(REACT_AGGRESSIVE); 167 | } 168 | } 169 | 170 | void EnterEvadeMode(EvadeReason /*why*/) override 171 | { 172 | me->DespawnOrUnsummon(); 173 | } 174 | 175 | private: 176 | EventMap events; 177 | ObjectGuid TargetGUID; 178 | float destX, destY, destZ; 179 | }; 180 | 181 | CreatureAI* GetAI(Creature* creature) const override 182 | { 183 | return new bguild_crashAI (creature); 184 | } 185 | 186 | }; 187 | 188 | enum Darkfang 189 | { 190 | EVENT_DARKFANG_SUMMON_TARGET = 1, 191 | EVENT_DARKFANG_JUMP = 2, 192 | 193 | SPELL_THUNDERCLAP = 36214, 194 | NPC_JUMP_TARGET = 60024, 195 | }; 196 | 197 | class bguild_darkfang : public CreatureScript 198 | { 199 | public: 200 | bguild_darkfang() : CreatureScript("bguild_darkfang") { } 201 | 202 | struct bguild_darkfangAI : public ScriptedAI 203 | { 204 | bguild_darkfangAI(Creature* creature) : ScriptedAI(creature), summons(me) {} 205 | 206 | void JustEngagedWith(Unit* who) override 207 | { 208 | events.RescheduleEvent(EVENT_DARKFANG_SUMMON_TARGET, 10s); 209 | chargeGUID.Clear(); 210 | } 211 | 212 | void JustSummoned(Creature* cr) override 213 | { 214 | summons.Summon(cr); 215 | } 216 | 217 | void UpdateAI(uint32 diff) override 218 | { 219 | if (!UpdateVictim()) 220 | return; 221 | 222 | events.Update(diff); 223 | 224 | if (me->HasUnitState(UNIT_STATE_CASTING)) 225 | return; 226 | 227 | switch (events.ExecuteEvent()) 228 | { 229 | case EVENT_DARKFANG_SUMMON_TARGET: 230 | { 231 | if (Unit* target = me->GetVictim()) 232 | { 233 | if (Creature* cr = me->SummonCreature(NPC_JUMP_TARGET, target->GetPositionX(), target->GetPositionY(), target->GetPositionZ(), 0, TEMPSUMMON_TIMED_DESPAWN, 2500)) 234 | { 235 | chargeGUID = cr->GetGUID(); 236 | } 237 | events.RescheduleEvent(EVENT_DARKFANG_JUMP, 2s); 238 | } 239 | break; 240 | } 241 | case EVENT_DARKFANG_JUMP: 242 | { 243 | if (Creature* target = ObjectAccessor::GetCreature(*me, chargeGUID)) 244 | { 245 | DoCastSelf(SPELL_THUNDERCLAP); 246 | me->GetMotionMaster()->MoveJump(target->GetPositionX(), target->GetPositionY(), target->GetPositionZ(), 20.0f, 6.0f); 247 | summons.DespawnAll(); 248 | events.RescheduleEvent(EVENT_DARKFANG_SUMMON_TARGET, 10s, 15s); 249 | chargeGUID.Clear(); 250 | } 251 | break; 252 | } 253 | } 254 | 255 | DoMeleeAttackIfReady(); 256 | } 257 | 258 | bool InstaKillCheck() 259 | { 260 | if (Player* p = me->SelectNearestPlayer(5)) 261 | { 262 | if (p->IsAlive() && p->GetExactDist(me) <= 5.0f) 263 | { 264 | p->KillSelf(); 265 | return true; 266 | } 267 | } 268 | return false; 269 | } 270 | 271 | void MovementInform(uint32 type, uint32 /*id*/) override 272 | { 273 | if (type == 16) // Jump, called only once, upon landing 274 | { 275 | DoCastSelf(SPELL_THUNDERCLAP); 276 | InstaKillCheck(); 277 | } 278 | } 279 | 280 | void EnterEvadeMode(EvadeReason /*why*/) override 281 | { 282 | me->DespawnOrUnsummon(); 283 | summons.DespawnAll(); 284 | } 285 | 286 | private: 287 | EventMap events; 288 | SummonList summons; 289 | ObjectGuid chargeGUID; 290 | }; 291 | 292 | CreatureAI* GetAI(Creature* creature) const override 293 | { 294 | return new bguild_darkfangAI (creature); 295 | } 296 | 297 | }; 298 | 299 | // 60042 - Living Flame 300 | class living_flame : public CreatureScript 301 | { 302 | public: 303 | living_flame() : CreatureScript("living_flame") { } 304 | 305 | struct living_flameAI : public ScriptedAI 306 | { 307 | living_flameAI(Creature* creature) : ScriptedAI(creature) 308 | { 309 | float x, y, z; 310 | me->GetClosePoint(x, y, z, me->GetObjectSize() / 3, 17); 311 | me->GetMotionMaster()->MovePoint(0, x, y, z); 312 | } 313 | 314 | void EnterEvadeMode(EvadeReason /*why*/) override {} 315 | 316 | }; 317 | CreatureAI* GetAI(Creature* creature) const override 318 | { 319 | return new living_flameAI (creature); 320 | } 321 | }; 322 | 323 | void AddBrawlersGuildScriptsFights() 324 | { 325 | new bguild_crash(); 326 | new bguild_darkfang(); 327 | new living_flame(); 328 | } 329 | --------------------------------------------------------------------------------