/* Copyright (C) 2006 - 2012 ScriptDev2 <http://www.scriptdev2.com/> * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */

/* There have been quite some bugs about his spells, keep this as reference untill all finished * Missing features (based on wowwiki) * Lava Burst - this spell is handled by Go 178088 which is summoned by spells 21886, 21900 - 21907 */

// TODO this actually should select _any_ enemy in melee range, not only the tank // Range check for melee target, if nobody is found in range, then cast magma blast on random // If we are within range melee the target if (m_creature->IsNonMeleeSpellCasted(false) || !m_creature->getVictim()) return;

Просьба сильно не ругаться,я новичок в этом деле.Код наверняка кривой получился,но без ошибок нет прогресса.В основном EventAI пользуюсь для скриптовки.Хочется самому попробовать реализовать.Тексты не менял.С Новым Годом и с Наступающим Рождеством!Всех благ вам!Перевод на английский язык:Hello I decided to try to write a script on Ragnaros of the Firelands. Well, more precisely alter. Frankly, that's taken as a basis for the script and decided to remake it.The only manual for me is code P2. Just read the book, can not understand anything honestly. All copyrights retained, Rsa said modifications (processing) does not change the author of the code, I'm going to the same principle.Please do not swear,I'm new to this. Code for certain curves were obtained, but there is no progress without errors. Mainly for use EventAI scripts. Most want to try to implement. Texts are not changed. Happy New Year and Merry Christmas! All the best to you!P.S:Шикарный босс,так он того стоит.

UPDATE creature_template SET AIName='EventAI' WHERE entry IN (52409,53231,209209,53473,53086,53872,53875,53953,53876); UPDATE `creature_template` SET `ScriptName` = '' WHERE entry IN (52409,53231,209209,53473,53086,53872,53875,53953,53876);