diff options
| author | megamage <none@none> | 2009-06-06 20:11:04 -0500 | 
|---|---|---|
| committer | megamage <none@none> | 2009-06-06 20:11:04 -0500 | 
| commit | d3d4c76976a40ca9a741efb0da338483ad82c726 (patch) | |
| tree | 23cb89dece86295579879b5606d13406177d5b52 /src | |
| parent | 72ac0a2452ec5fcce70e611b9bf2b24fdd4d3b5a (diff) | |
*Fix quest gift of harvester.
*Add missing frostbrood vanquisher vehicle id in previous sql. Thanks to  Azrael
--HG--
branch : trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/bindings/scripts/scripts/zone/eastern_plaguelands/the_scarlet_enclave.cpp | 35 | 
1 files changed, 35 insertions, 0 deletions
diff --git a/src/bindings/scripts/scripts/zone/eastern_plaguelands/the_scarlet_enclave.cpp b/src/bindings/scripts/scripts/zone/eastern_plaguelands/the_scarlet_enclave.cpp index 5ec53a0cdcb..a846195ddda 100644 --- a/src/bindings/scripts/scripts/zone/eastern_plaguelands/the_scarlet_enclave.cpp +++ b/src/bindings/scripts/scripts/zone/eastern_plaguelands/the_scarlet_enclave.cpp @@ -578,6 +578,36 @@ CreatureAI* GetAI_npc_ros_dark_rider(Creature *_Creature)      return new npc_ros_dark_riderAI(_Creature);  } +struct TRINITY_DLL_DECL npc_dkc1_gothikAI : public ScriptedAI +{ +    npc_dkc1_gothikAI(Creature *c) : ScriptedAI(c) {} + +    void MoveInLineOfSight(Unit *who) +    { +        ScriptedAI::MoveInLineOfSight(who); + +        if(who->GetEntry() == 28845 && me->IsWithinDistInMap(who, 10.0f)) +        { +            if(Unit *owner = who->GetOwner()) +            { +                if(owner->GetTypeId() == TYPEID_PLAYER) +                { +                    if(CAST_PLR(owner)->GetQuestStatus(12698) == QUEST_STATUS_INCOMPLETE) +                    { +                        CAST_PLR(owner)->KilledMonster(28845, me->GetGUID()); +                        who->setDeathState(DEAD); +                    } +                } +            } +        } +    } +}; + +CreatureAI* GetAI_npc_dkc1_gothik(Creature *_Creature) +{ +    return new npc_dkc1_gothikAI(_Creature); +} +  void AddSC_the_scarlet_enclave()  {      Script *newscript; @@ -613,4 +643,9 @@ void AddSC_the_scarlet_enclave()      newscript->Name="npc_ros_dark_rider";      newscript->GetAI = &GetAI_npc_ros_dark_rider;      newscript->RegisterSelf(); + +    newscript = new Script; +    newscript->Name="npc_dkc1_gothik"; +    newscript->GetAI = &GetAI_npc_dkc1_gothik; +    newscript->RegisterSelf();  }
\ No newline at end of file  | 
