mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-03 21:56:36 +00:00
[Commands] Cleanup #npcstats Command. (#1690)
- Cleanup menu and add stats that were not there before. - Only display some data if necessary (i.e only show loot/money if they have loot/money) - Add skill name helper method. - Add faction name helper method. - Add Charmed stats and other getter methods. - Cleanup QueryLoot() method.
This commit is contained in:
@@ -3981,6 +3981,22 @@ bool ZoneDatabase::GetFactionName(int32 faction_id, char* name, uint32 buflen) {
|
||||
|
||||
}
|
||||
|
||||
std::string ZoneDatabase::GetFactionName(int32 faction_id)
|
||||
{
|
||||
std::string faction_name;
|
||||
if (
|
||||
faction_id <= 0 ||
|
||||
faction_id > static_cast<int>(max_faction) ||
|
||||
!faction_array[faction_id]
|
||||
) {
|
||||
return faction_name;
|
||||
}
|
||||
|
||||
faction_name = faction_array[faction_id]->name;
|
||||
|
||||
return faction_name;
|
||||
}
|
||||
|
||||
//o--------------------------------------------------------------
|
||||
//| Name: GetNPCFactionList; Dec. 16, 2001
|
||||
//o--------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user