Thread Tools Display Modes
08-28-09, 10:08 PM   #1
mapwow
A Defias Bandit
 
mapwow's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 2
Question How to tell US vs EU?

Is there a function to return the region (US vs EU)? GetRealmName() returns the server's name, but there are US and EU servers with the same name.

Thanks!
  Reply With Quote
08-28-09, 11:32 PM   #2
Syzgyn
An Aku'mai Servant
 
Syzgyn's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 37
Code:
string.sub(GetCVar("realmList"),1,2)
GetCVar("realmList") will give you the login server, such as "us.logon.worldofwarcraft.com". eu for Europe, no idea what china or other places are, if not eu.
  Reply With Quote
08-28-09, 11:47 PM   #3
mapwow
A Defias Bandit
 
mapwow's Avatar
AddOn Author - Click to view addons
Join Date: Aug 2009
Posts: 2
Talking

Great idea -- it works! Thanks!
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » How to tell US vs EU?

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off