From 2bdcb1161c25e7f0ad7b9a3c270b2bcbb894ed01 Mon Sep 17 00:00:00 2001 From: Shin_Darth Date: Sun, 14 Feb 2010 17:57:48 +0300 Subject: [PATCH] [9380] Some missing in mangos.sql command descriptions. Signed-off-by: VladimirMangos --- sql/mangos.sql | 5 ++++- sql/updates/9379_01_mangos_spell_proc_event.sql | 8 ++++---- sql/updates/9380_01_mangos_command.sql | 7 +++++++ sql/updates/Makefile.am | 2 ++ src/shared/revision_nr.h | 2 +- src/shared/revision_sql.h | 2 +- 6 files changed, 19 insertions(+), 7 deletions(-) create mode 100644 sql/updates/9380_01_mangos_command.sql diff --git a/sql/mangos.sql b/sql/mangos.sql index b86dfa56c..039871a61 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_9379_01_mangos_spell_proc_event` bit(1) default NULL + `required_9380_01_mangos_command` bit(1) default NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ROW_FORMAT=FIXED COMMENT='Used DB version notes'; -- @@ -651,6 +651,7 @@ INSERT INTO `command` VALUES ('modify drunk',1,'Syntax: .modify drunk #value\r\n Set drunk level to #value (0..100). Value 0 remove drunk state, 100 is max drunked state.'), ('modify energy',1,'Syntax: .modify energy #energy\r\n\r\nModify the energy of the selected player. If no player is selected, modify your energy.'), ('modify faction',1,'Syntax: .modify faction #factionid #flagid #npcflagid #dynamicflagid\r\n\r\nModify the faction and flags of the selected creature. Without arguments, display the faction and flags of the selected creature.'), +('modify fly', 1, 'Syntax: .modify fly #rate\r\n.fly #rate\r\n\r\nModify the flying speed of the selected player to \"normal base fly speed\"*rate. If no player is selected, modify your fly.\r\n\r\n #rate may range from 0.1 to 10.'), ('modify gender',2,'Syntax: .modify gender male/female\r\n\r\nChange gender of selected player.'), ('modify honor',1,'Syntax: .modify honor $amount\r\n\r\nAdd $amount honor points to the selected player.'), ('modify hp',1,'Syntax: .modify hp #newhp\r\n\r\nModify the hp of the selected player. If no player is selected, modify your hp.'), @@ -688,6 +689,7 @@ INSERT INTO `command` VALUES ('npc move',2,'Syntax: .npc move [#creature_guid]\r\n\r\nMove the targeted creature spawn point to your coordinates.'), ('npc name',2,'Syntax: .npc name $name\r\n\r\nChange the name of the selected creature or character to $name.\r\n\r\nCommand disabled.'), ('npc playemote',3,'Syntax: .npc playemote #emoteid\r\n\r\nMake the selected creature emote with an emote of id #emoteid.'), +('npc say', 1, 'Syntax: .npc say #text\r\nMake the selected npc says #text.'), ('npc setdeathstate',2,'Syntax: .npc setdeathstate on/off\r\n\r\nSet default death state (dead/alive) for npc at spawn.'), ('npc setmodel',2,'Syntax: .npc setmodel #displayid\r\n\r\nChange the model id of the selected creature to #displayid.'), ('npc setmovetype',2,'Syntax: .npc setmovetype [#creature_guid] stay/random/way [NODEL]\r\n\r\nSet for creature pointed by #creature_guid (or selected if #creature_guid not provided) movement type and move it to respawn position (if creature alive). Any existing waypoints for creature will be removed from the database if you do not use NODEL. If the creature is dead then movement type will applied at creature respawn.\r\nMake sure you use NODEL, if you want to keep the waypoints.'), @@ -699,6 +701,7 @@ INSERT INTO `command` VALUES ('npc textemote',1,'Syntax: .npc textemote #emoteid\r\n\r\nMake the selected creature to do textemote with an emote of id #emoteid.'), ('npc whisper',1,'Syntax: .npc whisper #playerguid #text\r\nMake the selected npc whisper #text to #playerguid.'), ('npc unfollow',2,'Syntax: .npc unfollow\r\n\r\nSelected creature (non pet) stop follow you.'), +('npc yell', 1, 'Syntax: .npc yell #text\r\nMake the selected npc yells #text.'), ('pdump write',3,'Syntax: .pdump write $filename $playerNameOrGUID\r\nWrite character dump with name/guid $playerNameOrGUID to file $filename.'), ('pdump load',3,'Syntax: .pdump load $filename $account [$newname] [$newguid]\r\nLoad character dump from dump file into character list of $account with saved or $newname, with saved (or first free) or $newguid guid.'), ('pinfo',2,'Syntax: .pinfo [$player_name]\r\n\r\nOutput account information for selected player or player find by $player_name.'), diff --git a/sql/updates/9379_01_mangos_spell_proc_event.sql b/sql/updates/9379_01_mangos_spell_proc_event.sql index 5a1375828..08bb02606 100644 --- a/sql/updates/9379_01_mangos_spell_proc_event.sql +++ b/sql/updates/9379_01_mangos_spell_proc_event.sql @@ -1,5 +1,5 @@ -ALTER TABLE db_version CHANGE COLUMN required_9366_02_mangos_spell_proc_event required_9379_01_mangos_spell_proc_event bit; - -DELETE FROM `spell_proc_event` WHERE `entry` = 65661; -INSERT INTO `spell_proc_event` VALUES +ALTER TABLE db_version CHANGE COLUMN required_9366_02_mangos_spell_proc_event required_9379_01_mangos_spell_proc_event bit; + +DELETE FROM `spell_proc_event` WHERE `entry` = 65661; +INSERT INTO `spell_proc_event` VALUES (65661, 0x00000000, 15, 0x00400011 ,0x20020004 ,0x00000000, 0x00000010, 0x00000000, 0.000000, 100.000000, 0); \ No newline at end of file diff --git a/sql/updates/9380_01_mangos_command.sql b/sql/updates/9380_01_mangos_command.sql new file mode 100644 index 000000000..4ecf38cb0 --- /dev/null +++ b/sql/updates/9380_01_mangos_command.sql @@ -0,0 +1,7 @@ +ALTER TABLE db_version CHANGE COLUMN required_9379_01_mangos_spell_proc_event required_9380_01_mangos_command bit; + +DELETE FROM command WHERE name IN ('modify fly', 'npc say', 'npc yell'); +INSERT INTO command VALUES +('modify fly', 1, 'Syntax: .modify fly #rate\r\n.fly #rate\r\n\r\nModify the flying speed of the selected player to \"normal base fly speed\"*rate. If no player is selected, modify your fly.\r\n\r\n #rate may range from 0.1 to 10.'), +('npc say', 1, 'Syntax: .npc say #text\r\nMake the selected npc says #text.'), +('npc yell', 1, 'Syntax: .npc yell #text\r\nMake the selected npc yells #text.'); diff --git a/sql/updates/Makefile.am b/sql/updates/Makefile.am index 07bca35d8..89d84d884 100644 --- a/sql/updates/Makefile.am +++ b/sql/updates/Makefile.am @@ -71,6 +71,7 @@ pkgdata_DATA = \ 9374_01_characters_character_glyphs.sql \ 9375_01_characters_character_glyphs.sql \ 9379_01_mangos_spell_proc_event.sql \ + 9380_01_mangos_command.sql \ README ## Additional files to include when running 'make dist' @@ -122,4 +123,5 @@ EXTRA_DIST = \ 9374_01_characters_character_glyphs.sql \ 9375_01_characters_character_glyphs.sql \ 9379_01_mangos_spell_proc_event.sql \ + 9380_01_mangos_command.sql \ README diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index eec1e5b39..ae1ccb9d4 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 "9379" + #define REVISION_NR "9380" #endif // __REVISION_NR_H__ diff --git a/src/shared/revision_sql.h b/src/shared/revision_sql.h index 405f97085..99e9f2eca 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_9375_01_characters_character_glyphs" - #define REVISION_DB_MANGOS "required_9379_01_mangos_spell_proc_event" + #define REVISION_DB_MANGOS "required_9380_01_mangos_command" #define REVISION_DB_REALMD "required_9010_01_realmd_realmlist" #endif // __REVISION_SQL_H__