[Commands] Remove #zuwcoords Command. (#1810)

- Remove duplicate command of #zunderworld
This commit is contained in:
Kinglykrab 2021-11-23 06:03:09 -05:00 committed by GitHub
parent 2cbcefd9a0
commit 8d3a179ecc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 1 additions and 23 deletions

View File

@ -566,7 +566,6 @@ SET(gm_commands
gm_commands/zsky.cpp gm_commands/zsky.cpp
gm_commands/zstats.cpp gm_commands/zstats.cpp
gm_commands/zunderworld.cpp gm_commands/zunderworld.cpp
gm_commands/zuwcoords.cpp
) )
ADD_EXECUTABLE(zone ${zone_sources} ${zone_headers} ${gm_commands}) ADD_EXECUTABLE(zone ${zone_sources} ${zone_headers} ${gm_commands})

View File

@ -404,8 +404,7 @@ int command_init(void)
command_add("zsave", " - Saves zheader to the database", AccountStatus::QuestTroupe, command_zsave) || 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("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("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("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_deinit(); command_deinit();
return -1; return -1;

View File

@ -328,7 +328,6 @@ void command_zsave(Client *c, const Seperator *sep);
void command_zsky(Client *c, const Seperator *sep); void command_zsky(Client *c, const Seperator *sep);
void command_zstats(Client *c, const Seperator *sep); void command_zstats(Client *c, const Seperator *sep);
void command_zunderworld(Client *c, const Seperator *sep); void command_zunderworld(Client *c, const Seperator *sep);
void command_zuwcoords(Client *c, const Seperator *sep);
#ifdef BOTS #ifdef BOTS
#include "bot.h" #include "bot.h"

View File

@ -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 <under world coords>");
}
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);
}
}