AddOns
AddOn Manager
Latest 200
Browse
Upload AddOn
Search AddOns
Projects
Author Portals
Git Repositories
SVN Repositories
Options
Email Feeds
Preference
Download History
News
Forums
New posts
Today's Posts
Search Forum
Categories
General
AddOns, Comps, Macros
Featured Projects
Developer
Site Forums
Mark Forums Read
Subscribed Threads
Open Buddy List
Members List
Help
Login
Sign up
WoWInterface
»
Developer Discussions
»
Lua/XML Help
»
How to tell US vs EU?
Go to Page...
Reply
View First Unread
Thread Tools
Display Modes
08-28-09, 10:08 PM
#
1
mapwow
A Defias Bandit
Join Date: Aug 2009
Posts: 2
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!
__________________
mapwow.com - WoW + Google Maps
|
trackwarcraft.com - is the PUG good enough?
mapwow
View Public Profile
Send a private message to mapwow
Visit mapwow's homepage!
Find More Posts by mapwow
08-28-09, 11:32 PM
#
2
Syzgyn
An Aku'mai Servant
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.
Syzgyn
View Public Profile
Send a private message to Syzgyn
Find More Posts by Syzgyn
08-28-09, 11:47 PM
#
3
mapwow
A Defias Bandit
Join Date: Aug 2009
Posts: 2
Great idea -- it works! Thanks!
__________________
mapwow.com - WoW + Google Maps
|
trackwarcraft.com - is the PUG good enough?
mapwow
View Public Profile
Send a private message to mapwow
Visit mapwow's homepage!
Find More Posts by mapwow
Reply
WoWInterface
»
Developer Discussions
»
Lua/XML Help
» How to tell US vs EU?
«
Previous Thread
|
Next Thread
»
Thread Tools
Show Printable Version
Email this Page
Display Modes
Linear Mode
Switch to Hybrid Mode
Switch to Threaded Mode
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