Forum > Serverside Modding

Change Zone in Who list to Area

(1/1)

Nirelz:
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;
--- End quote ---

Thanks for any help :)

Navigation

[0] Message Index

Go to full version