After reading through it a few times, I found:
Code:
TBFrame:SetScript("OnEvent", function()
SetMapByID(708)
name, description, textureIndex, x, y = GetMapLandmarkInfo(1)
if textureIndex == 46 then
red = 0
blue = 1
green = 0
Time:SetTextColor(red, green, blue)
TBTexture:SetTexture(Ally)
end
if textureIndex == 48 then
red = 1.0
blue = 0
green = 0
Time:SetTextColor(red, green, blue)
TBTexture:SetTexture(Horde)
end
_,_,_,_,WaitTime,_ = GetWorldPVPAreaInfo(2)
TBTexture:SetTexture(Faction)
end)
So that puts me right where I started. No image upon login, but it works fine after a reloading of the ui, or a dragging of the frame.
I did make the change from one forward-slash to two back-slashes for both file paths. The only thing that I would think would be the problem is it not being able to access the map when it is being triggered. I am pulling the time from the PvP frame, so you may not have access to the map until a later time.