Game Flavors
Added in 6.0.2 / 1.13.2

Returns a numeric ID representing the region the player is currently logged into.

regionID = GetCurrentRegion()


The following region IDs are known:

ID Description
1 US (includes Brazil and Oceania)
2 Korea
3 Europe (includes Russia)
4 Taiwan
5 China


The value returned is deduced from the portal console variable, which may be set by the game client at launch to match the selected account region in the desktop application. It does not necessarily indicate the region of the realm that the player is logged into, but instead the region of the portal used to contact the login servers and provide a realm list.

This function is mostly reliable except in the case where the user modifies the portal from the login screen after having launched the game client through the desktop application. The game client will prefer to use the login server addresses specified by the desktop application over the portal, causing a mismatch between the logged in region and what this function will report.

This function returns 1 (US) if the portal refers to an invalid region. This includes PTR and Beta servers where the portal is set to "test".

Patch changes