eqemu-server/zone/gm_commands/shownpcgloballoot.cpp
Alex King 4330494f57
[Commands] Cleanup #shownpcgloballoot and #showzonegloballoot Commands (#3440)
# Notes
- Cleanup messages and logic.
- Utilize Dialogue Window tables.
2023-06-24 13:03:37 -05:00

15 lines
311 B
C++
Executable File

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