Core/Commands: Implement .neargraveyard (find nearest graveyard from dbc).

This commit is contained in:
xjose93
2016-06-14 18:23:45 +02:00
committed by Aokromes
parent 77631a8cde
commit 882453253f
5 changed files with 71 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
DELETE FROM `rbac_permissions` WHERE `id` = 841;
INSERT INTO `rbac_permissions` (`id`, `name`) VALUES (841, 'Command: .debug neargraveyard');
DELETE FROM `rbac_linked_permissions` WHERE `id` = 196 AND `linkedId` = 841;
INSERT INTO `rbac_linked_permissions` (`id`, `linkedId`) VALUES (196, 841);

View File

@@ -0,0 +1,8 @@
DELETE FROM `command` WHERE `name` = 'debug neargraveyard';
INSERT INTO `command` (`name`, `permission`, `help`) VALUES
('debug neargraveyard', 841, 'Syntax: .debug neargraveyard [linked]\nFind the nearest graveyard from dbc or db (if linked)');
DELETE FROM `trinity_string` WHERE `entry` IN (82, 83);
INSERT INTO `trinity_string` (`entry`, `content_default`, `content_loc6`, `content_loc7`) VALUES
(82, 'Nearest graveyard found: %u (%.3f %.3f %.3f)', 'Cementerio mas cercano encontrado: %u (%.3f %.3f %.3f)', 'Cementerio mas cercano encontrado: %u (%.3f %.3f %.3f)'),
(83, 'There are no graveyards near', 'No se ha encontrado ningun cementerio cerca', 'No se ha encontrado ningun cementerio cerca');