IsInImperialCity
ESO Lua API function — used by 40 of the 3,030 addons we indexed (combined 22,001,538 downloads). Signature from the official ESOUIDocumentation.txt, API version 101050.
Official signature
IsInImperialCity()Returns: bool isInImperialCity
Real usage — from SkyShards
if not mapIndex and IsInImperialCity() then mapIndex = GetImperialCityMapIndex() end
Short excerpt from the shipping addon SkyShards — its ESOUI page; the code belongs to its author. Shown because documentation without a working example is half a reference.
Most-downloaded addons using it
| Addon | Total downloads |
|---|---|
| SkyShards | 12,943,031 |
| LibQuestData | 4,916,044 |
| LibZone | 1,937,031 |
| Crafting Stations | 907,236 |
| CyrHUD | 325,521 |
| Jack of all Trades - Automatic CP Respec | 194,328 |