mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-11 21:01:29 +00:00
- Add #petitems command to show a person's pet items if they have access to the command. - Adds a default false parameter to QueryLoot for NPCs that keeps messages and logic from being ran on pets for no reason. - Cleaned up message a bit for loot and stuff. - Remove check for loottable ID when using #npcstats for NPCs that get items from a script or otherwise.
19 lines
343 B
C++
Executable File
19 lines
343 B
C++
Executable File
#include "../client.h"
|
|
|
|
void command_npcstats(Client *c, const Seperator *sep)
|
|
{
|
|
if (c->GetTarget() && c->GetTarget()->IsNPC()) {
|
|
NPC *target = c->GetTarget()->CastToNPC();
|
|
|
|
// Stats
|
|
target->ShowStats(c);
|
|
|
|
// Loot Data
|
|
target->QueryLoot(c);
|
|
}
|
|
else {
|
|
c->Message(Chat::White, "You must target an NPC to use this command.");
|
|
}
|
|
}
|
|
|