Scripts/HellfireRamparts: Remove the spawning of the Reinforced Fel Iron chest from scripts

Updates #13747
This commit is contained in:
Nyeriah
2015-01-10 02:35:28 -02:00
parent 9d56c9a104
commit 9c9e5abca3
4 changed files with 12 additions and 16 deletions

View File

@@ -0,0 +1,5 @@
-- Replace the previously spawned chests with sniffed ones
DELETE FROM `gameobject` WHERE `id` IN (185168, 185169) AND `guid` IN (20499, 20496);
INSERT INTO `gameobject` (`guid`, `id`, `map`, `spawnMask`, `phaseMask`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`, `VerifiedBuild`) VALUES
(20496, 185168, 543, 3, 1, -1429.81, 1772.916, 82.0765, 5.044002, 0, 0, 0, 1, 7200, 255, 1, 19243), -- 185168 (Area: 3562)
(20499, 185169, 543, 3, 1, -1429.81, 1772.916, 82.0765, 5.044002, 0, 0, 0, 1, 7200, 255, 1, 19243); -- 185169 (Area: 3562)

View File

@@ -434,13 +434,6 @@ class boss_vazruden_the_herald : public CreatureScript
return;
}
}
else if (!lootSpawned)
{
me->SummonGameObject(DUNGEON_MODE(GO_FEL_IRON_CHEST_NORMAL, GO_FEL_IRON_CHECT_HEROIC), VazrudenMiddle[0], VazrudenMiddle[1], VazrudenMiddle[2], 0, 0, 0, 0, 0, 0);
me->SetLootRecipient(NULL); // don't think this is necessary..
//me->Kill(me);
lootSpawned = true;
}
check = 2000;
}
else

View File

@@ -43,7 +43,7 @@ enum CreatureIds
enum GameobjectIds
{
GO_FEL_IRON_CHEST_NORMAL = 185168,
GO_FEL_IRON_CHECT_HEROIC = 185169
GO_FEL_IRON_CHEST_HEROIC = 185169
};
#endif

View File

@@ -36,7 +36,6 @@ class instance_ramparts : public InstanceMapScript
{
instance_ramparts_InstanceMapScript(Map* map) : InstanceScript(map)
{
spawned = false;
SetHeaders(DataHeader);
SetBossNumber(EncounterCount);
}
@@ -46,7 +45,7 @@ class instance_ramparts : public InstanceMapScript
switch (go->GetEntry())
{
case GO_FEL_IRON_CHEST_NORMAL:
case GO_FEL_IRON_CHECT_HEROIC:
case GO_FEL_IRON_CHEST_HEROIC:
felIronChestGUID = go->GetGUID();
break;
}
@@ -61,11 +60,11 @@ class instance_ramparts : public InstanceMapScript
{
case DATA_VAZRUDEN:
case DATA_NAZAN:
if (GetBossState(DATA_VAZRUDEN) == DONE && GetBossState(DATA_NAZAN) == DONE && !spawned)
{
DoRespawnGameObject(felIronChestGUID, HOUR*IN_MILLISECONDS);
spawned = true;
}
if (GetBossState(DATA_VAZRUDEN) == DONE && GetBossState(DATA_NAZAN) == DONE)
if (GameObject* chest = instance->GetGameObject(felIronChestGUID))
chest->RemoveFlag(GAMEOBJECT_FLAGS, GO_FLAG_NOT_SELECTABLE);
break;
default:
break;
}
return true;
@@ -73,7 +72,6 @@ class instance_ramparts : public InstanceMapScript
protected:
ObjectGuid felIronChestGUID;
bool spawned;
};
InstanceScript* GetInstanceScript(InstanceMap* map) const override