mirror of
https://github.com/EQEmu/Server.git
synced 2026-08-29 08:38:20 +00:00
[Commands] Cleanup #reloadzps Command. (#2129)
* [Commands] Cleanup #reloadzps Command. - Cleanup messages and logic. - Make reloading of zone points global instead of zone specific. * Further cleanup. - Add zone->GetZoneDescription(). - Add mob->GetTargetDescription(mob). * Final cleanup. * Typo.
This commit is contained in:
@@ -154,16 +154,13 @@ void command_faction(Client *c, const Seperator *sep)
|
||||
}
|
||||
else if (!strcasecmp(sep->arg[1], "view")) {
|
||||
if (c->GetTarget() && c->GetTarget()->IsNPC()) {
|
||||
Mob *target = c->GetTarget();
|
||||
uint32 npc_id = target->GetNPCTypeID();
|
||||
uint32 npc_faction_id = target->CastToNPC()->GetPrimaryFaction();
|
||||
std::string npc_name = target->GetCleanName();
|
||||
auto target = c->GetTarget();
|
||||
auto npc_faction_id = target->CastToNPC()->GetPrimaryFaction();
|
||||
c->Message(
|
||||
Chat::White,
|
||||
fmt::format(
|
||||
"{} ({}) has a Primary Faction of {} ({}).",
|
||||
npc_name,
|
||||
npc_id,
|
||||
"{} has a Primary Faction of {} ({}).",
|
||||
c->GetTargetDescription(target),
|
||||
content_db.GetFactionName(npc_faction_id),
|
||||
npc_faction_id
|
||||
).c_str()
|
||||
|
||||
Reference in New Issue
Block a user