What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

[?] Method to determine Location?

The only way I can see this happening "easily" is by looking at the locale for the client. But that's dodgy as some people may use the EU client on US servers and vice versa.

"GetLocale()" will be the Lua func. But again, its dodgy.
 
Distribute a separate plugin for each region?
 
PHP:
Lua.GetReturnVal<string>("return GetCVar('portal')", 0).ToUpper()

i don't really know how about other servers, but Europe's portal is "eu".
 
The only way I can see this happening "easily" is by looking at the locale for the client. But that's dodgy as some people may use the EU client on US servers and vice versa.

"GetLocale()" will be the Lua func. But again, its dodgy.

Yeah, that's useless :-\. You'd think they'd have that for Localization support... for Addon Text translation, etc? Guess by Client Locale Version only .... Ouch ...
 
PHP:
Lua.GetReturnVal<string>("return GetCVar('realmlist')", 0).ToUpper()
About reliability issue i guess parsing this one would be most reliable, you actually have to change it to get other region's realms.
 
PHP:
Lua.GetReturnVal<string>("return GetCVar('realmlist')", 0).ToUpper()
About reliability issue i guess parsing this one would be most reliable, you actually have to change it to get other region's realms.
Nice :)
 
I tried different combinations and 'portal' actually takes priority above everything.
I have just EU account and i set realmlist.wtf to this:
PHP:
set realmlist US.logon.worldofwarcraft.com
set patchlist enUS.patch.battle.net:1119/patch
set realmlistbn ""
set portal eu
It still logs me in to Europe without any kind of extra message and does NOT modify patchlist nor realmlist (it still returns US ones).
When i get it other way (portal us and rest on europe) i cannot log in at all.

So if you want current region indicator Lua.GetReturnVal<string>("return GetCVar('portal')", 0).ToUpper() will be only thing to check for.</string>
 
Last edited:
Back
Top