Argent Tournament Post script by Malcrom
--HG-- branch : trunk
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
UPDATE `creature_template` SET `ScriptName`= 'npc_argent_tournament_post' WHERE `entry`=35473;
|
||||||
@@ -172,6 +172,10 @@ bool GossipSelect_npc_squire_david(Player* pPlayer, Creature* pCreature, uint32
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*######
|
||||||
|
## npc_argent_valiant
|
||||||
|
######*/
|
||||||
|
|
||||||
enum eArgentValiant
|
enum eArgentValiant
|
||||||
{
|
{
|
||||||
SPELL_CHARGE = 63010,
|
SPELL_CHARGE = 63010,
|
||||||
@@ -244,6 +248,42 @@ CreatureAI* GetAI_npc_argent_valiant(Creature* pCreature)
|
|||||||
return new npc_argent_valiantAI (pCreature);
|
return new npc_argent_valiantAI (pCreature);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*######
|
||||||
|
## npc_argent_tournament_post
|
||||||
|
######*/
|
||||||
|
|
||||||
|
enum eArgentTournamentPost
|
||||||
|
{
|
||||||
|
SPELL_ROPE_BEAM = 63413,
|
||||||
|
NPC_GORMOK_THE_IMPALER = 35469,
|
||||||
|
NPC_ICEHOWL = 35470
|
||||||
|
};
|
||||||
|
|
||||||
|
struct npc_argent_tournament_postAI : public ScriptedAI
|
||||||
|
{
|
||||||
|
npc_argent_tournament_postAI(Creature* pCreature) : ScriptedAI(pCreature) {}
|
||||||
|
|
||||||
|
void UpdateAI(const uint32 uiDiff)
|
||||||
|
{
|
||||||
|
if (m_creature->IsNonMeleeSpellCasted(false))
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (Creature* pTarget = me->FindNearestCreature(NPC_GORMOK_THE_IMPALER, 6.0f))
|
||||||
|
DoCast(pTarget, SPELL_ROPE_BEAM);
|
||||||
|
|
||||||
|
if (Creature* pTarget2 = me->FindNearestCreature(NPC_ICEHOWL, 6.0f))
|
||||||
|
DoCast(pTarget2, SPELL_ROPE_BEAM);
|
||||||
|
|
||||||
|
if (!UpdateVictim())
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
CreatureAI* GetAI_npc_argent_tournament_post(Creature* pCreature)
|
||||||
|
{
|
||||||
|
return new npc_argent_tournament_postAI (pCreature);
|
||||||
|
}
|
||||||
|
|
||||||
void AddSC_icecrown()
|
void AddSC_icecrown()
|
||||||
{
|
{
|
||||||
Script *newscript;
|
Script *newscript;
|
||||||
@@ -270,4 +310,9 @@ void AddSC_icecrown()
|
|||||||
newscript->Name = "npc_argent_valiant";
|
newscript->Name = "npc_argent_valiant";
|
||||||
newscript->GetAI = &GetAI_npc_argent_valiant;
|
newscript->GetAI = &GetAI_npc_argent_valiant;
|
||||||
newscript->RegisterSelf();
|
newscript->RegisterSelf();
|
||||||
|
|
||||||
|
newscript = new Script;
|
||||||
|
newscript->Name = "npc_argent_tournament_post";
|
||||||
|
newscript->GetAI = &GetAI_npc_argent_tournament_post;
|
||||||
|
newscript->RegisterSelf();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user