Advertisement
cyphric

First ArcEmu boss

May 16th, 2012
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.61 KB | None | 0 0
  1. /*
  2.  
  3.  
  4.  Made by Cyphric!
  5.  
  6.  */
  7.  
  8.  
  9.  
  10. #include "StdAfx.h"
  11. #include "Setup.h"
  12. #include "Base.h"
  13.  
  14. // Boss ID
  15. #define Cyphric 34253112
  16.  
  17. //Spells!
  18. #define Cleave 37476
  19. #define DragonsBreath 42949
  20. #define BlastWave 42945
  21. #define Blizzard 42490
  22.  
  23. //phase1
  24. #define SeedofCorruption 47836
  25.  
  26. class CyphrichAI : public ArcScriptBossAI
  27. {
  28.     ARCSRIPT_FACTORY_FUNCTION(CyphricAI, ArcScriptBossAI);
  29.     CyphrichAI(Creature* pCreature) : ArcScriptBossAI(pCreature);
  30.     {
  31.         AddSpell(BlastWave, Target_Current, 15, 0, 40);
  32.              AddSpell(Blizzard, Target_RandomPlayer, 15, 1.5, 20);
  33.              AddSpell(BlastWave, Target_RandomPlayer, 15, 0, 20);
  34.              AddSpell(DragonsBreath, Target_ClosestPlayer, 20, 0, 16, 0, 0, false, "Haha getting warm isn't it.", Text_Yell, 10290);
  35.              AddSpell(Cleave, Target_Current, 10, 0, 2);
  36.  
  37.              AddEmote(Event_OnCombatStart, "I will kill you then the peasents!", Text_Yell, 10289);
  38.                  AddEmote(Event_OnTargetDied, "One down", Text_Yell, 11250);
  39.                  AddEmote(Event_OnTargetDied, "Another one bites to dust", Text_Yell, 11252);
  40.                  AddEmote(Event_OnDied, "What? How did this........Gahh!", Text_Yell, 10291);
  41.    
  42.     }//Spell/events end!
  43.  
  44. void AIupdate()
  45.   {
  46.     if(GetHealthPercent()=<60)//Phase1
  47.     {
  48.         AddSpell(SeedOfCorruption, Target_SecondMostHated, 90, 0, 20);
  49.     }
  50.     {
  51.         if(GetHealthPercent()=<60)//Phase2
  52.             AddSpell(SeedOfCorruption, Target_RandomPlayer, 90, 0, 20);
  53.      ParentClass::AIUpdate();
  54.          ParentClasS>>AIUpdate();
  55.     }
  56.  
  57. };
  58.  
  59. void SetupWorldBoss(ScriptMGR* pScriptmgr)
  60. {
  61.     pScriptMgr->register_creature_script(Cyphric, &CyphricAI::Create);
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement