SHOW:
|
|
- or go back to the newest paste.
1 | #include "ScriptPCH.h" | |
2 | ||
3 | - | #define SPELL_RENEGADE_STRENGTH 91010 |
3 | + | #define SPELL_RENEGADE_STRENGTH 91010 |
4 | - | #define SPELL_EMPOWERS_THE_CASTER_WITH_DARK_MIGHT 70674 |
4 | + | #define SPELL_EMPOWERS_THE_CASTER_WITH_DARK_MIGHT 70674 |
5 | ||
6 | ||
7 | - | class Immortal_dude : public CreatureScript |
7 | + | class Boss_npc : public CreatureScript |
8 | - | ( |
8 | + | |
9 | public: | |
10 | - | Immortal_dude() : CreatureScript("Immortal_dude") {} |
10 | + | Boss_npc() : CreatureScript("Immortal_dude") {} |
11 | ||
12 | - | struct Immortal_dudeAI : public ScriptAI |
12 | + | struct Immortal_dudeAI : public ScriptedAI |
13 | { | |
14 | - | Immortal_dudeAI(Creature * pCreature) : ScriptedAI(pCreature) |
14 | + | Immortal_dudeAI(Creature * pCreature) : ScriptedAI(pCreature) |
15 | {} | |
16 | - | frosttimer = 10000; |
16 | + | |
17 | - | frosttimer = 5000; |
17 | + | uint32 FrostTimer; |
18 | - | } |
18 | + | |
19 | void Reset() | |
20 | - | unit32 Frosttimer; |
20 | + | |
21 | FrostTimer = 10000; | |
22 | - | void UpdateAI(const unit32 diff) |
22 | + | } |
23 | - | ( |
23 | + | |
24 | - | if(frosttimer = diff) |
24 | + | void UpdateAI(const uint32 diff) |
25 | - | ) |
25 | + | |
26 | - | Docastme, SPELL_RENEGADE STRENGTH, true); |
26 | + | if(FrostTimer <= diff) |
27 | - | Docastme, SPELL_EMPOWERS_THE_CASTER_WITH_DARK_MIGHT 70674, true); |
27 | + | |
28 | - | } |
28 | + | |
29 | - | else |
29 | + | |
30 | - | frosttimer = diff, |
30 | + | // FrostTimer = 10000; // Want to repeat? |
31 | } | |
32 | - | DomeleeattackIfReady(); |
32 | + | else |
33 | FrostTimer -= diff; | |
34 | - | } |
34 | + | |
35 | DoMeleeAttackIfReady(); | |
36 | - | void OnEnterCombat{Unit = Target) |
36 | + | } |
37 | ||
38 | - | me->MonsterSay("Die Mortalsl", LANG_UNIVERSAL, me->GetGUID()): |
38 | + | void OnEnterCombat(Unit* who) |
39 | { | |
40 | - | } |
40 | + | me->MonsterSay("Die Mortals!", LANG_UNIVERSAL, me->GetGUID()); |
41 | - | |
41 | + | } |
42 | - | void OnKilledTarget(Unit = Target) |
42 | + | |
43 | - | { |
43 | + | void OnKilledTarget(Unit* who) |
44 | { | |
45 | DoCast(me, SPELL_RENEGADE_STRENGTH, true); | |
46 | - | } |
46 | + | DoCast(me, SPELL_EMPOWERS_THE_CASTER_WITH_DARK_MIGHT, true); |
47 | } | |
48 | ||
49 | - | void OnDied(Unit * Killer) |
49 | + | void OnDied(Unit* Killer) |
50 | { | |
51 | me->MonsterSay("I will return...", LANG_UNIVERSAL, me->GetGUID()); | |
52 | - | me->MonsterSay("I will return...", LANG_UNIVERSAL, me->GetGUID()): |
52 | + | } |
53 | }; | |
54 | - | } |
54 | + | |
55 | ||
56 | - | |
56 | + | |
57 | { | |
58 | new Boss_npc; | |
59 | - | |
59 | + |