diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/server/scripts/EasternKingdoms/zone_stormwind_city.cpp | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/src/server/scripts/EasternKingdoms/zone_stormwind_city.cpp b/src/server/scripts/EasternKingdoms/zone_stormwind_city.cpp index 08f9161f93f..36d7b7d6ca2 100644 --- a/src/server/scripts/EasternKingdoms/zone_stormwind_city.cpp +++ b/src/server/scripts/EasternKingdoms/zone_stormwind_city.cpp @@ -24,7 +24,6 @@ SDCategory: Stormwind City EndScriptData */ /* ContentData -npc_bartleby npc_tyrion npc_tyrion_spybot npc_marzon_silent_blade @@ -40,64 +39,6 @@ EndContentData */ #include "TemporarySummon.h" /*###### -## npc_bartleby -######*/ - -enum Bartleby -{ - QUEST_BEAT = 1640 -}; - -class npc_bartleby : public CreatureScript -{ -public: - npc_bartleby() : CreatureScript("npc_bartleby") { } - - struct npc_bartlebyAI : public ScriptedAI - { - npc_bartlebyAI(Creature* creature) : ScriptedAI(creature) - { - m_uiNormalFaction = creature->GetFaction(); - } - - uint32 m_uiNormalFaction; - - void Reset() override - { - if (me->GetFaction() != m_uiNormalFaction) - me->SetFaction(m_uiNormalFaction); - } - - void DamageTaken(Unit* pDoneBy, uint32 &uiDamage) override - { - if (uiDamage > me->GetHealth() || me->HealthBelowPctDamaged(15, uiDamage)) - { - //Take 0 damage - uiDamage = 0; - - if (pDoneBy && pDoneBy->GetTypeId() == TYPEID_PLAYER) - pDoneBy->ToPlayer()->AreaExploredOrEventHappens(QUEST_BEAT); - EnterEvadeMode(); - } - } - - void QuestAccept(Player* player, Quest const* quest) override - { - if (quest->GetQuestId() == QUEST_BEAT) - { - me->SetFaction(FACTION_ENEMY); - AttackStart(player); - } - } - }; - - CreatureAI* GetAI(Creature* creature) const override - { - return new npc_bartlebyAI(creature); - } -}; - -/*###### ## npc_lord_gregor_lescovar ######*/ @@ -555,7 +496,6 @@ public: void AddSC_stormwind_city() { - new npc_bartleby(); new npc_tyrion(); new npc_tyrion_spybot(); new npc_lord_gregor_lescovar(); |