mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-31 04:56:20 +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);
|
||||
}
|
||||
|
||||
|
||||
@@ -2,15 +2,6 @@
|
||||
|
||||
void command_showzonegloballoot(Client *c, const Seperator *sep)
|
||||
{
|
||||
c->Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"Global loot for {} ({}).",
|
||||
zone->GetLongName(),
|
||||
zone->GetZoneID()
|
||||
).c_str()
|
||||
);
|
||||
|
||||
zone->ShowZoneGlobalLoot(c);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user