Skip to content

Commit bd819b9

Browse files
author
Github Actions
committed
Merge 3.3.5 to 3.3.5-lfgsolo
2 parents 9df97cf + a232628 commit bd819b9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+3247
-3378
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/Entities/GameObject/GameObject.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1366,6 +1366,9 @@ void GameObject::SetRespawnTime(int32 respawn)
13661366
m_respawnDelayTime = respawn > 0 ? respawn : 0;
13671367
if (respawn && !m_spawnedByDefault)
13681368
UpdateObjectVisibility(true);
1369+
1370+
if (m_spawnedByDefault && !m_respawnCompatibilityMode && m_respawnTime > 0)
1371+
SetLootState(GO_JUST_DEACTIVATED);
13691372
}
13701373

13711374
void GameObject::Respawn()

src/server/game/Entities/Unit/Unit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12868,7 +12868,7 @@ void Unit::NearTeleportTo(Position const& pos, bool casting /*= false*/)
1286812868
if (GetTypeId() == TYPEID_PLAYER)
1286912869
{
1287012870
WorldLocation target(GetMapId(), pos);
12871-
ToPlayer()->TeleportTo(target, TELE_TO_NOT_LEAVE_TRANSPORT | TELE_TO_NOT_LEAVE_COMBAT | TELE_TO_NOT_UNSUMMON_PET | (casting ? TELE_TO_SPELL : 0));
12871+
ToPlayer()->TeleportTo(target, TELE_TO_NOT_LEAVE_TRANSPORT | TELE_TO_NOT_LEAVE_COMBAT | (casting ? TELE_TO_SPELL : 0));
1287212872
}
1287312873
else
1287412874
{

src/server/game/Maps/Map.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3149,7 +3149,7 @@ bool Map::AddRespawnInfo(RespawnInfo const& info)
31493149
if (it != bySpawnIdMap.end()) // spawnid already has a respawn scheduled
31503150
{
31513151
RespawnInfo* const existing = it->second;
3152-
if (info.respawnTime <= existing->respawnTime) // delete existing in this case
3152+
if (info.respawnTime < existing->respawnTime) // delete existing in this case
31533153
DeleteRespawnInfo(existing);
31543154
else
31553155
return false;

0 commit comments

Comments
 (0)