From f3e262a05609bd13e792adf4c16583f96d38961c Mon Sep 17 00:00:00 2001 From: offl Date: Thu, 21 May 2020 23:52:02 +0200 Subject: DB/GameObject: Convert & update support for Shrine of the Eagle / Falcon / Hawk to SAI Closes #24647 (cherry picked from commit 0cfd63fd26312c8abb475cf36fcd164e65fc3eec) --- src/server/scripts/World/go_scripts.cpp | 58 --------------------------------- 1 file changed, 58 deletions(-) (limited to 'src') diff --git a/src/server/scripts/World/go_scripts.cpp b/src/server/scripts/World/go_scripts.cpp index 5561ff3b444..07fed8f4359 100644 --- a/src/server/scripts/World/go_scripts.cpp +++ b/src/server/scripts/World/go_scripts.cpp @@ -18,7 +18,6 @@ /* ContentData go_ethereum_prison go_ethereum_stasis -go_shrine_of_the_birds go_southfury_moonstone go_resonite_cask go_tablet_of_the_seven @@ -262,62 +261,6 @@ public: } }; -/*###### -## go_shrine_of_the_birds -######*/ - -enum ShrineOfTheBirds -{ - NPC_HAWK_GUARD = 22992, - NPC_EAGLE_GUARD = 22993, - NPC_FALCON_GUARD = 22994, - GO_SHRINE_HAWK = 185551, - GO_SHRINE_EAGLE = 185547, - GO_SHRINE_FALCON = 185553 -}; - -class go_shrine_of_the_birds : public GameObjectScript -{ -public: - go_shrine_of_the_birds() : GameObjectScript("go_shrine_of_the_birds") { } - - struct go_shrine_of_the_birdsAI : public GameObjectAI - { - go_shrine_of_the_birdsAI(GameObject* go) : GameObjectAI(go) { } - - bool GossipHello(Player* player) override - { - uint32 BirdEntry = 0; - - float fX, fY, fZ; - me->GetClosePoint(fX, fY, fZ, me->GetCombatReach(), INTERACTION_DISTANCE); - - switch (me->GetEntry()) - { - case GO_SHRINE_HAWK: - BirdEntry = NPC_HAWK_GUARD; - break; - case GO_SHRINE_EAGLE: - BirdEntry = NPC_EAGLE_GUARD; - break; - case GO_SHRINE_FALCON: - BirdEntry = NPC_FALCON_GUARD; - break; - } - - if (BirdEntry) - player->SummonCreature(BirdEntry, fX, fY, fZ, me->GetOrientation(), TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 60000); - - return false; - } - }; - - GameObjectAI* GetAI(GameObject* go) const override - { - return new go_shrine_of_the_birdsAI(go); - } -}; - /*###### ## go_southfury_moonstone ######*/ @@ -1671,7 +1614,6 @@ public: void AddSC_go_scripts() { new go_gilded_brazier(); - new go_shrine_of_the_birds(); new go_southfury_moonstone(); new go_tablet_of_the_seven(); new go_ethereum_prison(); -- cgit v1.2.3