Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Register
Advertisement

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

regionID = GetCurrentRegion()

Returns[]

The following region IDs are known:

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

Details[]

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 Battle.net desktop application. It does not necessarily indicate the region of the realm that the player is logged into, but instead the region of the Battle.net 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 Battle.net 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.

Realms located in Taiwan use the Korean Battle.net portal, meaning this function will typically always report the current region as being Korea rather than Taiwan when connected to these realms. Other functions like C_BattleNet.GetFriendAccountInfo may however return region IDs that correctly identify Taiwanese realms.

Patch changes[]

Dragonflight Patch 10.1.5 (2023-07-11): Test realms may no longer consistently return a value of 1 (US).
Warlords of Draenor Patch 6.0.2 (2014-10-14): Added.

See also[]

Advertisement