[Commands] Add #petitems Command. (#1823)

- 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.
This commit is contained in:
Kinglykrab
2021-11-25 14:50:05 -05:00
committed by GitHub
parent d38b8a4867
commit e474b2a280
7 changed files with 65 additions and 34 deletions
+1 -3
View File
@@ -9,9 +9,7 @@ void command_npcstats(Client *c, const Seperator *sep)
target->ShowStats(c);
// Loot Data
if (target->GetLoottableID()) {
target->QueryLoot(c);
}
target->QueryLoot(c);
}
else {
c->Message(Chat::White, "You must target an NPC to use this command.");