Garkin made one & posted it here:
http://www.esoui.com/forums/showthread.php?p=12693#post12693
Although yes you could do it yourself. I didn't log in & test this, but something like this would work:
Lua Code:
local zoneTable = {}
for zoneIndex = 1, 2000 do
local zoneName = GetZoneNameByIndex(zoneIndex)
if zoneName ~= "" then
zoneTable[zoneIndex] = zoneName
end
end