Vrul, yes, that's probably a bug, though upon testing walking from Stormwind City to Elwynn Forest, the UIMapIDs sync, but the watched rep is now printing nothing. Hm, progress?
Lua Code:
function RepByZone:SetWatchedFactionByFactionID(id)
if type(id) == "table" then id = tonumber(id) end
if type(id) ~= "number" then return end
self:OpenAllFactionHeaders()
for i = 1, GetNumFactions() do
local name, _, standingID, _, _, _, _, _, isHeader, _, _, isWatched, _, factionID = GetFactionInfo(i)
if id == factionID then
self:Print("DEBUG: SetWatchedFactionByFactionID name:", name) --doesn't print now
self:Print("DEBUG: SetWatchedFactionByFactionID index:", i) -- doesn't print now
if not isWatched then
SetWatchedFactionIndex(i)
end
self:CloseAllFactionHeaders()
return name, id
else
break
end
end
self:CloseAllFactionHeaders()
end