Chris Miles 0550fcfd3f
[GM Commands] Split GM Commands Into Separate Files (#1766)
* Split GM commands into their own files

* Code cleanup
2021-11-14 22:48:47 -06:00

16 lines
279 B
C++
Executable File

#include "../client.h"
void command_wpinfo(Client *c, const Seperator *sep)
{
Mob *t = c->GetTarget();
if (t == nullptr || !t->IsNPC()) {
c->Message(Chat::White, "You must target an NPC to use this.");
return;
}
NPC *n = t->CastToNPC();
n->DisplayWaypointInfo(c);
}