diff --git a/sql/custom/world/2026_11_16_16_world_forever_testing_the_wells_map_markers.sql b/sql/custom/world/2026_11_16_16_world_forever_testing_the_wells_map_markers.sql new file mode 100644 index 0000000000..25a144ada8 --- /dev/null +++ b/sql/custom/world/2026_11_16_16_world_forever_testing_the_wells_map_markers.sql @@ -0,0 +1,41 @@ +-- Westfall, Alba's (253092) quests Testing the Wells (92742) and Murloc Gills (92744) had no map markers at all (Discord, +-- voldemargreed "bugs 3", 2026-11-13). Wells and the turn-in: the quest data points (ATT Forever) through our Westfall map fit +-- (INFERRED, about 20 yards); the same well spots as classic_spell_quest_testing_the_wells. Murloc Gills (254548, 40% from +-- Westfall murlocs): one area per murloc camp, the hull of our 356 spawns 15 yards wider. Safe to run again. + +DELETE FROM `quest_poi` WHERE `QuestID` IN (92742,92744); +INSERT INTO `quest_poi` (`QuestID`,`BlobIndex`,`Idx1`,`ObjectiveIndex`,`QuestObjectiveID`,`QuestObjectID`,`MapID`,`UiMapID`,`Priority`,`Flags`,`WorldEffectID`,`PlayerConditionID`,`NavigationPlayerConditionID`,`SpawnTrackingID`,`AlwaysAllowMergingBlobs`,`VerifiedBuild`) VALUES +(92742,0,0,-1,0,0,0,1436,0,1,0,0,0,0,0,0), +(92742,0,1,0,465707,254546,0,1436,0,0,0,0,0,0,0,0), +(92742,0,2,1,465708,254547,0,1436,0,0,0,0,0,0,0,0), +(92744,0,0,-1,0,0,0,1436,0,1,0,0,0,0,0,0), +(92744,0,1,0,465710,254548,0,1436,0,0,0,0,0,0,0,0), +(92744,1,2,0,465710,254548,0,1436,0,0,0,0,0,0,0,0), +(92744,2,3,0,465710,254548,0,1436,0,0,0,0,0,0,0,0), +(92744,3,4,0,465710,254548,0,1436,0,0,0,0,0,0,0,0), +(92744,4,5,0,465710,254548,0,1436,0,0,0,0,0,0,0,0), +(92744,5,6,0,465710,254548,0,1436,0,0,0,0,0,0,0,0); +DELETE FROM `quest_poi_points` WHERE `QuestID` IN (92742,92744); +INSERT INTO `quest_poi_points` (`QuestID`,`Idx1`,`Idx2`,`X`,`Y`,`Z`,`VerifiedBuild`) VALUES +(92742,0,0,-10627,1183,40,0),(92742,0,1,-10630,1190,40,0),(92742,0,2,-10637,1193,40,0),(92742,0,3,-10644,1190,40,0),(92742,0,4,-10647,1183,40,0),(92742,0,5,-10644,1176,40,0), +(92742,0,6,-10637,1173,40,0),(92742,0,7,-10630,1176,40,0),(92742,1,0,-9784,1021,40,0),(92742,1,1,-9791,1039,40,0),(92742,1,2,-9809,1046,40,0),(92742,1,3,-9827,1039,40,0), +(92742,1,4,-9834,1021,40,0),(92742,1,5,-9827,1003,40,0),(92742,1,6,-9809,996,40,0),(92742,1,7,-9791,1003,40,0),(92742,2,0,-10255,1398,40,0),(92742,2,1,-10262,1416,40,0), +(92742,2,2,-10280,1423,40,0),(92742,2,3,-10298,1416,40,0),(92742,2,4,-10305,1398,40,0),(92742,2,5,-10298,1380,40,0),(92742,2,6,-10280,1373,40,0),(92742,2,7,-10262,1380,40,0), +(92744,0,0,-10627,1183,40,0),(92744,0,1,-10630,1190,40,0),(92744,0,2,-10637,1193,40,0),(92744,0,3,-10644,1190,40,0),(92744,0,4,-10647,1183,40,0),(92744,0,5,-10644,1176,40,0), +(92744,0,6,-10637,1173,40,0),(92744,0,7,-10630,1176,40,0),(92744,1,0,-9703,1522,5,0),(92744,1,1,-9647,1358,5,0),(92744,1,2,-9643,1348,5,0),(92744,1,3,-9632,1343,5,0), +(92744,1,4,-9619,1342,5,0),(92744,1,5,-9608,1347,5,0),(92744,1,6,-9568,1439,5,0),(92744,1,7,-9564,1449,5,0),(92744,1,8,-9576,1511,5,0),(92744,1,9,-9580,1522,5,0), +(92744,1,10,-9627,1584,5,0),(92744,1,11,-9638,1588,5,0),(92744,1,12,-9648,1584,5,0),(92744,1,13,-9693,1557,5,0),(92744,1,14,-9698,1547,5,0),(92744,1,15,-9703,1530,5,0), +(92744,2,0,-9679,1163,4,0),(92744,2,1,-9676,1147,4,0),(92744,2,2,-9644,1052,4,0),(92744,2,3,-9639,1041,4,0),(92744,2,4,-9634,1036,4,0),(92744,2,5,-9624,1032,4,0), +(92744,2,6,-9606,1025,4,0),(92744,2,7,-9595,1030,4,0),(92744,2,8,-9566,1049,4,0),(92744,2,9,-9560,1056,4,0),(92744,2,10,-9555,1067,4,0),(92744,2,11,-9601,1199,4,0), +(92744,2,12,-9606,1209,4,0),(92744,2,13,-9616,1214,4,0),(92744,2,14,-9639,1206,4,0),(92744,2,15,-9650,1201,4,0),(92744,2,16,-9674,1173,4,0),(92744,3,0,-10364,2050,3,0), +(92744,3,1,-10360,2040,3,0),(92744,3,2,-10230,1928,3,0),(92744,3,3,-9788,1648,3,0),(92744,3,4,-9770,1640,3,0),(92744,3,5,-9760,1636,3,0),(92744,3,6,-9743,1641,3,0), +(92744,3,7,-9732,1646,3,0),(92744,3,8,-9723,1659,3,0),(92744,3,9,-9718,1669,3,0),(92744,3,10,-9738,1846,3,0),(92744,3,11,-9743,1857,3,0),(92744,3,12,-10047,2038,3,0), +(92744,3,13,-10058,2042,3,0),(92744,3,14,-10252,2101,3,0),(92744,3,15,-10347,2103,3,0),(92744,3,16,-10358,2099,3,0),(92744,3,17,-10362,2088,3,0),(92744,4,0,-11181,2037,3,0), +(92744,4,1,-11176,2027,3,0),(92744,4,2,-11166,2022,3,0),(92744,4,3,-11041,2006,3,0),(92744,4,4,-11010,2016,3,0),(92744,4,5,-10999,2020,3,0),(92744,4,6,-10995,2031,3,0), +(92744,4,7,-10990,2046,3,0),(92744,4,8,-10994,2057,3,0),(92744,4,9,-11031,2089,3,0),(92744,4,10,-11062,2110,3,0),(92744,4,11,-11073,2114,3,0),(92744,4,12,-11145,2106,3,0), +(92744,4,13,-11156,2101,3,0),(92744,4,14,-11175,2076,3,0),(92744,4,15,-11180,2065,3,0),(92744,5,0,-11429,1822,6,0),(92744,5,1,-11426,1806,6,0),(92744,5,2,-11422,1796,6,0), +(92744,5,3,-11404,1780,6,0),(92744,5,4,-11393,1775,6,0),(92744,5,5,-11377,1769,6,0),(92744,5,6,-11366,1765,6,0),(92744,5,7,-11356,1769,6,0),(92744,5,8,-11326,1823,6,0), +(92744,5,9,-11322,1834,6,0),(92744,5,10,-11326,1844,6,0),(92744,5,11,-11337,1849,6,0),(92744,5,12,-11368,1854,6,0),(92744,5,13,-11414,1837,6,0),(92744,5,14,-11425,1832,6,0), +(92744,6,0,-10823,2086,9,0),(92744,6,1,-10815,2039,9,0),(92744,6,2,-10810,2028,9,0),(92744,6,3,-10800,2024,9,0),(92744,6,4,-10660,2027,9,0),(92744,6,5,-10634,2031,9,0), +(92744,6,6,-10526,2069,9,0),(92744,6,7,-10516,2073,9,0),(92744,6,8,-10512,2084,9,0),(92744,6,9,-10516,2094,9,0),(92744,6,10,-10526,2099,9,0),(92744,6,11,-10808,2101,9,0), +(92744,6,12,-10818,2097,9,0); diff --git a/src/server/scripts/Custom/Classic/world/classic_spell_scripts.cpp b/src/server/scripts/Custom/Classic/world/classic_spell_scripts.cpp index 1bcf0077b6..918282ac55 100644 --- a/src/server/scripts/Custom/Classic/world/classic_spell_scripts.cpp +++ b/src/server/scripts/Custom/Classic/world/classic_spell_scripts.cpp @@ -2172,17 +2172,27 @@ class classic_spell_shadow_storm_min_range : public SpellScript // 1258773 - Testing the Wells (Forever quest 92742, Westfall): the Well Testing Kit 254545 casts a dummy on a "nearby entry" target that // nothing in the data names, so every use failed with an invalid target and the two water samples could never be had (Discord // 2026-11-09). The target is the caster now (SpellMgr::LoadSpellInfoCorrections); next to a well the kit gives that well's sample. -// Wells: the players' map spots 56.5,18.8 (Furlbrow's Pumpkin Farm) and 46.0,38.3 (the Molsen Farm), turned into world spots with -// Gryan Stoutmantle and Salma Saldean as fit points; the 25 yd radius covers the guess. +// Well spots: the objective points of the quest data (ATT Forever, Westfall 56.7,18.7 Jansen Stead and 46.2,38.3 Molsen Farm) through +// the Westfall map frame fitted on 44 of our spawns (0.6% median error, about 20 yards). The first version fitted the map on two NPCs +// only: its Jansen Stead well sat 35 yards from this one (Molsen 16), more than its 25 yard reach, and the kit was reported broken +// again (Discord, voldemargreed "bugs 3", 2026-11-13). INFERRED: the live well bunnies were never sniffed; 35 yards covers the fit. class classic_spell_quest_testing_the_wells : public SpellScript { struct Well { float x, y; uint32 sample; }; static constexpr Well WELLS[] = { - { -9839.2f, 1038.2f, 254546 }, - { -10294.1f, 1405.4f, 254547 }, + { -9809.3f, 1020.8f, 254546 }, // Jansen Stead + { -10279.7f, 1398.3f, 254547 }, // Molsen Farm }; - static constexpr float WELL_RADIUS = 25.0f; + static constexpr float WELL_RADIUS = 35.0f; + + bool Validate(SpellInfo const* /*spellInfo*/) override + { + for (Well const& well : WELLS) + if (!sObjectMgr->GetItemTemplate(well.sample)) + return false; + return true; + } Well const* NearestWell() const { @@ -2197,7 +2207,15 @@ class classic_spell_quest_testing_the_wells : public SpellScript SpellCastResult CheckWell() { - return NearestWell() ? SPELL_CAST_OK : SPELL_FAILED_NOT_HERE; + Player* player = GetCaster()->ToPlayer(); + if (!player) + return SPELL_FAILED_DONT_REPORT; + Well const* well = NearestWell(); + if (!well) + return SPELL_FAILED_NOT_HERE; + if (player->HasItemCount(well->sample, 1, true)) // this farm's sample is already in the bags or bank + return SPELL_FAILED_DONT_REPORT; + return SPELL_CAST_OK; } void HandleDummy(SpellEffIndex /*effIndex*/) @@ -2206,7 +2224,7 @@ class classic_spell_quest_testing_the_wells : public SpellScript Well const* well = NearestWell(); if (!player || !well) return; - if (player->GetItemCount(well->sample) == 0) + if (!player->HasItemCount(well->sample, 1, true)) player->AddItem(well->sample, 1); }