mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-05 00:19:59 +01:00
Core/Commands:
* Add remove support for disable command * Add quest disables support * Add check for no existent entry * Fix problems with flags 0 * Fix code style
This commit is contained in:
5
sql/updates/world/2012_08_05_00_world_trinity_string.sql
Normal file
5
sql/updates/world/2012_08_05_00_world_trinity_string.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
DELETE FROM `trinity_string` WHERE `entry` IN (5032,5033,5034);
|
||||
INSERT INTO `trinity_string` (`entry`,`content_default`,`content_loc1`,`content_loc2`,`content_loc3`,`content_loc4`,`content_loc5`,`content_loc6`,`content_loc7`,`content_loc8`) VALUES
|
||||
(5032,'No battleground found!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
|
||||
(5033,'No achievement criteria found!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
|
||||
(5034,'No outdoor PvP found!',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
|
||||
19
sql/updates/world/2012_08_05_01_world_command.sql
Normal file
19
sql/updates/world/2012_08_05_01_world_command.sql
Normal file
@@ -0,0 +1,19 @@
|
||||
DELETE FROM `command` WHERE `name` IN (
|
||||
'disable add quest','disable add map','disable add battleground','disable add achievement_criteria','disable add spell','disable add outdoorpvp','disable add vmap',
|
||||
'disable remove quest','disable remove map','disable remove battleground','disable remove achievement_criteria','disable remove spell','disable remove outdoorpvp','disable remove vmap'
|
||||
);
|
||||
INSERT INTO `command` (`name`,`security`,`help`) VALUES
|
||||
('disable add quest',3,'Syntax: .disable add quest $entry $flag $comment'),
|
||||
('disable add map',3,'Syntax: .disable add map $entry $flag $comment'),
|
||||
('disable add battleground',3,'Syntax: .disable add battleground $entry $flag $comment'),
|
||||
('disable add achievement_criteria',3,'Syntax: .disable add achievement_criteria $entry $flag $comment'),
|
||||
('disable add spell',3,'Syntax: .disable add spell $entry $flag $comment'),
|
||||
('disable add outdoorpvp',3,'Syntax: .disable add outdoorpvp $entry $flag $comment'),
|
||||
('disable add vmap',3,'Syntax: .disable add vmap $entry $flag $comment'),
|
||||
('disable remove quest',3,'Syntax: .disable remove quest $entry'),
|
||||
('disable remove map',3,'Syntax: .disable remove map $entry'),
|
||||
('disable remove battleground',3,'Syntax: .disable remove battleground $entry'),
|
||||
('disable remove achievement_criteria',3,'Syntax: .disable remove achievement_criteria $entry'),
|
||||
('disable remove spell',3,'Syntax: .disable remove spell $entry'),
|
||||
('disable remove outdoorpvp',3,'Syntax: .disable remove outdoorpvp $entry'),
|
||||
('disable remove vmap',3,'Syntax: .disable remove vmap $entry');
|
||||
Reference in New Issue
Block a user