DB Updates and Fixes

This commit is contained in:
hondacrx
2021-11-16 23:29:48 -05:00
parent fc5aa0d97c
commit 93c8f9bd2e
13 changed files with 512 additions and 2 deletions
@@ -2023,6 +2023,11 @@ namespace Game.Entities
SendPacket(knownSpells);
}
void SendUnlearnSpells()
{
SendPacket(new SendUnlearnSpells());
}
public void LearnSpellHighestRank(uint spellid)
{
LearnSpell(spellid, false);
+1 -1
View File
@@ -5479,7 +5479,7 @@ namespace Game.Entities
SendKnownSpells();
// SMSG_SEND_UNLEARN_SPELLS
SendPacket(new SendUnlearnSpells());
SendUnlearnSpells();
// SMSG_SEND_SPELL_HISTORY
SendSpellHistory sendSpellHistory = new();
+1 -1
View File
@@ -1194,7 +1194,7 @@ namespace Game.Entities
Cypher.Assert(i_disabledAI == null, "Attempt to schedule charm AI change on unit that already has disabled AI");
else if (m_aiLocked)
{
Cypher.Assert(!i_lockedAILifetimeExtension, "Attempt to schedule multiple charm AI changes during one update");
Cypher.Assert(i_lockedAILifetimeExtension == null, "Attempt to schedule multiple charm AI changes during one update");
i_lockedAILifetimeExtension = i_AI; // AI needs to live just a bit longer to finish its UpdateAI
}
else if (!IsPlayer())
@@ -0,0 +1,62 @@
DELETE FROM `player_classlevelstats` WHERE `class`=10;
INSERT INTO `player_classlevelstats` (`class`, `level`, `str`, `agi`, `sta`, `inte`) VALUES
(10, 1, 7, 18, 19, 20),
(10, 2, 8, 19, 21, 22),
(10, 3, 9, 21, 23, 24),
(10, 4, 9, 22, 25, 26),
(10, 5, 10, 24, 27, 28),
(10, 6, 11, 26, 29, 30),
(10, 7, 12, 28, 30, 32),
(10, 8, 13, 30, 32, 34),
(10, 9, 13, 31, 34, 36),
(10, 10, 14, 34, 36, 38),
(10, 11, 15, 36, 38, 40),
(10, 12, 17, 39, 40, 42),
(10, 13, 18, 43, 42, 44),
(10, 14, 20, 46, 44, 46),
(10, 15, 21, 48, 46, 48),
(10, 16, 22, 50, 48, 50),
(10, 17, 22, 52, 50, 52),
(10, 18, 23, 54, 51, 54),
(10, 19, 24, 56, 53, 56),
(10, 20, 25, 58, 55, 58),
(10, 21, 26, 60, 57, 60),
(10, 22, 27, 62, 59, 62),
(10, 23, 28, 64, 61, 64),
(10, 24, 28, 66, 63, 66),
(10, 25, 29, 68, 65, 68),
(10, 26, 30, 70, 67, 70),
(10, 27, 31, 72, 69, 72),
(10, 28, 32, 74, 71, 74),
(10, 29, 33, 77, 73, 77),
(10, 30, 34, 79, 75, 79),
(10, 31, 35, 82, 78, 82),
(10, 32, 36, 84, 80, 84),
(10, 33, 37, 87, 83, 87),
(10, 34, 39, 90, 86, 90),
(10, 35, 40, 93, 88, 93),
(10, 36, 41, 96, 91, 96),
(10, 37, 43, 99, 94, 99),
(10, 38, 44, 102, 97, 102),
(10, 39, 46, 106, 101, 106),
(10, 40, 47, 109, 104, 109),
(10, 41, 49, 113, 108, 113),
(10, 42, 50, 117, 112, 117),
(10, 43, 52, 121, 116, 121),
(10, 44, 54, 126, 120, 126),
(10, 45, 56, 130, 124, 130),
(10, 46, 58, 135, 128, 135),
(10, 47, 60, 140, 133, 135),
(10, 48, 62, 145, 138, 145),
(10, 49, 64, 150, 143, 150),
(10, 50, 67, 155, 148, 155),
(10, 51, 83, 193, 187, 193),
(10, 52, 89, 208, 204, 208),
(10, 53, 96, 224, 223, 224),
(10, 54, 104, 241, 244, 241),
(10, 55, 112, 260, 267, 260),
(10, 56, 120, 280, 292, 280),
(10, 57, 128, 299, 317, 299),
(10, 58, 137, 319, 342, 319),
(10, 59, 146, 340, 372, 340),
(10, 60, 193, 450, 414, 450);
File diff suppressed because one or more lines are too long
@@ -0,0 +1,2 @@
--
UPDATE `creature_template` SET `flags_extra`= `flags_extra`|1073741824 WHERE `entry` IN (36789,38174);
@@ -0,0 +1,73 @@
--
DELETE FROM `creature` WHERE `guid` IN (158,183,1730,1731,1736,1737);
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseId`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `spawndist`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `VerifiedBuild`) VALUES
(158, 27213, 571, 0, 0, '0', 0, 0, 0, 3108.18, -554.998, 118.26, 5.33756, 300, 0, 0, 11614, 0, 0, 0, 0, 0, "", 0),
(183, 27213, 571, 0, 0, '0', 0, 0, 0, 3133.18, -543.726, 121.418, 0.530924, 300, 0, 0, 11614, 0, 0, 0, 0, 0, "", 0),
(1730, 27213, 571, 0, 0, '0', 0, 0, 0, 2984.51, -423.93, 123.224, 5.70277, 300, 0, 0, 11614, 0, 2, 0, 0, 0, "", 0),
(1731, 27213, 571, 0, 0, '0', 0, 0, 0, 3129.03, -570.809, 115.711, 1.94386, 300, 0, 0, 12013, 0, 2, 0, 0, 0, "", 0),
(1736, 28014, 571, 0, 0, '0', 0, 0, 0, 3263.77, -629.451, 165.484, 3.12117, 300, 0, 0, 4050, 0, 0, 0, 0, 0, "", 0),
(1737, 27213, 571, 0, 0, '0', 0, 0, 0, 2893.53, -382.92, 112.461, 5.45183, 300, 0, 0, 12013, 0, 0, 0, 0, 0, "", 0);
DELETE FROM `creature_addon` WHERE `guid` IN (1730,1731);
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `bytes1`, `bytes2`, `emote`, `auras`) VALUES
(1730,17300,0,0,0,0,""),
(1731,17310,0,0,0,0,"");
DELETE FROM `waypoint_data` WHERE `id` IN (17300,17310);
INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `delay`, `move_type`, `action`, `action_chance`, `wpguid`) VALUES
(17300, 1, 2984.509, -423.930, 123.22404, 0, 0, 0, 100, 0),
(17300, 2, 3000.062, -426.271, 123.34905, 0, 0, 0, 100, 0),
(17300, 3, 3010.303, -436.453, 123.26693, 0, 0, 0, 100, 0),
(17300, 4, 3017.674, -443.929, 123.25847, 0, 0, 0, 100, 0),
(17300, 5, 3027.812, -453.585, 123.23341, 0, 0, 0, 100, 0),
(17300, 6, 3037.949, -463.240, 123.16862, 0, 0, 0, 100, 0),
(17300, 7, 3045.731, -472.101, 122.98542, 0, 0, 0, 100, 0),
(17300, 8, 3057.241, -483.007, 122.81584, 0, 0, 0, 100, 0),
(17300, 9, 3067.224, -492.821, 122.79897, 0, 0, 0, 100, 0),
(17300, 10, 3079.742, -505.049, 122.07685, 0, 0, 0, 100, 0),
(17300, 11, 3089.917, -514.665, 121.37952, 0, 0, 0, 100, 0),
(17300, 12, 3103.551, -528.854, 119.91824, 0, 0, 0, 100, 0),
(17300, 13, 3111.064, -543.581, 118.27360, 0, 0, 0, 100, 0),
(17300, 14, 3118.162, -559.575, 116.79916, 0, 0, 0, 100, 0),
(17300, 15, 3124.188, -573.252, 115.41168, 5000, 0, 0, 100, 0),
(17300, 16, 3118.162, -559.575, 116.79916, 0, 0, 0, 100, 0),
(17300, 17, 3111.064, -543.581, 118.27360, 0, 0, 0, 100, 0),
(17300, 18, 3103.551, -528.854, 119.91824, 0, 0, 0, 100, 0),
(17300, 19, 3089.917, -514.665, 121.37952, 0, 0, 0, 100, 0),
(17300, 20, 3079.742, -505.049, 122.07685, 0, 0, 0, 100, 0),
(17300, 21, 3067.224, -492.821, 122.79897, 0, 0, 0, 100, 0),
(17300, 22, 3057.241, -483.007, 122.81584, 0, 0, 0, 100, 0),
(17300, 23, 3045.731, -472.101, 122.98542, 0, 0, 0, 100, 0),
(17300, 24, 3037.949, -463.240, 123.16862, 0, 0, 0, 100, 0),
(17300, 25, 3027.812, -453.585, 123.23341, 0, 0, 0, 100, 0),
(17300, 26, 3017.674, -443.929, 123.25847, 0, 0, 0, 100, 0),
(17300, 27, 3010.303, -436.453, 123.26693, 0, 0, 0, 100, 0),
(17300, 28, 3000.062, -426.271, 123.34905, 0, 0, 0, 100, 0),
(17300, 29, 2984.509, -423.930, 123.22404, 5000, 0, 0, 100, 0),
(17310, 1, 3129.034, -570.809, 115.71011, 5000, 0, 0, 100, 0),
(17310, 2, 3125.869, -563.250, 116.52859, 0, 0, 0, 100, 0),
(17310, 3, 3119.029, -544.310, 118.42372, 0, 0, 0, 100, 0),
(17310, 4, 3112.628, -533.246, 119.40752, 0, 0, 0, 100, 0),
(17310, 5, 3106.946, -524.416, 120.37529, 0, 0, 0, 100, 0),
(17310, 6, 3086.578, -504.918, 121.97250, 0, 0, 0, 100, 0),
(17310, 7, 3071.785, -491.184, 122.73079, 0, 0, 0, 100, 0),
(17310, 8, 3058.888, -479.356, 123.06646, 0, 0, 0, 100, 0),
(17310, 9, 3045.990, -467.528, 123.07573, 0, 0, 0, 100, 0),
(17310, 10, 3035.673, -458.065, 123.20112, 0, 0, 0, 100, 0),
(17310, 11, 3019.243, -441.917, 123.27584, 0, 0, 0, 100, 0),
(17310, 12, 3007.599, -429.769, 123.26791, 0, 0, 0, 100, 0),
(17310, 13, 2995.924, -424.297, 123.33580, 0, 0, 0, 100, 0),
(17310, 14, 2982.658, -420.311, 123.22533, 5000, 0, 0, 100, 0),
(17310, 15, 2995.924, -424.297, 123.33580, 0, 0, 0, 100, 0),
(17310, 16, 3007.599, -429.769, 123.26791, 0, 0, 0, 100, 0),
(17310, 17, 3019.243, -441.917, 123.27584, 0, 0, 0, 100, 0),
(17310, 18, 3035.673, -458.065, 123.20112, 0, 0, 0, 100, 0),
(17310, 19, 3045.990, -467.528, 123.07573, 0, 0, 0, 100, 0),
(17310, 20, 3058.888, -479.356, 123.06646, 0, 0, 0, 100, 0),
(17310, 21, 3071.785, -491.184, 122.73079, 0, 0, 0, 100, 0),
(17310, 22, 3086.578, -504.918, 121.97250, 0, 0, 0, 100, 0),
(17310, 23, 3106.946, -524.416, 120.37529, 0, 0, 0, 100, 0),
(17310, 24, 3112.628, -533.246, 119.40752, 0, 0, 0, 100, 0),
(17310, 25, 3119.029, -544.310, 118.42372, 0, 0, 0, 100, 0),
(17310, 26, 3125.869, -563.250, 116.52859, 0, 0, 0, 100, 0),
(17310, 27, 3129.034, -570.809, 115.71011, 0, 0, 0, 100, 0);
@@ -0,0 +1,3 @@
--
UPDATE `quest_template` SET `RewardNextQuest`=0 WHERE `ID`=10135;
UPDATE `quest_template_addon` SET `NextQuestID`=0 WHERE `ID`=10135;
@@ -0,0 +1,4 @@
--
DELETE FROM `spell_script_names` WHERE `spell_id`=63233 AND `ScriptName`="spell_gen_break_shield";
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(63233, "spell_gen_break_shield");
@@ -0,0 +1,4 @@
--
DELETE FROM `spell_script_names` WHERE `spell_id`=63215 AND `ScriptName`="spell_gen_summon_tournament_mount";
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
(63215, "spell_gen_summon_tournament_mount");
@@ -0,0 +1,11 @@
--
DELETE FROM `quest_template_addon` WHERE `ID` IN (12598, 12553, 12584, 12583, 12555, 12552, 12554, 12606);
INSERT INTO `quest_template_addon` (`ID`,`PrevQuestID`,`NextQuestID`,`ExclusiveGroup`,`ProvidedItemCount`,`SpecialFlags`) VALUES
(12598, -12596, 0, 0, 1, 32),
(12553, 12598, 0, 0, 0, 0),
(12584, 12552, 0, 0, 0, 0),
(12583, 12553, 0, 0, 0, 0),
(12555, 12583, 0, 0, 1, 0),
(12552, 12598, 0, 0, 0, 0),
(12554, 12552, 0, 0, 0, 0),
(12606, 12598, 0, 0, 0, 0);
@@ -0,0 +1,20 @@
--
DELETE FROM `gameobject` WHERE `guid` IN (6687,6688,6689);
INSERT INTO `gameobject` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnDifficulties`, `phaseId`, `position_x`, `position_y`, `position_z`, `orientation`, `rotation0`, `rotation1`, `rotation2`, `rotation3`, `spawntimesecs`, `animprogress`, `state`) VALUES
(6687, 188019, 571, 0, 0, '0', 0, 3739.25, 5047.19, 2.57367, 2.70438, -0, -0, -0.9762, -0.21687, 300, 255, 1),
(6688, 188019, 571, 0, 0, '0', 0, 3390.51, 5137.37, 16.1839, 2.64766, -0, -0, -0.969659, -0.244463, 300, 255, 1),
(6689, 188019, 571, 0, 0, '0', 0, 3515.22, 5017.28, 1.93156, 1.74533, -0, -0, -0.766045, -0.642787, 300, 255, 1);
DELETE FROM `creature_text` WHERE `CreatureID`=25807;
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
(25807,0,0,"Are you crazy? You're about to blow us sky high! I'll take care of this wreck once everything else is finished.",12,0,100,0,0,0,25043,0,"Iggy Tailspin Cogtoggle");
DELETE FROM `smart_scripts` WHERE `entryorguid`=-119150 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
(-119150,0,0,0,8,0,100,512,46171,0,0,0,1,0,0,0,0,0,0,19,25807,20,0,0,0,0,0,"East Crash - On Spellhit - say text");
DELETE FROM `smart_scripts` WHERE `entryorguid` IN (25845, 25847, 25846) 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
(25845,0,1,0,8,0,100,512,46171,0,0,0,11,34521,0,0,0,0,0,1,0,0,0,0,0,0,0,"Northwest Crash - On Spellhit - cast Serverside - Summon Fire"),
(25846,0,1,0,8,0,100,512,46171,0,0,0,11,34521,0,0,0,0,0,1,0,0,0,0,0,0,0,"South Crash - On Spellhit - cast Serverside - Summon Fire"),
(25847,0,1,0,8,0,100,512,46171,0,0,0,11,34521,0,0,0,0,0,1,0,0,0,0,0,0,0,"East Crash - On Spellhit - cast Serverside - Summon Fire");
@@ -0,0 +1,9 @@
DELETE FROM `spell_linked_spell` WHERE `spell_trigger` = 54089;
DELETE FROM `spell_script_names` WHERE `ScriptName` IN ('spell_stratholme_haunting_phantoms', 'spell_scourge_disguise', 'spell_scourge_disguise_instability', 'spell_scourge_disguise_expiring', 'spell_drop_disguise');
INSERT INTO `spell_script_names` (`spell_id`,`ScriptName`) VALUES
(16336, 'spell_stratholme_haunting_phantoms'),
(51966, 'spell_scourge_disguise'),
(51971, 'spell_scourge_disguise_instability'),
(52010, 'spell_scourge_disguise_expiring'),
(54089, 'spell_drop_disguise');