function()
local x,y=C_Map.GetPlayerMapPosition(C_Map.GetBestMapForUnit("player"),"player"):GetXY()
local coords = format("%.2f, %.2f",x*100,y*100)
return(coords)
end
Code to display color:
function(progress, r1, g1, b1, a1, r2, g2, b2, a2)
local x,y=C_Map.GetPlayerMapPosition(C_Map.GetBestMapForUnit("player"),"player"):GetXY()
--x = math.floor(x*100)/100
local xi = math.floor(x*100)/256
local xf = (x - math.floor(x*100)/100)*100*100/256
--local facing = getplayerfacing()
local speed = GetUnitSpeed("player") / 70
return xi, xf, speed,1
end
C
METHOD FOR FOCUSING GAME WINDOW
void focawow() // Focus world of warcraft windows
{
var prc = Process.GetProcessesByName("wow");
if (prc.Length > 0)
{
SetForegroundWindow(prc[0].MainWindowHandle);
}
else
MessageBox.Show("Wow window not found");
}
COpy pixel coordinate
Color GetColorAt(int x, int y)
{
Rectangle bounds = new Rectangle(x, y, 1, 1);
using (Graphics g = Graphics.FromImage(bmp))
g.CopyFromScreen(bounds.Location, Point.Empty, bounds.Size);
return bmp.GetPixel(0, 0);
}
Source: https://www.ownedcore.com/forums/wow-classic/wow-classic-bots-programs/830719-creating-pixel-bot-c-zero-kinda-tutorial.html
Weak Aura Code for pixel coordinate:
Code for display coordinate:
Code to display color:
C
METHOD FOR FOCUSING GAME WINDOW
COpy pixel coordinate