From 556753e0fb07246cd1fe19b02f0bbc794f5fbc0a Mon Sep 17 00:00:00 2001 From: Chaz Brown Date: Sun, 6 Sep 2009 02:13:25 -0400 Subject: Partial fix of Quest 12698 - by Seirge - Also, I wrote a very preliminary script for the scarlet ghouls which puts them in evade mode, this definitely needs to be improved. --HG-- branch : trunk --- .../eastern_kingdoms/scarlet_enclave/chapter1.cpp | 29 +++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/bindings/scripts/scripts/eastern_kingdoms/scarlet_enclave/chapter1.cpp b/src/bindings/scripts/scripts/eastern_kingdoms/scarlet_enclave/chapter1.cpp index 4fea246e50a..b2fa7fc85fc 100644 --- a/src/bindings/scripts/scripts/eastern_kingdoms/scarlet_enclave/chapter1.cpp +++ b/src/bindings/scripts/scripts/eastern_kingdoms/scarlet_enclave/chapter1.cpp @@ -688,7 +688,8 @@ struct TRINITY_DLL_DECL npc_dkc1_gothikAI : public ScriptedAI { if (CAST_PLR(owner)->GetQuestStatus(12698) == QUEST_STATUS_INCOMPLETE) { - CAST_CRE(who)->CastSpell(owner, 52517, true); + //CAST_CRE(who)->CastSpell(owner, 52517, true); + CAST_PLR(owner)->KilledMonsterCredit(28845, me->GetGUID()); CAST_CRE(who)->ForcedDespawn(); if (CAST_PLR(owner)->GetQuestStatus(12698) == QUEST_STATUS_COMPLETE) @@ -705,6 +706,27 @@ CreatureAI* GetAI_npc_dkc1_gothik(Creature* pCreature) return new npc_dkc1_gothikAI(pCreature); } +struct TRINITY_DLL_DECL npc_scarlet_ghoulAI : public ScriptedAI +{ + npc_scarlet_ghoulAI(Creature *c) : ScriptedAI(c) {} + + void MoveInLineOfSight(Unit *target) + { + EnterEvadeMode(); + return; + } + void Aggro(Unit *who) + { + EnterEvadeMode(); + return; + } +}; + +CreatureAI* GetAI_npc_scarlet_ghoul(Creature* pCreature) +{ + return new npc_scarlet_ghoulAI(pCreature); +} + /*#### ## npc_scarlet_miner_cart ####*/ @@ -961,6 +983,11 @@ void AddSC_the_scarlet_enclave_c1() newscript->GetAI = &GetAI_npc_dkc1_gothik; newscript->RegisterSelf(); + newscript = new Script; + newscript->Name="npc_scarlet_ghoul"; + newscript->GetAI = &GetAI_npc_scarlet_ghoul; + newscript->RegisterSelf(); + // Massacre At Light's Point newscript = new Script; newscript->Name="npc_scarlet_miner"; -- cgit v1.2.3