View Single Post
08-07-14, 10:02 AM   #52
TOM_RUS
A Warpwood Thunder Caller
AddOn Author - Click to view addons
Join Date: Sep 2008
Posts: 95
Originally Posted by Jarod24 View Post
Hmm. yes "GetCurrentRegion()" is a function in the latest build but i dont know if it's working or not.


I did a "/dump GetCurrentRegion()" on two of the the current Beta servers ("Level 100 PvE" and "Beta Leveling Realm 01") and the only returned result was "1".


Got no clue if this is just a placeholder value or what "1" actually refers too. (Beta?, Datacenter? Continent?, Region of a map)
Return value of this API is based on value of "portal" cvar. They are checking if value of this cvar matches something from this array http://paste2.org/x9c1Wkw2 and return an index at first match. If nothing matches, they return 1. Theres's also special case for "cn-test".

Last edited by TOM_RUS : 08-07-14 at 10:15 AM.
  Reply With Quote