this is my first c++ script i made i think it looks okay but can someone please correct the errors if there is any?
Code:
//#################################
// Made by
//Warriar
//
//
//
#include "StdAfx.h"
#include "Setup.h"
#include "Base.h"
//Boss
#define Eddie 66608
//Spells
#define Whirlwind 36175
#define SoC 38252
#define ArcExplosion 29973
//phase1
#define Enrage 41447
class EddieAI : public ArcScriptBossAI
{
ARCSCRIPT_FACTORY_FUNCTION(EddieAI, ArcScriptBossAI);
EddieAI(Creature* pCreature) : ArcScriptBossAI(pCreature)
{
AddSpell(Whirlwind, Target_RandomPlayer, 95, 0, 10000)
AddSpell(SoC, Target_SecondMostHated, 95, 0, 10000, 0, 0, false, "I will corrupt you!", Text_Yell, 10290);
AddSpell(ArcExplosion, Target_RandomPlayer, 95, 10000)
AddEmote(Event_OnCombatStart, "You have entered my keep seeking treasure, the only thing you will get though, is death.", Text_Yell, 10289);
AddEmote(Event_OnTargetDied, "One Down...", Text_Yell, 11250);
AddEmote(Event_OnDied, "How could this .... Happen", Text_Yell, 10291);
}
void AIUpdate()
{
if(GetHealthPercent()<=20//phase1
{
AddSpell(Enrage, Target_ClosestPlayer, 100, 1, 100, 0, 0, false, "I will not go down so easy!", Text_Yell, 10292);
}
ParentClass::AIUpdate();
ParentClass::AIUpdate();
}
};
void SetupWorldBoss(ScriptMgr* pScriptMgr)
{
pSCriptMgr->register_creature_script(Eddie, &EddieAI::Create);