View Single Post
10-26-16, 11:47 AM   #12
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,871
Testing on a rogue with one addon consisting of the following
Lua Code:
  1. local f = CreateFrame("Frame")
  2. f:SetSize(10, 10)
  3. f:SetPoint("TOP", 0, -20)
  4. f.t = f:CreateFontString()
  5. f.t:SetPoint("CENTER")
  6. f.t:SetFontObject("GameFontNormal")
  7. f:SetScript("OnUpdate", function(self)
  8.         local x,y = GetPlayerMapPosition("player")
  9.         if x then
  10.             local x = format("%.1f", x*100)
  11.             local y = format("%.1f", y*100)
  12.             self.t:SetText(x .. " " .. y)
  13.         else
  14.             sellf.t:SetText("")
  15.         end
  16.     end)

Logon displays coordinates.
Enter the order hall via Glorious Goods displays zeros.
Exit the hall displays coordinates.

Enter the hall again - zeros.
/reload - zeros

Logoff/on inside the hall you now have coordinates.
Exit the hall - zeros
Exit Glorous Goods - coordinates.

Regardless of SetMapToCurrentZone(), GetPlayerMapPosition() is getting zone information and in some cases toggling how it functions. Whether this is just the rogue hall, certain order halls or certain types of instances I don't know.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 10-26-16 at 11:50 AM.