mirror of
https://github.com/mangosfour/server.git
synced 2025-12-30 19:37:04 +00:00
[11523] Implement .npc aiinfo
Comamnd show information about used AI and scripts for targeted creature. AI classes (including from script DLL) can provide additinal info about own state. Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
ae2a9e1c6a
commit
4ba5aa83e3
14 changed files with 94 additions and 11 deletions
6
sql/updates/11523_01_mangos_command.sql
Normal file
6
sql/updates/11523_01_mangos_command.sql
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
ALTER TABLE db_version CHANGE COLUMN required_11521_01_mangos_command required_11523_01_mangos_command bit;
|
||||
|
||||
DELETE FROM command WHERE name = 'npc aiinfo';
|
||||
|
||||
INSERT INTO command (name, security, help) VALUES
|
||||
('npc aiinfo',2,'Syntax: .npc npc aiinfo\r\n\r\nShow npc AI and script information.');
|
||||
10
sql/updates/11523_02_mangos_mangos_string.sql
Normal file
10
sql/updates/11523_02_mangos_mangos_string.sql
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
ALTER TABLE db_version CHANGE COLUMN required_11523_01_mangos_command required_11523_02_mangos_mangos_string bit;
|
||||
|
||||
DELETE FROM mangos_string WHERE entry IN (1504,1505,1506,1507,1508);
|
||||
|
||||
INSERT INTO mangos_string VALUES
|
||||
(1504,'AI-Information for Npc Entry %u',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
|
||||
(1505,'AIName: %s (%s) ScriptName: %s',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
|
||||
(1506,'Current phase = %u',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
|
||||
(1507,'Combat-Movement is %s',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL),
|
||||
(1508,'Melee attacking is %s',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
|
||||
Loading…
Add table
Add a link
Reference in a new issue