Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Serverside Modding => Topic started by: Nirelz on May 20, 2018, 10:28:15 pm

Title: Change Zone in Who list to Area
Post by: Nirelz 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 :)