Add Visual chains spell for FJOLA LIGHTBANE and EYDIS DARKBANE
--HG-- branch : trunk
This commit is contained in:
@@ -789,6 +789,7 @@ UPDATE `creature_template` SET `ScriptName`='npc_dame_evniki_kapsalis' WHERE `en
|
|||||||
UPDATE `creature_template` SET `ScriptName`='npc_squire_david' WHERE `entry`=33447;
|
UPDATE `creature_template` SET `ScriptName`='npc_squire_david' WHERE `entry`=33447;
|
||||||
UPDATE `creature_template` SET `ScriptName`='npc_argent_valiant' WHERE `entry`=33448;
|
UPDATE `creature_template` SET `ScriptName`='npc_argent_valiant' WHERE `entry`=33448;
|
||||||
UPDATE `creature_template` SET `ScriptName`='npc_argent_tournament_post' WHERE `entry`=35473;
|
UPDATE `creature_template` SET `ScriptName`='npc_argent_tournament_post' WHERE `entry`=35473;
|
||||||
|
UPDATE `creature_template` SET `ScriptName`= 'npc_alorah_and_grimmin' WHERE `entry` IN (36101,36102);
|
||||||
|
|
||||||
/* IRONFORGE */
|
/* IRONFORGE */
|
||||||
UPDATE `creature_template` SET `ScriptName`='npc_royal_historian_archesonus' WHERE `entry`=8879;
|
UPDATE `creature_template` SET `ScriptName`='npc_royal_historian_archesonus' WHERE `entry`=8879;
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
UPDATE `creature_template` SET `ScriptName`= 'npc_alorah_and_grimmin' WHERE `entry` IN (36101,36102);
|
||||||
@@ -284,6 +284,56 @@ CreatureAI* GetAI_npc_argent_tournament_post(Creature* pCreature)
|
|||||||
return new npc_argent_tournament_postAI (pCreature);
|
return new npc_argent_tournament_postAI (pCreature);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*######
|
||||||
|
## npc_alorah_and_grimmin
|
||||||
|
######*/
|
||||||
|
|
||||||
|
enum ealorah_and_grimmin
|
||||||
|
{
|
||||||
|
SPELL_CHAIN = 68341,
|
||||||
|
NPC_FJOLA_LIGHTBANE = 36065,
|
||||||
|
NPC_EYDIS_DARKBANE = 36066,
|
||||||
|
NPC_PRIESTESS_ALORAH = 36101,
|
||||||
|
NPC_PRIEST_GRIMMIN = 36102
|
||||||
|
};
|
||||||
|
|
||||||
|
struct npc_alorah_and_grimminAI : public ScriptedAI
|
||||||
|
{
|
||||||
|
npc_alorah_and_grimminAI(Creature* pCreature) : ScriptedAI(pCreature) {}
|
||||||
|
|
||||||
|
uint8 uiCast;
|
||||||
|
|
||||||
|
void Reset()
|
||||||
|
{
|
||||||
|
uiCast = 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
void UpdateAI(const uint32 uiDiff)
|
||||||
|
{
|
||||||
|
if (uiCast = 1)
|
||||||
|
{
|
||||||
|
Creature* pTarget1 = me->FindNearestCreature(NPC_EYDIS_DARKBANE, 10.0f);
|
||||||
|
Creature* pTarget2 = me->FindNearestCreature(NPC_FJOLA_LIGHTBANE, 10.0f);
|
||||||
|
switch(me->GetEntry())
|
||||||
|
{
|
||||||
|
case NPC_PRIESTESS_ALORAH:
|
||||||
|
DoCast(pTarget1, SPELL_CHAIN);
|
||||||
|
uiCast = 0;
|
||||||
|
case NPC_PRIEST_GRIMMIN:
|
||||||
|
DoCast(pTarget2, SPELL_CHAIN);
|
||||||
|
uiCast = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!UpdateVictim())
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
CreatureAI* GetAI_npc_alorah_and_grimmin(Creature* pCreature)
|
||||||
|
{
|
||||||
|
return new npc_alorah_and_grimminAI (pCreature);
|
||||||
|
}
|
||||||
|
|
||||||
void AddSC_icecrown()
|
void AddSC_icecrown()
|
||||||
{
|
{
|
||||||
Script *newscript;
|
Script *newscript;
|
||||||
@@ -315,4 +365,9 @@ void AddSC_icecrown()
|
|||||||
newscript->Name = "npc_argent_tournament_post";
|
newscript->Name = "npc_argent_tournament_post";
|
||||||
newscript->GetAI = &GetAI_npc_argent_tournament_post;
|
newscript->GetAI = &GetAI_npc_argent_tournament_post;
|
||||||
newscript->RegisterSelf();
|
newscript->RegisterSelf();
|
||||||
|
|
||||||
|
newscript = new Script;
|
||||||
|
newscript->Name = "npc_alorah_and_grimmin";
|
||||||
|
newscript->GetAI = &GetAI_npc_alorah_and_grimmin;
|
||||||
|
newscript->RegisterSelf();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user