diff options
author | Malcrom <malcromdev@gmail.com> | 2011-04-22 19:56:16 +0100 |
---|---|---|
committer | Nay <dnpd.dd@gmail.com> | 2011-04-22 19:56:16 +0100 |
commit | 5a5d266e00ffb6ec2acd1ba8b102215b5f1c844d (patch) | |
tree | 8fe0bf32098b2060b725713d04876e3097bbbe13 /src | |
parent | 4bf9a6f4a4bb15ed1380b9e1738f76f5ff24084f (diff) |
DB/SAI: Add 6172 & 6177 & 33788 scripts and remove their core scripts.
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/EasternKingdoms/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/server/scripts/EasternKingdoms/dun_morogh.cpp | 110 | ||||
-rw-r--r-- | src/server/scripts/EasternKingdoms/elwynn_forest.cpp | 107 |
3 files changed, 0 insertions, 219 deletions
diff --git a/src/server/scripts/EasternKingdoms/CMakeLists.txt b/src/server/scripts/EasternKingdoms/CMakeLists.txt index 4885745aebd..b8656dcd6d3 100644 --- a/src/server/scripts/EasternKingdoms/CMakeLists.txt +++ b/src/server/scripts/EasternKingdoms/CMakeLists.txt @@ -149,7 +149,6 @@ set(scripts_STAT_SRCS EasternKingdoms/ScarletMonastery/boss_arcanist_doan.cpp EasternKingdoms/ScarletMonastery/boss_herod.cpp EasternKingdoms/ScarletMonastery/boss_scorn.cpp - EasternKingdoms/dun_morogh.cpp EasternKingdoms/undercity.cpp EasternKingdoms/silvermoon_city.cpp EasternKingdoms/loch_modan.cpp @@ -168,7 +167,6 @@ set(scripts_STAT_SRCS EasternKingdoms/BlackwingLair/boss_flamegor.cpp EasternKingdoms/BlackwingLair/boss_victor_nefarius.cpp EasternKingdoms/blasted_lands.cpp - EasternKingdoms/elwynn_forest.cpp EasternKingdoms/stormwind_city.cpp EasternKingdoms/ZulAman/boss_halazzi.cpp EasternKingdoms/ZulAman/boss_hexlord.cpp diff --git a/src/server/scripts/EasternKingdoms/dun_morogh.cpp b/src/server/scripts/EasternKingdoms/dun_morogh.cpp deleted file mode 100644 index 5e03840615f..00000000000 --- a/src/server/scripts/EasternKingdoms/dun_morogh.cpp +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright (C) 2008-2011 TrinityCore <http://www.trinitycore.org/> - * Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/> - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 2 of the License, or (at your - * option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for - * more details. - * - * You should have received a copy of the GNU General Public License along - * with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -/* ScriptData -SDName: Dun_Morogh -SD%Complete: 50 -SDComment: Quest support: 1783 -SDCategory: Dun Morogh -EndScriptData */ - -/* ContentData -npc_narm_faulk -EndContentData */ - -#include "ScriptPCH.h" - -/*###### -## npc_narm_faulk -######*/ - -// signed for 6172 -enum eNarmFaulkData -{ - SAY_HEAL = -1000187, -}; - -class npc_narm_faulk : public CreatureScript -{ -public: - npc_narm_faulk() : CreatureScript("npc_narm_faulk") { } - - CreatureAI* GetAI(Creature* pCreature) const - { - return new npc_narm_faulkAI (pCreature); - } - - struct npc_narm_faulkAI : public ScriptedAI - { - uint32 lifeTimer; - bool spellHit; - - npc_narm_faulkAI(Creature *c) : ScriptedAI(c) {} - - void Reset() - { - lifeTimer = 120000; - me->SetUInt32Value(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_DEAD); - me->SetStandState(UNIT_STAND_STATE_DEAD); - spellHit = false; - } - - void EnterCombat(Unit * /*who*/) - { - } - - void MoveInLineOfSight(Unit * /*who*/) - { - return; - } - - void UpdateAI(const uint32 diff) - { - if (me->IsStandState()) - { - if (lifeTimer <= diff) - { - EnterEvadeMode(); - return; - } - else - lifeTimer -= diff; - } - } - - void SpellHit(Unit * /*Hitter*/, const SpellEntry *Spellkind) - { - if (Spellkind->Id == 8593 && !spellHit) - { - DoCast(me, 32343); - me->SetStandState(UNIT_STAND_STATE_STAND); - me->SetUInt32Value(UNIT_DYNAMIC_FLAGS, 0); - //me->RemoveAllAuras(); - DoScriptText(SAY_HEAL, me); - spellHit = true; - } - } - - }; - -}; - -void AddSC_dun_morogh() -{ - new npc_narm_faulk(); -} diff --git a/src/server/scripts/EasternKingdoms/elwynn_forest.cpp b/src/server/scripts/EasternKingdoms/elwynn_forest.cpp deleted file mode 100644 index 16afa6bea6d..00000000000 --- a/src/server/scripts/EasternKingdoms/elwynn_forest.cpp +++ /dev/null @@ -1,107 +0,0 @@ -/* - * Copyright (C) 2008-2011 TrinityCore <http://www.trinitycore.org/> - * Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/> - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation; either version 2 of the License, or (at your - * option) any later version. - * - * This program is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for - * more details. - * - * You should have received a copy of the GNU General Public License along - * with this program. If not, see <http://www.gnu.org/licenses/>. - */ - -/* ScriptData -SDName: Elwynn_Forest -SD%Complete: 50 -SDComment: Quest support: 1786 -SDCategory: Elwynn Forest -EndScriptData */ - -/* ContentData -npc_henze_faulk -EndContentData */ - -#include "ScriptPCH.h" - -/*###### -## npc_henze_faulk -######*/ -enum eHenzeFaulkData -{ - SAY_HEAL = -1000187, -}; - -class npc_henze_faulk : public CreatureScript -{ -public: - npc_henze_faulk() : CreatureScript("npc_henze_faulk") { } - - CreatureAI* GetAI(Creature* pCreature) const - { - return new npc_henze_faulkAI (pCreature); - } - - struct npc_henze_faulkAI : public ScriptedAI - { - uint32 lifeTimer; - bool spellHit; - - npc_henze_faulkAI(Creature *c) : ScriptedAI(c) {} - - void Reset() - { - lifeTimer = 120000; - me->SetUInt32Value(UNIT_DYNAMIC_FLAGS, UNIT_DYNFLAG_DEAD); - me->SetStandState(UNIT_STAND_STATE_DEAD); // lay down - spellHit = false; - } - - void EnterCombat(Unit * /*who*/) - { - } - - void MoveInLineOfSight(Unit * /*who*/) - { - } - - void UpdateAI(const uint32 diff) - { - if (me->IsStandState()) - { - if (lifeTimer <= diff) - { - EnterEvadeMode(); - return; - } - else - lifeTimer -= diff; - } - } - - void SpellHit(Unit * /*Hitter*/, const SpellEntry *Spellkind) - { - if (Spellkind->Id == 8593 && !spellHit) - { - DoCast(me, 32343); - me->SetStandState(UNIT_STAND_STATE_STAND); - me->SetUInt32Value(UNIT_DYNAMIC_FLAGS, 0); - //me->RemoveAllAuras(); - DoScriptText(SAY_HEAL, me); - spellHit = true; - } - } - - }; - -}; - -void AddSC_elwynn_forest() -{ - new npc_henze_faulk(); -} |