diff options
author | Ovahlord <dreadkiller@gmx.de> | 2023-12-22 14:36:55 +0100 |
---|---|---|
committer | Ovahlord <dreadkiller@gmx.de> | 2023-12-22 14:36:55 +0100 |
commit | 6e7a4e733adfd61d8dbd538bf7b86e93f2ba7115 (patch) | |
tree | 2af41b45ee8746b580e0da9813508e321542e03f | |
parent | 06917b6c43e92735dc68b08a513d89a06c3d53ff (diff) |
Scripts/Shadowfang Keep: added definitions for the doors and added a comment regarding their usage
-rw-r--r-- | src/server/scripts/EasternKingdoms/ShadowfangKeep/instance_shadowfang_keep.cpp | 10 | ||||
-rw-r--r-- | src/server/scripts/EasternKingdoms/ShadowfangKeep/shadowfang_keep.h | 21 |
2 files changed, 26 insertions, 5 deletions
diff --git a/src/server/scripts/EasternKingdoms/ShadowfangKeep/instance_shadowfang_keep.cpp b/src/server/scripts/EasternKingdoms/ShadowfangKeep/instance_shadowfang_keep.cpp index 7f5f2e18ddf..8eedc483773 100644 --- a/src/server/scripts/EasternKingdoms/ShadowfangKeep/instance_shadowfang_keep.cpp +++ b/src/server/scripts/EasternKingdoms/ShadowfangKeep/instance_shadowfang_keep.cpp @@ -29,6 +29,14 @@ ObjectData const creatureData[] = { 0, 0 } // END }; +ObjectData const gameobjectData[] = +{ + { GO_COURTYARD_DOOR, DATA_COURTYARD_DOOR }, + { GO_SORCERERS_DOOR, DATA_SORCERER_GATE }, + { GO_ARUGALS_LAIR, DATA_ARUGAL_DOOR }, + { 0, 0 } // END +}; + DungeonEncounterData const encounters[] = { { BOSS_BARON_ASHBURY, {{ 1069 }} }, @@ -50,7 +58,7 @@ public: { SetHeaders(DataHeader); SetBossNumber(EncounterCount); - LoadObjectData(creatureData, nullptr); + LoadObjectData(creatureData, gameobjectData); LoadDungeonEncounterData(encounters); } }; diff --git a/src/server/scripts/EasternKingdoms/ShadowfangKeep/shadowfang_keep.h b/src/server/scripts/EasternKingdoms/ShadowfangKeep/shadowfang_keep.h index 5c6efae2564..1a9f0fac436 100644 --- a/src/server/scripts/EasternKingdoms/ShadowfangKeep/shadowfang_keep.h +++ b/src/server/scripts/EasternKingdoms/ShadowfangKeep/shadowfang_keep.h @@ -15,8 +15,8 @@ * with this program. If not, see <http://www.gnu.org/licenses/>. */ -#ifndef _Shadownfang_Keep_h__ -#define _Shadownfang_Keep_h__ +#ifndef _Shadowfang_Keep_h__ +#define _Shadowfang_Keep_h__ #include "CreatureAIImpl.h" @@ -33,7 +33,13 @@ enum SFKDataTypes BOSS_COMMANDER_SPRINGVALE = 2, BOSS_LORD_WALDEN = 3, BOSS_LORD_GODFREY = 4, - BOSS_APOTHECARY_HUMMEL = 5 + BOSS_APOTHECARY_HUMMEL = 5, + + // Additional data + /*The doors within this instance are all tied to events before becoming actual doors so we have to manually manage them*/ + DATA_ARUGAL_DOOR, + DATA_SORCERER_GATE, + DATA_COURTYARD_DOOR }; enum SFKCreatureIds @@ -46,6 +52,13 @@ enum SFKCreatureIds NPC_LORD_GODFREY = 46964 }; +enum SKGameObjectIds +{ + GO_COURTYARD_DOOR = 18895, + GO_SORCERERS_DOOR = 18972, + GO_ARUGALS_LAIR = 18971 +}; + template <class AI, class T> inline AI* GetShadowfangKeepAI(T* obj) { @@ -54,4 +67,4 @@ inline AI* GetShadowfangKeepAI(T* obj) #define RegisterShadowfangKeepCreatureAI(ai_name) RegisterCreatureAIWithFactory(ai_name, GetShadowfangKeepAI) -#endif // _Shadownfang_Keep_h__ +#endif // _Shadowfang_Keep_h__ |