Skip to content

Commit dd245ef

Browse files
author
Rochet2
committed
Merge TrinityCore 3.3.5 to ElunaTrinityWotlk [skip ci]
2 parents ef5b175 + a232628 commit dd245ef

40 files changed

+3184
-3325
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
-- Kalec
2+
UPDATE `creature_template` SET `unit_flags` = 0 WHERE `entry` = 24844;
3+
UPDATE `creature_template` SET `ScriptName` = '' WHERE `entry` = 24848;
4+
UPDATE `waypoint_data` SET `orientation` = NULL WHERE `id` = 248440 AND `point` = 8;
5+
UPDATE `waypoint_data` SET `move_type` = 1 WHERE `id` = 248440;
6+
7+
-- Vexallus
8+
DELETE FROM `spell_script_names` WHERE `ScriptName` IN (
9+
'spell_vexallus_clear_energy_feedback',
10+
'spell_vexallus_energy_feedback');
11+
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
12+
(47108, 'spell_vexallus_clear_energy_feedback'),
13+
(44328, 'spell_vexallus_energy_feedback');
14+
15+
DELETE FROM `creature_text` WHERE `CreatureID` = 24744 AND `GroupID` = 5;
16+
INSERT INTO `creature_text` (`CreatureID`,`GroupID`,`ID`,`Text`,`Type`,`Language`,`Probability`,`Emote`,`Duration`,`Sound`,`BroadcastTextId`,`TextRange`,`comment`) VALUES
17+
(24744,5,0,"Vexallus overloads!",41,0,100,0,0,0,23781,0,"vexallus EMOTE_OVERLOAD");
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
--
2+
DELETE FROM `smart_scripts` WHERE `entryorguid` = 185522 AND `source_type` = 1 AND `id` = 1;
3+
UPDATE `smart_scripts` SET `link` = 0 WHERE `entryorguid` = 185522 AND `source_type` = 1 AND `id` = 0;
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
-- Stratholme: Move Timmy the Cruel to database
2+
SET @TIMMY=10808;
3+
SET @CGUID=39690;
4+
SET @SGROUP=327;
5+
6+
DELETE FROM `creature` WHERE `guid`=@CGUID AND `id`=@TIMMY;
7+
INSERT INTO `creature` (`guid`, `id`, `map`, `zoneId`, `areaId`, `spawnMask`, `phaseMask`, `modelid`, `equipment_id`, `position_x`, `position_y`, `position_z`, `orientation`, `spawntimesecs`, `wander_distance`, `currentwaypoint`, `curhealth`, `curmana`, `MovementType`, `npcflag`, `unit_flags`, `dynamicflags`, `ScriptName`, `StringId`, `VerifiedBuild`) VALUES
8+
(@CGUID, @TIMMY, 329, 2017, 0, 1, 1, 0, 0, 3625.3583984375, -3188.1083984375, 130.3984832763671875, 4.834561824798583984, 604800, 0, 0, 22968, 0, 2, 0, 0, 0, '', NULL, 11159); -- Timmy the Cruel (Area: 0 - Difficulty: 0) CreateObject2 (possible waypoints or random movement)
9+
10+
DELETE FROM `spawn_group_template` WHERE `groupId`=@SGROUP;
11+
INSERT INTO `spawn_group_template` (`groupId`, `groupName`, `groupFlags`) VALUES
12+
(@SGROUP, 'Stratholme - Timmy the Cruel', 4);
13+
14+
DELETE FROM `spawn_group` WHERE `groupId`=@SGROUP;
15+
INSERT INTO `spawn_group` (`groupId`, `spawnType`, `spawnId`) VALUES
16+
(@SGROUP, 0, @CGUID);
17+
18+
-- Thanks @Rushor for wp
19+
SET @PATH=@TIMMY * 10;
20+
DELETE FROM `waypoint_data` WHERE `id`=@PATH;
21+
INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`, `move_type`, `action`, `action_chance`, `wpguid`) VALUES
22+
(@PATH, 1, 3625.36, -3188.11, 130.398, NULL, 0, 0, 0, 100, 0),
23+
(@PATH, 2, 3637.91, -3196.12, 128.729, NULL, 0, 0, 0, 100, 0),
24+
(@PATH, 3, 3653.79, -3202.95, 127.506, NULL, 0, 0, 0, 100, 0),
25+
(@PATH, 4, 3674.53, -3204.6, 126.548, NULL, 0, 0, 0, 100, 0),
26+
(@PATH, 5, 3689.46, -3191.14, 127.1, NULL, 0, 0, 0, 100, 0),
27+
(@PATH, 6, 3657.53, -3188.62, 126.672, NULL, 0, 0, 0, 100, 0),
28+
(@PATH, 7, 3655.75, -3177.17, 126.752, NULL, 0, 0, 0, 100, 0),
29+
(@PATH, 8, 3672.97, -3171.48, 126.442, NULL, 0, 0, 0, 100, 0),
30+
(@PATH, 9, 3680.46, -3162.15, 126.653, NULL, 0, 0, 0, 100, 0),
31+
(@PATH, 10, 3689.46, -3191.14, 127.1, NULL, 0, 0, 0, 100, 0),
32+
(@PATH, 11, 3674.53, -3204.6, 126.548, NULL, 0, 0, 0, 100, 0),
33+
(@PATH, 12, 3673.84, -3194.01, 126.247, NULL, 0, 0, 0, 100, 0),
34+
(@PATH, 13, 3668.11, -3185.75, 126.224, NULL, 0, 0, 0, 100, 0),
35+
(@PATH, 14, 3651.18, -3196.81, 127.28, NULL, 0, 0, 0, 100, 0),
36+
(@PATH, 15, 3658.59, -3188.92, 126.64, NULL, 0, 0, 0, 100, 0),
37+
(@PATH, 16, 3668.11, -3185.75, 126.224, NULL, 0, 0, 0, 100, 0),
38+
(@PATH, 17, 3678.24, -3171.01, 126.461, NULL, 0, 0, 0, 100, 0),
39+
(@PATH, 18, 3653.57, -3174.7, 127.125, NULL, 0, 0, 0, 100, 0),
40+
(@PATH, 19, 3645.68, -3185.68, 127.561, NULL, 0, 0, 0, 100, 0),
41+
(@PATH, 20, 3634.09, -3178.54, 128.862, NULL, 0, 0, 0, 100, 0),
42+
(@PATH, 21, 3623.95, -3180.23, 130.456, NULL, 0, 0, 0, 100, 0);
43+
44+
UPDATE `creature_template_addon` SET `SheathState`=1 WHERE `entry`=@TIMMY; -- 10808 (Timmy the Cruel)
45+
46+
DELETE FROM `creature_addon` WHERE `guid`=@CGUID;
47+
INSERT INTO `creature_addon` (`guid`, `path_id`, `mount`, `MountCreatureID`, `StandState`, `AnimTier`, `VisFlags`, `SheathState`, `PvPFlags`, `emote`, `visibilityDistanceType`, `auras`) VALUES
48+
(@CGUID, @PATH, 0, 0, 0, 0, 0, 1, 0, 0, 3, NULL);
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--
2+
DELETE FROM `creature_text` WHERE `CreatureID` = 17306 AND `GroupID` = 5;
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
--
2+
DELETE FROM `creature_text` WHERE `CreatureID` IN (17377,17653);
3+
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
4+
(17377,0,0,"Who dares interrupt--What is this; what have you done? You'll ruin everything!",14,0,100,0,0,10164,15130,0,"kelidan SAY_WAKE"),
5+
(17377,1,0,"Closer! Come closer... and burn!",14,0,100,0,0,10165,15132,0,"kelidan SAY_NOVA"),
6+
(17377,2,0,"Just as you deserve!",14,0,100,0,0,10169,17670,0,"kelidan SAY_SLAY_1"),
7+
(17377,2,1,"Your friends will soon be joining you!",14,0,100,0,0,10170,17671,0,"kelidan SAY_SLAY_2"),
8+
(17377,3,0,"Good...luck. You'll need it.",14,0,100,0,0,10171,17672,0,"kelidan SAY_DEATH"),
9+
10+
(17653,0,0,"You mustn't let him loose!",14,0,100,0,0,10166,17673,0,"Shadowmoon Channeler SAY_AGGRO_1"),
11+
(17653,0,1,"Ignorant whelps!",14,0,100,0,0,10167,17674,0,"Shadowmoon Channeler SAY_AGGRO_2"),
12+
(17653,0,2,"You fools! He'll kill us all!",14,0,100,0,0,10168,17675,0,"Shadowmoon Channeler SAY_AGGRO_3");
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
--
2+
DELETE FROM `spell_scripts` WHERE `id` IN (55770,36153);
3+
DELETE FROM `spell_script_names` WHERE `ScriptName` = 'spell_gen_cast_caster_to_target';
4+
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
5+
(55770, 'spell_gen_cast_caster_to_target'),
6+
(36153, 'spell_gen_cast_caster_to_target');
7+
8+
DELETE FROM `spell_scripts` WHERE `id` IN (44876,48724,48726,48728,48730,54640);
9+
DELETE FROM `spell_script_names` WHERE `ScriptName` = 'spell_gen_cast_target_to_target';
10+
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
11+
(44876, 'spell_gen_cast_target_to_target'),
12+
(48724, 'spell_gen_cast_target_to_target'),
13+
(48726, 'spell_gen_cast_target_to_target'),
14+
(48728, 'spell_gen_cast_target_to_target'),
15+
(48730, 'spell_gen_cast_target_to_target'),
16+
(54640, 'spell_gen_cast_target_to_target');
17+
UPDATE `smart_scripts` SET `action_type` = 11, `action_param2` = 2 WHERE `entryorguid` IN (27234,27235,27236,27237) AND `id` = 1;
18+
UPDATE `conditions` SET `ConditionTypeOrReference`=32,`ConditionValue1`=144,`ConditionValue2`=0 WHERE `SourceEntry` IN (48724,48726,48728,48730) AND `SourceTypeOrReferenceId` = 13;
19+
20+
DELETE FROM `spell_scripts` WHERE `id` IN (28698);
21+
DELETE FROM `spell_script_names` WHERE `ScriptName` = 'spell_gen_dreaming_glory';
22+
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
23+
(28698, 'spell_gen_dreaming_glory');
24+
25+
DELETE FROM `spell_scripts` WHERE `id` = 55048;
26+
DELETE FROM `spell_script_names` WHERE `ScriptName` = 'spell_storm_peaks_free_brunnhildar_prisoner';
27+
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
28+
(55048, 'spell_storm_peaks_free_brunnhildar_prisoner');
29+
30+
DELETE FROM `spell_scripts` WHERE `id` = 32580;
31+
DELETE FROM `spell_script_names` WHERE `ScriptName` = 'spell_bem_wicked_strong_fetish';
32+
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
33+
(32580, 'spell_bem_wicked_strong_fetish');
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
--
2+
DELETE FROM `spell_script_names` WHERE
3+
(`spell_id` = 33525 AND `ScriptName` = "spell_gruul_ground_slam") OR
4+
(`spell_id` = 33965 AND `ScriptName` = "spell_gruul_look_around") OR
5+
(`spell_id` = 33812 AND `ScriptName` = "spell_gruul_hurtful_strike_primer");
6+
INSERT INTO `spell_script_names` (`spell_id`,`ScriptName`) VALUES
7+
(33525,"spell_gruul_ground_slam"),
8+
(33965,"spell_gruul_look_around"),
9+
(33812,"spell_gruul_hurtful_strike_primer");
10+
11+
UPDATE `creature_text` SET `Text` = "%s roars!", `Type` = 16, `Sound` = 0, `BroadcastTextId` = 14029, `comment` = "gruul EMOTE_ROAR" WHERE `CreatureID` = 19044 AND `GroupID` = 4 AND `ID` = 0;
12+
UPDATE `creature_text` SET `TextRange` = 3 WHERE `CreatureID` = 19044;
13+
14+
UPDATE `creature_template` SET `AIName` = "SmartAI" WHERE `entry` = 19198;
15+
DELETE FROM `smart_scripts` WHERE `entryorguid` = 19198 AND `source_type` = 0;
16+
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`,`event_param5`,`action_type`,`action_param1`,`action_param2`,`action_param3`,`action_param4`,`action_param5`,`action_param6`,`target_type`,`target_param1`,`target_param2`,`target_param3`,`target_param4`,`target_x`,`target_y`,`target_z`,`target_o`,`comment`) VALUES
17+
(19198,0,0,0,60,0,100,1,0,0,0,0,0,11,33496,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Invisible Tractor Beam Source - On Update - Cast 'Tractor Beam Creator' (No Repeat)"),
18+
(19198,0,1,0,60,0,100,1,500,500,0,0,0,11,33497,0,0,0,0,0,23,0,0,0,0,0,0,0,0,"Invisible Tractor Beam Source - On Update - Cast 'Tractor Beam' (No Repeat)"),
19+
(19198,0,2,0,60,0,100,1,1000,1000,0,0,0,41,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Invisible Tractor Beam Source - On Update - Despawn Instant (No Repeat)");

src/server/game/World/World.cpp

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1431,6 +1431,18 @@ void World::LoadConfigSettings(bool reload)
14311431
TC_LOG_INFO("server.loading", "VMap data directory is: {}vmaps", m_dataPath);
14321432

14331433
m_int_configs[CONFIG_MAX_WHO] = sConfigMgr->GetIntDefault("MaxWhoListReturns", 49);
1434+
m_int_configs[CONFIG_WHO_LIST_UPDATE_INTERVAL] = sConfigMgr->GetIntDefault("WhoList.Update.Interval", 5);
1435+
if (int32(m_int_configs[CONFIG_WHO_LIST_UPDATE_INTERVAL]) <= 0)
1436+
{
1437+
TC_LOG_ERROR("server.loading", "WhoList.Update.Interval ({}) must be > 0, set to default 5 seconds.", m_int_configs[CONFIG_WHO_LIST_UPDATE_INTERVAL]);
1438+
m_int_configs[CONFIG_WHO_LIST_UPDATE_INTERVAL] = 5;
1439+
}
1440+
if (reload)
1441+
{
1442+
m_timers[WUPDATE_WHO_LIST].SetInterval(m_int_configs[CONFIG_WHO_LIST_UPDATE_INTERVAL] * IN_MILLISECONDS);
1443+
m_timers[WUPDATE_WHO_LIST].Reset();
1444+
}
1445+
14341446
m_bool_configs[CONFIG_START_ALL_SPELLS] = sConfigMgr->GetBoolDefault("PlayerStart.AllSpells", false);
14351447
m_int_configs[CONFIG_HONOR_AFTER_DUEL] = sConfigMgr->GetIntDefault("HonorPointsAfterDuel", 0);
14361448
m_bool_configs[CONFIG_RESET_DUEL_COOLDOWNS] = sConfigMgr->GetBoolDefault("ResetDuelCooldowns", false);
@@ -2176,7 +2188,7 @@ void World::SetInitialWorldSettings()
21762188

21772189
m_timers[WUPDATE_CHECK_FILECHANGES].SetInterval(500);
21782190

2179-
m_timers[WUPDATE_WHO_LIST].SetInterval(5 * IN_MILLISECONDS); // update who list cache every 5 seconds
2191+
m_timers[WUPDATE_WHO_LIST].SetInterval(getIntConfig(CONFIG_WHO_LIST_UPDATE_INTERVAL) * IN_MILLISECONDS); // update who list cache every 5 seconds
21802192

21812193
m_timers[WUPDATE_CHANNEL_SAVE].SetInterval(getIntConfig(CONFIG_PRESERVE_CUSTOM_CHANNEL_INTERVAL) * MINUTE * IN_MILLISECONDS);
21822194

src/server/game/World/World.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ enum WorldIntConfigs : uint32
327327
CONFIG_ARENA_START_PERSONAL_RATING,
328328
CONFIG_ARENA_START_MATCHMAKER_RATING,
329329
CONFIG_MAX_WHO,
330+
CONFIG_WHO_LIST_UPDATE_INTERVAL,
330331
CONFIG_HONOR_AFTER_DUEL,
331332
CONFIG_PVP_TOKEN_MAP_TYPE,
332333
CONFIG_PVP_TOKEN_ID,

src/server/scripts/EasternKingdoms/MagistersTerrace/boss_felblood_kaelthas.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include "SpellInfo.h"
2828
#include "TemporarySummon.h"
2929

30-
enum Says
30+
enum KaelthasTexts
3131
{
3232
// Kael'thas Sunstrider
3333
SAY_INTRO_1 = 0,
@@ -41,7 +41,7 @@ enum Says
4141
SAY_DEATH = 8
4242
};
4343

44-
enum Spells
44+
enum KaelthasSpells
4545
{
4646
// Kael'thas Sunstrider
4747
SPELL_FIREBALL = 44189,
@@ -89,7 +89,7 @@ uint32 gravityLapseTeleportSpells[] =
8989

9090
#define SPELL_GRAVITY_LAPSE_DAMAGE RAID_MODE<uint32>(49887, 44226)
9191

92-
enum Events
92+
enum KaelthasEvents
9393
{
9494
// Kael'thas Sunstrider
9595
EVENT_TALK_INTRO_1 = 1,
@@ -120,14 +120,15 @@ enum Events
120120
EVENT_PREPARE_REENGAGE
121121
};
122122

123-
enum Phases
123+
enum KaelthasPhases
124124
{
125125
PHASE_INTRO = 0,
126126
PHASE_ONE = 1,
127127
PHASE_TWO = 2,
128128
PHASE_OUTRO = 3
129129
};
130130

131+
// 24664 - Kael'thas Sunstrider
131132
struct boss_felblood_kaelthas : public BossAI
132133
{
133134
boss_felblood_kaelthas(Creature* creature) : BossAI(creature, DATA_KAELTHAS_SUNSTRIDER)
@@ -380,6 +381,7 @@ struct boss_felblood_kaelthas : public BossAI
380381
bool _firstGravityLapse;
381382
};
382383

384+
// 24674 - Phoenix
383385
struct npc_felblood_kaelthas_phoenix : public ScriptedAI
384386
{
385387
npc_felblood_kaelthas_phoenix(Creature* creature) : ScriptedAI(creature), _instance(creature->GetInstanceScript())

0 commit comments

Comments
 (0)