Skip to content

Commit e9c71c8

Browse files
author
AzerothCoreBot
committed
chore(DB): import pending files
Referenced commit(s): bc82f36
1 parent bc82f36 commit e9c71c8

File tree

5 files changed

+95
-64
lines changed

5 files changed

+95
-64
lines changed

acore.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"name": "azerothcore-wotlk",
3-
"version": "4.0.0-dev.12",
3+
"version": "4.0.0-dev.13",
44
"license": "AGPL3"
55
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
-- DB update 2021_10_14_12 -> 2021_10_15_00
2+
DROP PROCEDURE IF EXISTS `updateDb`;
3+
DELIMITER //
4+
CREATE PROCEDURE updateDb ()
5+
proc:BEGIN DECLARE OK VARCHAR(100) DEFAULT 'FALSE';
6+
SELECT COUNT(*) INTO @COLEXISTS
7+
FROM information_schema.COLUMNS
8+
WHERE TABLE_SCHEMA = DATABASE() AND TABLE_NAME = 'version_db_world' AND COLUMN_NAME = '2021_10_14_12';
9+
IF @COLEXISTS = 0 THEN LEAVE proc; END IF;
10+
START TRANSACTION;
11+
ALTER TABLE version_db_world CHANGE COLUMN 2021_10_14_12 2021_10_15_00 bit;
12+
SELECT sql_rev INTO OK FROM version_db_world WHERE sql_rev = '1634136291669439800'; IF OK <> 'FALSE' THEN LEAVE proc; END IF;
13+
--
14+
-- START UPDATING QUERIES
15+
--
16+
17+
INSERT INTO `version_db_world` (`sql_rev`) VALUES ('1634136291669439800');
18+
19+
-- Flee && Call for Help
20+
DELETE FROM `acore_string` WHERE `entry` IN (5030, 5035);
21+
22+
-- Vaelastrasz boss fight
23+
-- Nefarian texts
24+
DELETE FROM `creature_text` WHERE `CreatureID`=10162 AND `GroupID`=14 AND `ID`=0;
25+
INSERT INTO `creature_text` (`CreatureID`, `GroupID`, `ID`, `Text`, `Type`, `Language`, `Probability`, `Emote`, `Duration`, `Sound`, `BroadcastTextId`, `TextRange`, `comment`) VALUES
26+
(10162, 14, 0, 'Ah...the heroes. You are persistent, aren''t you? Your ally here attempted to match his power against mine - and paid the price. Now he shall serve me...by slaughtering you. Get up, little red wyrm...and destroy them!', 14, 0, 100, 23, 0, 8279, 100003, 0, 'Lord Victor Nefarius SAY_NEFARIAN_VAEL_INTRO (BWL)');
27+
28+
--
29+
-- END UPDATING QUERIES
30+
--
31+
UPDATE version_db_world SET date = '2021_10_15_00' WHERE sql_rev = '1634136291669439800';
32+
COMMIT;
33+
END //
34+
DELIMITER ;
35+
CALL updateDb();
36+
DROP PROCEDURE IF EXISTS `updateDb`;

data/sql/updates/pending_db_world/rev_1634136291669439800.sql

Lines changed: 0 additions & 10 deletions
This file was deleted.

doc/changelog/master.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,61 @@
1+
## 4.0.0-dev.13 | Commit: [bc82f36f1ff46bb21d32e1cfdaec8271dde08af1
2+
](https://github.com/azerothcore/azerothcore-wotlk/commit/bc82f36f1ff46bb21d32e1cfdaec8271dde08af1
3+
4+
5+
### Added
6+
7+
```cpp
8+
// Unit.cpp
9+
virtual void Talk(std::string_view text, ChatMsg msgType, Language language, float textRange, WorldObject const* target);
10+
virtual void Say(std::string_view text, Language language, WorldObject const* target = nullptr);
11+
virtual void Yell(std::string_view text, Language language, WorldObject const* target = nullptr);
12+
virtual void TextEmote(std::string_view text, WorldObject const* target = nullptr, bool isBossEmote = false);
13+
virtual void Whisper(std::string_view text, Language language, Player* target, bool isBossWhisper = false);
14+
virtual void Talk(uint32 textId, ChatMsg msgType, float textRange, WorldObject const* target);
15+
virtual void Say(uint32 textId, WorldObject const* target = nullptr);
16+
virtual void Yell(uint32 textId, WorldObject const* target = nullptr);
17+
virtual void TextEmote(uint32 textId, WorldObject const* target = nullptr, bool isBossEmote = false);
18+
virtual void Whisper(uint32 textId, Player* target, bool isBossWhisper = false);
19+
```
20+
21+
### Removed
22+
23+
```cpp
24+
// Object.cpp
25+
void MonsterSay(const char* text, uint32 language, WorldObject const* target);
26+
void MonsterYell(const char* text, uint32 language, WorldObject const* target);
27+
void MonsterTextEmote(const char* text, WorldObject const* target, bool IsBossEmote = false);
28+
void MonsterWhisper(const char* text, Player const* target, bool IsBossWhisper = false);
29+
void MonsterSay(int32 textId, uint32 language, WorldObject const* target);
30+
void MonsterYell(int32 textId, uint32 language, WorldObject const* target);
31+
void MonsterTextEmote(int32 textId, WorldObject const* target, bool IsBossEmote = false);
32+
void MonsterWhisper(int32 textId, Player const* target, bool IsBossWhisper = false);
33+
34+
void SendPlaySound(uint32 Sound, bool OnlySelf);
35+
```
36+
37+
### How to upgrade
38+
39+
```diff
40+
- creature->MonsterSay(text, LANG_XXX, nullptr);
41+
+ creature->Say(text, LANG_XXX);
42+
43+
- creature->MonsterTextEmote(text, 0);
44+
+ creature->TextEmote(text);
45+
46+
- creature->MonsterWhisper(text, receiver);
47+
+ creature->Whisper(text, LANG_XXX, receiver);
48+
49+
- creature->MonsterYell(text, LANG_XXX, NULL);
50+
+ creature->Yell(text, LANG_XXX);
51+
52+
- creature->MonsterWhisper(text, target, isBossWhisper);
53+
+ creature->Whisper(text, LANG_XXX, target, isBossWhisper);
54+
55+
- SendPlaySound(uint32 Sound, bool OnlySelf);
56+
PlayDirectSound(uint32 sound_id, Player* target = nullptr);
57+
```
58+
159
## 4.0.0-dev.12 | Commit: [bcec4191e43de8a7b57a4219d6baaa7c5e3dfaf1
260
](https://github.com/azerothcore/azerothcore-wotlk/commit/bcec4191e43de8a7b57a4219d6baaa7c5e3dfaf1
361

doc/changelog/pendings/changes_1626351320866318500.md

Lines changed: 0 additions & 53 deletions
This file was deleted.

0 commit comments

Comments
 (0)