mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 21:01:29 +00:00
[Commands] Remove #zuwcoords Command. (#1810)
- Remove duplicate command of #zunderworld
This commit is contained in:
parent
2cbcefd9a0
commit
8d3a179ecc
@ -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})
|
||||||
|
|||||||
@ -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;
|
||||||
|
|||||||
@ -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"
|
||||||
|
|||||||
@ -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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user