mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 00:46:46 +00:00
[GM Commands] Split GM Commands Into Separate Files (#1766)
* Split GM commands into their own files * Code cleanup
This commit is contained in:
Executable
+26
@@ -0,0 +1,26 @@
|
||||
#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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user