Merge branch 'master' of github.com:TrinityCore/TrinityCore into 4.3.4
Conflicts: src/server/game/Entities/Player/Player.h
This commit is contained in:
commit
c00c59c0f5
3 files changed
+29
-1
No files matched your search
@@ -27105,6 +27105,31 @@ float Player::GetCollisionHeight(bool mounted) const
|
||||
}
|
||||
}
|
||||
|
||||
std::string Player::GetMapAreaAndZoneString()
|
||||
{
|
||||
uint32 areaId = GetAreaId();
|
||||
std::string areaName = "Unknown";
|
||||
std::string zoneName = "Unknown";
|
||||
if (AreaTableEntry const* area = GetAreaEntryByAreaID(areaId))
|
||||
{
|
||||
int locale = GetSession()->GetSessionDbcLocale();
|
||||
areaName = area->area_name[locale];
|
||||
if (AreaTableEntry const* zone = GetAreaEntryByAreaID(area->zone))
|
||||
zoneName = zone->area_name[locale];
|
||||
}
|
||||
|
||||
std::ostringstream str;
|
||||
str << "Map: " << GetMapId() << " (" << (FindMap() ? FindMap()->GetMapName() : "Unknown") << ") Area: " << areaId << " (" << areaName.c_str() << ") Zone: " << zoneName.c_str();
|
||||
return str.str();
|
||||
}
|
||||
|
||||
std::string Player::GetCoordsMapAreaAndZoneString()
|
||||
{
|
||||
std::ostringstream str;
|
||||
str << Position::ToString() << " " << GetMapAreaAndZoneString();
|
||||
return str.str();
|
||||
}
|
||||
|
||||
Guild* Player::GetGuild()
|
||||
{
|
||||
uint32 guildId = GetGuildId();
|
||||
|
||||
@@ -2511,6 +2511,9 @@ class Player : public Unit, public GridObject<Player>
|
||||
//! Return collision height sent to client
|
||||
float GetCollisionHeight(bool mounted) const;
|
||||
|
||||
std::string GetMapAreaAndZoneString();
|
||||
std::string GetCoordsMapAreaAndZoneString();
|
||||
|
||||
// Void Storage
|
||||
bool IsVoidStorageUnlocked() const { return HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_VOID_UNLOCKED); }
|
||||
void UnlockVoidStorage() { SetFlag(PLAYER_FLAGS, PLAYER_FLAGS_VOID_UNLOCKED); }
|
||||
|
||||
@@ -1092,7 +1092,7 @@ enum TrinityStrings
|
||||
LANG_CALL_FOR_HELP = 5035,
|
||||
LANG_NPCINFO_EQUIPMENT = 5036,
|
||||
LANG_NPCINFO_MECHANIC_IMMUNE = 5037,
|
||||
// Room for more Trinity strings 5037-9999
|
||||
// Room for more Trinity strings 5038-9999
|
||||
|
||||
// Level requirement notifications
|
||||
LANG_SAY_REQ = 6604,
|
||||
|
||||
Reference in new issue
Block a user