0.1.38: bots and core since 0.1.37.6 (Naxxramas: Patchwerk, Grobbulus, Gothik, Maexxna, Sapphiron; raid healers and tanks; bug fixes)
This commit is contained in:
@@ -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).
|
||||
|
||||
@@ -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;
|
||||
+8
@@ -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
|
||||
+8
@@ -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;
|
||||
+5
@@ -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;
|
||||
@@ -0,0 +1,11 @@
|
||||
-- Migration: 0041_bot_text_fixes
|
||||
-- Date: 2026-11-17
|
||||
-- Purpose: Stock lines carried over by 0019 that give the bots away as nonsense or as bots:
|
||||
-- * suggest_something '%zone_name': nothing but the zone's name, so a bot posted just "Тирисфальские леса" /
|
||||
-- "Tirisfal Glades" in General (cyborgx5, GitHub #12). The zone's other lines stay.
|
||||
-- * reply_question_why / reply_question_generic 'dont ask me %s, im just a bot': a bot that says it is a bot.
|
||||
-- Reverts: yes (INSERT the rows back).
|
||||
|
||||
-- @target: shared
|
||||
DELETE FROM {SHARED}.playerbot_v2_bot_text WHERE name = 'suggest_something' AND text = '%zone_name';
|
||||
DELETE FROM {SHARED}.playerbot_v2_bot_text WHERE name IN ('reply_question_why', 'reply_question_generic') AND text = 'dont ask me %s, im just a bot';
|
||||
@@ -0,0 +1,14 @@
|
||||
-- Migration: 0042_bot_text_meta_lines
|
||||
-- Date: 2026-11-17
|
||||
-- Purpose: Four 'reply' lines (not understood, reply_type 0) carried over by 0019 that talk about the chat itself the way a
|
||||
-- program would: confused by the chat, everyone says the same things, trying to understand a comment. A bot
|
||||
-- whispered something it does not understand answered with one of them, and a player reads it as a bot. The
|
||||
-- other 'not understood' lines (huh?, what?, you lost me, ...) stay.
|
||||
-- Reverts: yes (INSERT the rows back, reply_type 0).
|
||||
|
||||
-- @target: shared
|
||||
DELETE FROM {SHARED}.playerbot_v2_bot_text WHERE name = 'reply' AND reply_type = 0 AND text IN (
|
||||
'These chat-messages are freaking me out! I feel like I know you all!',
|
||||
'Why is everybody always saying the same things???',
|
||||
'thought i should remain silent, was getting confused from chat again',
|
||||
'i will attempt to understand that comment');
|
||||
@@ -22,6 +22,8 @@ Applied in ascending numeric order; each file records itself in
|
||||
- `0025_owner_gear_mode.sql` — `playerbot_v2_owner_gear`: the gear mode (match / best / t1 / t2 / t3) an owner chose for their companions, per owner account
|
||||
- `0038_owner_language.sql` — `playerbot_v2_owner_language`: the language (en / ru) a player chose for the bots' replies with `.bot language`, per account
|
||||
- `0040_companion_talent_code.sql` — `playerbot_v2_character.companion_talents`: a companion's own talent build, given as a Wowhead Forever talent calculator code (`change talents <link>`), kept across relog and restart
|
||||
- `0041_bot_text_fixes.sql` — (shared DB) removes stock lines that read as nonsense or as a bot: the `suggest_something` line that was only `%zone_name`, and "dont ask me %s, im just a bot"
|
||||
- `0042_bot_text_meta_lines.sql` — (shared DB) removes four "not understood" replies that talk about the chat like a program ("getting confused from chat again", "i will attempt to understand that comment", ...)
|
||||
|
||||
## Discipline
|
||||
- Never edit a numbered migration after it ships. Add a new one to amend.
|
||||
|
||||
@@ -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);
|
||||
|
||||
/**
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 });
|
||||
|
||||
@@ -3500,6 +3500,16 @@ do
|
||||
-- Another add-on is named once per session: ExtraProfessionTabs moving the action bars in a fight got one line per
|
||||
-- refused call, a chat full of them on every fight (Discord, arrathem, 2026-11-15), which read as our add-on breaking.
|
||||
if addon ~= ADDON then
|
||||
-- "*** ForceTaint_Strong ***" is no add-on but the client's own lock on macros: in a boss fight a macro may only send
|
||||
-- one chat line in a short time, and only to the group or as a whisper to someone in the instance. A macro line such as
|
||||
-- ".aura self 1459" goes out as /say and is refused (Discord, VoldemarGreed 2026-11-17).
|
||||
if type(addon) == "string" and not IsSecret(addon) and addon:find("^%*%*%*") then
|
||||
if not otherBlocked[addon] then
|
||||
otherBlocked[addon] = true
|
||||
Print(L["the client refused a macro line in a boss fight: there a macro may only send one line at a time, to /p, /ra or a whisper. For a dot command start the line with /w %s (for example /w %s .aura self 1459 21562)."]:format(SafeName("player") or "YourName", SafeName("player") or "YourName"))
|
||||
end
|
||||
return
|
||||
end
|
||||
if type(addon) == "string" and not IsSecret(addon) and not otherBlocked[addon] then
|
||||
otherBlocked[addon] = true
|
||||
Print("the client blocked " .. func .. "() for the add-on " .. addon .. " (" .. (event == "ADDON_ACTION_BLOCKED" and "blocked" or "forbidden") .. "). Further blocked calls of " .. addon .. " are not shown; that add-on causes them, not ForeverBots.")
|
||||
|
||||
@@ -584,6 +584,7 @@ ForeverBotsLocale = {
|
||||
["short:Set"] = "Мышью",
|
||||
["Set with the mouse"] = "Поставить мышью",
|
||||
["short:G%d"] = "Г%d",
|
||||
["the client refused a macro line in a boss fight: there a macro may only send one line at a time, to /p, /ra or a whisper. For a dot command start the line with /w %s (for example /w %s .aura self 1459 21562)."] = "клиент не пропустил строку макроса в бою с боссом: там макрос может отправлять только одну строку за раз, в /p, /ra или шепотом. Для команды с точкой начните строку с /w %s (например /w %s .aura self 1459 21562).",
|
||||
["Tick every bot in this raid group. Click again when they are all ticked to untick them."] = "Отметить всех ботов этой группы рейда. Нажмите еще раз, когда отмечены все, чтобы снять отметку.",
|
||||
-- Tank leads (Orders tab)
|
||||
["short:Ignore"] = "Не трогать", -- check
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#include "BotItemScorer.h"
|
||||
#include "ClassicSpec.h"
|
||||
#include "Bot/ClassTables.h" // IsVanillaRealm()
|
||||
#include "ItemTemplate.h"
|
||||
#include "Item.h"
|
||||
#include "Player.h"
|
||||
@@ -57,6 +58,14 @@ ItemSubclassArmor PreferredArmorForClass(uint8 cls)
|
||||
}
|
||||
}
|
||||
|
||||
ItemSubclassArmor WearableArmorForClass(uint8 cls, uint8 level)
|
||||
{
|
||||
ItemSubclassArmor const best = PreferredArmorForClass(cls);
|
||||
if (level < 40 && ::Playerbot::IsVanillaRealm() && (best == ITEM_SUBCLASS_ARMOR_PLATE || best == ITEM_SUBCLASS_ARMOR_MAIL))
|
||||
return ItemSubclassArmor(best - 1);
|
||||
return best;
|
||||
}
|
||||
|
||||
namespace {
|
||||
|
||||
// Classic 1.60 enhancement shaman: attack power is level * 2 + Strength * 2 (no Agility: VMaNGOS / Player::UpdateAttackPowerAndDamage),
|
||||
@@ -236,10 +245,12 @@ int32 ScoreItemForClass(ItemTemplate const* tpl,
|
||||
if (tpl->GetClass() == ITEM_CLASS_ARMOR)
|
||||
{
|
||||
ItemSubclassArmor sub = ItemSubclassArmor(tpl->GetSubClass());
|
||||
ItemSubclassArmor preferred = PreferredArmorForClass(cls);
|
||||
ItemSubclassArmor const preferred = WearableArmorForClass(cls, level);
|
||||
if (sub == preferred) score += 200;
|
||||
else if (sub == ITEM_SUBCLASS_ARMOR_MISCELLANEOUS) score += 50;
|
||||
else if (sub == ITEM_SUBCLASS_ARMOR_COSMETIC) score += 0;
|
||||
else if (sub >= ITEM_SUBCLASS_ARMOR_CLOTH && sub < preferred)
|
||||
score -= 100 * int32(preferred - sub); // two tiers under (leather on a mail wearer) loses more than one
|
||||
else score -= 100;
|
||||
}
|
||||
else if (tpl->GetClass() == ITEM_CLASS_WEAPON)
|
||||
@@ -698,14 +709,14 @@ int32 ScoreItemRaid(ItemTemplate const* tpl, uint8 cls, uint16 spec, uint8 level
|
||||
total -= 60.0f;
|
||||
}
|
||||
|
||||
// Armor type: a piece one tier under the class's own (mail on a warrior, leather on a shaman) loses the armor and
|
||||
// the class bonuses; about a fifth of what it is worth.
|
||||
// Armor type: a piece one tier under the best the wearer can put on at its level (mail on a level 40 warrior, leather on a
|
||||
// level 20 one) loses the armor and the class bonuses; about a fifth of what it is worth, and again for each further tier.
|
||||
if (tpl->GetClass() == ITEM_CLASS_ARMOR && IsArmorPieceSlotType(inv))
|
||||
{
|
||||
ItemSubclassArmor const preferred = PreferredArmorForClass(cls);
|
||||
ItemSubclassArmor const preferred = WearableArmorForClass(cls, level);
|
||||
uint32 const sub = tpl->GetSubClass();
|
||||
if (sub >= ITEM_SUBCLASS_ARMOR_CLOTH && sub <= ITEM_SUBCLASS_ARMOR_PLATE && sub < uint32(preferred))
|
||||
total *= (role == RaidRole::Tank) ? 0.6f : 0.8f;
|
||||
total *= std::pow((role == RaidRole::Tank) ? 0.6f : 0.8f, float(uint32(preferred) - sub));
|
||||
}
|
||||
|
||||
// Weapon style. A two-hander carries the budget of both hands and leaves no offhand: right for the classes that
|
||||
|
||||
@@ -67,6 +67,13 @@ int32 EffectiveItemLevelForLevel(ItemTemplate const* tpl, uint8 level);
|
||||
// warriors hold Plate Mail (293) and 13931/14022 hunters hold Mail (413).
|
||||
ItemSubclassArmor PreferredArmorForClass(uint8 cls);
|
||||
|
||||
// The highest armor tier the class can put on at this level: what the scorer ranks against. On the level-60 (Forever) realm
|
||||
// the trainers teach Mail (8737) and Plate Mail (750) at 40 (trainer_spell ReqLevel 40), so below 40 a warrior or paladin
|
||||
// wears mail and a hunter or shaman leather. Elsewhere it is PreferredArmorForClass. Ranking against plate a sub-40 warrior
|
||||
// cannot wear put mail and leather under the same penalty, and an agility leather piece beat the mail one (DoctorSun,
|
||||
// Discord 2026-11-17: a level 21 warrior in leather).
|
||||
ItemSubclassArmor WearableArmorForClass(uint8 cls, uint8 level);
|
||||
|
||||
// Returns the primary stat (ITEM_MOD_STRENGTH/AGILITY/INTELLECT) for the
|
||||
// (class, spec) pair. Hybrid classes (Druid/Monk/Pally/Sham) have spec-
|
||||
// dependent primaries; pure classes return their fixed stat.
|
||||
|
||||
@@ -406,6 +406,11 @@ ScopedDeferGridLoads::~ScopedDeferGridLoads()
|
||||
t_deferGridLoads = previous_;
|
||||
}
|
||||
|
||||
bool InBotLogicThread()
|
||||
{
|
||||
return t_botLogicThread;
|
||||
}
|
||||
|
||||
ScopedBotLogicThread::ScopedBotLogicThread() : previous_(t_botLogicThread)
|
||||
{
|
||||
t_botLogicThread = true;
|
||||
@@ -762,19 +767,20 @@ bool TryUnstickJump(Player* p, float forward)
|
||||
|
||||
// ---- SettleToGround ---------------------------------------------------------
|
||||
|
||||
bool SettleToGround(Player* p, float minGap, float maxGap)
|
||||
bool HoverGap(Player* p, float minGap, float maxGap, float& ground)
|
||||
{
|
||||
if (!p || !p->IsInWorld() || !p->IsAlive() || p->IsBeingTeleported())
|
||||
return false;
|
||||
// Falling needs gravity and nothing else in charge of the bot: not on a taxi, vehicle or transport, not flying or swimming, not
|
||||
// already moving (a spline in flight lands where it was told to).
|
||||
// A hover (Levitate, a hover aura) keeps the bot up on purpose.
|
||||
if (p->isMoving() || p->IsFlying() || p->IsInFlight() || p->GetVehicle() || p->GetTransport() || p->IsInWater() ||
|
||||
p->HasUnitState(UNIT_STATE_NOT_MOVE) || p->IsFalling())
|
||||
p->HasUnitState(UNIT_STATE_NOT_MOVE) || p->IsFalling() || p->IsHovering() || p->HasAuraType(SPELL_AURA_HOVER))
|
||||
return false;
|
||||
float const x = p->GetPositionX();
|
||||
float const y = p->GetPositionY();
|
||||
float const z = p->GetPositionZ();
|
||||
float const ground = p->GetMapHeight(x, y, z + 0.5f, true, maxGap + 1.0f);
|
||||
ground = p->GetMapHeight(x, y, z + 0.5f, true, maxGap + 1.0f);
|
||||
if (ground <= INVALID_HEIGHT)
|
||||
return false;
|
||||
float const gap = z - ground;
|
||||
@@ -784,6 +790,16 @@ bool SettleToGround(Player* p, float minGap, float maxGap)
|
||||
// not a fall (a BG river: the bot sank to the bed and drowned).
|
||||
if (float swimZ = 0.f; SwimLevel(p, x, y, z, swimZ))
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool SettleToGround(Player* p, float minGap, float maxGap)
|
||||
{
|
||||
float ground = INVALID_HEIGHT;
|
||||
if (!HoverGap(p, minGap, maxGap, ground))
|
||||
return false;
|
||||
float const x = p->GetPositionX();
|
||||
float const y = p->GetPositionY();
|
||||
// A real player falls client-side; a bot has no client, so nothing ever moves it down. Launch the fall as a spline
|
||||
// (the same as MotionMaster::MoveFall does for creatures) so it drops to the floor and every viewer sees it land.
|
||||
Movement::MoveSplineInit init(p);
|
||||
|
||||
@@ -128,6 +128,8 @@ private:
|
||||
// ScopedBotLogicThread, EnsureGridForQuery never touches the map: it hands the grid to the world thread and returns true, so
|
||||
// the search runs on the tiles that are loaded now. The worker pool sets it once per thread, next to a
|
||||
// MMAP::ScopedThreadNavMeshQuery (own navmesh queries, searches under the navmesh read lock).
|
||||
// True on a bot logic thread (inside a ScopedBotLogicThread): the map threads may be changing the maps right now.
|
||||
bool InBotLogicThread();
|
||||
class ScopedBotLogicThread
|
||||
{
|
||||
public:
|
||||
@@ -199,6 +201,10 @@ void PostTeleportSnap(Player* p);
|
||||
// False (nothing done) when it is moving, flying, swimming, on a vehicle / transport / taxi, or the ground is not in range.
|
||||
bool SettleToGround(Player* p, float minGap = 2.0f, float maxGap = 30.0f);
|
||||
|
||||
// The test SettleToGround makes, without moving anything: true when the bot stands still `minGap`..`maxGap` yards above the ground
|
||||
// under it, with `ground` set to that ground. Same exclusions (moving, flying, swimming or deep water, vehicle / transport / taxi).
|
||||
bool HoverGap(Player* p, float minGap, float maxGap, float& ground);
|
||||
|
||||
// Deep water at (x, y) for this bot (see Api/BotSwim.h): water (not magma or slime) over a floor more than the bot's height under the
|
||||
// surface, asked from in it and not from a bridge or a deck above it. True with `swimZ` = where the bot floats, its head out.
|
||||
bool SwimLevel(Player* p, float x, float y, float zHint, float& swimZ);
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
#include "Player.h" // EQUIPMENT_SLOT_* for wear_gift_gear
|
||||
#include "ObjectMgr.h" // item templates (required level) for wear_gift_gear
|
||||
#include "ItemTemplate.h"
|
||||
#include "Gear/BotGearGenerator.h" // Gear::AutoEquipSlot for wear_gift_gear
|
||||
#include "BotIntentEmitter.h"
|
||||
#include "BotActivityTier.h"
|
||||
#include "Group/GroupSnapshot.h"
|
||||
@@ -1032,11 +1033,13 @@ void BotAI::wear_gift_gear(BotSnapshotView const& s, BotIntentEmitter& em)
|
||||
++it; // kept for later
|
||||
continue;
|
||||
}
|
||||
uint8 const slot = found->equip_slot;
|
||||
// Prot warrior / paladin: the weapon and shield slots belong to EnsureShieldTankWeapon (as in the auto-equip rules).
|
||||
if ((s.spec() == 73 || s.spec() == 66) && (slot == EQUIPMENT_SLOT_MAINHAND || slot == EQUIPMENT_SLOT_OFFHAND))
|
||||
// Prot warrior / paladin: a one-hander goes in the main hand and a shield in the off hand; a two-hander or an off-hand
|
||||
// weapon would push the shield off, so it stays in the bags (as in the auto-equip rules, Gear::AutoEquipSlot). Before
|
||||
// 11-17 every traded weapon and shield stayed in a tank's bags. Never a fishing pole.
|
||||
uint8 const slot = ::Playerbot::V2::Gear::AutoEquipSlot(uint16(s.spec()), found->equip_slot, found->entry);
|
||||
if (slot == 0xFF)
|
||||
{
|
||||
TC_LOG_INFO("playerbot.v2", "[gear] {} (bot {}): traded weapon {} left in the bags (tank weapons are set by the tank rule)",
|
||||
TC_LOG_INFO("playerbot.v2", "[gear] {} (bot {}): traded weapon {} left in the bags (a fishing pole, or not a one-hander or shield for a shield tank)",
|
||||
raw.identity.name, s.bot_id(), found->entry);
|
||||
it = gift_wear_.erase(it);
|
||||
continue;
|
||||
|
||||
@@ -1809,6 +1809,16 @@ bool BotCommandParser::OrderRelease(Player const* sender, Player const* bot, cha
|
||||
return true;
|
||||
}
|
||||
|
||||
void BotCommandParser::DeclareRole(Player* bot, Role role)
|
||||
{
|
||||
if (!bot)
|
||||
return;
|
||||
if (BotAI* ai = Services::Registry().ai(bot->GetGUID().GetCounter()))
|
||||
ai->set_role_override(role);
|
||||
ApplyClassicRoleSpec(bot, role);
|
||||
PersistDeclaredRole(bot, role);
|
||||
}
|
||||
|
||||
void BotCommandParser::ReleaseOwnerFollowOrder(Player const* sender, Player const* bot, char const* why)
|
||||
{
|
||||
if (!bot) return;
|
||||
|
||||
@@ -107,6 +107,10 @@ public:
|
||||
struct AssignRow { uint8 marker; std::string name; char const* role; };
|
||||
static std::vector<AssignRow> AssignList(Group* grp);
|
||||
|
||||
// The bot's declared role, as `/setrole` sets it: the role override, the Classic virtual spec that goes with it (rotation,
|
||||
// talents, gear) and, for an owned companion, the stored role a relog restores. Role::Unknown clears it. World thread.
|
||||
static void DeclareRole(Player* bot, Role role);
|
||||
|
||||
private:
|
||||
// The command table; DispatchSingle wraps it with the [owner_order] log line.
|
||||
static bool DispatchSingleImpl(Player* sender, Player* bot_player, std::string const& msg);
|
||||
|
||||
@@ -1813,6 +1813,12 @@ std::shared_ptr<BotSnapshot const> BotSnapshotBuilder::Build(Player* p, BotAI* b
|
||||
// The wider value is truncated into uint8 because spec IDs <= 256 today;
|
||||
// when Blizzard expands beyond that we'll widen the field.
|
||||
snap->identity.spec = ::Playerbot::Classic::EffectiveSpecId(p);
|
||||
// A Feral druid (103, the cat) that has no Cat Form yet plays the bear (104): Forever teaches Cat Form only with the Great Cat Spirit
|
||||
// quests at 20 (spell 1309050), Bear Form with Body and Heart at 10. The cat rotation without Cat Form cancelled Bear Form as the
|
||||
// "wrong form" and the druid fought in caster form (DoctorSun, Discord 2026-11-17: low-level feral bots would not tank in form until
|
||||
// forced into it with .aura 5487). Only the rotation, forms and role follow; the talent build and the gear keep the Feral spec.
|
||||
if (::Playerbot::IsVanillaRealm() && p->GetClass() == CLASS_DRUID && snap->identity.spec == 103 && !p->HasSpell(768) && p->HasSpell(5487))
|
||||
snap->identity.spec = 104;
|
||||
|
||||
// Infer role from (class, spec). Single source of truth lives in
|
||||
// Bot/ClassTables.cpp (IsTankSpec/IsHealerSpec) — also used by
|
||||
@@ -3427,27 +3433,22 @@ std::shared_ptr<BotSnapshot const> BotSnapshotBuilder::Build(Player* p, BotAI* b
|
||||
for (auto const& it : snap->inventory.bag_items)
|
||||
{
|
||||
if (it.equip_slot == 0xFF) continue;
|
||||
// Mirror the auto-equip rule's Prot-warrior/paladin weapon exclusion
|
||||
// (State_Idle dungeon_auto_equip / MaintainAutoEquipUpgrades): for
|
||||
// spec 73 (Prot Warrior) / 66 (Prot Paladin) the mainhand + offhand
|
||||
// are owned EXCLUSIVELY by EnsureShieldTankWeapon (the 1H+shield
|
||||
// backfill). The score-based rule NEVER swaps those two slots — a
|
||||
// higher-score 2H would evict the shield and churn 2H<->1H+shield —
|
||||
// so a bag weapon that out-scores the equipped 1H is a PERMANENT
|
||||
// non-upgrade here. Counting it reported a "pending upgrade" that can
|
||||
// never apply: the false 6-pending seen on Prot tanks (owner-flagged
|
||||
// 2026-07-01, the classic offhand-vs-2H false alarm). Exclude them so
|
||||
// this count and the rule agree, as this block's header promises.
|
||||
if ((snap->identity.spec == 73 || snap->identity.spec == 66) &&
|
||||
(it.equip_slot == EQUIPMENT_SLOT_MAINHAND ||
|
||||
it.equip_slot == EQUIPMENT_SLOT_OFFHAND))
|
||||
continue;
|
||||
// Mirror the auto-equip rules' slot filter (Gear::AutoEquipSlot): a shield
|
||||
// tank (spec 73 Prot Warrior / 66 Prot Paladin) takes only a one-hander in
|
||||
// the main hand and a shield in the off hand there, since a 2H or an
|
||||
// off-hand weapon would churn against EnsureShieldTankWeapon; never a
|
||||
// fishing pole. Counting a weapon the rules never wear reported a
|
||||
// "pending upgrade" that can never apply (the false 6-pending on Prot
|
||||
// tanks, owner-flagged 2026-07-01), so this count and the rules agree.
|
||||
uint8 const dst = ::Playerbot::V2::Gear::AutoEquipSlot(uint16(snap->identity.spec), it.equip_slot, it.entry);
|
||||
if (dst == 0xFF) continue;
|
||||
// Defense-in-depth: equip_slot is clamped to <19 at capture, but
|
||||
// an OOB read of equipped[19] here is UB — never index past it.
|
||||
if (it.equip_slot >= snap->inventory.equipped.size()) continue;
|
||||
if (dst >= snap->inventory.equipped.size()) continue;
|
||||
if (it.item_level == 0) continue;
|
||||
if (it.quality == 0) continue; // skip POOR
|
||||
EquippedItem const& cur = snap->inventory.equipped[it.equip_slot];
|
||||
EquippedItem const& cur = snap->inventory.equipped[dst];
|
||||
uint32 const cur_entry = ::Playerbot::V2::Gear::IsFishingPole(cur.entry) ? 0u : cur.entry; // a fishing pole is no weapon
|
||||
// Score-based upgrade test (was pure item_level, which tied — and so
|
||||
// refused — quest greens vs starter whites once 12.0 scaling floored
|
||||
// both to the same effective ilvl). The stat allocation breaks the tie.
|
||||
@@ -3455,12 +3456,12 @@ std::shared_ptr<BotSnapshot const> BotSnapshotBuilder::Build(Player* p, BotAI* b
|
||||
if (::Playerbot::V2::Gear::RaidGearActive(snap->identity.level))
|
||||
{
|
||||
auto const& eq = snap->inventory.equipped;
|
||||
if (!::Playerbot::V2::Gear::RaidEquipUpgrade(snap->identity.cls, uint16(snap->identity.spec), snap->identity.level, it.equip_slot,
|
||||
it.entry, cur.entry, eq[EQUIPMENT_SLOT_MAINHAND].entry, eq[EQUIPMENT_SLOT_OFFHAND].entry,
|
||||
if (!::Playerbot::V2::Gear::RaidEquipUpgrade(snap->identity.cls, uint16(snap->identity.spec), snap->identity.level, dst,
|
||||
it.entry, cur_entry, eq[EQUIPMENT_SLOT_MAINHAND].entry, eq[EQUIPMENT_SLOT_OFFHAND].entry,
|
||||
snap->owner_guid.IsEmpty(), snap->guid.GetCounter()))
|
||||
continue;
|
||||
}
|
||||
else if (cur.entry != 0 &&
|
||||
else if (cur_entry != 0 &&
|
||||
EquipFitScore(it.stats, it.item_level, snap->stat_weights) <=
|
||||
EquipFitScore(cur.stats, cur.item_level, snap->stat_weights))
|
||||
continue;
|
||||
|
||||
@@ -1060,6 +1060,12 @@ NearbyUnit const* BotSnapshotView::taunt_candidate(float range) const
|
||||
// Sneed's Shredder on the party's casters untaunted while the tank walked to its assigned mob (deadmines_full run 11:
|
||||
// 79 [tank_loose] lines, Taunt ready, mobs 3-4 y away, no Taunt).
|
||||
}
|
||||
// A raid boss on this tank is all it holds: a loose add is the other tanks' (the coordinator gives them the adds on a boss's tank
|
||||
// first). The taunt turns the tank's swings onto the add, it walks after it with the boss in tow, and the boss turns on the raid.
|
||||
// naxx_maexxna r23: at 36-39 s the main tank went for a spiderling on a healer 12 y off, Maexxna went to the second tank, the main
|
||||
// tank took her back just before the Web Spray with the spiderlings on it too, and died in the stun at 47 s.
|
||||
if (s_->instance_ctx.is_in_raid && ThreatVictim(a->victim_kind) == ThreatVictim::Me && (a->is_dungeon_boss || a->is_boss_rank))
|
||||
return nullptr;
|
||||
}
|
||||
return UnclaimedLooseAttacker(*s_, range, /*target_reach=*/true, /*leash=*/false, /*controller_leash=*/true);
|
||||
}
|
||||
|
||||
@@ -45,6 +45,36 @@ inline void DamageRateAdd(DamageRate& r, int64_t amount, uint32_t now_ms)
|
||||
r.at_ms = now_ms ? now_ms : 1u;
|
||||
}
|
||||
|
||||
// The largest single hit a raid member took in the last kSpikeWindowMs (Group/GroupSnapshotBuilder.cpp NoteDamageTaken). The rate above
|
||||
// smooths a boss's spike into seconds of average damage, and a heal "covered" a soaker for the average while the next hit alone was most
|
||||
// of its health: Patchwerk's Hateful Strike, 9-11.7k on 10.9k soakers once a second among three, and the healers left each soaker to the
|
||||
// heals in flight for a deficit counted from the rate (naxx_patchwerk 1116 rerun: 147 "leaves ... (tank) to heals in flight", 57
|
||||
// stopcasts on tanks at 95%+ just before the next strike, every soaker dead by 55 s). The heals in flight have to cover the next such
|
||||
// hit as well.
|
||||
constexpr uint32_t kSpikeWindowMs = 10000;
|
||||
|
||||
struct DamageSpike
|
||||
{
|
||||
int64_t amount = 0;
|
||||
uint32_t at_ms = 0; // 0: no hit yet
|
||||
};
|
||||
|
||||
inline int64_t DamageSpikeAt(DamageSpike const& s, uint32_t now_ms)
|
||||
{
|
||||
return s.at_ms && int32_t(now_ms - s.at_ms) <= int32_t(kSpikeWindowMs) ? s.amount : 0;
|
||||
}
|
||||
|
||||
inline void DamageSpikeAdd(DamageSpike& s, int64_t amount, uint32_t now_ms)
|
||||
{
|
||||
if (amount <= 0)
|
||||
return;
|
||||
if (amount >= DamageSpikeAt(s, now_ms))
|
||||
{
|
||||
s.amount = amount;
|
||||
s.at_ms = now_ms ? now_ms : 1u;
|
||||
}
|
||||
}
|
||||
|
||||
// The damage the measured rate brings before a heal `land_in_ms` away lands.
|
||||
inline int64_t DamageUntilLand(float per_s, int32_t land_in_ms)
|
||||
{
|
||||
|
||||
@@ -15,4 +15,52 @@ inline bool EfficiencyRulesApply(bool raid_map, bool dungeon_map, bool battlegro
|
||||
return vanilla_realm && !battleground && (raid_map || dungeon_map);
|
||||
}
|
||||
|
||||
// Playerbot.Behavior.HealerAssist (Discord 2026-11-16: "healers are extremely passive in combat, they don't use crowd control nor
|
||||
// offensive spells"). Inside the efficiency scope a healer cast damage only after its patients needed no healing for 10 s and at
|
||||
// 90 % mana or more; a five-player pull is often over by then, so the healer never helped. Outside raids (raid rules) the switch
|
||||
// brings that to 3 s and 60 %. A raid keeps 10 s and 90 %: there the healer's mana is the encounter.
|
||||
struct HealerDamageGate
|
||||
{
|
||||
unsigned quiet_ms;
|
||||
int mana_pct;
|
||||
};
|
||||
inline constexpr HealerDamageGate kRaidHealerDamageGate { 10000u, 90 };
|
||||
inline constexpr HealerDamageGate kDungeonHealerDamageGate { 3000u, 60 };
|
||||
|
||||
inline constexpr HealerDamageGate HealerDamageGateFor(bool raid_rules, bool healer_assist)
|
||||
{
|
||||
return (healer_assist && !raid_rules) ? kDungeonHealerDamageGate : kRaidHealerDamageGate;
|
||||
}
|
||||
|
||||
// The same switch lets a healer bot outside a raid hold an add with its own crowd control (Shackle Undead, Hibernate), but only
|
||||
// while everyone it heals is at kHealerCcHealthPct or more and its own mana at kHealerCcManaPct or more, and in an instance it
|
||||
// starts a new hold at most every kHealerCcNewHoldMs, after the damage dealers took theirs. Without these limits it is what the
|
||||
// switch's off state guards against: rfd_tutenkash 127, a priest shackled each fresh ghoul between Greater Heals, 94 % to 15 %
|
||||
// mana in 27 s, and the tank died.
|
||||
inline constexpr int kHealerCcManaPct = 60;
|
||||
inline constexpr int kHealerCcHealthPct = 70;
|
||||
inline constexpr unsigned kHealerCcNewHoldMs = 20000u;
|
||||
|
||||
inline constexpr bool HealerMayCrowdControl(bool healer_assist, bool raid_rules, int mana_pct, int lowest_hp_pct)
|
||||
{
|
||||
return healer_assist && !raid_rules && mana_pct >= kHealerCcManaPct && lowest_hp_pct >= kHealerCcHealthPct;
|
||||
}
|
||||
|
||||
// A damage-spec paladin (Retribution or Protection) heals only itself (leenergetic, Discord 2026-11-17: "When in a DPS spec, Paladins
|
||||
// don't cast heals on allies at all"). Outside raid rules it now saves a group member in trouble the way a player would: a member at
|
||||
// kHybridSaveHpPct or less while no healer of the group covers him (none alive on the map, none in heal range of him, none with
|
||||
// kHybridHealerCoverManaPct mana), or at kHybridSaveAlwaysPct or less whoever covers him, with kHybridSaveManaPct of its own mana.
|
||||
// A raid keeps its healers' plan: there the paladin's mana and its threat are the encounter's.
|
||||
inline constexpr int kHybridSaveHpPct = 35;
|
||||
inline constexpr int kHybridSaveAlwaysPct = 20;
|
||||
inline constexpr int kHybridSaveManaPct = 20;
|
||||
inline constexpr int kHybridHealerCoverManaPct = 10;
|
||||
|
||||
inline constexpr bool HybridMaySaveAlly(bool raid_rules, int patient_hp_pct, bool healer_covers, int mana_pct)
|
||||
{
|
||||
if (raid_rules || mana_pct < kHybridSaveManaPct)
|
||||
return false;
|
||||
return patient_hp_pct <= kHybridSaveAlwaysPct || (patient_hp_pct <= kHybridSaveHpPct && !healer_covers);
|
||||
}
|
||||
|
||||
} // namespace Playerbot::Combat::ClassicHeal
|
||||
|
||||
@@ -1450,7 +1450,8 @@ uint32 PickCombatManaItem(BotSnapshotView const& s, GroupSnapshotView const* g,
|
||||
// A raid healer uses an item whenever it is ready and the restore fits in what the pool is missing: the items are limited by their
|
||||
// 2-minute cooldown, not by stock, and a bot that waits for 35% fires them late (MC Geddon n8 run 3: potion and rune both at 33% about
|
||||
// 60 s in, the next ones ready at 180 s, the kill at 159 s, four healers dry for the last 30 s).
|
||||
int32 const ceiling = raid_healer ? kHealerManaItemCeilingPct : 20;
|
||||
bool const long_fight = raid_healer && BossFight(s) && g->member_count() > kLongBossFightGroupSize;
|
||||
int32 const ceiling = long_fight ? 100 : raid_healer ? kHealerManaItemCeilingPct : 20;
|
||||
if (mana > ceiling)
|
||||
return 0;
|
||||
if (CombatConsumableUsedRecently(s))
|
||||
|
||||
@@ -449,6 +449,11 @@ constexpr int32 kBossHealerManaItemPct = 35;
|
||||
// ... and the mana % above which it does not even look. The items are on a 2-minute cooldown: spent at 71-81 % (UBRS 20 Oct, both priests)
|
||||
// they were on cooldown when the bar ran dry 80 s later, so a healer uses one only when mana is low.
|
||||
constexpr int32 kHealerManaItemCeilingPct = 30;
|
||||
// A boss fight in a group larger than this (a 20 or 40-man raid) lasts minutes: its healer uses each mana item as soon as the restore fits
|
||||
// in what the pool is missing, so the 2-minute cooldown starts early and the item comes back during the fight. At 30% the first ones came
|
||||
// late and the second never did (naxx_patchwerk 1116 run 3: healer mana 99 -> 30% in 118 s, one Demonic Rune each, all twelve at 0-2%
|
||||
// from 154 s, the raid wiped at 213 s with the boss at 19%). The 5 and 10-man case above is unchanged.
|
||||
constexpr size_t kLongBossFightGroupSize = 10;
|
||||
|
||||
// ======================= Boss fights (major cooldowns) =======================
|
||||
// A boss by its creature data: the dungeon-boss flag or the world-boss rank
|
||||
|
||||
@@ -71,7 +71,9 @@ inline constexpr std::array<Option, 1> kPriest = {{ { 9484, kUndead, 28.f, fa
|
||||
// mob must come within reach of the hunter) first; in combat Scare Beast still holds a beast. Scare Beast is a short-range spell
|
||||
// (vanilla 10 y; every rank has SpellMisc RangeIndex 7, Polymorph has 4): at 28 the hunter cast it from 24-27 y and the core
|
||||
// refused every one (smlibrary_loksey 0.1.28j: 18 casts in 41 s, API_BEYOND_RANGE, the hound killed the tank).
|
||||
inline constexpr std::array<Option, 2> kHunter = {{ { kFreezingTrap, kAnyType, 12.f, true, false, true },
|
||||
// Wyvern Sting (Survival talent, a 12 s sleep shot, humanoids as ApCrowdControl::CanBeCCd keeps it) holds a humanoid in combat from range.
|
||||
inline constexpr std::array<Option, 3> kHunter = {{ { kFreezingTrap, kAnyType, 12.f, true, false, true },
|
||||
{ 19386, kHumanoid, 28.f, false, false },
|
||||
{ 1513, kBeast, 9.f, false, false } }};
|
||||
inline constexpr std::array<Option, 1> kRogue = {{ { 6770, kHumanoid, 9.f, true, true } }};
|
||||
inline constexpr std::array<Option, 2> kDruid = {{ { 2637, kBeast | kDragonkin, 28.f, false, false },
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#include "PveGroupCoordinator.h"
|
||||
#include "Bot/SpellFamily.h"
|
||||
#include "Bot/DeathCause.h"
|
||||
#include "Bot/ClassicHealScope.h" // HealerMayCrowdControl (Playerbot.Behavior.HealerAssist)
|
||||
#include "DungeonScript.h"
|
||||
#include "../BotRegistry.h"
|
||||
#include "../BotCommandParser.h"
|
||||
@@ -404,6 +405,18 @@ void PveGroupCoordinator::Update(uint32 now_ms)
|
||||
100.0f * float(u.hp) / float(u.max_hp) <= rule.hpMax)
|
||||
want = std::max<size_t>(want, mem.size());
|
||||
}
|
||||
// A melee-soak boss (RaidRules::meleeSoak, Patchwerk) needs the main tank and every soaker on the roster: with three, the
|
||||
// fourth tank played DPS, drank no Stoneshield and had no tank healer while the raid layer still sent it in as a soaker, and
|
||||
// the bear on the roster was not one of the raid layer's soakers (naxx_patchwerk 1115 night, [raid_soak]).
|
||||
if (Raid::RaidRules const* rules = Raid::RulesForMap(b.map_id); rules && !rules->meleeSoak.empty())
|
||||
for (auto const& sn : snaps)
|
||||
{
|
||||
if (sn->position.map_id != b.map_id) continue;
|
||||
for (auto const& u : sn->combat.nearby_enemies)
|
||||
for (Raid::MeleeSoak const& rule : rules->meleeSoak)
|
||||
if (u.entry == rule.enemy && u.hp > 0 && u.unit_in_combat)
|
||||
want = std::max<size_t>(want, size_t(rule.count) + 1);
|
||||
}
|
||||
auto live_tank = [&](uint64 low)
|
||||
{
|
||||
for (auto const& e : mem)
|
||||
@@ -520,7 +533,18 @@ void PveGroupCoordinator::Update(uint32 now_ms)
|
||||
uint32 n_healers = 0;
|
||||
for (auto const& e : mem)
|
||||
n_healers += e.healer && e.alive;
|
||||
uint32 budget = n_healers - n_healers / 3; // the rest triage
|
||||
// A melee-soak boss in the fight (Patchwerk): the soakers take the strikes and the tank healers, and a sixth stay on triage.
|
||||
bool soak_fight = false;
|
||||
if (Raid::RaidRules const* rr = Raid::RulesForMap(b.map_id); rr && !rr->meleeSoak.empty())
|
||||
for (auto const& sn : snaps)
|
||||
{
|
||||
if (soak_fight || sn->position.map_id != b.map_id) continue;
|
||||
for (auto const& u : sn->combat.nearby_enemies)
|
||||
if (u.hp > 0 && u.unit_in_combat)
|
||||
for (Raid::MeleeSoak const& ms : rr->meleeSoak)
|
||||
if (ms.enemy == u.entry) soak_fight = true;
|
||||
}
|
||||
uint32 budget = n_healers - n_healers / (soak_fight ? 6 : 3); // the rest triage
|
||||
// Slot order for a short budget: the main tank (it holds the boss and takes most of the damage; MC Gehennas
|
||||
// 2026-10-08: with 4 tanks and 5 healers a plain round-robin left it ONE healer and it died in 12 s) gets its
|
||||
// first two healers, then the off tank and every spare tank get one, then the main tank's third and the off
|
||||
@@ -529,7 +553,8 @@ void PveGroupCoordinator::Update(uint32 now_ms)
|
||||
for (auto const& [tlow, want] : tank_quota)
|
||||
if (tlow != main_tank && tlow != off_tank)
|
||||
spare_tanks.push_back(tlow);
|
||||
std::vector<uint64> const slots = Raid::HealSlotOrder(main_tank, off_tank, spare_tanks, budget);
|
||||
std::vector<uint64> const slots = soak_fight ? Raid::SoakHealSlotOrder(main_tank, off_tank, spare_tanks, budget)
|
||||
: Raid::HealSlotOrder(main_tank, off_tank, spare_tanks, budget);
|
||||
// Sticky: a healer keeps its tank while that tank still has a
|
||||
// slot for it, so one healer dying doesn't shuffle the rest
|
||||
// across the room. Free slots then go to unassigned healers
|
||||
@@ -1365,8 +1390,15 @@ void PveGroupCoordinator::PlanMarkOrders(uint64 group_low, uint32 map_id, bool i
|
||||
|
||||
// Healers keep healing while somebody is in trouble: no crowd control duty for them then.
|
||||
bool emergency = false;
|
||||
int32 lowest_pct = 100; // the most hurt live member (a healer's hold in a fight, below)
|
||||
for (auto const& e : mem)
|
||||
if (e.alive && e.src->max_hp > 0 && Pct(e.src->hp, e.src->max_hp) < 40) { emergency = true; break; }
|
||||
if (e.alive && e.src->max_hp > 0)
|
||||
{
|
||||
int32 const pct = Pct(e.src->hp, e.src->max_hp);
|
||||
lowest_pct = std::min(lowest_pct, pct);
|
||||
if (pct < 40) emergency = true;
|
||||
}
|
||||
bool const healer_assist = Services::Config().behavior_healer_assist();
|
||||
|
||||
// An enemy the raid's data never holds (Raid::NoControl): neither an icon nor the automatic pick sends a caster to it.
|
||||
auto never_controlled = [&](uint32 entry) -> bool
|
||||
@@ -1388,10 +1420,13 @@ void PveGroupCoordinator::PlanMarkOrders(uint64 group_low, uint32 map_id, bool i
|
||||
if (marker == 4) moon_is_tank_mark = true;
|
||||
if (auto h = by_low.find(held_by[4]); held_by[4] && h != by_low.end() && h->second->tank)
|
||||
moon_is_tank_mark = true; // the moon on a tank bot itself
|
||||
// Pass 1: crowd control. Bots in member order, one bot per mob, never the skull, never a boss.
|
||||
// Pass 1: crowd control. Bots in member order, one bot per mob, never the skull, never a boss. With Playerbot.Behavior.HealerAssist
|
||||
// the damage dealers go first and the healers after, so a healer only takes a mob none of them could.
|
||||
if (cc_on)
|
||||
for (int pass = 0; pass < (healer_assist ? 2 : 1); ++pass)
|
||||
for (auto const& e : mem)
|
||||
{
|
||||
if (healer_assist && e.healer != (pass == 1)) continue;
|
||||
if (!e.is_bot || !e.alive || e.tank || !MarkCc::IsMarkCcClass(e.cls)) continue;
|
||||
if (e.healer && emergency) continue;
|
||||
auto po = plan.find(e.guid_low);
|
||||
@@ -1480,10 +1515,16 @@ void PveGroupCoordinator::PlanMarkOrders(uint64 group_low, uint32 map_id, bool i
|
||||
// A healer holds nothing of its own once it is in a fight: its mana is the group's healing (rfd_tutenkash 127: the
|
||||
// priest shackled a fresh ghoul every few seconds between Greater Heals, 94% to 15% mana in 27 s, out of mana three
|
||||
// times, the tank died). Before the pull it still shackles; an icon the owner gave it is still its call.
|
||||
// Playerbot.Behavior.HealerAssist (Discord 2026-11-16: "healers don't use crowd control"): in a fight it may hold one while
|
||||
// everyone is at 70 %+ and its mana at 60 %+ (ClassicHeal::HealerMayCrowdControl), at most one new hold per 20 s, so the
|
||||
// tutenkash drain stops at 60 % mana and never follows a stream of fresh adds.
|
||||
// Not in a raid: ten or more players kill a pack quicker than two of the six damage dealers can hold one mob each, and
|
||||
// the hold broke and re-formed every few seconds as the kill focus moved (UBRS 20 Oct: mark_cc assign / release 66 times
|
||||
// in 5 minutes, two casters' GCDs gone). The raid's encounter rules and the owner's icons still hold mobs.
|
||||
if (!is_raid && po->second.cc_target.IsEmpty() && !(e.healer && e.src->in_combat))
|
||||
bool const healer_fighting = e.healer && e.src->in_combat;
|
||||
int32 const healer_mana = e.src->max_mana > 0 ? Pct(e.src->mana, e.src->max_mana) : 0;
|
||||
if (!is_raid && po->second.cc_target.IsEmpty() &&
|
||||
(!healer_fighting || ::Playerbot::Combat::ClassicHeal::HealerMayCrowdControl(healer_assist, is_raid, healer_mana, lowest_pct)))
|
||||
{
|
||||
static std::mutex auto_cc_mx;
|
||||
static std::unordered_map<uint64, ObjectGuid> auto_cc; // caster -> the mob it holds
|
||||
@@ -1539,7 +1580,17 @@ void PveGroupCoordinator::PlanMarkOrders(uint64 group_low, uint32 map_id, bool i
|
||||
auto_cc.erase(it);
|
||||
}
|
||||
}
|
||||
if (pick.IsEmpty() && pack.size() >= 3)
|
||||
static std::mutex healer_hold_mx;
|
||||
static std::unordered_map<uint64, uint32> healer_hold_ms; // healer -> when it last took a new hold in a fight
|
||||
bool new_hold_ok = true;
|
||||
if (healer_fighting)
|
||||
{
|
||||
std::lock_guard lk(healer_hold_mx);
|
||||
auto const it = healer_hold_ms.find(e.guid_low);
|
||||
new_hold_ok = it == healer_hold_ms.end() ||
|
||||
uint32(cc_now - it->second) >= ::Playerbot::Combat::ClassicHeal::kHealerCcNewHoldMs;
|
||||
}
|
||||
if (pick.IsEmpty() && pack.size() >= 3 && new_hold_ok)
|
||||
{
|
||||
// Mobs nobody tanks first (they are on a member), then the lowest guid so every plan chooses the same one.
|
||||
NearbyUnit const* best = nullptr;
|
||||
@@ -1558,8 +1609,15 @@ void PveGroupCoordinator::PlanMarkOrders(uint64 group_low, uint32 map_id, bool i
|
||||
if (best)
|
||||
{
|
||||
pick = best->guid;
|
||||
std::lock_guard lk(auto_cc_mx);
|
||||
auto_cc[e.guid_low] = pick;
|
||||
{
|
||||
std::lock_guard lk(auto_cc_mx);
|
||||
auto_cc[e.guid_low] = pick;
|
||||
}
|
||||
if (healer_fighting)
|
||||
{
|
||||
std::lock_guard lk(healer_hold_mx);
|
||||
healer_hold_ms[e.guid_low] = cc_now ? cc_now : 1u;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!pick.IsEmpty())
|
||||
@@ -2863,6 +2921,10 @@ void PveGroupCoordinator::PlanRaidTanks(uint64 bkey, uint64 group_low, uint32 ma
|
||||
Member const* v = member_of(m.u->victim);
|
||||
mob_txt += MobName(m.u->entry) + " " + std::to_string(Pct(m.u->hp, m.u->max_hp)) + "%>" +
|
||||
(v ? v->src->name : std::string("pet")) + (m.loose ? "!" : "");
|
||||
// Where a boss is: a boss dragged off his spot shows in the line (naxx_horsemen r23: Sir Zeliek's Holy Wrath killed raiders at
|
||||
// Mograine's corner and then at Korth'azz's, and the log could not say where Zeliek stood; Heigan pulled 40 y west, Feugen across).
|
||||
if (m.u->is_dungeon_boss || m.u->is_boss_rank)
|
||||
mob_txt += " @" + std::to_string(int32(m.u->x)) + "," + std::to_string(int32(m.u->y));
|
||||
}
|
||||
|
||||
uint32 healers = 0, low_mana = 0, casting = 0;
|
||||
|
||||
@@ -587,6 +587,29 @@ bool UsesThrownRanged(uint8 cls)
|
||||
return (cls == CLASS_WARRIOR || cls == CLASS_ROGUE) && Services::Config().behavior_tank_ranged_weapon();
|
||||
}
|
||||
|
||||
bool IsFishingPole(uint32 entry)
|
||||
{
|
||||
ItemTemplate const* t = entry ? sObjectMgr->GetItemTemplate(entry) : nullptr;
|
||||
return t && t->GetClass() == ITEM_CLASS_WEAPON && t->GetSubClass() == ITEM_SUBCLASS_WEAPON_FISHING_POLE;
|
||||
}
|
||||
|
||||
uint8 AutoEquipSlot(uint16 spec, uint8 slot, uint32 entry)
|
||||
{
|
||||
if (slot != EQUIPMENT_SLOT_MAINHAND && slot != EQUIPMENT_SLOT_OFFHAND)
|
||||
return slot;
|
||||
ItemTemplate const* t = sObjectMgr->GetItemTemplate(entry);
|
||||
if (!t || IsFishingPole(entry))
|
||||
return 0xFF;
|
||||
if (spec != 73 && spec != 66)
|
||||
return slot;
|
||||
uint32 const inv = t->GetInventoryType();
|
||||
if (inv == INVTYPE_WEAPON || inv == INVTYPE_WEAPONMAINHAND)
|
||||
return EQUIPMENT_SLOT_MAINHAND; // a one-hander the server would put in the off hand goes to the main hand
|
||||
if (inv == INVTYPE_SHIELD)
|
||||
return EQUIPMENT_SLOT_OFFHAND;
|
||||
return 0xFF;
|
||||
}
|
||||
|
||||
int32 LiveRaidIlvlCap() { return RaidIlvlCap(); }
|
||||
int32 LiveWorldIlvlCap() { return WorldIlvlCap(); }
|
||||
|
||||
@@ -747,6 +770,13 @@ std::string PlanEquipOrder(::Playerbot::BotSnapshot const& snap, std::string con
|
||||
return fmt::format("{}: [{}] is a PvP item, I don't wear those", bot_name, t->GetDefaultLocaleName());
|
||||
if (found->equip_slot == 0xFF || found->equip_slot >= equipped.size())
|
||||
return fmt::format("{}: I can't wear [{}]", bot_name, t->GetDefaultLocaleName());
|
||||
// A shield or off hand never goes on next to a two-hander (the server refuses it, EQUIP_ERR_2HANDED_EQUIPPED), and the
|
||||
// answer said "equipped" (11-17: a tank holding a fishing pole "ignored" every shield it was given).
|
||||
if (found->equip_slot == EQUIPMENT_SLOT_OFFHAND)
|
||||
if (ItemTemplate const* mh = equipped[EQUIPMENT_SLOT_MAINHAND].entry ? sObjectMgr->GetItemTemplate(equipped[EQUIPMENT_SLOT_MAINHAND].entry) : nullptr;
|
||||
mh && mh->GetInventoryType() == INVTYPE_2HWEAPON)
|
||||
return fmt::format("{}: I hold a two-hander ([{}]), give me a one-hand weapon first for [{}]", bot_name,
|
||||
mh->GetDefaultLocaleName(), t->GetDefaultLocaleName());
|
||||
picks.push_back({ found->bag, found->slot, found->equip_slot, found->entry });
|
||||
return fmt::format("{}: equipped {}", bot_name, describe(*found, found->equip_slot));
|
||||
}
|
||||
@@ -759,7 +789,11 @@ std::string PlanEquipOrder(::Playerbot::BotSnapshot const& snap, std::string con
|
||||
if (it.equip_slot == 0xFF || it.equip_slot >= equipped.size() || it.item_level == 0 || it.quality == 0) continue;
|
||||
// Above the bot's level: the server refuses it, but the reply said "equipped" (Gremloc 11-08). Named below if nothing else goes on.
|
||||
if (ItemTemplate const* t = sObjectMgr->GetItemTemplate(it.entry); t && t->GetBaseRequiredLevel() > int32(level)) continue;
|
||||
cands.push_back({ &it, it.equip_slot });
|
||||
// The auto-equip rules' slot filter: never a fishing pole; a shield tank takes a one-hander in the main hand and a
|
||||
// shield in the off hand (a two-hander here pushed the shield off and the tank rule swapped back, every pass).
|
||||
uint8 const dst = AutoEquipSlot(spec, it.equip_slot, it.entry);
|
||||
if (dst == 0xFF) continue;
|
||||
cands.push_back({ &it, dst });
|
||||
}
|
||||
auto score_of = [&](InventoryItem const& it, uint8 slot) -> int32
|
||||
{
|
||||
@@ -782,12 +816,13 @@ std::string PlanEquipOrder(::Playerbot::BotSnapshot const& snap, std::string con
|
||||
}
|
||||
// An off hand next to a two-hander that is being, or stays, worn.
|
||||
EquippedItem const& cur = equipped[slot];
|
||||
uint32 const cur_entry = IsFishingPole(cur.entry) ? 0u : cur.entry; // a worn fishing pole is no weapon
|
||||
bool better;
|
||||
if (raid)
|
||||
better = RaidEquipUpgrade(cls, spec, level, slot, it.entry, cur.entry, equipped[EQUIPMENT_SLOT_MAINHAND].entry,
|
||||
better = RaidEquipUpgrade(cls, spec, level, slot, it.entry, cur_entry, equipped[EQUIPMENT_SLOT_MAINHAND].entry,
|
||||
equipped[EQUIPMENT_SLOT_OFFHAND].entry);
|
||||
else
|
||||
better = cur.entry == 0 || EquipFitScore(it.stats, it.item_level, snap.stat_weights) > EquipFitScore(cur.stats, cur.item_level, snap.stat_weights);
|
||||
better = cur_entry == 0 || EquipFitScore(it.stats, it.item_level, snap.stat_weights) > EquipFitScore(cur.stats, cur.item_level, snap.stat_weights);
|
||||
if (!better) continue;
|
||||
if (ItemTemplate const* t = sObjectMgr->GetItemTemplate(it.entry); !t || ::Playerbot::Gear::IsPvpItem(t)) continue;
|
||||
taken[slot] = true;
|
||||
|
||||
@@ -144,6 +144,17 @@ bool RaidEquipUpgrade(uint8 cls, uint16 spec, uint8 level, uint8 slot, uint32 ba
|
||||
uint32 cur_entry, uint32 cur_mainhand_entry, uint32 cur_offhand_entry,
|
||||
bool world_bot = false, uint64 bot_id = 0);
|
||||
|
||||
// A fishing pole: no weapon to the bots' own gear rules (bots do not fish). A worn one counts as an empty main hand, so any
|
||||
// weapon replaces it, and one in the bags is never put on by itself (a player gave "different gear sets" to a tank bot and it
|
||||
// tanked with a fishing pole: the pole is a two-hander, so no shield could go on next to it).
|
||||
bool IsFishingPole(uint32 entry);
|
||||
// The equipment slot the bots' own gear rules (auto-equip, "equip upgrades", traded gear) may put bag item `entry` in, given
|
||||
// the slot the server picked for it (`slot`), or 0xFF for none. Never a fishing pole. A shield tank (Protection Warrior 73 /
|
||||
// Protection Paladin 66) takes a one-hand weapon in the main hand and a shield in the off hand, and nothing else in those two
|
||||
// slots: a two-hander or an off-hand weapon would push the shield off, and EnsureShieldTankWeapon puts it back (the old churn).
|
||||
// Item templates only, safe on the snapshot build / bot worker threads.
|
||||
uint8 AutoEquipSlot(uint16 spec, uint8 slot, uint32 entry);
|
||||
|
||||
// Build per-class candidate pools at module init. Idempotent. Walks
|
||||
// sObjectMgr->GetItemTemplateStore() exactly once.
|
||||
void Initialize();
|
||||
|
||||
@@ -11,7 +11,9 @@
|
||||
// 3. Out of reach or out of sight: move until it is not.
|
||||
// 4. The leader's orders win: Stop, Flee, Follow, Stay, Pull back given in the last few seconds (or during this fight).
|
||||
// A one-off verb (use, loot) never leaves a lasting state.
|
||||
// 5. Tanks pick up aggro: a mob on a non-tank first, then the leader's target.
|
||||
// 5. Tanks pick up aggro: a mob on a non-tank first (the leader's own target first among them), then the leader's target.
|
||||
// The leader's target is the group's kill target: the damage dealers take it before the tank's (Saul, #bot-feedback 2026-11-17:
|
||||
// "the tank won't prioritize the player's target"; the defensive bots spread over every mob on a member instead).
|
||||
// 6. Out of combat only: Passive, Stay, Follow, formation, leash, follow distance.
|
||||
// Every hold that can keep a grouped bot from fighting asks BotAI::group_fight() and steps aside while it is true.
|
||||
// Raid maps (20 and 40 players) keep their boss tactics: the gate is off while a boss fights there and covers the trash between the
|
||||
@@ -147,7 +149,7 @@ constexpr size_t kNone = size_t(-1);
|
||||
|
||||
inline size_t PickFreeTarget(std::vector<Candidate> const& c);
|
||||
|
||||
// The damage dealer's pick: the leader's order, the script's priority add, the tank's target, the leader's target, then the nearest
|
||||
// The damage dealer's pick: the leader's order, the script's priority add, the leader's target, the tank's target, then the nearest
|
||||
// mob on a member. A mob on the bot itself is a fallback only (the tank takes it back, rule 5), so the group keeps one kill target.
|
||||
// A mob the group holds is left alone while there is anything else to fight; once every mob left is one of the group's holds, the
|
||||
// group opens on the nearest (rule 1, everyone fights: wc_cobrahn_led RC10, the mage and hunter stood 6 s beside the sheeped Deviate
|
||||
@@ -188,15 +190,17 @@ inline size_t PickFreeTarget(std::vector<Candidate> const& c)
|
||||
size_t i;
|
||||
if ((i = best([](Candidate const& x) { return x.leader_ordered; })) != kNone) return i;
|
||||
if ((i = best([](Candidate const& x) { return x.priority_add; })) != kNone) return i;
|
||||
if ((i = best([](Candidate const& x) { return x.tank_target; })) != kNone) return i;
|
||||
if ((i = best([](Candidate const& x) { return x.leader_target; })) != kNone) return i;
|
||||
if ((i = best([](Candidate const& x) { return x.tank_target; })) != kNone) return i;
|
||||
if ((i = best([](Candidate const& x) { return x.on_member && !x.on_me; })) != kNone) return i;
|
||||
return best([](Candidate const& x) { return x.on_me; });
|
||||
}
|
||||
|
||||
// The tank's pick (rule 5): a mob on a group member who is not a tank, nearest first (the taunt or the pull-off takes it); then the
|
||||
// leader's order, then the leader's target, then a mob on a member. A tank that keeps what it has while a loose mob eats the casters is
|
||||
// the UBRS 2026-10-28 22:16 fight: both tanks waiting on the raid plan's assignment, six Incarcerators loose on the mages for 18 s.
|
||||
// The tank's pick (rule 5): a mob on a group member who is not a tank, the leader's own target first and then the nearest (the taunt or
|
||||
// the pull-off takes it); then the leader's order, then the leader's target, then a mob on a member. A tank that keeps what it has while
|
||||
// a loose mob eats the casters is the UBRS 2026-10-28 22:16 fight: both tanks waiting on the raid plan's assignment, six Incarcerators
|
||||
// loose on the mages for 18 s. The leader's target goes first among the loose mobs: the player opens on a mob, it runs at him, and the
|
||||
// tank that took the nearest other loose mob instead left him tanking his own pull (Saul, #bot-feedback 2026-11-17).
|
||||
struct TankCandidate
|
||||
{
|
||||
Candidate mob;
|
||||
@@ -211,7 +215,8 @@ inline size_t PickTankTarget(std::vector<TankCandidate> const& c)
|
||||
Candidate const& m = c[i].mob;
|
||||
if (!m.alive || m.crowd_controlled || m.forbidden || !c[i].on_non_tank)
|
||||
continue;
|
||||
if (pick == kNone || m.dist < c[pick].mob.dist)
|
||||
if (pick == kNone || (m.leader_target && !c[pick].mob.leader_target) ||
|
||||
(m.leader_target == c[pick].mob.leader_target && m.dist < c[pick].mob.dist))
|
||||
pick = i;
|
||||
}
|
||||
if (pick != kNone)
|
||||
|
||||
@@ -169,6 +169,22 @@ uint32_t KnownRank(Player* p, Ranks const& ranks)
|
||||
return 0;
|
||||
}
|
||||
|
||||
// The ranged openers of a pull (the Sons of Hakkar, Gothik on his balcony).
|
||||
Ranks const kPullArcaneShot = { 3044, 14281, 14282, 14283, 14284, 14285, 14286, 14287 };
|
||||
Ranks const kPullFrostbolt = { 116, 205, 837, 7322, 8406, 8407, 8408, 10179, 10180, 10181, 25304 };
|
||||
Ranks const kPullShadowBolt = { 686, 695, 705, 1088, 1106, 7641, 11659, 11660, 11661, 25307 };
|
||||
|
||||
uint32_t RangedPullSpell(Player* p, int& order)
|
||||
{
|
||||
switch (p->GetClass())
|
||||
{
|
||||
case CLASS_HUNTER: order = 0; return KnownRank(p, kPullArcaneShot);
|
||||
case CLASS_MAGE: order = 1; return KnownRank(p, kPullFrostbolt);
|
||||
case CLASS_WARLOCK: order = 2; return KnownRank(p, kPullShadowBolt);
|
||||
default: order = 3; return 0;
|
||||
}
|
||||
}
|
||||
|
||||
// Cooldown, range and line of sight. Casting state is handled by the
|
||||
// election (a busy caster is only a second choice) and by the consumer
|
||||
// (it waits for the running cast to finish).
|
||||
@@ -235,6 +251,14 @@ bool InPhase(Unit const* enemy, float hpMax, float hpMin)
|
||||
return pct <= hpMax && pct >= hpMin;
|
||||
}
|
||||
|
||||
// An enemy up in the air has no ground cone: flying (Onyxia's phase 2) or hovering (Sapphiron's air phase, where he only breathes and
|
||||
// throws Icebolts). naxx_sapphiron r27: the arc guard dropped three bots' walks to an ice block as crossing his Cleave arc while he hovered,
|
||||
// and two of them died to the Frost Breath where they stood.
|
||||
bool Airborne(Unit const* enemy)
|
||||
{
|
||||
return enemy->IsFlying() || enemy->IsHovering();
|
||||
}
|
||||
|
||||
float Dist2D(float ax, float ay, float bx, float by) { return std::sqrt((ax - bx) * (ax - bx) + (ay - by) * (ay - by)); }
|
||||
|
||||
bool InsideAny(std::vector<Circle> const& circles, float x, float y, float margin)
|
||||
@@ -550,7 +574,7 @@ void ApplyFrontArcGuard(Plan const& plan, Member const& self, uint32_t now, Raid
|
||||
float const bx = self.p->GetPositionX(), by = self.p->GetPositionY();
|
||||
for (Unit* enemy : plan.enemies)
|
||||
{
|
||||
if (!enemy->IsAlive() || enemy->IsFlying())
|
||||
if (!enemy->IsAlive() || Airborne(enemy))
|
||||
continue;
|
||||
AvoidFrontal const* front = FrontRule(*plan.rules, plan, self, enemy);
|
||||
if (!front)
|
||||
@@ -573,11 +597,12 @@ void ApplyFrontArcGuard(Plan const& plan, Member const& self, uint32_t now, Raid
|
||||
}
|
||||
}
|
||||
|
||||
bool SetMove(RaidOrder& out, float x, float y, float z, char const* reason)
|
||||
bool SetMove(RaidOrder& out, float x, float y, float z, char const* reason, bool urgent)
|
||||
{
|
||||
out.move = true;
|
||||
out.move_x = x; out.move_y = y; out.move_z = z;
|
||||
out.move_reason = reason;
|
||||
out.move_urgent = urgent;
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -702,7 +727,7 @@ bool Escape(Player* bot, std::vector<Circle> const& circles, RaidOrder& out, std
|
||||
++why[g_usableWhy];
|
||||
continue;
|
||||
}
|
||||
return SetMove(out, px, py, pz, "leave hazard");
|
||||
return SetMove(out, px, py, pz, "leave hazard", /*urgent*/ true);
|
||||
}
|
||||
}
|
||||
tally();
|
||||
@@ -713,12 +738,35 @@ bool Escape(Player* bot, std::vector<Circle> const& circles, RaidOrder& out, std
|
||||
std::string g_clearestWhy;
|
||||
constexpr float kCarrierFloorDz = 4.0f; // a carrier run ends on the carrier's own floor: no more than this above or below it
|
||||
|
||||
bool Clearest(Player* bot, std::vector<Player*> const& others, float wanted, RaidOrder& out, char const* reason,
|
||||
std::vector<Circle> const& avoid, bool urgent)
|
||||
// Where each bot of this plan pass was sent (world thread, cleared with the probe budget each Update). A bot that spreads or runs scores its
|
||||
// spots against where the others are going, not where they stand: two raiders side by side both ran to the same open patch and stood
|
||||
// together again, and a raider whose neighbour was already walking off left too. Bots later in the pass see the earlier ones' moves; the
|
||||
// pass starts at a different bot each time (Update), so no bot always chooses last.
|
||||
std::unordered_map<uint64_t, std::pair<float, float>> g_passDest;
|
||||
|
||||
void PlannedAt(Player const* p, float& x, float& y)
|
||||
{
|
||||
auto const it = g_passDest.find(p->GetGUID().GetCounter());
|
||||
if (it != g_passDest.end()) { x = it->second.first; y = it->second.second; return; }
|
||||
x = p->GetPositionX(); y = p->GetPositionY();
|
||||
}
|
||||
|
||||
float NearestPlanned(float x, float y, std::vector<Player*> const& others)
|
||||
{
|
||||
float nearest = 9999.0f;
|
||||
for (Player* p : others)
|
||||
nearest = std::min(nearest, Dist2D(bot->GetPositionX(), bot->GetPositionY(), p->GetPositionX(), p->GetPositionY()));
|
||||
{
|
||||
float px, py;
|
||||
PlannedAt(p, px, py);
|
||||
nearest = std::min(nearest, Dist2D(x, y, px, py));
|
||||
}
|
||||
return nearest;
|
||||
}
|
||||
|
||||
bool Clearest(Player* bot, std::vector<Player*> const& others, float wanted, RaidOrder& out, char const* reason,
|
||||
std::vector<Circle> const& avoid, bool urgent)
|
||||
{
|
||||
float const nearest = NearestPlanned(bot->GetPositionX(), bot->GetPositionY(), others);
|
||||
|
||||
// Candidate points on rings round the bot, scored first (cheap) and probed best first (a path query each). A carrier standing inside
|
||||
// the raid (Living Bomb, MC 2026-10-12: nearest raider 11-14 yd, 25-30 of the ring points "not better") needs the rings that reach past
|
||||
@@ -736,9 +784,7 @@ bool Clearest(Player* bot, std::vector<Player*> const& others, float wanted, Rai
|
||||
float const angle = float(i) * (2.0f * float(M_PI) / float(steps));
|
||||
float const px = bot->GetPositionX() + distance * std::cos(angle);
|
||||
float const py = bot->GetPositionY() + distance * std::sin(angle);
|
||||
float clear = 9999.0f;
|
||||
for (Player* p : others)
|
||||
clear = std::min(clear, Dist2D(px, py, p->GetPositionX(), p->GetPositionY()));
|
||||
float const clear = NearestPlanned(px, py, others);
|
||||
if (clear < nearest + improvement)
|
||||
{
|
||||
++skippedNear;
|
||||
@@ -781,9 +827,7 @@ bool Clearest(Player* bot, std::vector<Player*> const& others, float wanted, Rai
|
||||
}
|
||||
cx = snapped.GetPositionX();
|
||||
cy = snapped.GetPositionY();
|
||||
float clear = 9999.0f;
|
||||
for (Player* p : others)
|
||||
clear = std::min(clear, Dist2D(cx, cy, p->GetPositionX(), p->GetPositionY()));
|
||||
float const clear = NearestPlanned(cx, cy, others);
|
||||
if (clear < nearest + improvement || (!avoid.empty() && InsideAny(avoid, cx, cy, 1.0f)))
|
||||
{
|
||||
++offMesh;
|
||||
@@ -825,7 +869,7 @@ bool Clearest(Player* bot, std::vector<Player*> const& others, float wanted, Rai
|
||||
|
||||
// Keeps a decision for a couple of seconds so bots do not jitter between equally good points.
|
||||
// World thread only (Update), so no locking.
|
||||
struct Sticky { float x, y, z; uint32_t at; char const* reason; };
|
||||
struct Sticky { float x, y, z; uint32_t at; char const* reason; bool urgent; };
|
||||
std::unordered_map<uint64_t, Sticky> g_sticky;
|
||||
std::unordered_map<uint64_t, uint32_t> g_lastSpread;
|
||||
std::unordered_map<uint64_t, uint32_t> g_lastSpreadLog;
|
||||
@@ -835,6 +879,7 @@ std::unordered_map<uint64_t, uint32_t> g_lastRearStep;
|
||||
std::unordered_map<uint64_t, uint32_t> g_lastCarrierLog;
|
||||
std::unordered_map<uint64_t, uint32_t> g_lastBombLog;
|
||||
std::unordered_map<uint64_t, uint32_t> g_lastStuckLog;
|
||||
std::unordered_map<uint64_t, uint32_t> g_lastDragOutLog;
|
||||
std::unordered_map<uint64_t, uint32_t> g_lastSafeCrossLog;
|
||||
|
||||
bool UseSticky(Player* bot, std::vector<Circle> const& circles, uint32_t now, RaidOrder& out)
|
||||
@@ -845,12 +890,12 @@ bool UseSticky(Player* bot, std::vector<Circle> const& circles, uint32_t now, Ra
|
||||
Sticky const& s = it->second;
|
||||
if (now - s.at > 2000 || Dist2D(bot->GetPositionX(), bot->GetPositionY(), s.x, s.y) < 2.0f || InsideAny(circles, s.x, s.y, 0.5f))
|
||||
return false;
|
||||
return SetMove(out, s.x, s.y, s.z, s.reason);
|
||||
return SetMove(out, s.x, s.y, s.z, s.reason, s.urgent);
|
||||
}
|
||||
|
||||
void Remember(Player* bot, RaidOrder const& d, uint32_t now)
|
||||
{
|
||||
g_sticky[bot->GetGUID().GetCounter()] = { d.move_x, d.move_y, d.move_z, now, d.move_reason };
|
||||
g_sticky[bot->GetGUID().GetCounter()] = { d.move_x, d.move_y, d.move_z, now, d.move_reason, d.move_urgent };
|
||||
}
|
||||
|
||||
// Line hazard (AvoidBreath): the corridor is latched when the breath starts so it stays put while the enemy flies along it.
|
||||
@@ -1224,7 +1269,7 @@ Brain::MoveContext BuildMoveContext(Plan const& plan, Member const& self, std::v
|
||||
for (Unit* enemy : plan.enemies)
|
||||
{
|
||||
// A flying enemy has no ground cone (Onyxia's phase 2: she circles the cave and turns every waypoint).
|
||||
if (enemy->GetEntry() != rule.enemy || !enemy->IsAlive() || enemy->IsFlying() || !InPhase(enemy, rule.hpMax, rule.hpMin))
|
||||
if (enemy->GetEntry() != rule.enemy || !enemy->IsAlive() || Airborne(enemy) || !InPhase(enemy, rule.hpMax, rule.hpMin))
|
||||
continue;
|
||||
float const facing = enemy->GetOrientation() + rule.facingOffsetDeg * (float(M_PI) / 180.0f);
|
||||
float const cx = std::cos(facing), cy = std::sin(facing);
|
||||
@@ -1257,7 +1302,7 @@ Brain::MoveContext BuildMoveContext(Plan const& plan, Member const& self, std::v
|
||||
continue;
|
||||
for (Unit* enemy : plan.enemies)
|
||||
{
|
||||
if (enemy->GetEntry() != rule.enemy || !enemy->IsAlive() || enemy->IsFlying() || !InPhase(enemy, rule.hpMax, rule.hpMin))
|
||||
if (enemy->GetEntry() != rule.enemy || !enemy->IsAlive() || Airborne(enemy) || !InPhase(enemy, rule.hpMax, rule.hpMin))
|
||||
continue;
|
||||
float const eo = enemy->GetOrientation(), ex = enemy->GetPositionX(), ey = enemy->GetPositionY();
|
||||
// Rear: three circles across the back half; front: one in line with her facing. Radius 5 at 6.5 y.
|
||||
@@ -1824,7 +1869,7 @@ bool LeaveMagma(Player* bot, uint32_t now, RaidOrder& out)
|
||||
dry.GetPositionX(), dry.GetPositionY(), dry.GetPositionZ(),
|
||||
bot->isMoving(), bot->IsNonMeleeSpellCast(false), bot->IsMovementPreventedByCasting(),
|
||||
bot->HasUnitState(UNIT_STATE_NOT_MOVE), uint32(bot->GetMotionMaster()->GetCurrentMovementGeneratorType()));
|
||||
return SetMove(out, dry.GetPositionX(), dry.GetPositionY(), dry.GetPositionZ(), "leave lava");
|
||||
return SetMove(out, dry.GetPositionX(), dry.GetPositionY(), dry.GetPositionZ(), "leave lava", /*urgent*/ true);
|
||||
}
|
||||
|
||||
// ---------- Out of the enemy's sight (RaidRules::breakSight) ----------
|
||||
@@ -2488,7 +2533,12 @@ void DecideMove(Plan const& plan, Member const& self, uint32_t now, std::vector<
|
||||
g_carrierRun = true;
|
||||
bool const found = Clearest(bot, others, rule.clearDistance, out, "carrier run", circles, /*urgent*/ true);
|
||||
g_carrierRun = false;
|
||||
if (found) { Remember(bot, out, now); return; }
|
||||
if (found)
|
||||
{
|
||||
out.move_urgent = true; // the aura goes off on its own timer, wherever the carrier stands
|
||||
Remember(bot, out, now);
|
||||
return;
|
||||
}
|
||||
uint32_t& at = g_lastCarrierLog[bot->GetGUID().GetCounter()];
|
||||
if (now - at >= 3000)
|
||||
{
|
||||
@@ -2561,7 +2611,7 @@ void DecideMove(Plan const& plan, Member const& self, uint32_t now, std::vector<
|
||||
}
|
||||
if (!Usable(bot, s->x, s->y, bot->GetPositionZ(), pz, /*urgent*/ true, /*hazard*/ true))
|
||||
continue;
|
||||
SetMove(out, s->x, s->y, pz, "leave hazard");
|
||||
SetMove(out, s->x, s->y, pz, "leave hazard", /*urgent*/ true);
|
||||
Remember(bot, out, now);
|
||||
return;
|
||||
}
|
||||
@@ -2599,6 +2649,46 @@ void DecideMove(Plan const& plan, Member const& self, uint32_t now, std::vector<
|
||||
Remember(bot, out, now);
|
||||
return;
|
||||
}
|
||||
// 2a2. A tank leads its boss out of the lasting hazards he stands in (DragOut): a spot well clear of them, the nearest that a path reaches.
|
||||
if (self.tank)
|
||||
for (DragOut const& rule : rules.dragOut)
|
||||
{
|
||||
Unit* held = bot->GetVictim();
|
||||
if (!held || held->GetEntry() != rule.enemy || held->GetVictim() != bot)
|
||||
continue;
|
||||
std::list<Creature*> hazards;
|
||||
held->GetCreatureListWithEntryInGrid(hazards, rule.hazard, 60.0f);
|
||||
std::vector<Circle> clear;
|
||||
for (Creature* h : hazards)
|
||||
if (h->IsAlive() && clear.size() < 32)
|
||||
clear.push_back({ h->GetPositionX(), h->GetPositionY(), rule.clear });
|
||||
if (!InsideAny(clear, held->GetPositionX(), held->GetPositionY(), 0.0f))
|
||||
continue;
|
||||
float const away = std::atan2(bot->GetPositionY() - held->GetPositionY(), bot->GetPositionX() - held->GetPositionX());
|
||||
int probes = 0;
|
||||
for (float step : { 10.0f, 15.0f, 20.0f, 26.0f })
|
||||
for (float turn : { 0.0f, 0.5f, -0.5f, 1.0f, -1.0f, 1.6f, -1.6f, 2.3f, -2.3f, 3.14f })
|
||||
{
|
||||
float const x = bot->GetPositionX() + step * std::cos(away + turn);
|
||||
float const y = bot->GetPositionY() + step * std::sin(away + turn);
|
||||
if (InsideAny(clear, x, y, 4.0f) || InsideAny(circles, x, y, 1.0f) || ++probes > 8)
|
||||
continue;
|
||||
float z = 0.0f;
|
||||
if (!Usable(bot, x, y, bot->GetPositionZ(), z, /*urgent*/ true, /*hazard*/ true))
|
||||
continue;
|
||||
SetMove(out, x, y, z, "lead the boss out of the hazard");
|
||||
uint32_t& at = g_lastDragOutLog[bot->GetGUID().GetCounter()];
|
||||
if (now - at >= 5000u)
|
||||
{
|
||||
at = now;
|
||||
TC_LOG_INFO("playerbot.v2.raid", "[raid_dragout] {} leads {} out of {} hazard(s) to {:.1f},{:.1f} ({:.0f} y)", bot->GetName(),
|
||||
held->GetName(), clear.size(), x, y, step);
|
||||
}
|
||||
Remember(bot, out, now);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Melee whose target stands inside a hazard for them: hold instead of chasing back in.
|
||||
if (!circles.empty() && !self.tank && !self.healer && !self.ranged)
|
||||
if (Unit* victim = bot->GetVictim())
|
||||
@@ -2615,7 +2705,7 @@ void DecideMove(Plan const& plan, Member const& self, uint32_t now, std::vector<
|
||||
continue;
|
||||
for (Unit* enemy : plan.enemies)
|
||||
{
|
||||
if (enemy->GetEntry() != rule.enemy || enemy->IsFlying() || !InPhase(enemy, rule.hpMax, rule.hpMin))
|
||||
if (enemy->GetEntry() != rule.enemy || Airborne(enemy) || !InPhase(enemy, rule.hpMax, rule.hpMin))
|
||||
continue;
|
||||
if (sideTank && (bot->GetVictim() != enemy || enemy->GetVictim() == bot || !TauntImmune(enemy)))
|
||||
continue;
|
||||
@@ -2646,6 +2736,13 @@ void DecideMove(Plan const& plan, Member const& self, uint32_t now, std::vector<
|
||||
float const py = enemy->GetPositionY() + ring * std::sin(angle);
|
||||
if (!circles.empty() && InsideAny(circles, px, py, 1.0f))
|
||||
continue;
|
||||
// The way out goes round him, never across his face: the walk to the far edge runs past his front (naxx_sapphiron r27:
|
||||
// three bots 25 y off his flank took the far edge when the near one was no use, passed 3-6 y from him and his Cleave
|
||||
// killed all three; four more died that way). A straight line that comes nearer to him than most of the ring is not
|
||||
// taken.
|
||||
if (SegmentDist2D(bot->GetPositionX(), bot->GetPositionY(), px, py, enemy->GetPositionX(), enemy->GetPositionY()) <
|
||||
0.8f * std::min(distance, ring))
|
||||
continue;
|
||||
if (++pathChecks > 6)
|
||||
break;
|
||||
float pz = 0.0f;
|
||||
@@ -2653,7 +2750,7 @@ void DecideMove(Plan const& plan, Member const& self, uint32_t now, std::vector<
|
||||
continue;
|
||||
if (stayHidden && EnemySees(enemy, bot, px, py, pz))
|
||||
continue;
|
||||
SetMove(out, px, py, pz, "leave cone");
|
||||
SetMove(out, px, py, pz, "leave cone", /*urgent*/ true);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -2678,7 +2775,7 @@ void DecideMove(Plan const& plan, Member const& self, uint32_t now, std::vector<
|
||||
continue;
|
||||
for (Unit* enemy : plan.enemies)
|
||||
{
|
||||
if (enemy->GetEntry() != rule.enemy || !enemy->IsAlive() || enemy->IsFlying() || enemy->GetVictim() != bot ||
|
||||
if (enemy->GetEntry() != rule.enemy || !enemy->IsAlive() || Airborne(enemy) || enemy->GetVictim() != bot ||
|
||||
!InPhase(enemy, rule.hpMax, rule.hpMin))
|
||||
continue;
|
||||
float const ex = enemy->GetPositionX(), ey = enemy->GetPositionY();
|
||||
@@ -2727,9 +2824,7 @@ void DecideMove(Plan const& plan, Member const& self, uint32_t now, std::vector<
|
||||
for (Unit* enemy : plan.enemies)
|
||||
if (enemy->GetEntry() == rule.enemy && InPhase(enemy, rule.hpMax, rule.hpMin))
|
||||
{
|
||||
float nearest = 9999.0f;
|
||||
for (Player* p : others)
|
||||
nearest = std::min(nearest, Dist2D(bot->GetPositionX(), bot->GetPositionY(), p->GetPositionX(), p->GetPositionY()));
|
||||
float const nearest = NearestPlanned(bot->GetPositionX(), bot->GetPositionY(), others);
|
||||
if (nearest >= rule.radius * 0.85f)
|
||||
continue;
|
||||
// At most one spread move per bot every 4 seconds, so casters are not hopping around and cancelling their own casts.
|
||||
@@ -3080,7 +3175,7 @@ void DecideMove(Plan const& plan, Member const& self, uint32_t now, std::vector<
|
||||
continue;
|
||||
for (Unit* enemy : plan.enemies)
|
||||
{
|
||||
if (enemy->GetEntry() != rule.enemy || !enemy->IsAlive() || enemy->IsFlying() || !InPhase(enemy, rule.hpMax, rule.hpMin))
|
||||
if (enemy->GetEntry() != rule.enemy || !enemy->IsAlive() || Airborne(enemy) || !InPhase(enemy, rule.hpMax, rule.hpMin))
|
||||
continue;
|
||||
float const ex = enemy->GetPositionX(), ey = enemy->GetPositionY();
|
||||
// The wedge is measured from the line the tank holds her on (the locked FaceAway axis), not from her live facing: that swings with
|
||||
@@ -3433,6 +3528,17 @@ void ElectTankSwaps(Election& e)
|
||||
for (Member& m : plan.members)
|
||||
clean.push_back(&m);
|
||||
std::stable_sort(clean.begin(), clean.end(), [&](Member* a, Member* b) { return a->p->GetDistance(enemy) < b->p->GetDistance(enemy); });
|
||||
// A tank holding other enemies is the last pick: the taunt brings them to the boss with it. On Gluth those are the Zombie Chows
|
||||
// the chow tanks hold, and he eats every one within 15 y (naxx_gluth 1116 run 8: the chow tank Mctankwc "tank swap: take over"
|
||||
// 52 times, the swap tank kept at a chow post by the chow on it, Gluth back to 99-100% after each 10% the raid took off).
|
||||
auto const holdsOthers = [&](Member const* m)
|
||||
{
|
||||
for (Unit* other : plan.enemies)
|
||||
if (other != enemy && other->IsAlive() && other->GetVictim() == m->p)
|
||||
return true;
|
||||
return false;
|
||||
};
|
||||
std::stable_partition(clean.begin(), clean.end(), [&](Member* m) { return !holdsOthers(m); });
|
||||
for (Member* mp : clean)
|
||||
{
|
||||
Member& m = *mp;
|
||||
@@ -3685,9 +3791,30 @@ void PublishMeleeSoak(Plan& plan, std::unordered_map<uint64_t, RaidOrder>& order
|
||||
{
|
||||
if (enemy->GetEntry() != rule.enemy)
|
||||
continue;
|
||||
for (Player* p : MeleeSoakers(plan, rule))
|
||||
std::vector<Player*> const soakers = MeleeSoakers(plan, rule);
|
||||
for (Player* p : soakers)
|
||||
if (auto it = orders.find(p->GetGUID().GetCounter()); it != orders.end())
|
||||
it->second.attack_target = enemy->GetGUID();
|
||||
// Every 10 s per group: each soaker's health, armour, reach and Greater Stoneshield (RaidRules::resistPotion), so a
|
||||
// run shows whether the soakers were full and potioned when the strikes came (naxx_patchwerk 1115 night: 9-11k strikes on
|
||||
// soakers of about 11k health).
|
||||
static std::unordered_map<uint64_t, uint32_t> s_soakLogAt;
|
||||
uint32_t const now = GameTime::GetGameTimeMS();
|
||||
uint32_t& at = s_soakLogAt[plan.groupLow];
|
||||
if (at && now - at < 10000u)
|
||||
continue;
|
||||
at = now ? now : 1u;
|
||||
// The potion's aura from its item (Greater Stoneshield Potion 13455), not a guessed spell id.
|
||||
uint32_t potionAura = 0;
|
||||
if (ItemTemplate const* pot = sObjectMgr->GetItemTemplate(13455))
|
||||
for (ItemEffectEntry const* e : pot->Effects)
|
||||
if (e && e->SpellID > 0) { potionAura = uint32_t(e->SpellID); break; }
|
||||
std::string line;
|
||||
for (Player* p : soakers)
|
||||
line += fmt::format("{}{} {}/{} armor {} melee {} stoneshield {}", line.empty() ? "" : " | ", p->GetName(), p->GetHealth(),
|
||||
p->GetMaxHealth(), p->GetArmor(), enemy->IsWithinMeleeRange(p) ? 1 : 0, potionAura && p->HasAura(potionAura) ? 1 : 0);
|
||||
TC_LOG_INFO("playerbot.v2.raid", "[raid_soak] group {} {} {}%: {}", plan.groupLow, enemy->GetName(), uint32(enemy->GetHealthPct()),
|
||||
line.empty() ? std::string("no soakers") : line);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5978,6 +6105,9 @@ void Brain::Update(uint32_t now_ms)
|
||||
std::unordered_map<uint64_t, std::vector<EnemySchools>> nextSchools;
|
||||
std::unordered_map<uint64_t, MoveContext> nextMoveCtx;
|
||||
ResetPathProbes();
|
||||
g_passDest.clear();
|
||||
static uint32_t passTurn = 0;
|
||||
++passTurn;
|
||||
std::ostringstream dump;
|
||||
for (auto& [key, b] : buckets)
|
||||
{
|
||||
@@ -6137,8 +6267,10 @@ void Brain::Update(uint32_t now_ms)
|
||||
}
|
||||
}
|
||||
|
||||
for (Member const& m : plan.members)
|
||||
if (m.bot)
|
||||
// Each bot decides its own move, starting at a different bot each pass (see g_passDest): the probe budget runs out for whoever
|
||||
// comes last, and with the members in guid order that was always the same raiders.
|
||||
for (std::size_t turn = 0; turn < plan.members.size(); ++turn)
|
||||
if (Member const& m = plan.members[(turn + passTurn) % plan.members.size()]; m.bot)
|
||||
{
|
||||
RaidOrder& o = next[m.p->GetGUID().GetCounter()];
|
||||
o.active = true;
|
||||
@@ -6156,7 +6288,10 @@ void Brain::Update(uint32_t now_ms)
|
||||
if (!plan.rules->hideBeforeBreath.empty())
|
||||
LogBreathHideMissed(plan, m, now_ms, o);
|
||||
if (o.move)
|
||||
{
|
||||
g_passDest[m.p->GetGUID().GetCounter()] = { o.move_x, o.move_y };
|
||||
dump << " " << m.p->GetName() << ": move (" << o.move_reason << ")\n";
|
||||
}
|
||||
for (NoAoe const& rule : plan.rules->noAoe)
|
||||
for (Unit* enemy : plan.enemies)
|
||||
if (enemy->GetEntry() == rule.enemy && m.p->GetDistance(enemy) < 40.0f)
|
||||
|
||||
@@ -65,12 +65,16 @@ bool Controlled(Unit* u);
|
||||
// from where it stands (the path walks round what is between) and it need not be in the fight area round the main tank (the row is wider).
|
||||
bool Usable(Player* bot, float x, float y, float zHint, float& outZ, bool urgent = false, bool hazard = false, bool fixedPlace = false);
|
||||
void ResetPathProbes();
|
||||
bool SetMove(RaidOrder& out, float x, float y, float z, char const* reason);
|
||||
// `urgent`: see RaidOrder::move_urgent (the move is a way out of something that kills where the bot stands).
|
||||
bool SetMove(RaidOrder& out, float x, float y, float z, char const* reason, bool urgent = false);
|
||||
// Best nearby point that increases the distance to every raid member in `others`.
|
||||
// Points inside `avoid` (the bot's hazard circles) are skipped.
|
||||
bool Clearest(Player* bot, std::vector<Player*> const& others, float wanted, RaidOrder& out, char const* reason,
|
||||
std::vector<Circle> const& avoid, bool urgent);
|
||||
uint32_t KnownRank(Player* p, Ranks const& ranks);
|
||||
// The ranged opener a bot pulls with, one shot from range (0: none it knows). Hunters first (order 0), then mages (1), then warlocks (2);
|
||||
// order 3 for every other class.
|
||||
uint32_t RangedPullSpell(Player* p, int& order);
|
||||
bool Ready(Player* p, uint32_t spellId, Unit* target, bool hostile);
|
||||
bool Busy(Player* p);
|
||||
uint32_t Stacks(Unit* u, uint32_t aura);
|
||||
|
||||
@@ -26,11 +26,30 @@ char const* CastRuleName(RaidOrder::CastKind kind)
|
||||
case RaidOrder::CastKind::Nuke: return "raid:nuke";
|
||||
case RaidOrder::CastKind::Disarm: return "raid:disarm";
|
||||
case RaidOrder::CastKind::StanceDance: return "raid:stance_dance";
|
||||
case RaidOrder::CastKind::Prepare: return "raid:prepare";
|
||||
case RaidOrder::CastKind::None: break;
|
||||
}
|
||||
return "raid:cast";
|
||||
}
|
||||
|
||||
// The core takes no move from a stunned, rooted, feared or confused bot (UNIT_STATE_NOT_MOVE; fear and confusion move it themselves).
|
||||
bool BodyHeld(BotSnapshotView const& s)
|
||||
{
|
||||
return s.is_stunned() || s.is_rooted() || s.is_feared() || s.is_confused();
|
||||
}
|
||||
|
||||
// A raid move while the bot casts (see DispatchRaidOrder): an urgent one stops the cast and goes (true, cast cancelled); any other holds
|
||||
// the tick until the cast ends (false, the caller claims the tick without sending the move).
|
||||
bool CastGivesWay(RaidOrder const& o, BotSnapshotView const& s, BotIntentEmitter& emit)
|
||||
{
|
||||
if (!s.is_casting())
|
||||
return true;
|
||||
if (!o.move_urgent)
|
||||
return false;
|
||||
emit.cancel_cast();
|
||||
return true;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
bool HoldStill(BotAI& ai, BotSnapshotView const& s, BotIntentEmitter& emit)
|
||||
@@ -88,14 +107,22 @@ bool DispatchRaidOrder(BotAI& ai, BotSnapshotView const& s, BotIntentEmitter& em
|
||||
// 1. Hazards first: leaving Inferno / Living Bomb range / a breath corridor beats everything else.
|
||||
// A deduped re-emit (same point, still walking) still owns the tick so the rotation does not chase back in. A move that was
|
||||
// refused (the path ring, the API's no-path answer) owns nothing: the bot stood on the spot casting and attacking nothing.
|
||||
if (o.move)
|
||||
// Each bot takes its own move when it can walk. The core refuses a move while the bot casts, is stunned or rooted, and the
|
||||
// refusal used to mark the spot as one the bot cannot reach for 6 s (BotAI::note_move_refused, meant for a navmesh refusal): the
|
||||
// move gave the tick back, the rotation started the next cast, and the bot stood in the open casting until the 6 s ran out
|
||||
// (naxx22 1116: 73 "casting" refusals of raid moves in Gluth, 57 in the Horsemen, Sapphiron's hide refused for frozen and casting
|
||||
// raiders alike). So no move is sent while it cannot be taken:
|
||||
// - stunned, rooted, feared or confused: the rotation gets the tick (a rooted caster still casts), the move goes out once free;
|
||||
// - casting: a way out of something that kills where the bot stands (RaidOrder::move_urgent) stops the cast and goes now; any other
|
||||
// move holds the tick until the cast ends, so no new cast starts before it (onyxia_full 245: two healers stood in Heated Ground
|
||||
// 22194/22195 casting Flash Heal and Flash of Light for two to three seconds after their leave-hazard order, and died).
|
||||
if (o.move && !BodyHeld(s))
|
||||
{
|
||||
// A way out of a hazard or a cone is not held back by the bot's own cast: the core refuses every move while a cast runs, and a
|
||||
// healer started the next heal in the same tick the refused move gave the tick back (onyxia_full 245: two healers stood in
|
||||
// Heated Ground 22194/22195 casting Flash Heal and Flash of Light for two to three seconds after their leave-hazard order, and died).
|
||||
if (s.is_casting() && o.move_reason &&
|
||||
(std::strcmp(o.move_reason, "leave hazard") == 0 || std::strcmp(o.move_reason, "leave cone") == 0))
|
||||
emit.cancel_cast();
|
||||
if (!CastGivesWay(o, s, emit))
|
||||
{
|
||||
ai.set_last_rule_fired("raid:move_after_cast");
|
||||
return true;
|
||||
}
|
||||
if (emit.move_to(o.move_x, o.move_y, o.move_z, /*run=*/true) || emit.move_already_emitted(o.move_x, o.move_y, o.move_z))
|
||||
{
|
||||
ai.set_last_rule_fired("raid:move");
|
||||
@@ -184,8 +211,14 @@ bool DispatchRaidOrder(BotAI& ai, BotSnapshotView const& s, BotIntentEmitter& em
|
||||
std::find(o.forbidden_targets.begin(), o.forbidden_targets.end(), victim) != o.forbidden_targets.end();
|
||||
// An idle DPS bot picks up the fallback too, unless its owner told it to stay.
|
||||
bool const idleDps = victim.IsEmpty() && !o.fallback_target.IsEmpty() && !ai.holding_position(s.published_at_ms());
|
||||
// An idle tank (its enemy is airborne or dead) takes the brain's ground target.
|
||||
bool const idleTank = victim.IsEmpty() && o.fallback_target.IsEmpty() && !o.tank_fallback_target.IsEmpty() && !ai.holding_position(s.published_at_ms());
|
||||
// An idle tank (its enemy is airborne or dead) takes the brain's ground target, unless that target is one it must not attack:
|
||||
// Gluth's chow tanks have him forbidden and a chow for their soak target, and the ground target (him) taken here first was dropped
|
||||
// as forbidden next tick, over and over, so the soak step below never ran (naxx_gluth r25: Mctankwc on Gluth 56 y off and off
|
||||
// again every 1-2 s for the whole fight, Mctankda alone held 12 chows and died at 72 s, the loose chows killed the casters).
|
||||
bool const tankFallbackForbidden = !o.tank_fallback_target.IsEmpty() &&
|
||||
std::find(o.forbidden_targets.begin(), o.forbidden_targets.end(), o.tank_fallback_target) != o.forbidden_targets.end();
|
||||
bool const idleTank = victim.IsEmpty() && o.fallback_target.IsEmpty() && !o.tank_fallback_target.IsEmpty() && !tankFallbackForbidden &&
|
||||
!ai.holding_position(s.published_at_ms());
|
||||
if (idleTank && emit.start_attack(o.tank_fallback_target))
|
||||
{
|
||||
ai.set_last_rule_fired("raid:switch_target");
|
||||
@@ -201,7 +234,8 @@ bool DispatchRaidOrder(BotAI& ai, BotSnapshotView const& s, BotIntentEmitter& em
|
||||
return true;
|
||||
}
|
||||
}
|
||||
if (forbidden && !o.tank_fallback_target.IsEmpty() && o.tank_fallback_target != victim && o.tank_fallback_target != o.fallback_target)
|
||||
if (forbidden && !o.tank_fallback_target.IsEmpty() && !tankFallbackForbidden && o.tank_fallback_target != victim &&
|
||||
o.tank_fallback_target != o.fallback_target)
|
||||
{
|
||||
if (emit.start_attack(o.tank_fallback_target))
|
||||
{
|
||||
@@ -277,11 +311,17 @@ void RegisterRaidIdleRules(IdleRuleRegistry& r)
|
||||
move.gate = [](BotSnapshotView const& s, BotAI&, GroupSnapshotView const&, uint32)
|
||||
{
|
||||
RaidOrder const& o = s.raw().raid_order;
|
||||
return o.active && !o.prepull && o.move && s.is_alive();
|
||||
return o.active && !o.prepull && o.move && s.is_alive() && !Raid::BodyHeld(s);
|
||||
};
|
||||
move.fire = [](BotSnapshotView const& s, BotAI& ai, GroupSnapshotView const&, BotIntentEmitter& emit, uint32)
|
||||
{
|
||||
RaidOrder const& o = s.raw().raid_order;
|
||||
// A buff under way finishes first, unless the move is a way out (as in DispatchRaidOrder).
|
||||
if (!Raid::CastGivesWay(o, s, emit))
|
||||
{
|
||||
ai.set_last_rule_fired("idle:raid_move_after_cast");
|
||||
return true;
|
||||
}
|
||||
// A refused move does not claim the tick (see raid:move in DispatchRaidOrder): the idle rules below get the bot.
|
||||
if (!emit.move_to(o.move_x, o.move_y, o.move_z, /*run=*/true) && !emit.move_already_emitted(o.move_x, o.move_y, o.move_z))
|
||||
return false;
|
||||
|
||||
@@ -74,6 +74,10 @@ namespace Playerbot::Raid {
|
||||
r.priority.push_back({ 17055, 4 }); // Maexxna Spiderling
|
||||
r.dispel.push_back({ 28776, DispelKind::Poison, true });
|
||||
r.avoidFrontal.push_back({ 15952, 30.0f, 60.0f, Who::NonTank });
|
||||
// Web Spray (29484) stuns her tank with everyone else for 10 s while she goes on hitting it, every hit landing (no dodge, parry or
|
||||
// block while stunned): 3.2-4.8k a swing on a 12.3k tank (naxx_maexxna r24h, dead 7-9 s into the first spray). The tanks drink a
|
||||
// Greater Stoneshield Potion (+2000 armour, 2 min) when she is engaged, as on Patchwerk.
|
||||
r.resistPotion.push_back({ 15952, 13455, Who::Tank });
|
||||
|
||||
// ---------------------------------------------------------------------------------------------------------------
|
||||
// NOTH THE PLAGUEBRINGER (15954): Curse of the Plaguebringer 29213 turns into Wrath of the Plaguebringer (4,000 shadow to
|
||||
@@ -157,8 +161,11 @@ namespace Playerbot::Raid {
|
||||
// out of sight too. naxx_patchwerk 1114f and 1114g fought from that lower floor: 89 heals and shots failed for line of sight, the
|
||||
// main tank went up into the hall alone and the healers followed it into his reach. His walk comes back east along y -3230 to his
|
||||
// spawn, and he is met close to it (naxx_patchwerk 1115a: engaged at 3296,-3236 and fought at 3290-3311,-3232..-3249). The main
|
||||
// tank holds him by his spawn at 3305,-3232, and the ranged stand west of him in the hall, 33 y from the tank (past Hateful Strike's
|
||||
// 18 y rows above, inside 40 y of heals) on the south half.
|
||||
// tank holds him by his spawn at 3305,-3232.
|
||||
// The ranged stand at the hall's east end with the healers, 4 y further east between their corners (3330,-3227 and 3330,-3237): 25 y
|
||||
// from the main tank's post, past Hateful Strike's 18 y and inside every ranged spell's reach to him (30 y + his reach), and they
|
||||
// wait there before the pull (NaxxPrePullPatchwerk). Their post was west of him at 3272,-3240, and from the lower floor the way up
|
||||
// to it runs past him: in the 1115 threat run all 16 walked into his 18 y circle and out again for the whole fight, 0 damage in 90 s.
|
||||
// The healers stand at the hall's east end in its two corners, 3326,-3223 and 3326,-3241: 20 y from his spawn and 23-26 y from him
|
||||
// where the main tank holds him (west of its post, he comes from the west), and off his walk, so they wait there before the pull
|
||||
// (NaxxPrePullPatchwerk) instead of walking 75 y from the lower floor after it (naxx_patchwerk 1115i: 29 of 61 s walking, no heal
|
||||
@@ -166,7 +173,8 @@ namespace Playerbot::Raid {
|
||||
// killed them; the corners keep the 18 y.
|
||||
constexpr float kPatchHallZ = 294.1f;
|
||||
r.stand.push_back({ 16028, Who::MainTank, 3305.0f, -3232.0f, kPatchHallZ, 5.0f, true, 0 });
|
||||
r.stand.push_back({ 16028, Who::Ranged, 3272.0f, -3240.0f, kPatchHallZ, 5.0f, false, 0 });
|
||||
r.stand.push_back({ 16028, Who::Ranged, 3330.0f, -3227.0f, kPatchHallZ, 4.0f, false, 0, 100.0f, 0.0f, 1 });
|
||||
r.stand.push_back({ 16028, Who::Ranged, 3330.0f, -3237.0f, kPatchHallZ, 4.0f, false, 0, 100.0f, 0.0f, 2 });
|
||||
r.stand.push_back({ 16028, Who::Healer, 3326.0f, -3223.0f, kPatchHallZ, 4.0f, false, 0, 100.0f, 0.0f, 1 });
|
||||
r.stand.push_back({ 16028, Who::Healer, 3326.0f, -3241.0f, kPatchHallZ, 4.0f, false, 0, 100.0f, 0.0f, 2 });
|
||||
// The posts are for a fight in his hall. Pulled anywhere else (Karrz 11-15 live: met at the hall's west end, 3210,-3190, on his
|
||||
@@ -185,6 +193,9 @@ namespace Playerbot::Raid {
|
||||
r.carrierRun.push_back({ 28169, 15.0f, Who::NonTank });
|
||||
r.avoidCarrier.push_back({ 28169, 10.0f, Who::NonTank });
|
||||
r.avoidCreature.push_back({ 16363, 9.0f, Who::Anyone });
|
||||
// The clouds last, and he stood in them: naxx21 the melee held off him for 61-63 of 90 s (raid:melee_hold, his centre inside a
|
||||
// cloud's 9 y), 36% of his health in 90 s, and the tanks died at 88-104 s. His tank leads him out of them.
|
||||
r.dragOut.push_back({ 15931, 16363, 11.0f });
|
||||
r.avoidFrontal.push_back({ 15931, 20.0f, 50.0f, Who::NonTank });
|
||||
// Every player the spray hits leaves a Fallout Slime where it stands (classic_boss_grobbulus.cpp SpellHitTarget, one each), so
|
||||
// the main tank is the only one in front of him: the off tanks keep the Fallout Slimes from his flank. naxx_grobbulus 1115a: all
|
||||
@@ -237,8 +248,13 @@ namespace Playerbot::Raid {
|
||||
// Frost Aura, Blizzard and Frost Breath: Greater Frost Protection for everyone.
|
||||
r.resistPotion.push_back({ 15989, 13456, Who::Anyone });
|
||||
r.avoidCreature.push_back({ 16474, 8.0f, Who::Anyone });
|
||||
r.avoidFrontal.push_back({ 15989, 25.0f, 50.0f, Who::NonTank });
|
||||
r.avoidFrontal.push_back({ 15989, 20.0f, 45.0f, Who::NonTank, 180.0f }); // Tail Sweep 15847 behind him
|
||||
// Cleave 19983 is a chain of 10 (SpellEffect: ChainTargets 10), 5 y a jump for a melee spell (Spell::SearchChainTargets): from his
|
||||
// tank to whoever stands within 5 y of the tank, and on. naxx22 1116: 9 healers cleaved 9-23 y from him, a chain through the camp
|
||||
// behind his tank, which the old 50 degree cone left alone. His whole front half is kept clear to 30 y (his tank stands in it, at
|
||||
// his reach; anyone within a jump of it is in it). Tail Sweep 15847 is Onyxia's spell (radius index 10, 30 y; 60 degrees each side
|
||||
// of straight behind, RaidEncounters.h kOnyTailHalfDeg). The raid stands on his flanks between them, or beyond 30 y.
|
||||
r.avoidFrontal.push_back({ 15989, 30.0f, 90.0f, Who::NonTank, 0.0f, 100.0f, 0.0f, true, 6.0f });
|
||||
r.avoidFrontal.push_back({ 15989, 30.0f, kOnyTailHalfDeg, Who::NonTank, 180.0f, 100.0f, 0.0f, true, 6.0f }); // Tail Sweep behind him
|
||||
|
||||
// ---------------------------------------------------------------------------------------------------------------
|
||||
// KEL'THUZAD (15990): Detonate Mana 27819 on a mana user (the carrier runs, others keep clear), Shadow Fissure 27810
|
||||
|
||||
@@ -97,6 +97,11 @@ struct AvoidGameObject { uint32_t entry; float radius; Who who; };
|
||||
// corpse: the dead creature is the hazard (Lord Kri's Toxic Vapors cloud where he died).
|
||||
struct AvoidCreature { uint32_t entry; float radius; Who who; bool corpse = false; };
|
||||
|
||||
// While <enemy> is on its tank and its centre stands within <clear> yards of a living <hazard> creature (Grobbulus' poison clouds, which last),
|
||||
// that tank walks to a spot <clear> + 4 yards from every such creature, and he follows it out. Without it he stood in his own clouds and every
|
||||
// melee bot held off him (the hold for a victim inside a hazard).
|
||||
struct DragOut { uint32_t enemy; uint32_t hazard; float clear; };
|
||||
|
||||
// While <enemy> is alive and fighting, matching bots keep at least <radius> from the nearest other raid member.
|
||||
// No raid move ends inside this circle while <enemy> is alive and fighting (one clamp for every rule, applied to the finished move target in
|
||||
// RaidBrain). Onyxia's two cave alcoves: the static whelps lie there, and a bot that walks up to them pulls the lot.
|
||||
@@ -334,6 +339,7 @@ struct RaidRules
|
||||
std::vector<AvoidGroundEffect> avoidGroundEffect;
|
||||
std::vector<AvoidGameObject> avoidGameObject;
|
||||
std::vector<AvoidCreature> avoidCreature;
|
||||
std::vector<DragOut> dragOut;
|
||||
std::vector<AvoidFrontal> avoidFrontal;
|
||||
std::vector<Spread> spread;
|
||||
std::vector<KeepOut> keepOut;
|
||||
|
||||
@@ -30,4 +30,29 @@ inline std::vector<uint64_t> HealSlotOrder(uint64_t main_tank, uint64_t off_tank
|
||||
return order;
|
||||
}
|
||||
|
||||
// A melee-soak boss (RaidRules::meleeSoak, Patchwerk's Hateful Strike on the off tanks): the strike goes to the soakers, never the main
|
||||
// tank while they are in melee, so they take the healers. The main tank gets one, then the soakers (off tank and spare tanks) one each
|
||||
// in turns, up to three each, then the main tank a second. naxx_patchwerk 1115 night: with main 3 / off 2 / spare 1 the soakers stood at
|
||||
// 50-65 % when the next 9-11k strike came and one died every 5-10 s (41 deaths in 143 s).
|
||||
inline std::vector<uint64_t> SoakHealSlotOrder(uint64_t main_tank, uint64_t off_tank, std::vector<uint64_t> const& spare_tanks, uint32_t slots)
|
||||
{
|
||||
std::vector<uint64_t> soakers;
|
||||
if (off_tank)
|
||||
soakers.push_back(off_tank);
|
||||
for (uint64_t t : spare_tanks)
|
||||
if (t)
|
||||
soakers.push_back(t);
|
||||
std::vector<uint64_t> order;
|
||||
if (main_tank)
|
||||
order.push_back(main_tank);
|
||||
for (int round = 0; round < 3; ++round)
|
||||
for (uint64_t t : soakers)
|
||||
order.push_back(t);
|
||||
if (main_tank)
|
||||
order.push_back(main_tank);
|
||||
if (order.size() > slots)
|
||||
order.resize(slots);
|
||||
return order;
|
||||
}
|
||||
|
||||
} // namespace Playerbot::Raid
|
||||
|
||||
@@ -125,7 +125,7 @@ bool GlareMove(Plan const& plan, Member const& self, RaidOrder& out)
|
||||
if (Usable(bot, x, y, bot->GetPositionZ(), z, /*urgent*/ true))
|
||||
{
|
||||
out.hold_melee = !self.ranged && !self.healer;
|
||||
return SetMove(out, x, y, z, "c'thun: out of dark glare");
|
||||
return SetMove(out, x, y, z, "c'thun: out of dark glare", /*urgent*/ true);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
// the gate stays closed until he opens it, so every bot only fights enemies on its own side.
|
||||
|
||||
#include "RaidBrainInternal.h"
|
||||
#include "SpellFamily.h"
|
||||
|
||||
#include "Creature.h"
|
||||
#include "GameObject.h"
|
||||
@@ -253,7 +254,7 @@ bool HeiganMove(Plan const& plan, Member const& self, uint32_t now, RaidOrder& o
|
||||
float z = 0.0f;
|
||||
if (Usable(bot, c.trap->x, c.trap->y, c.trap->z, z, /*urgent*/ true))
|
||||
{
|
||||
SetMove(out, c.trap->x, c.trap->y, z, st.dance ? "heigan dance" : "heigan eruption");
|
||||
SetMove(out, c.trap->x, c.trap->y, z, st.dance ? "heigan dance" : "heigan eruption", /*urgent*/ true);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -269,6 +270,10 @@ constexpr uint32_t kIcebolt = 28522; // the frozen player inside a bl
|
||||
constexpr uint32_t kFrostBreath = 28524; // 7 s cast from the air
|
||||
constexpr uint32_t kFrostBreathDummy = 30101; // the falling ball, 0.5 s before the cast
|
||||
constexpr float kIceboltSpread = 10.0f;
|
||||
// The blocks standing when the raid starts to hide: his five Icebolts come 3.5 s apart, the breath's falling ball 1.5 s after the fifth and
|
||||
// the 7 s cast 0.5 s after that (classic_boss_sapphiron.cpp RescheduleIcebolt, EVENT_SAPPH_FROST_BREATH_*). Hiding from the fourth block
|
||||
// on gives 12.5 s instead of 7.5. naxx_sapphiron r23: 14 died to the first breath at 95 s, most of them still walking ("raid:move").
|
||||
constexpr std::size_t kHideFromBlocks = 4;
|
||||
|
||||
std::unordered_map<uint64_t, uint32_t> g_airSpread; // bot -> last air phase spread move
|
||||
|
||||
@@ -295,11 +300,14 @@ bool SapphironMove(Plan const& plan, Member const& self, uint32_t now, RaidOrder
|
||||
if (bot->HasAura(kIcebolt))
|
||||
return true; // frozen inside a block
|
||||
|
||||
if (Casting(sapphiron, kFrostBreath) || Casting(sapphiron, kFrostBreathDummy))
|
||||
std::list<GameObject*> blocks;
|
||||
sapphiron->GetGameObjectListWithEntryInGrid(blocks, kIceBlock, 150.0f);
|
||||
blocks.remove_if([](GameObject* b) { return !b->isSpawned(); });
|
||||
// From the breath's falling ball on, a cast under way is stopped for the walk; before it (the fourth block) it is let finish first.
|
||||
bool const breathing = Casting(sapphiron, kFrostBreath) || Casting(sapphiron, kFrostBreathDummy);
|
||||
if (breathing || blocks.size() >= kHideFromBlocks)
|
||||
{
|
||||
// Hide: stand right behind the nearest ice block, on the line from Sapphiron through the block.
|
||||
std::list<GameObject*> blocks;
|
||||
sapphiron->GetGameObjectListWithEntryInGrid(blocks, kIceBlock, 150.0f);
|
||||
GameObject* nearest = nullptr;
|
||||
float nearestDist = 0.0f;
|
||||
for (GameObject* block : blocks)
|
||||
@@ -313,23 +321,63 @@ bool SapphironMove(Plan const& plan, Member const& self, uint32_t now, RaidOrder
|
||||
return false;
|
||||
// Melee and tanks stay behind the block instead of chasing Sapphiron (casters may keep casting from cover).
|
||||
out.hold_melee = !self.ranged && !self.healer;
|
||||
float const away = std::atan2(nearest->GetPositionY() - sapphiron->GetPositionY(), nearest->GetPositionX() - sapphiron->GetPositionX());
|
||||
// The spot behind the block is this bot's post against him: no step out for a line of sight to its target or its tank
|
||||
// ([raid_los] skips a bot with a post enemy), no formation walk and no clump spacing (both skip a bot at its post).
|
||||
// naxx_sapphiron r25 (combined 1118): Mclocka hid, stepped 16 y toward its tank for sight 7 s before the breath and died with six
|
||||
// others at (3491,-5272); Mchealsd walked back to its formation slot between hide orders and died on its way.
|
||||
out.post_enemy = sapphiron->GetGUID();
|
||||
// The breath reaches whoever he sees (an area spell checks the line from him, high in the air, to each target; the block is a
|
||||
// game object with a model in that check). A spot counts as hidden when the same check from him is blocked: a fixed 2.5-4 y
|
||||
// behind the block left the line over its top. naxx22 1116: 14 died to the first breath, the melee among them holding behind
|
||||
// blocks 20 y from him.
|
||||
// The test is the one the spell makes (Spell::CheckEffectTarget for an area spell: the target's IsWithinLOS to the cast's source
|
||||
// point): from the player's eye to his position raised by the player's own height, M2 models left out. naxx_sapphiron r27: five
|
||||
// bots stood on one spot this check called hidden, and four hunters on another, and the breath killed all nine there; the old
|
||||
// line ran from the top of him and counted M2 models.
|
||||
Map* const map = bot->GetMap();
|
||||
float const eye = bot->GetCollisionHeight();
|
||||
float const sx = sapphiron->GetPositionX(), sy = sapphiron->GetPositionY(), sz = sapphiron->GetPositionZ() + eye;
|
||||
auto hidden = [&](float px, float py, float pz)
|
||||
{
|
||||
return !map->isInLineOfSight(bot->GetPhaseShift(), px, py, pz + eye, sx, sy, sz, LINEOFSIGHT_ALL_CHECKS, VMAP::ModelIgnoreFlags::M2);
|
||||
};
|
||||
if (hidden(bot->GetPositionX(), bot->GetPositionY(), bot->GetPositionZ()))
|
||||
{
|
||||
out.at_post = true;
|
||||
return true; // already hidden: stays
|
||||
}
|
||||
float const away = std::atan2(nearest->GetPositionY() - sy, nearest->GetPositionX() - sx);
|
||||
int pathChecks = 0;
|
||||
for (float distance : { 3.0f, 2.5f, 4.0f })
|
||||
for (float side : { 0.0f, 0.25f, -0.25f })
|
||||
for (float distance : { 1.5f, 2.0f, 2.5f, 3.0f, 4.0f })
|
||||
for (float side : { 0.0f, 0.15f, -0.15f })
|
||||
{
|
||||
float const px = nearest->GetPositionX() + distance * std::cos(away + side);
|
||||
float const py = nearest->GetPositionY() + distance * std::sin(away + side);
|
||||
if (Dist2D(bot->GetPositionX(), bot->GetPositionY(), px, py) < 1.2f)
|
||||
return true; // already hidden
|
||||
if (++pathChecks > 5)
|
||||
float const gz = map->GetHeight(bot->GetPhaseShift(), px, py, nearest->GetPositionZ() + 2.0f, true, 6.0f);
|
||||
if (gz <= INVALID_HEIGHT + 1.0f || !hidden(px, py, gz))
|
||||
continue;
|
||||
if (++pathChecks > 4)
|
||||
return true;
|
||||
float pz = 0.0f;
|
||||
if (!Usable(bot, px, py, nearest->GetPositionZ(), pz, /*urgent*/ true))
|
||||
if (!Usable(bot, px, py, gz, pz, /*urgent*/ true))
|
||||
continue;
|
||||
SetMove(out, px, py, pz, "hide behind ice block");
|
||||
SetMove(out, px, py, pz, "hide behind ice block", breathing);
|
||||
return true;
|
||||
}
|
||||
// No spot behind the nearest block is out of his sight: said once per bot and breath.
|
||||
uint32_t& logged = g_airSpread[bot->GetGUID().GetCounter() | (uint64_t(1) << 63)];
|
||||
if (now - logged >= 10000)
|
||||
{
|
||||
logged = now;
|
||||
TC_LOG_INFO("playerbot.v2.raid", "[raid] Sapphiron: {} finds no spot behind the ice block at {:.1f},{:.1f},{:.1f} out of his sight "
|
||||
"(he is at {:.1f},{:.1f},{:.1f}, {:.0f} y off)", bot->GetName(), nearest->GetPositionX(), nearest->GetPositionY(),
|
||||
nearest->GetPositionZ(), sx, sy, sz, Dist2D(sx, sy, nearest->GetPositionX(), nearest->GetPositionY()));
|
||||
}
|
||||
// Then right behind it all the same, on the line from him through the block.
|
||||
float const px = nearest->GetPositionX() + 2.0f * std::cos(away), py = nearest->GetPositionY() + 2.0f * std::sin(away);
|
||||
float pz = 0.0f;
|
||||
if (Dist2D(bot->GetPositionX(), bot->GetPositionY(), px, py) >= 1.2f && Usable(bot, px, py, nearest->GetPositionZ(), pz, /*urgent*/ true))
|
||||
SetMove(out, px, py, pz, "hide behind ice block", breathing);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -581,6 +629,19 @@ bool LiveSide(GameObject* gate, float y) { return y <= gate->GetPositionY(); }
|
||||
struct GothSpot { uint32_t instance = 0; bool live = false; float x = 0, y = 0, z = 0; };
|
||||
std::unordered_map<uint64_t, GothSpot> g_gothSpot; // bot -> its pre-pull spot
|
||||
std::unordered_map<uint64_t, std::pair<bool, Position>> g_gothAnchor; // (instance << 1 | side) -> anchor found?
|
||||
std::unordered_set<uint32_t> g_gothOffFloorLogged; // instances whose off-the-floor raid was logged
|
||||
std::unordered_map<uint32_t, std::pair<bool, Position>> g_gothDraw; // instance -> the spot under his balcony that draws him, found?
|
||||
constexpr float kGothDrawMargin = 3.0f; // the draw spot stands this far inside his aggro reach (or the opener's range)
|
||||
// When no floor spot lies inside his aggro reach, a ranged bot on the live side opens on him with one shot from the floor. His reach is
|
||||
// 15 y less his combat reach for a creature above the expansion's top level (Creature::GetAttackDistance), and he stands 18 y above the
|
||||
// floor: naxx_gothik r25 (combined 1118): "his aggro reach 9.0 y ... nobody can draw him", the raid stood split until the run failed.
|
||||
struct GothShot { bool searched = false, found = false; ObjectGuid shooter; Position spot; };
|
||||
std::unordered_map<uint32_t, GothShot> g_gothShot; // instance -> its ranged opener
|
||||
// The draw waits for the split, but not for a straggler: once this long has passed since the split was first ordered, a bot that has not
|
||||
// reached its spot no longer holds it back. naxx_gothik r24h (0045): the raid stood split for 120 s and nobody drew him, two healers 43-46 y
|
||||
// from the tanks; one bot short of its spot held the whole pull.
|
||||
constexpr uint32_t kGothDrawWaitMs = 20000;
|
||||
std::unordered_map<uint32_t, uint32_t> g_gothSplitSince; // instance -> when its split was first ordered
|
||||
|
||||
// A floor point on one side, reachable on foot (the gate is open before the pull, and the navmesh ignores it anyway).
|
||||
bool GothAnchor(Player* bot, GameObject* gate, bool live, Position& out)
|
||||
@@ -613,6 +674,126 @@ bool GothAnchor(Player* bot, GameObject* gate, bool live, Position& out)
|
||||
return false;
|
||||
}
|
||||
|
||||
// A spot on the live side's floor within `want` yards of him, in his sight, that `bot` walks to on a complete path (the nearest bearing to
|
||||
// the live side's anchor first, the farthest distance first).
|
||||
bool GothFloorSpot(Creature* gothik, GameObject* gate, Player* bot, float want, Position& out)
|
||||
{
|
||||
float const dz = gothik->GetPositionZ() - gate->GetPositionZ();
|
||||
if (want <= std::fabs(dz) + 1.0f)
|
||||
return false;
|
||||
float const h = std::sqrt(want * want - dz * dz);
|
||||
Position anchor;
|
||||
float const toward = GothAnchor(bot, gate, true, anchor) ? gothik->GetAbsoluteAngle(anchor.GetPositionX(), anchor.GetPositionY())
|
||||
: gothik->GetAbsoluteAngle(bot);
|
||||
for (float r = h; r >= 2.0f; r -= 2.0f)
|
||||
for (int step = 0; step <= 8; ++step)
|
||||
for (int sign : { 1, -1 })
|
||||
{
|
||||
if (step == 0 && sign < 0)
|
||||
continue;
|
||||
float const a = toward + float(sign * step) * float(M_PI) / 16.0f;
|
||||
float const x = gothik->GetPositionX() + r * std::cos(a);
|
||||
float const y = gothik->GetPositionY() + r * std::sin(a);
|
||||
if (!LiveSide(gate, y))
|
||||
continue;
|
||||
float const z = bot->GetMap()->GetHeight(bot->GetPhaseShift(), x, y, gate->GetPositionZ() + 2.0f, true, 8.0f);
|
||||
if (z <= INVALID_HEIGHT + 1.0f || std::fabs(z - gate->GetPositionZ()) > 4.0f)
|
||||
continue;
|
||||
if (gothik->GetExactDist(x, y, z) > want || !gothik->IsWithinLOS(x, y, z + 2.0f))
|
||||
continue;
|
||||
PathGenerator path(bot);
|
||||
if (!path.CalculatePath(x, y, z, false) || (path.GetPathType() & (PATHFIND_NOPATH | PATHFIND_INCOMPLETE)))
|
||||
continue;
|
||||
out.Relocate(x, y, z);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// One shot from the live side's floor starts the fight (JustEngagedWith: the zone joins in, he takes his immunity and the gate closes):
|
||||
// a hunter, else a mage, else a warlock, on the live side. The shooter is kept while it can still shoot (a swap mid-walk sends a second
|
||||
// bot to the spot and the first one back); its spot is inside its opener's range, in his sight. Its other order (the side spot) gives way.
|
||||
void NaxxGothikRangedOpener(std::unordered_map<uint64_t, RaidOrder>& orders, std::vector<Member const*> const& ordered,
|
||||
Creature* gothik, GameObject* gate, uint32_t instance, std::ostringstream& dump)
|
||||
{
|
||||
GothShot& shot = g_gothShot[instance];
|
||||
auto const canShoot = [&](Member const* m, uint32_t& spell, int& order)
|
||||
{
|
||||
auto it = g_gothSpot.find(m->p->GetGUID().GetCounter());
|
||||
spell = RangedPullSpell(m->p, order);
|
||||
return m->bot && !m->tank && !m->healer && m->p->IsAlive() && spell && it != g_gothSpot.end() && it->second.instance == instance &&
|
||||
it->second.live;
|
||||
};
|
||||
Member const* shooter = nullptr;
|
||||
uint32_t spell = 0;
|
||||
int order = 3;
|
||||
for (Member const* m : ordered)
|
||||
if (m->p->GetGUID() == shot.shooter && canShoot(m, spell, order))
|
||||
shooter = m;
|
||||
if (!shooter)
|
||||
{
|
||||
int bestOrder = 3;
|
||||
float bestYards = 0.0f;
|
||||
for (Member const* m : ordered)
|
||||
{
|
||||
uint32_t s = 0;
|
||||
int o = 3;
|
||||
if (!canShoot(m, s, o))
|
||||
continue;
|
||||
float const yards = m->p->GetExactDist2d(gothik);
|
||||
if (!shooter || o < bestOrder || (o == bestOrder && yards < bestYards))
|
||||
{
|
||||
shooter = m;
|
||||
bestOrder = o;
|
||||
bestYards = yards;
|
||||
}
|
||||
}
|
||||
if (!shooter)
|
||||
{
|
||||
if (!shot.searched)
|
||||
TC_LOG_WARN("playerbot.v2.raid", "[raid] Gothik: no hunter, mage or warlock bot on the live side to open on him");
|
||||
shot.searched = true;
|
||||
return;
|
||||
}
|
||||
shot.shooter = shooter->p->GetGUID();
|
||||
shot.searched = false; // a new shooter looks for its own spot
|
||||
canShoot(shooter, spell, order);
|
||||
}
|
||||
Player* const p = shooter->p;
|
||||
SpellInfo const* info = sSpellMgr->GetSpellInfo(spell, DIFFICULTY_NONE);
|
||||
if (!info)
|
||||
return;
|
||||
if (!shot.searched)
|
||||
{
|
||||
shot.searched = true;
|
||||
float const range = info->GetMaxRange(false, p);
|
||||
shot.found = GothFloorSpot(gothik, gate, p, range - kGothDrawMargin, shot.spot);
|
||||
if (shot.found)
|
||||
TC_LOG_INFO("playerbot.v2.raid", "[raid] Gothik: {} opens on him with {} from ({:.1f},{:.1f},{:.1f}), {:.1f} y from him (range {:.0f} y)",
|
||||
p->GetName(), spell, shot.spot.GetPositionX(), shot.spot.GetPositionY(), shot.spot.GetPositionZ(),
|
||||
gothik->GetExactDist(shot.spot), range);
|
||||
else
|
||||
TC_LOG_WARN("playerbot.v2.raid", "[raid] Gothik: no floor spot on the live side within {}'s range {:.0f} y of him: nobody can open",
|
||||
p->GetName(), range);
|
||||
}
|
||||
if (!shot.found)
|
||||
return;
|
||||
RaidOrder& o = orders[p->GetGUID().GetCounter()];
|
||||
o.active = true;
|
||||
o.prepull = true;
|
||||
if (p->GetExactDist2d(shot.spot.GetPositionX(), shot.spot.GetPositionY()) > 2.0f || !Ready(p, spell, gothik, true))
|
||||
{
|
||||
SetMove(o, shot.spot.GetPositionX(), shot.spot.GetPositionY(), shot.spot.GetPositionZ(), "gothik: walks to the opener spot");
|
||||
dump << " Gothik: " << p->GetName() << " walks to open on him\n";
|
||||
return;
|
||||
}
|
||||
o.move = false;
|
||||
o.cast_kind = RaidOrder::CastKind::Nuke;
|
||||
o.cast_spell = spell;
|
||||
o.cast_target = gothik->GetGUID();
|
||||
dump << " Gothik: " << p->GetName() << " opens on him\n";
|
||||
}
|
||||
|
||||
void NaxxPrePullGothik(Plan& plan, std::unordered_map<uint64_t, RaidOrder>& orders, std::ostringstream& dump)
|
||||
{
|
||||
Player* first = plan.members.front().p;
|
||||
@@ -621,13 +802,30 @@ void NaxxPrePullGothik(Plan& plan, std::unordered_map<uint64_t, RaidOrder>& orde
|
||||
return;
|
||||
Creature* gothik = gate->FindNearestCreature(kGothik, 120.0f, true);
|
||||
if (!gothik || gothik->IsInCombat() || gate->GetGoState() != GO_STATE_ACTIVE)
|
||||
{
|
||||
g_gothSplitSince.erase(first->GetInstanceId()); // the next split's wait starts afresh
|
||||
g_gothShot.erase(first->GetInstanceId()); // and the next opener is chosen afresh
|
||||
return;
|
||||
}
|
||||
bool inRoom = false;
|
||||
Player* above = nullptr; // near the gate on the map but off its floor (his balcony's height): logged, the split waits for the floor
|
||||
for (Member const& m : plan.members)
|
||||
if (m.p->GetExactDist2d(gate) < kGothRoom && std::fabs(m.p->GetPositionZ() - gate->GetPositionZ()) < 8.0f)
|
||||
{
|
||||
if (m.p->GetExactDist2d(gate) >= kGothRoom)
|
||||
continue;
|
||||
if (std::fabs(m.p->GetPositionZ() - gate->GetPositionZ()) < 8.0f)
|
||||
inRoom = true;
|
||||
else if (!above)
|
||||
above = m.p;
|
||||
}
|
||||
if (!inRoom && above && g_gothOffFloorLogged.insert(first->GetInstanceId()).second)
|
||||
TC_LOG_WARN("playerbot.v2.raid", "[raid] Gothik: {} stands {:.0f} y from the combat gate at z {:.1f}, the gate's floor is z {:.1f}: no side split "
|
||||
"off the floor", above->GetName(), above->GetExactDist2d(gate), above->GetPositionZ(), gate->GetPositionZ());
|
||||
if (!inRoom || plan.members.size() < 2 * kSideMinimum)
|
||||
{
|
||||
g_gothSplitSince.erase(first->GetInstanceId());
|
||||
return;
|
||||
}
|
||||
|
||||
// Humans stay where they are and count for that side; bots alternate within each role so both sides get tanks,
|
||||
// healers and damage, starting with the side that has fewer humans.
|
||||
@@ -675,6 +873,120 @@ void NaxxPrePullGothik(Plan& plan, std::unordered_map<uint64_t, RaidOrder>& orde
|
||||
SetMove(o, spot.x, spot.y, spot.z, side ? "gothik: live side" : "gothik: dead side");
|
||||
}
|
||||
dump << " Gothik split: " << live << " live side, " << dead << " dead side\n";
|
||||
|
||||
// Once every bot stands at its spot, a tank on the live side draws him: he stands on his balcony 18 y above the floor and starts the
|
||||
// fight only when somebody comes into his aggro reach in his sight (no area trigger in the classic script), and nobody walks up to him.
|
||||
// naxx_gothik r23: the split worked, the attack order sent the main tank at him (no path up, his reach 49 y off), and the raid stood
|
||||
// in its pre-pull spots for 121 s until the run failed. The draw spot is on the live side's floor, inside his reach by kGothDrawMargin.
|
||||
uint32_t const nowMs = GameTime::GetGameTimeMS();
|
||||
uint32_t const since = g_gothSplitSince.emplace(instance, nowMs).first->second;
|
||||
std::vector<std::string> walking;
|
||||
auto const shotIt = g_gothShot.find(instance);
|
||||
for (Member const* m : ordered)
|
||||
{
|
||||
// The ranged opener's spot is its own: counted as walking to its side spot, it held the opener back every other pass and the
|
||||
// split order sent it back (naxx_gothik r26: Mchuntc swapped between "walks to the opener spot" and "live side" for 10 s).
|
||||
if (shotIt != g_gothShot.end() && shotIt->second.found && m->p->GetGUID() == shotIt->second.shooter)
|
||||
continue;
|
||||
auto it = g_gothSpot.find(m->p->GetGUID().GetCounter());
|
||||
if (it == g_gothSpot.end() || it->second.instance != instance || m->p->GetExactDist2d(it->second.x, it->second.y) > 3.0f)
|
||||
walking.push_back(fmt::format("{} {:.0f} y", m->p->GetName(), it == g_gothSpot.end() ? -1.0f : m->p->GetExactDist2d(it->second.x, it->second.y)));
|
||||
}
|
||||
if (!walking.empty())
|
||||
{
|
||||
if (nowMs - since < kGothDrawWaitMs)
|
||||
return; // still walking
|
||||
static std::unordered_map<uint32_t, uint32_t> logged;
|
||||
uint32_t& at = logged[instance];
|
||||
if (!at || nowMs - at >= 15000u)
|
||||
{
|
||||
at = nowMs ? nowMs : 1u;
|
||||
std::string list;
|
||||
for (std::string const& w : walking)
|
||||
list += (list.empty() ? "" : ", ") + w;
|
||||
TC_LOG_INFO("playerbot.v2.raid", "[raid] Gothik: the split has stood {} s; the draw goes ahead with {} not at their spots: {}",
|
||||
(nowMs - since) / 1000u, walking.size(), list);
|
||||
}
|
||||
}
|
||||
Member const* puller = nullptr;
|
||||
for (Member const* m : ordered)
|
||||
{
|
||||
if (!m->tank || !g_gothSpot[m->p->GetGUID().GetCounter()].live)
|
||||
continue;
|
||||
if (!puller || m->p == plan.mainTank)
|
||||
puller = m;
|
||||
}
|
||||
if (!puller)
|
||||
{
|
||||
NaxxGothikRangedOpener(orders, ordered, gothik, gate, instance, dump); // no tank on the live side to draw him
|
||||
return;
|
||||
}
|
||||
Player* const tank = puller->p;
|
||||
auto drawIt = g_gothDraw.find(instance);
|
||||
if (drawIt == g_gothDraw.end())
|
||||
{
|
||||
float const reach = gothik->GetAttackDistance(tank) + gothik->GetCombatReach() + tank->GetCombatReach();
|
||||
float const dz = gothik->GetPositionZ() - gate->GetPositionZ();
|
||||
Position draw;
|
||||
bool const found = GothFloorSpot(gothik, gate, tank, reach - kGothDrawMargin, draw);
|
||||
drawIt = g_gothDraw.emplace(instance, std::make_pair(found, draw)).first;
|
||||
if (found)
|
||||
TC_LOG_INFO("playerbot.v2.raid", "[raid] Gothik: {} draws him from ({:.1f},{:.1f},{:.1f}), {:.1f} y from him on his balcony at "
|
||||
"({:.1f},{:.1f},{:.1f}), his aggro reach {:.1f} y", tank->GetName(), draw.GetPositionX(), draw.GetPositionY(),
|
||||
draw.GetPositionZ(), gothik->GetExactDist(draw), gothik->GetPositionX(), gothik->GetPositionY(), gothik->GetPositionZ(), reach);
|
||||
else
|
||||
TC_LOG_WARN("playerbot.v2.raid", "[raid] Gothik: no floor spot on the live side within his aggro reach {:.1f} y (him at "
|
||||
"({:.1f},{:.1f},{:.1f}), {:.1f} y above the gate's floor): a ranged opener pulls him", reach, gothik->GetPositionX(),
|
||||
gothik->GetPositionY(), gothik->GetPositionZ(), dz);
|
||||
}
|
||||
if (!drawIt->second.first)
|
||||
{
|
||||
NaxxGothikRangedOpener(orders, ordered, gothik, gate, instance, dump);
|
||||
return;
|
||||
}
|
||||
Position const& draw = drawIt->second.second;
|
||||
RaidOrder& o = orders[tank->GetGUID().GetCounter()];
|
||||
SetMove(o, draw.GetPositionX(), draw.GetPositionY(), draw.GetPositionZ(), "gothik: draws him from under his balcony");
|
||||
dump << " Gothik: " << tank->GetName() << " draws him\n";
|
||||
}
|
||||
|
||||
// In the fight each side keeps its raiders. He goes back out of combat (EnterEvadeMode) when either side of the combat gate has fewer
|
||||
// than 10 living players at any of his speech checks, 5 s apart (classic_boss_gothik.cpp HasLessPlayersPerSide), and the gate stays shut
|
||||
// until late in the fight. naxx_gothik r26: the opener pulled him, the out-of-combat split orders ended with the pull, the raid ran after
|
||||
// its tanks across the gate line, and he reset 5 s later at 100%. So while he is on his balcony or the gate is shut, a bot on the wrong
|
||||
// side or out of his room goes back to its spot; one with no enemy on its side near it waits at its spot; one with an add near it fights.
|
||||
constexpr float kGothAddNear = 40.0f;
|
||||
bool GothikSideMove(Plan const& plan, Member const& self, RaidOrder& out)
|
||||
{
|
||||
Unit* gothik = nullptr;
|
||||
for (Unit* enemy : plan.enemies)
|
||||
if (enemy->GetEntry() == kGothik)
|
||||
gothik = enemy;
|
||||
if (!gothik || !gothik->IsInCombat())
|
||||
return false;
|
||||
Player* const bot = self.p;
|
||||
GameObject* gate = GothikGate(bot);
|
||||
if (!gate || (gate->GetGoState() == GO_STATE_ACTIVE && !gothik->HasAura(kGothImmune)))
|
||||
return false; // the gates are open: one room again
|
||||
auto it = g_gothSpot.find(bot->GetGUID().GetCounter());
|
||||
if (it == g_gothSpot.end() || it->second.instance != bot->GetInstanceId())
|
||||
return false;
|
||||
GothSpot const& spot = it->second;
|
||||
bool const away = LiveSide(gate, bot->GetPositionY()) != spot.live || bot->GetExactDist2d(gate) > kGothRoom;
|
||||
if (!away)
|
||||
for (Unit* enemy : plan.enemies)
|
||||
if ((enemy->GetEntry() != kGothik || !enemy->HasAura(kGothImmune)) && LiveSide(gate, enemy->GetPositionY()) == spot.live &&
|
||||
bot->GetExactDist2d(enemy) <= kGothAddNear)
|
||||
return false; // an add, or Gothik down from his balcony, on its side: the fight is here
|
||||
out.post_enemy = gothik->GetGUID();
|
||||
if (!away && bot->GetExactDist2d(spot.x, spot.y) <= 4.0f)
|
||||
{
|
||||
out.at_post = true;
|
||||
out.hold_melee = !self.ranged && !self.healer;
|
||||
return true;
|
||||
}
|
||||
SetMove(out, spot.x, spot.y, spot.z, spot.live ? "gothik: back to the live side" : "gothik: back to the dead side", away);
|
||||
return true;
|
||||
}
|
||||
|
||||
// In the fight the gate is closed: a bot only fights enemies on its own side (the other side is out of reach).
|
||||
@@ -1187,6 +1499,8 @@ constexpr float kPatchNearRaid = 150.0f;
|
||||
constexpr float kPatchHallZ = 294.1f;
|
||||
struct PatchPost { float x, y; };
|
||||
constexpr PatchPost kPatchHealerPosts[] = { { 3326.0f, -3223.0f }, { 3326.0f, -3241.0f } }; // share 1 (even), share 2 (odd)
|
||||
// The ranged DPS stand at the same east end, 4 y further east, between the healers' corners (RaidEncounterData_NAXX.cpp, Patchwerk).
|
||||
constexpr PatchPost kPatchRangedPosts[] = { { 3330.0f, -3227.0f }, { 3330.0f, -3237.0f } }; // share 1 (even), share 2 (odd)
|
||||
std::unordered_set<uint32_t> g_patchPrePull; // instances whose healers were sent
|
||||
|
||||
void NaxxPrePullPatchwerk(Plan& plan, std::unordered_map<uint64_t, RaidOrder>& orders, std::ostringstream& dump)
|
||||
@@ -1204,15 +1518,19 @@ void NaxxPrePullPatchwerk(Plan& plan, std::unordered_map<uint64_t, RaidOrder>& o
|
||||
if (away < kPatchFarYards)
|
||||
return;
|
||||
g_patchPrePull.insert(instance);
|
||||
TC_LOG_INFO("playerbot.v2.raid", "[raid_patchwerk] he is {:.0f} y down his walk (at {:.1f},{:.1f}): the healers go to their posts at the hall's east end",
|
||||
TC_LOG_INFO("playerbot.v2.raid", "[raid_patchwerk] he is {:.0f} y down his walk (at {:.1f},{:.1f}): the healers and the ranged go to their posts at the hall's east end",
|
||||
away, patch->GetPositionX(), patch->GetPositionY());
|
||||
}
|
||||
uint32_t index = 0, sent = 0;
|
||||
// Healers and ranged DPS alike: the ranged had their post west of him in the hall, and from the lower floor the way up to it runs past
|
||||
// him, so they walked into his 18 y circle, out again and back for the whole fight (naxx_patchwerk 1115 threat run: all 16 ranged DPS
|
||||
// on "leave hazard" / "role position" turn about, 0 damage in 90 s). Waiting at the east end before the pull, they never cross it.
|
||||
uint32_t healerIndex = 0, rangedIndex = 0, healers = 0, ranged = 0;
|
||||
for (Member const& m : plan.members)
|
||||
{
|
||||
if (!m.healer)
|
||||
bool const isRanged = !m.tank && !m.healer && m.ranged; // Who::Ranged
|
||||
if (!m.healer && !isRanged)
|
||||
continue;
|
||||
PatchPost const& post = kPatchHealerPosts[index++ & 1u];
|
||||
PatchPost const& post = m.healer ? kPatchHealerPosts[healerIndex++ & 1u] : kPatchRangedPosts[rangedIndex++ & 1u];
|
||||
if (!m.bot)
|
||||
continue;
|
||||
float z = kPatchHallZ;
|
||||
@@ -1221,10 +1539,10 @@ void NaxxPrePullPatchwerk(Plan& plan, std::unordered_map<uint64_t, RaidOrder>& o
|
||||
RaidOrder& o = orders[m.p->GetGUID().GetCounter()];
|
||||
o.active = true;
|
||||
o.prepull = true;
|
||||
SetMove(o, post.x, post.y, z, "patchwerk: healer post");
|
||||
++sent;
|
||||
SetMove(o, post.x, post.y, z, m.healer ? "patchwerk: healer post" : "patchwerk: ranged post");
|
||||
++(m.healer ? healers : ranged);
|
||||
}
|
||||
dump << " Patchwerk: " << sent << " healers to the east end, he is " << int(away) << " y from his spawn\n";
|
||||
dump << " Patchwerk: " << healers << " healers and " << ranged << " ranged to the east end, he is " << int(away) << " y from his spawn\n";
|
||||
}
|
||||
|
||||
void NaxxPrePull(Plan& plan, std::unordered_map<uint64_t, RaidOrder>& orders, std::ostringstream& dump)
|
||||
@@ -1233,6 +1551,10 @@ void NaxxPrePull(Plan& plan, std::unordered_map<uint64_t, RaidOrder>& orders, st
|
||||
if (g_patchPrePull.size() > 64)
|
||||
g_patchPrePull.clear();
|
||||
NaxxPrePullGothik(plan, orders, dump);
|
||||
if (g_gothDraw.size() > 64)
|
||||
g_gothDraw.clear();
|
||||
if (g_gothSplitSince.size() > 64)
|
||||
g_gothSplitSince.clear();
|
||||
NaxxPrePullThaddius(plan, orders, dump);
|
||||
if (g_thadSpot.size() > 512)
|
||||
g_thadSpot.clear();
|
||||
@@ -1240,23 +1562,214 @@ void NaxxPrePull(Plan& plan, std::unordered_map<uint64_t, RaidOrder>& orders, st
|
||||
g_thadAnchor.clear();
|
||||
if (g_gothSpot.size() > 512)
|
||||
g_gothSpot.clear();
|
||||
if (g_gothOffFloorLogged.size() > 64)
|
||||
g_gothOffFloorLogged.clear();
|
||||
if (g_gothAnchor.size() > 64)
|
||||
g_gothAnchor.clear();
|
||||
if (g_gluthAnchor.size() > 64)
|
||||
g_gluthAnchor.clear();
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Maexxna: Web Spray
|
||||
// ---------------------------------------------------------------------------
|
||||
// Web Spray (29484) stuns the whole raid in her room for 10 s, her tank too, every 40 s from the pull (MaexWebSprayCooldown in
|
||||
// classic_boss_maexxna.cpp): nobody heals and the tank cannot block, parry or dodge while she keeps hitting it. At 30% she enrages
|
||||
// (28747: +250% damage done, +50% attack speed). naxx21: the tank fell to 33-39% in each of the first two stuns and died right after the
|
||||
// second to a Poison Shock; once she was enraged every stun killed the tank she was on, and the last tank went at 133 s. In the seconds
|
||||
// before the spray the healers put what keeps healing through a stun on her tank (Power Word: Shield, Renew, Rejuvenation, Regrowth),
|
||||
// each by one healer, and once she is enraged her warrior tank opens Shield Wall, or Last Stand when the wall is spent.
|
||||
constexpr uint32_t kMaexxna = 15952;
|
||||
constexpr uint32_t kWebSpray = 29484;
|
||||
constexpr uint32_t kMaexEnrage = 28747;
|
||||
constexpr uint32_t kSprayCycleMs = 40000;
|
||||
constexpr uint32_t kSprayPrepMs = 7000; // the jobs start this long before the spray is due (a Regrowth's cast and a GCD each)
|
||||
constexpr uint32_t kSprayLateMs = 5000; // and stop this long after it was due, if the clock was off and no spray came
|
||||
constexpr uint32_t kWeakenedSoul = 6788;
|
||||
constexpr uint32_t kShieldWall = 871;
|
||||
constexpr uint32_t kLastStand = 12975;
|
||||
|
||||
// `withinMs`: the job waits until the spray is due within this long (0: from kSprayPrepMs on).
|
||||
struct SprayJob { uint32_t base; uint32_t blockedBy; uint32_t withinMs; char const* what; };
|
||||
// Abolish Poison: her Necrotic Poison (28776, healing taken -90 %) comes back on her target every 5-10 s, so one lands while every
|
||||
// healer stands stunned in the web and the heals over time on her tank do a tenth. naxx_maexxna r25 (combined 1118): it was cleansed
|
||||
// 4 s before the first spray and on him again 5 s into it; her tank went from 94 % to dead in 9 s under the HoTs. Abolish Poison
|
||||
// takes a poison off every 2 s for 8 s, stunned healer or not, so it goes on as late as it can: within 2.5 s of the spray it lasts
|
||||
// some 6 s into it.
|
||||
SprayJob const kSprayJobs[] = {
|
||||
{ 2893, 0, 2500, "maexxna: abolish poison on her tank before Web Spray" }, // Abolish Poison
|
||||
{ 17, kWeakenedSoul, 0, "maexxna: shield her tank before Web Spray" }, // Power Word: Shield
|
||||
{ 139, 0, 0, "maexxna: renew her tank before Web Spray" }, // Renew
|
||||
{ 774, 0, 0, "maexxna: rejuvenation on her tank before Web Spray" },
|
||||
{ 8936, 0, 0, "maexxna: regrowth on her tank before Web Spray" },
|
||||
};
|
||||
|
||||
struct MaexSpray
|
||||
{
|
||||
uint32_t engaged = 0; // first plan that saw her in the fight
|
||||
uint32_t seen = 0; // last plan that saw her (a gap means a new pull: her guid stays the same after a wipe)
|
||||
uint32_t last = 0; // when the last spray went on (from its aura)
|
||||
bool up = false; // a spray is on the raid now
|
||||
std::unordered_map<uint32_t, uint64_t> jobOf; // job family -> the healer on it for the coming spray
|
||||
uint32_t jobsFor = 0; // the spray time those jobs are for
|
||||
};
|
||||
std::unordered_map<uint64_t, MaexSpray> g_maexSpray; // her guid -> the spray clock
|
||||
|
||||
bool AnyRankOn(Unit* u, uint32_t base)
|
||||
{
|
||||
for (uint32_t const id : SpellFamily::Ranks(base))
|
||||
if (u->HasAura(id))
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Stunned(Player* p) { return p->HasUnitState(UNIT_STATE_STUNNED) || p->HasAura(kWebSpray); }
|
||||
|
||||
int ManaPctOf(Player* p)
|
||||
{
|
||||
uint32_t const max = p->GetMaxPower(POWER_MANA);
|
||||
return max ? int(uint64_t(p->GetPower(POWER_MANA)) * 100 / max) : 100;
|
||||
}
|
||||
|
||||
// One healer for one job: the one that had it while it is still able, else the first idle one that can cast it now.
|
||||
Player* SprayHealer(Election& e, MaexSpray& st, SprayJob const& job, Unit* tank, uint32_t& spell)
|
||||
{
|
||||
Ranks const ranks = SpellFamily::Ranks(job.base);
|
||||
auto able = [&](Member const& m)
|
||||
{
|
||||
if (!m.bot || !m.healer || m.p == tank || e.busy.count(m.p->GetGUID().GetCounter()) || Stunned(m.p) || ManaPctOf(m.p) < 10)
|
||||
return false;
|
||||
spell = KnownRank(m.p, ranks);
|
||||
return spell && Ready(m.p, spell, tank, false);
|
||||
};
|
||||
if (auto it = st.jobOf.find(job.base); it != st.jobOf.end())
|
||||
for (Member const& m : e.plan.members)
|
||||
if (m.p->GetGUID().GetCounter() == it->second && able(m))
|
||||
return m.p;
|
||||
for (bool allowCasting : { false, true })
|
||||
for (Member const& m : e.plan.members)
|
||||
if (Busy(m.p) == allowCasting && able(m))
|
||||
return m.p;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void ElectMaexxnaSpray(Election& e, uint32_t now)
|
||||
{
|
||||
Plan& plan = e.plan;
|
||||
Unit* maex = nullptr;
|
||||
for (Unit* enemy : plan.enemies)
|
||||
if (enemy->GetEntry() == kMaexxna)
|
||||
maex = enemy;
|
||||
if (!maex)
|
||||
return;
|
||||
MaexSpray& st = g_maexSpray[maex->GetGUID().GetCounter()];
|
||||
if (st.engaged && now - st.seen > 10000)
|
||||
st = MaexSpray();
|
||||
st.seen = now;
|
||||
if (!st.engaged)
|
||||
st.engaged = now;
|
||||
// The clock follows the spray itself once one was seen: it went on when its aura did.
|
||||
bool up = false;
|
||||
for (Member const& m : plan.members)
|
||||
if (Aura const* a = m.p->GetAura(kWebSpray))
|
||||
{
|
||||
up = true;
|
||||
if (!st.up)
|
||||
st.last = now - std::min<uint32_t>(now, uint32_t(std::max(0, a->GetMaxDuration() - a->GetDuration())));
|
||||
break;
|
||||
}
|
||||
st.up = up;
|
||||
uint32_t const due = (st.last ? st.last : st.engaged) + kSprayCycleMs;
|
||||
if (up || now + kSprayPrepMs < due || now > due + kSprayLateMs)
|
||||
return;
|
||||
if (st.jobsFor != due)
|
||||
{
|
||||
st.jobsFor = due;
|
||||
st.jobOf.clear();
|
||||
}
|
||||
// Every heal on her tank lands from here to the spray (CancelOverheal keeps it).
|
||||
for (Member const& m : plan.members)
|
||||
if (m.bot && m.healer)
|
||||
if (RaidOrder* ho = e.OrderOf(m.p))
|
||||
ho->keep_heals = true;
|
||||
Unit* tank = maex->GetVictim();
|
||||
Player* holder = tank ? tank->ToPlayer() : nullptr;
|
||||
if (!holder || !FindMember(plan, holder))
|
||||
return;
|
||||
int const inMs = int(due) - int(now);
|
||||
// Her tank is set for the spray: from here on no other tank takes her (its taunt would leave the shield, the heals over time and
|
||||
// Abolish Poison on the tank she just left). naxx_maexxna r26: the jobs went on Mctankwb 7-2 s before the spray, the main tank
|
||||
// took her back from it 1.5 s before, and died in the web with one shield on him.
|
||||
if (Member const* hm = FindMember(plan, holder); hm && hm->tank)
|
||||
for (Member const& m : plan.members)
|
||||
if (m.tank && m.p != holder)
|
||||
if (RaidOrder* to = e.OrderOf(m.p))
|
||||
to->forbidden_targets.push_back(maex->GetGUID());
|
||||
|
||||
for (SprayJob const& job : kSprayJobs)
|
||||
{
|
||||
if (AnyRankOn(holder, job.base) || (job.blockedBy && holder->HasAura(job.blockedBy)) || (job.withinMs && inMs > int(job.withinMs)))
|
||||
continue;
|
||||
uint32_t spell = 0;
|
||||
Player* healer = SprayHealer(e, st, job, holder, spell);
|
||||
if (!healer)
|
||||
continue;
|
||||
RaidOrder* o = e.OrderOf(healer);
|
||||
if (!o)
|
||||
continue;
|
||||
o->cast_kind = RaidOrder::CastKind::Prepare;
|
||||
o->cast_spell = spell;
|
||||
o->cast_target = holder->GetGUID();
|
||||
e.busy.insert(healer->GetGUID().GetCounter());
|
||||
e.dump << " " << healer->GetName() << ": " << job.what << " " << spell << " -> " << holder->GetName() << "\n";
|
||||
auto [it, fresh] = st.jobOf.try_emplace(job.base, healer->GetGUID().GetCounter());
|
||||
if (fresh || it->second != healer->GetGUID().GetCounter())
|
||||
{
|
||||
it->second = healer->GetGUID().GetCounter();
|
||||
TC_LOG_INFO("playerbot.v2.raid", "[raid_maexxna] {} casts {} on {} ({:.0f}%) {:.1f} s before Web Spray", healer->GetName(), spell,
|
||||
holder->GetName(), holder->GetHealthPct(), inMs / 1000.0f);
|
||||
}
|
||||
}
|
||||
|
||||
// Enraged, a stun is a tank's death: the wall first, Last Stand once the wall is spent.
|
||||
Member* hm = FindMember(plan, holder);
|
||||
if (!hm->bot || !hm->tank || holder->GetClass() != CLASS_WARRIOR || e.busy.count(holder->GetGUID().GetCounter()))
|
||||
return;
|
||||
if (!maex->HasAura(kMaexEnrage) || holder->HasAura(kShieldWall) || holder->HasAura(kLastStand))
|
||||
return;
|
||||
for (uint32_t const spell : { kShieldWall, kLastStand })
|
||||
{
|
||||
if (!holder->HasSpell(spell) || !Ready(holder, spell, holder, false))
|
||||
continue;
|
||||
RaidOrder* o = e.OrderOf(holder);
|
||||
if (!o)
|
||||
return;
|
||||
o->cast_kind = RaidOrder::CastKind::Prepare;
|
||||
o->cast_spell = spell;
|
||||
o->cast_target = holder->GetGUID();
|
||||
e.busy.insert(holder->GetGUID().GetCounter());
|
||||
e.dump << " " << holder->GetName() << ": maexxna: " << (spell == kShieldWall ? "Shield Wall" : "Last Stand") << " before Web Spray\n";
|
||||
if (inMs > int(kSprayPrepMs) - 1000)
|
||||
TC_LOG_INFO("playerbot.v2.raid", "[raid_maexxna] {} opens {} at {:.0f}%, she is enraged, {:.1f} s before Web Spray", holder->GetName(),
|
||||
spell == kShieldWall ? "Shield Wall" : "Last Stand", holder->GetHealthPct(), inMs / 1000.0f);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
bool NaxxMechanicsMove(Plan const& plan, Member const& self, uint32_t now, RaidOrder& out)
|
||||
{
|
||||
return HeiganMove(plan, self, now, out) || SapphironMove(plan, self, now, out) || ThaddiusSideMove(plan, self, out) ||
|
||||
return HeiganMove(plan, self, now, out) || SapphironMove(plan, self, now, out) || GothikSideMove(plan, self, out) || ThaddiusSideMove(plan, self, out) ||
|
||||
GluthMove(plan, self, now, out);
|
||||
}
|
||||
|
||||
void NaxxMechanicsElect(Election& e, uint32_t /*now*/)
|
||||
void NaxxMechanicsElect(Election& e, uint32_t now)
|
||||
{
|
||||
ElectRazuvious(e);
|
||||
ElectFaerlina(e);
|
||||
ElectGothikSides(e);
|
||||
ElectMaexxnaSpray(e, now);
|
||||
if (g_maexSpray.size() > 64)
|
||||
g_maexSpray.clear();
|
||||
if (g_airSpread.size() > 256)
|
||||
g_airSpread.clear();
|
||||
}
|
||||
|
||||
@@ -43,10 +43,6 @@ struct SiphonClock
|
||||
ObjectGuid puller; // the bot that pulls it
|
||||
};
|
||||
|
||||
// The ranged openers of a pull: one shot from range makes the Son run at the shooter.
|
||||
Ranks const kArcaneShot = { 3044, 14281, 14282, 14283, 14284, 14285, 14286, 14287 };
|
||||
Ranks const kFrostbolt = { 116, 205, 837, 7322, 8406, 8407, 8408, 10179, 10180, 10181, 25304 };
|
||||
Ranks const kShadowBolt = { 686, 695, 705, 1088, 1106, 7641, 11659, 11660, 11661, 25307 };
|
||||
constexpr float kPullReach = 28.0f; // the puller walks to this far from the Son (inside the 30-35 y of the openers)
|
||||
std::unordered_map<uint64_t, SiphonClock> g_siphon; // by Hakkar's guid
|
||||
|
||||
@@ -201,18 +197,6 @@ Creature* SonToPull(Plan const& plan, SiphonClock& c, Unit* hakkar, uint32_t t)
|
||||
return best;
|
||||
}
|
||||
|
||||
// The opener a bot pulls with (0: none it knows). Hunters first, then mages, then warlocks.
|
||||
uint32_t PullSpell(Player* p, int& order)
|
||||
{
|
||||
switch (p->GetClass())
|
||||
{
|
||||
case CLASS_HUNTER: order = 0; return KnownRank(p, kArcaneShot);
|
||||
case CLASS_MAGE: order = 1; return KnownRank(p, kFrostbolt);
|
||||
case CLASS_WARLOCK: order = 2; return KnownRank(p, kShadowBolt);
|
||||
default: order = 3; return 0;
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
void ZgMechanicsElect(Election& e, uint32_t now)
|
||||
@@ -259,7 +243,7 @@ void ZgMechanicsElect(Election& e, uint32_t now)
|
||||
{
|
||||
int order = 3;
|
||||
return m.bot && !m.tank && !m.healer && m.p->IsAlive() && hakkar->GetVictim() != m.p && !m.p->HasAura(kCorruptedBlood) &&
|
||||
PullSpell(m.p, order) != 0;
|
||||
RangedPullSpell(m.p, order) != 0;
|
||||
};
|
||||
Member* puller = nullptr;
|
||||
for (Member& m : e.plan.members)
|
||||
@@ -273,7 +257,7 @@ void ZgMechanicsElect(Election& e, uint32_t now)
|
||||
if (!canPull(m) || e.busy.count(m.p->GetGUID().GetCounter()))
|
||||
continue;
|
||||
int order = 3;
|
||||
PullSpell(m.p, order);
|
||||
RangedPullSpell(m.p, order);
|
||||
float const yards = m.p->GetExactDist2d(son);
|
||||
if (!puller || order < bestOrder || (order == bestOrder && yards < bestYards))
|
||||
{
|
||||
@@ -291,7 +275,7 @@ void ZgMechanicsElect(Election& e, uint32_t now)
|
||||
son->GetGUID().GetCounter(), puller->p->GetExactDist2d(son));
|
||||
}
|
||||
int order = 3;
|
||||
uint32_t const spell = PullSpell(puller->p, order);
|
||||
uint32_t const spell = RangedPullSpell(puller->p, order);
|
||||
if (e.busy.count(puller->p->GetGUID().GetCounter()) || !Ready(puller->p, spell, son, true))
|
||||
return; // walking in (ZgMechanicsMove), or out of reach or sight: the walk goes on
|
||||
RaidOrder* o = e.OrderOf(puller->p);
|
||||
|
||||
@@ -17,7 +17,8 @@ namespace Playerbot {
|
||||
|
||||
struct RaidOrder
|
||||
{
|
||||
enum class CastKind : uint8_t { None, Taunt, Dispel, Purge, CrowdControl, Nuke, Disarm, StanceDance };
|
||||
// Prepare: a cast ahead of a known hit (a shield or heal over time on the tank before a stun, the tank's own Shield Wall).
|
||||
enum class CastKind : uint8_t { None, Taunt, Dispel, Purge, CrowdControl, Nuke, Disarm, StanceDance, Prepare };
|
||||
|
||||
bool active = false;
|
||||
|
||||
@@ -29,6 +30,9 @@ struct RaidOrder
|
||||
bool move = false;
|
||||
float move_x = 0.f, move_y = 0.f, move_z = 0.f;
|
||||
char const* move_reason = ""; // static string literal (log/diag only)
|
||||
// The move gets the bot out of something that kills where it stands (a hazard, a cone, lava, a breath it hides from, Heigan's
|
||||
// eruption): a cast under way is stopped for it. Any other move waits for the cast to end; see DispatchRaidOrder.
|
||||
bool move_urgent = false;
|
||||
// The bot stands at its encounter role position (a Stand rule, within its tolerance): the generic in-fight formation walk and the
|
||||
// clump separation leave it there (each would walk it off the post, and the next brain pass walk it back).
|
||||
bool at_post = false;
|
||||
@@ -87,6 +91,9 @@ struct RaidOrder
|
||||
// Remove this aura from the bot (Blessing of Protection on a tank during Nefarian's paladin call).
|
||||
uint32_t cancel_aura = 0;
|
||||
|
||||
// A stun on the whole raid comes within seconds (Maexxna's Web Spray): no heal on a tank is stopped as overheal, so every heal in
|
||||
// the air lands before the healers are held for 10 s.
|
||||
bool keep_heals = false;
|
||||
// Pause the rotation (Nefarian's priest call). Movement and elected jobs still run.
|
||||
bool hold_rotation = false;
|
||||
|
||||
|
||||
@@ -53,6 +53,7 @@
|
||||
#include "Config.h"
|
||||
#include "Bot/World/ZonePicker.h"
|
||||
#include "GameTime.h"
|
||||
#include "WorldStateMgr.h" // idle:scourge_invasion reads the realm "zone invaded" states
|
||||
#include "UnitDefines.h" // UNIT_NPC_FLAG_FLIGHTMASTER / _QUESTGIVER
|
||||
|
||||
#include <string>
|
||||
@@ -1488,6 +1489,161 @@ bool GrindRoamFire(BotSnapshotView const& s, BotAI& ai, GroupSnapshotView const&
|
||||
return false;
|
||||
}
|
||||
|
||||
// ---------- idle:scourge_invasion ----------
|
||||
// The Scourge Invasion world event (classic_world_event_scourge_invasion.cpp, off unless Classic.ScourgeInvasion = 1 or .scourge on):
|
||||
// a free level 55+ bot in a zone under attack fights the camp minions near it and, with none in reach, walks to the nearest camp
|
||||
// (the event's summoning circles, the same spots on every attack), so a small server still has people at the necropolises.
|
||||
// The "invaded" world states are realm wide and WorldStateMgr locks them, so the gate may read them off the world thread.
|
||||
// Playerbot.World.ScourgeInvasion = 0 keeps the bots out of it.
|
||||
namespace
|
||||
{
|
||||
struct SiCamp { uint32 zone; uint32 map; float x, y, z; };
|
||||
constexpr SiCamp kSiCamps[] =
|
||||
{
|
||||
{ 618, 1, 6052.6f, -4749.6f, 785.5f },
|
||||
{ 618, 1, 7939.6f, -3870.9f, 695.4f },
|
||||
{ 618, 1, 7822.9f, -4220.2f, 675.5f },
|
||||
{ 618, 1, 7687.9f, -3877.7f, 687.2f },
|
||||
{ 618, 1, 6782.0f, -3585.6f, 712.3f },
|
||||
{ 618, 1, 6742.2f, -3352.3f, 688.4f },
|
||||
{ 618, 1, 6547.4f, -3482.4f, 643.6f },
|
||||
{ 618, 1, 6284.7f, -4782.2f, 757.3f },
|
||||
{ 618, 1, 6072.1f, -5040.1f, 789.9f },
|
||||
{ 440, 1, -8833.6f, -2600.4f, 21.7f },
|
||||
{ 440, 1, -7246.0f, -3543.6f, 13.6f },
|
||||
{ 440, 1, -7328.9f, -3970.2f, 11.0f },
|
||||
{ 440, 1, -7632.0f, -3733.0f, 20.7f },
|
||||
{ 440, 1, -8169.9f, -3803.6f, 14.9f },
|
||||
{ 440, 1, -8333.9f, -4203.1f, 12.3f },
|
||||
{ 440, 1, -8476.2f, -3826.0f, 16.6f },
|
||||
{ 440, 1, -8533.5f, -2699.7f, 21.2f },
|
||||
{ 440, 1, -8534.2f, -2298.9f, 28.6f },
|
||||
{ 16, 1, 3086.5f, -4215.7f, 97.7f },
|
||||
{ 16, 1, 3337.5f, -4516.6f, 97.7f },
|
||||
{ 16, 1, 3366.3f, -5566.3f, 11.1f },
|
||||
{ 16, 1, 3516.3f, -4151.8f, 106.9f },
|
||||
{ 16, 1, 3518.3f, -5712.4f, 4.8f },
|
||||
{ 16, 1, 3666.5f, -5533.4f, 20.6f },
|
||||
{ 4, 0, -11548.5f, -3283.3f, 7.5f },
|
||||
{ 4, 0, -11420.0f, -2816.9f, 0.8f },
|
||||
{ 4, 0, -11347.7f, -3150.8f, 6.8f },
|
||||
{ 4, 0, -11250.5f, -3350.8f, 9.9f },
|
||||
{ 4, 0, -11181.7f, -2985.4f, 8.2f },
|
||||
{ 4, 0, -11016.3f, -2783.4f, 4.4f },
|
||||
{ 139, 0, 1599.8f, -3039.5f, 78.7f },
|
||||
{ 139, 0, 1804.4f, -2842.5f, 72.9f },
|
||||
{ 139, 0, 1938.6f, -4761.2f, 97.1f },
|
||||
{ 139, 0, 1957.1f, -3101.7f, 83.6f },
|
||||
{ 139, 0, 1963.3f, -5125.1f, 78.7f },
|
||||
{ 139, 0, 2315.2f, -4933.1f, 83.0f },
|
||||
{ 46, 0, -8399.8f, -1246.0f, 202.7f },
|
||||
{ 46, 0, -8371.1f, -963.3f, 191.0f },
|
||||
{ 46, 0, -8032.0f, -981.6f, 122.6f },
|
||||
{ 46, 0, -7981.9f, -2433.3f, 129.8f },
|
||||
{ 46, 0, -7732.9f, -2232.8f, 135.0f },
|
||||
{ 46, 0, -7603.6f, -2596.4f, 135.7f },
|
||||
};
|
||||
|
||||
int32 SiInvadedWorldState(uint32 zoneId)
|
||||
{
|
||||
switch (zoneId)
|
||||
{
|
||||
case 618: return 2259; // Winterspring
|
||||
case 16: return 2260; // Azshara
|
||||
case 4: return 2261; // Blasted Lands
|
||||
case 46: return 2262; // Burning Steppes
|
||||
case 440: return 2263; // Tanaris
|
||||
case 139: return 2264; // Eastern Plaguelands
|
||||
default: return 0;
|
||||
}
|
||||
}
|
||||
|
||||
bool SiIsMinion(uint32 entry)
|
||||
{
|
||||
switch (entry)
|
||||
{
|
||||
case 16141: case 16298: case 16299: // Ghoul Berserker, Spectral Soldier, Skeletal Shocktrooper
|
||||
case 14697: case 16379: case 16380: // the rares (left to players by ShareMobs::LeaveElite when elite)
|
||||
case 16230: // Cultist Engineer
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
bool SiBotsJoin()
|
||||
{
|
||||
static bool const join = sConfigMgr->GetBoolDefault("Playerbot.World.ScourgeInvasion", true, true);
|
||||
return join;
|
||||
}
|
||||
|
||||
bool SiZoneInvaded(uint32 zoneId)
|
||||
{
|
||||
int32 const ws = SiInvadedWorldState(zoneId);
|
||||
return ws && WorldStateMgr::GetValue(ws, nullptr) > 0;
|
||||
}
|
||||
}
|
||||
|
||||
bool ScourgeInvasionGate(BotSnapshotView const& s, BotAI&, GroupSnapshotView const&, uint32)
|
||||
{
|
||||
if (!s.is_free_world_bot() || s.level() < 55) return false;
|
||||
if (!s.is_alive() || s.in_combat() || s.is_casting() || s.hp_pct() < 70) return false;
|
||||
if (s.is_in_instance() || s.is_in_dungeon() || s.in_battleground()) return false;
|
||||
if (V2::Parties::Following(s)) return false;
|
||||
if (!SiBotsJoin() || !SiZoneInvaded(s.zone_id())) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
bool ScourgeInvasionFire(BotSnapshotView const& s, BotAI& ai, GroupSnapshotView const&, BotIntentEmitter& emit, uint32)
|
||||
{
|
||||
float bx, by, bz;
|
||||
s.position(bx, by, bz);
|
||||
|
||||
// a minion or cultist in reach: fight it
|
||||
NearbyUnit const* best = nullptr;
|
||||
float bestDist = 50.0f;
|
||||
for (auto const& u : s.nearby_enemies())
|
||||
{
|
||||
if (!u.guid.IsCreature() || !SiIsMinion(u.entry) || u.hp <= 0 || u.untargetable || u.is_pacified) continue;
|
||||
if (u.victim != ObjectGuid::Empty && u.victim != s.guid()) continue; // someone else's fight
|
||||
if (V2::ShareMobs::LeaveMob(s, u) || V2::ShareMobs::LeaveElite(s, u)) continue;
|
||||
float const d = std::hypot(u.x - bx, u.y - by);
|
||||
if (d < bestDist) { bestDist = d; best = &u; }
|
||||
}
|
||||
if (best)
|
||||
{
|
||||
if (s.raw().movement.is_mounted)
|
||||
emit.dismount();
|
||||
if (emit.start_attack(best->guid))
|
||||
{
|
||||
ai.set_last_rule_fired("idle:scourge_invasion");
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// none: to the nearest camp of this zone
|
||||
SiCamp const* camp = nullptr;
|
||||
float campDist = 700.0f;
|
||||
for (SiCamp const& c : kSiCamps)
|
||||
{
|
||||
if (c.zone != s.zone_id() || c.map != s.map_id()) continue;
|
||||
float const d = std::hypot(c.x - bx, c.y - by);
|
||||
if (d < campDist) { campDist = d; camp = &c; }
|
||||
}
|
||||
if (!camp || campDist <= 25.0f)
|
||||
return false; // at the camp: the engage rule and the wander do the rest
|
||||
|
||||
uint32 const now = s.published_at_ms();
|
||||
if (s.is_moving() || emit.move_to(camp->x, camp->y, camp->z) || emit.move_already_emitted(camp->x, camp->y, camp->z)
|
||||
|| States::ChunkedWalkToward(s, ai, emit, camp->x, camp->y, camp->z, "idle:scourge_invasion", now))
|
||||
{
|
||||
ai.set_last_rule_fired("idle:scourge_invasion");
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// ---------- idle:campfire ----------
|
||||
// Outdoors at night, a few bots that stand still light a campfire (Basic Campfire, 818); the usual ambient sit does the rest.
|
||||
bool CampfireGate(BotSnapshotView const& s, BotAI& ai, GroupSnapshotView const&, uint32)
|
||||
@@ -2084,6 +2240,14 @@ void RegisterAmbientRules(IdleRuleRegistry& r)
|
||||
rule.fire = &GrindRoamFire;
|
||||
r.register_rule(std::move(rule));
|
||||
}
|
||||
{
|
||||
IdleRule rule;
|
||||
rule.name = "idle:scourge_invasion";
|
||||
rule.priority = 57; // above grind_roam (55) and party_follow's 56: a zone under attack is where a free bot goes
|
||||
rule.gate = &ScourgeInvasionGate;
|
||||
rule.fire = &ScourgeInvasionFire;
|
||||
r.register_rule(std::move(rule));
|
||||
}
|
||||
{
|
||||
IdleRule rule;
|
||||
rule.name = "idle:gate_challenge";
|
||||
|
||||
@@ -42,6 +42,8 @@
|
||||
#include "Bot/ResistGear.h"
|
||||
#include "Services.h"
|
||||
#include "SharedDefines.h"
|
||||
#include "SpellInfo.h"
|
||||
#include "SpellMgr.h"
|
||||
#include "Util/ConfigReader.h"
|
||||
#include <vector>
|
||||
|
||||
@@ -205,8 +207,21 @@ bool BlessingsFire(BotSnapshotView const& s, BotAI& ai, GroupSnapshotView const&
|
||||
if (m.guid == b.target)
|
||||
for (AuraEntry const& a : m.buffs)
|
||||
seen += fmt::format("{}{}:{}s", seen.empty() ? "" : " ", a.spell_id, a.remaining.count() / 1000);
|
||||
TC_LOG_INFO("playerbot.v2", "[raid_support] {} casts spell {} on {} (key {:x}): target's tracked buffs [{}]", s.name(), b.spell,
|
||||
b.target.GetCounter(), b.key, seen);
|
||||
// A raid's paladin that blesses member by member takes a minute over forty (naxx22 1116: two paladins still owed blessings
|
||||
// 50-84 s past the attack order on three bosses). What keeps it off the Greater Blessings: its Symbols of Kings, whether it
|
||||
// knows Greater Might / Wisdom / Kings, and whether this server's Greater Might applies anything (GreaterBlessingWorks).
|
||||
std::string greater;
|
||||
if (g.is_raid() && (b.key >> 48) == 2)
|
||||
{
|
||||
bool might_works = false;
|
||||
if (SpellInfo const* si = sSpellMgr->GetSpellInfo(25782, DIFFICULTY_NONE))
|
||||
for (SpellEffectInfo const& eff : si->GetEffects())
|
||||
might_works = might_works || eff.Effect != SPELL_EFFECT_NONE;
|
||||
greater = fmt::format("; one by one: Symbol of Kings {}, knows Greater Might {} Wisdom {} Kings {}, Greater Might applies {}",
|
||||
s.item_count(21177), s.knows_spell(25782), s.knows_spell(25894), s.knows_spell(25898), might_works);
|
||||
}
|
||||
TC_LOG_INFO("playerbot.v2", "[raid_support] {} casts spell {} on {} (key {:x}): target's tracked buffs [{}]{}", s.name(), b.spell,
|
||||
b.target.GetCounter(), b.key, seen, greater);
|
||||
}
|
||||
}
|
||||
Classic::NoteRaidSupport(Classic::RaidSupportKind::Blessing);
|
||||
|
||||
@@ -835,19 +835,16 @@ bool MaintainAutoEquipUpgrades(BotSnapshotView const& s, BotAI& ai,
|
||||
for (auto const& it : raw.inventory.bag_items)
|
||||
{
|
||||
if (it.equip_slot == 0xFF) continue;
|
||||
// Shield-tank weapon + offhand are owned EXCLUSIVELY by
|
||||
// EnsureShieldTankWeapon (gear-backfill 1H+shield enforcer). A 2H scores
|
||||
// higher than the 1H it equips, so letting this score-based rule manage
|
||||
// those slots re-equips the displaced 2H and evicts the shield — an
|
||||
// endless 2H<->1H+shield churn (live 2026-06-28). Prot War (73) / Prot
|
||||
// Pala (66) only; 2H tanks (Blood DK / Guardian Druid) keep their weapon.
|
||||
if ((s.spec() == 73 || s.spec() == 66) &&
|
||||
(it.equip_slot == EQUIPMENT_SLOT_MAINHAND ||
|
||||
it.equip_slot == EQUIPMENT_SLOT_OFFHAND))
|
||||
continue;
|
||||
// Shield tank (Prot War 73 / Prot Pala 66): a two-hander or an off-hand
|
||||
// weapon would evict the shield and EnsureShieldTankWeapon swaps back, an
|
||||
// endless 2H<->1H+shield churn (live 2026-06-28). Those stay in the bags;
|
||||
// a better one-hander or shield goes on (11-17: a tank given weapons and
|
||||
// shields wore none of them). Never a fishing pole (Gear::AutoEquipSlot).
|
||||
uint8 const dst = ::Playerbot::V2::Gear::AutoEquipSlot(uint16(s.spec()), it.equip_slot, it.entry);
|
||||
if (dst == 0xFF) continue;
|
||||
// Defense-in-depth: builder clamps equip_slot to <19, but indexing
|
||||
// equipped[19+] is UB (bag slots are 30-33) — never walk past it.
|
||||
if (it.equip_slot >= raw.inventory.equipped.size()) continue;
|
||||
if (dst >= raw.inventory.equipped.size()) continue;
|
||||
if (it.item_level == 0) continue;
|
||||
if (it.quality == 0) continue;
|
||||
// Per-entry retry throttle (shared with idle:equip_upgrade). When the
|
||||
@@ -861,10 +858,12 @@ bool MaintainAutoEquipUpgrades(BotSnapshotView const& s, BotAI& ai,
|
||||
// and the rule goes quiet until the next ding / periodic re-check.
|
||||
if (ai.equip_recently_tried(it.entry, equip_now_ms)) continue;
|
||||
// The raid swap pieces (resistance gear, the Onyxia Scale Cloak) stay on while they are wanted.
|
||||
EquippedItem const& cur = raw.inventory.equipped[it.equip_slot];
|
||||
if (ai.gear_slot_held(it.equip_slot, s.map_id(), cur.entry)) continue;
|
||||
EquippedItem const& cur = raw.inventory.equipped[dst];
|
||||
if (ai.gear_slot_held(dst, s.map_id(), cur.entry)) continue;
|
||||
// A piece a player chose for the bot (trade or "equip <item>") stays on.
|
||||
if (ai.worn_is_kept(it.equip_slot, cur.entry)) continue;
|
||||
if (ai.worn_is_kept(dst, cur.entry)) continue;
|
||||
// A worn fishing pole is no weapon: any weapon replaces it.
|
||||
uint32 const cur_entry = ::Playerbot::V2::Gear::IsFishingPole(cur.entry) ? 0u : cur.entry;
|
||||
// Score-based upgrade test (was pure item_level). 12.0 level-scaling
|
||||
// floors low-level whites AND quest greens to the same effective ilvl,
|
||||
// so `it.item_level <= cur.item_level` tied and refused real upgrades —
|
||||
@@ -875,16 +874,16 @@ bool MaintainAutoEquipUpgrades(BotSnapshotView const& s, BotAI& ai,
|
||||
if (::Playerbot::V2::Gear::RaidGearActive(raw.identity.level))
|
||||
{
|
||||
auto const& eq = raw.inventory.equipped;
|
||||
if (!::Playerbot::V2::Gear::RaidEquipUpgrade(raw.identity.cls, uint16(raw.identity.spec), raw.identity.level, it.equip_slot, it.entry,
|
||||
cur.entry, eq[EQUIPMENT_SLOT_MAINHAND].entry, eq[EQUIPMENT_SLOT_OFFHAND].entry,
|
||||
if (!::Playerbot::V2::Gear::RaidEquipUpgrade(raw.identity.cls, uint16(raw.identity.spec), raw.identity.level, dst, it.entry,
|
||||
cur_entry, eq[EQUIPMENT_SLOT_MAINHAND].entry, eq[EQUIPMENT_SLOT_OFFHAND].entry,
|
||||
raw.owner_guid.IsEmpty(), raw.guid.GetCounter()))
|
||||
continue;
|
||||
}
|
||||
else if (cur.entry != 0 &&
|
||||
else if (cur_entry != 0 &&
|
||||
EquipFitScore(it.stats, it.item_level, raw.stat_weights) <=
|
||||
EquipFitScore(cur.stats, cur.item_level, raw.stat_weights))
|
||||
continue;
|
||||
emit.equip_item(it.bag, it.slot, it.equip_slot);
|
||||
emit.equip_item(it.bag, it.slot, dst);
|
||||
ai.note_equip_try(it.entry, equip_now_ms);
|
||||
return true; // one per tick; next snapshot drains the next slot
|
||||
}
|
||||
@@ -2925,13 +2924,20 @@ static bool RaidRangedStandRejected(BotSnapshotView const& s, GroupSnapshotView
|
||||
if (RaidPointBlocked(s, px, py, pz, kHazardMargin)) return true;
|
||||
float fd2 = 0.f, ffx = 0.f, ffy = 0.f;
|
||||
if (FrontArcBossAt(s, g, px, py, fd2, ffx, ffy)) return true;
|
||||
// The encounter's own cone (Raid::RaidRules::avoidFrontal) as well as the generic 20 y guess: naxx_sapphiron r26, the formation slot
|
||||
// for a healer was (3519.6,-5228.0), 8 y in front of Sapphiron, inside his 30 y front half where Cleave chains; 23 raiders died to
|
||||
// Cleave, most of them walking to or from such slots.
|
||||
if (InRuledFrontalCone(s, px, py)) return true;
|
||||
// Measured from the elite's edge, not its centre: a big one (Sapphiron, combat reach 10+ y) swings at a point that is
|
||||
// kRaidRangedTooClose from its centre.
|
||||
constexpr float kElite = kRaidRangedTooClose + kRaidStandElitePad;
|
||||
for (auto const& u : s.raw().combat.nearby_enemies)
|
||||
{
|
||||
if (u.hp <= 0 || u.is_player || u.untargetable || !u.unit_in_combat) continue;
|
||||
if (!u.is_elite_or_rare && !Classic::IsBossUnit(u)) continue;
|
||||
const float ex = u.x - px, ey = u.y - py, ez = u.z - pz;
|
||||
if (ex * ex + ey * ey + ez * ez < kElite * kElite) return true;
|
||||
const float keep = kElite + u.combat_reach;
|
||||
if (ex * ex + ey * ey + ez * ez < keep * keep) return true;
|
||||
}
|
||||
return UnpulledPackReaching(s, nullptr, px, py, pz, 0.0f, /*need_los=*/false, nullptr, now_ms) != nullptr;
|
||||
}
|
||||
@@ -12931,43 +12937,38 @@ bool DungeonDispatch(BotSnapshotView const& s, BotAI& ai,
|
||||
for (auto const& bi : eq_raw.inventory.bag_items)
|
||||
{
|
||||
if (bi.equip_slot == 0xFF) continue;
|
||||
// Shield-tank weapon + offhand are owned EXCLUSIVELY by
|
||||
// EnsureShieldTankWeapon (the gear-backfill 1H+shield enforcer).
|
||||
// The score-based auto-equip must never touch those two slots
|
||||
// for a Prot Warrior (73) / Prot Paladin (66): the 2H that
|
||||
// EnsureShieldTankWeapon displaces into the bag scores HIGHER
|
||||
// than the 1H it just equipped, so this rule would re-equip the
|
||||
// 2H, evict the shield, and the next backfill swaps back —
|
||||
// an infinite 2H<->1H+shield churn that leaves the tank
|
||||
// shield-less mid-pull (live 2026-06-28, Deadmines harbor). 2H
|
||||
// tanks (Blood DK / Guardian Druid) are NOT spec 73/66 and keep
|
||||
// their weapon.
|
||||
if ((s.spec() == 73 || s.spec() == 66) &&
|
||||
(bi.equip_slot == EQUIPMENT_SLOT_MAINHAND ||
|
||||
bi.equip_slot == EQUIPMENT_SLOT_OFFHAND))
|
||||
continue;
|
||||
if (bi.equip_slot >= eq_raw.inventory.equipped.size()) continue;
|
||||
// Shield tank (Prot War 73 / Prot Pala 66): a two-hander or an
|
||||
// off-hand weapon would evict the shield and EnsureShieldTankWeapon
|
||||
// swaps back, an infinite 2H<->1H+shield churn that left the tank
|
||||
// shield-less mid-pull (live 2026-06-28, Deadmines harbor). Those
|
||||
// stay in the bags; a better one-hander or shield goes on. 2H tanks
|
||||
// (Blood DK / Guardian Druid) are not spec 73/66 and keep their
|
||||
// weapon. Never a fishing pole (Gear::AutoEquipSlot).
|
||||
uint8 const dst = ::Playerbot::V2::Gear::AutoEquipSlot(uint16(s.spec()), bi.equip_slot, bi.entry);
|
||||
if (dst == 0xFF) continue;
|
||||
if (dst >= eq_raw.inventory.equipped.size()) continue;
|
||||
if (bi.item_level == 0 || bi.quality == 0) continue;
|
||||
if (ai.equip_recently_tried(bi.entry, now_ms)) continue;
|
||||
// The raid swap pieces (resistance gear, the Onyxia Scale Cloak) stay on while they are wanted: this rule put
|
||||
// the own cloak back on in Blackwing Lair within seconds of the swap (dev realm 2026-11-13).
|
||||
EquippedItem const& cur_eq = eq_raw.inventory.equipped[bi.equip_slot];
|
||||
if (ai.gear_slot_held(bi.equip_slot, s.map_id(), cur_eq.entry)) continue;
|
||||
if (ai.worn_is_kept(bi.equip_slot, cur_eq.entry)) continue;
|
||||
EquippedItem const& cur_eq = eq_raw.inventory.equipped[dst];
|
||||
if (ai.gear_slot_held(dst, s.map_id(), cur_eq.entry)) continue;
|
||||
if (ai.worn_is_kept(dst, cur_eq.entry)) continue;
|
||||
uint32 const cur_entry = ::Playerbot::V2::Gear::IsFishingPole(cur_eq.entry) ? 0u : cur_eq.entry; // no weapon
|
||||
if (::Playerbot::V2::Gear::RaidGearActive(eq_raw.identity.level))
|
||||
{
|
||||
auto const& eq = eq_raw.inventory.equipped;
|
||||
if (!::Playerbot::V2::Gear::RaidEquipUpgrade(eq_raw.identity.cls, uint16(eq_raw.identity.spec), eq_raw.identity.level,
|
||||
bi.equip_slot, bi.entry, cur_eq.entry, eq[EQUIPMENT_SLOT_MAINHAND].entry,
|
||||
dst, bi.entry, cur_entry, eq[EQUIPMENT_SLOT_MAINHAND].entry,
|
||||
eq[EQUIPMENT_SLOT_OFFHAND].entry,
|
||||
eq_raw.owner_guid.IsEmpty(), eq_raw.guid.GetCounter()))
|
||||
continue;
|
||||
}
|
||||
else if (cur_eq.entry != 0 &&
|
||||
else if (cur_entry != 0 &&
|
||||
EquipFitScore(bi.stats, bi.item_level, eq_raw.stat_weights) <=
|
||||
EquipFitScore(cur_eq.stats, cur_eq.item_level, eq_raw.stat_weights))
|
||||
continue;
|
||||
emit.equip_item(bi.bag, bi.slot, bi.equip_slot);
|
||||
emit.equip_item(bi.bag, bi.slot, dst);
|
||||
ai.note_equip_try(bi.entry, now_ms);
|
||||
ai.set_last_rule_fired("idle:dungeon_auto_equip");
|
||||
return true;
|
||||
|
||||
@@ -1241,7 +1241,7 @@ bool RangedMeleedDefense(BotAI& ai, BotSnapshotView const& s, GroupSnapshotView
|
||||
return true;
|
||||
}
|
||||
|
||||
// Raid overheal cancel - the "stopcast" technique (Karrz's ike3 healers stop a
|
||||
// Group overheal cancel - the "stopcast" technique (Karrz's ike3 healers stop a
|
||||
// heal whose target got topped up meanwhile). Direct single-target heals
|
||||
// only: no channel, no Chain Heal, no party / area heal (Prayer of Healing's
|
||||
// cast target is the priest itself). Mana is spent when a cast completes, so
|
||||
@@ -1256,12 +1256,13 @@ bool RangedMeleedDefense(BotAI& ai, BotSnapshotView const& s, GroupSnapshotView
|
||||
// freed at once). After a cancel the rotation leaves that patient alone for
|
||||
// ClassicHeal::kCancelLockoutMs (an emergency excepted) and the tank pre-heal
|
||||
// waits as long, so a cancelled cast is not restarted at once; at most one
|
||||
// cancel per 1.5 s.
|
||||
// cancel per 1.5 s. Every group, not only raids: a 5-man or a player's party gets the same stop (dumpins, leenergetic, Discord
|
||||
// 2026-11-17: a paladin's 2.5 s Holy Light started on a hurt player landed after the player was topped up and "healed You 1").
|
||||
bool CancelOverheal(BotAI& ai, BotSnapshotView const& s, GroupSnapshotView const& g, BotIntentEmitter& emit)
|
||||
{
|
||||
constexpr int64 kWindowMinMs = 200;
|
||||
constexpr int64 kWindowMaxMs = 600;
|
||||
if (!s.is_casting() || !s.is_in_raid() || s.in_battleground() || !g.exists()) return false;
|
||||
if (!s.is_casting() || s.in_battleground() || !g.exists()) return false;
|
||||
const int64 rem = s.current_cast_remaining().count();
|
||||
if (rem < kWindowMinMs) return false; // lands before a stop would reach the server
|
||||
const ObjectGuid tgt = s.current_cast_target();
|
||||
@@ -1276,11 +1277,23 @@ bool CancelOverheal(BotAI& ai, BotSnapshotView const& s, GroupSnapshotView const
|
||||
Combat::ClassicHeal::Patient const p = Combat::ClassicHeal::PatientFor(s, g, tgt);
|
||||
if (!p.valid || p.max_hp <= 0 || p.hp <= 0) return false;
|
||||
const int64 deficit = p.max_hp - p.hp;
|
||||
// The raid is about to be stunned (RaidOrder::keep_heals): a heal on a tank lands, full or not. naxx_maexxna r24h: three heals on her
|
||||
// tank were stopped at 100% 3 s before Web Spray, the tank stood at 73% when the stun began and died to her swings 7 s into it.
|
||||
if (p.tank && s.raw().raid_order.active && s.raw().raid_order.keep_heals)
|
||||
return false;
|
||||
const bool final_window = rem <= kWindowMaxMs;
|
||||
// A tank is never stopped early: it is full for a moment between a boss's hits, and a heal let run lands into the next one
|
||||
// (naxx_patchwerk 1115h: four "already full" cancels on one tank with 0.7-2.1 s left, each followed by a lockout on that tank,
|
||||
// while Hateful Strike and his swings took it from 100% to 79% and lower again within the second).
|
||||
const bool cancel = final_window ? (p.actual_pct >= 95 || float(deficit) < amount * 0.30f)
|
||||
// A patient taking spikes (the largest recent hit, GroupMemberSummary::damage_spike) is not stopped while the next such hit would leave
|
||||
// the heal useful: Hateful Strike lands 9-11.7k on a 10.9k soaker, and 57 stopcasts on soakers at 95%+ came just before the next
|
||||
// strike (naxx_patchwerk 1116 rerun).
|
||||
int64 spike = 0;
|
||||
if (auto const* mems = g.members())
|
||||
for (GroupMemberSummary const& m : *mems)
|
||||
if (m.guid == tgt) { spike = m.damage_spike; break; }
|
||||
const bool spiking = spike > 0 && float(deficit + spike) >= amount * 0.30f;
|
||||
const bool cancel = final_window ? (!spiking && (p.actual_pct >= 95 || float(deficit) < amount * 0.30f))
|
||||
: (!p.tank && deficit <= 0 && p.incoming <= 0);
|
||||
if (!cancel) return false;
|
||||
const uint32 now = s.published_at_ms();
|
||||
@@ -2255,6 +2268,21 @@ bool MeleeSpreadSpot(BotSnapshotView const& s, GroupSnapshotView const& g, Nearb
|
||||
}
|
||||
// Inside melee reach (reach + ours + 4/3, never under 5): outer rim, jittered 0.5-2 y inward.
|
||||
const float outer = std::clamp(v.combat_reach + 2.5f, 3.0f, 6.0f);
|
||||
// In a raid the arc's back is the side away from the victim's own target (its tank), not its facing: a boss turns to every spell
|
||||
// target (Patchwerk to each Hateful Strike soaker, every 1.2 s; Gluth to each chow he eats), and the arc turned with him, so every melee
|
||||
// bot was more than 2 y off its slot again at each 3 s check (naxx_patchwerk 1116 run 5/6: rogues and the retribution paladin moving
|
||||
// 74-96 s of 246 within his reach, all of it point moves; run 6 on Gluth: 79-90 s of 300). The tank stands still, so the slots do too.
|
||||
float front = v.o;
|
||||
if (s.is_in_raid() && !v.victim.IsEmpty() && v.victim != s.guid())
|
||||
if (auto const* mems = g.members())
|
||||
for (auto const& m : *mems)
|
||||
if (m.guid == v.victim && m.is_alive && m.map_id == s.map_id())
|
||||
{
|
||||
float const dx = m.x - v.x, dy = m.y - v.y;
|
||||
if (dx * dx + dy * dy > 0.25f)
|
||||
front = std::atan2(dy, dx);
|
||||
break;
|
||||
}
|
||||
for (uint32 i = 0; i < 4; ++i)
|
||||
{
|
||||
const uint32 rank = (k + i * 3) % n; // a blocked slot tries the one three along
|
||||
@@ -2262,7 +2290,7 @@ bool MeleeSpreadSpot(BotSnapshotView const& s, GroupSnapshotView const& g, Nearb
|
||||
// Raid (playtest 2026-10-12): melee stack on the boss's back, nearly on top of each other, unless a boss rule spreads them. A 70 degree
|
||||
// arc instead of the 160 degree one of a dungeon pack.
|
||||
if (s.is_in_raid())
|
||||
MeleeArcSpot(s.guid().GetCounter(), rank, n, v.x, v.y, v.o, 1.0f, outer, x, y, 1.2217f);
|
||||
MeleeArcSpot(s.guid().GetCounter(), rank, n, v.x, v.y, front, 1.0f, outer, x, y, 1.2217f);
|
||||
else
|
||||
MeleeArcSpot(s.guid().GetCounter(), rank, n, v.x, v.y, v.o, 1.0f, outer, x, y);
|
||||
if (RaidStandPointBlocked(s, x, y, v.z)) continue;
|
||||
@@ -2396,8 +2424,10 @@ static bool GroupFightPick(BotAI& ai, BotSnapshotView const& s, GroupSnapshotVie
|
||||
return false;
|
||||
why = cands[pick].on_non_tank ? "loose on a member" : cands[pick].mob.leader_ordered ? "leader's order"
|
||||
: cands[pick].mob.leader_target ? "leader's target" : "on a member";
|
||||
// Keep a mob it already holds unless one is loose on a member; switch at most every 2 s.
|
||||
if (cur_ok && (!cands[pick].on_non_tank || cands[cur_idx].on_non_tank))
|
||||
// Keep a mob it already holds unless one is loose on a member, or the leader's own target is loose and the held one is not
|
||||
// it; switch at most every 2 s.
|
||||
bool const to_leader_target = cur_ok && cands[pick].on_non_tank && cands[pick].mob.leader_target && !cands[cur_idx].mob.leader_target;
|
||||
if (cur_ok && !to_leader_target && (!cands[pick].on_non_tank || cands[cur_idx].on_non_tank))
|
||||
return false;
|
||||
}
|
||||
else
|
||||
@@ -2411,9 +2441,11 @@ static bool GroupFightPick(BotAI& ai, BotSnapshotView const& s, GroupSnapshotVie
|
||||
if (pick == GroupFight::kNone)
|
||||
return false;
|
||||
GroupFight::Candidate const& m = cands[pick].mob;
|
||||
why = m.leader_ordered ? "leader's order" : m.priority_add ? "priority add" : m.tank_target ? "tank's target"
|
||||
: m.leader_target ? "leader's target" : m.on_me ? "on me" : "on a member";
|
||||
if (cur_ok && !m.leader_ordered)
|
||||
why = m.leader_ordered ? "leader's order" : m.priority_add ? "priority add" : m.leader_target ? "leader's target"
|
||||
: m.tank_target ? "tank's target" : m.on_me ? "on me" : "on a member";
|
||||
// A live victim of the fight is kept unless the leader names another or turns to another mob himself: his target is the
|
||||
// group's kill target (Saul, #bot-feedback 2026-11-17: the bots fought every mob on a member but the player's).
|
||||
if (cur_ok && !m.leader_ordered && !(m.leader_target && !cands[cur_idx].mob.leader_target))
|
||||
return false;
|
||||
}
|
||||
if (units[pick]->guid == cur)
|
||||
|
||||
@@ -608,6 +608,15 @@ void DispatchInGroup(BotAI& ai,
|
||||
DungeonHonorCross(snapshot, ai, emit, snapshot.published_at_ms()))
|
||||
return;
|
||||
|
||||
// A raid pre-pull spot (Thaddius' platforms, Gothik's sides, Patchwerk's posts) is the raid brain's: idle:raid_prepull walks the
|
||||
// bot there and holds it until the pull, and the brain drops the order once the boss fights. The cohesion moves below (rejoin the
|
||||
// tank past 40 y, converge, formation, follow) would walk it off its spot each tick and the hold back again. naxx_thaddius r25:
|
||||
// once the attack was ordered the whole Feugen side walked to 40 y of the main tank on Stalagg's platform, stood on the ramp
|
||||
// between them (ingroup:dungeon_rejoin_tank / idle:raid_prepull in turn), and the run timed out unpulled.
|
||||
if (auto const& ro = snapshot.raw().raid_order; ro.active && ro.prepull && (ro.move || ro.cast_spell) && snapshot.is_alive() &&
|
||||
!snapshot.in_combat())
|
||||
return;
|
||||
|
||||
// Anchor selection:
|
||||
// * Healer (always): stick to the tank. Being out of range to heal
|
||||
// is the most common cause of group wipes from bot positioning.
|
||||
|
||||
@@ -111,7 +111,7 @@ inline bool TankNotSecured(BotSnapshotView const& s, NearbyUnit const& u)
|
||||
return u.my_threat >= u.tank_threat * ratio;
|
||||
}
|
||||
|
||||
enum class AoeHazardKind : uint8 { None, CrowdControlled, Unpulled, NotTanked, SchoolAvoided };
|
||||
enum class AoeHazardKind : uint8 { None, CrowdControlled, Unpulled, NotTanked, SchoolAvoided, OtherTanksBoss };
|
||||
|
||||
inline char const* AoeHazardName(AoeHazardKind k)
|
||||
{
|
||||
@@ -121,6 +121,7 @@ inline char const* AoeHazardName(AoeHazardKind k)
|
||||
case AoeHazardKind::Unpulled: return "unpulled";
|
||||
case AoeHazardKind::NotTanked: return "not_tanked";
|
||||
case AoeHazardKind::SchoolAvoided: return "school_avoided";
|
||||
case AoeHazardKind::OtherTanksBoss: return "other_tanks_boss";
|
||||
default: return "none";
|
||||
}
|
||||
}
|
||||
@@ -131,11 +132,24 @@ struct AoeHazard
|
||||
AoeHazardKind kind = AoeHazardKind::None;
|
||||
};
|
||||
|
||||
// A raid boss another tank holds, which this tank is not fighting itself: a tank's AoE that reaches it puts the tank's threat on the boss
|
||||
// (Thunder Clap, Demoralizing Shout and Cleave carry extra threat in Defensive Stance), and a boss turns to whoever passes 110% of its
|
||||
// tank's threat. naxx_grobbulus r24: the off tanks held the Fallout Slimes beside him, he went from his main tank to an off tank at 57 s
|
||||
// and again at 87 s, and the Slime Spray of the new facing put 7 slimes on the tanks at once; the slimes then killed the raid. A tank
|
||||
// whose own target is the boss (Patchwerk's soakers) hits him anyway, so its AoE is no hazard there.
|
||||
inline bool OtherTanksBoss(BotSnapshotView const& s, NearbyUnit const& u)
|
||||
{
|
||||
return s.is_in_raid() && (u.is_dungeon_boss || u.is_boss_rank) && u.unit_in_combat && !u.victim.IsEmpty() && u.victim != s.guid() &&
|
||||
u.guid != s.victim() && ThreatVictim(u.victim_kind) == ThreatVictim::Tank;
|
||||
}
|
||||
|
||||
// First enemy within `radius` of (cx, cy, cz) an AoE must not hit.
|
||||
// * crowd-controlled (any caster), when the AoE deals damage;
|
||||
// * in a tanked group: a mob nobody has engaged yet (the AoE would pull it);
|
||||
// * for a non-tank in a tanked group: a mob a tank is holding but has not
|
||||
// secured yet (TankNotSecured).
|
||||
// * for a tank in a raid: a boss another tank holds that this tank is not
|
||||
// fighting itself (OtherTanksBoss).
|
||||
// * school_spell != 0: a mob whose raid school hint (PveOrder::SchoolHint)
|
||||
// reflects that spell's school (an Anubisath Sentinel), in or out of a group.
|
||||
// A mob merely immune to it or resisting it is no hazard: the area spell
|
||||
@@ -184,6 +198,8 @@ inline AoeHazard FindAoeHazard(BotSnapshotView const& s, float cx, float cy, flo
|
||||
// Raid only: a party's AoE is not held for the tank's lead (the Unpulled and CC guards above still apply).
|
||||
if (tanked && s.is_in_raid() && !me_tank && ThreatVictim(u.victim_kind) == ThreatVictim::Tank && TankNotSecured(s, u))
|
||||
{ hit = { &u, AoeHazardKind::NotTanked }; return false; }
|
||||
if (tanked && me_tank && OtherTanksBoss(s, u))
|
||||
{ hit = { &u, AoeHazardKind::OtherTanksBoss }; return false; }
|
||||
return false;
|
||||
};
|
||||
for (NearbyUnit const& u : s.attackers())
|
||||
@@ -218,7 +234,8 @@ inline bool AoeSafeAroundSelf(BotSnapshotView const& s, float radius, bool damag
|
||||
// Melee AoE (warrior Cleave, Whirlwind) in a raid group: only two of
|
||||
// FindAoeHazard's vetoes apply - a crowd-controlled mob within `radius` (the
|
||||
// swing breaks the CC) and, for a non-tank, a tank-held mob the tank has not
|
||||
// secured yet against this bot. A mob nobody pulled is not one: a melee AoE
|
||||
// secured yet against this bot, and for a tank a boss another tank holds that
|
||||
// this tank is not fighting (OtherTanksBoss). A mob nobody pulled is not one: a melee AoE
|
||||
// reaches a few yards and the bot is already in the pack. Outside raid
|
||||
// groups (and in battlegrounds) the rotation's own conditions apply unchanged.
|
||||
inline bool MeleeAoeSafe(BotSnapshotView const& s, bool raid_group, float radius, bool caster_is_tank, char const* what)
|
||||
@@ -239,6 +256,7 @@ inline bool MeleeAoeSafe(BotSnapshotView const& s, bool raid_group, float radius
|
||||
if (tanked && !me_tank && u.has_threat_list && u.unit_in_combat
|
||||
&& ThreatVictim(u.victim_kind) == ThreatVictim::Tank && TankNotSecured(s, u))
|
||||
{ hit = &u; kind = AoeHazardKind::NotTanked; return true; }
|
||||
if (tanked && me_tank && OtherTanksBoss(s, u)) { hit = &u; kind = AoeHazardKind::OtherTanksBoss; return true; }
|
||||
return false;
|
||||
};
|
||||
bool found = false;
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <algorithm>
|
||||
#include <climits>
|
||||
#include <cmath>
|
||||
#include <cstdint>
|
||||
#include <map>
|
||||
@@ -77,4 +78,30 @@ inline int PickGrindSpot(std::vector<GrindSpot> const& spots, std::uint32_t map,
|
||||
return ok.empty() ? -1 : ok[seed % ok.size()];
|
||||
}
|
||||
|
||||
// Mob supply (Playerbot.World.MobsPerBot): the ordinary hostile mobs in the camps of a level (within kGrindLevelSpread of the camp's
|
||||
// average) within `radius` of (x, y). The world bots around a player all level on these, so they set how many bots a place can feed.
|
||||
inline std::uint32_t MobSupplyNear(std::vector<GrindSpot> const& spots, std::uint32_t map, float x, float y, std::uint32_t level, float radius)
|
||||
{
|
||||
std::uint32_t mobs = 0;
|
||||
for (GrindSpot const& g : spots)
|
||||
{
|
||||
if (g.map != map) continue;
|
||||
std::uint32_t const gap = g.level > level ? g.level - level : level - g.level;
|
||||
if (gap > kGrindLevelSpread) continue;
|
||||
if (std::hypot(g.x - x, g.y - y) > radius) continue;
|
||||
mobs += g.mobs;
|
||||
}
|
||||
return mobs;
|
||||
}
|
||||
|
||||
// How many world bots `mobs` feed: one per `mobs_per_bot`, never fewer than `floor` (a place with few camps still looks lived in;
|
||||
// those bots quest, travel and visit towns too). mobs_per_bot 0 = no supply cap. Eastern Plaguelands 2026-11-16 (Karrz): the zone
|
||||
// number of bots around one player left nothing alive. A bot kills a mob of its level about every 40 s with rest, so on a 5 minute
|
||||
// respawn about 7 spawns feed one bot; the default 10 leaves the rest for the players.
|
||||
inline std::uint32_t SupplyBotCap(std::uint32_t mobs, std::uint32_t mobs_per_bot, std::uint32_t floor)
|
||||
{
|
||||
if (!mobs_per_bot) return UINT32_MAX;
|
||||
return std::max(floor, mobs / mobs_per_bot);
|
||||
}
|
||||
|
||||
} // namespace Playerbot::V2::World
|
||||
|
||||
@@ -609,6 +609,11 @@ bool FindGrindSpotNear(bool alliance, uint32 map, float x, float y, uint32 level
|
||||
return true;
|
||||
}
|
||||
|
||||
uint32 GrindMobsNear(bool alliance, uint32 map, float x, float y, uint32 level, float radius)
|
||||
{
|
||||
return MobSupplyNear(GrindSpotsFor(alliance), map, x, y, level, radius);
|
||||
}
|
||||
|
||||
DestinationPick SpreadWithinZone(DestinationPick d, uint8 level, bool alliance, uint64 seed, bool allow_grind)
|
||||
{
|
||||
Map* const map = sMapMgr->FindMap(d.map_id, 0);
|
||||
|
||||
@@ -75,4 +75,7 @@ DestinationPick SpreadWithinZone(DestinationPick d, uint8 level, bool alliance,
|
||||
// over the spots. False when none is in reach.
|
||||
bool FindGrindSpotNear(bool alliance, uint32 map, float x, float y, uint32 level, uint64 seed, float max_yards, float& ox, float& oy, float& oz);
|
||||
|
||||
// The ordinary hostile mobs of `level`'s camps on `map` within `radius` of (x, y), for a bot of that side (GrindSpot.h MobSupplyNear).
|
||||
uint32 GrindMobsNear(bool alliance, uint32 map, float x, float y, uint32 level, float radius);
|
||||
|
||||
} // namespace Playerbot::V2::World
|
||||
|
||||
@@ -362,6 +362,9 @@ inline float RankHeal(SpellInfo const* si, uint32 level);
|
||||
// Healing-taken multiplier of a group member from its debuffs (Gehennas' Curse, Mortal Strike, Wound Poison, Veil of Shadow ...),
|
||||
// read from the spells' MOD_HEALING_PCT effects, floored at 0.1. 1.0 = no reduction. Under -75% every heal lands a quarter: the
|
||||
// in-flight cover and the rank choice must count that, or the healers see a tank as "covered" and leave it to die.
|
||||
// A stacking debuff counts once per stack, as the core applies it (the aura amount is the base points times the stacks): Gluth's
|
||||
// Mortal Wound is -10% a stack, -50% at the five stacks of a tank swap, and counted once it read -10%, so the heals in flight looked
|
||||
// almost twice what landed (naxx_gluth 1115 threat run: 2-4 of 12 healers casting while his tank sat at 57-76%, every tank dead).
|
||||
inline float HealTakenFactor(GroupSnapshotView const& g, ObjectGuid guid)
|
||||
{
|
||||
auto const* members = g.members();
|
||||
@@ -377,7 +380,7 @@ inline float HealTakenFactor(GroupSnapshotView const& g, ObjectGuid guid)
|
||||
if (!si) continue;
|
||||
for (SpellEffectInfo const& eff : si->GetEffects())
|
||||
if (eff.IsAura(SPELL_AURA_MOD_HEALING_PCT) && eff.BasePoints < 0.0f)
|
||||
f *= std::max(0.0f, 1.0f + eff.BasePoints / 100.0f);
|
||||
f *= std::max(0.0f, 1.0f + eff.BasePoints * float(std::max<uint8>(a.stacks, 1)) / 100.0f);
|
||||
}
|
||||
return std::max(f, 0.1f);
|
||||
}
|
||||
@@ -451,7 +454,8 @@ void ApplyInFlight(BotSnapshotView const& s, GroupSnapshotView const& g, Patient
|
||||
// at once left a tank at 79% to 6292 in flight for a deficit of 4286, three of those heals were then cancelled, and the
|
||||
// tank went on dropping).
|
||||
int32 const horizon = std::max<int32>(int32(last_land - now), int32(kSkipHorizonMs));
|
||||
p.until_land = DamageUntilLand(m.damage_taken_per_s, horizon);
|
||||
// At least the largest recent hit: a boss's spike comes whole, not spread over the rate (DamageSpike).
|
||||
p.until_land = std::max<int64>(DamageUntilLand(m.damage_taken_per_s, horizon), m.damage_spike);
|
||||
break;
|
||||
}
|
||||
// From the raw health each time (as MakePatient), so a patient handed in
|
||||
@@ -773,11 +777,13 @@ inline Patient PickPatient(ApPredicateContext const& ctx) { return PickPatient(c
|
||||
// stands) and everyone PickPatient would heal within reach. The quiet clock
|
||||
// restarts whenever the check was not run for kRaidHealerNeedGapMs (the
|
||||
// rotation was busy healing, casting or out of combat), so a healer never
|
||||
// nukes straight out of a heal. Dungeons, parties and solo: always true (the
|
||||
// rotations' own gates stand). Wands cost no mana and are not gated here.
|
||||
constexpr int32 kRaidHealerDpsManaPct = 90;
|
||||
constexpr uint32 kRaidHealerDpsQuietMs = 10000;
|
||||
constexpr uint32 kRaidHealerNeedGapMs = 2000;
|
||||
// nukes straight out of a heal. Parties outside instances and solo: always
|
||||
// true (the rotations' own gates stand). Wands cost no mana and are not gated
|
||||
// here.
|
||||
// The quiet time and mana floor come from HealerDamageGateFor (Bot/
|
||||
// ClassicHealScope.h): a dungeon with Playerbot.Behavior.HealerAssist on uses
|
||||
// 3 s and 60 %, a raid (or the switch off) 10 s and 90 %.
|
||||
constexpr uint32 kRaidHealerNeedGapMs = 2000;
|
||||
|
||||
inline bool RaidHealerMayDamage(BotSnapshotView const& s, GroupSnapshotView const& g)
|
||||
{
|
||||
@@ -802,7 +808,15 @@ inline bool RaidHealerMayDamage(BotSnapshotView const& s, GroupSnapshotView cons
|
||||
t.need_eval_ms = now;
|
||||
return now - t.need_ms;
|
||||
});
|
||||
return since_need >= kRaidHealerDpsQuietMs && ManaPct(s) >= kRaidHealerDpsManaPct;
|
||||
HealerDamageGate const gate = HealerDamageGateFor(s.raid_rules(), Services::Config().behavior_healer_assist());
|
||||
return since_need >= gate.quiet_ms && ManaPct(s) >= gate.mana_pct;
|
||||
}
|
||||
|
||||
// A healer's own crowd control (HealerMayCrowdControl, Bot/ClassicHealScope.h): in combat, Playerbot.Behavior.HealerAssist on, no
|
||||
// raid rules, its mana and everyone it heals (lowest_hp_pct: the rotation's lowest friend or self) high enough.
|
||||
inline bool HealerMayCrowdControl(BotSnapshotView const& s, int32 lowest_hp_pct)
|
||||
{
|
||||
return s.in_combat() && HealerMayCrowdControl(Services::Config().behavior_healer_assist(), s.raid_rules(), ManaPct(s), lowest_hp_pct);
|
||||
}
|
||||
|
||||
// Base heal of one rank at the caster's level (no +healing gear: the pick
|
||||
@@ -1072,7 +1086,7 @@ inline HealPlan PlanHeal(BotSnapshotView const& s, GroupSnapshotView const& g, u
|
||||
// Overheal-cancel lockout: not straight back onto the patient a heal was
|
||||
// just cancelled on (State_InCombat CancelOverheal) - that is the
|
||||
// cast / cancel loop. An emergency there is healed regardless.
|
||||
if (raid && p.actual_pct >= kEmergencyPct && p.hp_pct >= kEmergencyPct && InCancelLockout(s, p.guid))
|
||||
if (p.actual_pct >= kEmergencyPct && p.hp_pct >= kEmergencyPct && InCancelLockout(s, p.guid))
|
||||
{
|
||||
plan.skip = true;
|
||||
return plan;
|
||||
@@ -1100,6 +1114,16 @@ inline HealPlan PlanHeal(BotSnapshotView const& s, GroupSnapshotView const& g, u
|
||||
plan.skip = true; // tiny deficit: even the smallest sensible rank mostly overheals
|
||||
return plan;
|
||||
}
|
||||
// The swings forecast on the patient count towards the size of a heal, not towards whether one is needed: a patient who is
|
||||
// missing next to no health right now is not healed yet (tank pressure and emergencies were answered above). Without this a
|
||||
// paladin's Holy Light went out on a player down 1 health to a poison tick and healed 1 (dumpins, leenergetic, Discord
|
||||
// 2026-11-17: "they heal you but only does 1 heal", "heals with no effect, on self too").
|
||||
float const missing_now = float(std::max<int64>(p.max_hp - p.hp - p.inflight, 0)) / HealTakenFactor(g, p.guid);
|
||||
if (missing_now < top_heal / 3.0f * 0.25f)
|
||||
{
|
||||
plan.skip = true;
|
||||
return plan;
|
||||
}
|
||||
float const share = raid ? RaidDeficitShare(save_mana ? std::min(mana, kSaveManaPct - 1) : mana)
|
||||
: (mana < kSaveManaPct || save_mana ? 0.75f : 0.9f);
|
||||
return PlanRank(s, spell, deficit * share, raid);
|
||||
|
||||
@@ -142,7 +142,7 @@ namespace Playerbot::Combat {
|
||||
// PickOffTargetCC only ever CCs units attacking the CASTER, which suits a
|
||||
// solo caster but never fires in a dungeon: the pack is on the tank. In a
|
||||
// party or raid this picks an add the GROUP is fighting instead, ike3-style:
|
||||
// * only on a real pull: 3+ live enemies engaged with the group;
|
||||
// * only on a real pull: 3+ live enemies engaged with the group in an instance, 2+ in the open world;
|
||||
// * never the bot's own target, the skull, the tank's target or a boss;
|
||||
// * not a unit already CC'd or one another member is casting a CC on;
|
||||
// * one CC per caster (vanilla Polymorph / Shackle / Banish / Hibernate
|
||||
@@ -175,7 +175,10 @@ namespace Playerbot::Combat {
|
||||
return ObjectGuid::Empty; // our CC is still holding one (the same check the marked CC makes)
|
||||
for (auto const& u : enemies)
|
||||
if (engaged_with_group(u)) ++engaged;
|
||||
if (engaged < 3)
|
||||
// Open world: a second mob on the group is worth holding (Karrz 2026-11-16: "if they're able to do it automatically by
|
||||
// themselves, that makes sense"); a player's companions met two at a time and fought both while the caster's sheep sat unused,
|
||||
// as the solo caster already holds the second of two (PickOffTargetCC). An instance pack is a real pull from three.
|
||||
if (engaged < (bot.is_in_instance() ? 3u : 2u))
|
||||
return ObjectGuid::Empty;
|
||||
|
||||
ObjectGuid tank_target;
|
||||
@@ -186,7 +189,7 @@ namespace Playerbot::Combat {
|
||||
for (auto const& m : *members)
|
||||
{
|
||||
if (!m.is_casting || m.casting_target != g || m.guid == bot.guid()) continue;
|
||||
for (uint32 const cc : { 118u, 9484u, 710u, 2637u, 6770u }) // Polymorph / Shackle / Banish / Hibernate / Sap
|
||||
for (uint32 const cc : { 118u, 9484u, 710u, 2637u, 6770u, 19386u }) // Polymorph / Shackle / Banish / Hibernate / Sap / Wyvern Sting
|
||||
if (SpellFamily::Same(m.casting_spell, cc))
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -658,11 +658,14 @@ void DoDemoRoar(ApPredicateContext const&, BotIntentEmitter& e) { e.cast(DEMORAL
|
||||
bool ShouldSwipe(ApPredicateContext const& ctx)
|
||||
{
|
||||
return HasLiveTarget(ctx) && InBear(ctx) && Rage(ctx) >= 20 && ctx.bot.enemies_within(6.0f) >= 2
|
||||
&& Ready(ctx, SWIPE)
|
||||
&& Ready(ctx, SWIPE) && ctx.bot.victim_in_spell_range(SWIPE)
|
||||
&& AoeSafeAroundSelf(ctx.bot, 8.0f, /*damaging*/ true, /*tank*/ true, "Swipe", SWIPE)
|
||||
&& !TankThreat::AoeRipsOtherTank(ctx.bot, 8.0f, "Swipe");
|
||||
}
|
||||
void DoSwipe(ApPredicateContext const&, BotIntentEmitter& e) { e.cast(SWIPE); }
|
||||
// On the victim: Swipe takes an enemy target (its cone is in front of the bear). Sent with none, the casts failed BAD_TARGETS
|
||||
// (naxx_gluth 1118 r4 and r6: a BAD_TARGETS on 779 every 10-14 s in every run, no Swipe damage in any pull_spells, the bear's area
|
||||
// threat on its chows nothing at all).
|
||||
void DoSwipe(ApPredicateContext const& ctx, BotIntentEmitter& e) { e.cast(SWIPE, ctx.bot.victim()); }
|
||||
|
||||
// Faerie Fire (Feral) - free, 30 yd, threat on its own - on the pack mob that
|
||||
// needs threat most once the victim has its lead (TankThreat::SpreadTarget:
|
||||
@@ -929,6 +932,13 @@ bool ShouldHealerLeaveForm(ApPredicateContext const& ctx)
|
||||
}
|
||||
void DoHealerLeaveForm(ApPredicateContext const& ctx, BotIntentEmitter& e) { DoCancelWrongForm(ctx, e, WantedForm::None); }
|
||||
|
||||
// Healer: Hibernate on an add while the group is healthy and mana allows (Playerbot.Behavior.HealerAssist,
|
||||
// ClassicHeal::HealerMayCrowdControl). In an instance the group plan picks the mob (PickGroupCC defers to it).
|
||||
bool ShouldHealerCrowdControl(ApPredicateContext const& ctx)
|
||||
{
|
||||
return ClassicHeal::HealerMayCrowdControl(ctx.bot, LowestFriendOrSelf(ctx).hp_pct) && ShouldCrowdControl(ctx);
|
||||
}
|
||||
|
||||
ApRule const kHealerRules[] = {
|
||||
{ ShouldHealerLeaveForm, DoHealerLeaveForm, "classic_resto:leave_form" },
|
||||
{ ShouldNaturesSwiftnessHeal, DoSwiftHealingTouch, "classic_resto:natures_swiftness_touch" },
|
||||
@@ -942,6 +952,7 @@ ApRule const kHealerRules[] = {
|
||||
{ ShouldDispel, DoDispel, "classic_resto:dispel" },
|
||||
{ ShouldRegrowthTopUp, DoRegrowthTopUp, "classic_resto:regrowth_top_up" },
|
||||
{ ShouldRejuvenation, DoRejuvenation, "classic_resto:rejuvenation" },
|
||||
{ ShouldHealerCrowdControl, DoCrowdControl, "classic_resto:hibernate" },
|
||||
{ ShouldHealerSchoolNuke, DoHealerSchoolNuke, "classic_resto:school_nuke" },
|
||||
{ ShouldHealerMoonfire, DoMoonfire, "classic_resto:moonfire" },
|
||||
{ ShouldHealerWrath, DoWrath, "classic_resto:wrath" },
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
#include "../ApRotation.h"
|
||||
#include "Apl_Baseline_Common.h"
|
||||
#include "ApSchoolHint.h"
|
||||
#include "ApCrowdControl.h" // PickGroupCC
|
||||
#include "ApInterrupt.h" // EngagedWithGroup
|
||||
#include "Bot/BotIntentEmitter.h"
|
||||
#include "Bot/BotSnapshotView.h"
|
||||
@@ -435,6 +436,30 @@ bool ShouldPrePullTrap(ApPredicateContext const& ctx)
|
||||
}
|
||||
void DoPrePullTrap(ApPredicateContext const&, BotIntentEmitter& e) { e.cast(FREEZING_TRAP); }
|
||||
|
||||
// Wyvern Sting (Survival talent, 19386 and its ranks): a 12 s sleep shot. In combat it holds an add the group fights, the way the
|
||||
// mage's Polymorph does (PickGroupCC: never the kill target, the tank's target, a marked mob or a boss; in an instance from a pull of
|
||||
// three, in the open world from two). The hunter had no crowd control once the fight began (Karrz 2026-11-16: bots of every class
|
||||
// crowd-control by themselves). The owner's "no sleep" / "off cc" orders drop it (CcDeny::Sleep).
|
||||
constexpr uint32 WYVERN_STING = 19386;
|
||||
bool ShouldWyvernSting(ApPredicateContext const& ctx)
|
||||
{
|
||||
if (!HasLiveTarget(ctx) || !ctx.bot.in_combat() || !Ready(ctx, WYVERN_STING))
|
||||
return false;
|
||||
ObjectGuid const pick = PickGroupCC(ctx, WYVERN_STING);
|
||||
if (pick.IsEmpty())
|
||||
return false;
|
||||
// A shot: not inside the 8 yd dead zone, where the cast is refused.
|
||||
auto const& me = ctx.bot.raw().position;
|
||||
for (NearbyUnit const& u : ctx.bot.raw().combat.nearby_enemies)
|
||||
if (u.guid == pick)
|
||||
{
|
||||
float const dx = u.x - me.x, dy = u.y - me.y, dz = u.z - me.z;
|
||||
return dx * dx + dy * dy + dz * dz >= 8.f * 8.f;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
void DoWyvernSting(ApPredicateContext const& ctx, BotIntentEmitter& e) { e.cast(WYVERN_STING, PickGroupCC(ctx, WYVERN_STING)); }
|
||||
|
||||
// Tranquilizing Shot (level 60 book; only once learned): an elite / boss
|
||||
// engaged with the group carrying an aura the shot removes (Enrage / vanilla
|
||||
// Frenzy: Magmadar, Death Talon Seether, Chromaggus, Gluth -
|
||||
@@ -511,6 +536,7 @@ ApRule const kRules[] = {
|
||||
{ ShouldAspect, DoAspect, "classic_hunter:aspect" },
|
||||
{ ShouldTrueshotAura, DoTrueshotAura, "classic_hunter:trueshot_aura" },
|
||||
{ ShouldPrePullTrap, DoPrePullTrap, "classic_hunter:freezing_trap" },
|
||||
{ ShouldWyvernSting, DoWyvernSting, "classic_hunter:wyvern_sting" },
|
||||
{ ShouldBestialWrath, DoBestialWrath, "classic_hunter:bestial_wrath" },
|
||||
{ ShouldRapidFire, DoRapidFire, "classic_hunter:rapid_fire" },
|
||||
{ ShouldReadiness, DoReadiness, "classic_hunter:readiness" },
|
||||
|
||||
@@ -57,6 +57,7 @@ constexpr uint32 SEAL_OF_WISDOM = 20166;
|
||||
constexpr uint32 SEAL_OF_CRUSADER = 21082;
|
||||
constexpr uint32 JUDGEMENT = 20271;
|
||||
constexpr uint32 HAMMER_OF_WRATH = 24275;
|
||||
constexpr uint32 EXORCISM = 879; // undead and demons only, 30 y, 15 s cooldown
|
||||
constexpr uint32 HOLY_STRIKE = 678; // Forever's Retribution strike (rank 1; the cast resolves the highest rank): weapon damage plus Holy
|
||||
constexpr uint32 DIVINE_FAVOR = 20216; // Holy talent
|
||||
|
||||
@@ -407,6 +408,28 @@ bool ShouldHealerJudgement(ApPredicateContext const& ctx)
|
||||
return HealerMayDps(ctx) && ManaPct(ctx) >= 60 && ShouldJudgement(ctx);
|
||||
}
|
||||
|
||||
// Playerbot.Behavior.HealerAssist: a Holy paladin's ranged damage under the same may-dps gates, Exorcism on an undead or demon
|
||||
// victim (the Plaguelands are full of them) and Hammer of Wrath on one at 20 % or less. The seal and judgement above only fire in
|
||||
// melee reach, so without these a healing paladin did no damage from where it stands.
|
||||
bool HealerAssistOn() { return Services::Config().behavior_healer_assist(); }
|
||||
bool VictimUndeadOrDemon(ApPredicateContext const& ctx)
|
||||
{
|
||||
NearbyUnit const* v = ctx.bot.victim_info();
|
||||
return v && (v->creature_type == CREATURE_TYPE_UNDEAD || v->creature_type == CREATURE_TYPE_DEMON);
|
||||
}
|
||||
bool ShouldHealerExorcism(ApPredicateContext const& ctx)
|
||||
{
|
||||
return HealerAssistOn() && HealerMayDps(ctx) && ManaPct(ctx) >= 60 && VictimUndeadOrDemon(ctx)
|
||||
&& Ready(ctx, EXORCISM) && ctx.bot.victim_in_spell_range(EXORCISM);
|
||||
}
|
||||
void DoHealerExorcism(ApPredicateContext const& ctx, BotIntentEmitter& e) { e.cast(EXORCISM, ctx.bot.victim()); }
|
||||
bool ShouldHealerHammerOfWrath(ApPredicateContext const& ctx)
|
||||
{
|
||||
return HealerAssistOn() && HealerMayDps(ctx) && ManaPct(ctx) >= 60 && VictimHpPct(ctx) <= 20
|
||||
&& Ready(ctx, HAMMER_OF_WRATH) && ctx.bot.victim_in_spell_range(HAMMER_OF_WRATH);
|
||||
}
|
||||
void DoHealerHammerOfWrath(ApPredicateContext const& ctx, BotIntentEmitter& e) { e.cast(HAMMER_OF_WRATH, ctx.bot.victim()); }
|
||||
|
||||
ApRule const kHealerRules[] = {
|
||||
{ ShouldDivineShield, DoDivineShield, "classic_pal_heal:divine_shield" },
|
||||
{ ShouldLayOnHands, DoLayOnHands, "classic_pal_heal:lay_on_hands" },
|
||||
@@ -423,6 +446,8 @@ ApRule const kHealerRules[] = {
|
||||
{ ShouldBlessing, DoBlessing, "classic_pal_heal:blessing" },
|
||||
{ ShouldHealerSeal, DoSeal, "classic_pal_heal:seal" },
|
||||
{ ShouldHealerJudgement, DoJudgement, "classic_pal_heal:judgement" },
|
||||
{ ShouldHealerExorcism, DoHealerExorcism, "classic_pal_heal:exorcism" },
|
||||
{ ShouldHealerHammerOfWrath, DoHealerHammerOfWrath, "classic_pal_heal:hammer_of_wrath" },
|
||||
};
|
||||
|
||||
// ======================= Protection =======================
|
||||
@@ -512,10 +537,51 @@ void DoTankSpreadJudgement(ApPredicateContext const& ctx, BotIntentEmitter& e)
|
||||
TankThreat::LogSpread(ctx.bot, "Judgement", *t);
|
||||
}
|
||||
|
||||
// A Retribution or Protection paladin in a group saves a member in trouble (ClassicHeal::HybridMaySaveAlly, Bot/ClassicHealScope.h):
|
||||
// leenergetic, Discord 2026-11-17, "When in a DPS spec, Paladins don't cast heals on allies at all". A healer of the group covers the
|
||||
// patient while it is alive, on the map, within heal range of him and has mana; with one covering, the paladin steps in only at the
|
||||
// last moment. The heal is the fast one (Flash of Light, Holy Light before level 20), planned like a healer's (EmitHeal).
|
||||
bool HealerCovers(ApPredicateContext const& ctx, ClassicHeal::Patient const& p)
|
||||
{
|
||||
auto const* members = ctx.group.members();
|
||||
if (!members)
|
||||
return false;
|
||||
float px = 0.f, py = 0.f;
|
||||
bool found = false;
|
||||
for (auto const& m : *members)
|
||||
if (m.guid == p.guid) { px = m.x; py = m.y; found = true; break; }
|
||||
for (auto const& m : *members)
|
||||
{
|
||||
if (m.guid == ctx.bot.raw().guid || m.role != Role::Healer || !m.online || !m.is_alive || m.map_id != ctx.bot.map_id())
|
||||
continue;
|
||||
if (m.max_mana > 0 && int64(m.mana) * 100 < int64(m.max_mana) * ClassicHeal::kHybridHealerCoverManaPct)
|
||||
continue;
|
||||
if (found && std::hypot(m.x - px, m.y - py) > ClassicHeal::kHealRange)
|
||||
continue;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ShouldSaveAlly(ApPredicateContext const& ctx)
|
||||
{
|
||||
if (!ctx.bot.in_group() || !Ready(ctx, FastHeal(ctx)))
|
||||
return false;
|
||||
ClassicHeal::Patient const p = ClassicHeal::PickPatient(ctx);
|
||||
if (!p.valid || p.guid.IsEmpty() || p.guid == ctx.bot.raw().guid)
|
||||
return false;
|
||||
return ClassicHeal::HybridMaySaveAlly(ctx.bot.raid_rules(), std::min(p.hp_pct, p.actual_pct), HealerCovers(ctx, p), ManaPct(ctx));
|
||||
}
|
||||
void DoSaveAlly(ApPredicateContext const& ctx, BotIntentEmitter& e)
|
||||
{
|
||||
ClassicHeal::EmitHeal(ctx.bot, ctx.group, e, FastHeal(ctx), ClassicHeal::PickPatient(ctx));
|
||||
}
|
||||
|
||||
ApRule const kTankRules[] = {
|
||||
{ ShouldDivineShield, DoDivineShield, "classic_pal_tank:divine_shield" },
|
||||
{ ShouldDivineProtection, DoDivineProtection, "classic_pal_tank:divine_protection" },
|
||||
{ ShouldSelfLayOnHands, DoSelfLayOnHands, "classic_pal_tank:lay_on_hands" },
|
||||
{ ShouldSaveAlly, DoSaveAlly, "classic_pal_tank:save_ally" },
|
||||
{ ShouldRighteousFury, DoRighteousFury, "classic_pal_tank:righteous_fury" },
|
||||
{ ShouldPaladinAura, DoPaladinAura, "classic_pal_tank:aura" },
|
||||
{ ShouldHammerOfJustice, DoHammerOfJustice, "classic_pal_tank:hammer_of_justice" },
|
||||
@@ -578,6 +644,7 @@ ApRule const kRetRules[] = {
|
||||
{ ShouldDivineShield, DoDivineShield, "classic_pal_ret:divine_shield" },
|
||||
{ ShouldSelfLayOnHands, DoSelfLayOnHands, "classic_pal_ret:lay_on_hands" },
|
||||
{ ShouldRetSelfHeal, DoRetSelfHeal, "classic_pal_ret:self_heal" },
|
||||
{ ShouldSaveAlly, DoSaveAlly, "classic_pal_ret:save_ally" },
|
||||
{ ShouldPaladinAura, DoPaladinAura, "classic_pal_ret:aura" },
|
||||
{ ShouldBlessing, DoBlessing, "classic_pal_ret:blessing" },
|
||||
{ ShouldCleanse, DoCleanse, "classic_pal_ret:cleanse" },
|
||||
|
||||
@@ -465,6 +465,26 @@ SchoolHint::SchoolChoice const kHealerSchoolChoices[] = {
|
||||
bool ShouldHealerSchoolNuke(ApPredicateContext const& ctx) { return SchoolHint::ShouldCast(ctx, kHealerSchoolChoices); }
|
||||
void DoHealerSchoolNuke(ApPredicateContext const& ctx, BotIntentEmitter& e) { SchoolHint::DoCast(ctx, e, kHealerSchoolChoices); }
|
||||
|
||||
// Shackle Undead: Undead. In a group an add of a 3+ mob pull (never the kill target,
|
||||
// the tank's target or a boss); solo an extra attacker. See PickGroupCC.
|
||||
constexpr uint32 SHACKLE_UNDEAD = 9484;
|
||||
bool ShouldCrowdControl(ApPredicateContext const& ctx)
|
||||
{
|
||||
return HasLiveTarget(ctx) && ctx.bot.in_combat() && !ctx.bot.is_moving() && ManaPct(ctx) >= 15
|
||||
&& Ready(ctx, SHACKLE_UNDEAD) && !PickGroupCC(ctx, SHACKLE_UNDEAD).IsEmpty();
|
||||
}
|
||||
void DoCrowdControl(ApPredicateContext const& ctx, BotIntentEmitter& e)
|
||||
{
|
||||
e.cast(SHACKLE_UNDEAD, PickGroupCC(ctx, SHACKLE_UNDEAD));
|
||||
}
|
||||
|
||||
// Healer: Shackle Undead on an add while the group is healthy and mana allows (Playerbot.Behavior.HealerAssist,
|
||||
// ClassicHeal::HealerMayCrowdControl). In an instance the group plan picks the mob (PickGroupCC defers to it).
|
||||
bool ShouldHealerCrowdControl(ApPredicateContext const& ctx)
|
||||
{
|
||||
return ClassicHeal::HealerMayCrowdControl(ctx.bot, LowestFriendOrSelf(ctx).hp_pct) && ShouldCrowdControl(ctx);
|
||||
}
|
||||
|
||||
ApRule const kHealerRules[] = {
|
||||
{ ShouldDesperatePrayer, DoDesperatePrayer, "classic_heal:desperate_prayer" },
|
||||
{ ShouldShieldCritical, DoShieldCritical, "classic_heal:shield_critical" },
|
||||
@@ -485,6 +505,7 @@ ApRule const kHealerRules[] = {
|
||||
{ ShouldInnerFire, DoInnerFire, "classic_heal:inner_fire" },
|
||||
{ ShouldRenew, DoRenew, "classic_heal:renew" },
|
||||
{ ShouldResurrection, DoResurrection, "classic_heal:resurrection" },
|
||||
{ ShouldHealerCrowdControl, DoCrowdControl, "classic_heal:shackle_undead" },
|
||||
{ ShouldHealerSchoolNuke, DoHealerSchoolNuke, "classic_heal:school_nuke" },
|
||||
{ ShouldHealerPain, DoPain, "classic_heal:shadow_word_pain" },
|
||||
{ ShouldHealerSmite, DoSmite, "classic_heal:smite" },
|
||||
@@ -570,19 +591,6 @@ SchoolHint::SchoolChoice const kShadowSchoolChoices[] = {
|
||||
bool ShouldShadowSchoolNuke(ApPredicateContext const& ctx) { return SchoolHint::ShouldCast(ctx, kShadowSchoolChoices); }
|
||||
void DoShadowSchoolNuke(ApPredicateContext const& ctx, BotIntentEmitter& e) { SchoolHint::DoCast(ctx, e, kShadowSchoolChoices); }
|
||||
|
||||
// Shackle Undead: Undead. In a group an add of a 3+ mob pull (never the kill target,
|
||||
// the tank's target or a boss); solo an extra attacker. See PickGroupCC.
|
||||
constexpr uint32 SHACKLE_UNDEAD = 9484;
|
||||
bool ShouldCrowdControl(ApPredicateContext const& ctx)
|
||||
{
|
||||
return HasLiveTarget(ctx) && ctx.bot.in_combat() && !ctx.bot.is_moving() && ManaPct(ctx) >= 15
|
||||
&& Ready(ctx, SHACKLE_UNDEAD) && !PickGroupCC(ctx, SHACKLE_UNDEAD).IsEmpty();
|
||||
}
|
||||
void DoCrowdControl(ApPredicateContext const& ctx, BotIntentEmitter& e)
|
||||
{
|
||||
e.cast(SHACKLE_UNDEAD, PickGroupCC(ctx, SHACKLE_UNDEAD));
|
||||
}
|
||||
|
||||
ApRule const kShadowRules[] = {
|
||||
{ ShouldDesperatePrayer, DoDesperatePrayer, "classic_shadow:desperate_prayer" },
|
||||
{ ShouldShieldSelf, DoShieldSelf, "classic_shadow:shield_self" },
|
||||
|
||||
@@ -30,10 +30,16 @@
|
||||
#include "Log.h"
|
||||
#include <fstream>
|
||||
#include "Player.h"
|
||||
#include "Pet.h" // .playerbot petprobe
|
||||
#include "CharmInfo.h" // .playerbot petprobe
|
||||
#include "../Fleet/PlayerCraftOrders.h" // .playerbot craftfor
|
||||
#include "../Bot/BotBridge.h" // .playerbot bridgeask
|
||||
#include "GameTime.h"
|
||||
#include "MotionMaster.h"
|
||||
#include "MovementPackets.h"
|
||||
#include "PartyPackets.h" // .playerbot setrole
|
||||
#include "Pet.h" // .playerbot petspells
|
||||
#include "CharmInfo.h" // .playerbot petspells
|
||||
#include "WorldSession.h"
|
||||
#include "TypeContainerVisitor.h"
|
||||
#include "PlayerbotAPI.h"
|
||||
@@ -98,6 +104,8 @@
|
||||
#include "ObjectMgr.h"
|
||||
#include "QuestDef.h" // .playerbot xpprobe
|
||||
#include "SpellAuraEffects.h"
|
||||
#include "TemporarySummon.h" // .playerbot bugprobe
|
||||
#include "CreatureAI.h" // .playerbot bugprobe
|
||||
#include "SpellAuras.h"
|
||||
#include "SpellInfo.h"
|
||||
#include "SpellMgr.h"
|
||||
@@ -647,10 +655,14 @@ public:
|
||||
{ "auracheck", HandleAuraCheck, rbac::RBAC_PERM_COMMAND_GM, Console::Yes },
|
||||
{ "proccheck", HandleProcCheck, rbac::RBAC_PERM_COMMAND_GM, Console::Yes },
|
||||
{ "casttest", HandleCastTest, rbac::RBAC_PERM_COMMAND_GM, Console::Yes },
|
||||
{ "bugprobe", HandleBugProbe, rbac::RBAC_PERM_COMMAND_GM, Console::Yes },
|
||||
{ "xpprobe", HandleXpProbe, rbac::RBAC_PERM_COMMAND_GM, Console::Yes },
|
||||
{ "questchainprobe", HandleQuestChainProbe, rbac::RBAC_PERM_COMMAND_GM, Console::Yes },
|
||||
{ "groundz", HandleGroundZ, rbac::RBAC_PERM_COMMAND_GM, Console::Yes },
|
||||
{ "formprobe", HandleFormProbe, rbac::RBAC_PERM_COMMAND_GM, Console::Yes },
|
||||
{ "setrole", HandleSetRole, rbac::RBAC_PERM_COMMAND_GM, Console::Yes },
|
||||
{ "petspells", HandlePetSpells, rbac::RBAC_PERM_COMMAND_GM, Console::Yes },
|
||||
{ "inspectprobe", HandleInspectProbe, rbac::RBAC_PERM_COMMAND_GM, Console::Yes },
|
||||
{ "equipprobe", HandleEquipProbe, rbac::RBAC_PERM_COMMAND_GM, Console::Yes },
|
||||
{ "gearpick", HandleGearPick, rbac::RBAC_PERM_COMMAND_GM, Console::Yes },
|
||||
{ "rageprobe", HandleRageProbe, rbac::RBAC_PERM_COMMAND_GM, Console::Yes },
|
||||
@@ -659,6 +671,9 @@ public:
|
||||
{ "spotprobe", HandleSpotProbe, rbac::RBAC_PERM_COMMAND_GM, Console::Yes },
|
||||
{ "collisionprobe", HandleCollisionProbe, rbac::RBAC_PERM_COMMAND_GM, Console::Yes },
|
||||
{ "transmogprobe", HandleTransmogProbe, rbac::RBAC_PERM_COMMAND_GM, Console::Yes },
|
||||
{ "skinprobe", HandleSkinProbe, rbac::RBAC_PERM_COMMAND_GM, Console::Yes },
|
||||
{ "powerprobe", HandlePowerProbe, rbac::RBAC_PERM_COMMAND_GM, Console::Yes },
|
||||
{ "petprobe", HandlePetProbe, rbac::RBAC_PERM_COMMAND_GM, Console::Yes },
|
||||
{ "langprobe", HandleLangProbe, rbac::RBAC_PERM_COMMAND_GM, Console::Yes },
|
||||
{ "learncheck", HandleLearnCheck, rbac::RBAC_PERM_COMMAND_GM, Console::Yes },
|
||||
{ "traitcheck", HandleTraitCheck, rbac::RBAC_PERM_COMMAND_GM, Console::Yes },
|
||||
@@ -5354,6 +5369,129 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
// .playerbot petspells <player> [<spell id to teach>]
|
||||
// The player's current pet: number, entry, level, type and every spell it holds with its save state (0 unchanged, 1 changed,
|
||||
// 2 new, 3 removed) and type (0 normal, 1 family). With a spell id the pet learns it the way a Grimoire or a pet trainer teaches it
|
||||
// (Spell::EffectLearnPetSpell: learnSpell, then SavePetToDB as current). For checking that taught pet spells survive a restart
|
||||
// (Tryout, Discord 2026-11-16: a warlock's demons forget the spells they learned after a server restart) without a game client.
|
||||
static bool HandlePetSpells(ChatHandler* handler, std::string name, Optional<uint32> teach)
|
||||
{
|
||||
Player* p = normalizePlayerName(name) ? ObjectAccessor::FindPlayerByName(name) : nullptr;
|
||||
Pet* pet = p ? p->GetPet() : nullptr;
|
||||
if (!pet || !pet->GetCharmInfo())
|
||||
{
|
||||
handler->PSendSysMessage("petspells: %s is not online or has no pet out", name.c_str());
|
||||
return false;
|
||||
}
|
||||
if (teach)
|
||||
{
|
||||
if (!sSpellMgr->GetSpellInfo(*teach, DIFFICULTY_NONE))
|
||||
{
|
||||
handler->PSendSysMessage("petspells: no spell %u", *teach);
|
||||
return false;
|
||||
}
|
||||
bool const learned = pet->learnSpell(*teach);
|
||||
pet->SavePetToDB(PET_SAVE_AS_CURRENT);
|
||||
p->PetSpellInitialize();
|
||||
handler->PSendSysMessage("petspells: %s's pet learned %u: %s, saved", p->GetName().c_str(), *teach, learned ? "yes" : "no (known, or a higher rank is)");
|
||||
}
|
||||
LocaleConstant const locale = sWorld->GetDefaultDbcLocale();
|
||||
std::vector<uint32> ids;
|
||||
for (auto const& [spellId, petSpell] : pet->m_spells)
|
||||
ids.push_back(spellId);
|
||||
std::ranges::sort(ids);
|
||||
std::string list;
|
||||
for (uint32 spellId : ids)
|
||||
{
|
||||
PetSpell const& ps = pet->m_spells.at(spellId);
|
||||
SpellInfo const* info = sSpellMgr->GetSpellInfo(spellId, DIFFICULTY_NONE);
|
||||
list += Trinity::StringFormat("{}{} \"{}\" state {} type {}", list.empty() ? "" : ", ", spellId,
|
||||
info && info->SpellName ? (*info->SpellName)[locale] : "?", int32(ps.state), int32(ps.type));
|
||||
}
|
||||
handler->PSendSysMessage("petspells: %s pet number %u entry %u level %u type %u, %zu spells: %s", p->GetName().c_str(),
|
||||
pet->GetCharmInfo()->GetPetNumber(), pet->GetEntry(), uint32(pet->GetLevel()), uint32(pet->getPetType()), ids.size(), list.c_str());
|
||||
return true;
|
||||
}
|
||||
|
||||
// .playerbot inspectprobe <viewer> <target>
|
||||
// What WorldSession::HandleInspectOpcode would answer the viewer about the target, without sending it: whether the talent part is
|
||||
// filled (the TalentsInspecting gate), the specialization, the target's active combat trait config (id, specialization, entries) and
|
||||
// the viewer's own trait config ids, the classic talent block, and the retail talent list. DoctorSun (Discord 2026-11-17): Inspect >
|
||||
// Talents always shows the inspecting player's own talents. Read-only.
|
||||
static bool HandleInspectProbe(ChatHandler* handler, std::string viewerName, std::string targetName)
|
||||
{
|
||||
Player* viewer = normalizePlayerName(viewerName) ? ObjectAccessor::FindPlayerByName(viewerName) : nullptr;
|
||||
Player* target = normalizePlayerName(targetName) ? ObjectAccessor::FindPlayerByName(targetName) : nullptr;
|
||||
if (!viewer || !target)
|
||||
{
|
||||
handler->SendSysMessage("inspectprobe: needs <viewer> <target>, both online");
|
||||
return false;
|
||||
}
|
||||
bool const talentsSent = viewer->CanBeGameMaster()
|
||||
|| sWorld->getIntConfig(CONFIG_TALENTS_INSPECTING) + (viewer->GetEffectiveTeam() == target->GetEffectiveTeam()) > 1;
|
||||
UF::TraitConfig const* active = target->GetTraitConfig(target->m_activePlayerData->ActiveCombatTraitConfigID);
|
||||
uint32 ranks = 0;
|
||||
if (active)
|
||||
for (UF::TraitEntry const& e : active->Entries)
|
||||
ranks += uint32(std::max<int32>(0, e.Rank));
|
||||
auto const configIds = [](Player const* who)
|
||||
{
|
||||
std::string ids;
|
||||
for (auto const& [id, value] : who->m_activePlayerData->TraitConfigs)
|
||||
ids += Trinity::StringFormat("{}{} (type {}, spec {})", ids.empty() ? "" : ", ", id, int32(*value.value.Type), int32(*value.value.ChrSpecializationID));
|
||||
return ids.empty() ? std::string("none") : ids;
|
||||
};
|
||||
std::size_t retailTalents = 0;
|
||||
if (PlayerTalentMap const* talents = target->GetTalentMap(target->GetActiveTalentGroup()))
|
||||
for (auto const& [talentId, state] : *talents)
|
||||
if (state != PLAYERSPELL_REMOVED)
|
||||
++retailTalents;
|
||||
handler->PSendSysMessage("inspectprobe: %s inspects %s: distance %.1f, attackable %s, talent part sent %s (TalentsInspecting %u, same team %s)",
|
||||
viewer->GetName().c_str(), target->GetName().c_str(), viewer->GetDistance(target), viewer->IsValidAttackTarget(target) ? "YES (no answer at all)" : "no",
|
||||
talentsSent ? "yes" : "NO", sWorld->getIntConfig(CONFIG_TALENTS_INSPECTING), viewer->GetEffectiveTeam() == target->GetEffectiveTeam() ? "yes" : "no");
|
||||
handler->PSendSysMessage("inspectprobe: target level %u spec %u; active combat config %d: %s", uint32(target->GetLevel()),
|
||||
uint32(AsUnderlyingType(target->GetPrimarySpecialization())), int32(*target->m_activePlayerData->ActiveCombatTraitConfigID),
|
||||
active ? Trinity::StringFormat("spec {}, local id {}, {} entries, {} ranks", int32(*active->ChrSpecializationID), int32(*active->LocalIdentifier),
|
||||
active->Entries.size(), ranks).c_str() : "MISSING");
|
||||
handler->PSendSysMessage("inspectprobe: target configs: %s; viewer configs: %s (viewer active %d)", configIds(target).c_str(), configIds(viewer).c_str(),
|
||||
int32(*viewer->m_activePlayerData->ActiveCombatTraitConfigID));
|
||||
handler->PSendSysMessage("inspectprobe: retail talent list %zu entries; classic talent block: not filled (0 groups)", retailTalents);
|
||||
return true;
|
||||
}
|
||||
|
||||
// .playerbot setrole <leader> <member> tank|healer|damage|none
|
||||
// The party frame's role menu, from the console: the leader's session sends CMSG_SET_ROLE for the member and the real handler runs
|
||||
// (WorldSession::HandleSetRoleOpcode, its leader/assistant check, the group's role slot, the GroupScript hook). A bot leader stands in
|
||||
// for the player. Then the member's role on the group slot and, for a bot, its role and spec as the bot logic now reads them.
|
||||
static bool HandleSetRole(ChatHandler* handler, std::string leaderName, std::string memberName, std::string roleName)
|
||||
{
|
||||
Player* leader = normalizePlayerName(leaderName) ? ObjectAccessor::FindPlayerByName(leaderName) : nullptr;
|
||||
Player* member = normalizePlayerName(memberName) ? ObjectAccessor::FindPlayerByName(memberName) : nullptr;
|
||||
uint8 const role = roleName == "tank" ? 2 : roleName == "healer" ? 4 : (roleName == "damage" || roleName == "dps") ? 8 : roleName == "none" ? 0 : 0xFF;
|
||||
if (!leader || !member || !leader->GetSession() || role == 0xFF)
|
||||
{
|
||||
handler->SendSysMessage("setrole: needs <leader> <member> tank|healer|damage|none, both online");
|
||||
return false;
|
||||
}
|
||||
Group* group = leader->GetGroup();
|
||||
if (!group || !group->IsMember(member->GetGUID()))
|
||||
{
|
||||
handler->PSendSysMessage("setrole: %s and %s are not in one group", leader->GetName().c_str(), member->GetName().c_str());
|
||||
return false;
|
||||
}
|
||||
uint8 const before = group->GetLfgRoles(member->GetGUID());
|
||||
WorldPackets::Party::SetRole packet{ WorldPacket(CMSG_SET_ROLE) };
|
||||
packet.TargetGUID = member->GetGUID();
|
||||
packet.Role = role;
|
||||
leader->GetSession()->HandleSetRoleOpcode(packet);
|
||||
std::string bot;
|
||||
if (Playerbot::BotAI const* ai = Playerbot::Services::Registry().ai(member->GetGUID().GetCounter()))
|
||||
bot = Trinity::StringFormat(", bot role override {}, spec {}", int(ai->role_override()), ::Playerbot::Classic::EffectiveSpecId(member));
|
||||
handler->PSendSysMessage("setrole: %s set %s to %s: group slot role %u -> %u%s", leader->GetName().c_str(), member->GetName().c_str(),
|
||||
roleName.c_str(), uint32(before), uint32(group->GetLfgRoles(member->GetGUID())), bot.c_str());
|
||||
return true;
|
||||
}
|
||||
|
||||
// .playerbot formprobe <player> <form spell id> [<passive spell id>]
|
||||
// Learns the form spell if needed, takes the form (a triggered cast: no cost, no cooldown, no level check) and reports the armor before
|
||||
// and in the form and whether the form's passive aura is on the player, then leaves the form again and reports the armor back.
|
||||
@@ -5583,13 +5721,19 @@ public:
|
||||
|
||||
// .playerbot campprobe <player> go <map> <x> <y> <z>
|
||||
// .playerbot campprobe <player> sit [<quest id>]
|
||||
// Camping without a client. "go" moves the player (a bot over SOAP) to a camp. "sit" then, in one go: gives the quest if one is named (a
|
||||
// Camping without a client. "go" moves the player (a bot over SOAP) to a camp and keeps a bot there for two minutes (its own rules walked
|
||||
// it 42 yd off before "sit": PC confirm run B6, 17 Nov). "sit" checks the player still stands at that spot, then, in one go: gives the
|
||||
// quest if one is named (a
|
||||
// The Great Outdoors quest, taken off again at the end), sits the player down the way the sit key does (WorldSession::UpdateCampfireRest),
|
||||
// reports the campfire found, the nearest spell focus of any kind, whether the rest started and whether the quest's sit objective counted;
|
||||
// then ends the rest as if its minute ran out and reports the camp buffs it gave, and stands the player up again.
|
||||
static bool HandleCampProbe(ChatHandler* handler, std::string name, std::string mode, Optional<float> a1, Optional<float> a2,
|
||||
Optional<float> a3, Optional<float> a4)
|
||||
{
|
||||
static constexpr uint32 CAMP_HOLD_MS = 2u * 60u * 1000u;
|
||||
static constexpr float CAMP_SPOT_SLACK = 3.0f;
|
||||
// the spot "go" sent each player to, for "sit" to check against (world thread only: chat commands run there)
|
||||
static std::unordered_map<ObjectGuid, WorldLocation> campSpots;
|
||||
static constexpr uint32 SPELL_CAMPFIRE_REST = 1289723;
|
||||
static constexpr uint32 SPELL_CAMP_BENEFITS = 1229741;
|
||||
static constexpr uint32 BoostedBuffs[] = { 1229451, 1229519, 1230164, 1230587, 1230172, 1229513, 1229718, 1230124, 1230098, 1230653 };
|
||||
@@ -5610,9 +5754,22 @@ public:
|
||||
handler->SetSentErrorMessage(true);
|
||||
return false;
|
||||
}
|
||||
// a bot stops what it is doing and stays on the spot: otherwise its own rules walk it off before "sit". A Stay, not a Hold: a
|
||||
// Hold lets the lower rules (questing) run on (idle:owner_holding), a Stay claims the bot's tick (idle:owner_stay).
|
||||
Playerbot::BotAI* ai = Playerbot::Services::Initialized() ? Playerbot::Services::Registry().ai(p->GetGUID().GetCounter()) : nullptr;
|
||||
if (ai)
|
||||
{
|
||||
p->GetMotionMaster()->Clear();
|
||||
p->StopMoving();
|
||||
ai->enter_manual(Playerbot::BotAI::OwnerCommand::Stay, ObjectGuid::Empty, GameTime::GetGameTimeMS(), CAMP_HOLD_MS);
|
||||
}
|
||||
bool const ok = p->TeleportTo(uint32(*a1), *a2, *a3, *a4, p->GetOrientation());
|
||||
handler->PSendSysMessage("campprobe: %s teleport to map %u (%.2f, %.2f, %.2f) %s", p->GetName().c_str(), uint32(*a1), *a2, *a3, *a4,
|
||||
ok ? "started, run sit in a few seconds" : "REFUSED");
|
||||
if (ok)
|
||||
campSpots[p->GetGUID()] = WorldLocation(uint32(*a1), *a2, *a3, *a4);
|
||||
else
|
||||
campSpots.erase(p->GetGUID());
|
||||
handler->PSendSysMessage("campprobe: %s teleport to map %u (%.2f, %.2f, %.2f) %s%s", p->GetName().c_str(), uint32(*a1), *a2, *a3, *a4,
|
||||
ok ? "started, run sit in a few seconds" : "REFUSED", ok && ai ? "; bot stays on the spot for 2 min" : "");
|
||||
return true;
|
||||
}
|
||||
if (mode != "sit")
|
||||
@@ -5622,6 +5779,20 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
// the player must still stand where "go" sent it: a fire missing because the player walked off is not a camp fault
|
||||
if (auto const spot = campSpots.find(p->GetGUID()); spot != campSpots.end())
|
||||
{
|
||||
float const off = p->GetMapId() == spot->second.GetMapId() ? p->GetExactDist(spot->second) : -1.0f;
|
||||
if (off < 0.0f || off > CAMP_SPOT_SLACK)
|
||||
{
|
||||
handler->PSendSysMessage("campprobe: NOT AT THE SPOT: %s is at map %u (%.2f, %.2f, %.2f), %s the camp spot map %u (%.2f, %.2f, %.2f); "
|
||||
"nothing checked, run go again", p->GetName().c_str(), p->GetMapId(), p->GetPositionX(), p->GetPositionY(), p->GetPositionZ(),
|
||||
off < 0.0f ? "another map than" : Trinity::StringFormat("{:.1f} yd from", off).c_str(), spot->second.GetMapId(),
|
||||
spot->second.GetPositionX(), spot->second.GetPositionY(), spot->second.GetPositionZ());
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// the quest, from no status, so earlier runs or the bot's own questing do not get in the way
|
||||
uint32 const questId = a1 ? uint32(*a1) : 0;
|
||||
Quest const* quest = questId ? sObjectMgr->GetQuestTemplate(questId) : nullptr;
|
||||
@@ -5673,7 +5844,11 @@ public:
|
||||
// the minute runs out: the rest's own script gives the camp buffs
|
||||
if (resting)
|
||||
{
|
||||
p->RemoveAurasDueToSpell(SPELL_CAMPFIRE_REST, ObjectGuid::Empty, 0, AURA_REMOVE_BY_EXPIRE);
|
||||
// Expire this one rest only. The rest's script starts the next rest on expiry while the player still sits, and
|
||||
// RemoveAurasDueToSpell starts its search over after each removal, so it took the new rest too, and the next, for ever:
|
||||
// the world thread hung for 60 s and the freeze detector stopped the server (PC confirm run B6, 17 Nov).
|
||||
if (Aura* rest = p->GetAura(SPELL_CAMPFIRE_REST))
|
||||
rest->Remove(AURA_REMOVE_BY_EXPIRE);
|
||||
std::string buffs;
|
||||
for (uint32 buff : BoostedBuffs)
|
||||
if (p->HasAura(buff))
|
||||
@@ -5686,6 +5861,12 @@ public:
|
||||
p->GetSession()->UpdateCampfireRest(UNIT_STAND_STATE_STAND);
|
||||
if (quest)
|
||||
forget();
|
||||
|
||||
// done: the bot goes back to its own rules
|
||||
if (campSpots.erase(p->GetGUID()))
|
||||
if (Playerbot::BotAI* ai = Playerbot::Services::Initialized() ? Playerbot::Services::Registry().ai(p->GetGUID().GetCounter()) : nullptr)
|
||||
if (ai->owner_command() == Playerbot::BotAI::OwnerCommand::Stay)
|
||||
ai->exit_manual();
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -5840,6 +6021,256 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
// .playerbot skinprobe <player> [<creature level> [<count> [<start rank> [<max rank> [<creature entry>]]]]]
|
||||
// Skinning skill gain without a client. Reports the player's skinning skill (rank, max rank, step), its race/class info, the
|
||||
// skinning spells it knows and the skill line EffectSkinning would level, then calls the real Player::UpdateGatherSkill as a skin
|
||||
// of a non-elite beast of that level does: <count> times at <start rank> (put back after every call, so the rate at that rank is
|
||||
// measured) and <count> times climbing from <start rank> (to see where the rank stops). The skill is put back as it was at the
|
||||
// end. Defaults: level 15, 50 calls, rank 34, max rank 75. With a creature entry, the checks EffectSkinning makes before it gives
|
||||
// skill are shown for that creature (its loot skill, content tuning expansion and the line that expansion levels), and that line
|
||||
// is the one levelled. Dev only; it changes the skill while it runs, so use a bot.
|
||||
static bool HandleSkinProbe(ChatHandler* handler, std::string name, Optional<uint32> creatureLevel, Optional<uint32> count,
|
||||
Optional<uint16> startRank, Optional<uint16> maxRank, Optional<uint32> creatureEntry)
|
||||
{
|
||||
Player* p = normalizePlayerName(name) ? ObjectAccessor::FindPlayerByName(name) : nullptr;
|
||||
if (!p || !p->IsInWorld())
|
||||
{
|
||||
handler->SendSysMessage("skinprobe: no such player in the world");
|
||||
handler->SetSentErrorMessage(true);
|
||||
return false;
|
||||
}
|
||||
|
||||
int32 const targetLevel = int32(creatureLevel.value_or(15));
|
||||
uint32 const calls = std::clamp<uint32>(count.value_or(50), 1, 1000);
|
||||
uint16 const start = std::max<uint16>(startRank.value_or(34), 1);
|
||||
uint16 const probeMax = std::max<uint16>(maxRank.value_or(75), start);
|
||||
uint16 const step = std::max<uint16>(probeMax / 75, 1);
|
||||
|
||||
uint32 const skill = SKILL_SKINNING;
|
||||
bool const hadSkill = p->HasSkill(skill);
|
||||
uint16 const origStep = p->GetSkillStep(skill);
|
||||
uint16 const origValue = p->GetPureSkillValue(skill);
|
||||
uint16 const origMax = p->GetPureMaxSkillValue(skill);
|
||||
|
||||
handler->PSendSysMessage("skinprobe: %s level %u race %u class %u: skinning %s, rank %u / %u, step %u", p->GetName().c_str(),
|
||||
uint32(p->GetLevel()), uint32(p->GetRace()), uint32(p->GetClass()), hadSkill ? "known" : "NOT known", uint32(origValue),
|
||||
uint32(origMax), uint32(origStep));
|
||||
|
||||
if (SkillRaceClassInfoEntry const* rcInfo = sDB2Manager.GetSkillRaceClassInfo(skill, p->GetRace(), p->GetClass()))
|
||||
handler->PSendSysMessage("skinprobe: race/class info %u: tier %d, flags 0x%X, min level %d", rcInfo->ID, int32(rcInfo->SkillTierID),
|
||||
uint32(rcInfo->Flags), int32(rcInfo->MinLevel));
|
||||
else
|
||||
handler->SendSysMessage("skinprobe: race/class info: NONE for this race and class");
|
||||
|
||||
if (std::vector<SkillLineAbilityEntry const*> const* abilities = sDB2Manager.GetSkillLineAbilitiesBySkill(skill))
|
||||
for (SkillLineAbilityEntry const* ability : *abilities)
|
||||
if (p->HasSpell(uint32(ability->Spell)))
|
||||
handler->PSendSysMessage("skinprobe: knows spell %d (skill line ability %u, min rank %d, part of skinning: %s)", ability->Spell,
|
||||
ability->ID, int32(ability->MinSkillLineRank), IsPartOfSkillLine(skill, uint32(ability->Spell)) ? "yes" : "NO");
|
||||
|
||||
if (std::vector<SkillLineEntry const*> const* children = sDB2Manager.GetSkillLinesForParentSkill(skill))
|
||||
for (SkillLineEntry const* child : *children)
|
||||
handler->PSendSysMessage("skinprobe: child line %u (tier index %d): rank %u / %u", child->ID, int32(child->ParentTierIndex),
|
||||
uint32(p->GetPureSkillValue(child->ID)), uint32(p->GetPureMaxSkillValue(child->ID)));
|
||||
|
||||
// the same rank EffectSkinning asks for (levels 1 to 73, the Classic range)
|
||||
int32 reqValue;
|
||||
if (targetLevel <= 10)
|
||||
reqValue = 1;
|
||||
else if (targetLevel < 20)
|
||||
reqValue = (targetLevel - 10) * 10;
|
||||
else
|
||||
reqValue = targetLevel * 5;
|
||||
|
||||
int32 expansion = 0;
|
||||
if (creatureEntry)
|
||||
{
|
||||
CreatureTemplate const* cInfo = sObjectMgr->GetCreatureTemplate(*creatureEntry);
|
||||
CreatureDifficulty const* cDiff = cInfo ? cInfo->GetDifficulty(DIFFICULTY_NONE) : nullptr;
|
||||
if (!cDiff)
|
||||
{
|
||||
handler->PSendSysMessage("skinprobe: creature %u: no template", *creatureEntry);
|
||||
handler->SetSentErrorMessage(true);
|
||||
return false;
|
||||
}
|
||||
ContentTuningEntry const* contentTuning = sContentTuningStore.LookupEntry(cDiff->ContentTuningID);
|
||||
expansion = contentTuning ? contentTuning->ExpansionID : 0;
|
||||
uint32 const lootSkill = cDiff->GetRequiredLootSkill();
|
||||
handler->PSendSysMessage("skinprobe: creature %u %s: loot skill %u, skin loot %u, content tuning %d (%s, expansion %d)", *creatureEntry,
|
||||
cInfo->Name.c_str(), lootSkill, cDiff->SkinLootID, cDiff->ContentTuningID, contentTuning ? "found" : "none", expansion);
|
||||
if (std::vector<SkillLineAbilityEntry const*> const* abilities = sDB2Manager.GetSkillLineAbilitiesBySkill(skill))
|
||||
for (SkillLineAbilityEntry const* ability : *abilities)
|
||||
if (p->HasSpell(uint32(ability->Spell)))
|
||||
handler->PSendSysMessage("skinprobe: spell %d is part of the creature's loot skill %u: %s", ability->Spell, lootSkill,
|
||||
IsPartOfSkillLine(lootSkill, uint32(ability->Spell)) ? "yes" : "NO (no skill from this creature)");
|
||||
}
|
||||
|
||||
uint32 const levelled = p->GetProfessionSkillForExp(skill, expansion);
|
||||
handler->PSendSysMessage("skinprobe: levelled line %u at the real rank: %u / %u (0 -> no skill from a skin)", levelled,
|
||||
uint32(p->GetPureSkillValue(levelled)), uint32(p->GetPureMaxSkillValue(levelled)));
|
||||
uint32 const yellow = uint32(reqValue) + 25;
|
||||
uint32 const green = uint32(reqValue) + 50;
|
||||
uint32 const gray = uint32(reqValue) + 100;
|
||||
uint32 expected;
|
||||
if (start >= gray)
|
||||
expected = sWorld->getIntConfig(CONFIG_SKILL_CHANCE_GREY) * 10;
|
||||
else if (start >= green)
|
||||
expected = sWorld->getIntConfig(CONFIG_SKILL_CHANCE_GREEN) * 10;
|
||||
else if (start >= yellow)
|
||||
expected = sWorld->getIntConfig(CONFIG_SKILL_CHANCE_YELLOW) * 10;
|
||||
else
|
||||
expected = sWorld->getIntConfig(CONFIG_SKILL_CHANCE_ORANGE) * 10;
|
||||
if (uint32 steps = sWorld->getIntConfig(CONFIG_SKILL_CHANCE_SKINNING_STEPS))
|
||||
expected >>= start / steps;
|
||||
|
||||
handler->PSendSysMessage("skinprobe: beast level %d needs rank %d (yellow %u, green %u, gray %u); levelled line %u; at rank %u "
|
||||
"expected chance %.1f%%, Skill.Gain.Gathering %u, skinning steps %u, aura 657 bonus %d%%", targetLevel, reqValue, yellow, green,
|
||||
gray, levelled, uint32(start), expected / 10.0f, sWorld->getIntConfig(CONFIG_SKILL_GAIN_GATHERING),
|
||||
sWorld->getIntConfig(CONFIG_SKILL_CHANCE_SKINNING_STEPS), int32(p->GetTotalAuraModifier(SPELL_AURA_657)));
|
||||
|
||||
if (!levelled)
|
||||
{
|
||||
handler->SendSysMessage("skinprobe: no skill line to level -> EffectSkinning gives no skill (FAIL)");
|
||||
return true;
|
||||
}
|
||||
|
||||
// 1) the rate at the start rank
|
||||
uint32 rose = 0;
|
||||
for (uint32 i = 0; i < calls; ++i)
|
||||
{
|
||||
p->SetSkill(skill, step, start, probeMax);
|
||||
uint16 before = p->GetPureSkillValue(levelled);
|
||||
p->UpdateGatherSkill(levelled, before, uint32(reqValue), 1);
|
||||
if (p->GetPureSkillValue(levelled) > before)
|
||||
++rose;
|
||||
}
|
||||
|
||||
// 2) climbing from the start rank
|
||||
p->SetSkill(skill, step, start, probeMax);
|
||||
uint32 climbed = 0;
|
||||
for (uint32 i = 0; i < calls; ++i)
|
||||
{
|
||||
uint16 before = p->GetPureSkillValue(levelled);
|
||||
if (!before)
|
||||
break;
|
||||
p->UpdateGatherSkill(levelled, before, uint32(reqValue), 1);
|
||||
if (p->GetPureSkillValue(levelled) > before)
|
||||
++climbed;
|
||||
}
|
||||
uint16 const reached = p->GetPureSkillValue(levelled);
|
||||
uint16 const reachedMax = p->GetPureMaxSkillValue(levelled);
|
||||
|
||||
if (hadSkill)
|
||||
p->SetSkill(skill, origStep, origValue, origMax);
|
||||
else
|
||||
p->SetSkill(skill, 0, 0, 0);
|
||||
|
||||
handler->PSendSysMessage("skinprobe: at rank %u / %u: %u of %u skins gave a point (%.1f%%, expected %.1f%%); climbing: %u points in %u "
|
||||
"skins, %u -> %u / %u; skill put back to %u / %u -> %s", uint32(start), uint32(probeMax), rose, calls, rose * 100.0f / calls,
|
||||
expected / 10.0f, climbed, calls, uint32(start), uint32(reached), uint32(reachedMax), uint32(p->GetPureSkillValue(skill)),
|
||||
uint32(p->GetPureMaxSkillValue(skill)), rose || start >= probeMax ? "PASS" : "FAIL");
|
||||
return true;
|
||||
}
|
||||
|
||||
// .playerbot powerprobe <player>
|
||||
// One look at a player's mana: power type, mana now / max / base, the regen modifiers the client is sent, the spells being cast
|
||||
// and every aura with the aura types of its effects. Run it a few times a second or two apart to see where mana goes.
|
||||
static bool HandlePowerProbe(ChatHandler* handler, std::string name)
|
||||
{
|
||||
Player* p = normalizePlayerName(name) ? ObjectAccessor::FindPlayerByName(name) : nullptr;
|
||||
if (!p || !p->IsInWorld())
|
||||
{
|
||||
handler->SendSysMessage("powerprobe: no such player in the world");
|
||||
handler->SetSentErrorMessage(true);
|
||||
return false;
|
||||
}
|
||||
|
||||
uint32 const manaIndex = p->GetPowerIndex(POWER_MANA);
|
||||
float regenFlat = 0.0f;
|
||||
float regenInterrupted = 0.0f;
|
||||
if (manaIndex < MAX_POWERS_PER_CLASS)
|
||||
{
|
||||
regenFlat = p->m_unitData->PowerRegenFlatModifier[manaIndex];
|
||||
regenInterrupted = p->m_unitData->PowerRegenInterruptedFlatModifier[manaIndex];
|
||||
}
|
||||
|
||||
handler->PSendSysMessage("powerprobe: %s level %u class %u race %u, power type %u, shapeshift form %u, %s; mana %d / %d (base %u, "
|
||||
"index %u), regen %.2f, in combat regen %.2f", p->GetName().c_str(), uint32(p->GetLevel()), uint32(p->GetClass()),
|
||||
uint32(p->GetRace()), uint32(p->GetPowerType()), uint32(p->GetShapeshiftForm()), p->IsInCombat() ? "in combat" : "out of combat",
|
||||
p->GetPower(POWER_MANA), p->GetMaxPower(POWER_MANA), p->GetCreateMana(), manaIndex, regenFlat, regenInterrupted);
|
||||
|
||||
LocaleConstant const locale = handler->GetSessionDbcLocale();
|
||||
for (CurrentSpellTypes type : { CURRENT_GENERIC_SPELL, CURRENT_CHANNELED_SPELL, CURRENT_AUTOREPEAT_SPELL })
|
||||
if (Spell const* spell = p->GetCurrentSpell(type))
|
||||
handler->PSendSysMessage("powerprobe: casting (slot %u) %u %s", uint32(type), spell->GetSpellInfo()->Id,
|
||||
spell->GetSpellInfo()->SpellName ? (*spell->GetSpellInfo()->SpellName)[locale] : "");
|
||||
|
||||
for (auto const& [spellId, aurApp] : p->GetAppliedAuras())
|
||||
{
|
||||
Aura const* aura = aurApp->GetBase();
|
||||
SpellInfo const* info = aura->GetSpellInfo();
|
||||
std::string effects;
|
||||
for (AuraEffect const* eff : aura->GetAuraEffects())
|
||||
if (eff)
|
||||
effects += fmt::format(" e{} type {} misc {} amount {} period {}", eff->GetEffIndex(), uint32(eff->GetAuraType()),
|
||||
eff->GetMiscValue(), eff->GetAmount(), eff->GetPeriod());
|
||||
handler->PSendSysMessage("powerprobe: aura %u %s, %s, %d s left:%s", spellId, info->SpellName ? (*info->SpellName)[locale] : "",
|
||||
aura->GetCasterGUID() == p->GetGUID() ? "own" : "from another", aura->GetDuration() < 0 ? -1 : aura->GetDuration() / 1000,
|
||||
effects.c_str());
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// .playerbot petprobe <player>
|
||||
// The player's pet and its stable: pet number, entry, level, the spell that summoned it and that spell's duration (a summon
|
||||
// spell with a duration makes Pet::LoadPetFromDB treat the pet as temporary and skip loading its spells), and every spell the
|
||||
// pet knows in memory with its save state and type; then every stable entry with its number, entry and summon spell.
|
||||
static bool HandlePetProbe(ChatHandler* handler, std::string name)
|
||||
{
|
||||
Player* p = normalizePlayerName(name) ? ObjectAccessor::FindPlayerByName(name) : nullptr;
|
||||
if (!p || !p->IsInWorld())
|
||||
{
|
||||
handler->SendSysMessage("petprobe: no such player in the world");
|
||||
handler->SetSentErrorMessage(true);
|
||||
return false;
|
||||
}
|
||||
|
||||
auto spellDuration = [](uint32 spellId) -> int32
|
||||
{
|
||||
SpellInfo const* info = sSpellMgr->GetSpellInfo(spellId, DIFFICULTY_NONE);
|
||||
return info ? info->GetDuration() : -2;
|
||||
};
|
||||
|
||||
if (Pet* pet = p->GetPet())
|
||||
{
|
||||
uint32 const createdBy = uint32(pet->m_unitData->CreatedBySpell);
|
||||
handler->PSendSysMessage("petprobe: %s pet number %u entry %u level %u type %u, summoned by %u (duration %d ms -> %s), %u spells",
|
||||
p->GetName().c_str(), pet->GetCharmInfo() ? pet->GetCharmInfo()->GetPetNumber() : 0u, pet->GetEntry(), uint32(pet->GetLevel()),
|
||||
uint32(pet->getPetType()), createdBy, spellDuration(createdBy), spellDuration(createdBy) > 0 ? "TEMPORARY, spells not loaded" : "spells loaded",
|
||||
uint32(pet->m_spells.size()));
|
||||
for (auto const& [spellId, petSpell] : pet->m_spells)
|
||||
handler->PSendSysMessage("petprobe: spell %u state %u type %u active %u", spellId, uint32(petSpell.state), uint32(petSpell.type),
|
||||
uint32(petSpell.active));
|
||||
}
|
||||
else
|
||||
handler->PSendSysMessage("petprobe: %s has no pet out (unsummoned pet number %u)", p->GetName().c_str(), p->GetTemporaryUnsummonedPetNumber());
|
||||
|
||||
if (PetStable const* stable = p->GetPetStable())
|
||||
{
|
||||
auto line = [&](PetStable::PetInfo const& info, char const* where)
|
||||
{
|
||||
handler->PSendSysMessage("petprobe: stable %s: number %u entry %u level %u type %u, summoned by %u (duration %d ms)", where, info.PetNumber,
|
||||
info.CreatureId, uint32(info.Level), uint32(info.Type), info.CreatedBySpellId, spellDuration(info.CreatedBySpellId));
|
||||
};
|
||||
for (auto const& active : stable->ActivePets)
|
||||
if (active)
|
||||
line(*active, "active");
|
||||
for (PetStable::PetInfo const& unslotted : stable->UnslottedPets)
|
||||
line(unslotted, "unslotted");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// .playerbot collisionprobe <creature entry> [<player>]
|
||||
// The collision height of each model of a creature template: the model's raw CollisionHeight, the height the core uses
|
||||
// (CreatureModelDataEntry::GetCollisionHeight, which reads the bounding box when the client marks the height "not set") and the
|
||||
@@ -5888,19 +6319,372 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
// .playerbot bugprobe <player> [all|corpse|corpsecheck]
|
||||
// Dev check of the 17 Nov code fixes without a client: each line says PASS or FAIL with the numbers. Run it on a bot standing on open,
|
||||
// flat ground with no other creature within 10 yards (a city square is fine). Summons its own test creatures and removes them again.
|
||||
// all melee reach by height (0001), second target of Blade Flurry / Sweeping Strikes (0019), Retribution Aura and Thorns
|
||||
// spell power (0021), Triage patient bleed rate (0023), on a shaman totem level (0015), on a mage Missile Barrage (0027),
|
||||
// on a paladin Judgement of Light / Wisdom (0032), Shield Specialization (0033) and Reckoning (0034)
|
||||
// corpse kills the nearest spawned creature (no NPC flags, within 40 yards) and asks for its respawn now (0012)
|
||||
// corpsecheck a few seconds later: PASS while only its corpse is there, FAIL if it stands up beside its corpse
|
||||
static bool HandleBugProbe(ChatHandler* handler, std::string name, Optional<std::string> mode)
|
||||
{
|
||||
static ObjectGuid::LowType s_corpseSpawn = 0;
|
||||
static uint32 s_corpseMap = 0;
|
||||
|
||||
Player* p = normalizePlayerName(name) ? ObjectAccessor::FindPlayerByName(name) : nullptr;
|
||||
if (!p || !p->IsInWorld() || !p->IsAlive())
|
||||
{
|
||||
handler->SendSysMessage("bugprobe: needs the name of a living player in the world");
|
||||
return false;
|
||||
}
|
||||
std::string const what = mode ? *mode : std::string("all");
|
||||
auto say = [&](std::string const& text) { handler->SendSysMessage(text); TC_LOG_INFO("playerbot.v2", "[bugprobe] {}", text); };
|
||||
auto verdict = [](bool ok) { return ok ? "PASS" : "FAIL"; };
|
||||
|
||||
if (what == "corpse")
|
||||
{
|
||||
Creature* best = nullptr;
|
||||
float bestDist = 40.0f;
|
||||
for (auto const& [spawnId, c] : p->GetMap()->GetCreatureBySpawnIdStore())
|
||||
{
|
||||
if (!c->IsAlive() || c->IsSummon() || c->GetRespawnCompatibilityMode() || c->GetNpcFlags() || c->IsDungeonBoss() || !c->IsInWorld())
|
||||
continue;
|
||||
float const d = p->GetDistance(c);
|
||||
if (d < bestDist)
|
||||
{
|
||||
bestDist = d;
|
||||
best = c;
|
||||
}
|
||||
}
|
||||
if (!best)
|
||||
{
|
||||
say("0012 corpse: SKIP, no spawned creature without NPC flags within 40 yards; move the bot next to a mob");
|
||||
return true;
|
||||
}
|
||||
s_corpseSpawn = best->GetSpawnId();
|
||||
s_corpseMap = p->GetMapId();
|
||||
Unit::Kill(p, best, false);
|
||||
p->GetMap()->Respawn(SPAWN_TYPE_CREATURE, s_corpseSpawn);
|
||||
say(Trinity::StringFormat("0012 corpse: killed {} (spawn {}) at {:.1f} yd and asked for its respawn now; run 'corpsecheck' in 5 seconds",
|
||||
best->GetName(), uint64(s_corpseSpawn), bestDist));
|
||||
return true;
|
||||
}
|
||||
if (what == "corpsecheck")
|
||||
{
|
||||
if (!s_corpseSpawn || s_corpseMap != p->GetMapId())
|
||||
{
|
||||
say("0012 corpse: run 'corpse' first, with the bot on the same map");
|
||||
return false;
|
||||
}
|
||||
uint32 alive = 0, corpses = 0;
|
||||
for (auto const& [spawnId, c] : Trinity::Containers::MapEqualRange(p->GetMap()->GetCreatureBySpawnIdStore(), s_corpseSpawn))
|
||||
{
|
||||
if (c->IsAlive())
|
||||
++alive;
|
||||
else if (c->getDeathState() == CORPSE)
|
||||
++corpses;
|
||||
}
|
||||
if (corpses)
|
||||
say(Trinity::StringFormat("0012 corpse: {} (spawn {}: {} corpse, {} alive; the respawn waits for the corpse)", verdict(alive == 0),
|
||||
uint64(s_corpseSpawn), corpses, alive));
|
||||
else
|
||||
say(Trinity::StringFormat("0012 corpse: SKIP, the corpse is already gone ({} alive); run 'corpse' again and check sooner", alive));
|
||||
return true;
|
||||
}
|
||||
if (what != "all")
|
||||
{
|
||||
handler->SendSysMessage("bugprobe: mode is all, corpse or corpsecheck");
|
||||
return false;
|
||||
}
|
||||
|
||||
std::string error;
|
||||
Creature* d = Playerbot::Diagnostics::Parity::SpawnProcDummy(p, 2.5f, error);
|
||||
if (!d)
|
||||
{
|
||||
say("bugprobe: no test creature: " + error);
|
||||
return false;
|
||||
}
|
||||
|
||||
// 0001 melee reach counts height from body to body
|
||||
{
|
||||
float const h = d->GetCollisionHeight();
|
||||
auto at = [&](float dz) { return Position(d->GetPositionX() + 1.5f, d->GetPositionY(), d->GetPositionZ() + dz, 0.0f); };
|
||||
bool const head = p->IsWithinMeleeRangeAt(at(h), d);
|
||||
bool const under = p->IsWithinMeleeRangeAt(at(-p->GetCollisionHeight()), d);
|
||||
bool const far = p->IsWithinMeleeRangeAt(at(h + 10.0f), d);
|
||||
say(Trinity::StringFormat("0001 melee: {} (mob height {:.2f}, reach {:.2f}: level with its head {}, under its feet {}, 10 yd above its head {})",
|
||||
verdict(head && under && !far), h, p->GetMeleeRange(d), head ? "in" : "OUT", under ? "in" : "OUT", far ? "IN" : "out"));
|
||||
}
|
||||
|
||||
// 0019 Blade Flurry / Sweeping Strikes: the extra hit takes only a unit that can be attacked
|
||||
{
|
||||
Position const pos = p->GetNearPosition(2.0f, float(M_PI) / 2.0f);
|
||||
TempSummon* e = p->GetMap()->SummonCreature(d->GetEntry(), pos, nullptr, 0ms, p);
|
||||
if (!e)
|
||||
say("0019 second target: SKIP, could not summon the second creature");
|
||||
else
|
||||
{
|
||||
e->SetFaction(14);
|
||||
e->SetReactState(REACT_PASSIVE);
|
||||
e->SetUnitFlag(UNIT_FLAG_NON_ATTACKABLE);
|
||||
Unit* const blocked = p->SelectNearbyTarget(d, 5.0f);
|
||||
e->RemoveUnitFlag(UNIT_FLAG_NON_ATTACKABLE);
|
||||
Unit* const open = p->SelectNearbyTarget(d, 5.0f);
|
||||
if (!p->IsWithinLOSInMap(e))
|
||||
say("0019 second target: SKIP, no line of sight to the second creature; move the bot to open ground");
|
||||
else if (blocked && blocked != e)
|
||||
say(Trinity::StringFormat("0019 second target: SKIP, another unit ({}) is within 5 yards; move the bot", blocked->GetName()));
|
||||
else
|
||||
say(Trinity::StringFormat("0019 second target: {} (not attackable: {}, attackable: {})", verdict(blocked == nullptr && open == e),
|
||||
blocked ? "TAKEN" : "skipped", open == e ? "taken" : "MISSED"));
|
||||
e->DespawnOrUnsummon();
|
||||
}
|
||||
}
|
||||
|
||||
// 0021 Retribution Aura and Thorns: 6% of the caster's spell power
|
||||
for (uint32 const spellId : { 10301u, 9910u })
|
||||
{
|
||||
SpellInfo const* info = sSpellMgr->GetSpellInfo(spellId, DIFFICULTY_NONE);
|
||||
Aura* aura = info ? p->AddAura(spellId, p) : nullptr;
|
||||
AuraEffect const* eff = aura ? aura->GetEffect(EFFECT_0) : nullptr;
|
||||
if (!eff)
|
||||
{
|
||||
say(Trinity::StringFormat("0021 shield {}: SKIP, the aura did not come up", spellId));
|
||||
if (aura)
|
||||
p->RemoveAurasDueToSpell(spellId);
|
||||
continue;
|
||||
}
|
||||
SpellSchoolMask const school = info->GetSchoolMask();
|
||||
float const amount = float(eff->GetAmount());
|
||||
int32 const sp0 = p->SpellBaseDamageBonusDone(school);
|
||||
float const dmg0 = p->SpellDamageBonusDoneExact(d, info, amount, SPELL_DIRECT_DAMAGE, eff->GetSpellEffectInfo());
|
||||
p->ApplySpellPowerBonus(100, true);
|
||||
int32 const sp1 = p->SpellBaseDamageBonusDone(school);
|
||||
float const dmg1 = p->SpellDamageBonusDoneExact(d, info, amount, SPELL_DIRECT_DAMAGE, eff->GetSpellEffectInfo());
|
||||
p->ApplySpellPowerBonus(100, false);
|
||||
p->RemoveAurasDueToSpell(spellId);
|
||||
// hit = (base + share * spell power) * mod, where mod is the player's other damage done modifiers (school talents and the
|
||||
// like). Two spell powers give share * mod (the slope) and, with the base, the mod itself. Reading the slope against the
|
||||
// first hit alone was right only at 0 spell power: a level 60 mage with 386 and a 1.25 mod read 0.028 (PC run 17 Nov).
|
||||
float const slope = sp1 != sp0 ? (dmg1 - dmg0) / float(sp1 - sp0) : 0.0f;
|
||||
float const mod = amount > 0.0f ? (dmg0 - slope * float(sp0)) / amount : 0.0f;
|
||||
float const share = mod > 0.0f ? slope / mod : 0.0f;
|
||||
say(Trinity::StringFormat("0021 {} {}: {} (base {:.0f}, hit {:.2f} at {} spell power, {:.2f} at {}: {:.4f} per point of spell power, "
|
||||
"other damage done modifiers x{:.3f})", info->SpellName->Str[LOCALE_enUS], spellId, verdict(std::fabs(share - 0.06f) < 0.003f), amount,
|
||||
dmg0, sp0, dmg1, sp1, share, mod));
|
||||
}
|
||||
|
||||
// 0023 Triage: a patient bleeds 50 health a second, at any update rate
|
||||
if (TempSummon* patient = p->GetMap()->SummonCreature(12925, p->GetNearPosition(3.0f, float(M_PI)), nullptr, 0ms, p))
|
||||
{
|
||||
if (patient->AI() && patient->GetScriptName() == "npc_injured_patient")
|
||||
{
|
||||
uint64 const before = patient->GetHealth();
|
||||
for (uint32 i = 0; i < 100; ++i)
|
||||
patient->AI()->UpdateAI(10); // one second in 10 ms map updates
|
||||
uint64 const after = patient->IsAlive() ? patient->GetHealth() : 0;
|
||||
int64 const lost = int64(before) - int64(after);
|
||||
say(Trinity::StringFormat("0023 Triage: {} (lost {} health in one second of 10 ms updates, from {} of {})", verdict(lost >= 49 && lost <= 51),
|
||||
lost, before, patient->GetMaxHealth()));
|
||||
}
|
||||
else
|
||||
say("0023 Triage: SKIP, the patient has no npc_injured_patient script");
|
||||
patient->DespawnOrUnsummon();
|
||||
}
|
||||
else
|
||||
say("0023 Triage: SKIP, could not summon a Critically Injured Soldier (12925)");
|
||||
|
||||
// 0027 Missile Barrage 400589: Arcane Missiles channels half as long with missiles every 0.5 s
|
||||
if (p->GetClass() == CLASS_MAGE)
|
||||
{
|
||||
uint32 castResult[2] = { 0, 0 };
|
||||
auto channel = [&](bool barrage, int32& duration, int32& period)
|
||||
{
|
||||
if (barrage)
|
||||
p->AddAura(400589, p);
|
||||
p->InterruptNonMeleeSpells(true);
|
||||
p->SetFacingToObject(d);
|
||||
castResult[barrage ? 1 : 0] = uint32(p->CastSpell(d, 5143, TRIGGERED_FULL_MASK));
|
||||
// A channel with a duration is not cast inside CastSpell even when triggered (Spell::prepare): it waits as the current
|
||||
// channel for the caster's next spell update. Run that update now, the same path the world tick takes, so the channel
|
||||
// and its aura are up when they are read (PC run 17 Nov: read straight after CastSpell, 0 ms every 0 ms).
|
||||
if (Spell* pending = p->GetCurrentSpell(CURRENT_CHANNELED_SPELL))
|
||||
if (pending->GetSpellInfo()->Id == 5143 && pending->getState() == SPELL_STATE_PREPARING)
|
||||
pending->update(0);
|
||||
duration = period = 0;
|
||||
// the channel's aura sits on the mage (the missiles go to the channel's target, SpellAuraEffects.cpp), not on the dummy
|
||||
if (Aura* missiles = p->GetAura(5143, p->GetGUID()))
|
||||
{
|
||||
duration = missiles->GetMaxDuration();
|
||||
if (AuraEffect const* eff = missiles->GetEffect(EFFECT_0))
|
||||
period = eff->GetPeriod();
|
||||
}
|
||||
p->InterruptNonMeleeSpells(true);
|
||||
p->RemoveAurasDueToSpell(5143);
|
||||
p->RemoveAurasDueToSpell(400589);
|
||||
};
|
||||
int32 plainDuration, plainPeriod, fastDuration, fastPeriod;
|
||||
channel(false, plainDuration, plainPeriod);
|
||||
channel(true, fastDuration, fastPeriod);
|
||||
bool const ok = plainDuration > 0 && fastDuration * 2 == plainDuration && plainPeriod > 0 && fastPeriod == plainPeriod - 500;
|
||||
say(Trinity::StringFormat("0027 Missile Barrage: {} (Arcane Missiles {} ms every {} ms; with the buff {} ms every {} ms; cast results {} {}, "
|
||||
"dummy at {:.1f} yd)", verdict(ok), plainDuration, plainPeriod, fastDuration, fastPeriod, castResult[0], castResult[1], p->GetDistance(d)));
|
||||
}
|
||||
else
|
||||
say("0027 Missile Barrage: SKIP, run bugprobe on a mage for this one");
|
||||
|
||||
// 0015 totems have their caster's level (Stoneskin Totem rank 1)
|
||||
if (p->GetClass() == CLASS_SHAMAN)
|
||||
{
|
||||
auto const before = p->m_SummonSlot;
|
||||
p->CastSpell(p, 8071, TRIGGERED_FULL_MASK);
|
||||
Creature* totem = nullptr;
|
||||
for (uint32 slot = SUMMON_SLOT_TOTEM; slot <= SUMMON_SLOT_TOTEM_4 && !totem; ++slot)
|
||||
if (!p->m_SummonSlot[slot].IsEmpty() && p->m_SummonSlot[slot] != before[slot])
|
||||
totem = ObjectAccessor::GetCreature(*p, p->m_SummonSlot[slot]);
|
||||
if (totem)
|
||||
{
|
||||
say(Trinity::StringFormat("0015 totem: {} ({} level {}, shaman level {})", verdict(totem->GetLevel() == p->GetLevel()), totem->GetName(),
|
||||
totem->GetLevel(), p->GetLevel()));
|
||||
totem->DespawnOrUnsummon();
|
||||
}
|
||||
else
|
||||
say("0015 totem: SKIP, Stoneskin Totem did not come up");
|
||||
}
|
||||
else
|
||||
say("0015 totem: SKIP, run bugprobe on a shaman for this one");
|
||||
|
||||
if (p->GetClass() == CLASS_PALADIN)
|
||||
{
|
||||
// 0032 Judgement of Light 20185 / Judgement of Wisdom 20186 on the dummy: hits on it heal / give mana to the attacker, not the dummy
|
||||
for (bool const light : { true, false })
|
||||
{
|
||||
uint32 const judgement = light ? 20185 : 20186;
|
||||
Aura* aura = p->AddAura(judgement, d);
|
||||
if (!aura)
|
||||
{
|
||||
say(Trinity::StringFormat("0032 judgement {}: SKIP, the debuff did not come up on the dummy", judgement));
|
||||
continue;
|
||||
}
|
||||
auto value = [&]() { return light ? int64(p->GetHealth()) : int64(p->GetPower(POWER_MANA)); };
|
||||
if (light)
|
||||
p->SetHealth(p->CountPctFromMaxHealth(50));
|
||||
else
|
||||
p->SetPower(POWER_MANA, p->GetMaxPower(POWER_MANA) / 2);
|
||||
int64 const before = value();
|
||||
uint32 swings = 0, dummyGained = 0;
|
||||
for (; swings < 30 && value() == before && d->IsAlive(); ++swings)
|
||||
{
|
||||
int64 const dummyBefore = light ? int64(d->GetHealth()) : int64(d->GetPower(POWER_MANA));
|
||||
p->AttackerStateUpdate(d, BASE_ATTACK);
|
||||
int64 const dummyAfter = light ? int64(d->GetHealth()) : int64(d->GetPower(POWER_MANA));
|
||||
if (dummyAfter > dummyBefore)
|
||||
++dummyGained;
|
||||
}
|
||||
int64 const gained = value() - before;
|
||||
say(Trinity::StringFormat("0032 judgement {}: {} (attacker got {} {} after {} swings; dummy gained {} times)", judgement,
|
||||
verdict(gained > 0 && !dummyGained), gained, light ? "health" : "mana", swings, dummyGained));
|
||||
d->RemoveAurasDueToSpell(judgement, p->GetGUID());
|
||||
}
|
||||
p->SetFullHealth();
|
||||
p->SetFullPower(POWER_MANA);
|
||||
d->SetFullHealth();
|
||||
|
||||
// 0033 Shield Specialization 20150: mana only from blocked attacks. Blocking is switched off for the test, so no hit may give mana.
|
||||
if (Aura* spec = p->AddAura(20150, p))
|
||||
{
|
||||
SpellProcEntry const* procEntry = sSpellMgr->GetSpellProcEntry(spec->GetSpellInfo());
|
||||
bool const couldBlock = p->CanBlock();
|
||||
p->SetCanBlock(false);
|
||||
p->SetPower(POWER_MANA, p->GetMaxPower(POWER_MANA) / 2);
|
||||
int32 const manaBefore = p->GetPower(POWER_MANA);
|
||||
uint64 const healthBefore = p->GetHealth();
|
||||
for (uint32 i = 0; i < 20 && p->IsAlive(); ++i)
|
||||
d->AttackerStateUpdate(p, BASE_ATTACK);
|
||||
int32 const manaGained = p->GetPower(POWER_MANA) - manaBefore;
|
||||
bool const hit = p->GetHealth() < healthBefore;
|
||||
p->SetCanBlock(couldBlock);
|
||||
p->RemoveAurasDueToSpell(20150);
|
||||
p->SetFullHealth();
|
||||
p->SetFullPower(POWER_MANA);
|
||||
if (hit)
|
||||
say(Trinity::StringFormat("0033 Shield Specialization: {} (20 unblockable dummy swings gave {} mana; proc hit mask {:#x})",
|
||||
verdict(manaGained == 0 && procEntry && procEntry->HitMask == PROC_HIT_BLOCK), manaGained, procEntry ? procEntry->HitMask : 0u));
|
||||
else
|
||||
say(Trinity::StringFormat("0033 Shield Specialization: SKIP, the dummy did not hit (proc hit mask {:#x})", procEntry ? procEntry->HitMask : 0u));
|
||||
}
|
||||
else
|
||||
say("0033 Shield Specialization: SKIP, the talent aura did not come up");
|
||||
|
||||
// 0034 Reckoning: two stored attacks are queued by the next swing and swung on the next update (the result goes to Playerbot.log a
|
||||
// second later, look for "[bugprobe] 0034")
|
||||
if (Aura* stored = p->AddAura(1326084, p))
|
||||
{
|
||||
stored->SetStackAmount(2);
|
||||
p->AttackerStateUpdate(d, BASE_ATTACK);
|
||||
bool const queued = p->GetLastExtraAttackSpell() == 1326084 && !p->HasAura(1326084);
|
||||
uint64 const dummyHealth = d->GetHealth();
|
||||
ObjectGuid const dummyGuid = d->GetGUID();
|
||||
say(Trinity::StringFormat("0034 Reckoning: {} so far (stacks used {}, extra attacks queued {}); the swing result follows in the log",
|
||||
verdict(queued), p->HasAura(1326084) ? "no" : "yes", queued ? "yes" : "NO"));
|
||||
p->m_Events.AddEventAtOffset([p, dummyGuid, dummyHealth, queued]()
|
||||
{
|
||||
Creature* dummy = ObjectAccessor::GetCreature(*p, dummyGuid);
|
||||
bool const swung = p->GetLastExtraAttackSpell() == 0;
|
||||
int64 const lost = dummy ? int64(dummyHealth) - int64(dummy->GetHealth()) : -1;
|
||||
TC_LOG_INFO("playerbot.v2", "[bugprobe] 0034 Reckoning: {} (queue swung {}, dummy lost {} health after the first swing)",
|
||||
(queued && swung && lost > 0) ? "PASS" : "FAIL", swung ? "yes" : "NO", lost);
|
||||
}, 1s);
|
||||
}
|
||||
else
|
||||
say("0034 Reckoning: SKIP, the stored attacks aura did not come up");
|
||||
}
|
||||
else
|
||||
say("0032-0034 paladin: SKIP, run bugprobe on a paladin for these");
|
||||
|
||||
// the paladin's Reckoning check reads the dummy a second later
|
||||
d->DespawnOrUnsummon(3s);
|
||||
return true;
|
||||
}
|
||||
|
||||
// .playerbot casttest [@Player] <spell id> [<spell id>...]
|
||||
// Casts each active spell once at a dummy in melee reach (full power, no cooldowns, 0 combo points) and writes CastTest.tsv with what changed:
|
||||
// the cast result, the dummy's health, the caster's combo points, and every aura that appeared on either unit. A passive spell that carries spell
|
||||
// modifiers (aura 107/108) is not cast: the modifier is read through Player::ApplySpellMod against every spell the player knows that it names.
|
||||
// `>Name` names a friendly target (another online player) for positive spells that need one, such as a blessing; the dummy is used otherwise.
|
||||
// `dist=<yards>` stands the dummy that far off instead of in melee reach, for spells with a minimum range (Feral Charge (Cat) 414924: 8-25 y).
|
||||
static bool HandleCastTest(ChatHandler* handler, Tail args)
|
||||
{
|
||||
Player* p = handler->GetSession() ? handler->GetSession()->GetPlayer() : nullptr;
|
||||
Player* friendTarget = nullptr;
|
||||
bool friendNamed = false;
|
||||
Optional<uint32> specArg;
|
||||
float dummyDistance = 2.5f;
|
||||
std::vector<uint32> ids;
|
||||
for (std::string_view token : Trinity::Tokenize(std::string_view(args), ' ', false))
|
||||
{
|
||||
if (token.substr(0, 5) == "dist=")
|
||||
{
|
||||
Optional<float> dist = Trinity::StringTo<float>(token.substr(5));
|
||||
if (!dist || *dist < 1.0f || *dist > 40.0f)
|
||||
{
|
||||
handler->PSendSysMessage("casttest: dist= needs yards from 1 to 40, e.g. dist=15");
|
||||
return false;
|
||||
}
|
||||
dummyDistance = *dist;
|
||||
continue;
|
||||
}
|
||||
if (token.substr(0, 5) == "spec=")
|
||||
{
|
||||
specArg = Trinity::StringTo<uint32>(token.substr(5));
|
||||
if (!specArg)
|
||||
{
|
||||
handler->PSendSysMessage("casttest: spec= needs a specialization id, e.g. spec=65 (Holy paladin) or spec=70 (Retribution)");
|
||||
return false;
|
||||
}
|
||||
continue;
|
||||
}
|
||||
if (!token.empty() && token[0] == '@')
|
||||
{
|
||||
p = ObjectAccessor::FindPlayerByName(token.substr(1));
|
||||
@@ -5920,11 +6704,26 @@ public:
|
||||
handler->PSendSysMessage("casttest: the friendly target after '>' is not an online living player");
|
||||
return false;
|
||||
}
|
||||
if (!p || !p->IsInWorld() || !p->IsAlive() || ids.empty())
|
||||
if (!p || !p->IsInWorld() || !p->IsAlive() || (ids.empty() && !specArg))
|
||||
{
|
||||
handler->PSendSysMessage("casttest: needs @Name of a living player in the world and at least one spell id");
|
||||
handler->PSendSysMessage("casttest: needs @Name of a living player in the world and at least one spell id (or spec=<id>)");
|
||||
return false;
|
||||
}
|
||||
// spec=<id> pins the bot's specialization (rotation, role and talent build) the way a role change does, so a Holy or Retribution paladin
|
||||
// can be tested from the console when the fleet only has Protection ones. The pin lives until the server restarts; spec=0 clears it.
|
||||
if (specArg)
|
||||
{
|
||||
if (!::Playerbot::Classic::SetSpecOverride(p, *specArg))
|
||||
{
|
||||
handler->PSendSysMessage("casttest: %u is not a specialization of %s's class (or %s runs a real specialization)", *specArg, p->GetName().c_str(), p->GetName().c_str());
|
||||
return false;
|
||||
}
|
||||
::Playerbot::Result const talents = p->IsInCombat() ? ::Playerbot::Result::Locked : ::Playerbot::API(p).apply_classic_talents();
|
||||
handler->PSendSysMessage("casttest: %s now plays specialization %u, talent build result %d%s", p->GetName().c_str(), ::Playerbot::Classic::EffectiveSpecId(p),
|
||||
int(talents), talents == ::Playerbot::Result::Ok ? "" : " (not Ok: run spec= again in a few seconds)");
|
||||
if (ids.empty())
|
||||
return true;
|
||||
}
|
||||
// spells that name a party or raid member (a blessing, a heal) need the target in the caster's group: put the named player in it, no invitation
|
||||
if (friendTarget && friendTarget != p && !(p->GetGroup() && p->GetGroup() == friendTarget->GetGroup()))
|
||||
{
|
||||
@@ -5981,12 +6780,15 @@ public:
|
||||
p->IsWithinLOSInMap(friendTarget) ? "yes" : "NO", int(friendTarget->GetTeleportState()));
|
||||
}
|
||||
std::string error;
|
||||
Creature* d = Playerbot::Diagnostics::Parity::SpawnProcDummy(p, 2.5f, error);
|
||||
Creature* d = Playerbot::Diagnostics::Parity::SpawnProcDummy(p, dummyDistance, error);
|
||||
if (!d)
|
||||
{
|
||||
handler->PSendSysMessage("casttest: no dummy: %s", error.c_str());
|
||||
return false;
|
||||
}
|
||||
// where the dummy stands before the first cast (a leap or a charge moves the caster)
|
||||
std::string const dummyPlace = Trinity::StringFormat("dummy at {:.1f} yd, height {:+.1f} yd, line of sight {}", p->GetDistance(d),
|
||||
d->GetPositionZ() - p->GetPositionZ(), p->IsWithinLOSInMap(d) ? "yes" : "NO");
|
||||
std::string const path = sLog->GetLogsDir() + "CastTest.tsv";
|
||||
std::ofstream out(path, std::ios::trunc);
|
||||
if (!out)
|
||||
@@ -6098,12 +6900,42 @@ public:
|
||||
p->SetPower(pw, p->GetMaxPower(pw));
|
||||
p->SetPower(POWER_COMBO_POINTS, 0);
|
||||
p->SetFacingToObject(d);
|
||||
// A bot keeps casting on its own: a cast it has under way fails ours with SPELL_FAILED_SPELL_IN_PROGRESS (126), so it is stopped first.
|
||||
p->InterruptNonMeleeSpells(false);
|
||||
std::set<uint32> const casterBefore = auraIds(p), dummyBefore = auraIds(d), friendBefore = friendTarget ? auraIds(friendTarget) : std::set<uint32>();
|
||||
// A helpful spell goes on the friend after '>', otherwise on the caster: a heal that needs an explicit target (Holy Light) is not
|
||||
// cast on the hostile dummy, which fails with SPELL_FAILED_BAD_TARGETS (13). A spell whose explicit target is an enemy goes on the
|
||||
// dummy even when it counts as positive: Feral Charge (Cat) 414924 (a leap behind an enemy) failed 13 on the caster.
|
||||
bool const helpful = (info->IsPositive() || info->HasEffect(SPELL_EFFECT_HEAL))
|
||||
&& !(info->GetExplicitTargetMask() & TARGET_FLAG_UNIT_ENEMY);
|
||||
Unit* const target = friendTarget ? static_cast<Unit*>(friendTarget) : (helpful ? static_cast<Unit*>(p) : static_cast<Unit*>(d));
|
||||
// A direct heal on a unit at full health shows nothing: the target is put at half health first and the heal is cast at once
|
||||
// (no cast time), so the health it gains is the heal that landed (leenergetic, 2026-11-16: "the heal is cast but has no effect").
|
||||
bool const directHeal = info->HasEffect(SPELL_EFFECT_HEAL) && target != d;
|
||||
int64 healTargetBefore = 0;
|
||||
if (directHeal)
|
||||
{
|
||||
target->SetHealth(std::max<uint64>(1, target->GetMaxHealth() / 2));
|
||||
healTargetBefore = int64(target->GetHealth());
|
||||
}
|
||||
int64 const dummyHp = d->GetHealth(), casterHp = p->GetHealth();
|
||||
comboBefore = p->GetPower(POWER_COMBO_POINTS);
|
||||
Unit* const target = friendTarget ? static_cast<Unit*>(friendTarget) :
|
||||
(info->IsPositive() && !info->NeedsExplicitUnitTarget() ? static_cast<Unit*>(p) : static_cast<Unit*>(d));
|
||||
SpellCastResult const r = p->CastSpell(target, id, CastSpellExtraArgs(TRIGGERED_NONE));
|
||||
SpellCastResult const r = p->CastSpell(target, id, CastSpellExtraArgs(directHeal ? TRIGGERED_CAST_DIRECTLY : TRIGGERED_NONE));
|
||||
if (directHeal)
|
||||
{
|
||||
mods += Trinity::StringFormat("heal on {} at half health: +{} (max health {}); ", target->GetName(),
|
||||
int64(target->GetHealth()) - healTargetBefore, target->GetMaxHealth());
|
||||
target->SetFullHealth();
|
||||
}
|
||||
// Out of power although the caster was just filled up (Roland, Prot paladin, 17 Nov: Holy Light 108): what the spell costs, in
|
||||
// which power, against what the caster holds of it and its display power.
|
||||
if (r == SPELL_FAILED_NO_POWER)
|
||||
{
|
||||
mods += Trinity::StringFormat("display power {}; ", int32(p->GetPowerType()));
|
||||
for (SpellPowerCost const& cost : info->CalcPowerCost(p, info->GetSchoolMask()))
|
||||
mods += Trinity::StringFormat("cost {} of power {}, caster has {} of {}; ", cost.Amount, int32(cost.Power),
|
||||
p->GetPower(cost.Power), p->GetMaxPower(cost.Power));
|
||||
}
|
||||
result = Trinity::StringFormat("{}", int(r));
|
||||
comboAfter = p->GetPower(POWER_COMBO_POINTS);
|
||||
dummyDelta = int64(d->GetHealth()) - dummyHp;
|
||||
@@ -6145,7 +6977,7 @@ public:
|
||||
out << Trinity::StringFormat("{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\t{}\n", id, name, result, dummyDelta, casterDelta, comboBefore, comboAfter, casterAuras, dummyAuras, mods, targets);
|
||||
}
|
||||
d->DespawnOrUnsummon();
|
||||
handler->PSendSysMessage("casttest: %s, %zu spells; lines in %s", p->GetName().c_str(), ids.size(), path.c_str());
|
||||
handler->PSendSysMessage("casttest: %s, %zu spells, %s; lines in %s", p->GetName().c_str(), ids.size(), dummyPlace.c_str(), path.c_str());
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -87,6 +87,9 @@ struct ScenarioDef
|
||||
// A fixed landing spot instead of the ring search (z != 0), path-checked to the creature once, as a checkpoint's staging spot: a room
|
||||
// whose own corners are the danger (Kel'Thuzad's alcoves full of phase 1 adds that a raid on the rings walks into).
|
||||
float stage_x = 0.f, stage_y = 0.f, stage_z = 0.f;
|
||||
// The point the staging spot's route is checked to instead of the boss (z != 0): a boss who stands where no raider walks until his
|
||||
// fight brings him down (Gothik on his balcony, 18 y above his room: naxx22 failed its setup at 0 s, no route from the floor to him).
|
||||
float route_x = 0.f, route_y = 0.f, route_z = 0.f;
|
||||
// The school the squad gears resistance for, as a vanilla raid dressed for the fight (nature for Princess Huhuran); 0 = none. Every
|
||||
// armour and jewellery slot takes the piece with the most of it under the tier's item level (GearGenerationContext::resist_school).
|
||||
std::uint8_t resist_school = 0;
|
||||
@@ -319,6 +322,7 @@ struct RaidBossRow
|
||||
std::uint32_t start_add = 0; // see ScenarioDef::start_add
|
||||
float clear_formation_beyond = 0.f; // see ScenarioDef::clear_formation_beyond
|
||||
float stage_x = 0.f, stage_y = 0.f, stage_z = 0.f; // a listed landing spot instead of the ring search; see ScenarioDef::stage_x
|
||||
float route_x = 0.f, route_y = 0.f, route_z = 0.f; // see ScenarioDef::route_x
|
||||
// The instance data of the bosses a raid kills before this one (SetData type, value), set at the attack: see ScenarioDef::start_instance_data.
|
||||
std::array<std::pair<std::uint32_t, std::uint32_t>, 8> start_data{};
|
||||
std::uint8_t start_data_n = 0;
|
||||
@@ -396,6 +400,13 @@ constexpr RaidBossRow Staged(RaidBossRow r, float x, float y, float z)
|
||||
return r;
|
||||
}
|
||||
|
||||
// A staged row whose boss no raider can walk to before his fight (ScenarioDef::route_x): the landing's route is checked to this point.
|
||||
constexpr RaidBossRow RoutesTo(RaidBossRow r, float x, float y, float z)
|
||||
{
|
||||
r.route_x = x; r.route_y = y; r.route_z = z;
|
||||
return r;
|
||||
}
|
||||
|
||||
// A row whose boss a raid fights after others, with fight parts that only the living ones bring (Hakkar's five Aspects and his Power
|
||||
// stacks, one per High Priest alive): the instance data the runner sets at the attack (ScenarioDef::start_instance_data), in order.
|
||||
constexpr RaidBossRow After(RaidBossRow r, std::initializer_list<std::pair<std::uint32_t, std::uint32_t>> data)
|
||||
@@ -475,6 +486,7 @@ inline ScenarioDef MakeRaidScenario(RaidBossRow const& r, RaidEntrance const& e,
|
||||
d.start_add = r.start_add;
|
||||
d.clear_formation_beyond = r.clear_formation_beyond;
|
||||
d.stage_x = r.stage_x; d.stage_y = r.stage_y; d.stage_z = r.stage_z;
|
||||
d.route_x = r.route_x; d.route_y = r.route_y; d.route_z = r.route_z;
|
||||
d.start_instance_data.assign(r.start_data.begin(), r.start_data.begin() + r.start_data_n);
|
||||
d.order_attack = true;
|
||||
d.order_delay_ms = 20000;
|
||||
@@ -724,8 +736,14 @@ inline constexpr RaidBossRow kNaxxBosses[] = {
|
||||
16011, "Loatheb", 25 },
|
||||
{ "naxx_razuvious", "Naxxramas: 40 level 60 raiders to Instructor Razuvious (priests control the understudies that tank him)",
|
||||
16061, "Instructor Razuvious", 20, 16803 }, // Deathknight Understudy
|
||||
{ "naxx_gothik", "Naxxramas: 40 level 60 raiders to Gothik the Harvester (the side split, waves, the gate, teleports)",
|
||||
16060, "Gothik the Harvester", 25 },
|
||||
// Gothik stands on his balcony (2642.1,-3387.0,285.5); his room's floor, where the combat gate stands (2692.07,-3360.78,267.5), is 18 y
|
||||
// below it. The ring search landed the raid at the balcony's height (2670.9,-3359.2,285.8, naxx-data-1114a), where the raid brain's
|
||||
// side split does not count it in the room: no split, and he reset at his first speech for fewer than 10 players on a side (naxx21,
|
||||
// 1114a). The raid lands on the living side's floor, 26 y south of the gate, and splits from there (RaidMechanics_Naxx.cpp, Gothik).
|
||||
// Nobody walks to him on the balcony, so the landing's route is checked to the dead side's spot of that split, 18 y north of the gate
|
||||
// (GothAnchor's first try): the way half the raid walks before the pull.
|
||||
RoutesTo(Staged({ "naxx_gothik", "Naxxramas: 40 level 60 raiders to Gothik the Harvester (the side split, waves, the gate, teleports)",
|
||||
16060, "Gothik the Harvester", 25 }, 2691.2f, -3387.0f, 267.7f), 2692.1f, -3342.8f, 267.5f),
|
||||
Sight(Keeps({ "naxx_horsemen", "Naxxramas: 40 level 60 raiders to the Four Horsemen (marks, the tank rotation, Void Zones, Meteor)",
|
||||
16062, "Highlord Mograine", 25, 16063 }, 16064, 16065), 83.f), // Zeliek, Korth'azz, Blaumeux; they see 75 y
|
||||
// His formation in the world DB spans the hall's trash (Bile Retchers 16018, 16017, 16021, 16029, 3000-3171 x, up to 300 y from him),
|
||||
@@ -734,8 +752,13 @@ inline constexpr RaidBossRow kNaxxBosses[] = {
|
||||
// of his sight twice (1114e, 1114f: 17 spots near the walk, 43 out of sight, 158 without floor) and the healers' heals failed for line
|
||||
// of sight while the tanks died at the edge of the walk. It waits on the room's lower floor south of the walk (z 292.6, out of his
|
||||
// sight while he walks), and once he is pulled it goes up into the hall, where he is fought (RaidEncounterData_NAXX.cpp).
|
||||
// That lower floor lies behind his exit gate (181123 at 3318.0,-3254.4, closed until he dies): with bot paths kept clear of closed
|
||||
// doors the staging route stopped at the gate (release-0138 setup: path type 0x4, 46 y for 69 y straight), and no player stands
|
||||
// there before he dies. The raid waits at the hall's west end instead, on its own floor (z 294.1): a complete 48.5 y route to his
|
||||
// spawn, away from the gate (PC check on the map 533 navmesh, 2026-11-18). It is in his hall, so if his walk reaches it during the
|
||||
// hold he is pulled early: watch the first run for that.
|
||||
Staged(ClearsFormation({ "naxx_patchwerk", "Naxxramas: 40 level 60 raiders to Patchwerk (Hateful Strike soaked by three off tanks)",
|
||||
16028, "Patchwerk", 15 }, 20.f), 3285.0f, -3297.0f, 292.6f),
|
||||
16028, "Patchwerk", 15 }, 20.f), 3260.0f, -3232.0f, 294.1f),
|
||||
{ "naxx_grobbulus", "Naxxramas: 40 level 60 raiders to Grobbulus (Mutating Injection carrier runs, poison clouds, Slime Spray cone)",
|
||||
15931, "Grobbulus", 20 },
|
||||
// Gluth sees 49 y (MoveInLineOfSight, classic_boss_gluth.cpp) from his spawn 3283.1,-3157.0 in the middle of his room. The raid lands
|
||||
@@ -751,6 +774,13 @@ inline constexpr RaidBossRow kNaxxBosses[] = {
|
||||
// splits the raid onto them before the pull (RaidMechanics_Naxx.cpp, Thaddius).
|
||||
Staged(OpensOn(Keeps({ "naxx_thaddius", "Naxxramas: 40 level 60 raiders to Thaddius (Stalagg and Feugen first, Static Field, Polarity Shift sides)",
|
||||
15928, "Thaddius", 25, 15929 }, 15930), 15929), 3421.9f, -3017.5f, 295.6f), // Stalagg, Feugen
|
||||
// Sapphiron has no creature row: the instance summons him at his lair once the raid touches his bones (GO_SAPPHIRON_SPAWN, Birth in
|
||||
// classic_boss_sapphiron.cpp; EVENT_SPAWN_SAPPHIRON at aSapphPositions, classic_naxxramas.h). The runner summons him there, as for
|
||||
// Ragnaros. Frost Aura (28529) on the whole raid, Life Drain, Blizzard, Cleave and Tail Sweep on the ground, then the air phase every 40 s
|
||||
// of ground: Icebolts that freeze their targets into ice blocks and Frost Breath, which only the blocks shelter from
|
||||
// (RaidMechanics_Naxx.cpp, Sapphiron). Worn in frost resistance, as a raid goes in.
|
||||
Sight(Resist({ "naxx_sapphiron", "Naxxramas: 40 level 60 raiders to Sapphiron (Frost Aura, Life Drain decursed, Blizzard, air phase: ice blocks and Frost Breath)",
|
||||
15989, "Sapphiron", 25, 0, 0, 0, 3522.56f, -5236.76f, 137.626f, 4.4855f }, ScnSchool::Frost), 60.f),
|
||||
};
|
||||
|
||||
// ---- Naxxramas, Kel'Thuzad: the whole fight from the start of phase 1, 40 level 60 raiders ----
|
||||
|
||||
@@ -63,6 +63,7 @@
|
||||
#include "Util.h"
|
||||
#include "fmt/format.h"
|
||||
|
||||
#include "SpellAuraEffects.h"
|
||||
#include "SpellAuras.h"
|
||||
#include "SpellHistory.h"
|
||||
#include "SpellInfo.h"
|
||||
@@ -181,6 +182,16 @@ struct PullStat
|
||||
// capped by the tank's threat, not by its rotation). For the boss's victim: the seconds it was the victim.
|
||||
float threat_last = 0.f;
|
||||
std::uint32_t threat_peak_pct = 0, threat_capped = 0, victim_seconds = 0;
|
||||
// The seconds counted in <moving>, split by what the raider's own victim was doing: in its melee reach (a step around a target it can
|
||||
// already hit), the victim walking too (a chase), or neither (a walk to a spot). naxx_patchwerk / naxx_gluth 1116 run 4: rogues and
|
||||
// warriors moving 72-91 s of 251 on a boss that stands still, and 157-204 s of 362 on Gluth, with nothing in the log saying why.
|
||||
std::uint32_t moving_in_reach = 0, moving_victim_moving = 0;
|
||||
// ... and for the seconds in reach, the movement generator that moved it and the bot rule fired last (run 5: rogues and the
|
||||
// retribution paladin moving 74-96 s of 246 within reach of Patchwerk, who stands still).
|
||||
std::map<std::string, std::uint32_t> in_reach_movers;
|
||||
// A tank's victim at the last sample: a change is logged with the rule that held its tick (naxx_maexxna r23: the main tank was on a
|
||||
// spiderling 12 y from Maexxna at 39 s, "assigned Maexxna", she was on the second tank, and the log could not say what took it off her).
|
||||
ObjectGuid tank_victim;
|
||||
// Damage and healing by spell, the breakdown a combat log parse shows (what each raider's damage came from, how much of a heal was
|
||||
// overheal). Added from the map threads, hence the lock. Key: spell id, bit 31 set for the raider's pet; 0 = a melee swing.
|
||||
struct SpellTally { std::uint64_t damage = 0; std::uint32_t hits = 0; std::uint64_t heal_raw = 0, heal_eff = 0; std::uint32_t heals = 0; };
|
||||
@@ -286,6 +297,7 @@ struct Run
|
||||
bool checkpoint = false;
|
||||
bool has_stage = false; // a checkpoint with a listed staging spot (ScenarioCheckpoint::stage_*)
|
||||
float stage_x = 0.f, stage_y = 0.f, stage_z = 0.f;
|
||||
float route_x = 0.f, route_y = 0.f, route_z = 0.f; // where the staging route is checked to instead of the creature (ScenarioDef::route_x)
|
||||
std::string from_key;
|
||||
// Which of the squads running side by side this is (0 = the first): a squad beyond the first is made of characters of its own,
|
||||
// with the slot's letter in their names (SquadName).
|
||||
@@ -827,8 +839,14 @@ constexpr float kArriveClearance = 40.f;
|
||||
// is not in the world: his patrol through his own room left no spot in his sight 30 y off the walk (naxx_patchwerk 1114e: the raid landed
|
||||
// out of his sight on the floor 1.6 y below, and 9-12 heals per healer failed for line of sight in the first 10 s while the tanks died),
|
||||
// and the order goes out while he is still kPatrolOrderYards off, so only his reach matters while he walks past.
|
||||
// GetAttackDistance is the reach between the two edges: the core's sight check (Creature::CanStartAttack, IsWithinDistInMap) adds both
|
||||
// combat reaches to it, so the clearance carries the boss's reach and a raider's too, and kPatrolPetMargin for the pets standing beside
|
||||
// their owners. naxx_grobbulus naxx22 1116: 17 y of clearance (his attack distance is the 5 y minimum, his reach not counted), the raid held
|
||||
// 56 s for its blessings, and on his walk past he took a warlock's imp at the edge of the squad, killed it, and evaded with nobody else on
|
||||
// his threat list: the run failed at 79 s with him at 100%.
|
||||
constexpr float kPatrolClearance = 30.f;
|
||||
constexpr float kPatrolSpreadMargin = 12.f; // the squad's spread round the landing spot (8 y) plus a step
|
||||
constexpr float kPatrolPetMargin = 4.f; // a pet stands up to this far beside its owner
|
||||
|
||||
// A dungeon checkpoint lands the squad among the trash the group would meet anyway (it is bot-led from the first second), so it must
|
||||
// only be out of every pack's aggro, not 40 y clear: a 5-man has hostiles everywhere (deadmines_full@sneed: the nearest to any candidate
|
||||
@@ -1327,7 +1345,12 @@ bool PickArrival(Run& run, Player* leader)
|
||||
// stands at the instance's entrance, hundreds of yards off, and FindBoss from there found nobody (naxx_thaddius 1115e checked the
|
||||
// route to Thaddius again, 129 y straight, and failed the same way). Stalagg and Feugen are his summons, so not in the spawn store.
|
||||
float tx = run.boss_x, ty = run.boss_y, tz = run.boss_z;
|
||||
if (run.def->start_add)
|
||||
if (run.route_z != 0.f)
|
||||
{
|
||||
tx = run.route_x; ty = run.route_y; tz = run.route_z;
|
||||
TC_LOG_INFO("playerbot.v2", "[scenario] {} the staging route is checked to {:.1f},{:.1f},{:.1f}, not to the boss", run.def->name, tx, ty, tz);
|
||||
}
|
||||
else if (run.def->start_add)
|
||||
{
|
||||
Creature* boss = nullptr;
|
||||
float bossDist = 50.f;
|
||||
@@ -1410,7 +1433,8 @@ bool PickArrival(Run& run, Player* leader)
|
||||
if (Creature const* boss = FindBoss(run))
|
||||
{
|
||||
path_id = boss->GetWaypointPathId();
|
||||
patrol_clearance = boss->GetAttackDistance(leader) + kPatrolSpreadMargin;
|
||||
patrol_clearance = boss->GetAttackDistance(leader) + boss->GetCombatReach() + leader->GetCombatReach() + kPatrolSpreadMargin +
|
||||
kPatrolPetMargin;
|
||||
}
|
||||
if (!path_id && run.boss_spawn_id)
|
||||
if (CreatureAddon const* addon = sObjectMgr->GetCreatureAddon(run.boss_spawn_id))
|
||||
@@ -1662,13 +1686,49 @@ void LogBuffs(Run const& run)
|
||||
if (!p)
|
||||
continue;
|
||||
std::string auras;
|
||||
// What each buff does to health, by its effects (sta = stamina, sta% / all% = a percent of stamina / of all stats, hp = flat health,
|
||||
// hp% = percent health): naxx_patchwerk 1116 run 5, the tanks at 10.9k with Fortitude, Kings, the Wild, Flask of the Titans,
|
||||
// Mol'dar's and Zandalar on them, about 4k short of what those buffs add on T3, and nothing in the log said which one fell short.
|
||||
std::string health, other;
|
||||
for (auto const& [id, app] : p->GetAppliedAuras())
|
||||
if (app->IsPositive() && app->GetBase() && !app->GetBase()->IsPassive())
|
||||
{
|
||||
auras += fmt::format("{}{}", auras.empty() ? "" : " ", id);
|
||||
for (AuraEffect const* eff : app->GetBase()->GetAuraEffects())
|
||||
{
|
||||
if (!eff)
|
||||
continue;
|
||||
int32 const misc = eff->GetMiscValue();
|
||||
char const* kind = nullptr;
|
||||
switch (eff->GetAuraType())
|
||||
{
|
||||
case SPELL_AURA_MOD_STAT: kind = (misc == STAT_STAMINA || misc < 0) ? "sta" : nullptr; break;
|
||||
case SPELL_AURA_MOD_PERCENT_STAT:
|
||||
case SPELL_AURA_MOD_TOTAL_STAT_PERCENTAGE: kind = misc == STAT_STAMINA ? "sta%" : misc < 0 ? "all%" : nullptr; break;
|
||||
case SPELL_AURA_MOD_INCREASE_HEALTH:
|
||||
case SPELL_AURA_MOD_INCREASE_HEALTH_2: kind = "hp"; break;
|
||||
case SPELL_AURA_MOD_INCREASE_HEALTH_PERCENT:
|
||||
case SPELL_AURA_MOD_INCREASE_HEALTH_PERCENT2: kind = "hp%"; break;
|
||||
default: break;
|
||||
}
|
||||
if (kind)
|
||||
health += fmt::format(" {}:{}{:+}", id, kind, eff->GetAmountAsInt());
|
||||
else if (p->GetPowerType() == POWER_RAGE || m.def.role == ScenarioRoleKind::Tank)
|
||||
// A tank's other effects too, by aura type / misc value (run 6: Mol'dar's Fortitude 22818 and Songflower 15366 on
|
||||
// every tank and neither showed as health or stamina).
|
||||
other += fmt::format(" {}:t{}/{}{:+}", id, uint32(eff->GetAuraType()), misc, eff->GetAmountAsInt());
|
||||
}
|
||||
}
|
||||
TC_LOG_INFO("playerbot.v2", "[scenario] buffs {} hp={}/{} mana={}/{} resist fire={} nature={} frost={} shadow={} arcane={} auras [{}]",
|
||||
p->GetName(), p->GetHealth(), p->GetMaxHealth(), p->GetPower(POWER_MANA), p->GetMaxPower(POWER_MANA),
|
||||
p->GetResistance(SPELL_SCHOOL_FIRE), p->GetResistance(SPELL_SCHOOL_NATURE), p->GetResistance(SPELL_SCHOOL_FROST),
|
||||
p->GetResistance(SPELL_SCHOOL_SHADOW), p->GetResistance(SPELL_SCHOOL_ARCANE), auras);
|
||||
TC_LOG_INFO("playerbot.v2", "[scenario] health {} max={} stamina={} (base {}) base health {} flat +{} pct x{:.2f} stamina pct x{:.2f} |{}",
|
||||
p->GetName(), p->GetMaxHealth(), int32(p->GetStat(STAT_STAMINA)), int32(p->GetCreateStat(STAT_STAMINA)), p->GetCreateHealth(),
|
||||
int32(p->GetFlatModifierValue(UNIT_MOD_HEALTH, TOTAL_VALUE)), p->GetPctModifierValue(UNIT_MOD_HEALTH, TOTAL_PCT),
|
||||
p->GetPctModifierValue(UNIT_MOD_STAT_STAMINA, TOTAL_PCT), health.empty() ? " -" : health);
|
||||
if (!other.empty())
|
||||
TC_LOG_INFO("playerbot.v2", "[scenario] effects {}{}", p->GetName(), other);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2471,6 +2531,15 @@ void ReportPull(Run& run, char const* when)
|
||||
}
|
||||
if (st.mana_min <= 100)
|
||||
rules += fmt::format(" | mana avg {}% min {}% seconds under 20% {}", alive ? st.mana_sum / alive : 0u, st.mana_min, st.mana_lt20);
|
||||
if (st.moving)
|
||||
rules += fmt::format(" | moving in its victim's reach {} s, after a moving victim {} s, elsewhere {} s", st.moving_in_reach,
|
||||
st.moving_victim_moving, st.moving - std::min(st.moving, st.moving_in_reach + st.moving_victim_moving));
|
||||
if (!st.in_reach_movers.empty())
|
||||
{
|
||||
rules += " | in reach moved by";
|
||||
for (auto const& [k, n] : st.in_reach_movers)
|
||||
rules += fmt::format(" {}={}", k, n);
|
||||
}
|
||||
TC_LOG_INFO("playerbot.v2", "[pull_stats] {} {} {} {} damage={} boss={} hits={} seconds={} casting={} moving={} held={} dead={} rules{}",
|
||||
run.def->name, m.def.name, ClassName(m.def.cls), RoleName(m.def.role), st.damage.load(), st.boss_damage.load(), st.hits.load(),
|
||||
st.seconds, st.casting, st.moving, st.held, st.dead, rules.empty() ? " -" : rules);
|
||||
@@ -2528,10 +2597,45 @@ void SamplePull(Run& run)
|
||||
st.threat_capped += pct >= kThreatCappedPct ? 1u : 0u;
|
||||
}
|
||||
}
|
||||
if (m.def.role == ScenarioRoleKind::Tank)
|
||||
{
|
||||
Unit* const v = p->GetVictim();
|
||||
ObjectGuid const vg = v ? v->GetGUID() : ObjectGuid::Empty;
|
||||
if (vg != st.tank_victim)
|
||||
{
|
||||
Unit* const was = st.tank_victim.IsEmpty() ? nullptr : ObjectAccessor::GetUnit(*p, st.tank_victim);
|
||||
BotAI* tai = ::Playerbot::Services::Registry().ai(m.id);
|
||||
char const* r = tai ? tai->last_rule_fired() : nullptr;
|
||||
std::string const from = was ? fmt::format("{} ({}) {:.0f}% {:.0f} y{}", was->GetName(), was->GetEntry(), was->GetHealthPct(),
|
||||
p->GetExactDist2d(was), was->GetVictim() == p ? " on it" : "")
|
||||
: std::string("-");
|
||||
std::string const to = v ? fmt::format("{} ({}) {:.0f}% {:.0f} y, on {}", v->GetName(), v->GetEntry(), v->GetHealthPct(),
|
||||
p->GetExactDist2d(v), v->GetVictim() ? v->GetVictim()->GetName() : std::string("-"))
|
||||
: std::string("-");
|
||||
TC_LOG_INFO("playerbot.v2", "[scenario] {} t={}s tank {} switches from {} to {}, rule={}, boss on {}", run.def->name,
|
||||
(run.run_ms - run.pull_start_ms) / 1000u, p->GetName(), from, to, r ? r : "-",
|
||||
boss_victim ? boss_victim->GetName() : std::string("-"));
|
||||
st.tank_victim = vg;
|
||||
}
|
||||
}
|
||||
if (p->IsNonMeleeSpellCast(false))
|
||||
++st.casting;
|
||||
if (p->isMoving())
|
||||
{
|
||||
++st.moving;
|
||||
if (Unit* v = p->GetVictim())
|
||||
{
|
||||
if (p->IsWithinMeleeRange(v))
|
||||
{
|
||||
++st.moving_in_reach;
|
||||
BotAI* mai = ::Playerbot::Services::Registry().ai(m.id);
|
||||
char const* r = mai ? mai->last_rule_fired() : nullptr;
|
||||
++st.in_reach_movers[fmt::format("gen {} {}", uint32(p->GetMotionMaster()->GetCurrentMovementGeneratorType()), r ? r : "-")];
|
||||
}
|
||||
else if (v->isMoving())
|
||||
++st.moving_victim_moving;
|
||||
}
|
||||
}
|
||||
if (p->GetMaxPower(POWER_MANA) > 0)
|
||||
{
|
||||
std::uint32_t const pct = std::uint32_t(std::uint64_t(p->GetPower(POWER_MANA)) * 100u / std::uint64_t(p->GetMaxPower(POWER_MANA)));
|
||||
@@ -3240,6 +3344,7 @@ bool BeginScenario(std::string const& full_name, int slot, std::string& error)
|
||||
{
|
||||
run.has_stage = true;
|
||||
run.stage_x = def->stage_x; run.stage_y = def->stage_y; run.stage_z = def->stage_z;
|
||||
run.route_x = def->route_x; run.route_y = def->route_y; run.route_z = def->route_z;
|
||||
}
|
||||
run.from_key = from_key;
|
||||
if (run.arrive_entry && !FindBossSpawn(run))
|
||||
|
||||
@@ -59,6 +59,7 @@ constexpr std::array<RaceWeight, 15> kAllianceRaces = { {
|
||||
{ RACE_MECHAGNOME, 1 },
|
||||
{ RACE_EARTHEN_DWARF_ALLIANCE,2 },
|
||||
{ 86, 1 }, // Haranir (Midnight) — currently disabled in TC
|
||||
{ Fleet::Skyborne::kRaceAlliance, Fleet::Skyborne::kRaceWeight }, // High Order Skyborne (Classic 1.60 only)
|
||||
} };
|
||||
|
||||
constexpr std::array<RaceWeight, 15> kHordeRaces = { {
|
||||
|
||||
@@ -766,8 +766,9 @@ static bool EnsureShieldTankWeapon(Player* p)
|
||||
if (oh && oh->GetTemplate() &&
|
||||
oh->GetTemplate()->GetInventoryType() == INVTYPE_SHIELD)
|
||||
return false;
|
||||
// A fishing pole is no tank weapon whatever its inventory type (11-17: a tank given "different gear sets" tanked with one).
|
||||
bool const mh_is_2h = mh && mh->GetTemplate() &&
|
||||
mh->GetTemplate()->GetInventoryType() == INVTYPE_2HWEAPON;
|
||||
(mh->GetTemplate()->GetInventoryType() == INVTYPE_2HWEAPON || Gear::IsFishingPole(mh->GetEntry()));
|
||||
|
||||
Gear::GearGenerationContext ctx;
|
||||
ctx.level = p->GetLevel();
|
||||
|
||||
@@ -53,6 +53,7 @@
|
||||
#include "StringFormat.h"
|
||||
#include "MotionMaster.h"
|
||||
#include "../Bot/World/ZonePicker.h"
|
||||
#include "../Bot/World/GrindSpot.h"
|
||||
#include "../Bot/World/SpreadSpot.h"
|
||||
#include "Config.h"
|
||||
#include "GameTime.h"
|
||||
@@ -258,6 +259,8 @@ void WorldBotSpawner::LoadConfig()
|
||||
c.city_bots = uint32(sConfigMgr->GetIntDefault("Playerbot.World.CityBots", 0, true));
|
||||
c.zone_bots = uint32(sConfigMgr->GetIntDefault("Playerbot.World.ZoneBots", 0, true));
|
||||
c.start_zone_bots = uint32(sConfigMgr->GetIntDefault("Playerbot.World.StartZoneBots", 25, true));
|
||||
c.mobs_per_bot = uint32(std::clamp<int64>(sConfigMgr->GetIntDefault("Playerbot.World.MobsPerBot", 10, true), 0, 1000));
|
||||
c.supply_floor = uint32(std::clamp<int64>(sConfigMgr->GetIntDefault("Playerbot.World.MobSupplyFloor", 5, true), 0, 1000));
|
||||
c.activity_radius = std::max(50.0f, sConfigMgr->GetFloatDefault("Playerbot.World.ActivityRadius", 300.0f, true));
|
||||
c.despawn_radius = std::max(c.activity_radius * 1.1f,
|
||||
sConfigMgr->GetFloatDefault("Playerbot.World.DespawnRadius", c.activity_radius * 1.5f, true));
|
||||
@@ -862,8 +865,23 @@ void WorldBotSpawner::TrackMotion(uint32 now_ms, std::vector<Anchor>& anchors)
|
||||
it = seen.count(it->first) ? std::next(it) : motion_.erase(it);
|
||||
}
|
||||
|
||||
// Plain bot numbers: what one place wants before the cap is shared (city number, the zone's rolled number, the start-zone cap,
|
||||
// then the hour of the day).
|
||||
uint32 WorldBotSpawner::SupplyCapFor(Anchor const& a) const
|
||||
{
|
||||
if (!cfg_.mobs_per_bot)
|
||||
return UINT32_MAX;
|
||||
uint64 const key = ::Playerbot::V2::Fleet::PlaceKey(a.map, a.zone);
|
||||
if (auto it = supply_cap_.find(key); it != supply_cap_.end() && it->second.level == a.level)
|
||||
return it->second.cap;
|
||||
uint32 const mobs = ::Playerbot::V2::World::GrindMobsNear(a.alliance, a.map, a.x, a.y, a.level, cfg_.activity_radius);
|
||||
uint32 const cap = ::Playerbot::V2::World::SupplyBotCap(mobs, cfg_.mobs_per_bot, cfg_.supply_floor);
|
||||
supply_cap_[key] = SupplyCap{ a.level, cap };
|
||||
TC_LOG_INFO("playerbot.v2", "[world] mob supply zone {} L{}: {} mobs of the level within {:.0f} y -> at most {} bots (MobsPerBot {}, floor {})",
|
||||
a.zone, uint32(a.level), mobs, cfg_.activity_radius, cap, cfg_.mobs_per_bot, cfg_.supply_floor);
|
||||
return cap;
|
||||
}
|
||||
|
||||
// Plain bot numbers: what one place wants before the cap is shared (city number, the zone's rolled number, the mob supply of a
|
||||
// leveling zone, the start-zone cap, then the hour of the day).
|
||||
uint32 WorldBotSpawner::PlaceWantFor(Anchor const& a)
|
||||
{
|
||||
namespace F = ::Playerbot::V2::Fleet;
|
||||
@@ -875,7 +893,7 @@ uint32 WorldBotSpawner::PlaceWantFor(Anchor const& a)
|
||||
auto it = zone_roll_.find(key);
|
||||
if (it == zone_roll_.end())
|
||||
it = zone_roll_.emplace(key, F::ZoneRoll(cfg_.zone_lo, cfg_.zone_hi, urand(0, 0x7FFFFFFF))).first;
|
||||
want = it->second;
|
||||
want = std::min(it->second, SupplyCapFor(a));
|
||||
}
|
||||
bool const start_zone = !town && cfg_.start_zone_bots && ::Playerbot::V2::World::IsStartZone(a.zone);
|
||||
if (start_zone)
|
||||
@@ -901,6 +919,7 @@ void WorldBotSpawner::PlanPlaces(uint32 now_ms, std::vector<Anchor> const& ancho
|
||||
if (getMSTimeDiff(it->second, now_ms) > std::max<uint32>(cfg_.leave_zone_ms, 1000u))
|
||||
{
|
||||
zone_roll_.erase(it->first);
|
||||
supply_cap_.erase(it->first);
|
||||
it = place_seen_ms_.erase(it);
|
||||
}
|
||||
else
|
||||
@@ -934,6 +953,8 @@ uint32 WorldBotSpawner::TargetFor(Anchor const& a) const
|
||||
bool const town = ::Playerbot::V2::World::IsVanillaCapitalZone(a.zone);
|
||||
uint32 const t = town ? cfg_.city_bots : cfg_.zone_bots;
|
||||
uint32 base = t ? t : cfg_.bots_per_player;
|
||||
if (!town)
|
||||
base = std::min(base, SupplyCapFor(a));
|
||||
// A start zone is one valley with one camp: the ordinary zone density piled 77 bots into Mulgore (PC 20 Oct), and the whole crowd walked back to the
|
||||
// camp's quest giver however often the crowd pass moved it.
|
||||
bool const start_zone = !town && cfg_.start_zone_bots && ::Playerbot::V2::World::IsStartZone(a.zone);
|
||||
|
||||
@@ -80,6 +80,8 @@ private:
|
||||
uint32 zone_bots = 0; // target when the player is in a leveling zone (0 = BotsPerPlayer)
|
||||
uint32 start_zone_bots = 25; // the same in a start zone (Mulgore, Durotar, ...), where a real realm has a few new characters (0 = ZoneBots)
|
||||
float activity_radius = 300.0f; // a bot this close to an anchor counts toward it
|
||||
uint32 mobs_per_bot = 10; // a leveling zone holds at most one bot per this many mobs of the player's level in reach (0 = off)
|
||||
uint32 supply_floor = 5; // ... but never fewer than this
|
||||
float despawn_radius = 450.0f; // a bot farther than this from every anchor is logged out
|
||||
float ring_min = 60.0f; // spawn ring (placement distance from the anchor)
|
||||
float ring_max = 220.0f;
|
||||
@@ -207,6 +209,11 @@ private:
|
||||
// players are in it; a place's roll and when it last had a player.
|
||||
void PlanPlaces(uint32 now_ms, std::vector<Anchor> const& anchors, std::vector<Anchor> const& keep_anchors);
|
||||
uint32 PlaceWantFor(Anchor const& a);
|
||||
// Mob supply cap of a leveling zone (Playerbot.World.MobsPerBot): taken when the zone gets its player (or the player's level
|
||||
// changes), so the number does not move with every step he takes; forgotten with the zone's roll.
|
||||
uint32 SupplyCapFor(Anchor const& a) const;
|
||||
struct SupplyCap { uint8 level = 0; uint32 cap = 0; };
|
||||
mutable std::unordered_map<uint64, SupplyCap> supply_cap_;
|
||||
std::unordered_map<uint64, uint32> place_target_, place_players_, zone_roll_, place_seen_ms_;
|
||||
std::string plain_logged_;
|
||||
std::optional<PopLevel> pop_level_; // the panel's choice (SetPopulation); loaded once from the database
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user