mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 23:50:44 +01:00
Scripted/BaradinHold: Add missing door for Alizabal
This commit is contained in:
5
sql/updates/world/2013_08_14_01_world_gameobject_434.sql
Normal file
5
sql/updates/world/2013_08_14_01_world_gameobject_434.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
SET @OGUID := xxxx;
|
||||
|
||||
DELETE FROM `gameobject` WHERE `id`=@OGUID;
|
||||
INSERT INTO `gameobject` (`guid`, `id`, `map`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`) VALUES
|
||||
(@OGUID, 209849, 757, 1, 1, 386.859, 1337.48, 170.1612, 1.570796, 0, 0, 1, -4.371139E-08, 7200, 255, 0);
|
||||
@@ -43,7 +43,8 @@ enum CreatureIds
|
||||
enum GameObjectIds
|
||||
{
|
||||
GO_ARGALOTH_DOOR = 207619,
|
||||
GO_OCCUTHAR_DOOR = 208953
|
||||
GO_OCCUTHAR_DOOR = 208953,
|
||||
GO_ALIZABAL = 209849,
|
||||
};
|
||||
|
||||
template<class AI>
|
||||
|
||||
@@ -21,8 +21,9 @@
|
||||
|
||||
DoorData const doorData[] =
|
||||
{
|
||||
{GO_ARGALOTH_DOOR, DATA_ARGALOTH, DOOR_TYPE_ROOM, BOUNDARY_NONE},
|
||||
{GO_OCCUTHAR_DOOR, DATA_OCCUTHAR, DOOR_TYPE_ROOM, BOUNDARY_NONE},
|
||||
{ GO_ARGALOTH_DOOR, DATA_ARGALOTH, DOOR_TYPE_ROOM, BOUNDARY_NONE },
|
||||
{ GO_OCCUTHAR_DOOR, DATA_OCCUTHAR, DOOR_TYPE_ROOM, BOUNDARY_NONE },
|
||||
{ GO_ALIZABAL, DATA_ALIZABAL, DOOR_TYPE_ROOM, BOUNDARY_NONE },
|
||||
};
|
||||
|
||||
class instance_baradin_hold: public InstanceMapScript
|
||||
@@ -40,8 +41,6 @@ class instance_baradin_hold: public InstanceMapScript
|
||||
ArgalothGUID = 0;
|
||||
OccutharGUID = 0;
|
||||
AlizabalGUID = 0;
|
||||
ArgalothDoor = 0;
|
||||
OccutharDoor = 0;
|
||||
}
|
||||
|
||||
void OnCreatureCreate(Creature* creature) OVERRIDE
|
||||
@@ -65,11 +64,12 @@ class instance_baradin_hold: public InstanceMapScript
|
||||
switch(go->GetEntry())
|
||||
{
|
||||
case GO_ARGALOTH_DOOR:
|
||||
ArgalothDoor = go->GetGUID();
|
||||
AddDoor(go, true);
|
||||
break;
|
||||
case GO_OCCUTHAR_DOOR:
|
||||
OccutharDoor = go->GetGUID();
|
||||
AddDoor(go, true);
|
||||
break;
|
||||
case GO_ALIZABAL:
|
||||
AddDoor(go, true);
|
||||
break;
|
||||
}
|
||||
@@ -102,6 +102,9 @@ class instance_baradin_hold: public InstanceMapScript
|
||||
case GO_OCCUTHAR_DOOR:
|
||||
AddDoor(go, false);
|
||||
break;
|
||||
case GO_ALIZABAL:
|
||||
AddDoor(go, false);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -154,8 +157,6 @@ class instance_baradin_hold: public InstanceMapScript
|
||||
uint64 ArgalothGUID;
|
||||
uint64 OccutharGUID;
|
||||
uint64 AlizabalGUID;
|
||||
uint64 ArgalothDoor;
|
||||
uint64 OccutharDoor;
|
||||
};
|
||||
|
||||
InstanceScript* GetInstanceScript(InstanceMap* map) const
|
||||
|
||||
Reference in New Issue
Block a user