wowpedia
Main Menu


Returns the realm name.

realm = GetRealmName()
normalizedRealm = GetNormalizedRealmName()

Returns

realm
string - The name of the realm.
normalizedRealm
string? - The name of the realm without spaces or - hyphens.

Details

Related API GetRealmID
-- GetTime(), event, GetRealmName(), GetNormalizedRealmName()
11647.589 VARIABLES_LOADED: "Defias Brotherhood", nil
11647.655 PLAYER_LOGIN: "Defias Brotherhood", "DefiasBrotherhood"
11647.655 PLAYER_ENTERING_WORLD: "Defias Brotherhood", "DefiasBrotherhood"

Example

A small list of realm IDs and names.

-- /dump GetRealmID(), GetRealmName(), GetNormalizedRealmName()
503, "Azjol-Nerub", "AzjolNerub"
513, "Twilight's Hammer", "Twilight'sHammer"
635, "Defias Brotherhood", "DefiasBrotherhood"
1049, "憤怒使者", "憤怒使者"
1093, "Ahn'Qiraj", "Ahn'Qiraj"
1413, "Aggra (Português)", "Aggra(Português)"
1925, "Вечная Песня", "ВечнаяПесня"

Patch changes

Mists of Pandaria Patch 5.4.1 (2013-10-29): CVar realmName was removed[2].
WoW Icon update Patch 1.5.0 (2005-06-07): Added.

See also

References

  1. ^ SDPhantom 2020-02-18. Re: Party members with server name?. WoWInterface.
  2. ^ SpaceDuck, Mule 2014-10-30. GetCVar("realmName") gives nil. MMO-Champion.