Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API GetCurrentRegion

Last wiki revision 2023-06-24

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

regionID = GetCurrentRegion

The following region IDs are known:

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 may however return region IDs that correctly identify Taiwanese realms.

Source

https://warcraft.wiki.gg/wiki/API_GetCurrentRegion · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.