Quests and world: the rest of SIN's 0.1.36 fixes (Snowbound, Ylva, Gar'im, Daggerfang)
The parts of SIN's Quest and World Fixes that were held back, now in as he wrote them: - Snowbound: the Ceramic Jar's snow focus moves to the snow patch at the tunnel, with a map pin there. - Banner of the Fallen: raising the banner at Ylva starts three waves ending in Headsplitter (classic_npc_ylva_banner and the banner spell check); Headsplitter's two world spawns go. - Incinerator Gar'im stands in the cave, with his map pin there. - Daggerfang: his 25 shore spots share one pool with one up at a time. Our own versions of the Snowbound map area (2026_11_13_40) and the Daggerfang pool (2026_11_13_36), not released yet, come out so his apply as written (both would otherwise shadow his rows). Code by SIN (1amcoff1n). Changed only to fit our tree: his SQL is renumbered to 2026_11_16_68/69, and the statements are taken from his 2026_11_14_01 and _03 files.
This commit is contained in:
@@ -1,35 +0,0 @@
|
||||
-- Daggerfang (270693, Loch Modan shore): one at a time instead of twenty-five (Discord "bugs 4", 2026-11-13: "as if there
|
||||
-- should only be one of these crocolisks, rather than the whole shore being covered in them").
|
||||
-- The AnoCore port in 2026_11_05_99 placed a Daggerfang on each of its 25 map pins (guids 27069300-27069324, -5120 to -5507 x,
|
||||
-- -3621 to -3809 y, in no pool). The pins stay as the places it can turn up, in one pool with one Daggerfang up at a time (same
|
||||
-- as the Whispering Horror, 2026_11_12_36). INFERRED: that Forever has one Daggerfang is the player's report and its name;
|
||||
-- no sniff of it is in hand. Safe to run again.
|
||||
DELETE FROM `pool_members` WHERE `type` = 0 AND `spawnId` BETWEEN 27069300 AND 27069324;
|
||||
DELETE FROM `pool_template` WHERE `entry` = 2706930;
|
||||
INSERT INTO `pool_template` (`entry`,`max_limit`,`description`) VALUES (2706930,1,'Loch Modan - Daggerfang, one of 25 shore spots');
|
||||
INSERT INTO `pool_members` (`type`,`spawnId`,`poolSpawnId`,`chance`,`description`) VALUES
|
||||
(0,27069300,2706930,0,'Daggerfang'),
|
||||
(0,27069301,2706930,0,'Daggerfang'),
|
||||
(0,27069302,2706930,0,'Daggerfang'),
|
||||
(0,27069303,2706930,0,'Daggerfang'),
|
||||
(0,27069304,2706930,0,'Daggerfang'),
|
||||
(0,27069305,2706930,0,'Daggerfang'),
|
||||
(0,27069306,2706930,0,'Daggerfang'),
|
||||
(0,27069307,2706930,0,'Daggerfang'),
|
||||
(0,27069308,2706930,0,'Daggerfang'),
|
||||
(0,27069309,2706930,0,'Daggerfang'),
|
||||
(0,27069310,2706930,0,'Daggerfang'),
|
||||
(0,27069311,2706930,0,'Daggerfang'),
|
||||
(0,27069312,2706930,0,'Daggerfang'),
|
||||
(0,27069313,2706930,0,'Daggerfang'),
|
||||
(0,27069314,2706930,0,'Daggerfang'),
|
||||
(0,27069315,2706930,0,'Daggerfang'),
|
||||
(0,27069316,2706930,0,'Daggerfang'),
|
||||
(0,27069317,2706930,0,'Daggerfang'),
|
||||
(0,27069318,2706930,0,'Daggerfang'),
|
||||
(0,27069319,2706930,0,'Daggerfang'),
|
||||
(0,27069320,2706930,0,'Daggerfang'),
|
||||
(0,27069321,2706930,0,'Daggerfang'),
|
||||
(0,27069322,2706930,0,'Daggerfang'),
|
||||
(0,27069323,2706930,0,'Daggerfang'),
|
||||
(0,27069324,2706930,0,'Daggerfang');
|
||||
@@ -1,14 +0,0 @@
|
||||
-- Snowbound (86667, Forever, Loch Modan): "no marker on the map. Ceramic Jar won't activate" (Discord "bugs 4", 2026-11-13).
|
||||
-- The Ceramic Jar (279380) casts 1306628, which needs spell focus 2317 within 30 yards (client SpellCastingRequirements, 70938)
|
||||
-- and then turns the jar into the filled jar 279379, the quest's objective. The one object with that focus is "South Gate Snow"
|
||||
-- (8380007, spawn 838000700, Dun Morogh at the South Gate, from 2026_11_05_99). The quest had a map area only for its turn-in in
|
||||
-- Loch Modan, so nothing showed where the jar works, and anywhere else the cast fails.
|
||||
-- Added: a map area for the objective, 30 yards around the snow spot, in Dun Morogh (UiMap 1426, as the vanilla Dun Morogh
|
||||
-- quests in 2026_10_09_01). INFERRED: the area is ours, not Blizzard's, and Dun Morogh is read from the coordinates; whether the snow object
|
||||
-- stands on the ground is checked with the ground probe (PC step 105b). The turn-in area stays. Safe to run again.
|
||||
DELETE FROM `quest_poi` WHERE `QuestID` = 86667 AND `Idx1` = 1;
|
||||
INSERT INTO `quest_poi` (`QuestID`,`BlobIndex`,`Idx1`,`ObjectiveIndex`,`QuestObjectiveID`,`QuestObjectID`,`MapID`,`UiMapID`,`Priority`,`Flags`,`WorldEffectID`,`PlayerConditionID`,`NavigationPlayerConditionID`,`SpawnTrackingID`,`AlwaysAllowMergingBlobs`,`VerifiedBuild`) VALUES
|
||||
(86667,0,1,0,9400397,279379,0,1426,0,0,0,0,0,0,0,0);
|
||||
DELETE FROM `quest_poi_points` WHERE `QuestID` = 86667 AND `Idx1` = 1;
|
||||
INSERT INTO `quest_poi_points` (`QuestID`,`Idx1`,`Idx2`,`X`,`Y`,`Z`,`VerifiedBuild`) VALUES
|
||||
(86667,1,0,-5585,-2206,423,0),(86667,1,1,-5600,-2180,423,0),(86667,1,2,-5630,-2180,423,0),(86667,1,3,-5645,-2206,423,0),(86667,1,4,-5630,-2232,423,0),(86667,1,5,-5600,-2232,423,0);
|
||||
@@ -0,0 +1,32 @@
|
||||
-- SIN's fixes (1amcoff1n), Quest and World Fixes for 0.1.36, the rest of his file 2026_11_14_01 (put in on chris's word,
|
||||
-- 2026-11-16): the Snowbound map pin and Ceramic Jar focus move, Gar'im in the cave, and the Ylva banner script names with the
|
||||
-- Headsplitter delete. His statements as he wrote them.
|
||||
START TRANSACTION;
|
||||
|
||||
-- Snowbound: the objective blob for the Ceramic Jar focus (from his quest_poi insert).
|
||||
INSERT INTO quest_poi (QuestID,BlobIndex,Idx1,ObjectiveIndex,QuestObjectiveID,QuestObjectID,MapID,UiMapID,Flags)
|
||||
VALUES (86667,0,1,0,9400397,279379,0,1432,0)
|
||||
ON DUPLICATE KEY UPDATE QuestID=VALUES(QuestID);
|
||||
INSERT INTO quest_poi_points (QuestID,Idx1,Idx2,X,Y,Z) VALUES
|
||||
(86667,1,0,-5648,-2534,375)
|
||||
ON DUPLICATE KEY UPDATE QuestID=VALUES(QuestID);
|
||||
|
||||
-- The focus was over 300 yards from the snow. Use the snow patch at the
|
||||
-- tunnel and the walkable height from the installed map.
|
||||
UPDATE gameobject SET position_x=-5648.28,position_y=-2534.38,position_z=374.9
|
||||
WHERE guid=838000700 AND id=8380007 AND map=0 AND ABS(position_y+2206)<0.1;
|
||||
|
||||
-- Place Gar'im at the recorded cave waypoint and keep his quest pin in sync.
|
||||
UPDATE creature SET position_x=-9824.70,position_y=-3261.40,position_z=60.5
|
||||
WHERE guid=21451900 AND id=214519 AND map=0 AND ABS(position_x+9721.46)<0.1;
|
||||
UPDATE quest_poi_points SET X=-9825,Y=-3261,Z=61
|
||||
WHERE QuestID=95999 AND Idx1=1 AND Idx2=0 AND X=-9817 AND Y=-3361;
|
||||
|
||||
|
||||
UPDATE creature_template SET ScriptName='classic_npc_ylva_banner'
|
||||
WHERE entry=269153 AND ScriptName='';
|
||||
INSERT INTO spell_script_names (spell_id,ScriptName) VALUES
|
||||
(1303317,'classic_spell_ironforge_banner') ON DUPLICATE KEY UPDATE spell_id=1303317;
|
||||
-- Headsplitter now belongs to the banner encounter.
|
||||
DELETE FROM creature WHERE id=269185 AND map=0 AND guid IN (26918500,26918501);
|
||||
COMMIT;
|
||||
@@ -0,0 +1,15 @@
|
||||
-- SIN's fix (1amcoff1n), Quest and World Fixes for 0.1.36, file 2026_11_14_03 renamed.
|
||||
-- Twisting the Knife: one named quest target, with alternative shore positions.
|
||||
START TRANSACTION;
|
||||
INSERT INTO pool_template (entry, max_limit, description)
|
||||
SELECT 270693, 1, 'Loch Modan - Daggerfang'
|
||||
WHERE NOT EXISTS (SELECT 1 FROM pool_template WHERE entry=270693
|
||||
AND max_limit=1 AND description='Loch Modan - Daggerfang');
|
||||
|
||||
INSERT INTO pool_members (type, spawnId, poolSpawnId, chance, description)
|
||||
SELECT 0, c.guid, 270693, 0, 'Loch Modan - Daggerfang'
|
||||
FROM creature c
|
||||
WHERE c.id=270693 AND c.map=0
|
||||
AND NOT EXISTS (SELECT 1 FROM pool_members p WHERE p.type=0
|
||||
AND p.spawnId=c.guid AND p.poolSpawnId=270693 AND p.chance=0);
|
||||
COMMIT;
|
||||
@@ -21,6 +21,8 @@
|
||||
|
||||
#include "ScriptMgr.h"
|
||||
#include "Player.h"
|
||||
#include "ObjectAccessor.h"
|
||||
#include "SpellScript.h"
|
||||
#include "QuestDef.h"
|
||||
#include "ScriptedCreature.h"
|
||||
#include "ScriptedEscortAI.h"
|
||||
@@ -158,7 +160,125 @@ private:
|
||||
uint8 _dwarves;
|
||||
};
|
||||
|
||||
namespace
|
||||
{
|
||||
constexpr uint32 BannerQuest = 86585;
|
||||
constexpr uint32 Ylva = 269153;
|
||||
constexpr uint32 BannerEnemies[] = { 1163, 1166, 269185 };
|
||||
Position const BannerEntrances[] = {
|
||||
{ -6057.93f, -2857.48f, 413.368f, 0.0f },
|
||||
{ -6093.99f, -2923.09f, 418.864f, 0.0f }
|
||||
};
|
||||
|
||||
struct classic_npc_ylva_banner : ScriptedAI
|
||||
{
|
||||
using ScriptedAI::ScriptedAI;
|
||||
ObjectGuid challenger;
|
||||
ObjectGuid enemy;
|
||||
uint8 wave = 0;
|
||||
uint32 nextWave = 0;
|
||||
|
||||
void Reset() override
|
||||
{
|
||||
ObjectGuid previous = enemy;
|
||||
enemy.Clear();
|
||||
challenger.Clear();
|
||||
wave = 0;
|
||||
nextWave = 0;
|
||||
if (Creature* active = ObjectAccessor::GetCreature(*me, previous))
|
||||
active->DespawnOrUnsummon();
|
||||
}
|
||||
|
||||
void SetGUID(ObjectGuid const& guid, int32) override
|
||||
{
|
||||
if (challenger.IsEmpty())
|
||||
{
|
||||
challenger = guid;
|
||||
nextWave = 1;
|
||||
}
|
||||
}
|
||||
|
||||
uint32 GetData(uint32) const override { return !challenger.IsEmpty(); }
|
||||
|
||||
void SummonedCreatureDies(Creature* summon, Unit*) override
|
||||
{
|
||||
if (summon->GetGUID() != enemy)
|
||||
return;
|
||||
enemy.Clear();
|
||||
if (++wave == 3)
|
||||
Reset();
|
||||
else
|
||||
nextWave = 1500;
|
||||
}
|
||||
|
||||
void SummonedCreatureDespawn(Creature* summon) override
|
||||
{
|
||||
if (summon->GetGUID() == enemy)
|
||||
{
|
||||
enemy.Clear();
|
||||
Reset();
|
||||
}
|
||||
}
|
||||
|
||||
void UpdateAI(uint32 diff) override
|
||||
{
|
||||
if (challenger.IsEmpty())
|
||||
return;
|
||||
Player* player = ObjectAccessor::GetPlayer(*me, challenger);
|
||||
if (!player || !player->IsAlive() || !me->IsWithinDistInMap(player, 90.0f))
|
||||
{
|
||||
Reset();
|
||||
return;
|
||||
}
|
||||
if (!nextWave)
|
||||
return;
|
||||
if (diff < nextWave)
|
||||
{
|
||||
nextWave -= diff;
|
||||
return;
|
||||
}
|
||||
nextWave = 0;
|
||||
if (Creature* mob = me->SummonCreature(BannerEnemies[wave], BannerEntrances[wave % 2],
|
||||
TEMPSUMMON_TIMED_DESPAWN_OUT_OF_COMBAT, 60s))
|
||||
{
|
||||
enemy = mob->GetGUID();
|
||||
mob->AI()->AttackStart(player);
|
||||
}
|
||||
else
|
||||
Reset();
|
||||
}
|
||||
};
|
||||
|
||||
class classic_spell_ironforge_banner : public SpellScript
|
||||
{
|
||||
SpellCastResult CheckCast()
|
||||
{
|
||||
Player* player = GetCaster()->ToPlayer();
|
||||
if (!player || player->GetQuestStatus(BannerQuest) != QUEST_STATUS_INCOMPLETE)
|
||||
return SPELL_FAILED_CANT_DO_THAT_RIGHT_NOW;
|
||||
Creature* ylva = player->FindNearestCreature(Ylva, 15.0f);
|
||||
if (!ylva || !ylva->IsAIEnabled())
|
||||
return SPELL_FAILED_NOT_HERE;
|
||||
return ylva->AI()->GetData(BannerQuest) ? SPELL_FAILED_NOT_READY : SPELL_CAST_OK;
|
||||
}
|
||||
|
||||
void RaiseBanner()
|
||||
{
|
||||
if (Creature* ylva = GetCaster()->FindNearestCreature(Ylva, 15.0f))
|
||||
ylva->AI()->SetGUID(GetCaster()->GetGUID(), BannerQuest);
|
||||
}
|
||||
|
||||
void Register() override
|
||||
{
|
||||
OnCheckCast += SpellCheckCastFn(classic_spell_ironforge_banner::CheckCast);
|
||||
AfterCast += SpellCastFn(classic_spell_ironforge_banner::RaiseBanner);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
void AddSC_classic_loch_modan()
|
||||
{
|
||||
RegisterCreatureAI(classic_npc_miran);
|
||||
RegisterCreatureAI(classic_npc_ylva_banner);
|
||||
RegisterSpellScript(classic_spell_ironforge_banner);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user