Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Made by Cyphric!
- */
- #include "StdAfx.h"
- #include "Setup.h"
- #include "Base.h"
- // Boss ID
- #define Cyphric 34253112
- //Spells!
- #define Cleave 37476
- #define DragonsBreath 42949
- #define BlastWave 42945
- #define Blizzard 42490
- //phase1
- #define SeedofCorruption 47836
- class CyphrichAI : public ArcScriptBossAI
- {
- ARCSRIPT_FACTORY_FUNCTION(CyphricAI, ArcScriptBossAI);
- CyphrichAI(Creature* pCreature) : ArcScriptBossAI(pCreature);
- {
- AddSpell(BlastWave, Target_Current, 15, 0, 40);
- AddSpell(Blizzard, Target_RandomPlayer, 15, 1.5, 20);
- AddSpell(BlastWave, Target_RandomPlayer, 15, 0, 20);
- AddSpell(DragonsBreath, Target_ClosestPlayer, 20, 0, 16, 0, 0, false, "Haha getting warm isn't it.", Text_Yell, 10290);
- AddSpell(Cleave, Target_Current, 10, 0, 2);
- AddEmote(Event_OnCombatStart, "I will kill you then the peasents!", Text_Yell, 10289);
- AddEmote(Event_OnTargetDied, "One down", Text_Yell, 11250);
- AddEmote(Event_OnTargetDied, "Another one bites to dust", Text_Yell, 11252);
- AddEmote(Event_OnDied, "What? How did this........Gahh!", Text_Yell, 10291);
- }//Spell/events end!
- void AIupdate()
- {
- if(GetHealthPercent()=<60)//Phase1
- {
- AddSpell(SeedOfCorruption, Target_SecondMostHated, 90, 0, 20);
- }
- {
- if(GetHealthPercent()=<60)//Phase2
- AddSpell(SeedOfCorruption, Target_RandomPlayer, 90, 0, 20);
- ParentClass::AIUpdate();
- ParentClasS>>AIUpdate();
- }
- };
- void SetupWorldBoss(ScriptMGR* pScriptmgr)
- {
- pScriptMgr->register_creature_script(Cyphric, &CyphricAI::Create);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement