SIN's fixes: take out our rewrites before his own code goes in
Our own versions of SIN's 0.1.37 fixes come out, so his code can go in as he wrote it: bot trading, Excavation Tools and the Ironforge banner site, the Algaz and Rethban Gauntlet quests and map pins, the Deadmines cannon, the Lakeshire posters and Redridge grunt, the Darnassus guild vault, the Warpwood Crusher size, the hunter bot pet revive and the open-world respawns. Kept: the Ironforge guild vault (not part of SIN's packs) and the Goldshire/Northshire trainer duplicates fix (2026_11_14_02, made before his pack and covering all four NPCs).
This commit is contained in:
@@ -1,30 +0,0 @@
|
||||
-- Quests from Discord "bugs 4" (2026-11-13) that show as complete too early or have no map area for their objective.
|
||||
-- Taken from SIN's fix pack for 0.1.36 and written again here. Safe to run again.
|
||||
|
||||
-- The Algaz Gauntlet (455, Wetlands: kill 8 Scouts and 6 Grunts, go through the pass) "can't be turned in" and The Rethban
|
||||
-- Gauntlet (1699, Redridge, timed: reach the fork and return) "shows complete, can't turn in". Both carry the old completion
|
||||
-- flag "area trigger" (4) next to a real area trigger objective (455: 385480 trigger 175; 1699: 385494 trigger 482, from EG Link
|
||||
-- 2026_11_12_14). With that flag, walking into the trigger tells the client the whole quest is complete at once
|
||||
-- (Player::AreaExploredOrEventHappens -> SendQuestComplete), even with kills still to do, and the quest then also waits on that
|
||||
-- flag. The objective already does the job, so the flag goes: 455 Flags 12 -> 8, 1699 Flags 5 -> 1. Only when the flags are
|
||||
-- still the shipped ones. PC step lists every other quest with flag 4 and a trigger objective (no change made to those yet).
|
||||
UPDATE `quest_template` SET `Flags` = `Flags` & ~4 WHERE (`ID` = 455 AND `Flags` = 12) OR (`ID` = 1699 AND `Flags` = 5);
|
||||
|
||||
-- Map areas for the objectives that had none (the turn-in areas stay). Points: Huldar's spawn 20008279 for 273 (its objective is
|
||||
-- "find Huldar", 9000273, 2026_11_06_50); for 455 and 1699 the area trigger centres as read from the client AreaTrigger.db2
|
||||
-- by the fix pack (INFERRED until the PC step reads them back). Flags 1 as the other blobs of these quests (2026_10_09_01).
|
||||
DELETE FROM `quest_poi` WHERE (`QuestID` = 273 AND `Idx1` = 0) OR (`QuestID` = 455 AND `Idx1` = 2) OR (`QuestID` = 1699 AND `Idx1` = 0);
|
||||
INSERT INTO `quest_poi` (`QuestID`,`BlobIndex`,`Idx1`,`ObjectiveIndex`,`QuestObjectiveID`,`QuestObjectID`,`MapID`,`UiMapID`,`Priority`,`Flags`,`WorldEffectID`,`PlayerConditionID`,`NavigationPlayerConditionID`,`SpawnTrackingID`,`AlwaysAllowMergingBlobs`,`VerifiedBuild`) VALUES
|
||||
(273,0,0,0,9000273,2057,0,1432,0,1,0,0,0,0,0,0),
|
||||
(455,0,2,2,385480,175,0,1437,0,1,0,0,0,0,0,0),
|
||||
(1699,0,0,0,385494,482,0,1433,0,1,0,0,0,0,0,0);
|
||||
DELETE FROM `quest_poi_points` WHERE (`QuestID` = 273 AND `Idx1` = 0) OR (`QuestID` = 455 AND `Idx1` = 2) OR (`QuestID` = 1699 AND `Idx1` = 0);
|
||||
INSERT INTO `quest_poi_points` (`QuestID`,`Idx1`,`Idx2`,`X`,`Y`,`Z`,`VerifiedBuild`) VALUES
|
||||
(273,0,0,-5763,-3433,306,0),
|
||||
(455,2,0,-4086,-2611,46,0),
|
||||
(1699,0,0,-8933,-1986,140,0);
|
||||
|
||||
-- WANTED: Incinerator Gar'im (95999): 2026_11_12_25 moved Gar'im (spawn 21451900) off the cliff top into Render's Valley, but
|
||||
-- the quest's map area for him stayed on the cliff (-9817, -3361, 158), so the map still sends players to the old place
|
||||
-- (Discord "bugs 4": "still in the wrong place"). The area follows him now.
|
||||
UPDATE `quest_poi_points` SET `X` = -9721, `Y` = -3189, `Z` = 59 WHERE `QuestID` = 95999 AND `Idx1` = 1 AND `Idx2` = 0;
|
||||
@@ -1,25 +0,0 @@
|
||||
-- Two Loch Modan Forever quests from Discord "bugs 4" (2026-11-13). Taken from SIN's fix pack for 0.1.36 and written again
|
||||
-- here. Safe to run again.
|
||||
|
||||
-- Excavation Tools (86613): its starter item 278049 lies in the Excavation Tools chests (665282) at 30%, from Wowhead Forever's
|
||||
-- "contains 3/10", where most openers were already on the quest and so could not get it. Patch 0093 lets a player who can take
|
||||
-- the quest open the chest; at 30% such a player still found it empty seven times in ten. The starter is only handed to a player
|
||||
-- who can take the quest and does not carry it, so it now drops every time for them. INFERRED (no live rate for those players).
|
||||
-- The quest item 278398 (6 needed, 9 chests) keeps its 70%.
|
||||
UPDATE `gameobject_loot_template` SET `Chance` = 100
|
||||
WHERE `Entry` = 665282 AND `Item` = 278049 AND `QuestRequired` = 0 AND `Chance` = 30;
|
||||
|
||||
-- Banner of the Fallen (86585, patch 0097): raising the Ironforge standard (spell 1303317) needs spell focus 2311 nearby, and
|
||||
-- nothing in the world had it, so the standard could not be raised. A spell focus object now stands at Mountaineer Ylva
|
||||
-- (269153, spawn 26915300), where the quest is given; it copies the South Gate Snow focus (8380007) with focus 2311.
|
||||
-- INFERRED: the place (the quest says to raise the banner near her). Headsplitter keeps his two spawns beside her.
|
||||
DELETE FROM `gameobject` WHERE `guid` = 838000800;
|
||||
DELETE FROM `gameobject_template` WHERE `entry` = 8380008;
|
||||
DROP TEMPORARY TABLE IF EXISTS `tmp_forever_banner_site`;
|
||||
CREATE TEMPORARY TABLE `tmp_forever_banner_site` AS SELECT * FROM `gameobject_template` WHERE `entry` = 8380007;
|
||||
UPDATE `tmp_forever_banner_site` SET `entry` = 8380008, `name` = 'Ironforge Banner Site (spell focus)', `Data0` = 2311;
|
||||
INSERT INTO `gameobject_template` SELECT * FROM `tmp_forever_banner_site`;
|
||||
DROP TEMPORARY TABLE `tmp_forever_banner_site`;
|
||||
INSERT INTO `gameobject` (`guid`,`id`,`map`,`zoneId`,`areaId`,`spawnDifficulties`,`phaseUseFlags`,`PhaseId`,`PhaseGroup`,`terrainSwapMap`,`position_x`,`position_y`,`position_z`,`orientation`,`rotation0`,`rotation1`,`rotation2`,`rotation3`,`spawntimesecs`,`animprogress`,`state`,`ScriptName`,`StringId`,`VerifiedBuild`)
|
||||
SELECT 838000800,8380008,0,0,0,'0',0,0,0,-1,`position_x`,`position_y`,`position_z`,0,0,0,0,1,300,255,1,'',NULL,0
|
||||
FROM `creature` WHERE `guid` = 26915300 AND `id` = 269153 AND EXISTS (SELECT 1 FROM `gameobject_template` WHERE `entry` = 8380008);
|
||||
@@ -1,18 +0,0 @@
|
||||
-- Redridge spawns from Discord "bugs 4" (2026-11-13). Taken from SIN's fix pack for 0.1.36 and written again here.
|
||||
-- Safe to run again (each change only applies while the spawn is still at its old place).
|
||||
|
||||
-- Lakeshire 24,46: the two large posters 649051 (spawns 64905100/64905101, from 2026_11_05_99) stood at terrain height 63.93,
|
||||
-- under the building floor. They go on the wall of the Wanted notice 60 (spawn 30042496, -9243.42, -2213.92, 67.62, facing
|
||||
-- 3.14159): one 1.3 yd beside it, the other across the doorway 7.2 yd away, both 0.9 yd higher, same facing.
|
||||
-- INFERRED: placed by eye in the fix pack; the PC step checks they stand on the wall.
|
||||
UPDATE `gameobject` SET `position_x` = -9243.42, `position_y` = -2215.22, `position_z` = 68.5241, `orientation` = 3.14159,
|
||||
`rotation0` = 0, `rotation1` = 0, `rotation2` = 1, `rotation3` = 0
|
||||
WHERE `guid` = 64905100 AND `id` = 649051 AND ABS(`position_z` - 63.934) < 0.01;
|
||||
UPDATE `gameobject` SET `position_x` = -9243.42, `position_y` = -2206.72, `position_z` = 68.5241, `orientation` = 3.14159,
|
||||
`rotation0` = 0, `rotation1` = 0, `rotation2` = 1, `rotation3` = 0
|
||||
WHERE `guid` = 64905101 AND `id` = 649051 AND ABS(`position_z` - 63.934) < 0.01;
|
||||
|
||||
-- Redridge 68,79: "mob stuck, can't be hit". The standing Blackrock Grunt 440 (spawn 20006742) had no walkable ground under its
|
||||
-- home spot; it moves 5 yd onto walkable ground. INFERRED from the navmesh by the fix pack; the PC ground probe checks it.
|
||||
UPDATE `creature` SET `position_x` = -9706.812, `position_y` = -3167.993, `position_z` = 59.415
|
||||
WHERE `guid` = 20006742 AND `id` = 440 AND ABS(`position_x` + 9711.56) < 0.01 AND ABS(`position_y` + 3165.54) < 0.01;
|
||||
@@ -1,17 +0,0 @@
|
||||
-- Darnassus: no Guild Vault at the bank (Discord #bug-report "Missing guild bank/vault", 2026-11-14: "After creating a guild, I
|
||||
-- went to the Darnassus bank, but the guild vault appears missing"). The sniffed vaults (2026_10_01_03) stand in Stormwind,
|
||||
-- Undercity, Orgrimmar, Thunder Bluff and Ratchet; Darnassus had none. Fix pack idea from SIN (#team-members 2026-11-14), written
|
||||
-- again here: one vault in the Bank of Darnassus, 2.5 yd in front of the banker Idriana, facing the same way she does, so
|
||||
-- its front looks at the players who come to her (as SIN's own pack also has it).
|
||||
-- INFERRED: the place (no sniff of a Darnassus vault) and the look: the Alliance vault of Stormwind (630865, scale 0.66). The
|
||||
-- spot is taken from Idriana's own spawn, so it follows her. Safe to run again.
|
||||
DELETE FROM `gameobject` WHERE `guid` = 838001000;
|
||||
INSERT INTO `gameobject` (`guid`,`id`,`map`,`zoneId`,`areaId`,`spawnDifficulties`,`phaseUseFlags`,`PhaseId`,`PhaseGroup`,`terrainSwapMap`,`position_x`,`position_y`,`position_z`,`orientation`,`rotation0`,`rotation1`,`rotation2`,`rotation3`,`spawntimesecs`,`animprogress`,`state`,`ScriptName`,`StringId`,`VerifiedBuild`)
|
||||
SELECT 838001000, 630865, 1, 0, 0, '0', 0, 0, 0, -1,
|
||||
c.`position_x` + 2.5 * COS(c.`orientation`), c.`position_y` + 2.5 * SIN(c.`orientation`), c.`position_z`,
|
||||
c.`orientation`, 0, 0, SIN(c.`orientation` / 2), COS(c.`orientation` / 2),
|
||||
120, 255, 1, '', NULL, 0
|
||||
FROM `creature` c JOIN `creature_template` t ON t.`entry` = c.`id`
|
||||
WHERE t.`name` = 'Idriana' AND c.`map` = 1 AND c.`position_x` > 9000
|
||||
AND EXISTS (SELECT 1 FROM `gameobject_template` WHERE `entry` = 630865)
|
||||
ORDER BY c.`guid` LIMIT 1;
|
||||
@@ -1,7 +0,0 @@
|
||||
-- Dire Maul: the Warpwood Crusher (13021) is drawn three and a half times too big (fix pack idea from SIN, #team-members
|
||||
-- 2026-11-14, "Reduced the Warpwood Crusher's display scale from 3.5 to 1.0"), written again here. Its one model 12929 had
|
||||
-- DisplayScale 3.5 from the shipped world database; the client already sizes the model itself, so 1.0 draws it at its own size.
|
||||
-- INFERRED: no live record of 13021 is in hand (not in the 70888 player cache); the PC step reads model 12929's scale from the
|
||||
-- client's CreatureDisplayInfo. Only while the shipped 3.5 is still there. Safe to run again.
|
||||
UPDATE `creature_template_model` SET `DisplayScale` = 1
|
||||
WHERE `CreatureID` = 13021 AND `CreatureDisplayID` = 12929 AND ABS(`DisplayScale` - 3.5) < 0.001;
|
||||
@@ -2306,7 +2306,8 @@ void Creature::setDeathState(DeathState s)
|
||||
m_corpseRemoveTime = GameTime::GetGameTime() + m_corpseDelay;
|
||||
|
||||
uint32 respawnDelay = GetClassicRespawnDelay();
|
||||
GetMap()->ApplyDynamicRespawnScaling(this, m_spawnId, respawnDelay);
|
||||
if (uint32 scalingMode = sWorld->getIntConfig(CONFIG_RESPAWN_DYNAMICMODE))
|
||||
GetMap()->ApplyDynamicModeRespawnScaling(this, m_spawnId, respawnDelay, scalingMode);
|
||||
|
||||
// @todo remove the boss respawn time hack in a dynspawn follow-up once we have creature groups in instances
|
||||
if (m_respawnCompatibilityMode)
|
||||
@@ -2519,7 +2520,8 @@ void Creature::ForcedDespawn(uint32 timeMSToDespawn, Seconds forceRespawnTimer)
|
||||
else
|
||||
{
|
||||
uint32 respawnDelay = GetClassicRespawnDelay();
|
||||
GetMap()->ApplyDynamicRespawnScaling(this, m_spawnId, respawnDelay);
|
||||
if (uint32 scalingMode = sWorld->getIntConfig(CONFIG_RESPAWN_DYNAMICMODE))
|
||||
GetMap()->ApplyDynamicModeRespawnScaling(this, m_spawnId, respawnDelay, scalingMode);
|
||||
m_respawnTime = GameTime::GetGameTime() + respawnDelay;
|
||||
SaveRespawnTime();
|
||||
}
|
||||
|
||||
@@ -1783,7 +1783,8 @@ void GameObject::Update(uint32 diff)
|
||||
}
|
||||
|
||||
uint32 respawnDelay = m_respawnDelayTime;
|
||||
GetMap()->ApplyDynamicRespawnScaling(this, this->m_spawnId, respawnDelay);
|
||||
if (uint32 scalingMode = sWorld->getIntConfig(CONFIG_RESPAWN_DYNAMICMODE))
|
||||
GetMap()->ApplyDynamicModeRespawnScaling(this, this->m_spawnId, respawnDelay, scalingMode);
|
||||
m_respawnTime = GameTime::GetGameTime() + respawnDelay;
|
||||
|
||||
// if option not set then object will be saved at grid unload
|
||||
|
||||
@@ -8244,11 +8244,7 @@ void Player::UpdateZone(uint32 newZone, uint32 newArea)
|
||||
uint32 const oldZone = m_zoneUpdateId;
|
||||
m_zoneUpdateId = newZone;
|
||||
|
||||
// The zone player count drives dynamic respawn timers (Map::ApplyDynamicRespawnScaling). Bots are not counted: a zone full of bots
|
||||
// would otherwise respawn its mobs as if it were crowded with players. A session is a bot for its whole life, so the count stays
|
||||
// balanced (the leave in Map::RemovePlayerFromMap comes through here too).
|
||||
if (!GetSession()->IsBot())
|
||||
GetMap()->UpdatePlayerZoneStats(oldZone, newZone);
|
||||
GetMap()->UpdatePlayerZoneStats(oldZone, newZone);
|
||||
|
||||
// call leave script hooks immedately (before updating flags)
|
||||
if (oldZone != newZone)
|
||||
|
||||
@@ -2313,63 +2313,11 @@ void Map::ProcessRespawns()
|
||||
}
|
||||
}
|
||||
|
||||
namespace
|
||||
{
|
||||
// Respawn.DynamicOpenWorld: an ordinary open-world combat creature, the kind players kill in numbers when many of them quest in one
|
||||
// zone. Read from the spawn and its template, so it follows the world data without a list of spawn ids. Left out: anything in an
|
||||
// explicit spawn group (that group's own flags decide), a pool or quest spawn tracking; anything that is not normal rank (elites,
|
||||
// rares and bosses keep their timers); service NPCs, quest givers and enders, vehicles, triggers, civilians, racial leaders and
|
||||
// creatures players cannot attack; and creatures that are neither hostile to players nor a beast that is not friendly to players
|
||||
// (wolves, boars and spiders count).
|
||||
bool IsOpenWorldCombatSpawn(Creature const* creature, SpawnMetadata const* data)
|
||||
{
|
||||
if (data->spawnGroupData != sObjectMgr->GetDefaultSpawnGroup())
|
||||
return false;
|
||||
if (sPoolMgr->IsPartOfAPool<Creature>(data->spawnId))
|
||||
return false;
|
||||
// Spawn tracking ties the spawn to a quest's state; leave those to their quest.
|
||||
if (data->spawnTrackingData)
|
||||
return false;
|
||||
|
||||
CreatureTemplate const* cInfo = creature->GetCreatureTemplate();
|
||||
if (cInfo->Classification != CreatureClassifications::Normal)
|
||||
return false;
|
||||
if (cInfo->VehicleId || cInfo->RacialLeader || creature->IsTrigger() || creature->IsCivilian() || creature->IsDungeonBoss())
|
||||
return false;
|
||||
// The spawn's own npcflag / unit_flags win over the template's, as they do when the creature is created.
|
||||
CreatureData const* spawn = sObjectMgr->GetCreatureData(data->spawnId);
|
||||
uint64 const npcFlags = spawn && spawn->npcflag ? *spawn->npcflag : cInfo->npcflag;
|
||||
uint32 const unitFlags = spawn && spawn->unit_flags ? *spawn->unit_flags : cInfo->unit_flags;
|
||||
if (npcFlags)
|
||||
return false;
|
||||
if (unitFlags & (UNIT_FLAG_NON_ATTACKABLE | UNIT_FLAG_NOT_ATTACKABLE_1 | UNIT_FLAG_IMMUNE_TO_PC | UNIT_FLAG_UNINTERACTIBLE))
|
||||
return false;
|
||||
|
||||
QuestRelationResult starts = sObjectMgr->GetCreatureQuestRelations(cInfo->Entry);
|
||||
QuestRelationResult ends = sObjectMgr->GetCreatureQuestInvolvedRelations(cInfo->Entry);
|
||||
if (!(starts.begin() == starts.end()) || !(ends.begin() == ends.end()))
|
||||
return false;
|
||||
|
||||
FactionTemplateEntry const* faction = sFactionTemplateStore.LookupEntry(cInfo->faction);
|
||||
if (!faction)
|
||||
return false;
|
||||
if (faction->IsHostileToPlayers())
|
||||
return true;
|
||||
return cInfo->type == CREATURE_TYPE_BEAST && !(faction->FriendGroup & FACTION_MASK_PLAYER);
|
||||
}
|
||||
}
|
||||
|
||||
void Map::ApplyDynamicRespawnScaling(WorldObject const* obj, ObjectGuid::LowType spawnId, uint32& respawnDelay) const
|
||||
void Map::ApplyDynamicModeRespawnScaling(WorldObject const* obj, ObjectGuid::LowType spawnId, uint32& respawnDelay, uint32 mode) const
|
||||
{
|
||||
ASSERT(mode == 1);
|
||||
ASSERT(obj->GetMap() == this);
|
||||
|
||||
// Respawn.DynamicMode 1: spawn groups flagged for dynamic rate (stock). Respawn.DynamicOpenWorld: also the ordinary open-world
|
||||
// combat creatures (IsOpenWorldCombatSpawn). Both off by default; both scale by the players in the zone.
|
||||
bool const groupMode = sWorld->getIntConfig(CONFIG_RESPAWN_DYNAMICMODE) == 1;
|
||||
bool const openWorld = sWorld->getBoolConfig(CONFIG_RESPAWN_DYNAMIC_OPEN_WORLD);
|
||||
if (!groupMode && !openWorld)
|
||||
return;
|
||||
|
||||
if (IsBattlegroundOrArena())
|
||||
return;
|
||||
|
||||
@@ -2390,13 +2338,9 @@ void Map::ApplyDynamicRespawnScaling(WorldObject const* obj, ObjectGuid::LowType
|
||||
if (!data)
|
||||
return;
|
||||
|
||||
bool scaled = groupMode && (data->spawnGroupData->flags & SPAWNGROUP_FLAG_DYNAMIC_SPAWN_RATE);
|
||||
if (!scaled && openWorld && type == SPAWN_TYPE_CREATURE && !Instanceable())
|
||||
scaled = IsOpenWorldCombatSpawn(obj->ToCreature(), data);
|
||||
if (!scaled)
|
||||
if (!(data->spawnGroupData->flags & SPAWNGROUP_FLAG_DYNAMIC_SPAWN_RATE))
|
||||
return;
|
||||
|
||||
// Real players only: bots are not counted (Player::UpdateZone), so a zone full of bots keeps the normal timers.
|
||||
auto it = _zonePlayerCountMap.find(obj->GetZoneId());
|
||||
if (it == _zonePlayerCountMap.end())
|
||||
return;
|
||||
|
||||
@@ -718,7 +718,7 @@ class TC_GAME_API Map : public GridRefManager<NGridType>
|
||||
|
||||
public:
|
||||
void ProcessRespawns();
|
||||
void ApplyDynamicRespawnScaling(WorldObject const* obj, ObjectGuid::LowType spawnId, uint32& respawnDelay) const;
|
||||
void ApplyDynamicModeRespawnScaling(WorldObject const* obj, ObjectGuid::LowType spawnId, uint32& respawnDelay, uint32 mode) const;
|
||||
|
||||
private:
|
||||
// if return value is true, we can respawn
|
||||
|
||||
@@ -672,7 +672,6 @@ void World::LoadConfigSettings(bool reload)
|
||||
{ .Name = "ArenaLog.ExtendedInfo"sv, .DefaultValue = false, .Index = CONFIG_ARENA_LOG_EXTENDED_INFO },
|
||||
{ .Name = "OffhandCheckAtSpellUnlearn"sv, .DefaultValue = true, .Index = CONFIG_OFFHAND_CHECK_AT_SPELL_UNLEARN },
|
||||
{ .Name = "Respawn.DynamicEscortNPC"sv, .DefaultValue = false, .Index = CONFIG_RESPAWN_DYNAMIC_ESCORTNPC },
|
||||
{ .Name = "Respawn.DynamicOpenWorld"sv, .DefaultValue = false, .Index = CONFIG_RESPAWN_DYNAMIC_OPEN_WORLD },
|
||||
{ .Name = "mmap.enablePathFinding"sv, .DefaultValue = true, .Index = CONFIG_ENABLE_MMAPS },
|
||||
{ .Name = "vmap.enableIndoorCheck"sv, .DefaultValue = true, .Index = CONFIG_VMAP_INDOOR_CHECK },
|
||||
{ .Name = "PlayerStart.AllSpells"sv, .DefaultValue = false, .Index = CONFIG_START_ALL_SPELLS },
|
||||
|
||||
@@ -201,7 +201,6 @@ enum WorldBoolConfigs : uint32
|
||||
CONFIG_GAME_OBJECT_CHECK_INVALID_POSITION,
|
||||
CONFIG_CHECK_GOBJECT_LOS,
|
||||
CONFIG_RESPAWN_DYNAMIC_ESCORTNPC,
|
||||
CONFIG_RESPAWN_DYNAMIC_OPEN_WORLD,
|
||||
CONFIG_REGEN_HP_CANNOT_REACH_TARGET_IN_RAID,
|
||||
CONFIG_ALLOW_LOGGING_IP_ADDRESSES_IN_DATABASE,
|
||||
CONFIG_EXTENDED_ACCOUNT_NAME_LENGTH_LIMIT,
|
||||
|
||||
+5
-19
@@ -235,21 +235,13 @@ public:
|
||||
{
|
||||
if (data == IN_PROGRESS)
|
||||
{
|
||||
// The cannon used to mark the event as started even when the Iron Clad Door was not known to the instance
|
||||
// yet; then no timer ran and the cannon could never start it again (Discord "bugs 4", 2026-11-13: the wave
|
||||
// never came). Without the door the event now stays unstarted, so the next use of the cannon tries again.
|
||||
GameObject* door = instance->GetGameObject(m_uiIronCladGUID);
|
||||
if (!door)
|
||||
if (GameObject* go = instance->GetGameObject(m_uiIronCladGUID))
|
||||
{
|
||||
TC_LOG_DEBUG("scripts", "Instance Deadmines: cannon used before the Iron Clad Door was loaded, event not started.");
|
||||
return;
|
||||
// no breaking the door if it's open
|
||||
if (!(go->GetGoState() == GO_STATE_ACTIVE))
|
||||
go->UseDoorOrButton(0, true);
|
||||
m_uiIronDoorTimer = 3000;
|
||||
}
|
||||
|
||||
// only a closed door is blown open
|
||||
if (door->GetGoState() == GO_STATE_READY)
|
||||
door->UseDoorOrButton(0, true);
|
||||
m_uiIronDoorStep = 0;
|
||||
m_uiIronDoorTimer = 3000;
|
||||
}
|
||||
m_auiEncounter[0] = data;
|
||||
}
|
||||
@@ -349,7 +341,6 @@ public:
|
||||
ClassicScriptText(CDM_INST_SAY_ALARM2, mrSmite);
|
||||
m_uiIronDoorStep = 0;
|
||||
m_uiIronDoorTimer = 0;
|
||||
m_auiEncounter[0] = DONE;
|
||||
TC_LOG_DEBUG("scripts", "Instance Deadmines: Iron door event reached end.");
|
||||
break;
|
||||
default:
|
||||
@@ -357,12 +348,7 @@ public:
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// Mr. Smite is not there to call the alarm: the event did not run, so the cannon may start it again
|
||||
m_uiIronDoorTimer = 0;
|
||||
m_uiIronDoorStep = 0;
|
||||
m_auiEncounter[0] = NOT_STARTED;
|
||||
}
|
||||
}
|
||||
else
|
||||
m_uiIronDoorTimer -= diff;
|
||||
|
||||
@@ -2254,7 +2254,7 @@ Respawn.RestartQuietTime = 3
|
||||
# Description: Select which mode (if any) should be used to adjust respawn of creatures.
|
||||
# This will only affect creatures that have dynamic spawn rate scaling enabled in
|
||||
# the spawn group table (by default, gathering nodes and quest targets with respawn time <30min
|
||||
# 1 - Use number of players in zone (real players only; bots are not counted)
|
||||
# 1 - Use number of players in zone
|
||||
# Default: 0 - No dynamic respawn function
|
||||
|
||||
Respawn.DynamicMode = 0
|
||||
@@ -2269,21 +2269,6 @@ Respawn.DynamicMode = 0
|
||||
|
||||
Respawn.DynamicEscortNPC = 0
|
||||
|
||||
#
|
||||
# Respawn.DynamicOpenWorld
|
||||
# Description: Also scale the respawn of ordinary open-world combat creatures by the players in the zone, not only the
|
||||
# spawn groups flagged for it (Respawn.DynamicMode). Counts real players only, never bots. Uses
|
||||
# Respawn.DynamicRateCreature and Respawn.DynamicMinimumCreature: with the defaults, timers start to
|
||||
# shrink above 10 players in a zone (300 s becomes 150 s at 20 players), never below 10 seconds.
|
||||
# Covered: normal-rank creatures on continents (no dungeons, raids, battlegrounds or other instances)
|
||||
# that are hostile to players, or beasts that are not friendly to players, and are not in a spawn
|
||||
# group, a pool or quest spawn tracking. Elites, rares, bosses, service NPCs, quest givers and enders,
|
||||
# vehicles, triggers and civilians keep their timers. Works with Respawn.DynamicMode = 0 or 1.
|
||||
# Default: 0 - Disabled
|
||||
# 1 - Enabled
|
||||
|
||||
Respawn.DynamicOpenWorld = 0
|
||||
|
||||
#
|
||||
# Respawn.DynamicRateCreature
|
||||
# Description: The rate at which the respawn time is adjusted for high player counts in a zone (for creatures).
|
||||
|
||||
Reference in New Issue
Block a user