From cf9322ab4d44f2867c575243c39253ff87dde9c0 Mon Sep 17 00:00:00 2001 From: ShinDarth Date: Wed, 24 Aug 2016 17:06:14 +0200 Subject: [PATCH] Core/Commands: enable .gm ingame command + misc cleaning --- data/sql/updates/world/2016_08_24_00.sql | 5 ++--- data/sql/updates/world/2016_08_24_01.sql | 5 +++++ src/scripts/Commands/cs_gm.cpp | 2 +- 3 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 data/sql/updates/world/2016_08_24_01.sql diff --git a/data/sql/updates/world/2016_08_24_00.sql b/data/sql/updates/world/2016_08_24_00.sql index 165edfd67..2e27d84a9 100644 --- a/data/sql/updates/world/2016_08_24_00.sql +++ b/data/sql/updates/world/2016_08_24_00.sql @@ -1,8 +1,7 @@ -/* -Insert MovementType to Fizzle Darkstorm (GUID = 6455) and Burning Blade Fanatic (GUID = 6432) npc -*/ ALTER TABLE world_db_version CHANGE COLUMN 2016_08_21_00 2016_08_24_00 bit; +-- Insert MovementType to Fizzle Darkstorm (GUID = 6455) and Burning Blade Fanatic (GUID = 6432) npc + DELETE FROM `waypoint_data` WHERE `id` IN (645500,643200); -- Fizzle Darkstorm INSERT INTO `waypoint_data` (`id`, `point`, `position_x`, `position_y`, `position_z`, `orientation`, `delay`, `move_type`, `action`, `action_chance`, `wpguid`) VALUES diff --git a/data/sql/updates/world/2016_08_24_01.sql b/data/sql/updates/world/2016_08_24_01.sql new file mode 100644 index 000000000..0bdfcf2e8 --- /dev/null +++ b/data/sql/updates/world/2016_08_24_01.sql @@ -0,0 +1,5 @@ +ALTER TABLE world_db_version CHANGE COLUMN 2016_08_24_00 2016_08_24_01 bit; + +UPDATE command SET security = 0 WHERE name = 'gm ingame'; + +DELETE FROM command WHERE name IN ('evade', 'chatmessage'); diff --git a/src/scripts/Commands/cs_gm.cpp b/src/scripts/Commands/cs_gm.cpp index 466ff6b56..d88c6138a 100644 --- a/src/scripts/Commands/cs_gm.cpp +++ b/src/scripts/Commands/cs_gm.cpp @@ -31,7 +31,7 @@ public: { { "chat", SEC_GAMEMASTER, false, &HandleGMChatCommand, "" }, { "fly", SEC_GAMEMASTER, false, &HandleGMFlyCommand, "" }, - //{ "ingame", SEC_PLAYER, true, &HandleGMListIngameCommand, "" }, + { "ingame", SEC_PLAYER, true, &HandleGMListIngameCommand, "" }, { "list", SEC_GAMEMASTER, true, &HandleGMListFullCommand, "" }, { "visible", SEC_GAMEMASTER, false, &HandleGMVisibleCommand, "" }, { "", SEC_GAMEMASTER, false, &HandleGMCommand, "" }