This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: Change Zone in Who list to Area  (Read 566 times)

Nirelz

  • Registred Member
  • BLP Convertor
  • *****
  • Posts: 7
    • View Profile
Change Zone in Who list to Area
« on: May 20, 2018, 10:28:15 pm »
Hi, is it possible to change the who list to display Area name instead of Zone name?
Would it be to change Zoneid to Areaid in core?
https://github.com/TrinityCore/TrinityCore/blob/3.3.5/src/server/game/Handlers/MiscHandler.cpp#L300
Quote
uint32 playerZoneId = target.GetZoneId();
        uint8 gender = target.GetGender();

        bool showZones = true;
        for (uint32 i = 0; i < zonesCount; ++i)
        {
            if (zoneids == playerZoneId)
            {
                showZones = true;
                break;
            }

            showZones = false;
        }
        if (!showZones)
            continue;

Thanks for any help :)