Wikia

WoWWiki

API GetRealmName

Talk0
102,248pages on
this wiki
Revision as of 22:29, November 21, 2009 by Sandwichman2448 (Talk | contribs)

(diff) ←Older revision | Latest revision (diff) | Newer revision → (diff)
WoW API < GetRealmName

Returns the name of the realm (aka server) the player is currently on.

realmName = GetRealmName()

Arguments Edit

None

Returns Edit

realmName 
String - The name of the realm.

Example Edit

local realmName = GetRealmName()
DEFAULT_CHAT_FRAME:AddMessage("You are currently on realm: " .. realmName)
> You are currently on realm: Gorgonnash

Around Wikia's network

Random Wiki