mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
27 lines
955 B
C++
Executable File
27 lines
955 B
C++
Executable File
#include "../client.h"
|
|
|
|
void command_zsafecoords(Client *c, const Seperator *sep)
|
|
{
|
|
// modifys and resends zhdr packet
|
|
if (sep->arg[3][0] == 0) {
|
|
c->Message(Chat::White, "Usage: #zsafecoords <safe x> <safe y> <safe z>");
|
|
}
|
|
else {
|
|
zone->newzone_data.safe_x = atof(sep->arg[1]);
|
|
zone->newzone_data.safe_y = atof(sep->arg[2]);
|
|
zone->newzone_data.safe_z = atof(sep->arg[3]);
|
|
//float newdatax = atof(sep->arg[1]);
|
|
//float newdatay = atof(sep->arg[2]);
|
|
//float newdataz = atof(sep->arg[3]);
|
|
//memcpy(&zone->zone_header_data[114], &newdatax, sizeof(float));
|
|
//memcpy(&zone->zone_header_data[118], &newdatay, sizeof(float));
|
|
//memcpy(&zone->zone_header_data[122], &newdataz, sizeof(float));
|
|
//zone->SetSafeCoords();
|
|
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);
|
|
}
|
|
}
|
|
|