Core/Commands: Improve .character rename [name], now can force rename .character rename [name] [newName]

This commit is contained in:
xjose93 committed 2013-04-29 11:26:54 +02:00
1 parent c33b811829
commit f2b6b2f95e
5 files changed
+125 -18

No files matched your search

@@ -0,0 +1,11 @@
DELETE FROM `command` WHERE `name` = 'character rename';
INSERT INTO `command` (`name`, `security`, `help`) VALUES
('character rename', 2, 'Syntax: .character rename [$name] [$newName] \n\nMark selected in game or by $name in command character for rename at next login.\n\nIf $newName then the player will be forced rename.');
SET @ENTRY := 98;
SET @ENTRY1 := 167;
DELETE FROM `trinity_string` WHERE `entry` IN (@ENTRY, @ENTRY+1, @ENTRY1);
INSERT INTO `trinity_string` (`entry`, `content_default`) VALUES
(@ENTRY, '\'%s\' already exists as character name, choose another one'),
(@ENTRY+1, 'Player \'%s\' forced rename to \'%s\''),
(@ENTRY1, 'This name is reserved, choose another one');