Core/Commands: Implemented command to teleport character to npc

Closes #25870
This commit is contained in:
Matan Shukry
2021-01-28 21:32:36 +01:00
committed by Shauren
parent 1ff4a7e75b
commit d2be584f99
2 changed files with 140 additions and 43 deletions

View File

@@ -0,0 +1,11 @@
DELETE FROM `command` WHERE `name` IN ('tele name npc id','tele name npc guid','tele name npc name');
INSERT INTO `command` (`name`,`help`) VALUES
('tele name npc id','Syntax: .tele name id #playername #creatureId
Teleport the given character to first found creature with id #creatureId. Character can be offline.'),
('tele name npc guid','Syntax: .tele name id #playername #creatureSpawnId
Teleport the given character to creature with spawn id #creatureSpawnId. Character can be offline.'),
('tele name npc name','Syntax: .tele name id #playername #creatureName
Teleport the given character to first found creature with name (must match exactly) #creatureName. Character can be offline.');