krusez

Untitled

Dec 8th, 2011
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. #include "ScriptPCH.h"
  3.  
  4. #define SPELL_RENEGADE_STRENGTH 91010
  5. #define SPELL_EMPOWERS_THE_CASTER_WITH_DARK_MIGHT 70674
  6.  
  7.  
  8. class Boss_npc : public CreatureScript
  9. (
  10.         public:
  11.         Boss_npc() : CreatureScript("Immortal_dude") {}
  12.  
  13.         struct Immortal_dudeAI : public ScriptedAI
  14.         {
  15.             Immortal_dudeAI(Creature * pCreature) : ScriptedAI(pCreature)
  16.             {}
  17.            
  18.             uint32 FrostTimer;
  19.  
  20.             void Reset()
  21.                 frosttimer = 10000;
  22.                
  23.         }
  24.  
  25.        
  26.             void UpdateAI(const unit32 diff)
  27.             {
  28.                 if(frosttimer = diff)
  29.                 )
  30.                     Docastme, SPELL_RENEGADE STRENGTH, true);
  31.                     Docastme, SPELL_EMPOWERS_THE_CASTER_WITH_DARK_MIGHT 70674, true);
  32.                     // FrostTimer = 10000; //
  33.                
  34.                 }  
  35.                 else
  36.                     FrostTimer -= diff,
  37.  
  38.                 DomeleeattackIfReady();
  39.  
  40.             }
  41.  
  42.             void OnEnterCombat{Unit* who)
  43.             {
  44.                 me->MonsterSay("Die Mortals!", LANG_UNIVERSAL, me->GetGUID()):
  45.  
  46.             }
  47.            
  48.             void OnKilledTarget(Unit* who)
  49.             {      
  50.                 DoCast(me, SPELL_RENEGADE_STRENGTH, true);
  51.                 DoCast(me, SPELL_EMPOWERS_THE_CASTER_WITH_DARK_MIGHT, true);
  52.             }
  53.  
  54.        
  55.             void OnDied(Unit * Killer)
  56.             {
  57.  
  58.                             me->MonsterSay("I will return...", LANG_UNIVERSAL, me->GetGUID()):
  59.        
  60.             }
  61.        
  62.    
  63.        
  64.     };
  65.            
  66. };
  67.  
  68. void AddSC_Boss_npc()
  69. {
  70.     new npc_boss;
  71.  
  72. }
  73.  
Add Comment
Please, Sign In to add comment