From d27f889b2bc94e0692093dfa345372edff8927fd Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Thu, 19 Nov 2009 08:22:23 +0300 Subject: [PATCH] [8835] .lookup title command DB description for prev commits. --- sql/mangos.sql | 3 ++- sql/updates/8835_01_mangos_command.sql | 6 ++++++ sql/updates/Makefile.am | 2 ++ src/shared/revision_nr.h | 2 +- src/shared/revision_sql.h | 2 +- 5 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 sql/updates/8835_01_mangos_command.sql diff --git a/sql/mangos.sql b/sql/mangos.sql index 91803ae79..396fcee7b 100644 --- a/sql/mangos.sql +++ b/sql/mangos.sql @@ -24,7 +24,7 @@ CREATE TABLE `db_version` ( `version` varchar(120) default NULL, `creature_ai_version` varchar(120) default NULL, `cache_id` int(10) default '0', - `required_8833_02_mangos_command` bit(1) default NULL + `required_8835_01_mangos_command` bit(1) default NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Used DB version notes'; -- @@ -642,6 +642,7 @@ INSERT INTO `command` VALUES ('lookup spell',3,'Syntax: .lookup spell $namepart\r\n\r\nLooks up a spell by $namepart, and returns all matches with their spell ID\'s.'), ('lookup taxinode',3,'Syntax: .lookup taxinode $substring\r\n\r\nSearch and output all taxinodes with provide $substring in name.'), ('lookup tele',1,'Syntax: .lookup tele $substring\r\n\r\nSearch and output all .tele command locations with provide $substring in name.'), +('lookup title',2,'Syntax: .lookup title $$namepart\r\n\r\nLooks up a title by $namepart, and returns all matches with their title ID\'s and index\'s.'), ('maxskill',3,'Syntax: .maxskill\r\nSets all skills of the targeted player to their maximum VALUESfor its current level.'), ('modify arena',1,'Syntax: .modify arena #value\r\nAdd $amount arena points to the selected player.'), ('modify aspeed',1,'Syntax: .modify aspeed #rate\r\n\r\nModify all speeds -run,swim,run back,swim back- of the selected player to \"normalbase speed for this move type\"*rate. If no player is selected, modify your speed.\r\n\r\n #rate may range from 0.1 to 10.'), diff --git a/sql/updates/8835_01_mangos_command.sql b/sql/updates/8835_01_mangos_command.sql new file mode 100644 index 000000000..78ab2cddd --- /dev/null +++ b/sql/updates/8835_01_mangos_command.sql @@ -0,0 +1,6 @@ +ALTER TABLE db_version CHANGE COLUMN required_8833_02_mangos_command required_8835_01_mangos_command bit; + +DELETE FROM command where name IN ('lookup title'); + +INSERT INTO `command` VALUES +('lookup title',2,'Syntax: .lookup title $$namepart\r\n\r\nLooks up a title by $namepart, and returns all matches with their title ID\'s and index\'s.'); diff --git a/sql/updates/Makefile.am b/sql/updates/Makefile.am index e41e92437..37a0a79cb 100644 --- a/sql/updates/Makefile.am +++ b/sql/updates/Makefile.am @@ -162,6 +162,7 @@ pkgdata_DATA = \ 8828_02_mangos_instance_template.sql \ 8833_01_mangos_mangos_string.sql \ 8833_02_mangos_command.sql \ + 8835_01_mangos_command.sql \ README ## Additional files to include when running 'make dist' @@ -304,4 +305,5 @@ EXTRA_DIST = \ 8828_02_mangos_instance_template.sql \ 8833_01_mangos_mangos_string.sql \ 8833_02_mangos_command.sql \ + 8835_01_mangos_command.sql \ README diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 8b80dc849..dec3d11cd 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "8834" + #define REVISION_NR "8835" #endif // __REVISION_NR_H__ diff --git a/src/shared/revision_sql.h b/src/shared/revision_sql.h index e60821a61..047698b3f 100644 --- a/src/shared/revision_sql.h +++ b/src/shared/revision_sql.h @@ -1,6 +1,6 @@ #ifndef __REVISION_SQL_H__ #define __REVISION_SQL_H__ #define REVISION_DB_CHARACTERS "required_8828_01_characters_instance_reset" - #define REVISION_DB_MANGOS "required_8833_02_mangos_command" + #define REVISION_DB_MANGOS "required_8835_01_mangos_command" #define REVISION_DB_REALMD "required_8728_01_realmd_account" #endif // __REVISION_SQL_H__