View Single Post
07/11/15, 07:06 AM   #3
Keldor
 
Keldor's Avatar
AddOn Author - Click to view addons
Join Date: Jan 2015
Posts: 101
Originally Posted by votan View Post
I use this:
Lua Code:
  1. local function GetZones()
  2.     local i = 1
  3.     local zones = data.Zones -- a table of your choice
  4.     local zbn = GetZoneNameByIndex
  5.     local zone
  6.     while true do
  7.       zone = zbn(i)
  8.       if zone == "" then break end
  9.       zones[zone] = i
  10.       i = i + 1
  11.     end
  12.   end
Don't forget: These names a raw, including localization data. You should use zo_strformat for display.
Thanks votan,

this is very similar to my idea, I will give it a try.

Keldor
  Reply With Quote