Skip to content

Commit b7f8eae

Browse files
author
Github Actions
committed
Merge 3.3.5-base_patch to 3.3.5-racial-trait
2 parents 7711642 + 6d4bfe8 commit b7f8eae

File tree

174 files changed

+2776
-2134
lines changed

Some content is hidden

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

174 files changed

+2776
-2134
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
-- Intro
2+
DELETE FROM `areatrigger_scripts` WHERE `entry` = 4853;
3+
INSERT INTO `areatrigger_scripts` (`entry`, `ScriptName`) VALUES
4+
(4853, 'at_the_dead_scar');
5+
6+
DELETE FROM `spawn_group` WHERE `spawnType` = 0 AND `spawnId` IN (SELECT `guid` FROM `creature` WHERE `id` = 24895);
7+
DELETE FROM `creature` WHERE `id` = 24895;
8+
9+
UPDATE `creature_template_movement` SET `Flight` = 1 WHERE `CreatureId` = 24895;
10+
11+
UPDATE `creature_template` SET `ScriptName` = 'npc_madrigosa' WHERE `entry` = 24895;
12+
13+
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` = 13 AND `SourceEntry` IN (46609,46610,44872,44844,44883,44884,46637,46638);
14+
INSERT INTO `conditions` (`SourceTypeOrReferenceId`,`SourceGroup`,`SourceEntry`,`SourceId`,`ElseGroup`,`ConditionTypeOrReference`,`ConditionTarget`,`ConditionValue1`,`ConditionValue2`,`ConditionValue3`,`NegativeCondition`,`ErrorType`,`ErrorTextId`,`ScriptName`,`Comment`) VALUES
15+
(13,1,46609,0,0,31,0,3,19871,0,0,0,0,"","Group 0: Spell 'Freeze' (Effect 0) targets creature 'World Trigger (Not Immune NPC)'"),
16+
(13,1,46610,0,0,31,0,5,188119,0,0,0,0,"","Group 0: Spell 'Freeze' (Effect 0) targets object 'Doodad_Sunwell_Ice_Barrier01'"),
17+
(13,1,44872,0,0,31,0,3,24882,0,0,0,0,"","Group 0: Spell 'Frost Blast' (Effect 0) targets creature 'Brutallus'"),
18+
(13,3,44844,0,0,31,0,3,24895,0,0,0,0,"","Group 0: Spell 'Fel Fireball' (Effect 0, 1) targets creature 'Madrigosa'"),
19+
(13,1,44883,0,0,31,0,3,24882,0,0,0,0,"","Group 0: Spell 'Encapsulate' (Effect 0) targets creature 'Brutallus'"),
20+
(13,1,44884,0,0,31,0,3,24895,0,0,0,0,"","Group 0: Spell 'Charge' (Effect 0) targets creature 'Madrigosa'"),
21+
(13,1,46637,0,0,31,0,3,19871,0,0,0,0,"","Group 0: Spell 'Break Ice' (Effect 0) targets creature 'World Trigger (Not Immune NPC)'"),
22+
(13,1,46638,0,0,31,0,5,188119,0,0,0,0,"","Group 0: Spell 'Break Ice' (Effect 0) targets object 'Doodad_Sunwell_Ice_Barrier01'");
23+
24+
DELETE FROM `spell_script_names` WHERE `ScriptName` IN (
25+
'spell_brutallus_freeze',
26+
'spell_brutallus_break_ice',
27+
'spell_brutallus_burn_primer',
28+
'spell_brutallus_burn_ally');
29+
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
30+
(46609, 'spell_brutallus_freeze'),
31+
(46637, 'spell_brutallus_break_ice'),
32+
(45141, 'spell_brutallus_burn_primer'),
33+
(45151, 'spell_brutallus_burn_ally');
34+
35+
UPDATE `creature_text` SET `Emote` = 1 WHERE `CreatureID` = 24882 AND `GroupID` = 0;
36+
UPDATE `creature_text` SET `BroadcastTextId` = 25224 WHERE `CreatureID` = 24882 AND `GroupID` = 2;
37+
UPDATE `creature_text` SET `Text` = "That was fun, but I still await a true challenge!", `Language` = 0, `BroadcastTextId` = 25225 WHERE `CreatureID` = 24882 AND `GroupID` = 3;
38+
39+
-- Outro
40+
UPDATE `creature_template` SET `AIName` = 'SmartAI', `flags_extra` = `flags_extra` |128 WHERE `entry` = 25703;
41+
42+
DELETE FROM `smart_scripts` WHERE `entryorguid` = 25703 AND `source_type` = 0;
43+
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
44+
(25703,0,0,0,60,0,100,1,7000,7000,0,0,0,11,45212,0,0,0,0,0,1,0,0,0,0,0,0,0,0,"Brutallus Death Cloud - On Update - Cast 'Brutallus Death Cloud' (No Repeat)");
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-- Add Utgarde GY for Howling Fjord Area for both factions
2+
DELETE FROM `graveyard_zone` WHERE `ID` IN (1337,1376) AND `GhostZone`=495;
3+
INSERT INTO `graveyard_zone` (`ID`, `GhostZone`, `Faction`, `Comment`) VALUES
4+
(1337, 495, 0, "Howling Fjord, Utgarde GY - Howling Fjord"),
5+
(1376, 495, 0, "Howling Fjord, Utgarde 2 GY - Howling Fjord");
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-- Update Lady Hoteshem Equipment, SheathState and level.
2+
UPDATE `creature_equip_template` SET `ItemID1`=19981, `VerifiedBuild`=0 WHERE `CreatureID`=15008 AND `ID`=1;
3+
UPDATE `creature_template_addon` SET `SheathState`=0 WHERE `entry`=15008;
4+
UPDATE `creature_template` SET `minlevel`=61, `maxlevel`=61 WHERE `entry`=15008;
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
--
2+
DELETE FROM `pool_members` WHERE `type`=1 AND `spawnId` IN (163412,163812,164212);
3+
DELETE FROM `pool_members` WHERE `type`=2 AND `spawnId`=11612;
4+
DELETE FROM `spawn_group` WHERE `spawnType`=1 AND `spawnId` IN (163412,163812,164212);
5+
DELETE FROM `gameobject` WHERE `guid` IN (163412,163812,164212);
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- Spirit Healer (Area: Howling Fjord - Difficulty: 0)
2+
UPDATE `creature` SET `position_x`=1347.5555419921875, `position_y`=-4786.142578125, `position_z`=188.2603302001953125, `orientation`=3.054326057434082031 WHERE `guid`=125652 and `id`=6491;
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
-- Add proper conditions for Jesse Masters <Butcher>
2+
UPDATE `gossip_menu` SET `VerifiedBuild`=63305 WHERE `MenuID`=9798 AND `TextID`=13503;
3+
4+
DELETE FROM `conditions` WHERE `SourceTypeOrReferenceId` IN (14,15,23) AND `SourceGroup` IN (9798,29244) AND `SourceEntry` IN (0,13502,13503,33454,40202);
5+
INSERT INTO `conditions` (`SourceTypeOrReferenceId`, `SourceGroup`, `SourceEntry`, `SourceId`, `ElseGroup`, `ConditionTypeOrReference`, `ConditionTarget`, `ConditionValue1`, `ConditionValue2`, `ConditionValue3`, `NegativeCondition`, `ErrorType`, `ErrorTextId`, `ScriptName`, `Comment`) VALUES
6+
(14, 9798, 13502, 0, 0, 47, 0, 12212, 64, 0, 1, 0, 0, '', "Show gossip menu if player does not have quest 'Replenishing the Storehouse' rewarded"),
7+
(14, 9798, 13503, 0, 0, 47, 0, 12212, 64, 0, 0, 0, 0, '', "Show gossip menu if player has quest 'Replenishing the Storehouse' rewarded"),
8+
(15, 9798, 0, 0, 0, 47, 0, 12212, 64, 0, 0, 0, 0, '', "Show gossip menu if player has quest 'Replenishing the Storehouse' rewarded"),
9+
(23, 29244, 33454, 0, 0, 47, 0, 12212, 64, 0, 0, 0, 0, '', "Sell Salted Venison if player has quest 'Replenishing the Storehouse' rewarded"),
10+
(23, 29244, 40202, 0, 0, 47, 0, 12216, 64, 0, 0, 0, 0, '', "Sell Sizzling Grizzly Flank if player has quest 'Take Their Rear!' rewarded");
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- Spirit Healer (Area: Grizzly Hills - Difficulty: 0)
2+
UPDATE `creature` SET `position_x`=3529.45068359375, `position_y`=-2892.474853515625, `position_z`=204.703369140625, `orientation`=1.256637096405029296 WHERE `guid`=125676 and `id`=6491;

src/common/Cryptography/Authentication/AuthCrypt.cpp renamed to src/common/Cryptography/Authentication/WorldPacketCrypt.cpp

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,18 +15,15 @@
1515
* with this program. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

18-
#include "AuthCrypt.h"
19-
#include "BigNumber.h"
18+
#include "WorldPacketCrypt.h"
2019
#include "Errors.h"
2120
#include "HMAC.h"
2221

23-
#include <cstring>
24-
25-
AuthCrypt::AuthCrypt() :
26-
_initialized(false)
27-
{ }
22+
WorldPacketCrypt::WorldPacketCrypt() : _initialized(false)
23+
{
24+
}
2825

29-
void AuthCrypt::Init(SessionKey const& K)
26+
void WorldPacketCrypt::Init(SessionKey const& K)
3027
{
3128
uint8 ServerEncryptionKey[] = { 0xCC, 0x98, 0xAE, 0x04, 0xE8, 0x97, 0xEA, 0xCA, 0x12, 0xDD, 0xC0, 0x93, 0x42, 0x91, 0x53, 0x57 };
3229
_serverEncrypt.Init(Trinity::Crypto::HMAC_SHA1::GetDigestOf(ServerEncryptionKey, K));
@@ -41,13 +38,13 @@ void AuthCrypt::Init(SessionKey const& K)
4138
_initialized = true;
4239
}
4340

44-
void AuthCrypt::DecryptRecv(uint8 *data, size_t len)
41+
void WorldPacketCrypt::DecryptRecv(uint8 *data, size_t len)
4542
{
4643
ASSERT(_initialized);
4744
_clientDecrypt.UpdateData(data, len);
4845
}
4946

50-
void AuthCrypt::EncryptSend(uint8 *data, size_t len)
47+
void WorldPacketCrypt::EncryptSend(uint8 *data, size_t len)
5148
{
5249
ASSERT(_initialized);
5350
_serverEncrypt.UpdateData(data, len);

src/common/Cryptography/Authentication/AuthCrypt.h renamed to src/common/Cryptography/Authentication/WorldPacketCrypt.h

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,27 @@
1515
* with this program. If not, see <http://www.gnu.org/licenses/>.
1616
*/
1717

18-
#ifndef _AUTHCRYPT_H
19-
#define _AUTHCRYPT_H
18+
#ifndef _WORLDPACKETCRYPT_H
19+
#define _WORLDPACKETCRYPT_H
2020

2121
#include "ARC4.h"
2222
#include "AuthDefines.h"
23-
#include <array>
2423

25-
class TC_COMMON_API AuthCrypt
24+
class TC_COMMON_API WorldPacketCrypt
2625
{
27-
public:
28-
AuthCrypt();
26+
public:
27+
WorldPacketCrypt();
2928

30-
void Init(SessionKey const& K);
31-
void DecryptRecv(uint8* data, size_t len);
32-
void EncryptSend(uint8* data, size_t len);
29+
void Init(SessionKey const& K);
30+
void DecryptRecv(uint8* data, size_t len);
31+
void EncryptSend(uint8* data, size_t len);
3332

34-
bool IsInitialized() const { return _initialized; }
33+
bool IsInitialized() const { return _initialized; }
3534

36-
private:
37-
Trinity::Crypto::ARC4 _clientDecrypt;
38-
Trinity::Crypto::ARC4 _serverEncrypt;
39-
bool _initialized;
35+
private:
36+
Trinity::Crypto::ARC4 _clientDecrypt;
37+
Trinity::Crypto::ARC4 _serverEncrypt;
38+
bool _initialized;
4039
};
41-
#endif
40+
41+
#endif // _WORLDPACKETCRYPT_H

src/common/DataStores/DBCFileLoader.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ bool DBCFileLoader::Load(char const* filename, char const* fmt)
8888
for (uint32 i = 1; i < fieldCount; ++i)
8989
{
9090
fieldsOffset[i] = fieldsOffset[i - 1];
91-
if (fmt[i - 1] == 'b' || fmt[i - 1] == 'X') // byte fields
91+
if (fmt[i - 1] == FT_BYTE || fmt[i - 1] == FT_NA_BYTE) // byte fields
9292
fieldsOffset[i] += sizeof(uint8);
9393
else // 4 byte fields (int32/float/strings)
9494
fieldsOffset[i] += sizeof(uint32);

0 commit comments

Comments
 (0)