mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-04 14:36:37 +00:00
[Commands] Cleanup #shownpcgloballoot and #showzonegloballoot Commands (#3440)
# Notes - Cleanup messages and logic. - Utilize Dialogue Window tables.
This commit is contained in:
@@ -7,17 +7,8 @@ void command_shownpcgloballoot(Client *c, const Seperator *sep)
|
||||
return;
|
||||
}
|
||||
|
||||
auto target = c->GetTarget()->CastToNPC();
|
||||
const auto t = c->GetTarget()->CastToNPC();
|
||||
|
||||
c->Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Global loot for {} ({}).",
|
||||
target->GetCleanName(),
|
||||
target->GetNPCTypeID()
|
||||
).c_str()
|
||||
);
|
||||
|
||||
zone->ShowNPCGlobalLoot(c, target);
|
||||
zone->ShowNPCGlobalLoot(c, t);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user