0.1.38: core fixes since 0.1.37.6 (spells, talents, auction house prices, Scourge Invasion, world data, client 70959 hotfixes)

This commit is contained in:
Karrz1
2026-11-18 21:11:41 +00:00
parent 55abf2778d
commit 25fc7ca3a6
89 changed files with 14096 additions and 40 deletions
+11 -3
View File
@@ -41,10 +41,11 @@ redistributing. Source files of the module do not carry per-file headers; this n
[CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). Changed: only the records we lacked or had different were picked and
converted to our database tables.
- Live WoW Forever quest data (quest order, givers and turn-ins) in `sql/custom/world/2026_11_12_15_*.sql`, `2026_11_13_86_*.sql`,
`2026_11_13_87_*.sql` and `2026_11_14_97_*.sql`: from [Questie](https://github.com/Questie/QuestieDB) (Questie team, GPL-3.0), its Forever corrections and
`2026_11_13_87_*.sql`, `2026_11_14_97_*.sql`, `2026_11_16_96_*.sql` and `2026_11_18_97_*.sql`: from [Questie](https://github.com/Questie/QuestieDB) (Questie team, GPL-3.0), its Forever corrections and
play traces. Changed: converted to our database tables, only where ours lacked it.
- Live WoW Forever world data (quest records, object templates, vendor items, trainer levels) in
`sql/custom/world/2026_11_12_14_*.sql`, `2026_11_13_88_*.sql`, `2026_11_13_90_*.sql`, `2026_11_14_96_*.sql` and `2026_11_15_96_*.sql`: Data from
`sql/custom/world/2026_11_12_14_*.sql`, `2026_11_13_88_*.sql`, `2026_11_13_90_*.sql`, `2026_11_14_96_*.sql`, `2026_11_15_96_*.sql`, `2026_11_17_81_*.sql`,
`2026_11_17_96_*.sql` and `2026_11_18_96_*.sql`: Data from
[Efficient Games](https://efficient.games) (https://github.com/JIVESCORP/eg-link-output-wowf), licensed under
[CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). Changed: only the records we lacked or had different were picked and
converted to our database tables.
@@ -52,7 +53,8 @@ redistributing. Source files of the module do not carry per-file headers; this n
database (www.wowhead.com/forever), French pages, collected and shared by Ashendris (Mizuka). Changed: compared with our world and
only the fields we lacked or that differ from live were written.
- Quest givers, drops and vendor items in `sql/custom/world/2026_11_13_91_world_forever_everlake_data.sql` and
`2026_11_15_97_world_forever_everlake_data_1115.sql`: from Everlake's world data
`2026_11_15_97_world_forever_everlake_data_1115.sql`, `2026_11_16_97_world_forever_everlake_data_1116.sql` and
`2026_11_17_97_world_forever_everlake_data_1117.sql`: from Everlake's world data
([buildthehomelab/wow-everlake-world-data](https://github.com/buildthehomelab/wow-everlake-world-data), GPL-3.0), which in turn
credits EG Link (CC BY 4.0), Polestar forever-db, QuestieDB, ForeverDB.net (GPL-3.0), NorgannonDB by zmarotrix (GPL-3.0), Icy Veins'
WoW Forever database (db.icy-veins.com/wow-forever) and Wowhead's WoW Forever database (www.wowhead.com/forever). Changed: compared with our world and only rows we lacked were written as ours.
@@ -61,8 +63,14 @@ redistributing. Source files of the module do not carry per-file headers; this n
pet's wild attack speed through the client's Faster / Slower Attack passives (`ClassicPetAttackSpeed.h`).
- From the Everlake core (https://github.com/buildthehomelab/wow-trinitycore-everlake, GPL, a fork of this core), written as our
own code: ranged weapons and wands take the ranged stat budget column (`GetRandomPropertyPoints`, ItemEnchantmentMgr.cpp).
- From the Everlake core (https://github.com/buildthehomelab/wow-trinitycore-everlake, GPL-2.0, a fork of this core), taken as
given: a TACT key we don't hold is answered "not public" (`HotfixHandler.cpp`, Everlake 973f193b), and worldserver.conf.d files
keep their keys with no `[section]` header or with several (`ConfigMgr::LoadAdditionalFile` and its test, Everlake db11c6d9 and
03481268).
- Weapon chance-on-hit rates in `sql/custom/world/2026_11_06_41_world_classic_weapon_proc_every_hit.sql` and
`2026_11_16_80_world_forever_item_proc_ppm_measured.sql`: from [wowsims/forever](https://github.com/wowsims/forever)
(`tools/database/overrides/weapon_procs.go`), MIT licence, copyright the wowsims contributors. Only the rates were taken.
- Forever Combat Nameplates (`src/modules/PlayerbotV2/Addon/ForeverCombatNameplates` and the combat nameplate filter in `Player.cpp`,
`ChatHandler.cpp`, `WorldSession.cpp` and `ViewerDependentValues.h`): by SIN, GPL-2.0 (COPYING in the add-on folder).
- The Hallow's End link for the Southshore Stink Bomb Counter in `sql/custom/world/2026_11_16_97_*.sql` was checked against
[cmangos classic-db](https://github.com/cmangos/classic-db) (GPL-2.0).
+3 -1
View File
@@ -2480,6 +2480,7 @@ INSERT INTO `rbac_linked_permissions` VALUES
(195,49),
(195,199),
(195,1000),
(195,1001),
(196,10),
(196,202),
(196,203),
@@ -3791,7 +3792,8 @@ INSERT INTO `rbac_permissions` VALUES
(883,'Command: quest objective complete'),
(884,'Command: bg start'),
(885,'Command: bg stop'),
(1000,'Command: time');
(1000,'Command: time'),
(1001,'Command: bug');
/*!40000 ALTER TABLE `rbac_permissions` ENABLE KEYS */;
UNLOCK TABLES;
@@ -0,0 +1,4 @@
-- .bug <text> (cs_misc.cpp): every player may send a bug report that carries their spot, target and quest log.
-- 1001 = Command: bug (RBAC_PERM_COMMAND_BUG), 195 = Role: Player. Safe to run again.
INSERT IGNORE INTO `rbac_permissions` (`id`, `name`) VALUES (1001, 'Command: bug');
INSERT IGNORE INTO `rbac_linked_permissions` (`id`, `linkedId`) VALUES (195, 1001);
File diff suppressed because one or more lines are too long
@@ -0,0 +1,10 @@
-- Auction house bot: per-unit market prices (AuctionHouseBot.Vanilla.MarketPrices). Empty by default; the bot falls back to
-- AuctionHouseBot.Vanilla.ValueCurve or the vendor price for items without a row. Safe to run again.
CREATE TABLE IF NOT EXISTS `auctionhousebot_market_price` (
`ItemID` int unsigned NOT NULL,
`UnitPrice` bigint unsigned NOT NULL DEFAULT '0' COMMENT 'copper per unit',
`Quantity` int unsigned NOT NULL DEFAULT '0' COMMENT 'units seen on offer',
`Samples` smallint unsigned NOT NULL DEFAULT '0' COMMENT 'price samples behind UnitPrice',
PRIMARY KEY (`ItemID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Auction house bot market prices';
File diff suppressed because one or more lines are too long
@@ -0,0 +1,30 @@
-- WoW Forever live realm: English capture from 2026-11-16 (client 70938): Ironforge and Elwynn. Only what our data lacks
-- or has wrong. Safe to run more than once. No new spawns.
-- 1. Factions live sends that differ from ours.
UPDATE `creature_template` SET `faction` = 3634 WHERE `entry` = 263643; -- Sean Guardoff (same as 263349 and 263644 next to him)
UPDATE `creature_template` SET `faction` = 57 WHERE `entry` = 274935; -- Ironforge Protector
-- 2. Models live. New displays get their creature_model_info row (size as live sends it, scale 1), or the creature won't spawn.
DELETE FROM `creature_model_info` WHERE `DisplayID` IN (143349, 147850);
INSERT INTO `creature_model_info` (`DisplayID`, `BoundingRadius`, `CombatReach`, `DisplayID_Other_Gender`, `VerifiedBuild`) VALUES (143349, 0.3672, 1.8, 0, 70938), (147850, 0.347, 1.5, 0, 70938);
-- High Tinker Mekkatorque 7937: new model 143349 at scale 1 (ours old 7006 at 1.38); Snowshoe Rabbit 7560; White Kitten 7386.
DELETE FROM `creature_template_model` WHERE `CreatureID` = 7937;
INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, `DisplayScale`, `Probability`, `VerifiedBuild`) VALUES (7937, 0, 143349, 1, 100, 70938);
DELETE FROM `creature_template_model` WHERE `CreatureID` = 7560;
INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, `DisplayScale`, `Probability`, `VerifiedBuild`) VALUES (7560, 0, 6302, 1, 1, 70938);
DELETE FROM `creature_template_model` WHERE `CreatureID` = 7386;
INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, `DisplayScale`, `Probability`, `VerifiedBuild`) VALUES (7386, 0, 9989, 1, 1, 70938);
-- Ironforge Protector 274935: live picks from 147846, 147847, 147848 and 147850. Only 147846 and 147850 were seen in this
-- capture, so only those two have a size we can back; the other two are left out.
DELETE FROM `creature_template_model` WHERE `CreatureID` = 274935;
INSERT INTO `creature_template_model` (`CreatureID`, `Idx`, `CreatureDisplayID`, `DisplayScale`, `Probability`, `VerifiedBuild`) VALUES (274935, 0, 147846, 1, 1, 70938), (274935, 1, 147850, 1, 1, 70938);
-- 3. Weapons live NPCs carry and ours don't (ours had no equipment row).
DELETE FROM `creature_equip_template` WHERE `ID` = 1 AND `CreatureID` IN (274917, 273127, 263643, 274781, 274873, 274935);
INSERT INTO `creature_equip_template` (`CreatureID`, `ID`, `ItemID1`, `AppearanceModID1`, `ItemVisual1`, `ItemID2`, `AppearanceModID2`, `ItemVisual2`, `ItemID3`, `AppearanceModID3`, `ItemVisual3`, `VerifiedBuild`) VALUES (274917, 1, 1911, 0, 0, 0, 0, 0, 0, 0, 0, 70938), (273127, 1, 5287, 0, 0, 0, 0, 0, 0, 0, 0, 70938), (263643, 1, 5598, 0, 0, 0, 0, 0, 0, 0, 0, 70938), (274781, 1, 284597, 0, 0, 6254, 0, 0, 2552, 0, 0, 70938), (274873, 1, 2182, 0, 0, 12980, 0, 0, 0, 0, 0, 70938), (274935, 1, 5286, 0, 0, 6254, 0, 0, 2552, 0, 0, 70938);
-- Their spawns had equipment_id 0 (no weapons); 1 uses the row above.
UPDATE `creature` SET `equipment_id` = 1 WHERE `equipment_id` = 0 AND `id` IN (274917, 273127, 263643, 274781, 274873, 274935);
-- 4. Misplaced Packages 660964: live sends Data1 = 30202.
UPDATE `gameobject_template` SET `Data1` = 30202 WHERE `entry` = 660964;
@@ -0,0 +1,19 @@
-- WoW Forever live realm: English capture from 2026-11-16 22:17 (client 70938), map 2991 around Zephras. Only what our data
-- lacks or has wrong. Safe to run more than once. No new spawns. Goes on top of 2026_11_16_58.
-- 1. Galemender Delanea 259398: live faction 3578 (ours 14, hostile) and the staff live shows.
UPDATE `creature_template` SET `faction` = 3578 WHERE `entry` = 259398;
DELETE FROM `creature_equip_template` WHERE `ID` = 1 AND `CreatureID` = 259398;
INSERT INTO `creature_equip_template` (`CreatureID`, `ID`, `ItemID1`, `AppearanceModID1`, `ItemVisual1`, `ItemID2`, `AppearanceModID2`, `ItemVisual2`, `ItemID3`, `AppearanceModID3`, `ItemVisual3`, `VerifiedBuild`) VALUES (259398, 1, 249392, 0, 0, 0, 0, 0, 0, 0, 0, 70938);
UPDATE `creature` SET `equipment_id` = 1 WHERE `equipment_id` = 0 AND `id` = 259398;
-- 2. Nyalah Brightfire 257006 works standing live (emote state 69).
DELETE FROM `creature_addon` WHERE `guid` = 21101592;
INSERT INTO `creature_addon` (`guid`, `emote`) VALUES (21101592, 69);
-- 3. Spell focus 652589 is named Cookpot live (ours had the model file name).
UPDATE `gameobject_template` SET `name` = 'Cookpot' WHERE `entry` = 652589;
-- 4. Windsong Crawler 254588: 5 more kills, so the sniff counts become n of 23 (4562 is new). Realm drop log rows stay.
DELETE FROM `creature_loot_template` WHERE `Entry` = 254588 AND `ItemType` = 0 AND `Item` IN (1416, 1417, 2213, 2675, 4562, 4873, 4874, 5571, 8181, 211787, 257941);
INSERT INTO `creature_loot_template` (`Entry`, `ItemType`, `Item`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`, `Comment`) VALUES (254588, 0, 1416, 4.35, 0, 1, 0, 1, 1, 'sniff: 1 of 23 kills'), (254588, 0, 1417, 4.35, 0, 1, 0, 1, 1, 'sniff: 1 of 23 kills'), (254588, 0, 2213, 4.35, 0, 1, 0, 1, 1, 'sniff: 1 of 23 kills'), (254588, 0, 2675, 34.78, 0, 1, 0, 1, 1, 'sniff: 8 of 23 kills'), (254588, 0, 4562, 4.35, 0, 1, 0, 1, 1, 'sniff: 1 of 23 kills'), (254588, 0, 4873, 56.52, 0, 1, 0, 1, 1, 'sniff: 13 of 23 kills'), (254588, 0, 4874, 43.48, 0, 1, 0, 1, 1, 'sniff: 10 of 23 kills'), (254588, 0, 5571, 4.35, 0, 1, 0, 1, 1, 'sniff: 1 of 23 kills'), (254588, 0, 8181, 4.35, 0, 1, 0, 1, 1, 'sniff: 1 of 23 kills'), (254588, 0, 211787, 4.35, 0, 1, 0, 1, 1, 'sniff: 1 of 23 kills'), (254588, 0, 257941, 56.52, 1, 1, 0, 1, 1, 'sniff: 13 of 23 kills');
@@ -0,0 +1,7 @@
-- WoW Forever live quest data from Questie (QuestieDB c0718536, GPL-3.0), picked on 16 Nov: only what ours had wrong.
-- Not their files: their values were compared with ours and only the differences are written here. Safe to run more than once.
-- Blacksmithing skill that two quests from Tormus Deepforge (6031, Ironforge) need on live:
-- 1578 Supplying the Front: Blacksmithing 25 (ours asked for no skill); 1618 Gearing Redridge: Blacksmithing 35 (ours 60).
INSERT INTO `quest_template_addon` (`ID`,`RequiredSkillID`,`RequiredSkillPoints`) VALUES (1578,164,25),(1618,164,35)
ON DUPLICATE KEY UPDATE `RequiredSkillID`=VALUES(`RequiredSkillID`),`RequiredSkillPoints`=VALUES(`RequiredSkillPoints`);
@@ -0,0 +1,105 @@
-- WoW Forever live drops from Everlake's world data, picked on 16 Nov, plus a Hallow's End link: only what our world lacked.
-- From Everlake's world data (buildthehomelab/wow-everlake-world-data, GPL-3.0), its exports 27 and 28: Wowhead's WoW Forever
-- database (quest item drops) and Icy Veins' WoW Forever database (recipe drops, with the chances its players' addons measured
-- on live Forever). Not their files: their rows were compared with ours and only what we lack is written here as our own rows.
-- Safe to run more than once.
-- 1. Creature drops seen on live that ours lacks: 72 recipe drops (Icy Veins) and 5 quest item drops (Wowhead) on 60 creatures.
-- Only spawned creatures, items the client has, quest items only for a quest objective we have, and only where the
-- creature's own loot (or its reference tables) does not already hold the item. A row goes in only where the creature's
-- loot id is its own entry (or not set yet; then it is set), so no other creature's loot changes.
DROP TEMPORARY TABLE IF EXISTS `forever_drops_1116`;
CREATE TEMPORARY TABLE `forever_drops_1116` (`Entry` INT UNSIGNED NOT NULL, `Item` INT UNSIGNED NOT NULL, `Chance` FLOAT NOT NULL, `QuestRequired` TINYINT UNSIGNED NOT NULL, `MinCount` TINYINT UNSIGNED NOT NULL, `MaxCount` TINYINT UNSIGNED NOT NULL, PRIMARY KEY (`Entry`,`Item`));
INSERT INTO `forever_drops_1116` (`Entry`,`Item`,`Chance`,`QuestRequired`,`MinCount`,`MaxCount`) VALUES
(1784,252930,2.42,0,1,1),
(1852,17114,1.19,1,1,1),
(2552,254014,0.52,0,1,1),
(2653,251396,0.7,0,1,1),
(2720,249512,2.04,0,1,1),
(2748,251406,0.37,0,1,1),
(2748,254106,0.37,0,1,1),
(4334,254684,2.86,0,1,1),
(4658,254681,1.92,0,1,1),
(4684,250363,0.69,0,1,1),
(5296,252909,1.28,0,1,1),
(5333,254686,1.4,0,1,1),
(5363,250986,1.43,0,1,1),
(5709,251407,1.92,0,1,1),
(5710,251406,3.7,0,1,1),
(5710,254102,1.85,0,1,1),
(5715,254106,5.0,0,1,1),
(5839,264214,0.46,0,1,1),
(5856,254685,1.34,0,1,1),
(6005,252883,2.97,0,1,1),
(6116,252858,2.47,0,1,1),
(6117,251438,1.11,0,1,1),
(6126,254074,2.48,0,1,1),
(6195,252932,0.99,0,1,1),
(6198,252929,0.66,0,1,1),
(6199,251441,1.03,0,1,1),
(6520,252882,2.27,0,1,1),
(7108,251442,2.44,0,1,1),
(7115,252926,0.74,0,1,1),
(7139,254126,2.33,0,1,1),
(7153,252866,0.98,0,1,1),
(7154,249514,1.68,0,1,1),
(7155,251440,1.28,0,1,1),
(7158,252865,2.19,0,1,1),
(7267,251406,1.05,0,1,1),
(7267,251407,0.7,0,1,1),
(7267,252867,0.7,0,1,1),
(7267,254102,0.7,0,1,1),
(7267,254106,0.35,0,1,1),
(7271,254102,0.32,0,1,1),
(7271,254106,0.64,0,1,1),
(7440,252890,3.43,0,1,1),
(7797,251407,0.36,0,1,1),
(7797,254102,0.36,0,1,1),
(8127,251406,0.38,0,1,1),
(8127,251407,1.52,0,1,1),
(8519,17309,24.24,1,1,1),
(8520,17309,23.63,1,1,1),
(8521,17309,47.83,1,1,1),
(8522,17309,46.95,1,1,1),
(8566,251439,1.4,0,1,1),
(8600,251444,3.33,0,1,1),
(8602,250175,9.09,0,1,1),
(8893,251467,1.64,0,1,1),
(9018,252867,3.03,0,1,1),
(9018,254102,3.03,0,1,1),
(9024,252867,3.7,0,1,1),
(9318,252915,2.14,0,1,1),
(9502,252867,4.55,0,1,1),
(9543,251407,4.55,0,1,1),
(9543,254102,4.55,0,1,1),
(9862,264228,5.66,0,1,1),
(9878,252879,2.5,0,1,1),
(12201,251407,0.81,0,1,1),
(12203,252867,1.79,0,1,1),
(12203,254106,1.79,0,1,1),
(12225,251407,0.96,0,1,1),
(12225,254102,0.96,0,1,1),
(12225,254106,0.96,0,1,1),
(12236,254106,0.86,0,1,1),
(12258,251407,0.91,0,1,1),
(13596,252867,0.9,0,1,1),
(13596,254102,0.9,0,1,1),
(13596,254106,1.8,0,1,1),
(13601,252867,1.15,0,1,1),
(13601,254106,1.15,0,1,1),
(249229,284871,1.45,0,1,1);
UPDATE `creature_template_difficulty` `d` SET `d`.`LootID`=`d`.`Entry` WHERE `d`.`DifficultyID`=0 AND `d`.`LootID`=0
AND `d`.`Entry` IN (SELECT `Entry` FROM `forever_drops_1116`)
AND NOT EXISTS (SELECT 1 FROM `creature_loot_template` `l` WHERE `l`.`Entry`=`d`.`Entry`);
INSERT INTO `creature_loot_template` (`Entry`,`ItemType`,`Item`,`Chance`,`QuestRequired`,`LootMode`,`GroupId`,`MinCount`,`MaxCount`,`Comment`)
SELECT `s`.`Entry`,0,`s`.`Item`,`s`.`Chance`,`s`.`QuestRequired`,1,0,`s`.`MinCount`,`s`.`MaxCount`,IF(`s`.`QuestRequired`=1,'Everlake data: Wowhead Forever','Everlake data: Icy Veins Forever') FROM `forever_drops_1116` `s`
JOIN `creature_template_difficulty` `d` ON `d`.`Entry`=`s`.`Entry` AND `d`.`DifficultyID`=0 AND `d`.`LootID`=`s`.`Entry`
WHERE NOT EXISTS (SELECT 1 FROM `creature_loot_template` `x` WHERE `x`.`Entry`=`s`.`Entry` AND `x`.`ItemType`=0 AND `x`.`Item`=`s`.`Item`)
AND NOT EXISTS (SELECT 1 FROM `creature_template_difficulty` `o` WHERE `o`.`LootID`=`s`.`Entry` AND `o`.`Entry`<>`s`.`Entry`);
DROP TEMPORARY TABLE IF EXISTS `forever_drops_1116`;
-- 2. Southshore Stink Bomb Counter (15415) belongs to Hallow's End (event 12, as in cmangos classic-db) but was in no event,
-- so it stood all year.
INSERT INTO `game_event_creature` (`eventEntry`,`guid`)
SELECT 12,`c`.`guid` FROM `creature` `c` WHERE `c`.`id`=15415 AND `c`.`map`=0
AND NOT EXISTS (SELECT 1 FROM `game_event_creature` `g` WHERE `g`.`guid`=`c`.`guid`);
@@ -0,0 +1,4 @@
-- .bug help (cs_misc.cpp). Safe to run again.
DELETE FROM `command` WHERE `name` = 'bug';
INSERT INTO `command` (`name`, `help`) VALUES
('bug', 'Syntax: .bug $text\r\n\r\nReport a bug. Your zone, position, target and quest log are saved with your text, so we can find it. Staff read the reports with .ticket bug list.');
@@ -0,0 +1,65 @@
-- Two Classic quests that could not be finished: the creature to kill or to hand in to never appeared.
-- Found by the quest health sweep (tools/quest_health).
--
-- 1) Ulag the Cleaver (1819, Tirisfal Glades): Ulag 6390 was not spawned and nothing summoned him. Using the Mausoleum
-- Trigger (104593, and 706178 from the Forever sniff at the same spot) with the quest in the log now opens the
-- mausoleum door (176594) and summons Ulag at the door, who attacks the player. Quest-gated by the trigger itself
-- (Data1 = 1819) and by the condition below; one Ulag at a time. Position and 5 minute timer from TrinityCore 3.3.5
-- go_mausoleum_door / go_mausoleum_trigger (GPL-2.0).
-- The two triggers stand on the same spot (our VMaNGOS conversion 30044766 and the Forever sniff 21202145); the
-- converted copy is removed so players see one lever, as on Forever.
-- 2) The Ancient Leaf (7632, hunter, Felwood): the ender Vartrus the Ancient 14524 (and Stoma the Ancient 14525, A Proper
-- String 7635) were never spawned. Entering area trigger 3587 (Irontree Woods) as a hunter now calls Vartrus and
-- Stoma for 10 minutes, as VMaNGOS at_irontree_wood (GPL-2.0, same positions). Hastat the Ancient is already a fixed
-- spawn (2026_11_05_62). VMaNGOS only calls them while 7632 is done but not handed in; the chain after it (7633, 7635,
-- 7636) also needs Vartrus and Stoma, so they also come while 7632 is rewarded and 7636 is not yet rewarded.
-- Safe to run again.
-- 1) Ulag the Cleaver
DELETE FROM `gameobject` WHERE `guid` = 30044766 AND `id` = 104593;
UPDATE `gameobject_template` SET `AIName` = 'SmartGameObjectAI' WHERE `entry` IN (104593, 706178) AND `ScriptName` = '';
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (104593, 706178) AND `source_type` = 1;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`Difficulties`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,
`event_param1`,`event_param2`,`event_param3`,`event_param4`,`event_param5`,`event_param_string`,
`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`action_param7`,`action_param_string`,
`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_param4`,`target_param_string`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(104593,1,0,1,'',64,0,100,0, 1,0,0,0,0,'', 9,0,0,0,0,0,0,0,'', 15,176594,30,0,0,'',0,0,0,0,'Mausoleum Trigger - On Use - Open Mausoleum Door (quest 1819)'),
(104593,1,1,0,'',61,0,100,0, 0,0,0,0,0,'', 12,6390,1,300000,0,4,0,0,'', 8,0,0,0,0,'',2390.26,336.47,40.01,2.26,'Mausoleum Trigger - Linked - Summon Ulag the Cleaver (attacks the player)'),
(706178,1,0,1,'',64,0,100,0, 1,0,0,0,0,'', 9,0,0,0,0,0,0,0,'', 15,176594,30,0,0,'',0,0,0,0,'Mausoleum Trigger - On Use - Open Mausoleum Door (quest 1819)'),
(706178,1,1,0,'',61,0,100,0, 0,0,0,0,0,'', 12,6390,1,300000,0,4,0,0,'', 8,0,0,0,0,'',2390.26,336.47,40.01,2.26,'Mausoleum Trigger - Linked - Summon Ulag the Cleaver (attacks the player)');
-- only with Ulag the Cleaver in the log, and not while an Ulag is already out
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceGroup` = 1 AND `SourceEntry` IN (104593, 706178) AND `SourceId` = 1;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,
`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`ConditionStringValue1`,`NegativeCondition`,`ErrorType`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
(22,1,104593,1,0,47,0,1819,8,0,'',0,0,0,'','Mausoleum Trigger: Ulag the Cleaver in progress'),
(22,1,104593,1,0,29,1,6390,60,0,'',1,0,0,'','Mausoleum Trigger: no Ulag the Cleaver out already'),
(22,1,706178,1,0,47,0,1819,8,0,'',0,0,0,'','Mausoleum Trigger: Ulag the Cleaver in progress'),
(22,1,706178,1,0,29,1,6390,60,0,'',1,0,0,'','Mausoleum Trigger: no Ulag the Cleaver out already');
-- 2) The Ancient Leaf
DELETE FROM `areatrigger_scripts` WHERE `entry` = 3587;
INSERT INTO `areatrigger_scripts` (`entry`,`ScriptName`) VALUES (3587,'SmartTrigger');
DELETE FROM `smart_scripts` WHERE `entryorguid` = 3587 AND `source_type` = 2;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`Difficulties`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,
`event_param1`,`event_param2`,`event_param3`,`event_param4`,`event_param5`,`event_param_string`,
`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`action_param7`,`action_param_string`,
`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_param4`,`target_param_string`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(3587,2,0,1,'',46,0,100,0, 0,0,0,0,0,'', 12,14524,3,600000,0,0,0,0,'', 8,0,0,0,0,'',6194.55,-1176.35,369.056,1.1098,'Irontree Woods - On Trigger - Summon Vartrus the Ancient (The Ancient Leaf)'),
(3587,2,1,0,'',61,0,100,0, 0,0,0,0,0,'', 12,14525,3,600000,0,0,0,0,'', 8,0,0,0,0,'',6197.12,-1135.42,366.31,5.28025,'Irontree Woods - Linked - Summon Stoma the Ancient');
-- a hunter with 7632 done but not handed in (else group 0), or with 7632 handed in and Stave of the Ancients 7636 not yet
-- (else group 1); in both cases only when no Vartrus is near
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 22 AND `SourceGroup` = 1 AND `SourceEntry` = 3587 AND `SourceId` = 2;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,
`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`ConditionStringValue1`,`NegativeCondition`,`ErrorType`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
(22,1,3587,2,0,15,0,4,0,0,'',0,0,0,'','Irontree Woods: hunter'),
(22,1,3587,2,0,47,0,7632,2,0,'',0,0,0,'','Irontree Woods: The Ancient Leaf done, not handed in'),
(22,1,3587,2,0,29,0,14524,100,0,'',1,0,0,'','Irontree Woods: no Vartrus the Ancient near'),
(22,1,3587,2,1,15,0,4,0,0,'',0,0,0,'','Irontree Woods: hunter'),
(22,1,3587,2,1,47,0,7632,64,0,'',0,0,0,'','Irontree Woods: The Ancient Leaf handed in'),
(22,1,3587,2,1,47,0,7636,43,0,'',0,0,0,'','Irontree Woods: Stave of the Ancients not handed in'),
(22,1,3587,2,1,29,0,14524,100,0,'',1,0,0,'','Irontree Woods: no Vartrus the Ancient near');
@@ -0,0 +1,5 @@
-- .aura self takes several spells in one line (one chat line per macro press is all the client sends during a boss fight).
-- New file; 2026_11_10_99 stays as shipped. Safe to run again.
DELETE FROM `command` WHERE `name` = 'aura self';
INSERT INTO `command` (`name`, `help`) VALUES
('aura self', 'Syntax: .aura self #spellid [#spellid ...]\r\n\r\nAdd the aura of each spell #spellid to yourself, whatever you have targeted. In a boss fight the client only lets a macro send a party, raid or whisper line, so start the macro line with /p, /ra or /w YourName (for example: /w YourName .aura self 1459 21562).');
@@ -0,0 +1,7 @@
-- Thunder Bluff weapon master Ansekhwa (11869) teaches Guns again (Discord, checkitout1333 2026-11-17: an Undead warrior could
-- not learn Guns anywhere). The weapon master pointed at trainer 398 from the Forever sniff, and a trainer list in a sniff only
-- holds what the sniffing character could learn: 398 is the druid's part (One-Handed Maces, Two-Handed Maces, Staves), the same
-- way the sniffed lists of Sayoc 397, Hanashi 399 and Archibald 400 match one class's weapons. Vanilla Ansekhwa also taught Guns
-- (VMaNGOS); our Classic trainer 1011869 has all four. Sayoc, Hanashi and Archibald's sniffed lists already equal their Classic
-- ones, so only Ansekhwa changes. Safe to run again.
UPDATE `creature_trainer` SET `TrainerID` = 1011869 WHERE `CreatureID` = 11869 AND `TrainerID` = 398;
@@ -0,0 +1,23 @@
-- Two Discord reports of 2026-11-17. Safe to run again.
--
-- 1) Morridune (Blackfathom Deeps, VoldemarGreed "bugs 6": "no NPC"). Aku'mai's death already summons him (VMaNGOS EventAI
-- 482901, he says "Aku'mai is dead! At last, I can leave this wretched place."), but he had no npc flag and no script, so
-- he showed no chat window and "Please port me to Darnassus." (gossip 321) did nothing. Now he can be talked to and the
-- option casts Teleport: Darnassus 9268 on the player, as in TrinityCore 3.3.5 npc_morridune (GPL-2.0).
UPDATE `creature_template` SET `npcflag` = 1, `AIName` = 'SmartAI', `ScriptName` = '' WHERE `entry` = 6729;
DELETE FROM `smart_scripts` WHERE `entryorguid` = 6729 AND `source_type` = 0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`Difficulties`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,
`event_param1`,`event_param2`,`event_param3`,`event_param4`,`event_param5`,`event_param_string`,
`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`action_param7`,`action_param_string`,
`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_param4`,`target_param_string`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(6729,0,0,1,'',62,0,100,0, 321,0,0,0,0,'', 72,0,0,0,0,0,0,0,'', 7,0,0,0,0,'',0,0,0,0,'Morridune - On Gossip Option 0 Selected - Close Gossip'),
(6729,0,1,0,'',61,0,100,0, 0,0,0,0,0,'', 11,9268,2,0,0,0,0,0,'', 7,0,0,0,0,'',0,0,0,0,'Morridune - Linked - Cast Teleport: Darnassus on the player');
--
-- 2) Archmage Theocritus' Research Journal (quest 79092, Library Book 386759) in the Tower of Azora, Elwynn (claushattedavs
-- "Library Books": "halfway up the tower, the left pile of books on a small bench ... not sparkling or clickable"). Our spawn
-- (from the AnoCore port) stood on the ground floor (z 64.55, under the floor at 64.78). It is moved to the middle floor
-- (90.45) on the same spot; z 91.0 = floor + a small bench. INFERRED height: check in game (PC steps).
-- The same port put a copy of Antonidas' autobiography (386691) in Ironforge 105 yards above the sniffed one (43000010,
-- build 70425, z 503.3): that copy (38669101, z 608.13) is removed.
UPDATE `gameobject` SET `position_z` = 91.0 WHERE `guid` = 38675900 AND `id` = 386759;
DELETE FROM `gameobject` WHERE `guid` = 38669101 AND `id` = 386691;
@@ -0,0 +1,438 @@
-- Tauren 4 metres tall (VoldemarGreed "bugs 6", 2026-11-17: the purple-robed Twilight tauren in Blackfathom Deeps, Twilight
-- Elementalist 4814 and friends). The old data (TDB and the VMaNGOS import) gives tauren creatures DisplayScale 1.35 (male) or 1.25
-- (female). That was the tauren race size: the old server also made tauren PLAYERS 1.35 / 1.25 tall, so creature and player matched.
-- Our client draws tauren at full size by itself (players get scale 1, the tauren models have CreatureModelScale 1 and ModelScale 1),
-- so these creatures came out 35% bigger than a tauren player. Live sniffs agree: all 570 sniffed rows on tauren displays have
-- DisplayScale 1 (e.g. Boarton Shadetotem 205729, Earthen Ring Shaman 257862).
-- Fix: DisplayScale = old value / race size (1.35 male model, 1.25 female model), for every unsniffed row (VerifiedBuild < 50000) on
-- a tauren display (CreatureDisplayInfoExtra DisplayRaceID 6) that is not 1. Creatures meant to be bigger or smaller keep that:
-- Huum Wildmane 1.5 -> 1.11, Twilight Loreseeker 1.15 -> 0.85. Rows sniffed on live are not touched.
-- Each row only changes while it still holds the old value, so it is safe to run again.
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 646 AND `Idx` = 0 AND `CreatureDisplayID` = 2026 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Mr. Smite
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 2478 AND `Idx` = 0 AND `CreatureDisplayID` = 3442 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Haren Swifthoof
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 2487 AND `Idx` = 0 AND `CreatureDisplayID` = 1667 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Fleet Master Seahorn
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 2549 AND `Idx` = 0 AND `CreatureDisplayID` = 4648 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Garr Salthoof
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 2634 AND `Idx` = 0 AND `CreatureDisplayID` = 2178 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Princess Poobah
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 2798 AND `Idx` = 0 AND `CreatureDisplayID` = 2131 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Pand Stonebinder
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 2806 AND `Idx` = 0 AND `CreatureDisplayID` = 2128 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Bale
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 2947 AND `Idx` = 0 AND `CreatureDisplayID` = 3821 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Harken Windtotem
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 2948 AND `Idx` = 0 AND `CreatureDisplayID` = 3826 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Mull Thunderhorn
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 2980 AND `Idx` = 0 AND `CreatureDisplayID` = 3808 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Grull Hawkwind
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 2981 AND `Idx` = 0 AND `CreatureDisplayID` = 3809 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Chief Hawkwind
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 2982 AND `Idx` = 0 AND `CreatureDisplayID` = 3813 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Seer Graytongue
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 2984 AND `Idx` = 0 AND `CreatureDisplayID` = 3815 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Seer Wiserunner
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 2985 AND `Idx` = 0 AND `CreatureDisplayID` = 3822 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Ruul Eagletalon
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 2986 AND `Idx` = 0 AND `CreatureDisplayID` = 10969 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Dorn Plainstalker
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 2987 AND `Idx` = 0 AND `CreatureDisplayID` = 4516 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Eyahn Eagletalon
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 2988 AND `Idx` = 0 AND `CreatureDisplayID` = 1624 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Morin Cloudstalker
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 2991 AND `Idx` = 0 AND `CreatureDisplayID` = 3841 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Greatmother Hawkwind
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 2993 AND `Idx` = 0 AND `CreatureDisplayID` = 3792 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Baine Bloodhoof
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 2994 AND `Idx` = 0 AND `CreatureDisplayID` = 3824 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Ancestral Spirit
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 2995 AND `Idx` = 0 AND `CreatureDisplayID` = 2098 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Tal
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 2996 AND `Idx` = 0 AND `CreatureDisplayID` = 2104 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Torn
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 2997 AND `Idx` = 0 AND `CreatureDisplayID` = 2110 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Jyn Stonehoof
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 2998 AND `Idx` = 0 AND `CreatureDisplayID` = 2090 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Karn Stonehoof
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 2999 AND `Idx` = 0 AND `CreatureDisplayID` = 2100 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Taur Stonehoof
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3001 AND `Idx` = 0 AND `CreatureDisplayID` = 2083 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Brek Stonehoof
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3002 AND `Idx` = 0 AND `CreatureDisplayID` = 2092 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Kurm Stonehoof
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3003 AND `Idx` = 0 AND `CreatureDisplayID` = 2109 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Fyr Mistrunner
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3004 AND `Idx` = 0 AND `CreatureDisplayID` = 2126 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Tepa
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3005 AND `Idx` = 0 AND `CreatureDisplayID` = 2093 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Mahu
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3007 AND `Idx` = 0 AND `CreatureDisplayID` = 2127 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Una
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3008 AND `Idx` = 0 AND `CreatureDisplayID` = 2094 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Mak
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3009 AND `Idx` = 0 AND `CreatureDisplayID` = 2108 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Bena Winterhoof
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3010 AND `Idx` = 0 AND `CreatureDisplayID` = 2116 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Mani Winterhoof
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3011 AND `Idx` = 0 AND `CreatureDisplayID` = 2101 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Teg Dawnstrider
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3012 AND `Idx` = 0 AND `CreatureDisplayID` = 2118 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Nata Dawnstrider
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3013 AND `Idx` = 0 AND `CreatureDisplayID` = 2091 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Komin Winterhoof
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3014 AND `Idx` = 0 AND `CreatureDisplayID` = 2119 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Nida Winterhoof
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3015 AND `Idx` = 0 AND `CreatureDisplayID` = 2114 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Kuna Thunderhorn
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3016 AND `Idx` = 0 AND `CreatureDisplayID` = 2099 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Tand
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3017 AND `Idx` = 0 AND `CreatureDisplayID` = 2117 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Nan Mistrunner
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3018 AND `Idx` = 0 AND `CreatureDisplayID` = 2086 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Hogor Thunderhoof
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3019 AND `Idx` = 0 AND `CreatureDisplayID` = 2084 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Delgo Ragetotem
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3020 AND `Idx` = 0 AND `CreatureDisplayID` = 2085 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Etu Ragetotem
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3021 AND `Idx` = 0 AND `CreatureDisplayID` = 2089 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Kard Ragetotem
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3022 AND `Idx` = 0 AND `CreatureDisplayID` = 2124 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Sunn Ragetotem
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3023 AND `Idx` = 0 AND `CreatureDisplayID` = 2125 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Sura Wildmane
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3024 AND `Idx` = 0 AND `CreatureDisplayID` = 2097 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Tah Winterhoof
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3025 AND `Idx` = 0 AND `CreatureDisplayID` = 2111 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Kaga Mistrunner
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3026 AND `Idx` = 0 AND `CreatureDisplayID` = 2107 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Aska Mistrunner
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3027 AND `Idx` = 0 AND `CreatureDisplayID` = 2095 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Naal Mistrunner
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3028 AND `Idx` = 0 AND `CreatureDisplayID` = 2088 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Kah Mistrunner
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3029 AND `Idx` = 0 AND `CreatureDisplayID` = 2120 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Sewa Mistrunner
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3030 AND `Idx` = 0 AND `CreatureDisplayID` = 2123 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Siln Skychaser
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3031 AND `Idx` = 0 AND `CreatureDisplayID` = 2102 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Tigor Skychaser
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3032 AND `Idx` = 0 AND `CreatureDisplayID` = 2082 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Beram Skychaser
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3033 AND `Idx` = 0 AND `CreatureDisplayID` = 2106 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Turak Runetotem
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3034 AND `Idx` = 0 AND `CreatureDisplayID` = 2121 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Sheal Runetotem
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3036 AND `Idx` = 0 AND `CreatureDisplayID` = 2115 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Kym Wildmane
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3037 AND `Idx` = 0 AND `CreatureDisplayID` = 2122 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Sheza Wildmane
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3038 AND `Idx` = 0 AND `CreatureDisplayID` = 2112 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Kary Thunderhorn
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3039 AND `Idx` = 0 AND `CreatureDisplayID` = 2087 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Holt Thunderhorn
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3040 AND `Idx` = 0 AND `CreatureDisplayID` = 2105 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Urek Thunderhorn
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3041 AND `Idx` = 0 AND `CreatureDisplayID` = 2103 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Torm Ragetotem
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3042 AND `Idx` = 0 AND `CreatureDisplayID` = 2096 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Sark Ragetotem
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3043 AND `Idx` = 0 AND `CreatureDisplayID` = 2113 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Ker Ragetotem
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3050 AND `Idx` = 0 AND `CreatureDisplayID` = 4517 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Veren Tallstrider
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3052 AND `Idx` = 0 AND `CreatureDisplayID` = 3823 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Skorn Whitecloud
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3054 AND `Idx` = 0 AND `CreatureDisplayID` = 3814 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Zarlman Two-Moons
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3055 AND `Idx` = 0 AND `CreatureDisplayID` = 1678 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Maur Raincaller
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3057 AND `Idx` = 0 AND `CreatureDisplayID` = 4307 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Cairne Bloodhoof
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3059 AND `Idx` = 0 AND `CreatureDisplayID` = 3793 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Harutt Thunderhorn
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3060 AND `Idx` = 0 AND `CreatureDisplayID` = 3819 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Gart Mistrunner
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3061 AND `Idx` = 0 AND `CreatureDisplayID` = 3810 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Lanka Farshot
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3062 AND `Idx` = 0 AND `CreatureDisplayID` = 10180 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Meela Dawnstrider
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3063 AND `Idx` = 0 AND `CreatureDisplayID` = 3794 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Krang Stonehoof
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3064 AND `Idx` = 0 AND `CreatureDisplayID` = 3820 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Gennia Runetotem
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3065 AND `Idx` = 0 AND `CreatureDisplayID` = 3811 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Yaw Sharpmane
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3066 AND `Idx` = 0 AND `CreatureDisplayID` = 3816 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Narm Skychaser
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3067 AND `Idx` = 0 AND `CreatureDisplayID` = 3795 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Pyall Silentstride
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3069 AND `Idx` = 0 AND `CreatureDisplayID` = 3796 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Chaw Stronghide
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3072 AND `Idx` = 0 AND `CreatureDisplayID` = 3797 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Kawnie Softbreeze
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3073 AND `Idx` = 0 AND `CreatureDisplayID` = 3799 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Marjak Keenblade
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3074 AND `Idx` = 0 AND `CreatureDisplayID` = 3798 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Varia Hardhide
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3075 AND `Idx` = 0 AND `CreatureDisplayID` = 3801 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Bronk Steelrage
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3076 AND `Idx` = 0 AND `CreatureDisplayID` = 3800 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Moorat Longstride
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3077 AND `Idx` = 0 AND `CreatureDisplayID` = 3802 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Mahnott Roughwound
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3078 AND `Idx` = 0 AND `CreatureDisplayID` = 3803 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Kennah Hawkseye
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3079 AND `Idx` = 0 AND `CreatureDisplayID` = 10182 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Varg Windwhisper
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3080 AND `Idx` = 0 AND `CreatureDisplayID` = 3804 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Harant Ironbrace
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3081 AND `Idx` = 0 AND `CreatureDisplayID` = 3806 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Wunna Darkmane
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3083 AND `Idx` = 0 AND `CreatureDisplayID` = 2140 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Honor Guard
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3084 AND `Idx` = 0 AND `CreatureDisplayID` = 2141 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Bluffwatcher
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3084 AND `Idx` = 1 AND `CreatureDisplayID` = 8572 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Bluffwatcher
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3084 AND `Idx` = 2 AND `CreatureDisplayID` = 9391 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Bluffwatcher
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3084 AND `Idx` = 3 AND `CreatureDisplayID` = 9392 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Bluffwatcher
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3092 AND `Idx` = 0 AND `CreatureDisplayID` = 2133 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Tagain
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3093 AND `Idx` = 0 AND `CreatureDisplayID` = 2129 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Grod
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3095 AND `Idx` = 0 AND `CreatureDisplayID` = 2132 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Fela
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3209 AND `Idx` = 0 AND `CreatureDisplayID` = 3770 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Brave Windfeather
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3210 AND `Idx` = 0 AND `CreatureDisplayID` = 3771 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Brave Proudsnout
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3211 AND `Idx` = 0 AND `CreatureDisplayID` = 3774 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Brave Lightninghorn
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3212 AND `Idx` = 0 AND `CreatureDisplayID` = 3775 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Brave Ironhorn
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3213 AND `Idx` = 0 AND `CreatureDisplayID` = 3776 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Brave Running Wolf
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3214 AND `Idx` = 0 AND `CreatureDisplayID` = 3778 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Brave Greathoof
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3215 AND `Idx` = 0 AND `CreatureDisplayID` = 3777 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Brave Strongbash
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3217 AND `Idx` = 0 AND `CreatureDisplayID` = 3780 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Brave Dawneagle
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3218 AND `Idx` = 0 AND `CreatureDisplayID` = 3779 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Brave Swiftwind
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3219 AND `Idx` = 0 AND `CreatureDisplayID` = 3781 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Brave Leaping Deer
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3220 AND `Idx` = 0 AND `CreatureDisplayID` = 3782 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Brave Darksky
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3221 AND `Idx` = 0 AND `CreatureDisplayID` = 3783 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Brave Rockhorn
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3222 AND `Idx` = 0 AND `CreatureDisplayID` = 4265 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Brave Wildrunner
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3223 AND `Idx` = 0 AND `CreatureDisplayID` = 3784 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Brave Rainchaser
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3224 AND `Idx` = 0 AND `CreatureDisplayID` = 10181 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Brave Cloudmane
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3233 AND `Idx` = 0 AND `CreatureDisplayID` = 3817 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Lorekeeper Raintotem
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3322 AND `Idx` = 0 AND `CreatureDisplayID` = 1322 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Kaja
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3341 AND `Idx` = 0 AND `CreatureDisplayID` = 3844 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Gann Stonespire
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3387 AND `Idx` = 0 AND `CreatureDisplayID` = 3845 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Jorn Skyseer
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3388 AND `Idx` = 0 AND `CreatureDisplayID` = 3848 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Mahren Skyseer
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3418 AND `Idx` = 0 AND `CreatureDisplayID` = 3818 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Kirge Sternhorn
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3441 AND `Idx` = 0 AND `CreatureDisplayID` = 4520 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Melor Stonehoof
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3447 AND `Idx` = 0 AND `CreatureDisplayID` = 4383 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Pawe Mistrunner
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3448 AND `Idx` = 0 AND `CreatureDisplayID` = 3914 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Tonga Runetotem
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3480 AND `Idx` = 0 AND `CreatureDisplayID` = 3867 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Moorane Hearthgrain
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3483 AND `Idx` = 0 AND `CreatureDisplayID` = 3872 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Jahan Hawkwing
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3486 AND `Idx` = 0 AND `CreatureDisplayID` = 3875 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Halija Whitestrider
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3500 AND `Idx` = 0 AND `CreatureDisplayID` = 3898 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Tarhus
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3501 AND `Idx` = 1 AND `CreatureDisplayID` = 4262 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Horde Guard
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3501 AND `Idx` = 2 AND `CreatureDisplayID` = 4263 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Horde Guard
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3678 AND `Idx` = 0 AND `CreatureDisplayID` = 1941 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Disciple of Naralex
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3685 AND `Idx` = 0 AND `CreatureDisplayID` = 4300 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Harb Clawhoof
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3688 AND `Idx` = 0 AND `CreatureDisplayID` = 4299 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Reban Freerunner
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3689 AND `Idx` = 0 AND `CreatureDisplayID` = 4301 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Laer Stepperunner
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3690 AND `Idx` = 0 AND `CreatureDisplayID` = 4298 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Kar Stormsinger
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3703 AND `Idx` = 0 AND `CreatureDisplayID` = 3895 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Krulmoo Fullmoon
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3704 AND `Idx` = 0 AND `CreatureDisplayID` = 3896 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Mahani
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3705 AND `Idx` = 0 AND `CreatureDisplayID` = 3843 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Gahroot
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3883 AND `Idx` = 0 AND `CreatureDisplayID` = 3812 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Moodan Sungrain
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3884 AND `Idx` = 0 AND `CreatureDisplayID` = 3807 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Jhawna Oatwind
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3934 AND `Idx` = 0 AND `CreatureDisplayID` = 3881 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Innkeeper Boorand Plainswind
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 3978 AND `Idx` = 0 AND `CreatureDisplayID` = 4518 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Sage Truthseeker
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 4309 AND `Idx` = 0 AND `CreatureDisplayID` = 4511 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Gorm Grimtotem
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 4310 AND `Idx` = 0 AND `CreatureDisplayID` = 4512 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Cor Grimtotem
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 4312 AND `Idx` = 0 AND `CreatureDisplayID` = 2411 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Tharm
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 4317 AND `Idx` = 0 AND `CreatureDisplayID` = 2412 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Nyse
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 4451 AND `Idx` = 0 AND `CreatureDisplayID` = 4568 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Auld Stonespire
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 4489 AND `Idx` = 0 AND `CreatureDisplayID` = 3907 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Braug Dimspirit
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 4629 AND `Idx` = 0 AND `CreatureDisplayID` = 2704 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Trackmaster Zherin
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 4721 AND `Idx` = 0 AND `CreatureDisplayID` = 2738 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Zangen Stonehoof
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 4722 AND `Idx` = 0 AND `CreatureDisplayID` = 2739 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Rau Cliffrunner
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 4810 AND `Idx` = 3 AND `CreatureDisplayID` = 2901 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Twilight Reaver
UPDATE `creature_template_model` SET `DisplayScale` = 0.85 WHERE `CreatureID` = 4812 AND `Idx` = 1 AND `CreatureDisplayID` = 2895 AND ABS(`DisplayScale` - 1.15) < 0.001; -- 1.15 / 1.35 male, Twilight Loreseeker
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 4814 AND `Idx` = 2 AND `CreatureDisplayID` = 2892 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Twilight Elementalist
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 4876 AND `Idx` = 0 AND `CreatureDisplayID` = 4306 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Jawn Highmesa
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 4877 AND `Idx` = 0 AND `CreatureDisplayID` = 4529 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Jandia
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 4878 AND `Idx` = 0 AND `CreatureDisplayID` = 4308 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Montarr
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 4943 AND `Idx` = 0 AND `CreatureDisplayID` = 2951 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Mosarn
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 5054 AND `Idx` = 0 AND `CreatureDisplayID` = 3002 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Krumn
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 5189 AND `Idx` = 0 AND `CreatureDisplayID` = 3129 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Thrumn
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 5390 AND `Idx` = 0 AND `CreatureDisplayID` = 4715 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Sage Palerunner
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 5412 AND `Idx` = 0 AND `CreatureDisplayID` = 4695 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Gurda Wildmane
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 5599 AND `Idx` = 0 AND `CreatureDisplayID` = 3550 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Kon Yelloweyes
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 5767 AND `Idx` = 0 AND `CreatureDisplayID` = 4289 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Nalpak
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 5769 AND `Idx` = 0 AND `CreatureDisplayID` = 4519 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Arch Druid Hamuul Runetotem
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 5770 AND `Idx` = 0 AND `CreatureDisplayID` = 4513 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Nara Wildmane
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 5784 AND `Idx` = 0 AND `CreatureDisplayID` = 4288 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Waldor
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 5860 AND `Idx` = 3 AND `CreatureDisplayID` = 7824 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Twilight Dark Shaman
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 5888 AND `Idx` = 0 AND `CreatureDisplayID` = 4533 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Seer Ravenfeather
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 5901 AND `Idx` = 0 AND `CreatureDisplayID` = 4538 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Islen Waterseer
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 5905 AND `Idx` = 0 AND `CreatureDisplayID` = 4541 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Prate Cloudseer
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 5906 AND `Idx` = 0 AND `CreatureDisplayID` = 4542 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Xanis Flameweaver
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 5938 AND `Idx` = 0 AND `CreatureDisplayID` = 4604 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Uthan Stillwater
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 5939 AND `Idx` = 0 AND `CreatureDisplayID` = 4605 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Vira Younghoof
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 5940 AND `Idx` = 0 AND `CreatureDisplayID` = 4608 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Harn Longcast
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 5944 AND `Idx` = 0 AND `CreatureDisplayID` = 4614 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Yonada
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 6028 AND `Idx` = 0 AND `CreatureDisplayID` = 4726 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Burkrum
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 6290 AND `Idx` = 0 AND `CreatureDisplayID` = 4992 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Yonn Deepcut
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 6387 AND `Idx` = 0 AND `CreatureDisplayID` = 5108 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Dranh
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 6393 AND `Idx` = 0 AND `CreatureDisplayID` = 5371 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Henen Ragetotem
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 6394 AND `Idx` = 0 AND `CreatureDisplayID` = 5373 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Ruga Ragetotem
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 6410 AND `Idx` = 0 AND `CreatureDisplayID` = 5372 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Orm Stonehoof
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 6466 AND `Idx` = 0 AND `CreatureDisplayID` = 5205 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Gamon
UPDATE `creature_template_model` SET `DisplayScale` = 0.96 WHERE `CreatureID` = 6726 AND `Idx` = 0 AND `CreatureDisplayID` = 5406 AND ABS(`DisplayScale` - 1.3) < 0.001; -- 1.3 / 1.35 male, Thalon
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 6746 AND `Idx` = 0 AND `CreatureDisplayID` = 5487 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Innkeeper Pala
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 6747 AND `Idx` = 0 AND `CreatureDisplayID` = 5486 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Innkeeper Kauth
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 6775 AND `Idx` = 0 AND `CreatureDisplayID` = 5506 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Antur Fallow
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 6776 AND `Idx` = 0 AND `CreatureDisplayID` = 5507 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Magrin Rivermane
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 7089 AND `Idx` = 0 AND `CreatureDisplayID` = 5847 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Mooranta
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 7114 AND `Idx` = 2 AND `CreatureDisplayID` = 11274 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Jaedenar Enforcer
UPDATE `creature_template_model` SET `DisplayScale` = 0.91 WHERE `CreatureID` = 7427 AND `Idx` = 0 AND `CreatureDisplayID` = 6208 AND ABS(`DisplayScale` - 1.23) < 0.001; -- 1.23 / 1.35 male, Taim Ragetotem
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 7668 AND `Idx` = 0 AND `CreatureDisplayID` = 6847 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Servant of Razelikh
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 7669 AND `Idx` = 0 AND `CreatureDisplayID` = 6874 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Servant of Grol
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 7670 AND `Idx` = 0 AND `CreatureDisplayID` = 6855 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Servant of Allistarj
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 7671 AND `Idx` = 0 AND `CreatureDisplayID` = 6869 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Servant of Sevine
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 7714 AND `Idx` = 0 AND `CreatureDisplayID` = 6550 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Innkeeper Byula
UPDATE `creature_template_model` SET `DisplayScale` = 1.08 WHERE `CreatureID` = 7725 AND `Idx` = 0 AND `CreatureDisplayID` = 6835 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.25 female, Grimtotem Raider
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 7725 AND `Idx` = 1 AND `CreatureDisplayID` = 6836 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Grimtotem Raider
UPDATE `creature_template_model` SET `DisplayScale` = 1.08 WHERE `CreatureID` = 7726 AND `Idx` = 0 AND `CreatureDisplayID` = 6831 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.25 female, Grimtotem Naturalist
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 7726 AND `Idx` = 1 AND `CreatureDisplayID` = 6832 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Grimtotem Naturalist
UPDATE `creature_template_model` SET `DisplayScale` = 1.08 WHERE `CreatureID` = 7727 AND `Idx` = 0 AND `CreatureDisplayID` = 6833 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.25 female, Grimtotem Shaman
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 7727 AND `Idx` = 1 AND `CreatureDisplayID` = 6834 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Grimtotem Shaman
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 7737 AND `Idx` = 0 AND `CreatureDisplayID` = 6554 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Innkeeper Greul
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 7776 AND `Idx` = 0 AND `CreatureDisplayID` = 6996 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Talo Thornhoof
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 7793 AND `Idx` = 0 AND `CreatureDisplayID` = 6854 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Ox
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 7854 AND `Idx` = 0 AND `CreatureDisplayID` = 6893 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Jangdor Swiftstrider
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 7869 AND `Idx` = 0 AND `CreatureDisplayID` = 6918 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Brumn Winterhoof
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 7875 AND `Idx` = 0 AND `CreatureDisplayID` = 6983 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Hadoken Swiftstrider
UPDATE `creature_template_model` SET `DisplayScale` = 0.93 WHERE `CreatureID` = 7975 AND `Idx` = 0 AND `CreatureDisplayID` = 7115 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.35 male, Mulgore Protector
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 7975 AND `Idx` = 1 AND `CreatureDisplayID` = 7116 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Mulgore Protector
UPDATE `creature_template_model` SET `DisplayScale` = 0.93 WHERE `CreatureID` = 7975 AND `Idx` = 2 AND `CreatureDisplayID` = 10152 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.35 male, Mulgore Protector
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 7975 AND `Idx` = 3 AND `CreatureDisplayID` = 10153 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Mulgore Protector
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 8016 AND `Idx` = 1 AND `CreatureDisplayID` = 4262 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Barrens Guard
UPDATE `creature_template_model` SET `DisplayScale` = 1.08 WHERE `CreatureID` = 8016 AND `Idx` = 2 AND `CreatureDisplayID` = 4263 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.25 female, Barrens Guard
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 8020 AND `Idx` = 0 AND `CreatureDisplayID` = 7248 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Shyn
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 8142 AND `Idx` = 0 AND `CreatureDisplayID` = 7357 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Jannos Lighthoof
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 8143 AND `Idx` = 0 AND `CreatureDisplayID` = 7358 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Loorana
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 8144 AND `Idx` = 0 AND `CreatureDisplayID` = 7360 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Kulleg Stonehorn
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 8145 AND `Idx` = 0 AND `CreatureDisplayID` = 7359 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Sheendra Tallgrass
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 8146 AND `Idx` = 0 AND `CreatureDisplayID` = 7361 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Ruw
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 8147 AND `Idx` = 0 AND `CreatureDisplayID` = 7363 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Camp Mojache Brave
UPDATE `creature_template_model` SET `DisplayScale` = 0.93 WHERE `CreatureID` = 8147 AND `Idx` = 1 AND `CreatureDisplayID` = 7364 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.35 male, Camp Mojache Brave
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 8147 AND `Idx` = 2 AND `CreatureDisplayID` = 7365 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Camp Mojache Brave
UPDATE `creature_template_model` SET `DisplayScale` = 0.93 WHERE `CreatureID` = 8147 AND `Idx` = 3 AND `CreatureDisplayID` = 7366 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.35 male, Camp Mojache Brave
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 8152 AND `Idx` = 0 AND `CreatureDisplayID` = 7372 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Harnor
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 8153 AND `Idx` = 0 AND `CreatureDisplayID` = 7370 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Narv Hidecrafter
UPDATE `creature_template_model` SET `DisplayScale` = 0.93 WHERE `CreatureID` = 8154 AND `Idx` = 0 AND `CreatureDisplayID` = 7374 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.35 male, Ghost Walker Brave
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 8154 AND `Idx` = 1 AND `CreatureDisplayID` = 7376 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Ghost Walker Brave
UPDATE `creature_template_model` SET `DisplayScale` = 0.93 WHERE `CreatureID` = 8154 AND `Idx` = 2 AND `CreatureDisplayID` = 7377 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.35 male, Ghost Walker Brave
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 8154 AND `Idx` = 3 AND `CreatureDisplayID` = 7378 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Ghost Walker Brave
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 8158 AND `Idx` = 0 AND `CreatureDisplayID` = 7380 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Bronk
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 8159 AND `Idx` = 0 AND `CreatureDisplayID` = 7381 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Worb Strongstitch
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 8307 AND `Idx` = 0 AND `CreatureDisplayID` = 7531 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Tarban Hearthgrain
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 8356 AND `Idx` = 0 AND `CreatureDisplayID` = 7621 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Chesmu
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 8357 AND `Idx` = 0 AND `CreatureDisplayID` = 7620 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Atepa
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 8358 AND `Idx` = 0 AND `CreatureDisplayID` = 7622 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Hewa
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 8359 AND `Idx` = 0 AND `CreatureDisplayID` = 7623 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Ahanu
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 8360 AND `Idx` = 0 AND `CreatureDisplayID` = 7624 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Elki
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 8361 AND `Idx` = 0 AND `CreatureDisplayID` = 7625 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Chepi
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 8362 AND `Idx` = 0 AND `CreatureDisplayID` = 7626 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Kuruk
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 8363 AND `Idx` = 0 AND `CreatureDisplayID` = 7628 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Shadi Mistrunner
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 8364 AND `Idx` = 0 AND `CreatureDisplayID` = 7627 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Pakwa
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 8385 AND `Idx` = 0 AND `CreatureDisplayID` = 7615 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Mura Runetotem
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 8393 AND `Idx` = 0 AND `CreatureDisplayID` = 7599 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Thersa Windsong
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 8398 AND `Idx` = 0 AND `CreatureDisplayID` = 10689 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Ohanko
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 8401 AND `Idx` = 0 AND `CreatureDisplayID` = 7629 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Halpa
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 8418 AND `Idx` = 0 AND `CreatureDisplayID` = 7870 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Falla Sagewind
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 8664 AND `Idx` = 0 AND `CreatureDisplayID` = 7936 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Saern Priderunner
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 8674 AND `Idx` = 0 AND `CreatureDisplayID` = 7999 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Auctioneer Stampi
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 8722 AND `Idx` = 0 AND `CreatureDisplayID` = 7998 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Auctioneer Gullem
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 8878 AND `Idx` = 0 AND `CreatureDisplayID` = 8169 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Muuran
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 8912 AND `Idx` = 3 AND `CreatureDisplayID` = 8792 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Twilight's Hammer Torturer
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 8914 AND `Idx` = 1 AND `CreatureDisplayID` = 9347 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Twilight Bodyguard
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 8914 AND `Idx` = 2 AND `CreatureDisplayID` = 8773 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Twilight Bodyguard
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 8915 AND `Idx` = 3 AND `CreatureDisplayID` = 9025 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Twilight's Hammer Ambassador
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 9024 AND `Idx` = 0 AND `CreatureDisplayID` = 8762 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Pyromancer Loregrain
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 9076 AND `Idx` = 0 AND `CreatureDisplayID` = 8355 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Ghede
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 9081 AND `Idx` = 0 AND `CreatureDisplayID` = 8334 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Galamav the Marksman
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 9084 AND `Idx` = 0 AND `CreatureDisplayID` = 8350 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Thunderheart
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 9087 AND `Idx` = 0 AND `CreatureDisplayID` = 8356 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Bashana Runetotem
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 9501 AND `Idx` = 0 AND `CreatureDisplayID` = 8634 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Innkeeper Adegwa
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 9525 AND `Idx` = 0 AND `CreatureDisplayID` = 7115 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Freewind Brave
UPDATE `creature_template_model` SET `DisplayScale` = 1.08 WHERE `CreatureID` = 9525 AND `Idx` = 1 AND `CreatureDisplayID` = 7116 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.25 female, Freewind Brave
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 9525 AND `Idx` = 2 AND `CreatureDisplayID` = 10152 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Freewind Brave
UPDATE `creature_template_model` SET `DisplayScale` = 1.08 WHERE `CreatureID` = 9525 AND `Idx` = 3 AND `CreatureDisplayID` = 10153 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.25 female, Freewind Brave
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 9529 AND `Idx` = 0 AND `CreatureDisplayID` = 8660 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Maybess Riverbreeze
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 9548 AND `Idx` = 0 AND `CreatureDisplayID` = 8666 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Cawind Trueaim
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 9551 AND `Idx` = 0 AND `CreatureDisplayID` = 8670 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Starn
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 9619 AND `Idx` = 0 AND `CreatureDisplayID` = 8832 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Torwa Pathfinder
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 9636 AND `Idx` = 0 AND `CreatureDisplayID` = 10692 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Kireena
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 9981 AND `Idx` = 0 AND `CreatureDisplayID` = 9254 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Sikwa
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 9983 AND `Idx` = 0 AND `CreatureDisplayID` = 9256 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Kelsuwa
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 10043 AND `Idx` = 0 AND `CreatureDisplayID` = 9233 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Ribbly's Crony
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 10043 AND `Idx` = 1 AND `CreatureDisplayID` = 9234 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Ribbly's Crony
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 10050 AND `Idx` = 0 AND `CreatureDisplayID` = 9269 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Seikwa
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 10054 AND `Idx` = 0 AND `CreatureDisplayID` = 9272 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Bulrug
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 10079 AND `Idx` = 0 AND `CreatureDisplayID` = 9898 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Brave Moonhorn
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 10086 AND `Idx` = 0 AND `CreatureDisplayID` = 9337 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Hesuwa Thunderhorn
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 10278 AND `Idx` = 0 AND `CreatureDisplayID` = 9742 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Thrag Stonehoof
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 10303 AND `Idx` = 0 AND `CreatureDisplayID` = 9776 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Storm Shadowhoof
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 10377 AND `Idx` = 0 AND `CreatureDisplayID` = 9901 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Elu
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 10378 AND `Idx` = 0 AND `CreatureDisplayID` = 9771 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Omusa Thunderhorn
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 10379 AND `Idx` = 0 AND `CreatureDisplayID` = 9770 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Altsoba Ragetotem
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 10380 AND `Idx` = 0 AND `CreatureDisplayID` = 9772 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Sanuye Runetotem
UPDATE `creature_template_model` SET `DisplayScale` = 0.99 WHERE `CreatureID` = 10427 AND `Idx` = 0 AND `CreatureDisplayID` = 9900 AND ABS(`DisplayScale` - 1.34) < 0.001; -- 1.34 / 1.35 male, Pao'ka Swiftmountain
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 10428 AND `Idx` = 0 AND `CreatureDisplayID` = 9902 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Motega Firemane
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 10537 AND `Idx` = 0 AND `CreatureDisplayID` = 9899 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Cliffwatcher Longhorn
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 10539 AND `Idx` = 0 AND `CreatureDisplayID` = 10132 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Hagar Lightninghoof
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 10599 AND `Idx` = 0 AND `CreatureDisplayID` = 9936 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Hulfnar Stonetotem
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 10600 AND `Idx` = 0 AND `CreatureDisplayID` = 9935 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Thontek Rumblehoof
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 10612 AND `Idx` = 0 AND `CreatureDisplayID` = 10958 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Guard Wachabe
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 10638 AND `Idx` = 0 AND `CreatureDisplayID` = 10057 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Kanati Greycloud
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 10645 AND `Idx` = 0 AND `CreatureDisplayID` = 10093 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Thalia Amberhide
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 10646 AND `Idx` = 0 AND `CreatureDisplayID` = 10092 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Lakota Windsong
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 10721 AND `Idx` = 0 AND `CreatureDisplayID` = 10049 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Novice Warrior
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 10721 AND `Idx` = 1 AND `CreatureDisplayID` = 10050 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Novice Warrior
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 10721 AND `Idx` = 2 AND `CreatureDisplayID` = 10051 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Novice Warrior
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 10721 AND `Idx` = 3 AND `CreatureDisplayID` = 10052 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Novice Warrior
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 10739 AND `Idx` = 0 AND `CreatureDisplayID` = 10069 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Mulgris Deepriver
UPDATE `creature_template_model` SET `DisplayScale` = 1.08 WHERE `CreatureID` = 10758 AND `Idx` = 0 AND `CreatureDisplayID` = 10223 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.25 female, Grimtotem Bandit
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 10758 AND `Idx` = 1 AND `CreatureDisplayID` = 10225 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Grimtotem Bandit
UPDATE `creature_template_model` SET `DisplayScale` = 1.08 WHERE `CreatureID` = 10758 AND `Idx` = 2 AND `CreatureDisplayID` = 10224 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.25 female, Grimtotem Bandit
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 10758 AND `Idx` = 3 AND `CreatureDisplayID` = 10226 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Grimtotem Bandit
UPDATE `creature_template_model` SET `DisplayScale` = 1.08 WHERE `CreatureID` = 10759 AND `Idx` = 0 AND `CreatureDisplayID` = 10238 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.25 female, Grimtotem Stomper
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 10759 AND `Idx` = 1 AND `CreatureDisplayID` = 10240 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Grimtotem Stomper
UPDATE `creature_template_model` SET `DisplayScale` = 1.08 WHERE `CreatureID` = 10759 AND `Idx` = 2 AND `CreatureDisplayID` = 10239 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.25 female, Grimtotem Stomper
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 10759 AND `Idx` = 3 AND `CreatureDisplayID` = 10241 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Grimtotem Stomper
UPDATE `creature_template_model` SET `DisplayScale` = 1.08 WHERE `CreatureID` = 10760 AND `Idx` = 0 AND `CreatureDisplayID` = 10227 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.25 female, Grimtotem Geomancer
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 10760 AND `Idx` = 1 AND `CreatureDisplayID` = 10230 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Grimtotem Geomancer
UPDATE `creature_template_model` SET `DisplayScale` = 1.08 WHERE `CreatureID` = 10760 AND `Idx` = 2 AND `CreatureDisplayID` = 10228 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.25 female, Grimtotem Geomancer
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 10760 AND `Idx` = 3 AND `CreatureDisplayID` = 10231 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Grimtotem Geomancer
UPDATE `creature_template_model` SET `DisplayScale` = 1.08 WHERE `CreatureID` = 10761 AND `Idx` = 0 AND `CreatureDisplayID` = 10233 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.25 female, Grimtotem Reaver
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 10761 AND `Idx` = 1 AND `CreatureDisplayID` = 10235 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Grimtotem Reaver
UPDATE `creature_template_model` SET `DisplayScale` = 1.08 WHERE `CreatureID` = 10761 AND `Idx` = 2 AND `CreatureDisplayID` = 10234 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.25 female, Grimtotem Reaver
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 10761 AND `Idx` = 3 AND `CreatureDisplayID` = 10236 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Grimtotem Reaver
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 10881 AND `Idx` = 0 AND `CreatureDisplayID` = 10188 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Bluff Runner Windstrider
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 10896 AND `Idx` = 0 AND `CreatureDisplayID` = 10243 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Arnak Grimtotem
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 10921 AND `Idx` = 0 AND `CreatureDisplayID` = 10254 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Taronn Redfeather
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 10922 AND `Idx` = 0 AND `CreatureDisplayID` = 10253 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Greta Mosshoof
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11047 AND `Idx` = 0 AND `CreatureDisplayID` = 10577 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Kray
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11051 AND `Idx` = 0 AND `CreatureDisplayID` = 10586 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Vhan
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11071 AND `Idx` = 0 AND `CreatureDisplayID` = 10614 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Mot Dawnstrider
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11084 AND `Idx` = 0 AND `CreatureDisplayID` = 10617 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Tarn
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11098 AND `Idx` = 0 AND `CreatureDisplayID` = 10623 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Hahrana Ironhide
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11105 AND `Idx` = 0 AND `CreatureDisplayID` = 10566 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Aboda
UPDATE `creature_template_model` SET `DisplayScale` = 1.08 WHERE `CreatureID` = 11106 AND `Idx` = 0 AND `CreatureDisplayID` = 10564 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.25 female, Innkeeper Sikewa
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11116 AND `Idx` = 0 AND `CreatureDisplayID` = 10653 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Innkeeper Abeqwa
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11117 AND `Idx` = 0 AND `CreatureDisplayID` = 10652 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Awenasa
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11180 AND `Idx` = 0 AND `CreatureDisplayID` = 10734 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Bloodvenom Post Brave
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11180 AND `Idx` = 1 AND `CreatureDisplayID` = 10735 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Bloodvenom Post Brave
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11180 AND `Idx` = 2 AND `CreatureDisplayID` = 10737 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Bloodvenom Post Brave
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11180 AND `Idx` = 3 AND `CreatureDisplayID` = 10736 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Bloodvenom Post Brave
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11259 AND `Idx` = 0 AND `CreatureDisplayID` = 11469 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Nataka Longhorn
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11548 AND `Idx` = 0 AND `CreatureDisplayID` = 11359 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Loh'atu
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11608 AND `Idx` = 0 AND `CreatureDisplayID` = 11456 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Bardu Sharpeye
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11624 AND `Idx` = 0 AND `CreatureDisplayID` = 11792 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Taiga Wisemane
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11718 AND `Idx` = 0 AND `CreatureDisplayID` = 11673 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Sar Browneye
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11720 AND `Idx` = 0 AND `CreatureDisplayID` = 11685 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Loruk Foreststrider
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11748 AND `Idx` = 0 AND `CreatureDisplayID` = 11687 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Samantha Swifthoof
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11749 AND `Idx` = 0 AND `CreatureDisplayID` = 11688 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Feran Strongwind
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11795 AND `Idx` = 0 AND `CreatureDisplayID` = 11770 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Mylentha Riverbend
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11796 AND `Idx` = 0 AND `CreatureDisplayID` = 11771 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Bessany Plainswind
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11797 AND `Idx` = 0 AND `CreatureDisplayID` = 11772 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Moren Riverbend
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11798 AND `Idx` = 0 AND `CreatureDisplayID` = 11773 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Bunthen Plainswind
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11805 AND `Idx` = 0 AND `CreatureDisplayID` = 11799 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Jarund Stoutstrider
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11822 AND `Idx` = 0 AND `CreatureDisplayID` = 11774 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Moonglade Warden
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11822 AND `Idx` = 1 AND `CreatureDisplayID` = 11775 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Moonglade Warden
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11823 AND `Idx` = 0 AND `CreatureDisplayID` = 11738 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Vark Battlescar
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11833 AND `Idx` = 0 AND `CreatureDisplayID` = 11754 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Rahauro
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11834 AND `Idx` = 0 AND `CreatureDisplayID` = 11755 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Maur Grimtotem
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11856 AND `Idx` = 0 AND `CreatureDisplayID` = 11789 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Kaya Flathoof
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11857 AND `Idx` = 0 AND `CreatureDisplayID` = 11790 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Makaba Flathoof
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11858 AND `Idx` = 0 AND `CreatureDisplayID` = 11791 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Grundig Darkcloud
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11860 AND `Idx` = 0 AND `CreatureDisplayID` = 11797 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Maggran Earthbinder
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11861 AND `Idx` = 0 AND `CreatureDisplayID` = 11795 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Mor'rogal
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11864 AND `Idx` = 0 AND `CreatureDisplayID` = 11796 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Tammra Windfield
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11869 AND `Idx` = 0 AND `CreatureDisplayID` = 11803 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Ansekhwa
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11877 AND `Idx` = 0 AND `CreatureDisplayID` = 11852 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Roon Wildmane
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11910 AND `Idx` = 0 AND `CreatureDisplayID` = 11878 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Grimtotem Ruffian
UPDATE `creature_template_model` SET `DisplayScale` = 1.08 WHERE `CreatureID` = 11910 AND `Idx` = 1 AND `CreatureDisplayID` = 11879 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.25 female, Grimtotem Ruffian
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11910 AND `Idx` = 2 AND `CreatureDisplayID` = 11880 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Grimtotem Ruffian
UPDATE `creature_template_model` SET `DisplayScale` = 1.08 WHERE `CreatureID` = 11910 AND `Idx` = 3 AND `CreatureDisplayID` = 11881 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.25 female, Grimtotem Ruffian
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11911 AND `Idx` = 0 AND `CreatureDisplayID` = 11882 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Grimtotem Mercenary
UPDATE `creature_template_model` SET `DisplayScale` = 1.08 WHERE `CreatureID` = 11911 AND `Idx` = 1 AND `CreatureDisplayID` = 11883 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.25 female, Grimtotem Mercenary
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11911 AND `Idx` = 2 AND `CreatureDisplayID` = 11884 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Grimtotem Mercenary
UPDATE `creature_template_model` SET `DisplayScale` = 1.08 WHERE `CreatureID` = 11911 AND `Idx` = 3 AND `CreatureDisplayID` = 11885 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.25 female, Grimtotem Mercenary
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11912 AND `Idx` = 0 AND `CreatureDisplayID` = 11874 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Grimtotem Brute
UPDATE `creature_template_model` SET `DisplayScale` = 1.08 WHERE `CreatureID` = 11912 AND `Idx` = 1 AND `CreatureDisplayID` = 11875 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.25 female, Grimtotem Brute
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11912 AND `Idx` = 2 AND `CreatureDisplayID` = 11876 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Grimtotem Brute
UPDATE `creature_template_model` SET `DisplayScale` = 1.08 WHERE `CreatureID` = 11912 AND `Idx` = 3 AND `CreatureDisplayID` = 11877 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.25 female, Grimtotem Brute
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11913 AND `Idx` = 0 AND `CreatureDisplayID` = 11886 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Grimtotem Sorcerer
UPDATE `creature_template_model` SET `DisplayScale` = 1.08 WHERE `CreatureID` = 11913 AND `Idx` = 1 AND `CreatureDisplayID` = 11888 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.25 female, Grimtotem Sorcerer
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11913 AND `Idx` = 2 AND `CreatureDisplayID` = 11887 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Grimtotem Sorcerer
UPDATE `creature_template_model` SET `DisplayScale` = 1.08 WHERE `CreatureID` = 11913 AND `Idx` = 3 AND `CreatureDisplayID` = 11889 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.25 female, Grimtotem Sorcerer
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11914 AND `Idx` = 0 AND `CreatureDisplayID` = 10225 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Gorehoof the Black
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 11944 AND `Idx` = 0 AND `CreatureDisplayID` = 11902 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Vorn Skyseer
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 12043 AND `Idx` = 0 AND `CreatureDisplayID` = 12059 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Kulwia
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 12052 AND `Idx` = 2 AND `CreatureDisplayID` = 12083 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Frostwolf Warrior
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 12052 AND `Idx` = 3 AND `CreatureDisplayID` = 12084 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Frostwolf Warrior
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 12053 AND `Idx` = 3 AND `CreatureDisplayID` = 12170 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Frostwolf Guardian
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 12576 AND `Idx` = 0 AND `CreatureDisplayID` = 12943 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Grish Longrunner
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 12696 AND `Idx` = 0 AND `CreatureDisplayID` = 12970 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Senani Thunderheart
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 12723 AND `Idx` = 0 AND `CreatureDisplayID` = 12948 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Har'alen
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 12791 AND `Idx` = 0 AND `CreatureDisplayID` = 12673 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Chieftain Earthbind
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 12793 AND `Idx` = 0 AND `CreatureDisplayID` = 12675 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Brave Stonehide
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 12818 AND `Idx` = 0 AND `CreatureDisplayID` = 12969 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Ruul Snowhoof
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 12837 AND `Idx` = 0 AND `CreatureDisplayID` = 12976 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Yama Snowhoof
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 13089 AND `Idx` = 2 AND `CreatureDisplayID` = 13325 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Coldmine Guard
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 13089 AND `Idx` = 3 AND `CreatureDisplayID` = 13562 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Coldmine Guard
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 13117 AND `Idx` = 0 AND `CreatureDisplayID` = 13338 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Horde Spirit Guide
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 13117 AND `Idx` = 1 AND `CreatureDisplayID` = 13339 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Horde Spirit Guide
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 13143 AND `Idx` = 0 AND `CreatureDisplayID` = 13468 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Lieutenant Stronghoof
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 13153 AND `Idx` = 0 AND `CreatureDisplayID` = 13464 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Commander Mulfort
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 13236 AND `Idx` = 0 AND `CreatureDisplayID` = 13478 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Primalist Thurloga
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 13328 AND `Idx` = 3 AND `CreatureDisplayID` = 13281 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Seasoned Guardian
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 13330 AND `Idx` = 2 AND `CreatureDisplayID` = 13303 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Seasoned Warrior
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 13330 AND `Idx` = 3 AND `CreatureDisplayID` = 13304 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Seasoned Warrior
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 13332 AND `Idx` = 3 AND `CreatureDisplayID` = 13285 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Veteran Guardian
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 13337 AND `Idx` = 2 AND `CreatureDisplayID` = 13308 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Veteran Warrior
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 13337 AND `Idx` = 3 AND `CreatureDisplayID` = 13309 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Veteran Warrior
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 13359 AND `Idx` = 2 AND `CreatureDisplayID` = 13400 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Frostwolf Bowman
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 13359 AND `Idx` = 3 AND `CreatureDisplayID` = 13401 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Frostwolf Bowman
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 13417 AND `Idx` = 0 AND `CreatureDisplayID` = 13341 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Sagorne Creststrider
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 13421 AND `Idx` = 3 AND `CreatureDisplayID` = 13364 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Champion Guardian
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 13428 AND `Idx` = 2 AND `CreatureDisplayID` = 13367 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Champion Warrior
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 13428 AND `Idx` = 3 AND `CreatureDisplayID` = 13368 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Champion Warrior
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 14182 AND `Idx` = 0 AND `CreatureDisplayID` = 14216 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Bounty Hunter Kolark
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 14186 AND `Idx` = 0 AND `CreatureDisplayID` = 14233 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Ravak Grimtotem
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 14285 AND `Idx` = 2 AND `CreatureDisplayID` = 14323 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Frostwolf Battleguard
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 14373 AND `Idx` = 0 AND `CreatureDisplayID` = 14427 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Sage Korolusk
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 14426 AND `Idx` = 0 AND `CreatureDisplayID` = 3898 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Harb Foulmountain
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 14440 AND `Idx` = 0 AND `CreatureDisplayID` = 14494 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Hunter Sagewind
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 14441 AND `Idx` = 0 AND `CreatureDisplayID` = 14495 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Hunter Ragetotem
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 14442 AND `Idx` = 0 AND `CreatureDisplayID` = 14496 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Hunter Thunderhorn
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 14531 AND `Idx` = 0 AND `CreatureDisplayID` = 14580 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Artorius the Amiable
UPDATE `creature_template_model` SET `DisplayScale` = 0.91 WHERE `CreatureID` = 14581 AND `Idx` = 0 AND `CreatureDisplayID` = 14612 AND ABS(`DisplayScale` - 1.23) < 0.001; -- 1.23 / 1.35 male, Sergeant Thunderhorn
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 14728 AND `Idx` = 0 AND `CreatureDisplayID` = 14758 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Rumstag Proudstrider
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 15175 AND `Idx` = 0 AND `CreatureDisplayID` = 15319 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Khur Hornstriker
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 15176 AND `Idx` = 0 AND `CreatureDisplayID` = 15318 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Vargus
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 15178 AND `Idx` = 0 AND `CreatureDisplayID` = 15314 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Runk Windtamer
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 15188 AND `Idx` = 0 AND `CreatureDisplayID` = 15322 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Cenarion Emissary Blackhoof
UPDATE `creature_template_model` SET `DisplayScale` = 0.96 WHERE `CreatureID` = 15191 AND `Idx` = 0 AND `CreatureDisplayID` = 15353 AND ABS(`DisplayScale` - 1.2) < 0.001; -- 1.2 / 1.25 female, Windcaller Proudhorn
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 15201 AND `Idx` = 2 AND `CreatureDisplayID` = 2895 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Twilight Flamereaver
UPDATE `creature_template_model` SET `DisplayScale` = 1.11 WHERE `CreatureID` = 15270 AND `Idx` = 0 AND `CreatureDisplayID` = 15371 AND ABS(`DisplayScale` - 1.5) < 0.001; -- 1.5 / 1.35 male, Huum Wildmane
UPDATE `creature_template_model` SET `DisplayScale` = 0.91 WHERE `CreatureID` = 15306 AND `Idx` = 0 AND `CreatureDisplayID` = 15370 AND ABS(`DisplayScale` - 1.23) < 0.001; -- 1.23 / 1.35 male, Bor Wildmane
UPDATE `creature_template_model` SET `DisplayScale` = 0.91 WHERE `CreatureID` = 15499 AND `Idx` = 0 AND `CreatureDisplayID` = 15478 AND ABS(`DisplayScale` - 1.23) < 0.001; -- 1.23 / 1.35 male, Warden Haro
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 15613 AND `Idx` = 0 AND `CreatureDisplayID` = 15568 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Merok Longstride
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 15767 AND `Idx` = 0 AND `CreatureDisplayID` = 15730 AND ABS(`DisplayScale` - 1.25) < 0.001; -- 1.25 / 1.25 female, Officer Thunderstrider
UPDATE `creature_template_model` SET `DisplayScale` = 1 WHERE `CreatureID` = 16134 AND `Idx` = 0 AND `CreatureDisplayID` = 16029 AND ABS(`DisplayScale` - 1.35) < 0.001; -- 1.35 / 1.35 male, Rimblat Earthshatter
@@ -0,0 +1,9 @@
-- Mountaineer Ylva (269153, Loch Modan, quest Banner of the Fallen 86585) stood up; VoldemarGreed "bugs 6" (2026-11-17): she should
-- lie on the ground. The quest text says so: "The fallen mountaineer ... was killed outright by a trogg". She now lies dead
-- (stand state 7) and still gives the quest, as other fallen quest givers do (Fallen Earthen Warrior 26335, Tyrith 24822).
-- Not done: the trampled banner beside her. No sniff or data source has that object, so it waits for a sniff of the spot.
-- Safe to run again.
DELETE FROM `creature_template_addon` WHERE `entry` = 269153;
INSERT INTO `creature_template_addon` (`entry`,`PathId`,`mount`,`MountCreatureID`,`StandState`,`AnimTier`,`VisFlags`,`SheathState`,`PvPFlags`,`emote`,
`aiAnimKit`,`movementAnimKit`,`meleeAnimKit`,`visibilityDistanceType`,`auras`) VALUES
(269153,0,0,0,7,0,0,0,0,0,0,0,0,0,'');
@@ -0,0 +1,4 @@
-- Odd Child (249713, Westfall 41,79, Discord "bugs 3": "stuck in the floor" of the dark stone room). The ground probe (PC step 151p)
-- puts the floor under spawn 24971300 at 42.84, a quarter yard above it (42.583, from the AnoCore port). Raised onto the floor.
-- Safe to run again.
UPDATE `creature` SET `position_z` = 42.85 WHERE `guid` = 24971300 AND `id` = 249713 AND ABS(`position_z` - 42.583) < 0.01;
@@ -0,0 +1,8 @@
-- Deep Pool Threshfin (4827, Blackfathom Deeps; VoldemarGreed "bugs 6", 2026-11-17: "stuck in the rock on the walkway by the
-- waterfall"). The ground probe (PC steps 151p and 151q) shows spawn 20027411 swimming in the pocket under the walkway: the walkway's
-- underside (-33.50) and top (-29.68) stand over it everywhere within 8 yards, so players see it inside the rock and cannot reach it.
-- Moved 12 yards north to the nearest open water (no surface over it within 16 yards; pool floor -36.09), at the same height above
-- the floor as the other Threshfin (0.08). Its 3 yard wander stays in the open (the probe points 4 to 6 yards around it are open too).
-- The other Threshfin are clear: 20027405 lies on a ledge beside open water. Safe to run again.
UPDATE `creature` SET `position_x` = -818.60, `position_y` = -42.69, `position_z` = -36.0
WHERE `guid` = 20027411 AND `id` = 4827 AND ABS(`position_x` + 818.598) < 0.01 AND ABS(`position_y` + 54.6887) < 0.01;
@@ -0,0 +1,9 @@
-- Overlapping objects at Raan Wildwind's camp, Zephras Isle (map 2991; Discord 6_1_8_8_1 "Bugs 3" item 4, 2026-11-16: glowing Mana
-- Wells inside a chair and a crate). The Forever sniff of 10 Oct (2026_10_01_03) saved nine camp features standing round the camping
-- trainer's fire as world objects: three Mana Wells, a First Aid Kit, an Incense Candle, a Lodestone, a Faction Banner and two
-- Chairs. On live these are the features players place with the camping spells (Camp Chair 1307229, Mana Well 1307259, ...): one
-- player can have one Mana Well, yet three stood here, each turned a different way, one inside the First Aid Kit. They are the
-- sniffing players' own camps, not the trainer's. No other camp in the world has any of them; the other seven Basic Campfires stand
-- alone. They go; the trainer's campfire 21100460 stays. INFERRED from the above (no live view of an empty camp). Safe to run again.
DELETE FROM `gameobject` WHERE `map` = 2991 AND `guid` IN (21100559, 21100560, 21100561, 21100918, 21100919, 21100920, 21100921, 21100922, 21100923)
AND `id` IN (612275, 612351, 651948, 651953, 651955, 651956);
@@ -0,0 +1,8 @@
-- Clearcasting (16870, from Omen of Clarity 16864): in the Classic client it makes the next damage spell, heal or offensive
-- ability free and is used up by it (SpellAuraOptions ProcCharges 1, ProcTypeMask 0x15550: melee, ranged, helpful and harmful
-- abilities and spells). The retail row from 2024_08_20_00 is for Restoration's Clearcasting and drops the charge on a heal only,
-- so a cat's Shred, Claw and Rip were free and left the charge up for the full 15 s (6_1_8_8_1, Discord Bugs 1.1: "sometimes,
-- when a fight starts, my energy simply doesn't decrease when using abilities"). Same shape as the mage's Clearcasting 12536.
DELETE FROM `spell_proc` WHERE `SpellId`=16870;
INSERT INTO `spell_proc` (`SpellId`,`SchoolMask`,`SpellFamilyName`,`SpellFamilyMask0`,`SpellFamilyMask1`,`SpellFamilyMask2`,`SpellFamilyMask3`,`ProcFlags`,`ProcFlags2`,`SpellTypeMask`,`SpellPhaseMask`,`HitMask`,`AttributesMask`,`DisableEffectsMask`,`ProcsPerMinute`,`Chance`,`Cooldown`,`Charges`) VALUES
(16870,0x00,0,0x00000000,0x00000000,0x00000000,0x00000000,0x15550,0x0,0x7,0x3,0x0,0x8,0x0,0,0,0,1); -- Clearcasting
@@ -0,0 +1,8 @@
-- Night Web's Hollow (Tirisfal Glades): every Webbed Forsaken (271961) frees a Forsaken Adventurer (271968) when the web is
-- destroyed (its SAI: on death, summon 271968; the adventurer's own SAI starts "on summoned": a line, then it wanders off).
-- The sniffs of 4 Oct and 27 Oct saved the adventurers that the sniffing player had freed as fixed spawns, 10 of them on the
-- exact spot of a web and one 3 yd beside one. So a Forsaken stood inside the web (its model shows through) and a destroyed web
-- left two of them (cyborgx5, GitHub #12, 17 Nov: "can see model through web and when i destroy web there is 2 undead").
-- 271968 only ever comes from a web, so all 11 spawns go.
DELETE FROM `creature_addon` WHERE `guid` IN (21200427,21200428,21200429,21200430,21200431,21200432,43000417,43000418,43000419,43000420,43000421);
DELETE FROM `creature` WHERE `id`=271968 AND `guid` IN (21200427,21200428,21200429,21200430,21200431,21200432,43000417,43000418,43000419,43000420,43000421);
@@ -0,0 +1,27 @@
-- Riverglades (zone 16591, WoW Forever): the zone had no graveyard and no spirit healer, so a ghost there was sent to the default
-- graveyard (Westfall for the Alliance, the Crossroads for the Horde) (Tornn, Discord 17 Nov: "a weird graveyard / respawn point
-- in the new zone"). INFERRED: the live graveyard spots are in no data we have. One spirit healer per town, on open flat ground
-- next to its flight master (ground probe step 154p: one surface, no roof, the points around it within 0.4 yd of the same height):
-- 1104114 the Alliance keep (gryphon master Gretchen Mayberry), Alliance only
-- 1104115 Powderfuse Port, the goblin port (Innkeeper Zizplink's town), both factions
-- 1104116 the Horde camp (wind rider master Grakna), Horde only
DELETE FROM `world_safe_locs` WHERE `ID` IN (1104114,1104115,1104116);
INSERT INTO `world_safe_locs` (`ID`,`MapID`,`LocX`,`LocY`,`LocZ`,`Facing`,`Comment`) VALUES
(1104114,0,-9105.10,-4820.80,23.30,270.0,'Riverglades, Alliance keep GY (INFERRED, probe 154p)'),
(1104115,0,-8196.80,-5606.80,4.70,0.0,'Riverglades, Powderfuse Port GY (INFERRED, probe 154p)'),
(1104116,0,-7928.10,-4762.30,21.60,270.0,'Riverglades, Horde camp GY (INFERRED, probe 154p)');
DELETE FROM `graveyard_zone` WHERE `ID` IN (1104114,1104115,1104116);
INSERT INTO `graveyard_zone` (`ID`,`GhostZone`,`Comment`) VALUES
(1104114,16591,'Riverglades - Riverglades, Alliance keep GY'),
(1104115,16591,'Riverglades - Riverglades, Powderfuse Port GY'),
(1104116,16591,'Riverglades - Riverglades, Horde camp GY');
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=27 AND `SourceGroup`=16591 AND `SourceEntry` IN (1104114,1104116);
INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorType`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
(27,16591,1104114,0,0,6,0,469,0,0,0,0,0,'','Graveyard 1104114 (Riverglades) - Alliance only'),
(27,16591,1104116,0,0,6,0,67,0,0,0,0,0,'','Graveyard 1104116 (Riverglades) - Horde only');
-- the spirit healers, on the graveyard spots
DELETE FROM `creature` WHERE `guid` BETWEEN 47220000 AND 47220002 AND `id`=6491;
INSERT INTO `creature` (`guid`,`id`,`map`,`zoneId`,`areaId`,`spawnDifficulties`,`phaseUseFlags`,`PhaseId`,`PhaseGroup`,`terrainSwapMap`,`modelid`,`equipment_id`,`position_x`,`position_y`,`position_z`,`orientation`,`spawntimesecs`,`wander_distance`,`currentwaypoint`,`curHealthPct`,`MovementType`,`VerifiedBuild`) VALUES
(47220000,6491,0,0,0,'0',0,0,0,-1,0,0,-9105.10,-4820.80,23.30,4.712,490,0,0,100,0,0),
(47220001,6491,0,0,0,'0',0,0,0,-1,0,0,-8196.80,-5606.80,4.70,0.000,490,0,0,100,0,0),
(47220002,6491,0,0,0,'0',0,0,0,-1,0,0,-7928.10,-4762.30,21.60,4.712,490,0,0,100,0,0);
@@ -0,0 +1,22 @@
-- Retribution Aura and Thorns: 6% of the caster's spell power on every hit, as on live WoW Forever (dumpins, #bug-report
-- 2026-11-17: "only does the base flat dmg"). The client data has no coefficient on the damage shield effect (0), and there
-- were no classic_spell_value rows for these spells, so the server added none.
-- Live: Retribution Aura rank 5 hits fit floor(20 + 0.06 x the paladin's spell power), Thorns rank 6 is 18 + 0.06 x the druid's
-- spell power (combat logs, build 1.60.1.70938, wowsims/forever docs/evidence EV-0141 and EV-0067, MIT). The lower ranks get the
-- same 0.06 as the sim uses for every rank (not measured per rank). The amount is taken from the aura's caster (Unit.cpp,
-- damage shield), so it is the paladin's or druid's spell power, not the struck ally's.
-- Base points and dice are VMaNGOS spell_template (vanilla), the same totals the client has (5/8/12/16/20 and 3/6/9/12/15/18).
DELETE FROM `classic_spell_value` WHERE (`spell_id`,`effect_index`) IN
((7294,0),(10298,0),(10299,0),(10300,0),(10301,0),(467,0),(782,0),(1075,0),(8914,0),(9756,0),(9910,0));
INSERT INTO `classic_spell_value` (`spell_id`,`effect_index`,`effect`,`apply_aura`,`base_points`,`die_sides`,`points_per_level`,`misc_value`,`points_per_combo`,`bonus_coeff`,`spell_name`) VALUES
(7294,0,35,15,4,1,0,0,0,0.06,'Retribution Aura'),
(10298,0,35,15,7,1,0,0,0,0.06,'Retribution Aura'),
(10299,0,35,15,11,1,0,0,0,0.06,'Retribution Aura'),
(10300,0,35,15,15,1,0,0,0,0.06,'Retribution Aura'),
(10301,0,35,15,19,1,0,0,0,0.06,'Retribution Aura'),
(467,0,6,15,2,1,0,0,0,0.06,'Thorns'),
(782,0,6,15,5,1,0,0,0,0.06,'Thorns'),
(1075,0,6,15,8,1,0,0,0,0.06,'Thorns'),
(8914,0,6,15,11,1,0,0,0,0.06,'Thorns'),
(9756,0,6,15,14,1,0,0,0,0.06,'Thorns'),
(9910,0,6,15,17,1,0,0,0,0.06,'Thorns');
@@ -0,0 +1,17 @@
-- Riverglades (zone 16591) graveyards, one set again. 2026_11_10_70 (release 0.1.37) already gave the zone four graveyards
-- (1101200-1101203) with spirit healers 47220000-47220003; 2026_11_17_13 was written on a copy without them and added three more
-- (1104114-1104116) on the same healer guids, so the zone had seven graveyards, two of them at Powderfuse Port 16 yd apart, and
-- the Farholde Keep and Rog'mar healers had moved away from their graveyards. This keeps the four old ones and takes 17_13's out.
-- Farholde Keep 1101200 stood 6 yd from Brother Lowley at his height (39.8), inside the keep's building (Tornn, Discord 17 Nov:
-- released into a building in the keep). It moves to the open ground next to gryphon master Gretchen Mayberry that ground probe
-- 154p checked (one surface, no roof, flat around it), where 17_13 had put its keep graveyard. INFERRED: live's spot is in no data.
-- Powderfuse Port's healer stands 4 yd east of graveyard 1101202 on probed open ground (the old spot was next to a roof).
DELETE FROM `world_safe_locs` WHERE `ID` IN (1104114,1104115,1104116);
DELETE FROM `graveyard_zone` WHERE `ID` IN (1104114,1104115,1104116);
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=27 AND `SourceGroup`=16591 AND `SourceEntry` IN (1104114,1104115,1104116);
UPDATE `world_safe_locs` SET `LocX`=-9105.10,`LocY`=-4820.80,`LocZ`=23.30,`Facing`=270.0,
`Comment`='Forever: Riverglades, Farholde Keep GY (INFERRED, open ground by the gryphon master, probe 154p)' WHERE `ID`=1101200;
-- the healers next to their graveyards again
UPDATE `creature` SET `position_x`=-9105.10,`position_y`=-4820.80,`position_z`=23.30,`orientation`=4.712 WHERE `guid`=47220000 AND `id`=6491;
UPDATE `creature` SET `position_x`=-7763.90,`position_y`=-4798.70,`position_z`=20.10,`orientation`=3.930 WHERE `guid`=47220001 AND `id`=6491;
UPDATE `creature` SET `position_x`=-8176.80,`position_y`=-5606.80,`position_z`=3.70,`orientation`=3.142 WHERE `guid`=47220002 AND `id`=6491;
@@ -0,0 +1,5 @@
-- Riverglades, Turner's Logging Camp: graveyard 1101203 and its spirit healer 47220003 (2026_11_10_70, ESTIMATED heights) lay 4 yards
-- under the ground: .playerbot graveyardscan 0 on dev (PC confirm run B2, 17 Nov) found the terrain at 25.7 under the graveyard's
-- 21.6, so a ghost released there came up inside the hill. Both go onto the ground (the scan's 0.5 yards above the terrain).
UPDATE `world_safe_locs` SET `LocZ` = 26.24 WHERE `ID` = 1101203 AND ABS(`LocZ` - 21.6) < 0.05;
UPDATE `creature` SET `position_z` = 26.24 WHERE `guid` = 47220003 AND `id` = 6491 AND ABS(`position_z` - 21.6) < 0.05;
@@ -0,0 +1,16 @@
-- Missile Barrage 400589 (mage, glacier, Discord 17 Nov: "the casting time is not reduced by 50%, and a missile is fired every 0.5 seconds"
-- does not happen). The buff was used up when Arcane Missiles was cast (2026_11_12_17: phase 1, cast), and the server works out a channel's
-- length only after that, so its -50% duration modifier was already gone. Now it is used up when the channel hits (phase 2), after the
-- length and the missile period are set. The faster missiles come from classic_spell_mage_arcane_missiles_barrage, which reads the
-- buff's dummy effect 1 (-500 ms) into the channel's period, bound here to every Arcane Missiles rank of the client (class mask 0x800).
UPDATE `spell_proc` SET `SpellPhaseMask` = 2 WHERE `SpellId` = 400589 AND `SpellPhaseMask` = 1;
DELETE FROM `spell_script_names` WHERE `ScriptName` = 'classic_spell_mage_arcane_missiles_barrage';
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(5143, 'classic_spell_mage_arcane_missiles_barrage'),
(5144, 'classic_spell_mage_arcane_missiles_barrage'),
(5145, 'classic_spell_mage_arcane_missiles_barrage'),
(8416, 'classic_spell_mage_arcane_missiles_barrage'),
(8417, 'classic_spell_mage_arcane_missiles_barrage'),
(10211, 'classic_spell_mage_arcane_missiles_barrage'),
(10212, 'classic_spell_mage_arcane_missiles_barrage'),
(25345, 'classic_spell_mage_arcane_missiles_barrage');
@@ -0,0 +1,11 @@
-- Classic 1.60: Shield Specialization procs on blocked attacks only, as both tooltips say. Warrior 12298: "a $m2% chance to generate
-- ${$1310318m1/10} Rage when you Block"; paladin 20150: "gives your blocks a $m2% chance to restore $1310925m1% of your maximum Mana".
-- The client proc data has no hit mask, so without a row the core used the default taken hit mask (normal and critical hits): the
-- paladin got mana from hits that were not blocked, also with no shield on (Discord, dumpins 2026-11-17), and the warrior rage the same
-- way. Same fix as Holy Shield in 2026_11_06_10. The proc chance stays with classic_spell_proc_chance_from_effect (2026_11_12_02).
-- ProcFlags, Chance, Cooldown (paladin 3 s) and Charges 0 keep the client's. Safe to run again.
DELETE FROM `spell_proc` WHERE `SpellId` IN (12298, 20150);
INSERT INTO `spell_proc` (`SpellId`, `SchoolMask`, `SpellFamilyName`, `SpellFamilyMask0`, `SpellFamilyMask1`, `SpellFamilyMask2`, `SpellFamilyMask3`,
`ProcFlags`, `ProcFlags2`, `SpellTypeMask`, `SpellPhaseMask`, `HitMask`, `AttributesMask`, `DisableEffectsMask`, `ProcsPerMinute`, `Chance`, `Cooldown`, `Charges`) VALUES
(12298, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x40, 0, 0, 0, 0, 0, 0),
(20150, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x40, 0, 0, 0, 0, 0, 0);
@@ -0,0 +1,26 @@
-- Classic 1.60 (WoW Forever): Scourge Invasion game events (VMaNGOS ids, events 17, 81, 90-99, 129, 130).
-- None of them may start on the calendar: the Scourge Invasion script (classic_world_event_scourge_invasion.cpp) starts and
-- stops them, and only when Classic.ScourgeInvasion = 1 or a GM runs ".scourge on". The script starts them with
-- StartEvent(id, true), which sets the start to "now" and keeps them on until it stops them (length 10 years).
-- Rows 17, 81, 99, 129 and 130 are on dev already (they started about 18 Dec to 8 Jan every year), rows 90-98 are new.
DELETE FROM `game_event` WHERE `eventEntry` IN (17,81,90,91,92,93,94,95,96,97,98,99,129,130);
INSERT INTO `game_event` (`eventEntry`,`start_time`,`end_time`,`occurence`,`length`,`holiday`,`holidayStage`,`WorldStateId`,`description`,`world_event`,`announce`) VALUES
(17,'2037-12-30 00:00:00','2037-12-30 00:00:00',10512000,5256000,0,0,NULL,'Scourge Invasion',0,0),
(81,'2037-12-30 00:00:00','2037-12-30 00:00:00',10512000,5256000,0,0,NULL,'Scourge Invasion - Boss in instance activation',0,0),
(90,'2037-12-30 00:00:00','2037-12-30 00:00:00',10512000,5256000,0,0,NULL,'Scourge Invasion - Attacking Winterspring',0,0),
(91,'2037-12-30 00:00:00','2037-12-30 00:00:00',10512000,5256000,0,0,NULL,'Scourge Invasion - Attacking Tanaris',0,0),
(92,'2037-12-30 00:00:00','2037-12-30 00:00:00',10512000,5256000,0,0,NULL,'Scourge Invasion - Attacking Azshara',0,0),
(93,'2037-12-30 00:00:00','2037-12-30 00:00:00',10512000,5256000,0,0,NULL,'Scourge Invasion - Attacking Blasted Lands',0,0),
(94,'2037-12-30 00:00:00','2037-12-30 00:00:00',10512000,5256000,0,0,NULL,'Scourge Invasion - Attacking Eastern Plaguelands',0,0),
(95,'2037-12-30 00:00:00','2037-12-30 00:00:00',10512000,5256000,0,0,NULL,'Scourge Invasion - Attacking Burning Steppes',0,0),
(96,'2037-12-30 00:00:00','2037-12-30 00:00:00',10512000,5256000,0,0,NULL,'Scourge Invasion - 50 Invasions',0,0),
(97,'2037-12-30 00:00:00','2037-12-30 00:00:00',10512000,5256000,0,0,NULL,'Scourge Invasion - 100 Invasions',0,0),
(98,'2037-12-30 00:00:00','2037-12-30 00:00:00',10512000,5256000,0,0,NULL,'Scourge Invasion - 150 Invasions',0,0),
(99,'2037-12-30 00:00:00','2037-12-30 00:00:00',10512000,5256000,0,0,NULL,'Scourge Invasion - Invasions Done',0,0),
(129,'2037-12-30 00:00:00','2037-12-30 00:00:00',10512000,5256000,0,0,NULL,'Scourge Invasion - Phase 2 - Invasion Stormwind',0,0),
(130,'2037-12-30 00:00:00','2037-12-30 00:00:00',10512000,5256000,0,0,NULL,'Scourge Invasion - Phase 2 - Invasion Undercity',0,0);
-- a saved world event state would override the dates
DELETE FROM `game_event_condition` WHERE `eventEntry` IN (17,81,90,91,92,93,94,95,96,97,98,99,129,130);
DELETE FROM `game_event_prerequisite` WHERE `eventEntry` IN (17,81,90,91,92,93,94,95,96,97,98,99,129,130);
File diff suppressed because one or more lines are too long
@@ -0,0 +1,71 @@
-- Classic 1.60 (WoW Forever): Scourge Invasion scripts, saved world states and gossip text.
-- Script code: src/server/scripts/Custom/Classic/world/classic_world_event_scourge_invasion.cpp (port of VMaNGOS
-- scourge_invasion.cpp and the ScourgeInvasionEvent part of HardcodedEvents.cpp, GPL-2).
-- realm wide world states (no map ids), saved in characters.world_state_value
-- 2219 battles won and 2259-2264 / 2279-2284 (zone invaded / necropolises left) are the client's own world states
-- 17000000+ are internal to the script (next attack times, last attacked zone, GM switch), the client ignores them
DELETE FROM `world_state` WHERE `ID` IN (2219,2259,2260,2261,2262,2263,2264,2279,2280,2281,2282,2283,2284,
17000001,17000002,17000004,17000016,17000046,17000139,17000440,17000618,17101497,17101519);
INSERT INTO `world_state` (`ID`,`DefaultValue`,`MapIDs`,`AreaIDs`,`ScriptName`,`Comment`) VALUES
(2219,0,NULL,NULL,'','Scourge Invasion: battles won'),
(2259,0,NULL,NULL,'','Scourge Invasion: Winterspring invaded'),
(2260,0,NULL,NULL,'','Scourge Invasion: Azshara invaded'),
(2261,0,NULL,NULL,'','Scourge Invasion: Blasted Lands invaded'),
(2262,0,NULL,NULL,'','Scourge Invasion: Burning Steppes invaded'),
(2263,0,NULL,NULL,'','Scourge Invasion: Tanaris invaded'),
(2264,0,NULL,NULL,'','Scourge Invasion: Eastern Plaguelands invaded'),
(2279,0,NULL,NULL,'','Scourge Invasion: Azshara necropolises left'),
(2280,0,NULL,NULL,'','Scourge Invasion: Blasted Lands necropolises left'),
(2281,0,NULL,NULL,'','Scourge Invasion: Burning Steppes necropolises left'),
(2282,0,NULL,NULL,'','Scourge Invasion: Eastern Plaguelands necropolises left'),
(2283,0,NULL,NULL,'','Scourge Invasion: Tanaris necropolises left'),
(2284,0,NULL,NULL,'','Scourge Invasion: Winterspring necropolises left'),
(17000001,0,NULL,NULL,'','Scourge Invasion (script): last zone won'),
(17000002,0,NULL,NULL,'','Scourge Invasion (script): .scourge on/off switch, 0 = config, 1 = on, 2 = off'),
(17000004,0,NULL,NULL,'','Scourge Invasion (script): next attack time, Blasted Lands'),
(17000016,0,NULL,NULL,'','Scourge Invasion (script): next attack time, Azshara'),
(17000046,0,NULL,NULL,'','Scourge Invasion (script): next attack time, Burning Steppes'),
(17000139,0,NULL,NULL,'','Scourge Invasion (script): next attack time, Eastern Plaguelands'),
(17000440,0,NULL,NULL,'','Scourge Invasion (script): next attack time, Tanaris'),
(17000618,0,NULL,NULL,'','Scourge Invasion (script): next attack time, Winterspring'),
(17101497,0,NULL,NULL,'','Scourge Invasion (script): next attack time, Undercity'),
(17101519,0,NULL,NULL,'','Scourge Invasion (script): next attack time, Stormwind');
-- creature scripts
UPDATE `creature_template` SET `ScriptName` = 'classic_si_mouth' WHERE `entry` = 16995;
UPDATE `creature_template` SET `ScriptName` = 'classic_si_necropolis' WHERE `entry` IN (16401,16398,16386);
UPDATE `creature_template` SET `ScriptName` = 'classic_si_necropolis_health' WHERE `entry` = 16421;
UPDATE `creature_template` SET `ScriptName` = 'classic_si_necrotic_shard' WHERE `entry` IN (16136,16172);
UPDATE `creature_template` SET `ScriptName` = 'classic_si_cultist_engineer' WHERE `entry` = 16230;
UPDATE `creature_template` SET `ScriptName` = 'classic_si_minion' WHERE `entry` IN (16141,16298,16299,14697,16379,16380,16143,16383);
UPDATE `creature_template` SET `ScriptName` = 'classic_si_argent_emissary' WHERE `entry` = 16285;
UPDATE `creature_template` SET `ScriptName` = 'classic_si_pallid_horror' WHERE `entry` IN (16394,16382);
-- the cultist (8 runes) and the emissary are talked to
UPDATE `creature_template` SET `npcflag` = `npcflag` | 1 WHERE `entry` IN (16230,16285);
-- object scripts
UPDATE `gameobject_template` SET `ScriptName` = 'classic_si_go_circle' WHERE `entry` = 181136;
UPDATE `gameobject_template` SET `ScriptName` = 'classic_si_go_necropolis' WHERE `entry` IN (181154,181373,181374,181215,181223,181172);
-- gossip text (VMaNGOS npc_text id = BroadcastText id). INSERT IGNORE keeps a row dev already has.
-- 8481 is not in our VMaNGOS extract: 12200 is the id between its neighbours (8480 = 12199, 8482 = 12202), check in game.
INSERT IGNORE INTO `npc_text` (`ID`,`Probability0`,`BroadcastTextID0`,`VerifiedBuild`) VALUES
(8434,1,12109,0),
(8436,1,12111,0),
(8471,1,12180,0),
(8486,1,12209,0),
(8573,1,12435,0),
(8480,1,12199,0),
(8481,1,12200,0),
(8482,1,12202,0),
(8483,1,12204,0),
(8484,1,12206,0),
(8593,1,12474,0),
(8594,1,12475,0),
(8551,1,12399,0),
(8554,1,12402,0),
(8555,1,12403,0),
(8525,1,12299,0),
(8526,1,12300,0),
(8527,1,12301,0);
@@ -0,0 +1,9 @@
-- Rite of Vision (772, Mulgore) could not be handed in after doing what the quest says (Russian forum report, 2026-11-14, 0.1.36).
-- The live quest data of 2026_11_12_14 added objective 480587: carry 1 Water of the Seers (4823). The quest itself hands you that
-- water (StartItem 4823) and tells you to drink it at the fire. Drinking casts 4981 (summon The Plains Vision 2983), and the client
-- data gives the item one charge that deletes it (ItemEffect 98275, Charges -1). So after drinking, the objective went back to 0/1
-- and Seer Wildmane would not take the quest; only abandoning and handing it in without drinking worked.
-- The objective is removed again, as it was up to 0.1.35: the quest is done once taken, and the vision leads you to Wildmane.
-- Players who already drank: abandon the quest and take it again from Zarlman Two-Moons.
-- Safe to run again.
DELETE FROM `quest_objectives` WHERE `ID` = 480587 AND `QuestID` = 772;
@@ -0,0 +1,14 @@
-- Taming the Beast (hunter pet quests): Russian creature names did not match the Russian quest text (Russian forum report,
-- 2026-11-17). Our ruRU creature names came from the modern client data, where two Durotar crabs are named one step up:
-- the small Pygmy Surf Crawler (3106) was "Приливный краб", the name the quest text (6083) uses for the Surf Crawler the rod
-- needs, so players tamed the small crabs by the fort and got "invalid target". The Classic names (same as the quest texts):
-- 3106 Pygmy Surf Crawler "Карликовый приливный краб" (was "Приливный краб")
-- 3107 Surf Crawler "Приливный краб" (was "Взрослый приливный краб"; quest 6083 target)
-- 3126 Armored Scorpid "Бронескорп" (was "Панцирный скорпид"; quest 6082 text says "бронескорпа")
-- 1998 Webwood Lurker "Чащобный тенетник" (was "Чащобный скрытень"; quest 6063 text says "чащобного тенетника")
-- Source: the Classic ruRU names of 2026_10_24_40 (VMaNGOS locales), which did not replace existing rows.
-- Names only. Safe to run again.
UPDATE `creature_template_locale` SET `Name` = 'Карликовый приливный краб' WHERE `entry` = 3106 AND `locale` = 'ruRU';
UPDATE `creature_template_locale` SET `Name` = 'Приливный краб' WHERE `entry` = 3107 AND `locale` = 'ruRU';
UPDATE `creature_template_locale` SET `Name` = 'Бронескорп' WHERE `entry` = 3126 AND `locale` = 'ruRU';
UPDATE `creature_template_locale` SET `Name` = 'Чащобный тенетник' WHERE `entry` = 1998 AND `locale` = 'ruRU';
@@ -0,0 +1,12 @@
-- WoW Forever: paladin class trainer levels as live's trainers show them (Shari Stilwell, trainer 29, seen 2026-11-15).
-- Seal of Fury rank 3 (20163): level 26 (ours 25), between rank 2 at 18 and rank 4 at 34.
-- Holy Shield rank 2 (20927): level 40 (ours 50); rank 3 (20928): level 50 (ours 60). Live adds rank 4 (1239570) at 60;
-- that spell is not in client 70938's spell data (live sends only its name and text as a hotfix), so it is not added here.
-- Data from Efficient Games (https://efficient.games), licensed under CC BY 4.0
-- (https://creativecommons.org/licenses/by/4.0/). Source: github.com/JIVESCORP/eg-link-output-wowf 6ff5612, build 1.60.1.70938.
-- Changed: only these three levels were picked and converted to our trainer_spell rows.
-- Safe to run again.
UPDATE `trainer_spell` SET `ReqLevel` = 26 WHERE `TrainerId` = 29 AND `SpellId` = 20163; -- Seal of Fury rank 3, was 25
UPDATE `trainer_spell` SET `ReqLevel` = 40 WHERE `TrainerId` = 29 AND `SpellId` = 20927; -- Holy Shield rank 2, was 50
UPDATE `trainer_spell` SET `ReqLevel` = 50 WHERE `TrainerId` = 29 AND `SpellId` = 20928; -- Holy Shield rank 3, was 60
@@ -0,0 +1,105 @@
-- WoW Forever live data from EG Link (Efficient Games), JIVESCORP/eg-link-output-wowf commit 6ff5612b, folder 1.60.1.70938
-- (collected 13-16 Nov). Data from Efficient Games (https://efficient.games), licensed under CC BY 4.0
-- (https://creativecommons.org/licenses/by/4.0/). Changed: compared with our world and written as TrinityCore rows; only what the
-- 15 Nov file (2026_11_15_96) did not already take. Only quests we already have. Safe to run more than once.
-- 1. Reputation an item-turn-in quest asks for on live (hidden objective, like the Zandalar ones of 14 Nov): Argent Dawn Honored for
-- Mantles of the Dawn (5507) and Cenarion Circle for six Paragons of Power quests (8053, 8054, 8058, 8074, 8076, 8078).
DELETE FROM `quest_objectives` WHERE `ID` IN (381773,382866,383169,383084,382980,383099,383046);
INSERT INTO `quest_objectives` (`ID`,`QuestID`,`Type`,`Order`,`StorageIndex`,`ObjectID`,`Amount`,`ConditionalAmount`,`Flags`,`Flags2`,`ProgressBarWeight`,`ParentObjectiveID`,`Visible`,`Description`,`VerifiedBuild`) VALUES
(381773,5507,6,1,1,529,21000,0,0,0,0,0,1,NULL,70938),
(382866,8053,6,1,1,270,3000,0,0,0,0,0,1,NULL,70938),
(383169,8054,6,1,1,270,9000,0,0,0,0,0,1,NULL,70938),
(383084,8058,6,1,1,270,3000,0,0,0,0,0,1,NULL,70938),
(382980,8074,6,1,1,270,9000,0,0,0,0,0,1,NULL,70938),
(383099,8076,6,1,1,270,9000,0,0,0,0,0,1,NULL,70938),
(383046,8078,6,1,1,270,9000,0,0,0,0,0,1,NULL,70938);
-- 2. Spell cast at turn-in (RewardSpell), as live's record gives it.
UPDATE `quest_template` SET `RewardSpell`=364165 WHERE `ID`=5306 AND `RewardSpell`=17043; -- Snakestone of the Shadow Huntress (like 5307 on 15 Nov)
UPDATE `quest_template` SET `RewardSpell`=1320162 WHERE `ID`=97583 AND `RewardSpell`=0; -- WRIGGLE.
UPDATE `quest_template` SET `RewardSpell`=24962 WHERE `ID`=98896 AND `RewardSpell`=0; -- Darkspear Islands Clash
-- 3. Reward display spells shown in the reward window (quest_reward_display_spell), 3 quests.
DELETE FROM `quest_reward_display_spell` WHERE `QuestID` IN (5306,5638,7631);
INSERT INTO `quest_reward_display_spell` (`QuestID`,`Idx`,`SpellID`,`PlayerConditionID`,`Type`,`VerifiedBuild`) VALUES
(5306,0,17041,0,3,70938),
(5638,0,13908,0,3,70938),
(7631,0,23161,0,3,70938);
-- 4. Reward items given twice: on live these quests give a choice of items and no fixed item. Ours had the choice (or, for 618,
-- not yet) and still the old fixed item, so a player got that item and a choice on top. 21 quests: the fixed item is cleared
-- where it is one of the choices. 618 Facing Negolash also gets its live choice (like 8554, its twin).
UPDATE `quest_template` SET `RewardChoiceItemID1`=4130, `RewardChoiceItemQuantity1`=1, `RewardChoiceItemID2`=270109, `RewardChoiceItemQuantity2`=1, `RewardChoiceItemID3`=270110, `RewardChoiceItemQuantity3`=1 WHERE `ID`=618 AND `RewardChoiceItemID1`=0;
UPDATE `quest_template` SET `RewardItem1`=0, `RewardAmount1`=0 WHERE `ID`=608 AND `RewardItem1`=4138 AND 4138 IN (`RewardChoiceItemID1`,`RewardChoiceItemID2`,`RewardChoiceItemID3`,`RewardChoiceItemID4`,`RewardChoiceItemID5`,`RewardChoiceItemID6`); -- The Bloodsail Buccaneers
UPDATE `quest_template` SET `RewardItem1`=0, `RewardAmount1`=0 WHERE `ID`=611 AND `RewardItem1`=4120 AND 4120 IN (`RewardChoiceItemID1`,`RewardChoiceItemID2`,`RewardChoiceItemID3`,`RewardChoiceItemID4`,`RewardChoiceItemID5`,`RewardChoiceItemID6`); -- The Curse of the Tides
UPDATE `quest_template` SET `RewardItem1`=0, `RewardAmount1`=0 WHERE `ID`=613 AND `RewardItem1`=4129 AND 4129 IN (`RewardChoiceItemID1`,`RewardChoiceItemID2`,`RewardChoiceItemID3`,`RewardChoiceItemID4`,`RewardChoiceItemID5`,`RewardChoiceItemID6`); -- Cracking Maury's Foot
UPDATE `quest_template` SET `RewardItem1`=0, `RewardAmount1`=0 WHERE `ID`=614 AND `RewardItem1`=11469 AND 11469 IN (`RewardChoiceItemID1`,`RewardChoiceItemID2`,`RewardChoiceItemID3`,`RewardChoiceItemID4`,`RewardChoiceItemID5`,`RewardChoiceItemID6`); -- The Captain's Chest
UPDATE `quest_template` SET `RewardItem1`=0, `RewardAmount1`=0 WHERE `ID`=618 AND `RewardItem1`=4130 AND 4130 IN (`RewardChoiceItemID1`,`RewardChoiceItemID2`,`RewardChoiceItemID3`,`RewardChoiceItemID4`,`RewardChoiceItemID5`,`RewardChoiceItemID6`); -- Facing Negolash
UPDATE `quest_template` SET `RewardItem1`=0, `RewardAmount1`=0 WHERE `ID`=630 AND `RewardItem1`=4118 AND 4118 IN (`RewardChoiceItemID1`,`RewardChoiceItemID2`,`RewardChoiceItemID3`,`RewardChoiceItemID4`,`RewardChoiceItemID5`,`RewardChoiceItemID6`); -- Message in a Bottle
UPDATE `quest_template` SET `RewardItem1`=0, `RewardAmount1`=0 WHERE `ID`=762 AND `RewardItem1`=4987 AND 4987 IN (`RewardChoiceItemID1`,`RewardChoiceItemID2`,`RewardChoiceItemID3`,`RewardChoiceItemID4`,`RewardChoiceItemID5`,`RewardChoiceItemID6`); -- An Ambassador of Evil
UPDATE `quest_template` SET `RewardItem1`=0, `RewardAmount1`=0 WHERE `ID`=962 AND `RewardItem1`=10919 AND 10919 IN (`RewardChoiceItemID1`,`RewardChoiceItemID2`,`RewardChoiceItemID3`,`RewardChoiceItemID4`,`RewardChoiceItemID5`,`RewardChoiceItemID6`); -- Serpentbloom
UPDATE `quest_template` SET `RewardItem1`=0, `RewardAmount1`=0 WHERE `ID`=1012 AND `RewardItem1`=5813 AND 5813 IN (`RewardChoiceItemID1`,`RewardChoiceItemID2`,`RewardChoiceItemID3`,`RewardChoiceItemID4`,`RewardChoiceItemID5`,`RewardChoiceItemID6`); -- Insane Druids
UPDATE `quest_template` SET `RewardItem1`=0, `RewardAmount1`=0 WHERE `ID`=1139 AND `RewardItem1`=6723 AND 6723 IN (`RewardChoiceItemID1`,`RewardChoiceItemID2`,`RewardChoiceItemID3`,`RewardChoiceItemID4`,`RewardChoiceItemID5`,`RewardChoiceItemID6`); -- The Lost Tablets of Will
UPDATE `quest_template` SET `RewardItem1`=0, `RewardAmount1`=0 WHERE `ID`=1166 AND `RewardItem1`=10702 AND 10702 IN (`RewardChoiceItemID1`,`RewardChoiceItemID2`,`RewardChoiceItemID3`,`RewardChoiceItemID4`,`RewardChoiceItemID5`,`RewardChoiceItemID6`); -- Overlord Mok'Morokk's Concern
UPDATE `quest_template` SET `RewardItem1`=0, `RewardAmount1`=0 WHERE `ID`=5151 AND `RewardItem1`=15467 AND 15467 IN (`RewardChoiceItemID1`,`RewardChoiceItemID2`,`RewardChoiceItemID3`,`RewardChoiceItemID4`,`RewardChoiceItemID5`,`RewardChoiceItemID6`); -- Hypercapacitor Gizmo
UPDATE `quest_template` SET `RewardItem1`=0, `RewardAmount1`=0 WHERE `ID`=7201 AND `RewardItem1`=12038 AND 12038 IN (`RewardChoiceItemID1`,`RewardChoiceItemID2`,`RewardChoiceItemID3`,`RewardChoiceItemID4`,`RewardChoiceItemID5`,`RewardChoiceItemID6`); -- The Last Element
UPDATE `quest_template` SET `RewardItem1`=0, `RewardAmount1`=0 WHERE `ID`=7488 AND `RewardItem1`=18491 AND 18491 IN (`RewardChoiceItemID1`,`RewardChoiceItemID2`,`RewardChoiceItemID3`,`RewardChoiceItemID4`,`RewardChoiceItemID5`,`RewardChoiceItemID6`); -- Lethtendris's Web
UPDATE `quest_template` SET `RewardItem1`=0, `RewardAmount1`=0 WHERE `ID`=7489 AND `RewardItem1`=18491 AND 18491 IN (`RewardChoiceItemID1`,`RewardChoiceItemID2`,`RewardChoiceItemID3`,`RewardChoiceItemID4`,`RewardChoiceItemID5`,`RewardChoiceItemID6`); -- Lethtendris's Web
UPDATE `quest_template` SET `RewardItem1`=0, `RewardAmount1`=0 WHERE `ID`=7850 AND `RewardItem1`=19118 AND 19118 IN (`RewardChoiceItemID1`,`RewardChoiceItemID2`,`RewardChoiceItemID3`,`RewardChoiceItemID4`,`RewardChoiceItemID5`,`RewardChoiceItemID6`); -- Dark Vessels
UPDATE `quest_template` SET `RewardItem1`=0, `RewardAmount1`=0 WHERE `ID`=8258 AND `RewardItem1`=20134 AND 20134 IN (`RewardChoiceItemID1`,`RewardChoiceItemID2`,`RewardChoiceItemID3`,`RewardChoiceItemID4`,`RewardChoiceItemID5`,`RewardChoiceItemID6`); -- The Darkreaver Menace
UPDATE `quest_template` SET `RewardItem1`=0, `RewardAmount1`=0 WHERE `ID`=8554 AND `RewardItem1`=4130 AND 4130 IN (`RewardChoiceItemID1`,`RewardChoiceItemID2`,`RewardChoiceItemID3`,`RewardChoiceItemID4`,`RewardChoiceItemID5`,`RewardChoiceItemID6`); -- Facing Negolash
UPDATE `quest_template` SET `RewardItem1`=0, `RewardAmount1`=0 WHERE `ID`=97282 AND `RewardItem1`=281274 AND 281274 IN (`RewardChoiceItemID1`,`RewardChoiceItemID2`,`RewardChoiceItemID3`,`RewardChoiceItemID4`,`RewardChoiceItemID5`,`RewardChoiceItemID6`); -- Stormy Potential
UPDATE `quest_template` SET `RewardItem1`=0, `RewardAmount1`=0 WHERE `ID`=98025 AND `RewardItem1`=281289 AND 281289 IN (`RewardChoiceItemID1`,`RewardChoiceItemID2`,`RewardChoiceItemID3`,`RewardChoiceItemID4`,`RewardChoiceItemID5`,`RewardChoiceItemID6`); -- WANTED: Jai'vhanel
UPDATE `quest_template` SET `RewardItem1`=0, `RewardAmount1`=0 WHERE `ID`=98093 AND `RewardItem1`=279391 AND 279391 IN (`RewardChoiceItemID1`,`RewardChoiceItemID2`,`RewardChoiceItemID3`,`RewardChoiceItemID4`,`RewardChoiceItemID5`,`RewardChoiceItemID6`); -- Field to Clear
-- 5. Quest XP as live's quest record gives it (difficulty and multiplier; the same check as 15 Nov), 18 quests. The battleground
-- and repeatable turn-in quests that give no XP on live (2881, 8392, 8406, 8433, 8441) get difficulty 0.
UPDATE `quest_template` SET `RewardXPDifficulty`=0, `RewardXPMultiplier`=1.0 WHERE `ID` IN (2881,8392,8406,8433,8441);
UPDATE `quest_template` SET `RewardXPDifficulty`=1, `RewardXPMultiplier`=2.375 WHERE `ID` IN (7462);
UPDATE `quest_template` SET `RewardXPDifficulty`=2, `RewardXPMultiplier`=2.0 WHERE `ID` IN (1442);
UPDATE `quest_template` SET `RewardXPDifficulty`=4, `RewardXPMultiplier`=1.95 WHERE `ID` IN (5522);
UPDATE `quest_template` SET `RewardXPDifficulty`=5, `RewardXPMultiplier`=1.0 WHERE `ID` IN (8405);
UPDATE `quest_template` SET `RewardXPDifficulty`=5, `RewardXPMultiplier`=2.0 WHERE `ID` IN (5103,7631,7650,8906,8909,8911,8913,8950);
UPDATE `quest_template` SET `RewardXPDifficulty`=6, `RewardXPMultiplier`=2.0 WHERE `ID` IN (5306);
-- 6. Reputation as live's quest record gives it, 24 quests (compared in points, written as overrides like our other rows): the
-- battleground turn-ins (Arathi Basin, Warsong Gulch, Alterac Valley factions) give 100 on live where ours gave 50, Concerted
-- Efforts (8385) also gives Theramore Expeditionary Force (2799), and More Al'Aketh Ears (93459) gives 200 Nightclaw Druids
-- reputation where ours gave 1000.
-- Left out: quests where live's record gives no reputation and ours does (as on 15 Nov).
UPDATE `quest_template` SET `RewardFactionID1`=509, `RewardFactionValue1`=0, `RewardFactionOverride1`=10000, `RewardFactionID2`=0, `RewardFactionValue2`=0, `RewardFactionOverride2`=0, `RewardFactionID3`=0, `RewardFactionValue3`=0, `RewardFactionOverride3`=0, `RewardFactionID4`=0, `RewardFactionValue4`=0, `RewardFactionOverride4`=0, `RewardFactionID5`=0, `RewardFactionValue5`=0, `RewardFactionOverride5`=0 WHERE `ID`=8384; -- Claiming Arathi Basin
UPDATE `quest_template` SET `RewardFactionID1`=509, `RewardFactionValue1`=0, `RewardFactionOverride1`=10000, `RewardFactionID2`=730, `RewardFactionValue2`=0, `RewardFactionOverride2`=15000, `RewardFactionID3`=890, `RewardFactionValue3`=0, `RewardFactionOverride3`=10000, `RewardFactionID4`=2799, `RewardFactionValue4`=0, `RewardFactionOverride4`=10000, `RewardFactionID5`=0, `RewardFactionValue5`=0, `RewardFactionOverride5`=0 WHERE `ID`=8385; -- Concerted Efforts
UPDATE `quest_template` SET `RewardFactionID1`=890, `RewardFactionValue1`=0, `RewardFactionOverride1`=10000, `RewardFactionID2`=0, `RewardFactionValue2`=0, `RewardFactionOverride2`=0, `RewardFactionID3`=0, `RewardFactionValue3`=0, `RewardFactionOverride3`=0, `RewardFactionID4`=0, `RewardFactionValue4`=0, `RewardFactionOverride4`=0, `RewardFactionID5`=0, `RewardFactionValue5`=0, `RewardFactionOverride5`=0 WHERE `ID`=8386; -- Fight for Warsong Gulch
UPDATE `quest_template` SET `RewardFactionID1`=889, `RewardFactionValue1`=0, `RewardFactionOverride1`=10000, `RewardFactionID2`=0, `RewardFactionValue2`=0, `RewardFactionOverride2`=0, `RewardFactionID3`=0, `RewardFactionValue3`=0, `RewardFactionOverride3`=0, `RewardFactionID4`=0, `RewardFactionValue4`=0, `RewardFactionOverride4`=0, `RewardFactionID5`=0, `RewardFactionValue5`=0, `RewardFactionOverride5`=0 WHERE `ID`=8389; -- Battle of Warsong Gulch
UPDATE `quest_template` SET `RewardFactionID1`=510, `RewardFactionValue1`=0, `RewardFactionOverride1`=10000, `RewardFactionID2`=0, `RewardFactionValue2`=0, `RewardFactionOverride2`=0, `RewardFactionID3`=0, `RewardFactionValue3`=0, `RewardFactionOverride3`=0, `RewardFactionID4`=0, `RewardFactionValue4`=0, `RewardFactionOverride4`=0, `RewardFactionID5`=0, `RewardFactionValue5`=0, `RewardFactionOverride5`=0 WHERE `ID`=8390; -- Conquering Arathi Basin
UPDATE `quest_template` SET `RewardFactionID1`=509, `RewardFactionValue1`=0, `RewardFactionOverride1`=10000, `RewardFactionID2`=0, `RewardFactionValue2`=0, `RewardFactionOverride2`=0, `RewardFactionID3`=0, `RewardFactionValue3`=0, `RewardFactionOverride3`=0, `RewardFactionID4`=0, `RewardFactionValue4`=0, `RewardFactionOverride4`=0, `RewardFactionID5`=0, `RewardFactionValue5`=0, `RewardFactionOverride5`=0 WHERE `ID`=8391; -- Claiming Arathi Basin
UPDATE `quest_template` SET `RewardFactionID1`=509, `RewardFactionValue1`=0, `RewardFactionOverride1`=10000, `RewardFactionID2`=0, `RewardFactionValue2`=0, `RewardFactionOverride2`=0, `RewardFactionID3`=0, `RewardFactionValue3`=0, `RewardFactionOverride3`=0, `RewardFactionID4`=0, `RewardFactionValue4`=0, `RewardFactionOverride4`=0, `RewardFactionID5`=0, `RewardFactionValue5`=0, `RewardFactionOverride5`=0 WHERE `ID`=8392; -- Claiming Arathi Basin
UPDATE `quest_template` SET `RewardFactionID1`=509, `RewardFactionValue1`=0, `RewardFactionOverride1`=10000, `RewardFactionID2`=0, `RewardFactionValue2`=0, `RewardFactionOverride2`=0, `RewardFactionID3`=0, `RewardFactionValue3`=0, `RewardFactionOverride3`=0, `RewardFactionID4`=0, `RewardFactionValue4`=0, `RewardFactionOverride4`=0, `RewardFactionID5`=0, `RewardFactionValue5`=0, `RewardFactionOverride5`=0 WHERE `ID`=8397; -- Claiming Arathi Basin
UPDATE `quest_template` SET `RewardFactionID1`=509, `RewardFactionValue1`=0, `RewardFactionOverride1`=10000, `RewardFactionID2`=0, `RewardFactionValue2`=0, `RewardFactionOverride2`=0, `RewardFactionID3`=0, `RewardFactionValue3`=0, `RewardFactionOverride3`=0, `RewardFactionID4`=0, `RewardFactionValue4`=0, `RewardFactionOverride4`=0, `RewardFactionID5`=0, `RewardFactionValue5`=0, `RewardFactionOverride5`=0 WHERE `ID`=8398; -- Claiming Arathi Basin
UPDATE `quest_template` SET `RewardFactionID1`=890, `RewardFactionValue1`=0, `RewardFactionOverride1`=10000, `RewardFactionID2`=0, `RewardFactionValue2`=0, `RewardFactionOverride2`=0, `RewardFactionID3`=0, `RewardFactionValue3`=0, `RewardFactionOverride3`=0, `RewardFactionID4`=0, `RewardFactionValue4`=0, `RewardFactionOverride4`=0, `RewardFactionID5`=0, `RewardFactionValue5`=0, `RewardFactionOverride5`=0 WHERE `ID`=8404; -- Fight for Warsong Gulch
UPDATE `quest_template` SET `RewardFactionID1`=890, `RewardFactionValue1`=0, `RewardFactionOverride1`=10000, `RewardFactionID2`=0, `RewardFactionValue2`=0, `RewardFactionOverride2`=0, `RewardFactionID3`=0, `RewardFactionValue3`=0, `RewardFactionOverride3`=0, `RewardFactionID4`=0, `RewardFactionValue4`=0, `RewardFactionOverride4`=0, `RewardFactionID5`=0, `RewardFactionValue5`=0, `RewardFactionOverride5`=0 WHERE `ID`=8405; -- Fight for Warsong Gulch
UPDATE `quest_template` SET `RewardFactionID1`=890, `RewardFactionValue1`=0, `RewardFactionOverride1`=10000, `RewardFactionID2`=0, `RewardFactionValue2`=0, `RewardFactionOverride2`=0, `RewardFactionID3`=0, `RewardFactionValue3`=0, `RewardFactionOverride3`=0, `RewardFactionID4`=0, `RewardFactionValue4`=0, `RewardFactionOverride4`=0, `RewardFactionID5`=0, `RewardFactionValue5`=0, `RewardFactionOverride5`=0 WHERE `ID`=8406; -- Fight for Warsong Gulch
UPDATE `quest_template` SET `RewardFactionID1`=890, `RewardFactionValue1`=0, `RewardFactionOverride1`=10000, `RewardFactionID2`=0, `RewardFactionValue2`=0, `RewardFactionOverride2`=0, `RewardFactionID3`=0, `RewardFactionValue3`=0, `RewardFactionOverride3`=0, `RewardFactionID4`=0, `RewardFactionValue4`=0, `RewardFactionOverride4`=0, `RewardFactionID5`=0, `RewardFactionValue5`=0, `RewardFactionOverride5`=0 WHERE `ID`=8407; -- Fight for Warsong Gulch
UPDATE `quest_template` SET `RewardFactionID1`=890, `RewardFactionValue1`=0, `RewardFactionOverride1`=10000, `RewardFactionID2`=0, `RewardFactionValue2`=0, `RewardFactionOverride2`=0, `RewardFactionID3`=0, `RewardFactionValue3`=0, `RewardFactionOverride3`=0, `RewardFactionID4`=0, `RewardFactionValue4`=0, `RewardFactionOverride4`=0, `RewardFactionID5`=0, `RewardFactionValue5`=0, `RewardFactionOverride5`=0 WHERE `ID`=8408; -- Fight for Warsong Gulch
UPDATE `quest_template` SET `RewardFactionID1`=889, `RewardFactionValue1`=0, `RewardFactionOverride1`=10000, `RewardFactionID2`=0, `RewardFactionValue2`=0, `RewardFactionOverride2`=0, `RewardFactionID3`=0, `RewardFactionValue3`=0, `RewardFactionOverride3`=0, `RewardFactionID4`=0, `RewardFactionValue4`=0, `RewardFactionOverride4`=0, `RewardFactionID5`=0, `RewardFactionValue5`=0, `RewardFactionOverride5`=0 WHERE `ID`=8431; -- Battle of Warsong Gulch
UPDATE `quest_template` SET `RewardFactionID1`=889, `RewardFactionValue1`=0, `RewardFactionOverride1`=10000, `RewardFactionID2`=0, `RewardFactionValue2`=0, `RewardFactionOverride2`=0, `RewardFactionID3`=0, `RewardFactionValue3`=0, `RewardFactionOverride3`=0, `RewardFactionID4`=0, `RewardFactionValue4`=0, `RewardFactionOverride4`=0, `RewardFactionID5`=0, `RewardFactionValue5`=0, `RewardFactionOverride5`=0 WHERE `ID`=8432; -- Battle of Warsong Gulch
UPDATE `quest_template` SET `RewardFactionID1`=889, `RewardFactionValue1`=0, `RewardFactionOverride1`=10000, `RewardFactionID2`=0, `RewardFactionValue2`=0, `RewardFactionOverride2`=0, `RewardFactionID3`=0, `RewardFactionValue3`=0, `RewardFactionOverride3`=0, `RewardFactionID4`=0, `RewardFactionValue4`=0, `RewardFactionOverride4`=0, `RewardFactionID5`=0, `RewardFactionValue5`=0, `RewardFactionOverride5`=0 WHERE `ID`=8433; -- Battle of Warsong Gulch
UPDATE `quest_template` SET `RewardFactionID1`=889, `RewardFactionValue1`=0, `RewardFactionOverride1`=10000, `RewardFactionID2`=0, `RewardFactionValue2`=0, `RewardFactionOverride2`=0, `RewardFactionID3`=0, `RewardFactionValue3`=0, `RewardFactionOverride3`=0, `RewardFactionID4`=0, `RewardFactionValue4`=0, `RewardFactionOverride4`=0, `RewardFactionID5`=0, `RewardFactionValue5`=0, `RewardFactionOverride5`=0 WHERE `ID`=8434; -- Battle of Warsong Gulch
UPDATE `quest_template` SET `RewardFactionID1`=889, `RewardFactionValue1`=0, `RewardFactionOverride1`=10000, `RewardFactionID2`=0, `RewardFactionValue2`=0, `RewardFactionOverride2`=0, `RewardFactionID3`=0, `RewardFactionValue3`=0, `RewardFactionOverride3`=0, `RewardFactionID4`=0, `RewardFactionValue4`=0, `RewardFactionOverride4`=0, `RewardFactionID5`=0, `RewardFactionValue5`=0, `RewardFactionOverride5`=0 WHERE `ID`=8435; -- Battle of Warsong Gulch
UPDATE `quest_template` SET `RewardFactionID1`=510, `RewardFactionValue1`=0, `RewardFactionOverride1`=10000, `RewardFactionID2`=0, `RewardFactionValue2`=0, `RewardFactionOverride2`=0, `RewardFactionID3`=0, `RewardFactionValue3`=0, `RewardFactionOverride3`=0, `RewardFactionID4`=0, `RewardFactionValue4`=0, `RewardFactionOverride4`=0, `RewardFactionID5`=0, `RewardFactionValue5`=0, `RewardFactionOverride5`=0 WHERE `ID`=8440; -- Conquering Arathi Basin
UPDATE `quest_template` SET `RewardFactionID1`=510, `RewardFactionValue1`=0, `RewardFactionOverride1`=10000, `RewardFactionID2`=0, `RewardFactionValue2`=0, `RewardFactionOverride2`=0, `RewardFactionID3`=0, `RewardFactionValue3`=0, `RewardFactionOverride3`=0, `RewardFactionID4`=0, `RewardFactionValue4`=0, `RewardFactionOverride4`=0, `RewardFactionID5`=0, `RewardFactionValue5`=0, `RewardFactionOverride5`=0 WHERE `ID`=8441; -- Conquering Arathi Basin
UPDATE `quest_template` SET `RewardFactionID1`=510, `RewardFactionValue1`=0, `RewardFactionOverride1`=10000, `RewardFactionID2`=0, `RewardFactionValue2`=0, `RewardFactionOverride2`=0, `RewardFactionID3`=0, `RewardFactionValue3`=0, `RewardFactionOverride3`=0, `RewardFactionID4`=0, `RewardFactionValue4`=0, `RewardFactionOverride4`=0, `RewardFactionID5`=0, `RewardFactionValue5`=0, `RewardFactionOverride5`=0 WHERE `ID`=8442; -- Conquering Arathi Basin
UPDATE `quest_template` SET `RewardFactionID1`=510, `RewardFactionValue1`=0, `RewardFactionOverride1`=10000, `RewardFactionID2`=0, `RewardFactionValue2`=0, `RewardFactionOverride2`=0, `RewardFactionID3`=0, `RewardFactionValue3`=0, `RewardFactionOverride3`=0, `RewardFactionID4`=0, `RewardFactionValue4`=0, `RewardFactionOverride4`=0, `RewardFactionID5`=0, `RewardFactionValue5`=0, `RewardFactionOverride5`=0 WHERE `ID`=8443; -- Conquering Arathi Basin
UPDATE `quest_template` SET `RewardFactionID1`=2758, `RewardFactionValue1`=0, `RewardFactionOverride1`=20000, `RewardFactionID2`=0, `RewardFactionValue2`=0, `RewardFactionOverride2`=0, `RewardFactionID3`=0, `RewardFactionValue3`=0, `RewardFactionOverride3`=0, `RewardFactionID4`=0, `RewardFactionValue4`=0, `RewardFactionOverride4`=0, `RewardFactionID5`=0, `RewardFactionValue5`=0, `RewardFactionOverride5`=0 WHERE `ID`=93459; -- More Al'Aketh Ears
-- 7. The level Facing Negolash (618) is offered from on live, like its twin 8554.
UPDATE `quest_classic_level` SET `MinLevel`=35 WHERE `ID`=618 AND `MinLevel`=37;
-- 8. Quest titles as live shows them.
UPDATE `quest_template` SET `LogTitle`='Onu is Meditating' WHERE `ID`=960 AND `LogTitle`='Onu is meditating';
UPDATE `quest_template` SET `LogTitle`='Onu is Meditating' WHERE `ID`=961 AND `LogTitle`='Onu is meditating';
-- 9. Apprentice Engineering (4036) and Apprentice Enchanting (7411) are learned from level 1 on live: every live trainer seen
-- (8 of them, among them Graham Van Talen, Lavinia Crowe and Malcomb Wynn) asks for level 1; some of ours asked for 5.
UPDATE `trainer_spell` SET `ReqLevel`=1 WHERE `SpellId` IN (4036,7411) AND `ReqLevel`=5;
@@ -0,0 +1,141 @@
-- WoW Forever live drops from Everlake's world data, picked on 17 Nov: only what our world lacked.
-- From Everlake's world data (buildthehomelab/wow-everlake-world-data, main fc2f2ad3, GPL-3.0), its exports 35 and 36: Icy Veins'
-- WoW Forever database (db.icy-veins.com/wow-forever) and Wowhead's WoW Forever database (www.wowhead.com/forever), with the drop
-- chances their players measured on live Forever. Not their files: their rows were compared with ours and only what we lack is
-- written here as our own rows. Safe to run more than once.
-- Creature drops seen on live that ours lacks: 88 rows (Icy Veins) and 31 recipe drops (Wowhead) on 88 creatures. Only spawned
-- creatures, items the client has, and only where the creature's own loot (or its reference tables) does not already hold the
-- item. A row goes in only where the creature's loot id is its own entry (or not set yet; then it is set), so no other
-- creature's loot changes.
DROP TEMPORARY TABLE IF EXISTS `forever_drops_1117`;
CREATE TEMPORARY TABLE `forever_drops_1117` (`Entry` INT UNSIGNED NOT NULL, `Item` INT UNSIGNED NOT NULL, `Chance` FLOAT NOT NULL, `QuestRequired` TINYINT UNSIGNED NOT NULL, `MinCount` TINYINT UNSIGNED NOT NULL, `MaxCount` TINYINT UNSIGNED NOT NULL, `Src` TINYINT UNSIGNED NOT NULL, PRIMARY KEY (`Entry`,`Item`));
INSERT INTO `forever_drops_1117` (`Entry`,`Item`,`Chance`,`QuestRequired`,`MinCount`,`MaxCount`,`Src`) VALUES
(1037,282658,17.44,0,1,1,1),
(1785,254120,3.11,0,1,1,2),
(1795,254138,2.08,0,1,1,2),
(2186,284192,4.0,0,1,1,1),
(2748,274432,34.57,0,1,1,1),
(3660,282406,22.97,0,1,1,1),
(5239,287070,0.29,0,1,1,1),
(5471,252908,1.08,0,1,1,2),
(5648,287070,0.1,0,1,1,1),
(5650,287070,0.05,0,1,1,1),
(5710,273119,0.96,0,1,1,2),
(5834,286540,3.79,0,1,1,1),
(5852,254076,2.09,0,1,1,2),
(5915,284459,33.33,0,1,1,1),
(5928,284401,31.43,0,1,1,1),
(5930,284399,21.13,0,1,1,1),
(5933,285191,33.33,0,1,1,1),
(6004,252928,2.23,0,1,1,2),
(6006,252931,2.56,0,1,1,2),
(6193,250980,1.08,0,1,1,2),
(6200,235256,26.05,0,1,1,1),
(6201,235256,29.29,0,1,1,1),
(6202,235256,41.78,0,1,1,1),
(6527,252927,2.53,0,1,1,2),
(6557,252878,2.17,0,1,1,2),
(7023,274425,30.92,0,1,1,1),
(7023,274428,27.31,0,1,1,1),
(7023,274430,28.51,0,1,1,1),
(7023,274485,9.24,0,1,1,1),
(7025,252888,7.14,0,1,1,2),
(7033,264224,1.75,0,1,1,2),
(7206,274431,39.0,0,1,1,1),
(7228,274484,12.77,0,1,1,1),
(7271,274642,25.56,0,1,1,1),
(7272,274638,30.95,0,1,1,1),
(7272,274639,32.09,0,1,1,1),
(7272,274641,30.95,0,1,1,1),
(7376,252889,0.99,0,1,1,2),
(7396,287070,0.11,0,1,1,1),
(7451,251443,2.05,0,1,1,2),
(7523,254122,5.88,0,1,1,2),
(7604,274646,36.26,0,1,1,1),
(7604,274647,29.83,0,1,1,1),
(7604,274648,27.78,0,1,1,1),
(7795,274651,29.55,0,1,1,1),
(7795,274652,27.76,0,1,1,1),
(7795,274653,28.66,0,1,1,1),
(7797,274654,34.75,0,1,1,1),
(7797,274655,32.27,0,1,1,1),
(7857,287070,0.05,0,1,1,1),
(7885,252886,4.55,0,1,1,2),
(7886,250189,10.61,0,1,1,2),
(8983,273113,9.76,0,1,1,2),
(8983,273127,92.31,0,1,1,1),
(9042,276884,27.27,0,1,1,1),
(9262,252895,9.59,0,1,1,2),
(9502,276879,36.36,0,1,1,1),
(9583,251451,3.85,0,1,1,2),
(9736,273115,7.35,0,1,1,2),
(9816,249520,15.79,0,1,1,2),
(10080,274659,41.67,0,1,1,1),
(10080,274660,50.0,0,1,1,1),
(10082,274658,43.12,0,1,1,1),
(10318,252939,13.04,0,1,1,2),
(10399,249524,12.7,0,1,1,2),
(10417,254140,2.9,0,1,1,2),
(10436,273124,7.14,0,1,1,2),
(10498,249523,13.16,0,1,1,2),
(10559,284704,15.0,0,1,1,1),
(10596,249521,11.54,0,1,1,2),
(11261,273118,3.85,0,1,1,2),
(11441,251452,12.82,0,1,1,2),
(11462,252891,7.04,0,1,1,2),
(12236,275864,26.5,0,1,1,1),
(14221,283255,24.39,0,1,1,1),
(14225,284717,18.18,0,1,1,1),
(14228,284712,19.23,0,1,1,1),
(14273,281927,24.39,0,1,1,1),
(14280,282717,20.23,0,1,1,1),
(14281,282713,13.89,0,1,1,1),
(14424,282655,11.29,0,1,1,1),
(14427,285192,14.04,0,1,1,1),
(246600,286990,0.06,0,1,1,1),
(246600,286996,0.12,0,1,1,1),
(246664,286990,0.07,0,1,1,1),
(246664,286993,0.04,0,1,1,1),
(246664,286996,0.01,0,1,1,1),
(246888,286990,0.08,0,1,1,1),
(246888,286993,0.08,0,1,1,1),
(246990,286993,0.14,0,1,1,1),
(246992,286990,0.1,0,1,1,1),
(246993,286993,0.11,0,1,1,1),
(247001,286990,0.12,0,1,1,1),
(247001,286993,0.08,0,1,1,1),
(247003,286993,0.15,0,1,1,1),
(247003,286996,0.06,0,1,1,1),
(249247,274517,1.67,0,1,1,1),
(253272,260348,0.45,0,1,1,1),
(253272,260351,0.45,0,1,1,1),
(255066,286990,0.03,0,1,1,1),
(255066,286996,0.08,0,1,1,1),
(255068,286990,0.15,0,1,1,1),
(255068,286993,0.07,0,1,1,1),
(255069,286990,0.06,0,1,1,1),
(255069,286993,0.06,0,1,1,1),
(255069,286996,0.03,0,1,1,1),
(255070,286990,0.08,0,1,1,1),
(255072,286990,0.1,0,1,1,1),
(255072,286993,0.05,0,1,1,1),
(255072,286996,0.16,0,1,1,1),
(255207,260348,5.17,0,1,1,1),
(255207,260351,6.9,0,1,1,1),
(255207,260353,8.62,0,1,1,1),
(255238,260348,6.52,0,1,1,1),
(255238,260351,2.17,0,1,1,1),
(255238,260353,6.52,0,1,1,1),
(269134,286990,0.12,0,1,1,1),
(269134,286993,0.1,0,1,1,1),
(269134,286996,0.15,0,1,1,1);
UPDATE `creature_template_difficulty` `d` SET `d`.`LootID`=`d`.`Entry` WHERE `d`.`DifficultyID`=0 AND `d`.`LootID`=0
AND `d`.`Entry` IN (SELECT `Entry` FROM `forever_drops_1117`)
AND NOT EXISTS (SELECT 1 FROM `creature_loot_template` `l` WHERE `l`.`Entry`=`d`.`Entry`);
INSERT INTO `creature_loot_template` (`Entry`,`ItemType`,`Item`,`Chance`,`QuestRequired`,`LootMode`,`GroupId`,`MinCount`,`MaxCount`,`Comment`)
SELECT `s`.`Entry`,0,`s`.`Item`,`s`.`Chance`,`s`.`QuestRequired`,1,0,`s`.`MinCount`,`s`.`MaxCount`,IF(`s`.`Src`=1,'Everlake data: Icy Veins Forever','Everlake data: Wowhead Forever') FROM `forever_drops_1117` `s`
JOIN `creature_template_difficulty` `d` ON `d`.`Entry`=`s`.`Entry` AND `d`.`DifficultyID`=0 AND `d`.`LootID`=`s`.`Entry`
WHERE NOT EXISTS (SELECT 1 FROM `creature_loot_template` `x` WHERE `x`.`Entry`=`s`.`Entry` AND `x`.`ItemType`=0 AND `x`.`Item`=`s`.`Item`)
AND NOT EXISTS (SELECT 1 FROM `creature_template_difficulty` `o` WHERE `o`.`LootID`=`s`.`Entry` AND `o`.`Entry`<>`s`.`Entry`);
DROP TEMPORARY TABLE IF EXISTS `forever_drops_1117`;
@@ -0,0 +1,29 @@
-- The Glowing Shard (6981) could not be handed in, and Shenthul's gossip in Orgrimmar summoned the Counterattack event.
-- 2026_11_12_32_world_classic_counterattack_event.sql wrote Counterattack!'s "Warlord Krom'zar comes" and "Counterattack over" lists
-- into the timed action lists 950000302 and 950000303, which were already in use:
-- 950000302: Shenthul (3401) gossip 521/2 -> cast 21100 (VMaNGOS gossip_scripts 16)
-- 950000303: Sputtervalve (3442) gossip 21/1 -> complete The Glowing Shard 6981 (VMaNGOS gossip_scripts 21)
-- So talking to Sputtervalve ran "Counterattack over" instead of finishing the quest, and Falla Sagewind never took it.
-- The two Counterattack lists move to 950001417 and 950001418 and the two old lists get their rows back.
-- Safe to run again.
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (950000302,950000303,950001417,950001418) AND `source_type` = 9;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`Difficulties`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`event_param5`,`event_param_string`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`action_param7`,`action_param_string`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_param4`,`target_param_string`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(950001417,9,0,0,'',0,0,100,0,0,0,0,0,0,'',12,9456,1,600000,0,0,0,0,'',8,0,0,0,0,'',-297.624,-1839.22,93.8783,4.81711,'Counterattack - Summon Warlord Krom''zar (VMaNGOS generic_scripts 402102)'),
(950001417,9,1,0,'',0,0,100,0,1000,1000,0,0,0,'',12,9524,1,600000,0,0,0,0,'',8,0,0,0,0,'',-293.931,-1837.24,93.4963,4.43314,'Counterattack - Summon Kolkar Invader with Krom''zar'),
(950001417,9,2,0,'',0,0,100,0,0,0,0,0,0,'',12,9523,1,600000,0,0,0,0,'',8,0,0,0,0,'',-297.878,-1834.64,94.2335,4.79965,'Counterattack - Summon Kolkar Stormseer with Krom''zar'),
(950001418,9,0,0,'',0,0,100,0,0,0,0,0,0,'',74,2,0,0,0,0,0,0,'',1,0,0,0,0,'',0,0,0,0,'Counterattack over - Remove the time limit'),
(950001418,9,1,0,'',0,0,100,0,0,0,0,0,0,'',63,1,0,1,0,0,0,0,'',1,0,0,0,0,'',0,0,0,0,'Counterattack over - Reset Kolkar kill counter'),
(950001418,9,2,0,'',0,0,100,0,0,0,0,0,0,'',1,2,0,0,0,0,0,0,'',1,0,0,0,0,'',0,0,0,0,'Counterattack over - Regthar Deathgate - Say Line 2 (VMaNGOS generic_scripts 402106)'),
(950001418,9,3,0,'',0,0,100,0,0,0,0,0,0,'',41,3000,0,0,0,0,0,0,'',11,9524,200,0,0,'',0,0,0,0,'Counterattack over - Despawn the event''s Kolkar Invaders (VMaNGOS generic_scripts 402105)'),
(950001418,9,4,0,'',0,0,100,0,0,0,0,0,0,'',41,3000,0,0,0,0,0,0,'',11,9523,200,0,0,'',0,0,0,0,'Counterattack over - Despawn the event''s Kolkar Stormseers (VMaNGOS generic_scripts 402105)'),
(950001418,9,5,0,'',0,0,100,0,0,0,0,0,0,'',41,3000,0,0,0,0,0,0,'',11,9457,200,0,0,'',0,0,0,0,'Counterattack over - Despawn the event''s Horde Defenders (VMaNGOS generic_scripts 402105)'),
(950001418,9,6,0,'',0,0,100,0,0,0,0,0,0,'',41,3000,0,0,0,0,0,0,'',11,9458,200,0,0,'',0,0,0,0,'Counterattack over - Despawn the event''s Darkspear Hunters (VMaNGOS generic_scripts 402105)'),
(950001418,9,7,0,'',0,0,100,0,1000,1000,0,0,0,'',4,6199,0,0,0,0,0,0,'',10,20013100,9990,0,0,'',0,0,0,0,'Counterattack over - Lanti''gah - Play Sound'),
(950001418,9,8,0,'',0,0,100,0,0,0,0,0,0,'',82,1,0,0,0,0,0,0,'',10,20013100,9990,0,0,'',0,0,0,0,'Counterattack over - Lanti''gah - Add Gossip Flag'),
(950001418,9,9,0,'',0,0,100,0,1000,1000,0,0,0,'',45,1,2,0,0,0,0,0,'',10,20013100,9990,0,0,'',0,0,0,0,'Counterattack over - Lanti''gah - Set Data 1 2 (go home)'),
(950000302,9,0,0,'',0,0,100,0,0,0,0,0,0,'',11,21100,0,0,0,0,0,0,'',7,0,0,0,0,'',0,0,0,0,'VMaNGOS gossip_scripts 16'),
(950000303,9,0,0,'',0,0,100,0,0,0,0,0,0,'',152,6981,0,0,0,0,0,0,'',7,0,0,0,0,'',0,0,0,0,'VMaNGOS gossip_scripts 21');
UPDATE `smart_scripts` SET `action_param1` = 950001417 WHERE `entryorguid` = 3389 AND `source_type` = 0 AND `id` = 13 AND `action_type` = 80;
UPDATE `smart_scripts` SET `action_param1` = 950001418 WHERE `entryorguid` = 3389 AND `source_type` = 0 AND `id` IN (14,15) AND `action_type` = 80;
@@ -0,0 +1,20 @@
-- WoW Forever live data from EG Link (Efficient Games), JIVESCORP/eg-link-output-wowf commit 06b4cc7, folder 1.60.1.70938
-- (collected to 17 Nov). Data from Efficient Games (https://efficient.games), licensed under CC BY 4.0
-- (https://creativecommons.org/licenses/by/4.0/). Changed: compared with our world and written as TrinityCore rows; only what the
-- 17 Nov file (2026_11_17_96) did not already take. Safe to run more than once.
-- 1. Quest XP as live's quest record gives it (difficulty and multiplier, the same check as 15 and 17 Nov).
UPDATE `quest_template` SET `RewardXPDifficulty`=0, `RewardXPMultiplier`=1 WHERE `ID`=1878; -- Water Pouch Bounty (repeatable)
UPDATE `quest_template` SET `RewardXPDifficulty`=5, `RewardXPMultiplier`=2 WHERE `ID`=8949; -- Falrin's Vendetta
-- 2. Control Four Bases (8114) is offered from level 50 on live (ours 60).
UPDATE `quest_classic_level` SET `MinLevel`=50 WHERE `ID`=8114 AND `MinLevel`=60;
-- 3. Naluk (261313) sells four more drinks and foods on live, for money: Moonberry Juice, Cured Ham Steak, Morning Glory Dew and
-- Roasted Quail.
DELETE FROM `npc_vendor` WHERE `entry`=261313 AND `ExtendedCost`=0 AND `type`=1 AND `item` IN (1645,4599,8766,8952);
INSERT INTO `npc_vendor` (`entry`,`slot`,`item`,`maxcount`,`incrtime`,`ExtendedCost`,`type`,`PlayerConditionID`,`IgnoreFiltering`,`VerifiedBuild`) VALUES
(261313,3,1645,0,0,0,1,0,0,0),
(261313,4,4599,0,0,0,1,0,0,0),
(261313,5,8766,0,0,0,1,0,0,0),
(261313,6,8952,0,0,0,1,0,0,0);
@@ -0,0 +1,20 @@
-- WoW Forever live quest data from Questie (QuestieDB 4a73dc65, GPL-3.0), picked on 18 Nov: only what ours had wrong, and only
-- for quests we already have. Not their files: their values were compared with ours and only the differences are written here.
-- Safe to run more than once.
-- 1. Darkspear Islands battleground quests (levels 30-39): the first turn-in and its repeatable follow-up, for each side.
-- Horde: Conflict at Darkspear Islands 98887 / 98888 at the Horde Warbringer (15350); Alliance: Darkspear Islands Clash
-- 98895 / 98896 at the Alliance Brigadier General (15351); The Battle for Darkspear Islands! 98906 (Horde).
-- Ours let anyone of any level take them, both sides took both, and the follow-up needed nothing first.
UPDATE `quest_template` SET `AllowableRaces`=8589934770 WHERE `ID`=98888 AND `AllowableRaces`=18446744073709551615;
UPDATE `quest_template` SET `AllowableRaces`=4294967373 WHERE `ID`=98895 AND `AllowableRaces`=18446744073709551615;
INSERT INTO `quest_template_addon` (`ID`,`MaxLevel`) VALUES (98887,39),(98888,39),(98895,39),(98896,39),(98906,39)
ON DUPLICATE KEY UPDATE `MaxLevel`=VALUES(`MaxLevel`);
UPDATE `quest_template_addon` SET `PrevQuestID`=98887 WHERE `ID`=98888 AND `PrevQuestID`=0;
UPDATE `quest_template_addon` SET `PrevQuestID`=98895 WHERE `ID`=98896 AND `PrevQuestID`=0;
UPDATE `quest_template_addon` SET `SpecialFlags`=`SpecialFlags`|1 WHERE `ID` IN (98888,98896);
-- 2. Buying Friendship (Desolace centaur bribes): live asks for at least Neutral with the clan being bribed before the quest can be
-- taken. 93227 and 94873 Gelkis Clan Centaur (92), 94872 Magram Clan Centaur (93).
UPDATE `quest_template_addon` SET `RequiredMinRepFaction`=92, `RequiredMinRepValue`=0 WHERE `ID` IN (93227,94873) AND `RequiredMinRepFaction`=0;
UPDATE `quest_template_addon` SET `RequiredMinRepFaction`=93, `RequiredMinRepValue`=0 WHERE `ID`=94872 AND `RequiredMinRepFaction`=0;
@@ -186,6 +186,27 @@ namespace VMAP
return true;
}
bool VMapManager::getFirstModelHit(uint32 mapId, float x1, float y1, float z1, float x2, float y2, float z2, ModelIgnoreFlags ignoreFlags,
float& rx, float& ry, float& rz, uint32& spawnId, uint8& spawnFlags, float& sx, float& sy, float& sz)
{
if (!isLineOfSightCalcEnabled() || IsVMAPDisabledForPtr(mapId, VMAP_DISABLE_LOS))
return false;
auto instanceTree = GetMapTree(mapId);
if (instanceTree == iInstanceMapTrees.end())
return false;
G3D::Vector3 hit;
ModelMinimalData const* model = nullptr;
if (!instanceTree->second->getFirstHit(convertPositionToInternalRep(x1, y1, z1), convertPositionToInternalRep(x2, y2, z2), ignoreFlags, hit, model))
return false;
G3D::Vector3 const world = convertPositionToInternalRep(hit.x, hit.y, hit.z);
G3D::Vector3 const at = convertPositionToInternalRep(model->iPos.x, model->iPos.y, model->iPos.z);
rx = world.x; ry = world.y; rz = world.z;
spawnId = model->ID;
spawnFlags = model->flags;
sx = at.x; sy = at.y; sz = at.z;
return true;
}
/**
get the hit position and return true if we hit something
otherwise the result pos will be the dest pos
@@ -156,6 +156,12 @@ namespace VMAP
return a position, that is modifyDist closer to the origin
*/
bool getObjectHitPos(uint32 mapId, float x1, float y1, float z1, float x2, float y2, float z2, float& rx, float& ry, float& rz, float modifyDist);
/**
The first static model a line runs into (diagnostics): the hit position, the model's spawn id and flags (ModelFlags) and
where the spawn stands. False when the line is clear.
*/
bool getFirstModelHit(uint32 mapId, float x1, float y1, float z1, float x2, float y2, float z2, ModelIgnoreFlags ignoreFlags,
float& rx, float& ry, float& rz, uint32& spawnId, uint8& spawnFlags, float& sx, float& sy, float& sz);
float getHeight(uint32 mapId, float x, float y, float z, float maxSearchDist);
/**
+33
View File
@@ -123,6 +123,39 @@ namespace VMAP
return true;
}
//=========================================================
bool StaticMapTree::getFirstHit(Vector3 const& pos1, Vector3 const& pos2, ModelIgnoreFlags ignoreFlags, Vector3& hitPos,
ModelMinimalData const*& model) const
{
model = nullptr;
float maxDist = (pos2 - pos1).magnitude();
if (maxDist < 1e-10f || !std::isfinite(maxDist))
return false;
Vector3 const dir = (pos2 - pos1) / maxDist;
G3D::Ray const ray = G3D::Ray::fromOriginAndDirection(pos1, dir);
// Every hit shortens the distance the tree still searches, so the last entry that hits is the nearest one.
ModelInstance const* prims = iTreeValues.data();
uint32 nearest = 0;
bool hit = false;
auto callback = [&](G3D::Ray const& r, uint32 entry, float& distance, bool stopAtFirstHit)
{
bool const result = prims[entry].intersectRay(r, distance, stopAtFirstHit, ignoreFlags);
if (result)
{
hit = true;
nearest = entry;
}
return result;
};
float distance = maxDist;
iTree.intersectRay(ray, callback, distance, false);
if (!hit)
return false;
hitPos = pos1 + dir * distance;
model = &prims[nearest];
return true;
}
//=========================================================
/**
When moving from pos1 to pos2 check if we hit an object. Return true and the position if we hit one
Return the hit pos or the original dest pos
+4
View File
@@ -26,6 +26,7 @@
namespace VMAP
{
class ModelInstance;
struct ModelMinimalData;
class GroupModel;
class VMapManager;
enum class LoadResult : uint8;
@@ -70,6 +71,9 @@ namespace VMAP
bool isInLineOfSight(G3D::Vector3 const& pos1, G3D::Vector3 const& pos2, ModelIgnoreFlags ignoreFlags) const;
bool getObjectHitPos(G3D::Vector3 const& pos1, G3D::Vector3 const& pos2, G3D::Vector3& pResultHitPos, float pModifyDist) const;
// The first model a line from pos1 to pos2 runs into: where, and which spawn (nullptr and false when the line is clear).
bool getFirstHit(G3D::Vector3 const& pos1, G3D::Vector3 const& pos2, ModelIgnoreFlags ignoreFlags, G3D::Vector3& hitPos,
ModelMinimalData const*& model) const;
float getHeight(G3D::Vector3 const& pPos, float maxSearchDist) const;
bool GetLocationInfo(G3D::Vector3 const& pos, StaticMapTreeLocationInfo& info) const;
@@ -57,6 +57,8 @@ public:
virtual int64 GetPackedRotation() const = 0;
virtual float GetScale() const = 0;
virtual void DebugVisualizeCorner(G3D::Vector3 const& /*corner*/) const = 0;
// A door (GAMEOBJECT_TYPE_DOOR): its collision is on while it is closed, and the navmesh is baked without it.
virtual bool IsDoor() const { return false; }
};
class TC_COMMON_API GameObjectModel /*, public Intersectable*/
@@ -82,6 +84,7 @@ public:
void IncludeInNavMesh(bool enable) { iIncludeInNavMesh = enable; }
bool IsIncludedInNavMesh() const { return iIncludeInNavMesh; }
bool IsMapObject() const;
bool IsDoor() const { return owner && owner->IsDoor(); }
uint8 GetNameSetId() const { return owner->GetNameSetId(); }
bool IntersectRay(G3D::Ray const& ray, float& maxDist, bool stopAtFirstHit, PhaseShift const& phaseShift, VMAP::ModelIgnoreFlags ignoreFlags) const;
+11 -3
View File
@@ -201,9 +201,17 @@ bool ConfigMgr::LoadAdditionalFile(std::string file, bool keepOnReload, std::str
std::scoped_lock lock(_configLock);
if (!fullTree.empty())
for (bpt::ptree::value_type const& child : fullTree.begin()->second)
_config.put_child(bpt::ptree::path_type(child.first, '/'), child.second);
// A drop-in file usually has one [section] header, like worldserver.conf, but may have none (keys at the root) or more than
// one. Reading the first entry as the section dropped every key of a file without a header, because that entry is a key.
// An entry with children is a section, whose keys are merged; an entry without is a key at the root.
for (bpt::ptree::value_type const& entry : fullTree)
{
if (entry.second.empty())
_config.put_child(bpt::ptree::path_type(entry.first, '/'), entry.second);
else
for (bpt::ptree::value_type const& child : entry.second)
_config.put_child(bpt::ptree::path_type(child.first, '/'), child.second);
}
if (keepOnReload)
_additionalEntries.push_back({ std::move(file), false });
@@ -88,6 +88,9 @@ void WorldDatabaseConnection::DoPrepareStatements()
// the quest-giver statement above so the Playerbot RepairVendorIndex can clone
// the QuestHubDatabase load path verbatim.
PrepareStatement(WORLD_SEL_REPAIR_VENDOR_SPAWNS, "SELECT c.guid, c.id, c.position_x, c.position_y, c.position_z, c.map, ct.faction, COALESCE(c.zoneId, 0) as zoneId FROM creature c INNER JOIN creature_template ct ON c.id = ct.entry WHERE ct.npcflag & 4096 != 0", CONNECTION_SYNCH);
// AuctionHouseBot.Vanilla.MarketPrices: per-unit market price of an item for the auction house bot
PrepareStatement(WORLD_SEL_AUCTIONHOUSEBOT_MARKET_PRICES, "SELECT ItemID, UnitPrice FROM auctionhousebot_market_price WHERE UnitPrice > 0", CONNECTION_SYNCH);
}
WorldDatabaseConnection::WorldDatabaseConnection(MySQLConnectionInfo& connInfo, ConnectionFlags connectionFlags) : MySQLConnection(connInfo, connectionFlags)
@@ -91,6 +91,8 @@ enum WorldDatabaseStatements : uint32
WORLD_SEL_QUEST_GIVER_SPAWNS, // SELECT c.guid, c.id, c.position_x, c.position_y, c.position_z, c.map, ct.faction, COALESCE(c.zoneId, 0) as zoneId FROM creature c INNER JOIN creature_template ct ON c.id = ct.entry WHERE ct.npcflag & 2 != 0
WORLD_SEL_REPAIR_VENDOR_SPAWNS, // SELECT c.guid, c.id, c.position_x, c.position_y, c.position_z, c.map, ct.faction, COALESCE(c.zoneId, 0) as zoneId FROM creature c INNER JOIN creature_template ct ON c.id = ct.entry WHERE ct.npcflag & 4096 != 0
WORLD_SEL_AUCTIONHOUSEBOT_MARKET_PRICES, // SELECT ItemID, UnitPrice FROM auctionhousebot_market_price WHERE UnitPrice > 0
MAX_WORLDDATABASE_STATEMENTS
};
+1
View File
@@ -758,6 +758,7 @@ enum RBACPermissions
//
// custom permissions 1000+
RBAC_PERM_COMMAND_TIME = 1000, // .time day / night / auto (players too)
RBAC_PERM_COMMAND_BUG = 1001, // .bug <text>: a bug report with the player's spot (players too)
RBAC_PERM_MAX
};
@@ -117,6 +117,9 @@ uint32 AuctionBotBuyer::GetItemInformation(BuyerConfiguration& config)
if (entry->Owner.IsEmpty() || sAuctionBotConfig->IsBotChar(entry->Owner))
continue; // Skip auctions owned by AHBot
if (AuctionBotBuyerPolicy::Excluded(entry->Bucket->Key.ItemId))
continue; // unlimited vendor goods and AuctionHouseBot.Buyer.ExcludeItemIDs
BuyerItemInfo& itemInfo = config.SameItemInfo[entry->Bucket->Key.ItemId];
// Update item entry's count and total bid prices
@@ -25,10 +25,14 @@
#include "Item.h"
#include "ItemTemplate.h"
#include "Log.h"
#include "ObjectMgr.h"
#include "Random.h"
#include "StringConvert.h"
#include "StringFormat.h"
#include "Util.h"
#include "World.h"
#include <algorithm>
#include <unordered_set>
namespace AuctionBotBuyerPolicy
{
@@ -43,6 +47,9 @@ namespace
bool _fair = false;
float _fairMinChance = 35.0f; // percent at the price cap
uint32 _dropFloorPerLevel = 0; // copper per item level, 0 = off
bool _excludeVendorItems = false;
std::unordered_set<uint32> _vendorItems; // sold for gold by a spawned vendor with unlimited stock
std::unordered_set<uint32> _excludedItemIds; // AuctionHouseBot.Buyer.ExcludeItemIDs
time_t _dayStart = 0;
uint64 _spentToday = 0;
@@ -97,11 +104,55 @@ namespace
// (the same stand-in the seller uses when an item has no buy price).
uint64 FairUnitPrice(ItemTemplate const* proto)
{
// a known market price is what the item is worth, also below 1 silver and below the stand-ins
// (AuctionHouseBot.Vanilla.MarketPrices); the seller lists at the same price
if (uint64 market = AuctionBotVanilla::MarketUnitPrice(proto))
return market;
uint64 buy = proto->GetBuyPrice() / std::max<uint32>(1, proto->GetBuyCount());
uint64 sell = uint64(proto->GetSellPrice()) * 4;
// the seller's market value when AuctionHouseBot.Vanilla.ValueCurve is on, so the buyer pays what the bot asks
return std::max<uint64>({ buy, sell, AuctionBotVanilla::UnitValue(proto), SILVER, DropFloor(proto) });
}
// Items any vendor in the world sells for gold without a stock limit (npc_vendor maxcount 0, no extended cost). The buyer's
// price never goes below the vendor's own (FairUnitPrice), and with the SILVER and drop floors it pays more than the vendor
// asks for cheap goods: a player bought arrows, thread and reagents from vendors and sold them to the buyer, about 8000 gold
// on one server (Discord 2026-11-18, Tasko). Limited-stock vendor items stay eligible. Only vendors with a spawn count.
void BuildVendorItems()
{
_vendorItems.clear();
std::unordered_set<uint32> spawned;
for (auto const& [spawnId, data] : sObjectMgr->GetAllCreatureData())
spawned.insert(data.id);
for (uint32 entry : spawned)
{
VendorItemData const* items = sObjectMgr->GetNpcVendorItemList(entry);
if (!items)
continue;
for (VendorItem const& item : items->m_items)
if (item.Type == ITEM_VENDOR_TYPE_ITEM && !item.maxcount && !item.ExtendedCost)
_vendorItems.insert(item.item);
}
}
void ParseExcludedItemIds()
{
_excludedItemIds.clear();
std::string const list = sConfigMgr->GetStringDefault("AuctionHouseBot.Buyer.ExcludeItemIDs", "");
for (std::string_view token : Trinity::Tokenize(list, ',', false))
{
while (!token.empty() && token.front() == ' ')
token.remove_prefix(1);
while (!token.empty() && token.back() == ' ')
token.remove_suffix(1);
if (Optional<uint32> itemId = Trinity::StringTo<uint32>(token); itemId && *itemId)
_excludedItemIds.insert(*itemId);
else if (!token.empty())
TC_LOG_ERROR("server.loading", "AuctionHouseBot.Buyer.ExcludeItemIDs: '{}' is not an item id, ignored", token);
}
}
}
void LoadConfig()
@@ -118,11 +169,23 @@ void LoadConfig()
_fair = sConfigMgr->GetBoolDefault("AuctionHouseBot.Buyer.FairPricing", false);
_fairMinChance = std::clamp(sConfigMgr->GetFloatDefault("AuctionHouseBot.Buyer.FairMinChance", 35.0f), 0.0f, 100.0f);
_dropFloorPerLevel = sConfigMgr->GetIntDefault("AuctionHouseBot.Buyer.DropFloorPerLevel", 100);
_excludeVendorItems = sConfigMgr->GetBoolDefault("AuctionHouseBot.Buyer.ExcludeUnlimitedVendorItems", true);
if (_excludeVendorItems)
BuildVendorItems();
else
_vendorItems.clear();
ParseExcludedItemIds();
TC_LOG_INFO("ahbot", "AHBot buyer: leaves alone {} unlimited vendor items and {} listed item ids", _vendorItems.size(), _excludedItemIds.size());
TC_LOG_INFO("ahbot", "AHBot buyer: stackable items {}, fair pricing {}, price cap x{:.2f}, delay {}-{} s, max {} per hour, budget {}g a day, drop floor {} copper per item level",
_stacks ? "on" : "off", _fair ? "on" : "off", _maxPriceMultiplier, _minDelay, _maxDelay, _maxBuysPerHour, _dailyBudget / GOLD, _dropFloorPerLevel);
}
bool Excluded(uint32 itemId)
{
return _vendorItems.contains(itemId) || _excludedItemIds.contains(itemId);
}
bool StacksEnabled()
{
return _stacks;
@@ -28,6 +28,10 @@ namespace AuctionBotBuyerPolicy
{
TC_GAME_API void LoadConfig();
// Never bought: items a spawned vendor sells for gold with unlimited stock (Buyer.ExcludeUnlimitedVendorItems, on by default),
// and the item ids listed in Buyer.ExcludeItemIDs. Only the buyer; the seller is not affected.
TC_GAME_API bool Excluded(uint32 itemId);
// Buyer.Commodities (older name Buyer.Stacks): stackable listings (herbs, ore, cloth...) can be bought, always the whole listing.
TC_GAME_API bool StacksEnabled();
@@ -689,12 +689,23 @@ void AuctionBotSeller::SetPricesOfItem(ItemTemplate const* itemProto, SellerConf
basePriceFloat *= priceRatio;
float range = basePriceFloat * 0.04f;
float bidPercentage = frand(sAuctionBotConfig->GetConfig(CONFIG_AHBOT_BIDPRICE_MIN), sAuctionBotConfig->GetConfig(CONFIG_AHBOT_BIDPRICE_MAX));
// AuctionHouseBot.Vanilla.MarketPrices: priced to the copper like player listings (a piece of Linen Cloth is 24c;
// rounding to whole silver made a single one 1s and a stack of 3 33c a piece), never below what a vendor pays
if (AuctionBotVanilla::MarketUnitPrice(itemProto))
{
uint32 const vendorFloor = itemProto->GetSellPrice() * stackCount;
buyout = std::max<uint32>({ static_cast<uint32>(frand(basePriceFloat - range, basePriceFloat + range) + 0.5f), vendorFloor, 1 });
bid = std::max<uint32>({ static_cast<uint32>(bidPercentage * buyout), vendorFloor, 1 });
bid = std::min(bid, buyout);
return;
}
buyout = (static_cast<uint32>(frand(basePriceFloat - range, basePriceFloat + range) + 0.5f) / SILVER) * SILVER;
if (buyout == 0)
buyout = SILVER;
float bidPercentage = frand(sAuctionBotConfig->GetConfig(CONFIG_AHBOT_BIDPRICE_MIN), sAuctionBotConfig->GetConfig(CONFIG_AHBOT_BIDPRICE_MAX));
bid = (static_cast<uint32>(bidPercentage * buyout) / SILVER) * SILVER;
if (bid == 0)
bid = SILVER;
@@ -17,10 +17,14 @@
#include "AuctionHouseBotVanilla.h"
#include "Config.h"
#include "DatabaseEnv.h"
#include "ItemTemplate.h"
#include "Log.h"
#include "SharedDefines.h"
#include "Timer.h"
#include <algorithm>
#include <array>
#include <unordered_map>
namespace AuctionBotVanilla
{
@@ -38,6 +42,35 @@ namespace
// AuctionHouseBot.Vanilla.ValueCurve.FullValueItemLevel: below this item level the curve scales down in proportion
// (item level / this), so low-level goods are not priced like endgame ones (0 = off)
uint32 _fullValueItemLevel = 0;
// AuctionHouseBot.Vanilla.MarketPrices: per-unit market prices from the world table auctionhousebot_market_price
bool _marketPrices = false;
float _marketScale = 1.0f;
std::unordered_map<uint32, uint64> _marketPrice;
void LoadMarketPrices()
{
_marketPrice.clear();
if (!_marketPrices)
return;
uint32 oldMSTime = getMSTime();
PreparedQueryResult result = WorldDatabase.Query(WorldDatabase.GetPreparedStatement(WORLD_SEL_AUCTIONHOUSEBOT_MARKET_PRICES));
if (!result)
{
TC_LOG_INFO("ahbot", "AHBot: AuctionHouseBot.Vanilla.MarketPrices is on but auctionhousebot_market_price is empty; "
"item prices come from the value curve or the vendor price.");
return;
}
do
{
Field* fields = result->Fetch();
_marketPrice[fields[0].GetUInt32()] = fields[1].GetUInt64();
} while (result->NextRow());
TC_LOG_INFO("ahbot", "AHBot: loaded {} item market prices in {} ms", _marketPrice.size(), GetMSTimeDiffToNow(oldMSTime));
}
}
void LoadConfig()
@@ -53,6 +86,9 @@ void LoadConfig()
QualityFactor[4] = sConfigMgr->GetIntDefault("AuctionHouseBot.Vanilla.ValueCurve.Epic", 150);
_scale = std::clamp(sConfigMgr->GetFloatDefault("AuctionHouseBot.Vanilla.ValueCurve.Scale", 1.0f), 0.1f, 10.0f);
_fullValueItemLevel = sConfigMgr->GetIntDefault("AuctionHouseBot.Vanilla.ValueCurve.FullValueItemLevel", 0);
_marketPrices = sConfigMgr->GetBoolDefault("AuctionHouseBot.Vanilla.MarketPrices", false);
_marketScale = std::clamp(sConfigMgr->GetFloatDefault("AuctionHouseBot.Vanilla.MarketPrices.Scale", 1.0f), 0.1f, 10.0f);
LoadMarketPrices();
}
bool Enabled()
@@ -92,8 +128,35 @@ bool IsAllowed(ItemTemplate const* proto)
return true;
}
uint64 MarketUnitPrice(ItemTemplate const* proto)
{
if (!_marketPrices)
return 0;
auto itr = _marketPrice.find(proto->GetId());
if (itr == _marketPrice.end())
return 0;
// The only floor is what a vendor pays for the item (SellPrice is per item, ammo included): below it, buying from the
// auction house and selling to a vendor would make money. The buy price and the 4x sell price are stand-ins for items
// with no known price; live players list most cloth, leather, herbs and ore well below them (Linen Cloth 24c a piece,
// its stand-in 55c), so using them here would throw the market price away for more than half of the items.
return std::max<uint64>({ uint64(double(itr->second) * _marketScale), uint64(proto->GetSellPrice()), 1 });
}
void SetMarketPrices(std::unordered_map<uint32, uint64> prices, float scale)
{
_marketPrices = !prices.empty();
_marketScale = std::clamp(scale, 0.1f, 10.0f);
_marketPrice = std::move(prices);
}
uint64 UnitValue(ItemTemplate const* proto)
{
// a known market price wins over the curve
if (uint64 market = MarketUnitPrice(proto))
return market;
if (!_valueCurve)
return 0;
@@ -19,6 +19,7 @@
#define AUCTION_HOUSE_BOT_VANILLA_H
#include "Define.h"
#include <unordered_map>
struct ItemTemplate;
@@ -34,8 +35,17 @@ namespace AuctionBotVanilla
// False for anything that is not level-60 vanilla content; always true while the filter is off.
bool IsAllowed(ItemTemplate const* proto);
// AuctionHouseBot.Vanilla.ValueCurve = 1: per-unit market value in copper from item level, quality and class,
// never below the vendor price. 0 while the curve is off (callers keep the vendor price).
// AuctionHouseBot.Vanilla.MarketPrices = 1 and the item has a row in auctionhousebot_market_price: that per-unit price in
// copper (x MarketPrices.Scale), never below what a vendor pays for the item. 0 otherwise.
uint64 MarketUnitPrice(ItemTemplate const* proto);
// Replaces the loaded market prices (item id -> copper per unit) and switches them on, without the database
// (unit tests). An empty map switches them off.
void SetMarketPrices(std::unordered_map<uint32, uint64> prices, float scale = 1.0f);
// Per-unit market value in copper: MarketUnitPrice when the item has one; otherwise, with
// AuctionHouseBot.Vanilla.ValueCurve = 1, from item level, quality and class, never below the vendor price.
// 0 when neither applies (callers keep the vendor price).
uint64 UnitValue(ItemTemplate const* proto);
}
@@ -250,6 +250,15 @@ void TempSummon::InitStats(WorldObject* summoner, Milliseconds duration)
// Classic 1.60 (vanilla): a creature's summoned pet, guardian or totem has the caster's level (plus the spell's offset), not the fixed
// vanilla level of its creature (VMaNGOS Spell::EffectSummonPet / EffectSummonGuardian): Twilight Shadowmages (26) summoned level 47 voidwalkers
bool classicCasterLevel = false;
// A totem always has its caster's level (VMaNGOS Totem::Summon: SetLevel(owner->GetLevel())). The vanilla level of the totem's creature
// is the level of the spell rank that summons it, so a level 40 shaman's Stoneskin Totem was level 9 and its Searing Totem level 19 at
// any caster level: mobs drew a level 9 totem from 15 + 11 yards away and went for it instead of the player (6_1_8_8_1, Discord bugs 3
// #6 "totems have an unusually large aggro range"), and a low totem's spells missed and were resisted far more.
if (IsTotem() && sObjectMgr->GetCreatureClassicLevel(GetEntry()))
{
level = uint8(std::clamp<int32>(unitSummoner->GetLevel(), 1, STRONG_MAX_LEVEL));
classicCasterLevel = true;
}
if (unitSummoner->IsCreature() && !unitSummoner->IsCharmedOwnedByPlayerOrPlayer() && sObjectMgr->GetCreatureClassicLevel(GetEntry()))
{
if (int8 const* offset = sObjectMgr->GetSpellClassicSummonLevelOffset(m_unitData->CreatedBySpell))
@@ -263,6 +272,16 @@ void TempSummon::InitStats(WorldObject* summoner, Milliseconds duration)
}
}
// Classic 1.60 (vanilla): a player's totem has the player's level (cMaNGOS / VMaNGOS EffectSummonTotem: the totem's level is the
// caster's). A totem template whose content tuning holds it to a low level made a level 1 totem, and a creature's aggro radius
// grows a yard for every level its target is below it (Creature::GetAttackDistance, up to 45 yd): mobs ran at a shaman's
// Stoneskin Totem from across the camp (Discord 2026-11-16, "totems with a huge aggro range").
if (!classicCasterLevel && IsTotem() && unitSummoner->IsPlayer())
{
level = std::max<uint8>(unitSummoner->GetLevel(), 1);
classicCasterLevel = true;
}
ApplyLevelScaling(unitSummoner->m_unitData->ContentTuningID, unitSummoner->m_unitData->ScalingLevelDelta);
if (classicCasterLevel)
{
@@ -4728,6 +4728,7 @@ public:
int64 GetPackedRotation() const override { return _owner->GetPackedLocalRotation(); }
float GetScale() const override { return _owner->GetObjectScale(); }
void DebugVisualizeCorner(G3D::Vector3 const& corner) const override { _owner->SummonCreature(1, corner.x, corner.y, corner.z, 0, TEMPSUMMON_MANUAL_DESPAWN); }
bool IsDoor() const override { return _owner->GetGoType() == GAMEOBJECT_TYPE_DOOR; }
private:
GameObject* _owner;
@@ -96,12 +96,15 @@ bool ItemTemplate::CanChangeEquipStateInCombat() const
uint32 ItemTemplate::GetSkill() const
{
// Classic 1.60: Thrown (SkillLine 176) is a weapon skill again; retail dropped it, so a thrown weapon had no skill at all:
// it never missed and its skill never rose (Discord, checkitout1333 2026-11-17, an Undead rogue's Thrown stayed at 1)
static constexpr uint32 SkillThrown = 176;
static constexpr uint32 ItemWeaponSkills[MAX_ITEM_SUBCLASS_WEAPON] =
{
SKILL_AXES, SKILL_TWO_HANDED_AXES, SKILL_BOWS, SKILL_GUNS, SKILL_MACES,
SKILL_TWO_HANDED_MACES, SKILL_POLEARMS, SKILL_SWORDS, SKILL_TWO_HANDED_SWORDS, SKILL_WARGLAIVES,
SKILL_STAVES, 0, 0, SKILL_FIST_WEAPONS, 0,
SKILL_DAGGERS, 0, 0, SKILL_CROSSBOWS, SKILL_WANDS,
SKILL_DAGGERS, SkillThrown, 0, SKILL_CROSSBOWS, SKILL_WANDS,
SKILL_FISHING
};
@@ -12581,6 +12581,16 @@ Item* Player::EquipItem(uint16 pos, Item* pItem, bool update)
_ApplyItemMods(pItem, slot, true);
// Classic 1.60: a weapon put in a hand starts that hand's swing from the beginning (vanilla; live's main hand does this, and its
// off-hand starting at about 45% is reported as a bug: forever-bugs #126). Our timers kept running through the swap, so a swap
// right after a swing gave a free early swing with the new weapon.
if (pProto && pProto->GetClass() == ITEM_CLASS_WEAPON)
{
WeaponAttackType const attType = Player::GetAttackBySlot(slot, pProto->GetInventoryType());
if (attType != MAX_ATTACK)
resetAttackTimer(attType);
}
if (pProto && IsInCombat() && (pProto->GetClass() == ITEM_CLASS_WEAPON || pProto->GetInventoryType() == INVTYPE_RELIC) && m_weaponChangeTimer == 0)
{
uint32 cooldownSpell = GetClass() == CLASS_ROGUE ? 6123 : 6119;
+12 -2
View File
@@ -738,7 +738,15 @@ bool Unit::IsWithinMeleeRangeAt(Position const& pos, Unit const* obj) const
float dx = pos.GetPositionX() - obj->GetPositionX();
float dy = pos.GetPositionY() - obj->GetPositionY();
// Height counts from body to body, not from feet to feet: while the two bodies overlap in height there is no vertical
// gap. Feet to feet put a player swimming level with a mob's head, or a mob standing on the sea floor under a swimmer,
// out of reach although they touched: auto attack never swung under water, on either side (Discord 2026-11-16, also the
// Wailing Caverns lizards on uneven ground).
float dz = pos.GetPositionZ() - obj->GetPositionZ();
if (dz > 0.0f)
dz = std::max(0.0f, dz - obj->GetCollisionHeight());
else
dz = std::min(0.0f, dz + GetCollisionHeight());
float distsq = dx*dx + dy*dy + dz*dz;
float maxdist = GetMeleeRange(obj) + GetTotalAuraModifier(SPELL_AURA_MOD_AUTOATTACK_RANGE);
@@ -11481,10 +11489,12 @@ Unit* Unit::SelectNearbyTarget(Unit* exclude, float dist) const
if (exclude)
targets.remove(exclude);
// remove not LoS targets
// remove not LoS targets, and units that cannot be attacked: "not friendly" also takes in neutral units that are immune to
// players, not attackable, evading or not selectable, and an extra strike on one of those lands as a hit that neither hurts
// nor pulls it (Blade Flurry and Sweeping Strikes on a second neutral mob, voldemargreed, Discord bugs 4, 17 Nov)
for (std::list<Unit*>::iterator tIter = targets.begin(); tIter != targets.end();)
{
if (!IsWithinLOSInMap(*tIter) || (*tIter)->IsTotem() || (*tIter)->IsSpiritService() || (*tIter)->IsCritter())
if (!IsWithinLOSInMap(*tIter) || (*tIter)->IsTotem() || (*tIter)->IsSpiritService() || (*tIter)->IsCritter() || !IsValidAttackTarget(*tIter))
targets.erase(tIter++);
else
++tIter;
@@ -360,6 +360,7 @@ void WorldSession::HandleSetRoleOpcode(WorldPackets::Party::SetRole& packet)
group->BroadcastPacket(roleChangedInform.Write(), false);
group->SetLfgRoles(packet.TargetGUID, packet.Role);
GroupFinderListings::OnGroupChanged(group); // the group's Group Finder post in Discord shows the new role
sScriptMgr->OnGroupMemberRoleSet(group, GetPlayer()->GetGUID(), packet.TargetGUID, oldRole, packet.Role);
}
else
SendPacket(roleChangedInform.Write());
@@ -22,6 +22,12 @@
#include "MapUtils.h"
#include "World.h"
namespace
{
// TactKey.db2
constexpr uint32 TactKeyTableHash = 0xDF2F53CF;
}
void WorldSession::HandleDBQueryBulk(WorldPackets::Hotfix::DBQueryBulk& dbQuery)
{
DB2StorageBase const* store = sDB2Manager.GetStorage(dbQuery.TableHash);
@@ -50,6 +56,12 @@ void WorldSession::HandleDBQueryBulk(WorldPackets::Hotfix::DBQueryBulk& dbQuery)
{
TC_LOG_TRACE("network", "CMSG_DB_QUERY_BULK: {} requested non-existing entry {} in datastore: {}", GetPlayerInfo(), record.RecordID, dbQuery.TableHash);
dbReply.Timestamp = GameTime::GetGameTime();
// A TACT key we don't hold: answer "not public", as live does for every key Blizzard hasn't released. A client
// with an empty hotfix cache asks for dozens of them while entering the world, and the 1.60.1.70938 client
// crashes (null read) after a batch of Invalid answers for TactKey.
if (dbQuery.TableHash == TactKeyTableHash)
dbReply.Status = DB2Manager::HotfixRecord::Status::NotPublic;
}
SendPacket(dbReply.Write());
+49
View File
@@ -1790,6 +1790,41 @@ bool Map::isInLineOfSight(PhaseShift const& phaseShift, float x1, float y1, floa
return true;
}
bool Map::FindClosedDoorOnSegment(PhaseShift const& phaseShift, G3D::Vector3 const& from, G3D::Vector3 const& to, G3D::Vector3& hit) const
{
G3D::Vector3 const delta = to - from;
float const length = delta.magnitude();
if (length < 0.01f)
return false;
G3D::Ray const ray = G3D::Ray::fromOriginAndDirection(from, delta / length);
// every grid the leg's box covers: a long leg (a straight shortcut) can cross a corner grid neither end lies in
GridCoord const a = Trinity::ComputeGridCoord(from.x, from.y);
GridCoord const b = Trinity::ComputeGridCoord(to.x, to.y);
float best = length;
bool found = false;
for (uint32 gx = std::min(a.x_coord, b.x_coord); gx <= std::max(a.x_coord, b.x_coord); ++gx)
{
for (uint32 gy = std::min(a.y_coord, b.y_coord); gy <= std::max(a.y_coord, b.y_coord); ++gy)
{
for (GameObjectModel const* model : GetGameObjectModelsInGrid((MAX_NUMBER_OF_GRIDS - 1) - gx, (MAX_NUMBER_OF_GRIDS - 1) - gy))
{
if (!model->IsDoor() || !model->IsCollisionEnabled())
continue;
float dist = best;
if (model->IntersectRay(ray, dist, true, phaseShift, VMAP::ModelIgnoreFlags::Nothing) && dist <= best)
{
best = dist;
found = true;
}
}
}
}
if (found)
hit = from + ray.direction() * best;
return found;
}
bool Map::getObjectHitPos(PhaseShift const& phaseShift, float x1, float y1, float z1, float x2, float y2, float z2, float& rx, float& ry, float& rz, float modifyDist)
{
G3D::Vector3 startPos(x1, y1, z1);
@@ -2046,18 +2081,32 @@ bool Map::CheckRespawn(RespawnInfo* info)
// escort check for creatures only (if the world config boolean is set)
bool const isEscort = (sWorld->getBoolConfig(CONFIG_RESPAWN_DYNAMIC_ESCORTNPC) && data->spawnGroupData->flags & SPAWNGROUP_FLAG_ESCORTQUESTNPC);
// A spawn has one body: it does not come back while its corpse still lies there. The respawn delay and the corpse decay
// are equal for most creatures (Corpse.Decay.Normal 300 s), and a shorter, scaled respawn made the creature stand up again
// beside its own corpse ("the corpse came back to life", Discord 2026-11-09, Dun Morogh). The respawn waits for the corpse
// to decay or be removed; the corpse keeps its loot until then.
bool corpseStillThere = false;
auto range = _creatureBySpawnIdStore.equal_range(info->spawnId);
for (auto it = range.first; it != range.second; ++it)
{
Creature* creature = it->second;
if (!creature->IsAlive())
{
if (creature->getDeathState() == CORPSE && !creature->IsSummon())
corpseStillThere = true;
continue;
}
// escort NPCs are allowed to respawn as long as all other instances are already escorting
if (isEscort && creature->IsEscorted())
continue;
alreadyExists = true;
break;
}
if (!alreadyExists && corpseStillThere)
{
info->respawnTime = GameTime::GetGameTime() + 1; // look again next second
return false;
}
break;
}
case SPAWN_TYPE_GAMEOBJECT:
+4
View File
@@ -507,6 +507,10 @@ class TC_GAME_API Map : public GridRefManager<NGridType>
BattlegroundMap const* ToBattlegroundMap() const { return IsBattlegroundOrArena() ? reinterpret_cast<BattlegroundMap const*>(this) : nullptr; }
bool isInLineOfSight(PhaseShift const& phaseShift, float x1, float y1, float z1, float x2, float y2, float z2, LineOfSightChecks checks, VMAP::ModelIgnoreFlags ignoreFlags) const;
// The first closed door (a GAMEOBJECT_TYPE_DOOR with its collision on) the segment from `from` to `to` runs into, seen from this
// phase: true with `hit` set to where it meets it. The navmesh is baked without doors, so a path can cross one.
// Map or world thread only: the door models change in Map::Update.
bool FindClosedDoorOnSegment(PhaseShift const& phaseShift, G3D::Vector3 const& from, G3D::Vector3 const& to, G3D::Vector3& hit) const;
void Balance() { _dynamicTree.balance(); }
void RemoveGameObjectModel(GameObjectModel const& model) { _dynamicTree.remove(model); }
void InsertGameObjectModel(GameObjectModel const& model) { _dynamicTree.insert(model); }
+82 -2
View File
@@ -26,10 +26,14 @@
#include "Memory.h"
#include "MoveSpline.h"
#include "ObjectAccessor.h"
#include "Map.h"
#include "PathGenerator.h"
#include "PhasingHandler.h"
#include "Player.h"
#include "ScriptSystem.h"
#include "Types.h"
#include "VMapFactory.h"
#include "VMapManager.h"
#include <boost/container/static_vector.hpp>
#include <algorithm>
#include <iterator>
@@ -786,6 +790,79 @@ void MotionMaster::MoveCharge(PathGenerator const& path, float speed /*= SPEED_C
init.Launch();
}
// Where a unit thrown `dist` yards along `relAngle` (relative to its orientation, as MovePositionToFirstCollision takes it) on an arc
// `maxHeight` above its start comes down: the straight line up to the apex and down to the landing point, cut where it meets a wall
// (static and dynamic geometry), and the floor under that point. The mmap raycast stops at the navmesh's edge: Magnetic Pull (28337)
// left a bot tank on its own platform, thrown straight up, while the client's pull flies it over the slime to the other add
// (naxx_thaddius 1118 r2: both tanks came down where they stood, Stalagg and Feugen walked across the room to each other's tank, and the
// raid wiped). False when no floor is found under the landing point (over the void): the caller keeps the raycast.
static bool KnockbackFlightLanding(Unit const* owner, Position& dest, float dist, float relAngle, float maxHeight)
{
Map* map = owner->GetMap();
PhaseShift const& phaseShift = owner->GetPhaseShift();
float const angle = relAngle + owner->GetOrientation();
float const sx = dest.GetPositionX(), sy = dest.GetPositionY(), sz = dest.GetPositionZ();
float ex = sx + dist * std::cos(angle);
float ey = sy + dist * std::sin(angle);
if (!Trinity::IsValidMapCoord(ex, ey))
return false;
float const halfHeight = owner->GetCollisionHeight() * 0.5f;
uint32 const terrainMapId = PhasingHandler::GetTerrainMapId(phaseShift, map->GetId(), map->GetTerrain(), sx, sy);
auto const hit = [&](float x1, float y1, float z1, float& x2, float& y2, float& z2)
{
float rx = x2, ry = y2, rz = z2;
bool col = VMAP::VMapFactory::createOrGetVMapManager()->getObjectHitPos(terrainMapId, x1, y1, z1, x2, y2, z2, rx, ry, rz, -0.5f);
float dx = rx, dy = ry, dz = rz;
if (map->getObjectHitPos(phaseShift, x1, y1, z1, rx, ry, rz, dx, dy, dz, -0.5f))
col = true;
if (col)
{
x2 = dx;
y2 = dy;
z2 = dz;
}
return col;
};
// The flight is checked along its arc, as the client flies it: a parabola `maxHeight` above the line from the start to the landing
// floor, in kArcSteps straight pieces. A straight line 5 y up (0061) met the edge of Stalagg's platform at once: naxx_thaddius 1118 r3,
// both tanks still thrown straight up (Mctankwa at z 321.5 over its own spot) and the adds walked across to them.
constexpr int kArcSteps = 8;
float const apex = std::max(maxHeight, 0.0f);
float const searchFrom = sz + halfHeight + apex;
float const searchDist = searchFrom - sz + 50.0f;
float const endFloor = map->GetHeight(phaseShift, ex, ey, searchFrom, true, searchDist);
if (endFloor <= INVALID_HEIGHT)
return false;
float const z0 = sz + halfHeight, z1 = endFloor + halfHeight;
float const fx = ex, fy = ey;
float px = sx, py = sy, pz = z0;
bool met = false;
for (int i = 1; i <= kArcSteps && !met; ++i)
{
float const t = float(i) / float(kArcSteps);
float qx = sx + (fx - sx) * t, qy = sy + (fy - sy) * t, qz = z0 + (z1 - z0) * t + 4.0f * apex * t * (1.0f - t);
if (hit(px, py, pz, qx, qy, qz))
{
met = true;
ex = qx;
ey = qy;
// Back off the wall it met.
float const back = std::min(CONTACT_DISTANCE, std::hypot(ex - sx, ey - sy));
ex -= back * std::cos(angle);
ey -= back * std::sin(angle);
}
px = qx;
py = qy;
pz = qz;
}
// Down to the floor under the landing point.
float const landZ = map->GetHeight(phaseShift, ex, ey, met ? pz : z1 + 2.0f, true, searchDist);
if (landZ <= INVALID_HEIGHT)
return false;
dest.Relocate(ex, ey, landZ);
return true;
}
void MotionMaster::MoveKnockbackFrom(Position const& origin, float speedXY, float speedZ, float angle /*= M_PI*/, Movement::SpellEffectExtraData const* spellEffectExtraData /*= nullptr*/)
{
if (std::abs(speedXY) < 0.01f && std::abs(speedZ) < 0.01f)
@@ -811,8 +888,11 @@ void MotionMaster::MoveKnockbackFrom(Position const& origin, float speedXY, floa
if (dist > 0.01f)
{
// Use a mmap raycast to get a valid destination.
_owner->MovePositionToFirstCollision(dest, dist, o);
// A player reaches here only when it is a bot (Unit::KnockbackFrom: a client flies its own knockback). It is thrown through the
// air as a client is, over gaps and drops the navmesh does not cross; a creature keeps the mmap raycast.
if (!_owner->IsPlayer() || !KnockbackFlightLanding(_owner, dest, dist, o, max_height))
// Use a mmap raycast to get a valid destination.
_owner->MovePositionToFirstCollision(dest, dist, o);
path.push_back(PositionToVector3(dest));
}
else
+225 -2
View File
@@ -27,6 +27,9 @@
#include "Map.h"
#include "Metric.h"
#include "PhasingHandler.h"
#include "StringFormat.h"
#include "VMapFactory.h"
#include "VMapManager.h"
#include "Player.h"
#include "World.h"
#include "WorldSession.h"
@@ -156,21 +159,80 @@ PathGenerator::~PathGenerator()
}
PathGenerator::LiquidRouteCheck PathGenerator::_liquidRouteCheck = nullptr;
PathGenerator::ClosedDoorCheck PathGenerator::_closedDoorCheck = nullptr;
// A source whose paths keep clear of closed doors (the ClosedDoorCheck says so): each leg of the route is tested against the
// map's closed doors; the corridor polygon under a door is left out and the route searched again. Without a route that misses
// every closed door, the target is unreachable for now: PATHFIND_NOPATH.
bool PathGenerator::CalculatePath(float srcX, float srcY, float srcZ, float destX, float destY, float destZ, bool forceDest)
{
_avoidedClosedDoor = false;
_filter.ClearExcludedPolys();
bool ok = CalculateLiquidAwarePath(srcX, srcY, srcZ, destX, destY, destZ, forceDest);
if (!ok || forceDest || (_type & (PATHFIND_NOPATH | PATHFIND_NOT_USING_PATH)) || !_closedDoorCheck || !_closedDoorCheck(_source))
return ok;
G3D::Vector3 hit;
for (uint32 detour = 0; FindClosedDoorOnPath(hit); ++detour)
{
_avoidedClosedDoor = true;
dtPolyRef doorPoly = INVALID_POLYREF;
if (detour < MAX_CLOSED_DOOR_DETOURS && _polyLength > 2)
{
float const point[VERTEX_SIZE] = { hit.y, hit.z - 1.0f, hit.x }; // back down to the path (FindClosedDoorOnPath)
float distance = 0.0f;
NavExecGuard navGuard(NavExecLock(_source->GetMapId()));
doorPoly = GetPathPolyByPosition(_pathPolyRefs, _polyLength, point, &distance);
}
// the door stands on the source's or the target's own polygon, or the detours ran out: no route around it
if (doorPoly == INVALID_POLYREF || doorPoly == _pathPolyRefs[0] || doorPoly == _pathPolyRefs[_polyLength - 1])
{
BuildShortcut();
_type = PATHFIND_NOPATH;
break;
}
_filter.ExcludePoly(doorPoly);
Clear(); // a fresh search: BuildPolyPath would otherwise cut the new route out of the old corridor
ok = CalculateLiquidAwarePath(srcX, srcY, srcZ, destX, destY, destZ, forceDest);
if (!ok || (_type & PATHFIND_NOPATH))
break;
}
_filter.ClearExcludedPolys();
return ok;
}
// Each leg is tested a yard above the path, the height the source walks through: the floor under the door frame is not the door.
bool PathGenerator::FindClosedDoorOnPath(G3D::Vector3& hit) const
{
Map const* map = _source->GetMap();
if (!map)
return false;
G3D::Vector3 const lift(0.0f, 0.0f, 1.0f);
for (std::size_t i = 1; i < _pathPoints.size(); ++i)
if (map->FindClosedDoorOnSegment(_source->GetPhaseShift(), _pathPoints[i - 1] + lift, _pathPoints[i] + lift, hit))
return true;
return false;
}
// A source that keeps out of liquid (the LiquidRouteCheck says so): when the first route touches liquid, a land-only route is
// searched (water polygons excluded) and used when it exists and is dry; otherwise the first route is kept and IsWetRoute() says so.
bool PathGenerator::CalculatePath(float srcX, float srcY, float srcZ, float destX, float destY, float destZ, bool forceDest)
// Each search after the first starts from a cleared corridor: BuildPolyPath cuts a route out of the previous corridor when both
// end polygons are on it, and that cut never asks the filter.
bool PathGenerator::CalculateLiquidAwarePath(float srcX, float srcY, float srcZ, float destX, float destY, float destZ, bool forceDest)
{
_wetRoute = false;
bool ok = CalculatePathImpl(srcX, srcY, srcZ, destX, destY, destZ, forceDest);
if (!ok || (_type & PATHFIND_NOPATH) || !_liquidRouteCheck || !_liquidRouteCheck(_source, _pathPoints, CrossesWaterPolys()))
if (!ok || (_type & PATHFIND_NOPATH) || _ignoreLiquidRouteCheck || !_liquidRouteCheck ||
!_liquidRouteCheck(_source, _pathPoints, CrossesWaterPolys()))
return ok;
_avoidWater = true;
Clear();
bool const dry = CalculatePathImpl(srcX, srcY, srcZ, destX, destY, destZ, forceDest) && !(_type & PATHFIND_NOPATH)
&& !_liquidRouteCheck(_source, _pathPoints, CrossesWaterPolys());
_avoidWater = false;
if (dry)
return true;
Clear();
ok = CalculatePathImpl(srcX, srcY, srcZ, destX, destY, destZ, forceDest); // restore the first route
_wetRoute = true;
return ok;
@@ -205,6 +267,8 @@ bool PathGenerator::CalculatePathImpl(float srcX, float srcY, float srcZ, float
_forceDestination = forceDest;
_pathTraversesOffMesh = false; // recomputed per path by FindSmoothPath
_diveRefusal.clear();
_incompleteReason.clear();
TC_LOG_DEBUG("maps.mmaps", "++ PathGenerator::CalculatePath() for {}", _source->GetGUID().ToString());
@@ -465,6 +529,8 @@ void PathGenerator::BuildPolyPath(G3D::Vector3 const& startPos, G3D::Vector3 con
}
_type = PathType(PATHFIND_INCOMPLETE);
_incompleteReason = Trinity::StringFormat("far from the navmesh: the start {:.2f} yd, the destination {:.2f} yd from its polygon",
distToStartPoly, distToEndPoly);
AddFarFromPolyFlags(startFarFromPoly, endFarFromPoly);
}
@@ -725,7 +791,24 @@ void PathGenerator::BuildPolyPath(G3D::Vector3 const& startPos, G3D::Vector3 con
if (_pathPolyRefs[_polyLength - 1] == endPoly && !(_type & PATHFIND_INCOMPLETE))
_type = PATHFIND_NORMAL;
else
{
if (_pathPolyRefs[_polyLength - 1] != endPoly)
{
// the polygon route stops on another polygon: name both, with their flags and heights over the destination
auto describe = [&](dtPolyRef ref) -> std::string
{
unsigned short flags = 0;
_navMesh->getPolyFlags(ref, &flags);
float h = 0.0f;
if (dtStatusSucceed(_navMeshQuery->getPolyHeight(ref, endPoint, &h)))
return Trinity::StringFormat("0x{:X} flags 0x{:X} height {:.2f} over the destination", uint64(ref), uint32(flags), h);
return Trinity::StringFormat("0x{:X} flags 0x{:X}, not over the destination", uint64(ref), uint32(flags));
};
_incompleteReason = Trinity::StringFormat("the polygon route ({} polygons) stops on polygon {}; the destination's polygon is {}, "
"{:.2f} yd away", _polyLength, describe(_pathPolyRefs[_polyLength - 1]), describe(endPoly), distToEndPoly);
}
_type = PATHFIND_INCOMPLETE;
}
AddFarFromPolyFlags(startFarFromPoly, endFarFromPoly);
@@ -813,6 +896,8 @@ void PathGenerator::BuildPointPath(const float *startPoint, const float *endPoin
RemoveNearCoincidentPathPoints();
SetActualEndPosition(_pathPoints.back());
_type = PathType(_type | PATHFIND_INCOMPLETE);
if (_incompleteReason.empty())
_incompleteReason = pointCount >= _pointPathLimit ? "the point budget ran out" : "the smooth path stopped partway along the polygons";
return;
}
@@ -828,6 +913,144 @@ void PathGenerator::BuildPointPath(const float *startPoint, const float *endPoin
// first point is always our current location - we need the next one
SetActualEndPosition(_pathPoints[pointCount-1]);
// A swimmer whose destination is under the water: the navmesh water polygons lie on the surface, so the path ended on the
// surface above it, up to the polygon search height away. A unit chasing a mob there arrived over it, out of melee reach in 3D,
// and stood still with its attack refused: grouped bots "freeze" on Attack against naga under the reef (gefest, Discord
// 2026-11-17, Treacherous Reef). Where the surface polygons stop short of the point over the destination (a bank, a pier), the
// path ended up to 4.9 yd away and was marked incomplete (PC chargepath, Theramore 2026-11-17/18). The path ends the way a
// swimming player goes, at most kDiveAcross from where it ended: across at that height and then straight down, or, where a
// model stands on the way across (a pier over the water), straight down first and then across under the water, or in one
// straight leg. Every leg keeps clear of models and above the ground, and a leg under the surface stays in the water. Once the
// destination is reached, the path is complete. DiveRefusal() names what turned each try down, and for a model on the way its spawn
// and where the line hit it (.mmap chargepath prints it).
_diveRefusal.clear();
if (!_forceDestination && (_type & (PATHFIND_NORMAL | PATHFIND_INCOMPLETE)) && pointCount >= 2)
{
G3D::Vector3 const& end = GetEndPosition();
G3D::Vector3 const last = _pathPoints[pointCount - 1];
Unit const* swimmer = _source->ToUnit();
Map* map = _source->GetMap();
PhaseShift const& phase = _source->GetPhaseShift();
constexpr float kDiveAcross = 10.0f; // a short swim; past it the surface polygons should carry the path
float const across = std::sqrt((end.x - last.x) * (end.x - last.x) + (end.y - last.y) * (end.y - last.y));
// A leg from a to b: no model across it, never below the ground, and (underWater) in the water at every yard. A refused leg
// says why in `why`, a model with its spawn and the point the line hit it.
auto legClear = [&](G3D::Vector3 const& from, G3D::Vector3 const& to, bool underWater, std::string& why) -> bool
{
if ((to - from).magnitude() < 0.1f)
return true;
if (!map->isInLineOfSight(phase, from.x, from.y, from.z + 0.3f, to.x, to.y, to.z + 0.3f, LINEOFSIGHT_CHECK_VMAP, VMAP::ModelIgnoreFlags::Nothing))
{
float hx = 0.0f, hy = 0.0f, hz = 0.0f, sx = 0.0f, sy = 0.0f, sz = 0.0f;
uint32 spawnId = 0;
uint8 spawnFlags = 0;
if (VMAP::VMapFactory::createOrGetVMapManager()->getFirstModelHit(
PhasingHandler::GetTerrainMapId(phase, map->GetId(), map->GetTerrain(), from.x, from.y), from.x, from.y, from.z + 0.3f,
to.x, to.y, to.z + 0.3f, VMAP::ModelIgnoreFlags::Nothing, hx, hy, hz, spawnId, spawnFlags, sx, sy, sz))
why = Trinity::StringFormat("a model stands on the way (spawn {} flags 0x{:X} at ({:.1f}, {:.1f}, {:.1f}), hit at ({:.2f}, {:.2f}, "
"{:.2f}), {:.2f} yd along the {:.2f} yd leg)", spawnId, uint32(spawnFlags), sx, sy, sz, hx, hy, hz, (G3D::Vector3(hx, hy, hz) - from).magnitude(), (to - from).magnitude());
else
why = "a model stands on the way";
return false;
}
uint32 const steps = std::max<uint32>(1, uint32(std::ceil((to - from).magnitude())));
for (uint32 i = 1; i <= steps; ++i)
{
G3D::Vector3 const q = from + (to - from) * (float(i) / float(steps));
float const ground = map->GetGridHeight(phase, q.x, q.y);
if (ground > INVALID_HEIGHT && q.z < ground - 0.5f)
return why = Trinity::StringFormat("the way runs into the ground at ({:.2f}, {:.2f}, {:.2f}), ground {:.2f}", q.x, q.y, q.z, ground), false;
if (underWater && !map->IsInWater(phase, q.x, q.y, q.z))
return why = Trinity::StringFormat("the way leaves the water at ({:.2f}, {:.2f}, {:.2f})", q.x, q.y, q.z), false;
}
return true;
};
// only a destination under the water below the path's end is a dive; anything else is no business of this step
if (end.z < last.z - 0.5f && map->IsUnderWater(phase, end.x, end.y, end.z))
{
if (!swimmer || !swimmer->CanSwim())
_diveRefusal = "the source cannot swim";
else if (across > kDiveAcross)
_diveRefusal = "the path ends more than 10 yd across from the point over the destination";
else
{
float const groundAtLast = map->GetGridHeight(phase, last.x, last.y);
G3D::Vector3 const over(end.x, end.y, last.z);
G3D::Vector3 const under(last.x, last.y, std::max(end.z, groundAtLast > INVALID_HEIGHT ? groundAtLast + 1.0f : end.z));
std::string acrossWhy, downWhy, straightWhy;
std::vector<G3D::Vector3> legs;
// 1. across, then down
if (!legClear(last, over, false, acrossWhy))
acrossWhy = "across: " + acrossWhy;
else if (!map->IsInWater(phase, over.x, over.y, over.z - 0.5f))
acrossWhy = "the point over the destination is not in the water";
else if (!legClear(over, end, true, acrossWhy))
acrossWhy = "down: " + acrossWhy;
else
legs = { over, end };
// 2. down, then across under the water (a pier over the water)
if (legs.empty())
{
if (under.z >= last.z - 0.5f)
downWhy = "no room to sink where the path ends";
else if (!map->IsInWater(phase, under.x, under.y, under.z))
downWhy = "no water under the path's end";
else if (!legClear(last, under, true, downWhy))
downWhy = "down: " + downWhy;
else if (!legClear(under, end, true, downWhy))
downWhy = "across: " + downWhy;
else
legs = { under, end };
}
// 3. one straight leg
if (legs.empty())
{
if (legClear(last, end, false, straightWhy))
legs = { end };
}
if (legs.empty())
_diveRefusal = Trinity::StringFormat("across then down: {}; down then across: {}; straight: {}", acrossWhy, downWhy, straightWhy);
else
{
for (G3D::Vector3 const& v : legs)
if ((v - _pathPoints[pointCount - 1]).magnitude() >= 0.1f)
{
_pathPoints.push_back(v);
++pointCount;
}
SetActualEndPosition(end);
if (_type & PATHFIND_INCOMPLETE)
_type = PathType((_type & ~PATHFIND_INCOMPLETE) | PATHFIND_NORMAL);
}
}
}
// A swimmer whose destination is under the water and whose route still falls short: the navmesh holds the water as its
// surface and its bed, not the water between, so the polygon route can stop on a surface or bed polygon that does not join
// the destination's (PC step N, Theramore 2026-11-18: a sea-floor point 12 yd away came back incomplete, one 20 yd away
// ended 16 yd short on the surface). A swimming player swims there in a straight line. The source is in the water, the
// whole line stays in it, clear of models and above the ground, as for a far-from-mesh swimmer above. The same holds for a
// complete route that bends: over those layers it can run a long way round (PC step P: 104 yd along the polygons to a point
// 8 yd away, past what a Charge reaches), and the clear straight swim is the shortest way there.
if (((_type & PATHFIND_INCOMPLETE) || pointCount > 2) && swimmer && swimmer->CanSwim() && map->IsUnderWater(phase, end.x, end.y, end.z))
{
G3D::Vector3 const& start = GetStartPosition();
std::string swimWhy;
if (!map->IsInWater(phase, start.x, start.y, start.z))
swimWhy = "the source is not in the water";
else if (legClear(start, end, true, swimWhy))
{
_pathPoints = { start, end };
pointCount = 2;
SetActualEndPosition(end);
_type = PathType((_type & ~PATHFIND_INCOMPLETE) | PATHFIND_NORMAL);
_incompleteReason.clear();
_diveRefusal.clear();
}
if (_type & PATHFIND_INCOMPLETE)
_incompleteReason += (_incompleteReason.empty() ? "" : "; ") + ("no straight swim: " + swimWhy);
}
}
// force the given destination, if needed
if (_forceDestination &&
(!(_type & PATHFIND_NORMAL) || !InRange(GetEndPosition(), GetActualEndPosition(), 1.0f, 1.0f)))
+26
View File
@@ -77,12 +77,30 @@ class TC_GAME_API PathGenerator
// Sources that keep out of liquid (see SetLiquidRouteCheck): the last CalculatePath found only a route through liquid,
// no land route exists.
bool IsWetRoute() const { return _wetRoute; }
// Why the last BuildPointPath added no swim down to a destination under the water (nullptr: it did, or none was asked).
// Empty when the dive leg was built or never needed.
std::string const& DiveRefusal() const { return _diveRefusal; }
// Why the last path came back incomplete (empty when it did not, or for a reason not named here).
std::string const& IncompleteReason() const { return _incompleteReason; }
// Optional check (set by a module): returns true when `source` should keep out of liquid and `path` touches liquid.
// CalculatePath then searches a land-only route and keeps it when it is dry, else keeps the first route (IsWetRoute).
// `waterPolys`: the corridor runs over navmesh water polygons past its first one (the liquid probes miss some of them).
using LiquidRouteCheck = bool(*)(WorldObject const* source, Movement::PointsArray const& path, bool waterPolys);
static void SetLiquidRouteCheck(LiquidRouteCheck check) { _liquidRouteCheck = check; }
// This path goes straight at its target whatever the source's liquid preference (a charge): no land-only search.
void SetIgnoreLiquidRouteCheck(bool ignore) { _ignoreLiquidRouteCheck = ignore; }
// Optional check (set by a module): returns true when `source`'s paths must not run through a closed door. The navmesh
// is baked without game objects, so its corridors cross doors whatever their state. For such a source CalculatePath
// looks for a closed door on each leg of the route and searches again with the door's polygon left out, up to
// MAX_CLOSED_DOOR_DETOURS times; when the target lies only behind a closed door the result is PATHFIND_NOPATH.
// It reads the map's game object models, so it must return false on any thread other than the source map's update
// thread or the world thread while the maps are still.
using ClosedDoorCheck = bool(*)(WorldObject const* source);
static void SetClosedDoorCheck(ClosedDoorCheck check) { _closedDoorCheck = check; }
// The last CalculatePath left out at least one closed door, or found the target only behind one (then PATHFIND_NOPATH).
bool AvoidedClosedDoor() const { return _avoidedClosedDoor; }
bool CalculatePath(float destX, float destY, float destZ, bool forceDest = false);
bool IsInvalidDestinationZ(WorldObject const* target) const;
@@ -150,9 +168,17 @@ class TC_GAME_API PathGenerator
// following). See dtQueryFilterTC.h.
dtQueryFilterTC _filter; // use single filter for all movements, update it when needed
bool _avoidWater = false;
bool _ignoreLiquidRouteCheck = false;
bool _wetRoute = false;
std::string _diveRefusal;
std::string _incompleteReason;
bool _avoidedClosedDoor = false;
bool CalculatePathImpl(float srcX, float srcY, float srcZ, float destX, float destY, float destZ, bool forceDest);
bool CalculateLiquidAwarePath(float srcX, float srcY, float srcZ, float destX, float destY, float destZ, bool forceDest);
bool FindClosedDoorOnPath(G3D::Vector3& hit) const;
static LiquidRouteCheck _liquidRouteCheck;
static ClosedDoorCheck _closedDoorCheck;
static constexpr uint32 MAX_CLOSED_DOOR_DETOURS = 6;
public:
// Per-pathfind opt-out from the road-cost bonus. When set, this
@@ -51,6 +51,16 @@ namespace
dtQueryFilterTC::dtQueryFilterTC() = default;
bool dtQueryFilterTC::passFilter(dtPolyRef ref, dtMeshTile const* tile, dtPoly const* poly) const
{
if (!dtQueryFilter::passFilter(ref, tile, poly))
return false;
for (dtPolyRef const excluded : _excludedPolys)
if (excluded == ref)
return false;
return true;
}
void dtQueryFilterTC::BeginPathStats() const
{
_maxSlopeFactorThisPath = 1.0f;
@@ -66,6 +66,13 @@ public:
void SetSlopeCoefficient(float c) { _slopeCoefficient = c; }
float GetSlopeCoefficient() const { return _slopeCoefficient; }
// Polygons this filter refuses besides the flag test (a doorway behind a closed door, PathGenerator's door check). A short list,
// cleared by the path that set it.
void ExcludePoly(dtPolyRef ref) { _excludedPolys.push_back(ref); }
void ClearExcludedPolys() { _excludedPolys.clear(); }
bool HasExcludedPolys() const { return !_excludedPolys.empty(); }
bool passFilter(dtPolyRef ref, dtMeshTile const* tile, dtPoly const* poly) const override;
// Override Detour's per-segment cost computation. Signature must match
// dtQueryFilter::getCost exactly so the dynamic dispatch works.
float getCost(float const* pa, float const* pb,
@@ -135,6 +142,7 @@ public:
private:
bool _disableRoadBonus = false;
std::vector<dtPolyRef> _excludedPolys;
float _slopeCoefficient = 1.0f;
mutable float _maxSlopeFactorThisPath = 1.0f; // updated by getCost(); reset by BeginPathStats()
};
+10
View File
@@ -2394,6 +2394,12 @@ void ScriptMgr::OnGroupSubgroupChange(Group* group, ObjectGuid guid, uint8 subgr
FOREACH_SCRIPT(GroupScript)->OnSubgroupChange(group, guid, subgroup);
}
void ScriptMgr::OnGroupMemberRoleSet(Group* group, ObjectGuid setter, ObjectGuid target, uint8 oldRole, uint8 newRole)
{
ASSERT(group);
FOREACH_SCRIPT(GroupScript)->OnMemberRoleSet(group, setter, target, oldRole, newRole);
}
// Unit
void ScriptMgr::OnHeal(Unit* healer, Unit* reciever, uint32& gain)
{
@@ -3376,6 +3382,10 @@ void GroupScript::OnSubgroupChange(Group* /*group*/, ObjectGuid /*guid*/, uint8
{
}
void GroupScript::OnMemberRoleSet(Group* /*group*/, ObjectGuid /*setter*/, ObjectGuid /*target*/, uint8 /*oldRole*/, uint8 /*newRole*/)
{
}
AreaTriggerEntityScript::AreaTriggerEntityScript(char const* name) noexcept
: ScriptObject(name)
{
+5
View File
@@ -978,6 +978,10 @@ class TC_GAME_API GroupScript : public ScriptObject
// Called when a raid member is moved to another subgroup (map thread).
virtual void OnSubgroupChange(Group* group, ObjectGuid guid, uint8 subgroup);
// Called when a player sets a member's party role with CMSG_SET_ROLE (the role menu), after the role is stored.
// Roles are LfgRoles masks (tank 0x02, healer 0x04, damage 0x08; 0 = no role).
virtual void OnMemberRoleSet(Group* group, ObjectGuid setter, ObjectGuid target, uint8 oldRole, uint8 newRole);
};
class TC_GAME_API AreaTriggerEntityScript : public ScriptObject
@@ -1388,6 +1392,7 @@ class TC_GAME_API ScriptMgr
void OnGroupChangeLeader(Group* group, ObjectGuid newLeaderGuid, ObjectGuid oldLeaderGuid);
void OnGroupDisband(Group* group);
void OnGroupSubgroupChange(Group* group, ObjectGuid guid, uint8 subgroup);
void OnGroupMemberRoleSet(Group* group, ObjectGuid setter, ObjectGuid target, uint8 oldRole, uint8 newRole);
public: /* UnitScript */
+15 -1
View File
@@ -6603,7 +6603,19 @@ SpellCastResult Spell::CheckCast(bool strict, int32* param1 /*= nullptr*/, int32
float range = m_spellInfo->GetMaxRange(true, unitCaster, this) * 1.5f + objSize; // can't be overly strict
m_preGeneratedPath = std::make_unique<PathGenerator>(unitCaster);
m_preGeneratedPath->SetPathLengthLimit(range);
// The path's length is held to the range below, by its real length. A point budget of range / 4 (SetPathLengthLimit)
// stood for it before, but the smoothed path steps less than 4 yd where the navmesh breaks into small polygons, as it
// does along every shore: a charge of 18-23 yd that walks in 1x the straight distance ran out of points there and was
// refused NOPATH (PC chargepath check 2026-11-17: Auberdine, Ratchet, Theramore, Booty Bay).
// A charge takes the shortest way to its target. The slope cost (Pathfinding.SlopeCoefficient, 1.0 in the bot
// configuration) and the road bonus shape walking routes; on a charge they made the path swing round banks and
// slopes, so near water the caster ran along the shore and on uneven ground took a detour and missed the target
// (Discord 2026-11-14, voldemargreed "bugs 5").
m_preGeneratedPath->SetSlopeCoefficient(0.0f);
m_preGeneratedPath->SetDisableRoadBonus(true);
// A bot keeps out of water on its walks (PathGenerator::SetLiquidRouteCheck); its charge does not: the land-only search
// sent a warrior bot charging a mob in the shallows round by the bank.
m_preGeneratedPath->SetIgnoreLiquidRouteCheck(true);
// first try with raycast, if it fails fall back to normal path
bool result = m_preGeneratedPath->CalculatePath(target->GetPositionX(), target->GetPositionY(), target->GetPositionZ(), false);
@@ -6613,6 +6625,8 @@ SpellCastResult Spell::CheckCast(bool strict, int32* param1 /*= nullptr*/, int32
return SPELL_FAILED_NOPATH;
else if (m_preGeneratedPath->IsInvalidDestinationZ(target)) // Check position z, if not in a straight line
return SPELL_FAILED_NOPATH;
else if (m_preGeneratedPath->GetPathLength() > range) // a detour longer than the charge reaches
return SPELL_FAILED_NOPATH;
m_preGeneratedPath->ShortenPathUntilDist(PositionToVector3(target->GetPosition()), objSize); // move back
}
+3
View File
@@ -4114,6 +4114,9 @@ void Spell::EffectCharge()
Position pos = unitTarget->GetFirstCollisionPosition(unitTarget->GetCombatReach(), unitTarget->GetRelativeAngle(m_caster));
m_preGeneratedPath = std::make_unique<PathGenerator>(unitCaster);
m_preGeneratedPath->SetSlopeCoefficient(0.0f); // shortest way, as in Spell::CheckCast for charges
m_preGeneratedPath->SetDisableRoadBonus(true);
m_preGeneratedPath->SetIgnoreLiquidRouteCheck(true); // straight at the target, a bot's liquid avoidance aside
m_preGeneratedPath->CalculatePath(pos.GetPositionX(), pos.GetPositionY(), pos.GetPositionZ(), false);
}
+86 -4
View File
@@ -34,6 +34,7 @@
#include "Item.h"
#include "ItemBonusMgr.h"
#include "Language.h"
#include "Log.h"
#include "MiscPackets.h"
#include "MMapManager.h"
#include "MotionMaster.h"
@@ -41,16 +42,21 @@
#include "ObjectAccessor.h"
#include "ObjectMgr.h"
#include "PhasingHandler.h"
#include "QuestDef.h"
#include "Player.h"
#include "RealmList.h"
#include "SpellAuras.h"
#include "SpellHistory.h"
#include "SpellMgr.h"
#include "SupportMgr.h"
#include "TerrainMgr.h"
#include "Transport.h"
#include "Weather.h"
#include "World.h"
#include "WorldSession.h"
#include "GameTime.h"
#include <cctype>
#include <unordered_map>
#if TRINITY_COMPILER_IS_GCC
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
@@ -69,6 +75,7 @@ public:
{
{ "additem", HandleAddItemCommand, rbac::RBAC_PERM_COMMAND_ADDITEM, Console::No },
{ "time", HandleTimeCommand, rbac::RBAC_PERM_COMMAND_TIME, Console::No },
{ "bug", HandleBugCommand, rbac::RBAC_PERM_COMMAND_BUG, Console::No },
{ "time day", HandleTimeDayCommand, rbac::RBAC_PERM_COMMAND_TIME, Console::No },
{ "time night", HandleTimeNightCommand, rbac::RBAC_PERM_COMMAND_TIME, Console::No },
{ "time auto", HandleTimeAutoCommand, rbac::RBAC_PERM_COMMAND_TIME, Console::No },
@@ -318,11 +325,17 @@ public:
return ApplyAura(target, spell);
}
// ".aura self <spell>": always on the player who types it, whatever is targeted. In a macro the target no longer has to be
// cleared first, which stopped the auto attack swing (and an Heroic Strike waiting for it).
static bool HandleAuraSelfCommand(ChatHandler* handler, SpellInfo const* spell)
// ".aura self <spell> [<spell> ...]": always on the player who types it, whatever is targeted. In a macro the target no longer
// has to be cleared first, which stopped the auto attack swing (and an Heroic Strike waiting for it).
// Several spells in one line: during a boss fight the client lets a macro send only one chat line in a short time (and only
// to the group or as a whisper), so a macro of several ".aura self" lines lost all but the first.
static bool HandleAuraSelfCommand(ChatHandler* handler, std::vector<SpellInfo const*> const& spells)
{
return ApplyAura(handler->GetSession()->GetPlayer(), spell);
Player* player = handler->GetSession()->GetPlayer();
bool applied = false;
for (SpellInfo const* spell : spells)
applied = ApplyAura(player, spell) || applied;
return applied;
}
static bool ApplyAura(Unit* target, SpellInfo const* spell)
@@ -1222,6 +1235,75 @@ public:
return true;
}
// .bug <what is wrong>: a bug report that carries everything we otherwise have to ask for (which NPC, where, which quest).
// Saved as a bug ticket (gm_bug, the same store as the client's own bug form), so staff read it with .ticket bug list /
// .ticket bug view <id>. The note holds the player's text and a line with zone, area, map position, target and the quest
// log (id and state: C complete, I in progress, F failed). One report per player every 30 seconds.
static bool HandleBugCommand(ChatHandler* handler, Tail text)
{
Player* player = handler->GetSession()->GetPlayer();
bool const ru = handler->GetSession()->GetSessionDbLocaleIndex() == LOCALE_ruRU;
std::string_view what = text;
while (!what.empty() && std::isspace(static_cast<unsigned char>(what.front())))
what.remove_prefix(1);
while (!what.empty() && std::isspace(static_cast<unsigned char>(what.back())))
what.remove_suffix(1);
if (what.empty())
{
handler->SendSysMessage(ru ? "Опишите ошибку: .bug <что не так>. Ваше место, цель и журнал заданий сохранятся сами."
: "Say what is wrong: .bug <text>. Your spot, target and quest log are saved with it.");
handler->SetSentErrorMessage(true);
return false;
}
static std::unordered_map<ObjectGuid, time_t> lastReport; // world thread only (chat commands)
time_t const now = GameTime::GetGameTime();
time_t& last = lastReport[player->GetGUID()];
if (now < last + 30)
{
handler->SendSysMessage(ru ? "Подождите немного перед следующим отчётом." : "Please wait a little before the next report.");
handler->SetSentErrorMessage(true);
return false;
}
last = now;
auto areaName = [](uint32 id) -> std::string
{
AreaTableEntry const* area = sAreaTableStore.LookupEntry(id);
return area ? std::string(area->AreaName[LOCALE_enUS]) : std::string("?");
};
std::string target = "none";
if (Unit* unit = player->GetSelectedUnit())
target = Trinity::StringFormat("{} {} \"{}\" at {:.1f} {:.1f} {:.1f}", unit->GetTypeId() == TYPEID_PLAYER ? "player" : "creature",
unit->GetEntry(), unit->GetName(), unit->GetPositionX(), unit->GetPositionY(), unit->GetPositionZ());
std::string quests;
for (uint16 slot = 0; slot < MAX_QUEST_LOG_SIZE; ++slot)
{
uint32 const questId = player->GetQuestSlotQuestId(slot);
if (!questId)
continue;
QuestStatus const status = player->GetQuestStatus(questId);
quests += Trinity::StringFormat("{}{}:{}", quests.empty() ? "" : " ", questId,
status == QUEST_STATUS_COMPLETE ? 'C' : status == QUEST_STATUS_FAILED ? 'F' : 'I');
}
BugTicket* ticket = new BugTicket(player);
ticket->SetPosition(player->GetMapId(), player->GetPosition());
ticket->SetFacing(player->GetOrientation());
ticket->SetNote(Trinity::StringFormat("{}\n[.bug] zone {} {} | area {} {} | map {} x {:.1f} y {:.1f} z {:.1f} | level {} race {} class {} | "
"target {} | quests {}", what, player->GetZoneId(), areaName(player->GetZoneId()), player->GetAreaId(), areaName(player->GetAreaId()),
player->GetMapId(), player->GetPositionX(), player->GetPositionY(), player->GetPositionZ(), player->GetLevel(), player->GetRace(),
player->GetClass(), target, quests.empty() ? "none" : quests));
sSupportMgr->AddTicket(ticket);
TC_LOG_INFO("misc", "Bug report #{} from {} ({}): {}", ticket->GetId(), player->GetName(), player->GetGUID().ToString(), ticket->GetNote());
handler->PSendSysMessage(ru ? "Спасибо, отчёт #%u сохранён (с вашим местом, целью и журналом заданий)."
: "Thanks, report #%u is saved (with your spot, target and quest log).", ticket->GetId());
return true;
}
// .time: this character's own sky (DayCycle.h). Only the light and the sky change, for this player alone; the realm's
// events and clock stay as they are. Kept across logins (character_day_cycle).
static bool HandleTimeCommand(ChatHandler* handler)
+147
View File
@@ -29,8 +29,11 @@
#include "ChatCommand.h"
#include "DB2Stores.h"
#include "DisableMgr.h"
#include "GameObject.h"
#include "GameObjectModel.h"
#include "GridNotifiersImpl.h"
#include "MMapManager.h"
#include "ObjectAccessor.h"
#include "ObjectMgr.h"
#include "PathGenerator.h"
#include "PhasingHandler.h"
@@ -43,6 +46,7 @@
#include <cmath>
#include <cstdio>
#include <cstring>
#include <ctime>
#include <limits>
#include <queue>
@@ -66,6 +70,8 @@ public:
{ "loadedtiles", rbac::RBAC_PERM_COMMAND_MMAP_LOADEDTILES, false, &HandleMmapLoadedTilesCommand, "" },
{ "loc", rbac::RBAC_PERM_COMMAND_MMAP_LOC, false, &HandleMmapLocCommand, "" },
{ "path", rbac::RBAC_PERM_COMMAND_MMAP_PATH, false, &HandleMmapPathCommand, "" },
// Console-usable: the walking route and the charge route (Spell::CheckCast's filter) between two points, from a named player's map.
{ "chargepath", rbac::RBAC_PERM_COMMAND_MMAP_PATH, true, &HandleMmapChargePathCommand, "" },
{ "stats", rbac::RBAC_PERM_COMMAND_MMAP_STATS, false, &HandleMmapStatsCommand, "" },
{ "testarea", rbac::RBAC_PERM_COMMAND_MMAP_TESTAREA, false, &HandleMmapTestArea, "" },
// Auto-derives off-mesh connections from areatrigger_teleport
@@ -84,6 +90,147 @@ public:
return commandTable;
}
// .mmap chargepath <player> [radius]
// .mmap chargepath <player> <x> <y> <z> <targetX> <targetY> <targetZ> [maxRange]
// Builds two paths on the named player's map: a walking route (the configured filter, slope cost and road bonus on) and a charge
// route, made as Spell::CheckCast makes it for SPELL_EFFECT_CHARGE (slope cost 0, no road bonus, path length at most
// maxRange * 1.5 + 1.5, maxRange 25 by default for Charge). Each line gives the result, type, points, length and end, and the verdict CheckCast would
// give. With only a name the paths go from the player to the ground 8 ways round it at the radius (20 yd by default; under water
// the lake or sea bed), so a bot standing on a shore checks the charges into the water and along the bank from the console
// (Discord 2026-11-14, voldemargreed "bugs 5": the warrior ran along the shore or took a detour and missed). The walk line's end
// also shows whether a path to a point under the water reaches it (Discord 2026-11-16, gefest: bots froze over naga at a reef).
static bool HandleMmapChargePathCommand(ChatHandler* handler, char const* args)
{
char name[64] = {};
float x = 0.0f, y = 0.0f, z = 0.0f, tx = 0.0f, ty = 0.0f, tz = 0.0f, extra = 0.0f;
int const read = args ? std::sscanf(args, "%63s %f %f %f %f %f %f %f", name, &x, &y, &z, &tx, &ty, &tz, &extra) : 0;
if (read < 1 || (read > 2 && read < 7))
{
handler->PSendSysMessage("usage: .mmap chargepath <player> [radius] | <player> <x> <y> <z> <targetX> <targetY> <targetZ> [maxRange]");
return true;
}
Player* source = ObjectAccessor::FindPlayerByName(name);
if (!source || !source->IsInWorld())
{
handler->PSendSysMessage("chargepath: no player %s in the world.", name);
return true;
}
if (!MMAP::MMapManager::instance()->GetNavMesh(source->GetMapId(), source->GetInstanceId()))
{
handler->PSendSysMessage("chargepath: no navmesh loaded for map %u.", source->GetMapId());
return true;
}
Map* map = source->GetMap();
float const maxRange = read == 8 ? extra : 25.0f;
auto report = [&](float sx, float sy, float sz, float ex, float ey, float ez)
{
float const dx = ex - sx, dy = ey - sy, dz = ez - sz;
float const straight = std::sqrt(dx * dx + dy * dy + dz * dz);
bool const wet = map->IsInWater(source->GetPhaseShift(), ex, ey, ez + 0.5f);
handler->PSendSysMessage("chargepath map %u (%.2f, %.2f, %.2f) -> (%.2f, %.2f, %.2f)%s: straight %.2f yd", map->GetId(), sx, sy, sz,
ex, ey, ez, wet ? " in water" : "", straight);
for (bool const charge : { false, true })
{
PathGenerator path(source);
if (charge)
{
path.SetSlopeCoefficient(0.0f);
path.SetDisableRoadBonus(true);
path.SetIgnoreLiquidRouteCheck(true);
}
bool const result = path.CalculatePath(sx, sy, sz, ex, ey, ez, false);
PathType const type = path.GetPathType();
char const* verdict = "ok";
if (type & PATHFIND_SHORT)
verdict = "NOPATH (too long)";
else if (!result || (type & (PATHFIND_NOPATH | PATHFIND_INCOMPLETE)))
verdict = "NOPATH";
float const length = path.GetPath().size() >= 2 ? path.GetPathLength() : 0.0f;
if (charge && !std::strcmp(verdict, "ok") && length > maxRange * 1.5f + 1.5f)
verdict = "NOPATH (longer than the charge reaches)";
// the end shows a path to a point under water: it ends at the asked z (the last leg dives) or on the surface above it
G3D::Vector3 const& end = path.GetActualEndPosition();
// The navmesh is baked without game objects, so a path may run through a closed door or another solid object. The first
// leg that does (game object collision only, 1 yd over the path) is named (Discord 2026-11-17, bayshorian: bots went
// through the walls in the Shadowfang Keep courtyard).
Movement::PointsArray const& points = path.GetPath();
int32 blockedLeg = -1;
for (std::size_t i = 1; i < points.size() && blockedLeg < 0; ++i)
if (!map->isInLineOfSight(source->GetPhaseShift(), points[i - 1].x, points[i - 1].y, points[i - 1].z + 1.0f, points[i].x, points[i].y,
points[i].z + 1.0f, LINEOFSIGHT_CHECK_GOBJECT, VMAP::ModelIgnoreFlags::Nothing))
blockedLeg = int32(i);
// a bot's paths keep clear of closed doors (PathGenerator::SetClosedDoorCheck): say when one shaped this path
char const* door = "";
if (path.AvoidedClosedDoor())
door = (type & PATHFIND_NOPATH) ? " (only behind a closed door)" : " (around a closed door)";
handler->PSendSysMessage(" %s result %s type 0x%X points %u length %.2f yd (%.2fx straight) end (%.2f, %.2f, %.2f) -> %s%s%s",
charge ? "charge" : "walk ", result ? "true" : "false", uint32(type), uint32(points.size()), length,
straight > 0.01f ? length / straight : 0.0f, end.x, end.y, end.z, charge ? verdict : "-", door,
blockedLeg < 0 ? "" : " THROUGH A GAME OBJECT");
if ((type & PATHFIND_INCOMPLETE) && !path.IncompleteReason().empty())
handler->PSendSysMessage(" incomplete: %s", path.IncompleteReason().c_str());
if (!path.DiveRefusal().empty())
handler->PSendSysMessage(" no swim down to the destination: %s", path.DiveRefusal().c_str());
else if (wet && std::fabs(end.z - ez) > 0.5f)
handler->PSendSysMessage(" no swim down to the destination: the swim test never ran (the path was not built point by point)");
if (blockedLeg >= 0)
{
G3D::Vector3 const from = points[blockedLeg - 1] + G3D::Vector3(0.0f, 0.0f, 1.0f);
G3D::Vector3 const to = points[blockedLeg] + G3D::Vector3(0.0f, 0.0f, 1.0f);
handler->PSendSysMessage(" leg %d (%.2f, %.2f, %.2f) -> (%.2f, %.2f, %.2f) crosses a solid game object%s", blockedLeg,
from.x, from.y, from.z - 1.0f, to.x, to.y, to.z - 1.0f,
(type & PATHFIND_NOPATH) ? " (no path: this straight line is not walked)" : "");
// name each game object whose model the leg runs into: entry, type, state, door or not, collision on or off
float const legLength = (to - from).magnitude();
if (legLength > 0.01f)
{
G3D::Ray const ray = G3D::Ray::fromOriginAndDirection(from, (to - from) / legLength);
G3D::Vector3 const mid = (from + to) * 0.5f;
std::list<GameObject*> nearby;
Trinity::GameObjectInRangeCheck check(mid.x, mid.y, mid.z, legLength * 0.5f + 15.0f);
Trinity::GameObjectListSearcher<Trinity::GameObjectInRangeCheck> searcher(source, nearby, check);
Cell::VisitGridObjects(mid.x, mid.y, map, searcher, legLength * 0.5f + 15.0f);
for (GameObject const* go : nearby)
{
if (!go->m_model)
continue;
float dist = legLength;
if (!go->m_model->IntersectRay(ray, dist, true, source->GetPhaseShift(), VMAP::ModelIgnoreFlags::Nothing))
continue;
handler->PSendSysMessage(" hits %s entry %u spawn " UI64FMTD " type %u state %u%s collision %s at %.2f yd", go->GetName().c_str(),
go->GetEntry(), go->GetSpawnId(), uint32(go->GetGoType()), uint32(go->GetGoState()),
go->m_model->IsDoor() ? " (door)" : "", go->m_model->IsCollisionEnabled() ? "on" : "off", dist);
}
}
}
}
};
if (read >= 7)
{
report(x, y, z, tx, ty, tz);
return true;
}
float const radius = read == 2 && x > 1.0f ? x : 20.0f;
source->GetPosition(x, y, z);
for (uint32 i = 0; i < 8; ++i)
{
float const angle = float(i) * float(M_PI) / 4.0f;
float const ex = x + radius * std::cos(angle), ey = y + radius * std::sin(angle);
float const ez = map->GetHeight(source->GetPhaseShift(), ex, ey, z + 10.0f, true, 60.0f);
if (ez <= INVALID_HEIGHT)
{
handler->PSendSysMessage("chargepath: no ground at (%.2f, %.2f)", ex, ey);
continue;
}
report(x, y, z, ex, ey, ez);
}
return true;
}
static bool HandleMmapPathCommand(ChatHandler* handler, char const* args)
{
Player* player = handler->GetSession()->GetPlayer();
@@ -200,6 +200,7 @@ void AddSC_classic_stonetalon_mountains();
void AddSC_classic_silithus();
void AddSC_classic_world_event_wareffort();
void AddSC_classic_world_event_dragons_of_nightmare();
void AddSC_classic_world_event_scourge_invasion();
void AddSC_classic_npcs_special();
void AddSC_classic_go_scripts();
void AddSC_classic_spell_scripts();
@@ -409,6 +410,7 @@ void AddClassicScripts()
AddSC_classic_silithus();
AddSC_classic_world_event_wareffort();
AddSC_classic_world_event_dragons_of_nightmare();
AddSC_classic_world_event_scourge_invasion();
AddSC_classic_npcs_special();
AddSC_classic_go_scripts();
AddSC_classic_spell_scripts();
@@ -117,3 +117,12 @@ void ClassicScriptZoneEmote(uint32 broadcastTextId, WorldObject* source, Unit* t
ZoneTalk(unit, broadcastTextId, CHAT_MSG_MONSTER_EMOTE, target);
}
void ClassicScriptZoneYell(uint32 broadcastTextId, WorldObject* source, Unit* target)
{
Unit* unit = source ? source->ToUnit() : nullptr;
if (!unit || !broadcastTextId)
return;
ZoneTalk(unit, broadcastTextId, CHAT_MSG_MONSTER_YELL, target);
}
@@ -31,4 +31,7 @@ void ClassicScriptText(uint32 broadcastTextId, WorldObject* source, Unit* target
// VMaNGOS DoScriptText(textId, source, target, CHAT_TYPE_ZONE_EMOTE): the script overrides the text's own chat type.
void ClassicScriptZoneEmote(uint32 broadcastTextId, WorldObject* source, Unit* target = nullptr);
// VMaNGOS DoScriptText(textId, source, target, CHAT_TYPE_ZONE_YELL): a yell every player of the source's zone hears.
void ClassicScriptZoneYell(uint32 broadcastTextId, WorldObject* source, Unit* target = nullptr);
#endif
@@ -422,8 +422,11 @@ class classic_spell_pal_judgement_of_command : public SpellScript
// 5373, 1826 - Judgement of Light / Judgement of Wisdom "Intermediate": the judgement debuff (20185, 20186 and their ranks) procs this dummy
// from the judged enemy at whoever hits it, and nothing turned it into the heal or the mana (the client spell does neither itself). The rank's
// own spell (20267 / 20341-20343 heal, 20268 / 20352-20353 mana) is cast by the paladin that judged, so its talents (Improved Judgement of
// Light) and healing modifiers apply; the vanilla amounts are in those spells.
// own spell (20267 / 20341-20343 heal, 20268 / 20352-20353 mana) targets its own caster (ImplicitTarget 1), so the attacker casts it on
// itself, with the paladin that judged as the original caster for credit. The client gives those spells no class mask and no bonus
// coefficient, so no talent or healing modifier of the paladin's could change them; the vanilla amounts are in those spells. A proc
// cast never sets the original caster, so GetOriginalCaster() here is the judged enemy itself: the old code had it cast the
// self-targeted heal / mana, which went to the enemy (Discord, dumpins 2026-11-17).
class classic_spell_pal_judgement_intermediate : public SpellScript
{
static uint32 GetRankSpell(bool light, uint32 debuffId)
@@ -467,10 +470,9 @@ class classic_spell_pal_judgement_intermediate : public SpellScript
if (!rankSpell)
continue;
Unit* paladin = GetOriginalCaster();
if (!paladin)
paladin = aurApp->GetBase()->GetCaster();
(paladin ? paladin : judged)->CastSpell(attacker, rankSpell, CastSpellExtraArgs(TRIGGERED_FULL_MASK).SetTriggeringSpell(GetSpell()));
attacker->CastSpell(attacker, rankSpell, CastSpellExtraArgs(TRIGGERED_FULL_MASK)
.SetOriginalCaster(aurApp->GetBase()->GetCasterGUID())
.SetTriggeringSpell(GetSpell()));
break;
}
}
File diff suppressed because it is too large Load Diff
@@ -831,9 +831,10 @@ class classic_spell_mage_arcane_blast : public SpellScript
}
};
// 400588 - Missile Barrage (70532): "Gives your Arcane Blast spell a $m1% chance, your Arcane Missile hits a ${$m1/4}% chance, and your Arcane
// Wrath, Fireball, Frostbolt, and Frostfire Bolt spells a ${$m1/2}% chance to [give 400589]". The client proc data is a flat 50% on any
// harmful spell. The spell_proc row sets the chance to 100 and lets the triggered missile hits proc; the chance per spell is rolled here.
// 400588 - Missile Barrage (70707): "Gives your Arcane Blast spell a $m1% chance, and your Arcane Wrath, Fireball, Frostbolt, Frost Blast,
// and Frostfire Bolt spells a ${$m1/2}% chance to [give 400589]". The client proc data is a flat 50% on any harmful spell. The spell_proc
// row sets the chance to 100; the chance per spell is rolled here. The 70532 text also gave Arcane Missile hits a ${$m1/4}% chance; live
// dropped that, so the missiles of a Missile Barrage no longer give the next one (glacier, Discord 17 Nov).
class classic_spell_mage_missile_barrage : public AuraScript
{
static bool IsHalfChanceSpell(SpellInfo const* spellInfo)
@@ -846,7 +847,7 @@ class classic_spell_mage_missile_barrage : public AuraScript
default:
break;
}
// Fireball (word 0 0x1), Frostbolt (0x20)
// Fireball (word 0 0x1), Frostbolt and Frost Blast 1326053-1326055 (0x20)
return spellInfo->SpellFamilyName == SPELLFAMILY_MAGE && (spellInfo->SpellFamilyFlags[0] & (0x1 | 0x20));
}
@@ -859,8 +860,6 @@ class classic_spell_mage_missile_barrage : public AuraScript
float const chance = float(aurEff->GetAmount());
if (spellInfo->SpellFamilyName == SPELLFAMILY_MAGE && (spellInfo->SpellFamilyFlags[0] & 0x20000000)) // Arcane Blast
return roll_chance(chance);
if (spellInfo->SpellFamilyName == SPELLFAMILY_MAGE && (spellInfo->SpellFamilyFlags[0] & 0x200000)) // Arcane Missiles hits
return roll_chance(chance / 4.0f);
if (IsHalfChanceSpell(spellInfo))
return roll_chance(chance / 2.0f);
return false;
@@ -872,6 +871,36 @@ class classic_spell_mage_missile_barrage : public AuraScript
}
};
// 5143, 5144, 5145, 8416, 8417, 10211, 10212, 25345 - Arcane Missiles, with Missile Barrage 400589 up: "missiles fire every
// ${$400588w2/10}.1 sec". The buff's effect 1 is a dummy holding the change of the missile period (-500 ms), which nothing read, so
// the missiles came once a second over the halved channel: two or three missiles instead of five (glacier, Discord 17 Nov). The
// buff is used up when the channel hits (spell_proc 400589, 2026_11_17_17), after its aura took the shorter period here.
class classic_spell_mage_arcane_missiles_barrage : public AuraScript
{
static constexpr uint32 SPELL_MAGE_MISSILE_BARRAGE_BUFF = 400589;
bool Validate(SpellInfo const* /*spellInfo*/) override
{
return ValidateSpellEffect({ { SPELL_MAGE_MISSILE_BARRAGE_BUFF, EFFECT_1 } });
}
void CalcPeriodic(AuraEffect const* /*aurEff*/, bool& isPeriodic, int32& amplitude)
{
Unit* caster = GetCaster();
if (!isPeriodic || !caster)
return;
if (AuraEffect const* barrage = caster->GetAuraEffect(SPELL_MAGE_MISSILE_BARRAGE_BUFF, EFFECT_1))
if (amplitude + barrage->GetAmount() > 0)
amplitude += barrage->GetAmount();
}
void Register() override
{
DoEffectCalcPeriodic += AuraEffectCalcPeriodicFn(classic_spell_mage_arcane_missiles_barrage::CalcPeriodic, EFFECT_0, SPELL_AURA_PERIODIC_TRIGGER_SPELL);
}
};
/*######
## Shaman
######*/
@@ -1623,6 +1652,7 @@ void AddSC_classic_talents_mage_shaman()
RegisterSpellScript(classic_spell_mage_cone_of_cold_winters_chill);
RegisterSpellScript(classic_spell_mage_arcane_blast);
RegisterSpellScript(classic_spell_mage_missile_barrage);
RegisterSpellScript(classic_spell_mage_arcane_missiles_barrage);
// Shaman
RegisterSpellScript(classic_spell_sha_flurry);
@@ -813,13 +813,18 @@ class classic_spell_pal_reckoning : public AuraScript
};
// 1326084 - Reckoning (stored extra attacks): the next melee swing of the paladin, whatever its outcome, uses every stack as an extra attack.
// Unit::Update swings the queued extra attacks only while a last extra attack spell is set; the add extra attacks effect sets it when it
// casts (Spell::cast), this script has to set it itself. Without it the stacks were used up but no extra attack came (Discord, dumpins
// 2026-11-17), and the stale queue then kept Windfury and the other extra attack procs from adding theirs.
class classic_spell_pal_reckoning_stored : public AuraScript
{
void HandleProc(AuraEffect const* /*aurEff*/, ProcEventInfo& /*eventInfo*/)
{
uint8 const attacks = GetStackAmount();
uint32 const spellId = GetId();
Unit* paladin = GetTarget();
Remove();
paladin->SetLastExtraAttackSpell(spellId);
paladin->AddExtraAttacks(attacks);
}
+20 -1
View File
@@ -30,6 +30,7 @@
#include "GridNotifiersImpl.h"
#include "MotionMaster.h"
#include "ObjectAccessor.h"
#include "PathGenerator.h"
#include "Player.h"
#include "Spell.h"
#include "SpellAuraEffects.h"
@@ -3157,12 +3158,30 @@ class spell_dru_yseras_gift_group_heal : public SpellScript
// 414924 - Feral Charge (Cat): "Leap behind an enemy." Its effect 0 is effect 175, which this client uses as a jump to a destination
// (dest behind the target, Amplitude = speed multiplier, MiscValue / MiscValueB = min / max arc height in tenths, the same fields
// as SPELL_EFFECT_JUMP_DEST); the core has no handler for 175, so the leap is done here the way Spell::EffectJumpDest does it.
// The leap is an arc, so on its own it reached a target the druid could not walk to (on a roof, up a cliff). Live refuses those with
// "There is no path" as it does Feral Charge (Bear) (forever-bugs #86, found by Everlake, GPL): the walking path to the target is
// checked here with the settings and the length limit of SPELL_EFFECT_CHARGE's check in Spell::CheckCast.
class spell_dru_classic_feral_charge_cat : public SpellScript
{
SpellCastResult CheckCast()
{
if (GetCaster()->HasUnitState(UNIT_STATE_ROOT))
Unit* caster = GetCaster();
if (caster->HasUnitState(UNIT_STATE_ROOT))
return SPELL_FAILED_ROOTED;
Unit* target = GetExplTargetUnit();
if (!target)
return SPELL_CAST_OK;
PathGenerator path(caster);
path.SetSlopeCoefficient(0.0f);
path.SetDisableRoadBonus(true);
path.SetIgnoreLiquidRouteCheck(true);
bool const result = path.CalculatePath(target->GetPositionX(), target->GetPositionY(), target->GetPositionZ(), false);
float const range = GetSpellInfo()->GetMaxRange(false, caster, GetSpell()) * 1.5f + target->GetCombatReach();
if (!result || (path.GetPathType() & (PATHFIND_SHORT | PATHFIND_NOPATH | PATHFIND_INCOMPLETE)) || path.IsInvalidDestinationZ(target)
|| path.GetPathLength() > range)
return SPELL_FAILED_NOPATH;
return SPELL_CAST_OK;
}
+20 -5
View File
@@ -765,6 +765,8 @@ public:
## npc_injured_patient (handles all the patients, no matter Horde or Alliance)
#####*/
static constexpr float PATIENT_BLEED_PER_MS = 0.05f;
class npc_injured_patient : public CreatureScript
{
public:
@@ -781,10 +783,14 @@ public:
{
DoctorGUID.Clear();
Coord = nullptr;
Saved = false;
BleedCarry = 0.0f;
}
ObjectGuid DoctorGUID;
Position const* Coord;
bool Saved;
float BleedCarry; // the part of a health point the last ticks lost but could not take yet
void Reset() override
{
@@ -836,6 +842,7 @@ public:
//regen health
me->RemoveUnitFlag(UNIT_FLAG_IN_COMBAT);
Saved = true;
//stand up
me->SetStandState(UNIT_STAND_STATE_STAND);
@@ -860,13 +867,21 @@ public:
}
}
void UpdateAI(uint32 /*diff*/) override
void UpdateAI(uint32 diff) override
{
//lower HP on every world tick makes it a useful counter, not officlone though
if (me->IsAlive() && me->GetHealth() > 6)
me->ModifyHealth(-5);
// a bandaged patient does not bleed any more
if (Saved || !me->IsAlive())
return;
if (me->IsAlive() && me->GetHealth() <= 6)
// The patient loses 50 health a second (VMaNGOS, GPL-2.0: 0.05 per ms). It was 5 on every update, so on a 10 ms map update
// a patient bled 500 a second, ten times faster, and died before a bandage could finish (Triage, Fox, 17 Nov).
BleedCarry += float(diff) * PATIENT_BLEED_PER_MS;
uint64 const loss = uint64(BleedCarry);
BleedCarry -= float(loss);
if (loss && me->GetHealth() > 1 + loss)
me->ModifyHealth(-int64(loss));
if (me->GetHealth() <= 1 + loss)
{
me->RemoveUnitFlag(UNIT_FLAG_IN_COMBAT);
me->SetUninteractible(true);
@@ -4031,6 +4031,24 @@ AuctionHouseBot.Vanilla.ValueCurve.Scale = 1
AuctionHouseBot.Vanilla.ValueCurve.FullValueItemLevel = 0
#
# AuctionHouseBot.Vanilla.MarketPrices
# Description: Price bot listings (and the buyer's fair price) by the per-unit market price in the world table
# auctionhousebot_market_price where an item has one, priced to the copper and never below what a
# vendor pays for the item. Items without a row keep AuctionHouseBot.Vanilla.ValueCurve or the
# vendor price. Read when the bot starts.
# Default: 0 - (Disabled)
# 1 - (Enabled)
AuctionHouseBot.Vanilla.MarketPrices = 0
#
# AuctionHouseBot.Vanilla.MarketPrices.Scale
# Description: Multiplies the market prices (1 = as stored, 1.2 = 20% more, 0.1 to 10). Never below what a vendor pays.
# Default: 1
AuctionHouseBot.Vanilla.MarketPrices.Scale = 1
#
# AuctionHouseBot.Alliance.Items.Amount.Ratio
# Description: Enable/Disable (disabled if 0) the part of AHBot that puts items up for auction on Alliance AH
@@ -4536,6 +4554,26 @@ AuctionHouseBot.Buyer.Commodities = 1
AuctionHouseBot.Buyer.DropFloorPerLevel = 100
#
# AuctionHouseBot.Buyer.ExcludeUnlimitedVendorItems
# Description: The buyer never buys items that a vendor in the world sells for gold with unlimited
# stock (arrows, thread, reagents...). The buyer pays at least the vendor price, so
# players could buy them from the vendor and sell them to the buyer for profit.
# Items a vendor sells in limited stock, or for tokens, can still be bought.
# Only the buyer is affected, not the seller.
# Default: 1 - (Enabled)
# 0 - (Disabled)
AuctionHouseBot.Buyer.ExcludeUnlimitedVendorItems = 1
#
# AuctionHouseBot.Buyer.ExcludeItemIDs
# Description: Item ids the buyer never buys, separated by commas, e.g. "2512,2515,2321".
# Only the buyer is affected, not the seller.
# Default: "" - (None)
AuctionHouseBot.Buyer.ExcludeItemIDs = ""
#
# AuctionHouseBot.Buyer.MaxPriceMultiplier
# Description: Never pay more per item than this times its fair price (vendor buy price, or four
@@ -5251,6 +5289,24 @@ Forever.VanillaAoE = 0
Classic.AutoEquipNewBags = 0
# Classic.ScourgeInvasion
# Description: The Scourge Invasion world event (the Naxxramas opening): necropolises attack six zones in turn,
# players kill minions and cultists to bring them down, battles won unlock the Argent Dawn
# rewards at 50 / 100 / 150, and Pallid Horrors attack Stormwind and Undercity. GMs can also
# switch it with .scourge on / off (saved, wins over this setting until .scourge default).
# .reload config reads it again.
# Default: 0 - (Disabled)
# 1 - (Enabled)
Classic.ScourgeInvasion = 0
# Classic.ScourgeInvasion.ShardDamageRate
# Description: How much the minion, cultist and Shadow of Doom deaths hurt the Necrotic Shards. Above 1 the
# camps fall faster (small servers), below 1 slower.
# Default: 1.0
Classic.ScourgeInvasion.ShardDamageRate = 1.0
# Classic.Shop.Enabled
# Description: In-game Store: shop points, products from world.shop_* (.shop reload), the Gold Market, character
# services, realm transfers and the character screen boost. 0 answers like the official server
+58
View File
@@ -116,3 +116,61 @@ TEST_CASE("Environment variables", "[Config]")
std::remove(filePath.c_str());
}
namespace
{
std::string WriteTempConfig(std::string const& text)
{
auto path = boost::filesystem::temp_directory_path() / boost::filesystem::unique_path("deleteme-%%%%-%%%%.conf");
std::ofstream stream(path.c_str());
stream << text;
return path.string();
}
}
// Drop-in files (worldserver.conf.d/*.conf, modules) are merged into the main config by LoadAdditionalFile. A file without a
// [section] header lost every key: its first key was read as the section.
TEST_CASE("Drop-in config files", "[Config]")
{
std::string mainFile = WriteTempConfig("[worldserver]\nMain.Key = 1\n");
std::string err;
REQUIRE(sConfigMgr->LoadInitial(mainFile, std::vector<std::string>(), err));
SECTION("with one section header")
{
std::string dropIn = WriteTempConfig("[playerbot]\nDropIn.Sectioned = 7\nDropIn.SectionedToo = 8\n");
REQUIRE(sConfigMgr->LoadAdditionalFile(dropIn, false, err));
REQUIRE(sConfigMgr->GetIntDefault("DropIn.Sectioned", 0) == 7);
REQUIRE(sConfigMgr->GetIntDefault("DropIn.SectionedToo", 0) == 8);
std::remove(dropIn.c_str());
}
SECTION("without a section header")
{
std::string dropIn = WriteTempConfig("DropIn.Flat = 5\nDropIn.FlatToo = 6\n");
REQUIRE(sConfigMgr->LoadAdditionalFile(dropIn, false, err));
REQUIRE(sConfigMgr->GetIntDefault("DropIn.Flat", 0) == 5);
REQUIRE(sConfigMgr->GetIntDefault("DropIn.FlatToo", 0) == 6);
std::remove(dropIn.c_str());
}
SECTION("with one key and no section header")
{
std::string dropIn = WriteTempConfig("DropIn.Single = 9\n");
REQUIRE(sConfigMgr->LoadAdditionalFile(dropIn, false, err));
REQUIRE(sConfigMgr->GetIntDefault("DropIn.Single", 0) == 9);
std::remove(dropIn.c_str());
}
SECTION("with two section headers")
{
std::string dropIn = WriteTempConfig("[first]\nDropIn.First = 3\n[second]\nDropIn.Second = 4\n");
REQUIRE(sConfigMgr->LoadAdditionalFile(dropIn, false, err));
REQUIRE(sConfigMgr->GetIntDefault("DropIn.First", 0) == 3);
REQUIRE(sConfigMgr->GetIntDefault("DropIn.Second", 0) == 4);
std::remove(dropIn.c_str());
}
REQUIRE(sConfigMgr->GetIntDefault("Main.Key", 0) == 1);
std::remove(mainFile.c_str());
}
+106
View File
@@ -0,0 +1,106 @@
/*
* This file is part of the TrinityCore Project. See AUTHORS file for Copyright information
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "tc_catch2.h"
#include "AuctionHouseBotVanilla.h"
#include "DB2Structure.h"
#include "ItemTemplate.h"
namespace
{
// An item as the client data has it: only the fields the price code reads.
struct TestItem
{
ItemEntry basic{};
ItemSparseEntry sparse{};
ItemTemplate proto{};
TestItem(uint32 id, uint32 itemClass, uint32 sellPrice, uint32 buyPrice, uint32 vendorStack = 1)
{
basic.ID = id;
basic.ClassID = itemClass;
sparse.ID = id;
sparse.SellPrice = sellPrice;
sparse.BuyPrice = buyPrice;
sparse.VendorStackCount = vendorStack;
proto.BasicData = &basic;
proto.ExtendedData = &sparse;
}
};
struct MarketPricesOff
{
~MarketPricesOff() { AuctionBotVanilla::SetMarketPrices({}); }
};
}
// Client 70938 values (ItemSparse SellPrice / BuyPrice) and the live market prices of the 15-16 November scans.
TEST_CASE("A market price below the vendor stand-ins is used as it is", "[AuctionBotMarketPrice]")
{
MarketPricesOff off;
TestItem linen(2589, ITEM_CLASS_TRADE_GOODS, 13, 55); // stand-ins 55c (buy) and 52c (4x sell)
TestItem silk(4306, ITEM_CLASS_TRADE_GOODS, 150, 600);
AuctionBotVanilla::SetMarketPrices({ { 2589, 24 }, { 4306, 190 } });
REQUIRE(AuctionBotVanilla::MarketUnitPrice(&linen.proto) == 24);
REQUIRE(AuctionBotVanilla::UnitValue(&linen.proto) == 24);
REQUIRE(AuctionBotVanilla::MarketUnitPrice(&silk.proto) == 190);
}
TEST_CASE("A market price never goes below what a vendor pays", "[AuctionBotMarketPrice]")
{
MarketPricesOff off;
TestItem wool(2592, ITEM_CLASS_TRADE_GOODS, 33, 135);
AuctionBotVanilla::SetMarketPrices({ { 2592, 25 } });
REQUIRE(AuctionBotVanilla::MarketUnitPrice(&wool.proto) == 33);
}
TEST_CASE("Ammo compares against its per-item sell price", "[AuctionBotMarketPrice]")
{
MarketPricesOff off;
TestItem shells(15997, ITEM_CLASS_PROJECTILE, 10, 4000, 100);
TestItem roughArrow(2512, ITEM_CLASS_PROJECTILE, 0, 10, 200);
AuctionBotVanilla::SetMarketPrices({ { 15997, 22 }, { 2512, 1 } });
REQUIRE(AuctionBotVanilla::MarketUnitPrice(&shells.proto) == 22);
REQUIRE(AuctionBotVanilla::MarketUnitPrice(&roughArrow.proto) == 1);
}
TEST_CASE("The scale multiplies the market price, still above the vendor floor", "[AuctionBotMarketPrice]")
{
MarketPricesOff off;
TestItem linen(2589, ITEM_CLASS_TRADE_GOODS, 13, 55);
AuctionBotVanilla::SetMarketPrices({ { 2589, 24 } }, 2.0f);
REQUIRE(AuctionBotVanilla::MarketUnitPrice(&linen.proto) == 48);
AuctionBotVanilla::SetMarketPrices({ { 2589, 24 } }, 0.25f);
REQUIRE(AuctionBotVanilla::MarketUnitPrice(&linen.proto) == 13);
}
TEST_CASE("Items without a row, and prices switched off, give no market price", "[AuctionBotMarketPrice]")
{
MarketPricesOff off;
TestItem linen(2589, ITEM_CLASS_TRADE_GOODS, 13, 55);
TestItem other(765, ITEM_CLASS_TRADE_GOODS, 10, 40);
AuctionBotVanilla::SetMarketPrices({ { 2589, 24 } });
REQUIRE(AuctionBotVanilla::MarketUnitPrice(&other.proto) == 0);
AuctionBotVanilla::SetMarketPrices({});
REQUIRE(AuctionBotVanilla::MarketUnitPrice(&linen.proto) == 0);
}
+31
View File
@@ -0,0 +1,31 @@
# Quest health sweep and post-build smoke test
Both are read-only: they never start, stop or change the server or a database.
## quest_health.py
Lists the quests a player can take but cannot finish: no ender (or not spawned), a kill objective nobody can be killed for,
an item objective nothing gives, a "use object" objective whose object is not in the world, an area trigger the client does
not know, a "go there" quest nothing completes, and (low priority) quests without a map area. Only quests of this game are
checked (they have a Classic level, `quest_template_classic_level`) and only when their giver is spawned or their start item
can be had. A line ending in "(id ... is in C++ scripts)" is probably handled by code: check those in game before changing data.
python -I tools/quest_health/quest_health.py --repo . --world <worldDB> --db2 "<server>\data\dbc\enUS" ^
--mysql "<package>\mysql\bin\mysql.exe" --user playerbot --password playerbot --out quest-health.md --tsv quest-health.tsv
Take the database name from WorldDatabaseInfo in worldserver.conf. `--db2` adds spell checks (items made by spells, kill
credit and summons from spells) and the client's area triggers; without it those are skipped and more lines show up.
## smoke_test.py (about 5 minutes, after every build on dev)
1. The console: every message the running worldserver printed 20+ times (numbers ignored), plus missing config keys,
database errors, unknown tables or columns, failed SQL updates, script name errors, asserts.
2. Quests: runs quest_health.py and lists only what is NEW since the last build's run (and what got fixed).
3. The server answers `.server info` over SOAP, when SOAP is on.
python -I tools/quest_health/smoke_test.py --repo . --log "<server>\logs\Server.log" --log "<server>\logs\DBErrors.log" ^
--world <worldDB> --db2 "<server>\data\dbc\enUS" --mysql "<package>\mysql\bin\mysql.exe" ^
--baseline smoke-<last build>.md.quest-health.tsv --out smoke-<this build>.md
Start it a few minutes after the worldserver is up (log in once, walk around, summon a pet) so the console has something to
show. Exit code 0 = pass, 1 = the report lists what needs a look. Keep `smoke-<build>.md.quest-health.tsv` as the next baseline.
+279
View File
@@ -0,0 +1,279 @@
#!/usr/bin/env python3
"""Quest health sweep: lists quests a player can take but cannot finish, before players find them.
Reads the world database (through the mysql command line client, so it runs where the server runs, with no Python
database module) and, when given, the client's DB2 folder. For every quest a player can start (its giver is spawned,
or its start item drops somewhere) it checks:
giver/ender the quest ender is spawned, or summoned by a SmartAI script
kill a kill objective's creature is spawned, summoned, or is the kill credit of a spawned creature or a spell
item an item objective drops (any loot table, through references), is sold, given or rewarded by a quest, made by a
spell (DB2), given by a SmartAI script, or comes out of a container
object a "use object" objective's gameobject is spawned or summoned
trigger an area trigger objective exists in the client data (DB2) or as a server-side area trigger
marker the quest has objectives but no map area (quest_poi): low priority, the quest still works
A finding means "no data source found". A C++ script can still give the credit or the item, so the report names the
quest's script (quest, giver or ender) when there is one; those lines are less sure. Read-only.
python3 -I tools/quest_health/quest_health.py --repo . --world <worldDB> [--db2 <server>/data/dbc/enUS] \
[--mysql <path to mysql>] [--user playerbot] [--password playerbot] [--host 127.0.0.1] [--port 3306] \
--out quest-health.md [--tsv quest-health.tsv]
"""
import argparse
import os
import subprocess
import sys
from collections import defaultdict
SEVERITY = {'ender': 1, 'kill': 2, 'item': 2, 'object': 2, 'trigger': 2, 'no-objective': 3, 'marker': 4}
class Db:
def __init__(self, a):
self.cmd = [a.mysql, '-B', '-N', '--default-character-set=utf8mb4']
self.cmd += ['--socket', a.socket] if a.socket else ['-h', a.host, '-P', str(a.port), '-u', a.user]
self.env = dict(os.environ)
if a.password is not None:
self.env['MYSQL_PWD'] = a.password # not on the command line
self.db = a.world
def rows(self, sql):
r = subprocess.run(self.cmd + [self.db], input=sql.encode(), capture_output=True, env=self.env)
if r.returncode:
sys.exit('mysql failed: %s\n%s' % (r.stderr.decode(errors='replace').strip(), sql[:200]))
return [line.split('\t') for line in r.stdout.decode('utf-8', errors='replace').splitlines() if line]
def ints(self, sql):
return {int(r[0]) for r in self.rows(sql) if r[0] not in ('', 'NULL')}
def has_table(self, name):
return bool(self.rows("SHOW TABLES LIKE '%s'" % name))
def load_db2(repo, folder):
"""spell effects and area trigger ids from the client data; empty when no folder is given"""
out = dict(create_item=set(), kill_credit=set(), summon_creature=set(), summon_object=set(), quest_complete=set(),
area_triggers=None, item_starts=None)
if not folder:
return out
sys.path.insert(0, os.path.join(repo, 'tools', 'client_diff'))
from wdc5 import Schemas, read_db2 # our own reader (field names from DB2Metadata.h / DB2LoadInfo.h)
sch = Schemas(repo)
path = os.path.join(folder, 'SpellEffect.db2')
if os.path.exists(path):
rows, _ = read_db2(path, sch)
for r in rows.values():
e = r.get('Effect')
misc = r.get('EffectMiscValue1') or 0
if e in (24, 157) and r.get('EffectItemType'): # CREATE_ITEM, CREATE_LOOT
out['create_item'].add(r['EffectItemType'])
elif e == 6 and r.get('EffectAura') == 86 and r.get('EffectItemType'): # aura CHANNEL_DEATH_ITEM (shards, spirits)
out['create_item'].add(r['EffectItemType'])
elif e in (90, 134) and misc: # KILL_CREDIT, KILL_CREDIT2
out['kill_credit'].add(misc)
elif e in (28, 41, 56, 290) and misc: # SUMMON variants
out['summon_creature'].add(misc)
elif e in (50, 76, 86, 104, 105, 106, 107) and misc: # TRANS_DOOR, SUMMON_OBJECT_WILD, ACTIVATE_OBJECT, SUMMON_OBJECT_SLOT
out['summon_object'].add(misc)
elif e == 16 and misc: # QUEST_COMPLETE
out['quest_complete'].add(misc)
path = os.path.join(folder, 'ItemSparse.db2')
if os.path.exists(path):
rows, _ = read_db2(path, sch)
out['item_starts'] = {}
for r in rows.values():
if r.get('StartQuestID'):
out['item_starts'][r['ID']] = r['StartQuestID']
path = os.path.join(folder, 'AreaTrigger.db2')
if os.path.exists(path):
rows, _ = read_db2(path, sch)
out['area_triggers'] = set(rows)
return out
def script_numbers(repo):
"""every number of 3 to 7 digits in the C++ scripts: an id named there may be credited or summoned by code"""
import re
nums = set()
for root in ('src/server/scripts', 'src/server/game/Battlegrounds', 'src/server/game/OutdoorPvP'):
for dirpath, _, files in os.walk(os.path.join(repo, root)):
for f in files:
if f.endswith(('.cpp', '.h')):
with open(os.path.join(dirpath, f), encoding='latin-1') as fh:
nums.update(int(n) for n in re.findall(r'(?<![\w.])(\d{3,7})(?![\w.])', fh.read()))
return nums
def main():
ap = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)
ap.add_argument('--repo', default='.')
ap.add_argument('--world', required=True, help='world database name, from WorldDatabaseInfo in worldserver.conf')
ap.add_argument('--db2', help='client DB2 folder (server data\\dbc\\enUS); without it spell and trigger checks are skipped')
ap.add_argument('--mysql', default='mysql')
ap.add_argument('--host', default='127.0.0.1')
ap.add_argument('--port', type=int, default=3306)
ap.add_argument('--socket', help='connect through this socket instead (Linux)')
ap.add_argument('--user', default='playerbot')
ap.add_argument('--password', default=None)
ap.add_argument('--out', default='quest-health.md')
ap.add_argument('--tsv')
ap.add_argument('--all', action='store_true', help='also check quests without a Classic level (retail data)')
ap.add_argument('--no-markers', action='store_true', help='leave out the "no map area" lines')
a = ap.parse_args()
db = Db(a)
d2 = load_db2(a.repo, a.db2)
in_code = script_numbers(a.repo)
spawned_c = db.ints('SELECT DISTINCT id FROM creature')
spawned_g = db.ints('SELECT DISTINCT id FROM gameobject')
sai = db.rows('SELECT action_type, action_param1 FROM smart_scripts WHERE action_type IN (12,50,56,33,15,26) AND action_param1 > 0')
sai_c = {int(p) for t, p in sai if t == '12'}
sai_g = {int(p) for t, p in sai if t == '50'}
sai_item = {int(p) for t, p in sai if t == '56'}
sai_credit = {int(p) for t, p in sai if t == '33'}
sai_quest = {int(p) for t, p in sai if t in ('15', '26')}
sai_g_guids = set()
if db.has_table('creature_summon_groups'):
sai_c |= db.ints('SELECT DISTINCT entry FROM creature_summon_groups')
# spell events (SEND_EVENT): event_scripts command 10 = summon creature, 9 = respawn object (by guid), 8 = kill credit
if db.has_table('event_scripts'):
for cmd, val in db.rows('SELECT command, datalong FROM event_scripts WHERE command IN (8, 9, 10) AND datalong > 0'):
{'10': sai_c, '8': sai_credit, '9': sai_g_guids}[cmd].add(int(val))
if sai_g_guids:
sai_g |= db.ints('SELECT DISTINCT id FROM gameobject WHERE guid IN (%s)' % ','.join(map(str, sorted(sai_g_guids))))
credit_of_spawned = db.ints('SELECT DISTINCT KillCredit1 FROM creature_template WHERE KillCredit1 > 0 AND entry IN (SELECT id FROM creature)') \
| db.ints('SELECT DISTINCT KillCredit2 FROM creature_template WHERE KillCredit2 > 0 AND entry IN (SELECT id FROM creature)')
loot_items = set()
for t in ('creature', 'gameobject', 'item', 'pickpocketing', 'skinning', 'fishing', 'disenchant', 'prospecting', 'milling',
'reference', 'spell', 'mail'):
loot_items |= db.ints('SELECT DISTINCT Item FROM %s_loot_template WHERE ItemType = 0' % t)
vendor = db.ints('SELECT DISTINCT item FROM npc_vendor WHERE item > 0')
q_items = db.rows('SELECT ID, StartItem, ItemDrop1, ItemDrop2, ItemDrop3, ItemDrop4, RewardItem1, RewardItem2, RewardItem3, '
'RewardItem4, RewardChoiceItemID1, RewardChoiceItemID2, RewardChoiceItemID3, RewardChoiceItemID4, '
'RewardChoiceItemID5, RewardChoiceItemID6 FROM quest_template')
quest_given = {int(v) for r in q_items for v in r[1:] if v not in ('0', '')}
given_by = defaultdict(set) # item -> quests that hand it out or reward it
for r in q_items:
for v in r[1:]:
if v not in ('0', ''):
given_by[int(v)].add(int(r[0]))
item_sources = loot_items | vendor | quest_given | sai_item | d2['create_item']
starters = defaultdict(set)
for q, i in db.rows('SELECT quest, id FROM creature_queststarter'):
starters[int(q)].add(('c', int(i)))
for q, i in db.rows('SELECT quest, id FROM gameobject_queststarter'):
starters[int(q)].add(('g', int(i)))
enders = defaultdict(set)
for q, i in db.rows('SELECT quest, id FROM creature_questender'):
enders[int(q)].add(('c', int(i)))
for q, i in db.rows('SELECT quest, id FROM gameobject_questender'):
enders[int(q)].add(('g', int(i)))
disabled = db.ints('SELECT entry FROM disables WHERE sourceType = 1')
# the quests of this game (Classic levels known); the rest of the retail data has givers in the world but is not offered
classic = db.ints('SELECT ID FROM quest_template_classic_level') if db.has_table('quest_template_classic_level') and not a.all else None
addon_script = {int(r[0]): r[1] for r in db.rows("SELECT ID, ScriptName FROM quest_template_addon WHERE ScriptName <> ''")}
c_script = {int(r[0]): r[1] for r in db.rows("SELECT entry, ScriptName FROM creature_template WHERE ScriptName <> ''")}
g_script = {int(r[0]): r[1] for r in db.rows("SELECT entry, ScriptName FROM gameobject_template WHERE ScriptName <> ''")}
trig_quests = db.ints('SELECT DISTINCT quest FROM areatrigger_involvedrelation')
custom_trig = db.ints('SELECT DISTINCT AreaTriggerId FROM areatrigger_create_properties') if db.has_table('areatrigger_create_properties') else set()
poi = db.ints('SELECT DISTINCT QuestID FROM quest_poi')
names = {}
for r in db.rows('SELECT entry, name FROM creature_template'):
names[('c', int(r[0]))] = r[1]
for r in db.rows('SELECT entry, name FROM gameobject_template'):
names[('g', int(r[0]))] = r[1]
def is_spawned(k):
return (k[1] in spawned_c or k[1] in sai_c or k[1] in d2['summon_creature']) if k[0] == 'c' else \
(k[1] in spawned_g or k[1] in sai_g or k[1] in d2['summon_object'])
# quests started by an item (the item's StartQuestID; quest_template.StartItem is the item handed out on accept)
item_start = defaultdict(set)
for i, qid in (d2['item_starts'] or {}).items():
item_start[qid].add(i)
quests = {}
for r in db.rows('SELECT ID, LogTitle, QuestSortID, StartItem, Flags FROM quest_template'):
quests[int(r[0])] = dict(title=r[1], sort=int(r[2]), start_item=int(r[3]), flags=int(r[4]))
objectives = defaultdict(list)
for r in db.rows('SELECT QuestID, Type, ObjectID, Description FROM quest_objectives ORDER BY QuestID, `Order`'):
objectives[int(r[0])].append((int(r[1]), int(r[2]), r[3]))
findings = []
startable = 0
for qid, q in sorted(quests.items()):
if qid in disabled or (classic is not None and qid not in classic):
continue
givers = starters.get(qid, set())
if not any(is_spawned(k) for k in givers) and not any(
i in loot_items | vendor | sai_item | d2['create_item'] or given_by.get(i, set()) - {qid}
for i in item_start.get(qid, ())):
continue # nobody and no item can start it: not part of this world (retail data)
startable += 1
script = addon_script.get(qid) or next((c_script.get(k[1]) if k[0] == 'c' else g_script.get(k[1])
for k in givers | enders.get(qid, set())
if (c_script if k[0] == 'c' else g_script).get(k[1])), '')
def add(kind, what, obj=None):
sev, note = SEVERITY[kind], script
if obj is not None and obj in in_code: # named in C++: likely handled there, check in game, lower in the list
sev, note = sev + 1, (script + ' ' if script else '') + '(id %d is in C++ scripts)' % obj
findings.append((sev, qid, q['title'], q['sort'], kind, what, note))
ends = enders.get(qid, set())
if not ends:
add('ender', 'no quest ender at all')
elif not any(is_spawned(k) for k in ends):
add('ender', 'ender not spawned: ' + ', '.join('%s %d %s' % ('creature' if k[0] == 'c' else 'object', k[1],
names.get(k, '?')) for k in sorted(ends)),
next((k[1] for k in sorted(ends) if k[1] in in_code), None))
objs = objectives.get(qid, [])
if not objs and q['flags'] & 4 and qid not in trig_quests and qid not in sai_quest and qid not in d2['quest_complete']:
add('no-objective', 'a "go there" quest (flag 4) with no area trigger, script or spell to complete it', qid)
for typ, obj, desc in objs:
label = desc or str(obj)
if typ == 0: # kill / talk credit
if not (obj in spawned_c or obj in sai_c or obj in credit_of_spawned or obj in sai_credit
or obj in d2['kill_credit'] or obj in d2['summon_creature']):
add('kill', 'creature %d (%s): not spawned, summoned, or anyone\'s kill credit; "%s"' % (obj, names.get(('c', obj), '?'), label), obj)
elif typ == 1:
if obj not in item_sources:
add('item', 'item %d: no drop, vendor, quest, spell or script gives it; "%s"' % (obj, label), obj)
elif typ == 2:
if not (obj in spawned_g or obj in sai_g or obj in d2['summon_object']):
add('object', 'gameobject %d (%s) not spawned or summoned; "%s"' % (obj, names.get(('g', obj), '?'), label), obj)
elif typ == 10:
known = d2['area_triggers'] is None or obj in d2['area_triggers'] or obj in custom_trig
if not known:
add('trigger', 'area trigger %d is not in the client data and not a server-side trigger; "%s"' % (obj, label), obj)
if objs and qid not in poi and not a.no_markers:
add('marker', 'no map area (quest_poi)')
findings.sort(key=lambda f: (f[0], f[3], f[1]))
counts = defaultdict(int)
for f in findings:
counts[f[4]] += 1
tmp = a.out + '.tmp'
with open(tmp, 'w', encoding='utf-8') as o:
o.write('# Quest health sweep\n\nWorld database `%s`; client DB2 %s.\n\n' % (a.world, a.db2 or 'not given (spell and trigger checks skipped)'))
o.write('%d quests a player can start were checked. Findings: %s.\n\n' % (
startable, ', '.join('%s %d' % (k, counts[k]) for k in sorted(counts, key=lambda k: SEVERITY[k])) or 'none'))
o.write('"script" means a C++ script on the quest, giver or ender may give the credit itself: check those in game.\n\n')
o.write('| quest | title | zone/sort | problem | what | script |\n|---|---|---|---|---|---|\n')
for sev, qid, title, sort, kind, what, script in findings:
o.write('| %d | %s | %d | %s | %s | %s |\n' % (qid, title.replace('|', '/'), sort, kind, what.replace('|', '/'), script))
os.replace(tmp, a.out)
if a.tsv:
tmp = a.tsv + '.tmp'
with open(tmp, 'w', encoding='utf-8') as o:
o.write('quest\ttitle\tsort\tproblem\twhat\tscript\n')
for sev, qid, title, sort, kind, what, script in findings:
o.write('%d\t%s\t%d\t%s\t%s\t%s\n' % (qid, title, sort, kind, what, script))
os.replace(tmp, a.tsv)
print('%d startable quests, %d findings (%s) -> %s' % (startable, len(findings), dict(counts), a.out))
if __name__ == '__main__':
main()
+175
View File
@@ -0,0 +1,175 @@
#!/usr/bin/env python3
"""Five-minute check after a build lands on the dev realm. Read-only; it never starts, stops or changes the server.
1. Console flood: reads the worldserver log written since the server started (or the last N minutes) and lists every
message that repeats (numbers ignored, so "pet 12 path" and "pet 13 path" count as one). A message printed again and
again is a bug even when nothing is visibly broken (0.1.37.1: "Missing name Pathfinding.PetLiquidCost" on every pet
path). Also counts errors: missing config keys, database errors, unknown tables or columns, failed SQL updates, script
errors.
2. Quest regressions: runs the quest health sweep (quest_health.py) and compares it with the last build's run, so a
quest that this build broke shows up on its own instead of in a list of hundreds.
3. Server answers: if SOAP is on (SOAP.Enabled = 1 in worldserver.conf), sends ".server info" and checks the reply.
python3 -I tools/quest_health/smoke_test.py --repo . --log "<server>\\logs\\Server.log" \\
--world <worldDB> --db2 <server>\\data\\dbc\\enUS [--mysql <path to mysql.exe>] [--user ..] [--password ..] \\
--baseline <last build's quest-health.tsv> --out smoke-<build>.md [--soap 127.0.0.1:7878 --soap-user X --soap-password Y]
Exit code 0 when everything passes, 1 when something needs a look (the report says what).
"""
import argparse
import base64
import os
import re
import subprocess
import sys
import urllib.request
from collections import Counter
FLOOD_COUNT = 20 # the same message this many times is a flood
ERROR_PATTERNS = [
('missing config key', re.compile(r'Missing (name|property)', re.I)),
('database error', re.compile(r"(\[ERROR\].*(sql|database|mysql))|(Error \d{4} \(\w+\))|(DB error)", re.I)),
('unknown table or column', re.compile(r"(Table '.*' doesn't exist)|(Unknown column)", re.I)),
('SQL update failed', re.compile(r'(Applying of file .* failed)|(update .* failed)', re.I)),
('prepared statement', re.compile(r'prepared statement', re.I)),
('script error', re.compile(r'(ScriptName .* not found)|(Script named .* does not have a script)|(is not assigned in the database)', re.I)),
('crash or assert', re.compile(r'(ASSERTION FAILED)|(Exception)|(crash)', re.I)),
]
STAMP = re.compile(r'^\s*\d{4}-\d{2}-\d{2}[ _T]\d{2}:\d{2}:\d{2}\S*\s*')
def normalise(line):
line = STAMP.sub('', line.rstrip('\r\n'))
line = re.sub(r'0x[0-9a-fA-F]+', '#', line)
line = re.sub(r'-?\d+(\.\d+)?', '#', line)
return line.strip()
def read_log(path, from_start):
"""the part of the log written by the running server: from its last start banner on (or the whole file)"""
with open(path, encoding='utf-8', errors='replace') as f:
lines = f.readlines()
if not from_start:
for i in range(len(lines) - 1, -1, -1):
if 'Using configuration file' in lines[i] or 'worldserver-daemon' in lines[i] or 'TrinityCore rev.' in lines[i]:
return lines[i:]
return lines
def check_log(paths, from_start):
out, bad = [], False
for path in paths:
if not os.path.exists(path):
out.append('- log %s: NOT FOUND' % path)
bad = True
continue
lines = read_log(path, from_start)
counts = Counter(normalise(l) for l in lines if l.strip())
floods = [(n, msg) for msg, n in counts.items() if n >= FLOOD_COUNT and msg]
floods.sort(reverse=True)
out.append('### %s (%d lines since the server started)' % (path, len(lines)))
if floods:
bad = True
out.append('FLOOD: %d message(s) repeat %d+ times:' % (len(floods), FLOOD_COUNT))
out += ['- %d x `%s`' % (n, msg[:200]) for n, msg in floods[:25]]
else:
out.append('no repeated message (none %d+ times)' % FLOOD_COUNT)
for name, rx in ERROR_PATTERNS:
hits = [l.strip() for l in lines if rx.search(l)]
if hits:
bad = True
kinds = Counter(normalise(h) for h in hits)
out.append('%s: %d line(s), %d different:' % (name, len(hits), len(kinds)))
out += ['- %d x `%s`' % (n, msg[:200]) for msg, n in kinds.most_common(10)]
return bad, out
def check_quests(a):
here = os.path.dirname(os.path.abspath(__file__))
tsv = a.out + '.quest-health.tsv'
cmd = [sys.executable, '-I', os.path.join(here, 'quest_health.py'), '--repo', a.repo, '--world', a.world,
'--mysql', a.mysql, '--host', a.host, '--port', str(a.port), '--user', a.user,
'--out', a.out + '.quest-health.md', '--tsv', tsv, '--no-markers']
if a.password is not None:
cmd += ['--password', a.password]
if a.socket:
cmd += ['--socket', a.socket]
if a.db2:
cmd += ['--db2', a.db2]
r = subprocess.run(cmd, capture_output=True, text=True)
if r.returncode:
return True, ['quest sweep FAILED: ' + (r.stderr or r.stdout).strip()[:500]]
out = [r.stdout.strip()]
def keys(path):
with open(path, encoding='utf-8') as f:
next(f, None)
rows = [l.rstrip('\n') for l in f if l.strip()]
# map-marker lines are left out of the smoke run (--no-markers), so they are left out of the comparison too
return {tuple(r.split('\t')[i] for i in (0, 3, 4)): r for r in rows if r.split('\t')[3] != 'marker'}
now = keys(tsv)
if not a.baseline or not os.path.exists(a.baseline):
out.append('no baseline given: this run (%s) is the baseline for the next build' % tsv)
return False, out
before = keys(a.baseline)
new = [now[k] for k in now if k not in before]
gone = [before[k] for k in before if k not in now]
out.append('%d new finding(s) since the baseline, %d fixed' % (len(new), len(gone)))
out += ['- NEW ' + l.replace('\t', ' | ') for l in new[:50]]
out += ['- fixed ' + l.replace('\t', ' | ') for l in gone[:50]]
return bool(new), out
def check_soap(a):
if not a.soap:
return False, ['SOAP not given: skipped']
body = ('<?xml version="1.0" encoding="utf-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" '
'xmlns:ns1="urn:TC"><SOAP-ENV:Body><ns1:executeCommand><command>server info</command></ns1:executeCommand>'
'</SOAP-ENV:Body></SOAP-ENV:Envelope>').encode()
req = urllib.request.Request('http://%s/' % a.soap, data=body, headers={'Content-Type': 'text/xml'})
req.add_header('Authorization', 'Basic ' + base64.b64encode(('%s:%s' % (a.soap_user, a.soap_password)).encode()).decode())
try:
with urllib.request.urlopen(req, timeout=10) as r:
text = r.read().decode(errors='replace')
except Exception as e: # noqa: BLE001 - any failure to answer is the finding
return True, ['.server info over SOAP FAILED: %s' % e]
ok = 'uptime' in text.lower() or 'connected players' in text.lower()
return not ok, ['.server info: %s' % ('answered' if ok else 'unexpected reply: ' + text[:300])]
def main():
ap = argparse.ArgumentParser(description=__doc__, formatter_class=argparse.RawDescriptionHelpFormatter)
ap.add_argument('--repo', default='.')
ap.add_argument('--log', action='append', default=[], help='worldserver log file(s): Server.log, DBErrors.log (repeat)')
ap.add_argument('--whole-log', action='store_true', help='read the whole log, not only since the last server start')
ap.add_argument('--world', required=True)
ap.add_argument('--db2', required=True, help='client DB2 folder; needed so that this run and the baseline check the same things')
ap.add_argument('--mysql', default='mysql')
ap.add_argument('--host', default='127.0.0.1')
ap.add_argument('--port', type=int, default=3306)
ap.add_argument('--socket')
ap.add_argument('--user', default='playerbot')
ap.add_argument('--password', default=None)
ap.add_argument('--baseline', help="the last build's quest-health tsv (this run writes <out>.quest-health.tsv for the next)")
ap.add_argument('--soap', help='host:port of SOAP, if SOAP.Enabled = 1')
ap.add_argument('--soap-user')
ap.add_argument('--soap-password')
ap.add_argument('--out', default='smoke.md')
a = ap.parse_args()
report, failed = ['# Smoke test', ''], []
for name, (bad, lines) in (('Console', check_log(a.log, a.whole_log)), ('Quests', check_quests(a)), ('Server', check_soap(a))):
report += ['## %s: %s' % (name, 'NEEDS A LOOK' if bad else 'ok'), ''] + lines + ['']
if bad:
failed.append(name)
report.insert(1, 'Result: %s' % ('PASS' if not failed else 'needs a look: ' + ', '.join(failed)))
tmp = a.out + '.tmp'
with open(tmp, 'w', encoding='utf-8') as f:
f.write('\n'.join(report) + '\n')
os.replace(tmp, a.out)
print(report[1], '->', a.out)
sys.exit(1 if failed else 0)
if __name__ == '__main__':
main()