This commit is contained in:
Ovalord committed 2018-02-18 20:55:31 +01:00
commit c9b5bf9534
203 files changed
+1608 -341

No files matched your search

+7
View File
@@ -105,6 +105,13 @@ if ( HELGRIND )
add_definitions(-DHELGRIND)
endif()
if ( PERFORMANCE_PROFILING )
message("")
message(" *** PERFORMANCE_PROFILING - WARNING!")
message(" *** Please note that this is for PERFORMANCE PROFILING only! Do NOT report any issue when enabling this configuration!")
add_definitions(-DPERFORMANCE_PROFILING)
endif()
if (BUILD_SHARED_LIBS)
message("")
message(" *** WITH_DYNAMIC_LINKING - INFO!")
+1 -1
View File
@@ -7,7 +7,7 @@
#define _SOURCE_DIRECTORY R"(@CMAKE_SOURCE_DIR@)"
#define _BUILD_DIRECTORY R"(@BUILDDIR@)"
#define _MYSQL_EXECUTABLE R"(@MYSQL_EXECUTABLE@)"
#define _FULL_DATABASE "TDB_full_world_434.26_2018_01_15.sql"
#define _FULL_DATABASE "TDB_full_world_434.27_2018_02_16.sql"
#define VER_COMPANYNAME_STR "TrinityCore Developers"
#define VER_LEGALCOPYRIGHT_STR "(c)2008-2018 TrinityCore"
#define VER_FILEVERSION 0,0,0
+2 -1
View File
@@ -2000,7 +2000,8 @@ INSERT INTO `updates` VALUES
('2017_11_16_00_auth.sql','A53D70B4DB8686AB3A0B0E62471717F4F3902ADD','ARCHIVED','2017-11-16 01:40:04',0),
('2017_12_17_00_auth.sql','E2EC5999D5305FC12EA576D08EFB95D1660DCF4D','ARCHIVED','2017-12-17 01:40:04',0),
('2018_01_06_00_auth.sql','CD9B826B9D95697DC412DEF780E814FA3991D6CD','ARCHIVED','2018-01-06 01:40:04',0),
('2018_01_15_00_auth.sql','1C5C28490B27D86EBC14F6034AA4D34E66D5545D','ARCHIVED','2018-01-15 01:40:04',0);
('2018_01_15_00_auth.sql','1C5C28490B27D86EBC14F6034AA4D34E66D5545D','ARCHIVED','2018-01-15 01:40:04',0),
('2018_02_16_00_auth.sql','1AAD2FC649CBE8093ECE5908EBBBB31EC326166A','ARCHIVED','2018-02-16 01:40:04',0);
/*!40000 ALTER TABLE `updates` ENABLE KEYS */;
UNLOCK TABLES;
+2 -1
View File
@@ -2875,7 +2875,8 @@ INSERT INTO `updates` VALUES
('2017_11_26_00_characters.sql','4609CDC122E0A7F27A09C2605B329A06FC7FB7C2','ARCHIVED','2017-11-27 00:00:00',0),
('2017_11_28_00_characters.sql','6FF1F84B8985ADFC7FF97F0BF8E53403CF13C320','ARCHIVED','2017-11-28 00:00:00',0),
('2017_12_17_00_characters.sql','937E8F51DC74AC41FF8F213CE36C69DDEB878D6A','ARCHIVED','2017-12-17 00:00:00',0),
('2018_01_15_00_characters.sql','43C8E4549E1AA9610B377BC7139C88C63D0DC193','ARCHIVED','2018-01-15 00:00:00',0);
('2018_01_15_00_characters.sql','43C8E4549E1AA9610B377BC7139C88C63D0DC193','ARCHIVED','2018-01-15 00:00:00',0),
('2018_02_16_00_characters.sql','F1254689CE8A0B0AF149E557830287FF583B8D91','ARCHIVED','2018-02-16 00:00:00',0);
/*!40000 ALTER TABLE `updates` ENABLE KEYS */;
UNLOCK TABLES;
@@ -0,0 +1,31 @@
/*
-- Remove unique items from reference table 24078
DELETE FROM `reference_loot_template` WHERE `Entry`=24078 AND `Item` IN (899, 1391, 1440, 1446, 1469, 1473, 1929, 1930, 1936, 1943, 1944, 1945, 1951, 2020, 4290, 10400, 10401, 10402);
-- Add former items from reference table 24078 to their proper NPCs
DELETE FROM `creature_loot_template` WHERE `Item` IN (899, 1391, 1440, 1446, 1469, 1473, 1929, 1930, 1936, 1943, 1944, 1945, 1951, 2020, 4290, 10400, 10401, 10402);
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Chance`, `GroupId`, `Comment`) VALUES
(217, 899, 0.1, 0, "Venom Web Spider - Venom Web Fang"),
(453, 1391, 0.1, 0, "Riverpaw Mystic - Riverpaw Mystic Staff"),
(446, 1440, 0.1, 0, "Redridge Basher - Gnoll Skull Basher"),
(440, 1446, 0.1, 0, "Blackrock Grunt - Blackrock Boots"),
(578, 1469, 0.1, 0, "Murloc Scout - Scimitar of Atun"),
(14270, 1469, 1, 0, "Squiddic - Scimitar of Atun"),
(545, 1473, 0.1, 0, "Murloc Tidecaller - Riverside Staff"),
(1729, 1929, 0.1, 0, "Defias Evoker - Silk-threaded Trousers"),
(4418, 1929, 0.1, 0, "Defias Wizard - Silk-threaded Trousers"),
(598, 1930, 0.1, 0, "Defias Miner - Stonemason Cloak"),
(622, 1936, 0.1, 0, "Goblin Engineer - Goblin Screwdriver"),
(3947, 1943, 0.1, 0, "Goblin Shipbuilder - Goblin Mail Leggings"),
(1731, 1944, 0.1, 0, "Goblin Craftsman - Metalworking Gloves"),
(641, 1945, 0.1, 0, "Goblin Woodcarver - Woodworking Gloves"),
(657, 1951, 0.1, 0, "Defias Pirate - Blackwater Cutlass"),
(1732, 1951, 0.1, 0, "Defias Squallshaper - Blackwater Cutlass"),
(539, 2020, 0.1, 0, "Pygmy Venom Web Spider - Hollowfang Blade"),
(832, 4290, 0.5, 0, "Dust Devil - Dust Bowl"),
(634, 10400, 0.5, 2, "Defias Overseer - Blackened Defias Leggings"),
(4417, 10400, 0.5, 2, "Defias Taskmaster - Blackened Defias Leggings"),
(634, 10401, 0.5, 2, "Defias Overseer - Blackened Defias Gloves"),
(4417, 10401, 0.5, 2, "Defias Taskmaster - Blackened Defias Gloves"),
(4416, 10402, 0.5, 0, "Defias Strip Miner - Blackened Defias Boots");
*/
@@ -0,0 +1,55 @@
--
DELETE FROM `reference_loot_template` WHERE `entry`=11001;
INSERT INTO `reference_loot_template` (`Entry`, `Item`, `Chance`, `QuestRequired`, `LootMode`, `GroupId`, `MinCount`, `MaxCount`) VALUES
(11001, 118, 0.5 , 0, 1, 1, 1, 1),
(11001, 159, 0.1 , 0, 1, 1, 1, 1),
(11001, 774, 0.1 , 0, 1, 1, 1, 1),
(11001, 1423, 0.1 , 0, 1, 1, 1, 1),
(11001, 2407, 0.1 , 0, 1, 1, 1, 1),
(11001, 2455, 0.5 , 0, 1, 1, 1, 1),
(11001, 2589, 0.5 , 0, 1, 1, 1, 1),
(11001, 4540, 0.1 , 0, 1, 1, 1, 1),
(11001, 4565, 0.1 , 0, 1, 1, 1, 1),
(11001, 4757, 0.1 , 0, 1, 1, 1, 1),
(11001, 4775, 0.1 , 0, 1, 1, 1, 1),
(11001, 4814, 0.1 , 0, 1, 1, 1, 1),
(11001, 5523, 0.1 , 0, 1, 1, 1, 1),
(11001, 6289, 30 , 0, 1, 1, 1, 1),
(11001, 6291, 36 , 0, 1, 1, 1, 1),
(11001, 6292, 0.5 , 0, 1, 1, 1, 1),
(11001, 6294, 0.5 , 0, 1, 1, 1, 1),
(11001, 6295, 0.1 , 0, 1, 1, 1, 1),
(11001, 6303, 15 , 0, 1, 1, 1, 1),
(11001, 6308, 0.5 , 0, 1, 1, 1, 1),
(11001, 6356, 2 , 0, 1, 1, 1, 1),
(11001, 6358, 0.1 , 0, 1, 1, 1, 1),
(11001, 6361, 0.1 , 0, 1, 1, 1, 1),
(11001, 6643, 0.1 , 0, 1, 1, 1, 1),
(11001, 6889, 0.1 , 0, 1, 1, 1, 1),
(11001, 7096, 0.1 , 0, 1, 1, 1, 1),
(11001, 7097, 0.1 , 0, 1, 1, 1, 1),
(11001, 20812, 0.1, 0, 1, 1, 1, 1),
(11001, 20813, 0.1, 0, 1, 1, 1, 1),
(11001, 20847, 0.1, 0, 1, 1, 1, 1),
(11001, 20848, 0.1, 0, 1, 1, 1, 1),
(11001, 21002, 0.1, 0, 1, 1, 1, 1),
(11001, 21004, 0.1, 0, 1, 1, 1, 1),
(11001, 21006, 0.1, 0, 1, 1, 1, 1),
(11001, 21008, 0.1, 0, 1, 1, 1, 1),
(11001, 21009, 0.1, 0, 1, 1, 1, 1),
(11001, 21011, 0.1, 0, 1, 1, 1, 1),
(11001, 21013, 0.1, 0, 1, 1, 1, 1),
(11001, 21014, 0.1, 0, 1, 1, 1, 1),
(11001, 21019, 0.1, 0, 1, 1, 1, 1),
(11001, 23333, 0.1, 0, 1, 1, 1, 1),
(11001, 27668, 0.1, 0, 1, 1, 1, 1),
(11001, 45190, 2 , 0, 1, 1, 1, 1),
(11001, 45194, 2 , 0, 1, 1, 1, 1),
(11001, 45195, 0.1, 0, 1, 1, 1, 1),
(11001, 45196, 2 , 0, 1, 1, 1, 1),
(11001, 45197, 0.1, 0, 1, 1, 1, 1),
(11001, 45198, 2 , 0, 1, 1, 1, 1),
(11001, 45199, 0.1, 0, 1, 1, 1, 1),
(11001, 45200, 2 , 0, 1, 1, 1, 1),
(11001, 45201, 0.1, 0, 1, 1, 1, 1),
(11001, 45202, 0.1, 0, 1, 1, 1, 1);
@@ -0,0 +1,25 @@
/*
-- Remove unique items from reference table 24060, as well as removing Agile Boots (4788) which is sold only and does not drop
DELETE FROM `reference_loot_template` WHERE `Entry`=24060 AND `Item` IN (1218, 1220, 1296, 1300, 1448, 1460, 1934, 2021, 2166, 2167, 2168, 3018, 3227, 4788, 4949, 5182, 5183);
-- Add former items from reference table 24060 to their proper NPCs, as well as removing 4788 which is sold only and does not drop
DELETE FROM `creature_loot_template` WHERE `Item` IN (1218, 1220, 1296, 1300, 1448, 1460, 1934, 2021, 2166, 2167, 2168, 3018, 3227, 4788, 4949, 5182, 5183);
INSERT INTO `creature_loot_template` (`Entry`,`Item`,`Chance`,`GroupId`,`Comment`) VALUES
(445, 1218, 0.1, 0, "Redridge Alpha - Heavy Gnoll War Club"),
(580, 1220, 0.1, 0, "Redridge Drudger - Lupine Axe"),
(437, 1296, 0.1, 0, "Blackrock Renegade - Blackrock Mace"),
(4065, 1296, 0.1, 0, "Blackrock Sentry - Blackrock Mace"),
(436, 1300, 0.1, 0, "Blackrock Shadowcaster - Lesser Staff of the Spire"),
(485, 1448, 0.1, 0, "Blackrock Outrunner - Blackrock Gauntlets"),
(434, 1460, 0.1, 0, "Rabid Shadowhide Gnoll - Shadowhide Two-handed Sword"),
(636, 1934, 0.1, 0, "Defias Blackguard - Stonemason Trousers"),
(569, 2021, 0.1, 0, "Green Recluse - Green Carapace Shield"),
(626, 2166, 2, 2, "Foreman Thistlenettle - Foreman's Leggings"),
(626, 2167, 2, 2, "Foreman Thistlenettle - Foreman's Gloves"),
(626, 2168, 2, 2, "Foreman Thistlenettle - Foreman's Boots"),
(521, 3018, 2, 2, "Lupos - Hide of Lupos"),
(521, 3227, 2, 2, "Lupos - Nightbane Staff"),
(7170, 4949, 100, 0, "Thragomm - Orcish Cleaver"),
(3398, 5182, 2, 2, "Gesharahan - Shiver Blade"),
(3398, 5183, 2, 2, "Gesharahan - Pulsating Hydra Heart");
*/
@@ -0,0 +1,87 @@
/*
-- Ragged Timber Wolf
DELETE FROM `creature_loot_template` WHERE `Entry`=704;
INSERT INTO `creature_loot_template` (`Entry`,`Item`,`Reference`,`Chance`,`QuestRequired`,`LootMode`,`GroupId`,`MinCount`,`MaxCount`,`Comment`) VALUES
(704, 750, 0, 100, 1, 1, 0, 1, 1, "Tough Wolf Meat (quest)"),
(704, 4865, 0, 20, 0, 1, 1, 1, 2, "Ruined Pelt"),
(704, 3300, 0, 30, 0, 1, 1, 1, 2, "Rabbit's Foot"),
(704, 7074, 0, 20, 0, 1, 1, 1, 2, "Chipped Claw"),
(704, 7073, 0, 30, 0, 1, 1, 1, 2, "Broken Fang"),
(704, 24073, 24073, 1, 0, 1, 0, 1, 1, "Junk"),
(704, 11111, 11111, 0.1, 0, 1, 0, 1, 1, "Bags");
-- Ragged Young Wolf
DELETE FROM `creature_loot_template` WHERE `Entry`=705;
INSERT INTO `creature_loot_template` (`Entry`,`Item`,`Reference`,`Chance`,`QuestRequired`,`LootMode`,`GroupId`,`MinCount`,`MaxCount`,`Comment`) VALUES
(705, 750, 0, 100, 1, 1, 0, 1, 1, "Tough Wolf Meat (quest)"),
(705, 4865, 0, 20, 0, 1, 1, 1, 2, "Ruined Pelt"),
(705, 3300, 0, 30, 0, 1, 1, 1, 2, "Rabbit's Foot"),
(705, 7074, 0, 20, 0, 1, 1, 1, 2, "Chipped Claw"),
(705, 7073, 0, 30, 0, 1, 1, 1, 2, "Broken Fang"),
(705, 24073, 24073, 1, 0, 1, 0, 1, 1, "Junk"),
(705, 11111, 11111, 0.1, 0, 1, 0, 1, 1, "Bags");
-- Frostmane Troll Whelp
DELETE FROM `creature_loot_template` WHERE `Entry`=706;
INSERT INTO `creature_loot_template` (`Entry`,`Item`,`Reference`,`Chance`,`QuestRequired`,`LootMode`,`GroupId`,`MinCount`,`MaxCount`,`Comment`) VALUES
(706, 117, 0, 15, 0, 1, 0, 1, 1, "Tough Jerky"),
(706, 159, 0, 10, 0, 1, 0, 1, 1, "Refreshing Spring Water"),
(706, 2108, 0, 1, 0, 1, 0, 1, 1, "Frostmane Leather Vest (unique)"),
(706, 24073, 24073, 5, 0, 1, 0, 1, 1, "Junk"),
(706, 11111, 11111, 0.5, 0, 1, 0, 1, 1, "Bags");
-- Rockjaw Trogg
DELETE FROM `creature_loot_template` WHERE `Entry`=707;
INSERT INTO `creature_loot_template` (`Entry`,`Item`,`Reference`,`Chance`,`QuestRequired`,`LootMode`,`GroupId`,`MinCount`,`MaxCount`,`Comment`) VALUES
(707, 117, 0, 15, 0, 1, 0, 1, 1, "Tough Jerky"),
(707, 159, 0, 10, 0, 1, 0, 1, 1, "Refreshing Spring Water"),
(707, 24073, 24073, 5, 0, 1, 0, 1, 1, "Junk"),
(707, 11111, 11111, 0.5, 0, 1, 0, 1, 1, "Bags");
-- Small Crag Boar
DELETE FROM `creature_loot_template` WHERE `Entry`=708;
INSERT INTO `creature_loot_template` (`Entry`,`Item`,`Reference`,`Chance`,`QuestRequired`,`LootMode`,`GroupId`,`MinCount`,`MaxCount`,`Comment`) VALUES
(708, 117, 0, 30, 0, 1, 0, 1, 2, "Tough Jerky"),
(708, 771, 0, 30, 0, 1, 1, 1, 2, "Chipped Boar Tusk"),
(708, 4865, 0, 35, 0, 1, 1, 1, 2, "Ruined Pelt"),
(708, 7098, 0, 35, 0, 1, 1, 1, 2, "Splintered Tusk"),
(708, 24073, 24073, 2, 0, 1, 0, 1, 1, "Junk"),
(708, 11111, 11111, 0.1, 0, 1, 0, 1, 1, "Bags");
-- Burly Rockjaw Trogg
DELETE FROM `creature_loot_template` WHERE `Entry`=724;
INSERT INTO `creature_loot_template` (`Entry`,`Item`,`Reference`,`Chance`,`QuestRequired`,`LootMode`,`GroupId`,`MinCount`,`MaxCount`,`Comment`) VALUES
(724, 117, 0, 15, 0, 1, 0, 1, 1, "Tough Jerky"),
(724, 159, 0, 10, 0, 1, 0, 1, 1, "Refreshing Spring Water"),
(724, 2787, 0, 1, 0, 1, 0, 1, 1, "Trogg Dagger (unique)"),
(724, 24073, 24073, 5, 0, 1, 0, 1, 1, "Junk"),
(724, 11111, 11111, 0.1, 0, 1, 0, 1, 1, "Bags");
-- Grik'nir the Cold
DELETE FROM `creature_loot_template` WHERE `Entry`=808;
INSERT INTO `creature_loot_template` (`Entry`,`Item`,`Reference`,`Chance`,`QuestRequired`,`LootMode`,`GroupId`,`MinCount`,`MaxCount`,`Comment`) VALUES
(808, 117, 0, 15, 0, 1, 0, 1, 1, "Tough Jerky"),
(808, 159, 0, 10, 0, 1, 0, 1, 1, "Refreshing Spring Water"),
(808, 2004, 0, 100, 1, 1, 0, 1, 1, "Grelin Whitebeard's Journal (quest)"),
(808, 2109, 0, 1, 0, 1, 0, 1, 1, "Frostmane Chain Vest (unique)"),
(808, 24073, 24073, 35, 0, 1, 0, 1, 1, "Junk"),
(808, 11111, 11111, 1, 0, 1, 0, 1, 1, "Bags");
-- Frostmane Novice
DELETE FROM `creature_loot_template` WHERE `Entry`=946;
INSERT INTO `creature_loot_template` (`Entry`,`Item`,`Reference`,`Chance`,`QuestRequired`,`LootMode`,`GroupId`,`MinCount`,`MaxCount`,`Comment`) VALUES
(946, 117, 0, 15, 0, 1, 0, 1, 1, "Tough Jerky"),
(946, 159, 0, 10, 0, 1, 0, 1, 1, "Refreshing Spring Water"),
(946, 2110, 0, 1, 0, 1, 0, 1, 1, "Light Magesmith Robe (unique)"),
(946, 24073, 24073, 5, 0, 1, 0, 1, 1, "Junk"),
(946, 11111, 11111, 0.1, 0, 1, 0, 1, 1, "Bags");
-- Rockjaw Raider
DELETE FROM `creature_loot_template` WHERE `Entry`=1718;
INSERT INTO `creature_loot_template` (`Entry`,`Item`,`Reference`,`Chance`,`QuestRequired`,`LootMode`,`GroupId`,`MinCount`,`MaxCount`,`Comment`) VALUES
(1718, 117, 0, 15, 0, 1, 0, 1, 1, "Tough Jerky"),
(1718, 159, 0, 10, 0, 1, 0, 1, 1, "Refreshing Spring Water"),
(1718, 2054, 0, 1, 0, 1, 0, 1, 1, "Trogg Hand Axe (unique)"),
(1718, 24073, 24073, 5, 0, 1, 0, 1, 1, "Junk"),
(1718, 11111, 11111, 0.1, 0, 1, 0, 1, 1, "Bags");
*/
@@ -0,0 +1,16 @@
/*
-- Remove unique items from reference table 24062
DELETE FROM `reference_loot_template` WHERE `Entry`=24062 AND `Item` IN (880, 1299, 1457, 1458, 2175, 1462, 1461, 1459, 3018, 3227);
-- Add former items from reference table 24062 to their proper NPCs
DELETE FROM `creature_loot_template` WHERE `Item` IN (880, 1299, 1457, 1458, 2175, 1462, 1461, 1459);
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Chance`, `GroupId`, `Comment`) VALUES
(202, 880, 0.1, 0, "Skeletal Horror - Staff of Horrors"),
(436, 1299, 0.1, 0, "Blackrock Shadowcaster - Lesser Belt of the Spire"),
(433, 1457, 0.1, 0, "Shadowhide Gnoll - Shadowhide Mace"),
(432, 1458, 0.1, 0, "Shadowhide Brute - Shadowhide Maul"),
(568, 2175, 0.1, 0, "Shadowhide Warrior - Shadowhide Battle Axe"),
(429, 1462, 0.1, 0, "Shadowhide Darkweaver - Ring of the Shadow"),
(431, 1461, 0.1, 0, "Shadowhide Slayer - Slayer's Battle Axe"),
(579, 1459, 0.1, 0, "Shadowhide Assassin - Shadowhide Scalper");
*/
@@ -0,0 +1,41 @@
/*
-- Create new reference loot template for Shadowfang Keep
SET @ENTRY := 1055; -- need a new id
DELETE FROM `reference_loot_template` WHERE `Entry`=@ENTRY;
INSERT INTO `reference_loot_template` (`Entry`, `Item`, `Chance`, `GroupId`, `Comment`) VALUES
(@ENTRY, 1318, 0, 1, "Night Reaver"),
(@ENTRY, 1482, 0, 1, "Shadowfang"),
(@ENTRY, 1483, 0, 1, "Face Smasher"),
(@ENTRY, 1484, 0, 1, "Witching Stave"),
(@ENTRY, 1489, 0, 1, "Gloomshroud Armor"),
(@ENTRY, 1935, 0, 1, "Assassin's Blade"),
(@ENTRY, 1974, 0, 1, "Mindthrust Bracers"),
(@ENTRY, 2205, 0, 1, "Duskbringer"),
(@ENTRY, 2292, 0, 1, "Necrology Robes"),
(@ENTRY, 2807, 0, 1, "Guillotine Axe"),
(@ENTRY, 3194, 0, 1, "Black Malice");
-- Remove all SFK exclusive items from direct drops from NPCs
DELETE FROM `creature_loot_template` WHERE `Item` IN
(1318, 1482, 1483, 1484, 1489, 1935, 1974, 2205, 2292, 2807, 3194);
-- Add SFK reference template for non-boss NPCs
DELETE FROM `creature_loot_template` WHERE `Reference` = @ENTRY;
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Reference`, `Chance`, `Comment`) VALUES
(2529, @ENTRY, @ENTRY, 0.1, "Son of Arugal - SFK Rares"),
(3851, @ENTRY, @ENTRY, 0.1, "Shadowfang Whitescalp - SFK Rares"),
(3853, @ENTRY, @ENTRY, 0.1, "Shadowfang Moonwalker - SFK Rares"),
(3854, @ENTRY, @ENTRY, 0.1, "Shadowfang Wolfguard - SFK Rares"),
(3855, @ENTRY, @ENTRY, 0.1, "Shadowfang Darksoul - SFK Rares"),
(3857, @ENTRY, @ENTRY, 0.1, "Shadowfang Glutton - SFK Rares"),
(3859, @ENTRY, @ENTRY, 0.1, "Shadowfang Ragetooth - SFK Rares"),
(3861, @ENTRY, @ENTRY, 0.1, "Bleak Worg - SFK Rares"),
(3862, @ENTRY, @ENTRY, 0.1, "Slavering Worg - SFK Rares"),
(3863, @ENTRY, @ENTRY, 0.1, "Lupine Horror - SFK Rares"),
(3866, @ENTRY, @ENTRY, 0.1, "Vile Bat - SFK Rares"),
(3868, @ENTRY, @ENTRY, 0.1, "Blood Seeker - SFK Rares"),
(3873, @ENTRY, @ENTRY, 0.1, "Tormented Officer - SFK Rares"),
(3875, @ENTRY, @ENTRY, 0.1, "Haunted Servitor - SFK Rares"),
(3877, @ENTRY, @ENTRY, 0.1, "Wailing Guardsman - SFK Rares");
*/
@@ -0,0 +1,24 @@
/*
-- Living Storm
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=9397;
DELETE FROM `smart_scripts` WHERE `entryorguid`=9397 AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(9397,0,0,0,16,0,100,0,12550,1,5000,5000,11,12550,0,0,0,0,0,1,0,0,0,0,0,0,0,"Living Storm - On Friendly Unit Missing Buff 'Lightning Shield' - Cast Lightning Shield");
-- Land Rager
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=5465;
DELETE FROM `smart_scripts` WHERE `entryorguid`=5465 AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(5465,0,0,0,2,0,100,1,0,50,0,0,11,8599,0,0,0,0,0,1,0,0,0,0,0,0,0,"Land Rager - Between 0-50% Health - Cast Enrage (No Repeat)"),
(5465,0,1,0,2,0,100,1,0,50,0,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0,0,"Land Rager - Between 0-50% Health - Say Line 0 (No Repeat)");
DELETE FROM `creature_text` WHERE `CreatureID`=5465;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(5465,0,0,"%s becomes enraged!",16,0,100,0,0,0,10677,0,"Land Rager");
-- Gusting Vortex
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=8667;
DELETE FROM `smart_scripts` WHERE `entryorguid`=8667 AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(8667,0,0,0,0,0,100,0,8000,11000,22000,26000,11,6982,0,0,0,0,0,1,0,0,0,0,0,0,0,"Gusting Vortex - In Combat - Cast Gust of Wind");
*/
@@ -0,0 +1,8 @@
/*
-- BreadCrumb Quest "Tran'rek"
UPDATE `quest_template_addon` SET `PrevQuestID`=0 WHERE `ID`=2865;
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId`=19 AND `SourceEntry` IN (2864,2865);
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(19,0,2864,0,0,14,0,2865,0,0,0,0,0,"","Quest 'Tran'rek' can only be taken if quest 'Scarab Shells' is not taken"),
(19,0,2865,0,0,28,0,2864,0,0,1,0,0,"","Quest 'Scarab Shells' can only be taken if quest 'Tran'rek' is not completed");
*/
@@ -0,0 +1,221 @@
/*
-- Quest "A Threat in Feralas"
DELETE FROM `quest_details` WHERE `ID`=2981;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(2981,1,1,0,0,0,0,0,0,0);
UPDATE `quest_offer_reward` SET `Emote1`=1 WHERE `ID`=2981;
-- Quest "The Ogres of Feralas"
DELETE FROM `quest_details` WHERE `ID`=2975;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(2975,5,0,0,0,0,0,0,0,0);
UPDATE `quest_offer_reward` SET `Emote1`=1 WHERE `ID`=2975;
-- Quest "The Ogres of Feralas (Part 2)"
DELETE FROM `quest_details` WHERE `ID`=2980;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(2980,1,0,0,0,0,0,0,0,0);
UPDATE `quest_offer_reward` SET `Emote1`=2 WHERE `ID`=2980;
-- Quest "The Gordunni Scroll"
UPDATE `quest_request_items` SET `EmoteOnComplete`=0 WHERE `ID`=2978;
-- Quest "Dark Ceremony"
DELETE FROM `quest_details` WHERE `ID`=2979;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(2979,1,0,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnComplete`=0 WHERE `ID`=2979;
-- Quest "The Gordunni Orb"
DELETE FROM `quest_details` WHERE `ID`=3002;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(3002,1,0,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnComplete`=6 WHERE `ID`=3002;
UPDATE `quest_offer_reward` SET `Emote1`=5 WHERE `ID`=3002;
-- Quest "A New Cloak's Sheen"
DELETE FROM `quest_details` WHERE `ID`=2973;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(2973,2,1,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnComplete`=1, `EmoteOnIncomplete`=1 WHERE `ID`=2973;
UPDATE `quest_offer_reward` SET `Emote1`=11 WHERE `ID`=2973;
-- Quest "A Grim Discovery"
DELETE FROM `quest_details` WHERE `ID`=2974;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(2974,5,0,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnComplete`=1, `EmoteOnIncomplete`=1 WHERE `ID`=2974;
-- Quest "A Grim Discovery (Part 2)"
DELETE FROM `quest_details` WHERE `ID`=2976;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(2976,5,1,1,0,0,0,0,0,0);
UPDATE `quest_offer_reward` SET `Emote1`=5, `Emote2`=1 WHERE `ID`=2976;
-- Quest "A Strange Request"
DELETE FROM `quest_details` WHERE `ID`=3121;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(3121,1,0,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnComplete`=0 WHERE `ID`=3121;
UPDATE `quest_offer_reward` SET `Emote1`=1 WHERE `ID`=3121;
-- Quest "Return to Witch Doctor Uzer'i"
DELETE FROM `quest_details` WHERE `ID`=3122;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(3122,1,0,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnComplete`=0 WHERE `ID`=3122;
UPDATE `quest_offer_reward` SET `Emote1`=1 WHERE `ID`=3122;
-- Quest "Natural Materials"
DELETE FROM `quest_details` WHERE `ID`=3128;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(3128,1,0,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnComplete`=0 WHERE `ID`=3128;
UPDATE `quest_offer_reward` SET `Emote1`=4 WHERE `ID`=3128;
-- Quest "War on the Woodpaw"
DELETE FROM `quest_details` WHERE `ID`=2862;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(2862,1,0,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnComplete`=5, `EmoteOnIncomplete`=5 WHERE `ID`=2862;
UPDATE `quest_offer_reward` SET `Emote1`=21 WHERE `ID`=2862;
-- Quest "Alpha Strike"
DELETE FROM `quest_details` WHERE `ID`=2863;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(2863,1,0,0,0,0,0,0,0,0);
UPDATE `quest_offer_reward` SET `Emote1`=66 WHERE `ID`=2863;
-- Quest "Woodpaw Investigation"
DELETE FROM `quest_details` WHERE `ID`=2902;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(2902,1,1,0,0,0,0,0,0,0);
-- Quest "The Battle Plans"
UPDATE `quest_request_items` SET `EmoteOnComplete`=6 WHERE `ID`=2903;
-- Quest "Stinglasher"
DELETE FROM `quest_details` WHERE `ID`=7731;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(7731,1,0,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnComplete`=6, `EmoteOnIncomplete`=6 WHERE `ID`=7731;
UPDATE `quest_offer_reward` SET `Emote1`=1 WHERE `ID`=7731;
-- Quest "Zukk'ash Infestation"
DELETE FROM `quest_details` WHERE `ID`=7730;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(7730,1,0,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnComplete`=6, `EmoteOnIncomplete`=6 WHERE `ID`=7730;
UPDATE `quest_offer_reward` SET `Emote1`=4 WHERE `ID`=7730;
-- Quest "Zukk'ash Report"
DELETE FROM `quest_details` WHERE `ID`=7732;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(7732,1,1,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnComplete`=0 WHERE `ID`=7732;
UPDATE `quest_offer_reward` SET `Emote1`=1, `Emote2`=1 WHERE `ID`=7732;
-- Quest "The Mark of Quality"
DELETE FROM `quest_details` WHERE `ID`=2822;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(2822,1,1,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnComplete`=6, `EmoteOnIncomplete`=6 WHERE `ID`=2822;
UPDATE `quest_offer_reward` SET `Emote1`=5 WHERE `ID`=2822;
-- Quest "Gordunni Cobalt"
UPDATE `quest_request_items` SET `EmoteOnComplete`=5, `EmoteOnIncomplete`=5 WHERE `ID`=2987;
-- Quest "Testing the Vessel"
UPDATE `quest_request_items` SET `EmoteOnComplete`=0 WHERE `ID`=3123;
UPDATE `quest_offer_reward` SET `Emote1`=1 WHERE `ID`=3123;
-- Quest "Hippogryph Muisek"
DELETE FROM `quest_details` WHERE `ID`=3124;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(3124,1,0,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnComplete`=6, `EmoteOnIncomplete`=6 WHERE `ID`=3124;
UPDATE `quest_offer_reward` SET `Emote1`=1 WHERE `ID`=3124;
-- Quest "Faerie Dragon Muisek"
DELETE FROM `quest_details` WHERE `ID`=3125;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(3125,1,0,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnComplete`=6, `EmoteOnIncomplete`=6 WHERE `ID`=3125;
UPDATE `quest_offer_reward` SET `Emote1`=1 WHERE `ID`=3125;
-- Quest "Treant Muisek"
DELETE FROM `quest_details` WHERE `ID`=3126;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(3126,1,0,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnComplete`=6, `EmoteOnIncomplete`=6 WHERE `ID`=3126;
UPDATE `quest_offer_reward` SET `Emote1`=1 WHERE `ID`=3126;
-- Quest "Mountain Giant Muisek"
DELETE FROM `quest_details` WHERE `ID`=3127;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(3127,1,0,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnComplete`=6, `EmoteOnIncomplete`=6 WHERE `ID`=3127;
UPDATE `quest_offer_reward` SET `Emote1`=1, `Emote2`=4 WHERE `ID`=3127;
-- Quest "Weapons of Spirit"
DELETE FROM `quest_details` WHERE `ID`=3129;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(3129,1,0,0,0,0,0,0,0,0);
UPDATE `quest_offer_reward` SET `Emote1`=1, `Emote2`=4 WHERE `ID`=3129;
-- Quest "Dark Heart"
DELETE FROM `quest_details` WHERE `ID`=3062;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(3062,1,0,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnComplete`=0 WHERE `ID`=3062;
UPDATE `quest_offer_reward` SET `Emote1`=2, `EmoteDelay1`=1000 WHERE `ID`=3062;
-- Quest "Vengeance on the Northspring"
DELETE FROM `quest_details` WHERE `ID`=3063;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(3063,1,0,0,0,0,0,0,0,0);
UPDATE `quest_offer_reward` SET `Emote1`=2 WHERE `ID`=3063;
-- Quest "The Strength of Corruption"
DELETE FROM `quest_details` WHERE `ID`=4120;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(4120,1,0,0,0,0,0,0,0,0);
UPDATE `quest_offer_reward` SET `Emote1`=1 WHERE `ID`=4120;
-- Quest "Improved Quality"
DELETE FROM `quest_details` WHERE `ID`=7734;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(7734,1,0,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=5 WHERE `ID`=7734;
UPDATE `quest_offer_reward` SET `Emote1`=1 WHERE `ID`=7734;
-- Quest "Perfect Yeti Hide"
UPDATE `quest_request_items` SET `EmoteOnComplete`=6 WHERE `ID`=7738;
UPDATE `quest_offer_reward` SET `Emote1`=1 WHERE `ID`=7738;
-- Quest "Zapped Giants"
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=6 WHERE `ID`=7003;
UPDATE `quest_offer_reward` SET `Emote1`=4 WHERE `ID`=7003;
-- Quest "Again With the Zapped Giants"
DELETE FROM `quest_details` WHERE `ID`=7725;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(7725,1,1,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=6 WHERE `ID`=7725;
UPDATE `quest_offer_reward` SET `Emote1`=4 WHERE `ID`=7725;
-- Quest "Fuel for the Zapping"
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=6 WHERE `ID`=7721;
-- Quest "Refuel for the Zapping"
DELETE FROM `quest_details` WHERE `ID`=7726;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(7726,1,1,0,0,0,0,0,0,0);
UPDATE `quest_request_items` SET `EmoteOnIncomplete`=6 WHERE `ID`=7726;
-- Quest "Elven Legends"
DELETE FROM `quest_details` WHERE `ID`=7481;
INSERT INTO `quest_details` (`ID`, `Emote1`, `Emote2`, `Emote3`, `Emote4`, `EmoteDelay1`, `EmoteDelay2`, `EmoteDelay3`, `EmoteDelay4`, `VerifiedBuild`) VALUES
(7481,1,1,1,0,0,0,0,0,0);
UPDATE `quest_offer_reward` SET `Emote1`=1, `Emote2`=6 WHERE `ID`=7481;
*/
@@ -0,0 +1,33 @@
/*
-- Witch Doctor Uzer'i
DELETE FROM `creature_text` WHERE `CreatureID`=8115 AND `GroupID` IN (2,3);
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(8115,2,0,"%s gathers the materials together and begins to work.",16,0,100,0,0,0,4175,0,"Witch Doctor Uzer'i"),
(8115,3,0,"I have completed the weapons, $n.",12,0,100,1,0,0,4176,0,"Witch Doctor Uzer'i");
DELETE FROM `smart_scripts` WHERE `entryorguid`=8115 AND `source_type`=0 AND `id` IN (1,2,3);
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (811501,811502,811503) AND `source_type`=9;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(8115,0,1,0,19,0,100,0,3129,0,0,0,80,811501,0,0,0,0,0,1,0,0,0,0,0,0,0,"Witch Doctor Uzer'i - On Quest 'Weapons of Spirit' Taken - Run Script"),
(8115,0,2,0,40,0,100,0,3,8115,0,0,80,811502,0,0,0,0,0,1,0,0,0,0,0,0,0,"Witch Doctor Uzer'i - On Waypoint 3 Reached - Run Script"),
(8115,0,3,0,40,0,100,0,6,8115,0,0,80,811503,0,0,0,0,0,1,0,0,0,0,0,0,0,"Witch Doctor Uzer'i - On Waypoint 6 Reached - Run Script"),
(811501,9,0,0,0,0,100,0,0,0,0,0,83,3,0,0,0,0,0,1,0,0,0,0,0,0,0,"Witch Doctor Uzer'i - On Script - Remove Npc Flag Questgiver+Gossip"),
(811501,9,1,0,0,0,100,0,1000,1000,0,0,53,1,8115,0,0,0,0,1,0,0,0,0,0,0,0,"Witch Doctor Uzer'i - On Script - Start Waypoint"),
(811502,9,0,0,0,0,100,0,0,0,0,0,54,16000,0,0,0,0,0,1,0,0,0,0,0,0,0,"Witch Doctor Uzer'i - On Script - Pause Waypoint"),
(811502,9,1,0,0,0,100,0,500,500,0,0,66,0,0,0,0,0,0,8,0,0,0,0,0,0,1.75709,"Witch Doctor Uzer'i - On Script - Set Orientation"),
(811502,9,2,0,0,0,100,0,1000,1000,0,0,90,8,0,0,0,0,0,1,0,0,0,0,0,0,0,"Witch Doctor Uzer'i - On Script - Set Flag Standstate Kneel"),
(811502,9,3,0,0,0,100,0,0,0,0,0,1,2,0,0,0,0,0,7,0,0,0,0,0,0,0,"Witch Doctor Uzer'i - On Script - Say Line 2"),
(811502,9,4,0,0,0,100,0,13000,13000,0,0,91,8,0,0,0,0,0,1,0,0,0,0,0,0,0,"Witch Doctor Uzer'i - On Script - Remove Flag Standstate Kneel"),
(811503,9,0,0,0,0,100,0,500,500,0,0,66,0,0,0,0,0,0,8,0,0,0,0,0,0,4.72984,"Witch Doctor Uzer'i - On Script - Set Orientation"),
(811503,9,1,0,0,0,100,0,0,0,0,0,1,3,0,0,0,0,0,7,0,0,0,0,0,0,0,"Witch Doctor Uzer'i - On Script - Say Line 3"),
(811503,9,2,0,0,0,100,0,0,0,0,0,82,3,0,0,0,0,0,1,0,0,0,0,0,0,0,"Witch Doctor Uzer'i - On Script - Add Npc Flag Questgiver+Gossip");
DELETE FROM `waypoints` WHERE `entry`=8115;
INSERT INTO `waypoints` (`entry`, `pointid`, `position_x`, `position_y`, `position_z`, `point_comment`) VALUES
(8115,1,-4375.1,259.339,26.584,""),
(8115,2,-4378.28,255.898,26.3856,""),
(8115,3,-4383,256.683,25.8833,""),
(8115,4,-4378.28,255.898,26.3856,""),
(8115,5,-4375.1,259.339,26.584,""),
(8115,6,-4375.68,269.717,25.4947,"");
*/
@@ -0,0 +1,27 @@
/*
-- Quest "Zapped Giants"
-- Cliff Giant
DELETE FROM `smart_scripts` WHERE `entryorguid`=5358 AND `source_type`=0 AND `id`=2;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(5358,0,2,0,8,0,100,512,23359,0,0,0,3,14640,0,0,0,0,0,1,0,0,0,0,0,0,0,"Cliff Giant - On Spellhit 'Transmogrify!' - Morph to 'Zapped Cliff Giant'");
-- Land Walker
DELETE FROM `smart_scripts` WHERE `entryorguid`=5357 AND `source_type`=0 AND `id`=2;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(5357,0,2,0,8,0,100,512,23359,0,0,0,3,14604,0,0,0,0,0,1,0,0,0,0,0,0,0,"Land Walker - On Spellhit 'Transmogrify!' - Morph to 'Zapped Land Walker'");
-- Shore Strider
DELETE FROM `smart_scripts` WHERE `entryorguid`=5359 AND `source_type`=0 AND `id`=1;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(5359,0,1,0,8,0,100,512,23359,0,0,0,3,14603,0,0,0,0,0,1,0,0,0,0,0,0,0,"Shore Strider - On Spellhit 'Transmogrify!' - Morph to 'Zapped Shore Strider'");
-- Deep Strider
DELETE FROM `smart_scripts` WHERE `entryorguid`=5360 AND `source_type`=0 AND `id`=1;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(5360,0,1,0,8,0,100,512,23359,0,0,0,3,14639,0,0,0,0,0,1,0,0,0,0,0,0,0,"Deep Strider - On Spellhit 'Transmogrify!' - Morph to 'Zapped Deep Strider'");
-- Wave Strider
DELETE FROM `smart_scripts` WHERE `entryorguid`=5361 AND `source_type`=0 AND `id`=1;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(5361,0,1,0,8,0,100,512,23359,0,0,0,3,14638,0,0,0,0,0,1,0,0,0,0,0,0,0,"Wave Strider - On Spellhit 'Transmogrify!' - Morph to 'Zapped Wave Strider'");
*/
@@ -0,0 +1,13 @@
/*
-- Zorbin Fandazzle --> Add gossip conditions
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` IN (14,15) AND `SourceGroup`=11361;
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
(14,11361,7116,0,0,8,0,7003,0,0,0,0,0,"","Show gossip text 5444 if quest 'Zapped Giants' is rewarded"),
(14,11361,7116,0,0,8,0,7721,0,0,0,0,0,"","Show gossip text 5444 if quest 'Fuel for the Zapping' is rewarded"),
(15,11361,0,0,0,8,0,7003,0,0,0,0,0,"","Show gossip option if quest 'Zapped Giants' is rewarded"),
(15,11361,0,0,0,8,0,7721,0,0,0,0,0,"","Show gossip option if quest 'Fuel for the Zapping' is rewarded");
DELETE FROM `gossip_menu_option` WHERE `MenuID`=11361;
INSERT INTO `gossip_menu_option` (`MenuID`, `OptionID`, `OptionIcon`, `OptionText`, `OptionBroadcastTextID`, `OptionType`, `OptionNpcFlag`, `ActionMenuID`, `ActionPoiID`, `BoxCoded`, `BoxMoney`, `BoxText`, `BoxBroadcastTextID`, `VerifiedBuild`) VALUES
(11361,0,1,"Got anything interesting for sale, Zorbin?",9817,3,128,0,0,0,0,"",0,0);
*/
@@ -0,0 +1,3 @@
--
DELETE FROM `creature_addon` WHERE `guid` IN (SELECT `guid` FROM `creature` WHERE `id` IN (18201));
DELETE FROM `creature` WHERE `id` IN (18201);
@@ -0,0 +1,6 @@
--
UPDATE `creature_template` SET `RegenHealth`=0 WHERE `entry` IN (20869, 21586);
UPDATE `creature` SET `curhealth`=62315 WHERE `id` IN (20869);
DELETE FROM `smart_scripts` WHERE `entryorguid`=20869 AND `source_type`=0 AND `id`=4;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(20869, 0, 4, 0, 4, 0, 100, 0, 0, 0, 0, 0, 28, 31261, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 'Arcatraz Sentinel - On aggro - remove aura');
@@ -0,0 +1,2 @@
--
-- DELETE FROM `spawn_group` WHERE `spawnId` IN (64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993) AND `spawnType`=0 AND `groupId`=2;
@@ -0,0 +1,4 @@
--
DELETE FROM `smart_scripts` WHERE `entryorguid`=18213 AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(18213, 0, 0, 0, 0, 0, 100, 0, 1000, 2000, 3400, 5800, 11, 39419, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, "Mire Hydra - IC - Cast 'Poison Spit'");
@@ -0,0 +1 @@
-- DELETE FROM `spell_bonus_data` WHERE `entry` IN (31117, 64085);
@@ -0,0 +1 @@
-- UPDATE `spell_proc` SET `SpellPhaseMask` = `SpellPhaseMask`|0x2 WHERE `SpellId` IN (-19572, 28716, -31656, 37603, 38394, 40438, 40478, 45054, -47195, -47245, -48539, -49217, 54754, 56218, -56636, 57870, 60061, 60170, 60176, 60487, 61188, 64752, 64824, 64914, 67209, 67356, 67361, 67365, 70664, 70730, 70841, 70854, 71174, 71176, 71178, 71198, 71606, 71637);
@@ -0,0 +1,5 @@
/*
DELETE FROM `spell_script_names` WHERE `ScriptName`='spell_combined_toxins';
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(56584, 'spell_combined_toxins');
*/
@@ -0,0 +1,2 @@
-- SAI target fix for Territorial Trespass (13051)
update `smart_scripts` set `target_type`=23 where (`source_type`=0 and `entryorguid`=30461 and `id`=2) or (`source_type`=9 and `entryorguid`=3046200 and `id` in (1,4));
@@ -0,0 +1,2 @@
--
UPDATE `creature_template` SET `flags_extra`=2 WHERE `entry`=28167;
@@ -0,0 +1,28 @@
/*
-- Remove unique items from reference table 24064
DELETE FROM `reference_loot_template` WHERE `Entry`=24064 AND `Item` IN (911, 920, 1076, 1406, 1455, 1459, 1461, 1462, 2034, 2232, 3429);
-- Add former items from reference table 24064 to their proper NPCs
DELETE FROM `creature_loot_template` WHERE `Item` IN (911, 920, 1076, 1406, 1455, 2034, 2232, 3429);
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Chance`, `GroupId`, `Comment`) VALUES
(889, 911, 0.1, 0, "Splinter Fist Ogre - Ironwood Treebranch"),
(215, 920, 0.1, 0, "Defias Night Runner - Wicked Spiked Mace"),
(909, 920, 0.1, 0, "Defias Night Blade - Wicked Spiked Mace"),
(1706, 1076, 1, 0, "Defias Prisoner - Defias Renegade Ring"),
(1711, 1076, 1, 0, "Defias Convict - Defias Renegade Ring"),
(1715, 1076, 1, 0, "Defias Insurgent - Defias Renegade Ring"),
(1708, 1076, 1, 0, "Defias Inmate - Defias Renegade Ring"),
(1707, 1076, 1, 0, "Defias Captive - Defias Renegade Ring"),
(544, 1406, 0.1, 0, "Murloc Nightcrawler - Pearl-encrusted Spear"),
(435, 1455, 0.1, 0, "Blackrock Champion - Blackrock Champion's Axe"),
(4464, 1455, 0.1, 0, "Blackrock Gladiator - Blackrock Champion's Axe"),
(4809, 2034, 1, 0, "Twilight Acolyte - Scholarly Robes"),
(4811, 2034, 1, 0, "Twilight Aquamancer - Scholarly Robes"),
(4810, 2034, 1, 0, "Twilight Reaver - Scholarly Robes"),
(4814, 2034, 1, 0, "Twilight Elementalist - Scholarly Robes"),
(4813, 2034, 1, 0, "Twilight Shadowmage - Scholarly Robes"),
(4812, 2034, 1, 0, "Twilight Loreseeker - Scholarly Robes"),
(205, 2232, 0.1, 0, "Nightbane Dark Runner - Dark Runner Boots"),
(2427, 3429, 1, 0, "Jailor Eston - Guardsman Belt"),
(2428, 3429, 1, 0, "Jailor Marlgen - Guardsman Belt");
*/
@@ -0,0 +1,6 @@
--
UPDATE `smart_scripts` SET `target_type`=23 WHERE `source_type`=9 AND `entryorguid`=2878000 AND `id` IN (6);
DELETE FROM `smart_scripts` WHERE `entryorguid`=2878000 AND `source_type`=9 AND `id` IN (7,8);
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(2878000, 9, 7, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 20, 190731, 15, 0, 0, 0, 0, 0, "Explosive Charges Bunny - On Script - despawn gob"),
(2878000, 9, 8, 0, 0, 0, 100, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 20, 190732, 15, 0, 0, 0, 0, 0, "Explosive Charges Bunny - On Script - despawn gob");
@@ -0,0 +1,2 @@
--
UPDATE `smart_scripts` SET `action_param1`=180 WHERE `source_type`=9 AND `entryorguid`=2878000 AND `id` IN (7);
@@ -0,0 +1,2 @@
--
UPDATE `smart_scripts` SET `event_type`=1 WHERE `entryorguid`IN (9297,9521, 9526,9527) AND `source_type`=0 AND `id`=1;
@@ -0,0 +1,2 @@
-- SMART_ACTION_FLEE_FOR_ASSIST (25) does not need a target
UPDATE `smart_scripts` SET `target_type`=0 WHERE `action_type`=25;
@@ -0,0 +1,4 @@
--
DELETE FROM `smart_scripts` WHERE `entryorguid` = 24329 AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`, `source_type`, `id`, `link`, `event_type`, `event_phase_mask`, `event_chance`, `event_flags`, `event_param1`, `event_param2`, `event_param3`, `event_param4`, `action_type`, `action_param1`, `action_param2`, `action_param3`, `action_param4`, `action_param5`, `action_param6`, `target_type`, `target_param1`, `target_param2`, `target_param3`, `target_x`, `target_y`, `target_z`, `target_o`, `comment`) VALUES
(24329, 0, 0, 0, 8, 0, 100, 512, 43666, 0, 0, 0, 41, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, "Runed Stone Giant - On spell hit - Despawn");
@@ -0,0 +1,3 @@
--
UPDATE `smart_scripts` SET `target_type`=7 WHERE `entryorguid` IN (27370) AND `source_type`=0 AND `id`=0;
UPDATE `smart_scripts` SET `target_type`=12, `target_param1`=1 WHERE `entryorguid` IN (2735900) AND `source_type`=9 AND `id`=4;
@@ -0,0 +1,2 @@
--
DELETE FROM `conditions` WHERE `SourceEntry` = 17016 AND `SourceTypeOrReferenceId`=13;
@@ -0,0 +1,2 @@
--
UPDATE `smart_scripts` SET `action_param1`=0, `action_param2`=180 WHERE `source_type`=9 AND `entryorguid`=2878000 AND `id` IN (7);
@@ -0,0 +1,4 @@
--
UPDATE `smart_scripts` SET `target_type`=7 WHERE `event_type` IN (4) AND `target_type`=2;
UPDATE `smart_scripts` SET `target_type`=16 WHERE `event_type` IN (4) AND `target_type`=5;
UPDATE `smart_scripts` SET `event_type`=0 WHERE `entryorguid`=18701 AND `source_type`=0 AND `id`=1;
@@ -0,0 +1,5 @@
--
UPDATE `smart_scripts` SET `target_type`=1 WHERE `entryorguid`=32495 AND `source_type`=0 AND `id`=0;
UPDATE `smart_scripts` SET `target_type`=1 WHERE `entryorguid`=20405 AND `source_type`=0;
UPDATE `smart_scripts` SET `target_type`=1 WHERE `entryorguid`=32357 AND `source_type`=0 AND `id`=0;
UPDATE `smart_scripts` SET `target_type`=2 WHERE `event_type`=0 AND `target_type`=7 AND `source_type`=0;
@@ -0,0 +1,11 @@
--
UPDATE `smart_scripts` SET `target_type`=12, `target_param1`=1 WHERE `event_type`=52 AND `source_type`=0 AND `action_type`=11 AND `action_param1`=63010 AND `target_type`=7;
UPDATE smart_scripts SET `target_type`=12, `target_param1`=1 WHERE `entryorguid` IN (3328500, 3374500) AND `source_type`=9 AND `id`=10;
DELETE FROM `smart_scripts` WHERE `entryorguid` = 4488 AND `source_type` = 0 AND id IN (20,21,22,23);
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(4488,0, 20, 0, 62,0,100,0, 4764, 0,0,0, 64, 1, 0,0,0,0,0, 7, 0, 0,0,0,0,0,0,'Parqual Fintallas - On Gossip Option 0 Selected - Store target'),
(4488,0, 21, 0, 62,0,100,0, 4764, 1,0,0, 64, 1, 0,0,0,0,0, 7, 0, 0,0,0,0,0,0,'Parqual Fintallas - On Gossip Option 1 Selected - Store target'),
(4488,0, 22, 0, 62,0,100,0, 4764, 2,0,0, 64, 1, 0,0,0,0,0, 7, 0, 0,0,0,0,0,0,'Parqual Fintallas - On Gossip Option 2 Selected - Store target'),
(4488,0, 23, 0, 62,0,100,0, 4764, 3,0,0, 64, 1, 0,0,0,0,0, 7, 0, 0,0,0,0,0,0,'Parqual Fintallas - On Gossip Option 3 Selected - Store target');
UPDATE smart_scripts SET `target_type`=12, `target_param1`=1 WHERE `entryorguid` IN (4488) AND `source_type`=0 AND `id`IN (3,4,9,13);
UPDATE `smart_scripts` SET `target_type`=1 WHERE `entryorguid` IN (18417) AND `source_type`=0 AND `id`IN (6);
@@ -0,0 +1,4 @@
--
UPDATE `smart_scripts` SET `target_type`=1 WHERE `action_type`=39;
UPDATE `smart_scripts` SET `target_type`=2 WHERE `target_type`=7 AND `event_type`=2 AND `event_flags`=1 AND `event_param2`=30 AND `action_type`=1;
UPDATE `smart_scripts` SET `target_type`=24 WHERE `target_type`=7 AND `event_type`=2 AND `action_type` IN (33,85);
@@ -0,0 +1,11 @@
--
UPDATE `smart_scripts` SET `target_type`=24 WHERE `target_type`=16 AND `event_type`=2 AND `action_type` IN (33,15,11);
UPDATE `smart_scripts` SET `target_type`=1 WHERE `entryorguid`=13197 AND `source_type`=0 AND `id`=11;
UPDATE `smart_scripts` SET `target_type`=1 WHERE `entryorguid`=16977 AND `source_type`=0 AND `id`=14;
UPDATE `smart_scripts` SET `target_type`=18, `target_param1`=25 WHERE `target_type`=7 AND `event_type`=7 AND `action_type` IN (6);
UPDATE `smart_scripts` SET `target_type`=1 WHERE `entryorguid`=25773 AND `source_type`=0 AND `id`=0;
UPDATE `smart_scripts` SET `target_type`=1 WHERE `entryorguid`=19480 AND `source_type`=0 AND `id`=2;
UPDATE `smart_scripts` SET `event_type`=4 WHERE `entryorguid`=18400 AND `source_type`=0 AND `id`=0;
UPDATE `smart_scripts` SET `target_type`=1 WHERE `entryorguid`=28444 AND `source_type`=0 AND `id`=1;
UPDATE `smart_scripts` SET `event_type`=10, `event_param1`=1, `event_param1`=20 WHERE `entryorguid`=19283 AND `source_type`=0 AND `id`=3;
UPDATE `smart_scripts` SET `target_type`=1 WHERE `entryorguid`=27202 AND `source_type`=0 AND `id`=6;
@@ -0,0 +1,11 @@
--
UPDATE `smart_scripts` SET `target_type`=1 WHERE `entryorguid` IN (25321,25322) AND `source_type`=0 AND `id`=0;
UPDATE `smart_scripts` SET `target_type`=1 WHERE `entryorguid` IN (30154) AND `source_type`=0 AND `id`=4;
UPDATE `smart_scripts` SET `target_type`=23 WHERE `entryorguid` IN (25401) AND `source_type`=0 AND `id`=0;
UPDATE `smart_scripts` SET `target_type`=1 WHERE `entryorguid` IN (22423) AND `source_type`=0 AND `id`=9;
UPDATE `smart_scripts` SET `target_type`=1 WHERE `entryorguid` IN (14354) AND `source_type`=0 AND `id`=0;
UPDATE `smart_scripts` SET `target_type`=1 WHERE `entryorguid` IN (13197) AND `source_type`=0 AND `id`=9;
UPDATE `smart_scripts` SET `target_type`=1 WHERE `entryorguid` IN (16769) AND `source_type`=0 AND `id`=9;
UPDATE `smart_scripts` SET `target_type`=1 WHERE `entryorguid` IN (16769) AND `source_type`=0 AND `id`=4;
UPDATE `smart_scripts` SET `target_type`=21, target_param1=30 WHERE `entryorguid` IN (15420) AND `source_type`=0 AND `id`=3;
UPDATE `smart_scripts` SET `target_type`=21, target_param1=30 WHERE `entryorguid` IN (3584) AND `source_type`=0 AND `id`=2;
@@ -0,0 +1,12 @@
-- Chief Plaguebringer Harris SAI
SET @ENTRY := 24251;
UPDATE `creature_template` SET `AIName`="SmartAI" WHERE `entry`=@ENTRY;
DELETE FROM `smart_scripts` WHERE `entryorguid`=@ENTRY AND `source_type`=0;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(@ENTRY,0,0,0,0,0,100,0,4000,8000,10000,12000,11,16432,0,0,0,0,0,5,0,0,0,0,0,0,0,"Chief Plaguebringer Harris - In Combat - Cast 'Plague Mist'"),
(@ENTRY,0,1,0,0,0,100,0,6000,8000,10000,15000,11,34095,0,0,0,0,0,5,0,0,0,0,0,0,0,"Chief Plaguebringer Harris - In Combat - Cast 'Throw Proximity Bomb'"),
(@ENTRY,0,2,0,2,0,100,1,10,15,0,0,11,5782,0,0,0,0,0,5,0,0,0,0,0,0,0,"Chief Plaguebringer Harris - Between 10-15% Health - Cast 'Fear'");
DELETE FROM `creature_text` WHERE `CreatureID`=24251 AND `GroupID`=0 AND `ID`=2;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(24251, 0, 2, "Steady your hand, you fool! Those are rare components you're spilling on the floor!", 14, 0, 100, 0, 0, 0, 23100, 0, "Chief Plaguebringer Harris");
@@ -0,0 +1,13 @@
DELETE FROM `creature_summon_groups` WHERE `summonerId`=33890 AND `entry`=33990; -- Laughing Skull
INSERT INTO `creature_summon_groups` (`summonerId`,`summonerType`,`groupId`,`entry`,`position_x`,`position_y`,`position_z`,`orientation`,`summonType`,`summonTime`) VALUES
(33890,0,0,33990,2063.156,27.95839,244.2707,5.288348,3,60000), -- Chambers of Aspects
(33890,0,0,33990,2061.257,-53.8788,239.8633,2.478368,3,60000),
(33890,0,0,33990,2109.908,29.33236,239.8817,0.1919862,3,60000),
(33890,0,0,33990,2135.219,-41.44271,239.8027,5.846853,3,60000),
(33890,0,1,33990,1932.213,-93.62798,240.073,4.852015,3,60000), -- Icecrown Citadel
(33890,0,1,33990,1905.937,-133.1651,240.073,5.77704,3,60000),
(33890,0,1,33990,1948.668,-152.4481,240.073,1.919862,3,60000),
(33890,0,1,33990,1992.463,-131.2119,240.073,3.455752,3,60000),
(33890,0,2,33990,1917.492,91.10191,239.7496,0.5235988,3,60000), -- Stormwind Keep
(33890,0,2,33990,1918.132,73.82926,241.7929,2.600541,3,60000),
(33890,0,2,33990,1922.55,54.68001,241.1263,0.1919862,3,60000);
@@ -0,0 +1,2 @@
-- TDB 4.3.4-27 auth database
UPDATE `updates` SET `state`='ARCHIVED';
@@ -0,0 +1,2 @@
-- TDB 4.3.4-27 characters database
UPDATE `updates` SET `state`='ARCHIVED';
@@ -0,0 +1,3 @@
UPDATE `version` SET `db_version`='TDB 434.27', `cache_id`=27 LIMIT 1;
UPDATE `updates` SET `state`='ARCHIVED';
@@ -0,0 +1,8 @@
DELETE FROM `spell_proc` WHERE `SpellId` IN (32065, 36659);
INSERT INTO `spell_proc` (`SpellId`, `SchoolMask`, `SpellFamilyName`, `SpellFamilyMask0`, `SpellFamilyMask1`, `SpellFamilyMask2`, `ProcFlags`, `SpellTypeMask`, `SpellPhaseMask`, `HitMask`, `AttributesMask`, `ProcsPerMinute`, `Chance`, `Cooldown`, `Charges`) VALUES
(32065, 0x0, 0, 0x00000000, 0x00000000, 0x00000000, 0x80000, 0x1, 0x0, 0x0, 0x0, 0, 0, 0, 0),
(36659, 0x0, 0, 0x00000000, 0x00000000, 0x00000000, 0x80000, 0x1, 0x0, 0x0, 0x0, 0, 0, 0, 0);
DELETE FROM `spell_script_names` WHERE `ScriptName` IN ('spell_gen_decay_over_time_fungal_decay','spell_gen_decay_over_time_tail_sting');
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(32065, 'spell_gen_decay_over_time_fungal_decay'),
(36659, 'spell_gen_decay_over_time_tail_sting');
@@ -0,0 +1,16 @@
/*
--
-- Remove unique items from reference table 24068
DELETE FROM `reference_loot_template` WHERE `Entry`=24068 AND `Item` IN (897, 1351, 2015, 2017, 3053, 3336, 4723);
-- Add former items from reference table 24068 to their proper NPCs
DELETE FROM `creature_loot_template` WHERE `Item` IN (897, 1351, 2015, 2017, 3053, 3336, 4723);
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Chance`, `GroupId`, `Comment`) VALUES
(206, 897, 0.1, 0, "Nightbane Vile Fang - Madwolf Bracers"),
(3808, 1351, 0.1, 0, "Forsaken Dark Stalker - Fingerbone Bracers"),
(570, 2015, 1, 0, "Brain Eater - Black Metal War Axe"),
(785, 2017, 1, 0, "Skeletal Warder - Glowing Leather Bracers"),
(2344, 3053, 2.5, 0, "Dun Garok Mountaineer - Humbert's Chestpiece"),
(2368, 3336, 0.1, 0, "Daggerspine Shorestalker - Flesh Piercer"),
(2370, 3336, 0.1, 0, "Daggerspine Screamer - Flesh Piercer"),
(2346, 4723, 2.5, 0, "Dun Garok Priest - Humbert's Pants");
*/
@@ -0,0 +1,17 @@
/*
--
-- Remove unique items from reference table 24066
DELETE FROM `reference_loot_template` WHERE `Entry`=24066 AND `Item` IN (886, 1077, 2013, 2227, 2233, 2566, 3204, 3569, 6315);
-- Add former items from reference table 24066 to their proper NPCs
DELETE FROM `creature_loot_template` WHERE `Item` IN (886, 1077, 2013, 2227, 2233, 2566, 3204, 3569, 6315);
INSERT INTO `creature_loot_template` (`Entry`, `Item`, `Chance`, `GroupId`, `Comment`) VALUES
(210, 886, 0.1, 0, "Bone Chewer - Black Metal Shortsword"),
(910, 1077, 0.1, 0, "Defias Enchanter - Defias Mage Ring"),
(787, 2013, 0.1, 0, "Skeletal Healer - Cryptbone Staff"),
(892, 2227, 0.1, 0, "Splinter Fist Taskmaster - Heavy Ogre War Axe"),
(533, 2233, 0.1, 0, "Nightbane Shadow Weaver - Shadow Weaver Leggings"),
(397, 2566, 1.5, 0, "Morganth - Sacrificial Robes"),
(2372, 3204, 0.1, 0, "Mudsnout Gnoll - Deepwood Bracers"),
(4517, 3569, 1.5, 0, "Death's Head Priest - Vicar's Robe"),
(6523, 6315, 0.1, 0, "Dark Iron Rifleman - Steelarrow Crossbow");
*/
@@ -0,0 +1,6 @@
/*
DELETE FROM `spell_script_names` WHERE `ScriptName` IN ('spell_pri_mana_burn','spell_gen_clear_fear_poly');
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(5138, 'spell_gen_clear_fear_poly'),
(8129, 'spell_gen_clear_fear_poly');
*/
@@ -0,0 +1,5 @@
--
UPDATE `smart_scripts` SET `target_type`=12, `target_param1`=1 WHERE `entryorguid` IN (31135,3113500,3113501,3113502,3113503,3113504,3113505,3113506) AND `source_type` IN (0,9) AND `target_type`=7;
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (31135) AND `source_type`=0 AND `id`=42;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(31135, 0, 42, 0, 19, 0, 100, 0, 0, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Geirrvif - On quest taken - Store target");
@@ -0,0 +1,6 @@
--
UPDATE `smart_scripts` SET `target_type`=12, `target_param1`=1 WHERE `entryorguid` IN (18471) AND `source_type` IN (0) AND `target_type`=7 AND `action_type`=1;
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (18471) AND `source_type`=0 AND `id`=28;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(18471, 0, 28, 0, 19, 0, 100, 0, 0, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Gurgthock - On quest taken - Store target");
@@ -0,0 +1,5 @@
--
UPDATE `smart_scripts` SET `target_type`=12, `target_param1`=1 WHERE `entryorguid` IN (30007) AND `source_type` IN (0) AND `target_type`=7 AND `action_type`=1;
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (30007) AND `source_type`=0 AND `id`=20;
INSERT INTO `smart_scripts` (`entryorguid`,`source_type`,`id`,`link`,`event_type`,`event_phase_mask`,`event_chance`,`event_flags`,`event_param1`,`event_param2`,`event_param3`,`event_param4`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
(30007, 0, 20, 0, 19, 0, 100, 0, 0, 0, 0, 0, 64, 1, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, "Gurgthock - On quest taken - Store target");
@@ -0,0 +1,2 @@
--
UPDATE `smart_scripts` SET `target_type`=1 WHERE `entryorguid` IN (26935,2693501,2693500) AND `source_type` IN (0,9) AND `target_type`=7 AND `action_type`=1;
+5
View File
@@ -52,7 +52,12 @@ namespace Trinity
#define WPWarning(cond, msg) ASSERT_BEGIN do { if (!(cond)) Trinity::Warning(__FILE__, __LINE__, __FUNCTION__, (msg)); } while(0) ASSERT_END
#define WPAbort() ASSERT_BEGIN do { Trinity::Abort(__FILE__, __LINE__, __FUNCTION__); } while(0) ASSERT_END
#ifdef PERFORMANCE_PROFILING
#define ASSERT(cond, ...) ((void)0)
#else
#define ASSERT WPAssert
#endif
#define ABORT WPAbort
template <typename T> inline T* ASSERT_NOTNULL(T* pointer)
+4 -2
View File
@@ -166,8 +166,10 @@ inline bool Log::ShouldLog(std::string const& type, LogLevel level) const
} \
}
#if TRINITY_PLATFORM != TRINITY_PLATFORM_WINDOWS
void check_args(const char*, ...) ATTR_PRINTF(1, 2);
#ifdef PERFORMANCE_PROFILING
#define TC_LOG_MESSAGE_BODY(filterType__, level__, ...) ((void)0)
#elif TRINITY_PLATFORM != TRINITY_PLATFORM_WINDOWS
void check_args(char const*, ...) ATTR_PRINTF(1, 2);
void check_args(std::string const&, ...);
// This will catch format errors on build time
+4 -1
View File
@@ -116,7 +116,10 @@ public:
#define sMetric Metric::instance()
#if TRINITY_PLATFORM != TRINITY_PLATFORM_WINDOWS
#ifdef PERFORMANCE_PROFILING
#define TC_METRIC_EVENT(category, title, description) ((void)0)
#define TC_METRIC_VALUE(category, value) ((void)0)
#elif TRINITY_PLATFORM != TRINITY_PLATFORM_WINDOWS
#define TC_METRIC_EVENT(category, title, description) \
do { \
if (sMetric->IsEnabled()) \
@@ -238,6 +238,7 @@ void DatabaseWorkerPool<T>::DirectCommitTransaction(SQLTransaction& transaction)
/// @todo More elegant way
if (errorCode == ER_LOCK_DEADLOCK)
{
//todo: handle multiple sync threads deadlocking in a similar way as async threads
uint8 loopBreaker = 5;
for (uint8 i = 0; i < loopBreaker; ++i)
{
+20 -3
View File
@@ -15,12 +15,19 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "DatabaseEnv.h"
#include "Log.h"
#include "Transaction.h"
#include "MySQLConnection.h"
#include "PreparedStatement.h"
#include "Timer.h"
#include <mysqld_error.h>
#include <sstream>
#include <thread>
std::mutex TransactionTask::_deadlockLock;
#define DEADLOCK_MAX_RETRY_TIME_MS 60000
//- Append a raw ad-hoc query to the transaction
void Transaction::Append(const char* sql)
{
@@ -72,12 +79,22 @@ bool TransactionTask::Execute()
if (errorCode == ER_LOCK_DEADLOCK)
{
std::ostringstream threadIdStream;
threadIdStream << std::this_thread::get_id();
std::string threadId = threadIdStream.str();
// Make sure only 1 async thread retries a transaction so they don't keep dead-locking each other
std::lock_guard<std::mutex> lock(_deadlockLock);
uint8 loopBreaker = 5; // Handle MySQL Errno 1213 without extending deadlock to the core itself
for (uint8 i = 0; i < loopBreaker; ++i)
for (uint32 loopDuration = 0, startMSTime = getMSTime(); loopDuration <= DEADLOCK_MAX_RETRY_TIME_MS; loopDuration = GetMSTimeDiffToNow(startMSTime))
{
if (!m_conn->ExecuteTransaction(m_trans))
return true;
TC_LOG_WARN("sql.sql", "Deadlocked SQL Transaction, retrying. Loop timer: %u ms, Thread Id: %s", loopDuration, threadId.c_str());
}
TC_LOG_ERROR("sql.sql", "Fatal deadlocked SQL Transaction, it will not be retried anymore. Thread Id: %s", threadId.c_str());
}
// Clean up now.
+4 -2
View File
@@ -287,10 +287,12 @@ bool DBUpdater<T>::Populate(DatabaseWorkerPool<T>& pool)
}
case LOCATION_DOWNLOAD:
{
const char* filename = base.filename().generic_string().c_str();
const char* workdir = boost::filesystem::current_path().generic_string().c_str();
TC_LOG_ERROR("sql.updates", ">> File \"%s\" is missing, download it from \"https://t.me/trinitycorelegacy\"" \
" Mirror: \"https://github.com/TrinityCoreLegacy/TrinityCore/releases\"" \
" uncompress it and place the file TDB_full_world_(a_variable_name).sql where your worldserver binary is located.", base.filename().generic_string().c_str());
break;
" uncompress it and place the file \"%s\" in the directory \"%s\".", filename, filename, workdir);
break;
}
}
return false;
+35
View File
@@ -0,0 +1,35 @@
/*
* Copyright (C) 2008-2018 TrinityCore <https://www.trinitycore.org/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef TRINITY_AIEXCEPTION_H
#define TRINITY_AIEXCEPTION_H
#include "Define.h"
#include <exception>
#include <string>
class TC_GAME_API InvalidAIException : public std::exception
{
public:
InvalidAIException(char const* msg) : msg_(msg) {}
char const* what() const noexcept override { return msg_.c_str(); }
private:
std::string const msg_;
};
#endif
+11 -6
View File
@@ -17,17 +17,20 @@
*/
#include "PetAI.h"
#include "AIException.h"
#include "Creature.h"
#include "Errors.h"
#include "Group.h"
#include "Log.h"
#include "MotionMaster.h"
#include "ObjectAccessor.h"
#include "Pet.h"
#include "Player.h"
#include "Spell.h"
#include "ObjectAccessor.h"
#include "SpellHistory.h"
#include "SpellMgr.h"
#include "Creature.h"
#include "Util.h"
#include "Group.h"
#include "SpellInfo.h"
#include "SpellMgr.h"
#include "Util.h"
int32 PetAI::Permissible(Creature const* creature)
{
@@ -43,6 +46,8 @@ int32 PetAI::Permissible(Creature const* creature)
PetAI::PetAI(Creature* c) : CreatureAI(c), i_tracker(TIME_INTERVAL_LOOK)
{
if (!me->GetCharmInfo())
throw InvalidAIException("Creature doesn't have a valid charm info");
UpdateAllies();
}
@@ -152,7 +157,7 @@ void PetAI::UpdateAI(uint32 diff)
if (!spellInfo)
continue;
if (me->GetCharmInfo() && me->GetSpellHistory()->HasGlobalCooldown(spellInfo))
if (me->GetSpellHistory()->HasGlobalCooldown(spellInfo))
continue;
// check spell cooldown
+12 -2
View File
@@ -16,6 +16,7 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "AIException.h"
#include "Creature.h"
#include "CreatureAISelector.h"
#include "CreatureAIFactory.h"
@@ -25,6 +26,7 @@
#include "GameObject.h"
#include "GameObjectAIFactory.h"
#include "Log.h"
#include "ScriptMgr.h"
namespace FactorySelector
@@ -84,8 +86,16 @@ namespace FactorySelector
return ASSERT_NOTNULL(sCreatureAIRegistry->GetRegistryItem("PetAI"))->Create(creature);
// scriptname in db
if (CreatureAI* scriptedAI = sScriptMgr->GetCreatureAI(creature))
return scriptedAI;
try
{
if (CreatureAI* scriptedAI = sScriptMgr->GetCreatureAI(creature))
return scriptedAI;
}
catch (InvalidAIException const& e)
{
TC_LOG_ERROR("entities.unit", "Exception trying to assign script '%s' to Creature (Entry: %u), this Creature will have a default AI. Exception message: %s",
creature->GetScriptName().c_str(), creature->GetEntry(), e.what());
}
return SelectFactory<CreatureAI>(creature)->Create(creature);
}
+3 -2
View File
@@ -901,7 +901,8 @@ void SmartAI::StopFollow(bool complete)
if (!complete)
return;
if (Player* player = ObjectAccessor::GetPlayer(*me, mFollowGuid))
Player* player = ObjectAccessor::GetPlayer(*me, mFollowGuid);
if (player)
{
if (!mFollowCreditType)
player->RewardPlayerAndGroupAtEvent(mFollowCredit, me);
@@ -911,7 +912,7 @@ void SmartAI::StopFollow(bool complete)
SetDespawnTime(5000);
StartDespawn();
GetScript()->ProcessEventsFor(SMART_EVENT_FOLLOW_COMPLETED);
GetScript()->ProcessEventsFor(SMART_EVENT_FOLLOW_COMPLETED, player);
}
void SmartAI::SetScript9(SmartScriptHolder& e, uint32 entry, Unit* invoker)
@@ -1333,7 +1333,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
// continue;
Position pos = (*itr)->GetPositionWithOffset(Position(e.target.x, e.target.y, e.target.z, e.target.o));
GetBaseObject()->SummonGameObject(e.action.summonGO.entry, pos, G3D::Quat(), e.action.summonGO.despawnTime);
GetBaseObject()->SummonGameObject(e.action.summonGO.entry, pos, G3D::Quat(), e.action.summonGO.despawnTime, GOSummonType(e.action.summonGO.summonType));
}
delete targets;
@@ -1342,7 +1342,7 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
if (e.GetTargetType() != SMART_TARGET_POSITION)
break;
GetBaseObject()->SummonGameObject(e.action.summonGO.entry, Position(e.target.x, e.target.y, e.target.z, e.target.o), G3D::Quat(), e.action.summonGO.despawnTime);
GetBaseObject()->SummonGameObject(e.action.summonGO.entry, Position(e.target.x, e.target.y, e.target.z, e.target.o), G3D::Quat(), e.action.summonGO.despawnTime, GOSummonType(e.action.summonGO.summonType));
break;
}
case SMART_ACTION_KILL_UNIT:
@@ -3272,7 +3272,7 @@ void SmartScript::ProcessEvent(SmartScriptHolder& e, Unit* unit, uint32 var0, ui
uint32 count = me->EnsureVictim()->GetAuraCount(e.event.aura.spell);
if (count < e.event.aura.count)
return;
ProcessTimedAction(e, e.event.aura.repeatMin, e.event.aura.repeatMax);
ProcessTimedAction(e, e.event.aura.repeatMin, e.event.aura.repeatMax, me->GetVictim());
break;
}
case SMART_EVENT_CHARMED:
@@ -368,6 +368,54 @@ void SmartAIMgr::LoadSmartAIFromDB()
UnLoadHelperStores();
}
/*static*/ bool SmartAIMgr::EventHasInvoker(SMART_EVENT event)
{
switch (event)
{ // white list of events that actually have an invoker passed to them
case SMART_EVENT_AGGRO:
case SMART_EVENT_DEATH:
case SMART_EVENT_KILL:
case SMART_EVENT_SUMMONED_UNIT:
case SMART_EVENT_SPELLHIT:
case SMART_EVENT_SPELLHIT_TARGET:
case SMART_EVENT_DAMAGED:
case SMART_EVENT_RECEIVE_HEAL:
case SMART_EVENT_RECEIVE_EMOTE:
case SMART_EVENT_JUST_SUMMONED:
case SMART_EVENT_DAMAGED_TARGET:
case SMART_EVENT_SUMMON_DESPAWNED:
case SMART_EVENT_PASSENGER_BOARDED:
case SMART_EVENT_PASSENGER_REMOVED:
case SMART_EVENT_GOSSIP_HELLO:
case SMART_EVENT_GOSSIP_SELECT:
case SMART_EVENT_ACCEPTED_QUEST:
case SMART_EVENT_REWARD_QUEST:
case SMART_EVENT_FOLLOW_COMPLETED:
case SMART_EVENT_ON_SPELLCLICK:
case SMART_EVENT_GO_LOOT_STATE_CHANGED:
case SMART_EVENT_AREATRIGGER_ONTRIGGER:
case SMART_EVENT_IC_LOS:
case SMART_EVENT_OOC_LOS:
case SMART_EVENT_DISTANCE_CREATURE:
case SMART_EVENT_FRIENDLY_HEALTH:
case SMART_EVENT_FRIENDLY_HEALTH_PCT:
case SMART_EVENT_FRIENDLY_IS_CC:
case SMART_EVENT_FRIENDLY_MISSING_BUFF:
case SMART_EVENT_ACTION_DONE:
case SMART_EVENT_TARGET_HEALTH_PCT:
case SMART_EVENT_TARGET_MANA_PCT:
case SMART_EVENT_RANGE:
case SMART_EVENT_VICTIM_CASTING:
case SMART_EVENT_TARGET_BUFFED:
case SMART_EVENT_IS_BEHIND_TARGET:
case SMART_EVENT_INSTANCE_PLAYER_ENTER:
case SMART_EVENT_TRANSPORT_ADDCREATURE:
return true;
default:
return false;
}
}
bool SmartAIMgr::IsTargetValid(SmartScriptHolder const& e)
{
if (std::abs(e.target.o) > 2 * float(M_PI))
@@ -421,6 +469,16 @@ bool SmartAIMgr::IsTargetValid(SmartScriptHolder const& e)
}
break;
}
case SMART_TARGET_ACTION_INVOKER:
case SMART_TARGET_ACTION_INVOKER_VEHICLE:
case SMART_TARGET_INVOKER_PARTY:
if (e.GetScriptType() != SMART_SCRIPT_TYPE_TIMED_ACTIONLIST && e.GetEventType() != SMART_EVENT_LINK && !EventHasInvoker(e.event.type))
{
TC_LOG_ERROR("sql.sql", "SmartAIMgr: Entry %d SourceType %u Event %u Action %u has invoker target, but action does not provide any invoker!", e.entryOrGuid, e.GetScriptType(), e.GetEventType(), e.GetActionType());
// allow this to load for now
// return false;
}
break;
case SMART_TARGET_PLAYER_RANGE:
case SMART_TARGET_SELF:
case SMART_TARGET_VICTIM:
@@ -428,11 +486,8 @@ bool SmartAIMgr::IsTargetValid(SmartScriptHolder const& e)
case SMART_TARGET_HOSTILE_LAST_AGGRO:
case SMART_TARGET_HOSTILE_RANDOM:
case SMART_TARGET_HOSTILE_RANDOM_NOT_TOP:
case SMART_TARGET_ACTION_INVOKER:
case SMART_TARGET_INVOKER_PARTY:
case SMART_TARGET_POSITION:
case SMART_TARGET_NONE:
case SMART_TARGET_ACTION_INVOKER_VEHICLE:
case SMART_TARGET_OWNER_OR_SUMMONER:
case SMART_TARGET_THREAT_LIST:
case SMART_TARGET_CLOSEST_GAMEOBJECT:
@@ -832,6 +832,7 @@ struct SmartAction
{
uint32 entry;
uint32 despawnTime;
uint32 summonType;
} summonGO;
struct
@@ -1182,7 +1183,7 @@ enum SMARTAI_TEMPLATE
enum SMARTAI_TARGETS
{
SMART_TARGET_NONE = 0, // NONE, defaulting to invoket
SMART_TARGET_NONE = 0, // NONE
SMART_TARGET_SELF = 1, // Self cast
SMART_TARGET_VICTIM = 2, // Our current target (ie: highest aggro)
SMART_TARGET_HOSTILE_SECOND_AGGRO = 3, // Second highest aggro, maxdist, playerOnly, powerType + 1
@@ -1668,6 +1669,8 @@ class TC_GAME_API SmartAIMgr
//event stores
SmartAIEventMap mEventMap[SMART_SCRIPT_TYPE_MAX];
static bool EventHasInvoker(SMART_EVENT event);
bool IsEventValid(SmartScriptHolder& e);
bool IsTargetValid(SmartScriptHolder const& e);
@@ -787,6 +787,7 @@ Creature* Battlefield::SpawnCreature(uint32 entry, Position const& pos)
// Set creature in world
map->AddToMap(creature);
creature->setActive(true);
creature->SetFarVisible(true);
return creature;
}
@@ -812,6 +813,7 @@ GameObject* Battlefield::SpawnGameObject(uint32 entry, Position const& pos, G3D:
// Add to world
map->AddToMap(go);
go->setActive(true);
go->SetFarVisible(true);
return go;
}
Loaded 100 of 203 files, more files were not shown because too many files have changed in this diff. Show more