Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[9883] Change SCRIPT_COMMAND_TALK to support CHAT_TYPE_* using enum C…
…hatType Making data consistent with other, similar tables like EventAI's text tables. This convert existing data and also adds support for all chat types. Signed-off-by: NoFantasy <nofantasy@nf.no>
- Loading branch information
NoFantasy
committed
May 12, 2010
1 parent
361c00c
commit f2ba61e
Showing
8 changed files
with
57 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
ALTER TABLE db_version CHANGE COLUMN required_9881_01_mangos_scripts required_9883_01_mangos_scripts bit; | ||
|
||
-- convert to CHAT_TYPE_WHISPER | ||
UPDATE event_scripts SET datalong=4 WHERE command=0 AND datalong=1; | ||
UPDATE gameobject_scripts SET datalong=4 WHERE command=0 AND datalong=1; | ||
UPDATE gossip_scripts SET datalong=4 WHERE command=0 AND datalong=1; | ||
UPDATE quest_end_scripts SET datalong=4 WHERE command=0 AND datalong=1; | ||
UPDATE quest_start_scripts SET datalong=4 WHERE command=0 AND datalong=1; | ||
UPDATE spell_scripts SET datalong=4 WHERE command=0 AND datalong=1; | ||
|
||
-- convert to CHAT_TYPE_YELL | ||
UPDATE event_scripts SET datalong=1 WHERE command=0 AND datalong=2; | ||
UPDATE gameobject_scripts SET datalong=1 WHERE command=0 AND datalong=2; | ||
UPDATE gossip_scripts SET datalong=1 WHERE command=0 AND datalong=2; | ||
UPDATE quest_end_scripts SET datalong=1 WHERE command=0 AND datalong=2; | ||
UPDATE quest_start_scripts SET datalong=1 WHERE command=0 AND datalong=2; | ||
UPDATE spell_scripts SET datalong=1 WHERE command=0 AND datalong=2; | ||
|
||
-- convert to CHAT_TYPE_TEXT_EMOTE | ||
UPDATE event_scripts SET datalong=2 WHERE command=0 AND datalong=3; | ||
UPDATE gameobject_scripts SET datalong=2 WHERE command=0 AND datalong=3; | ||
UPDATE gossip_scripts SET datalong=2 WHERE command=0 AND datalong=3; | ||
UPDATE quest_end_scripts SET datalong=2 WHERE command=0 AND datalong=3; | ||
UPDATE quest_start_scripts SET datalong=2 WHERE command=0 AND datalong=3; | ||
UPDATE spell_scripts SET datalong=2 WHERE command=0 AND datalong=3; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#ifndef __REVISION_NR_H__ | ||
#define __REVISION_NR_H__ | ||
#define REVISION_NR "9882" | ||
#define REVISION_NR "9883" | ||
#endif // __REVISION_NR_H__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#ifndef __REVISION_SQL_H__ | ||
#define __REVISION_SQL_H__ | ||
#define REVISION_DB_CHARACTERS "required_9849_01_characters_saved_variables" | ||
#define REVISION_DB_MANGOS "required_9881_01_mangos_scripts" | ||
#define REVISION_DB_MANGOS "required_9883_01_mangos_scripts" | ||
#define REVISION_DB_REALMD "required_9748_01_realmd_realmlist" | ||
#endif // __REVISION_SQL_H__ |