Thread Tools Display Modes
Prev Previous Post   Next Post Next
01-27-14, 11:28 AM   #1
jaliborc
A Chromatic Dragonspawn
 
jaliborc's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2007
Posts: 196
Detect Current Region

I've been looking for ways of an addon to detect wether it is on the US, European or Chinese regions. One method I found was using the cvar "portal":

Code:
local region = GetCVar('portal')
if region == 'eu' then
-- do european stuff
end
Does anyone knows if this is a reliable solution or if there is some alternative?
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Detect Current Region


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