Lua Code:
for zoneIndex = 1, 9999 do
local zoneName = GetZoneNameByIndex(zoneIndex)
if zoneName ~= "" then
GLOBAL_DUMPER[zoneIndex] = zoneName
end
end
PS: You should not use zoneIndex as they move at each DLC, but zoneId. You have few functions to get zoneId from zoneIndex and viceversa. (generally 2/3 index of public playable zones are moved)