From 8d3a179ecccb3d985873e2310fa4284a4b05934e Mon Sep 17 00:00:00 2001 From: Kinglykrab <89047260+Kinglykrab@users.noreply.github.com> Date: Tue, 23 Nov 2021 06:03:09 -0500 Subject: [PATCH] [Commands] Remove #zuwcoords Command. (#1810) - Remove duplicate command of #zunderworld --- zone/CMakeLists.txt | 1 - zone/command.cpp | 3 +-- zone/command.h | 1 - zone/gm_commands/zuwcoords.cpp | 19 ------------------- 4 files changed, 1 insertion(+), 23 deletions(-) delete mode 100755 zone/gm_commands/zuwcoords.cpp diff --git a/zone/CMakeLists.txt b/zone/CMakeLists.txt index 2eb9749f1..d05087713 100644 --- a/zone/CMakeLists.txt +++ b/zone/CMakeLists.txt @@ -566,7 +566,6 @@ SET(gm_commands gm_commands/zsky.cpp gm_commands/zstats.cpp gm_commands/zunderworld.cpp - gm_commands/zuwcoords.cpp ) ADD_EXECUTABLE(zone ${zone_sources} ${zone_headers} ${gm_commands}) diff --git a/zone/command.cpp b/zone/command.cpp index d46e36544..93aeb69a2 100755 --- a/zone/command.cpp +++ b/zone/command.cpp @@ -404,8 +404,7 @@ int command_init(void) command_add("zsave", " - Saves zheader to the database", AccountStatus::QuestTroupe, command_zsave) || command_add("zsky", "[Sky Type] [Permanent (0 = False, 1 = True)] - Change zone sky type", AccountStatus::QuestTroupe, command_zsky) || command_add("zstats", "- Show info about zone header", AccountStatus::QuestTroupe, command_zstats) || - command_add("zunderworld", "[Z] [Permanent (0 = False, 1 = True)] - Change zone underworld Z", AccountStatus::QuestTroupe, command_zunderworld) || - command_add("zuwcoords", "[z coord] - Set underworld coord", AccountStatus::QuestTroupe, command_zuwcoords) + command_add("zunderworld", "[Z] [Permanent (0 = False, 1 = True)] - Change zone underworld Z", AccountStatus::QuestTroupe, command_zunderworld) ) { command_deinit(); return -1; diff --git a/zone/command.h b/zone/command.h index 6d5f9e247..ae574a0c3 100644 --- a/zone/command.h +++ b/zone/command.h @@ -328,7 +328,6 @@ void command_zsave(Client *c, const Seperator *sep); void command_zsky(Client *c, const Seperator *sep); void command_zstats(Client *c, const Seperator *sep); void command_zunderworld(Client *c, const Seperator *sep); -void command_zuwcoords(Client *c, const Seperator *sep); #ifdef BOTS #include "bot.h" diff --git a/zone/gm_commands/zuwcoords.cpp b/zone/gm_commands/zuwcoords.cpp deleted file mode 100755 index 353b48739..000000000 --- a/zone/gm_commands/zuwcoords.cpp +++ /dev/null @@ -1,19 +0,0 @@ -#include "../client.h" - -void command_zuwcoords(Client *c, const Seperator *sep) -{ - // modifys and resends zhdr packet - if (sep->arg[1][0] == 0) { - c->Message(Chat::White, "Usage: #zuwcoords "); - } - else { - zone->newzone_data.underworld = atof(sep->arg[1]); - //float newdata = atof(sep->arg[1]); - //memcpy(&zone->zone_header_data[130], &newdata, sizeof(float)); - auto outapp = new EQApplicationPacket(OP_NewZone, sizeof(NewZone_Struct)); - memcpy(outapp->pBuffer, &zone->newzone_data, outapp->size); - entity_list.QueueClients(c, outapp); - safe_delete(outapp); - } -} -