mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-27 04:12:40 +01:00
Core/Commands: Improve .character rename [name], now can force rename .character rename [name] [newName]
This commit is contained in:
11
sql/updates/world/2013_04_29_00_world_misc.sql
Normal file
11
sql/updates/world/2013_04_29_00_world_misc.sql
Normal file
@@ -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');
|
||||
Reference in New Issue
Block a user