mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-02 12:36:36 +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_appearance(Client *c, const Seperator *sep)
|
||||
{
|
||||
Mob *t = c->CastToMob();
|
||||
|
||||
// sends any appearance packet
|
||||
// Dev debug command, for appearance types
|
||||
if (sep->arg[2][0] == 0) {
|
||||
c->Message(Chat::White, "Usage: #appearance type value");
|
||||
}
|
||||
else {
|
||||
if ((c->GetTarget())) {
|
||||
t = c->GetTarget();
|
||||
}
|
||||
t->SendAppearancePacket(atoi(sep->arg[1]), atoi(sep->arg[2]));
|
||||
c->Message(
|
||||
Chat::White,
|
||||
"Sending appearance packet: target=%s, type=%s, value=%s",
|
||||
t->GetName(),
|
||||
sep->arg[1],
|
||||
sep->arg[2]
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user