Hi im trying to sort this out on zone.lua script below
im trying to get it to show up like this line for example: Teldrasil (24,54) on infopanel
Code:
-- Gather Info
local function OnUpdate(self,elapsed)
nextUpdate = (nextUpdate - elapsed);
if (nextUpdate <= 0) then
if (IsInInstance()) then
InfoPanel_SetText(f,GetZoneText());
else
local x, y = GetPlayerMapPosition("player");
InfoPanel_SetText(f,"%.1f |cffffff00|||r %.1f",x * 100,y * 100);
end
nextUpdate = UPDATE_INTERVAL;
end
end
so at line that shows coords:
Code:
InfoPanel_SetText(f,"%.1f |cffffff00|||r %.1f",x * 100,y * 100);
i want to implement zone
Code:
InfoPanel_SetText(f,GetZoneText());
as for now it only shows the coords,
how should i do this?
was thinking something like
Code:
InfoPanel_SetText(f,GetZoneText(),"%.1f |cffffff00|||r %.1f",x * 100,y * 100);
but that is ofc not working so question is, how shall i do this the correct way?
//Cheers
Zt