I'm working on my FFXIV bot a little more, I found the XYZ of myself in the game. When I close the game and reopen it the Z address will read the same but the other two wont.
But before i started the game the second time to check if it worked the address was 014b3058, but now it's 024a3058, how do I find the pointer address so I can just read it and +4 bytes to find the Y and -4 bytes to find the X?
ffxiv.exe+10D3058 = Z indeed. Should have no more issues after restarting the game.
You could also do:
Code:DWORD dGameBase = (DWORD)GetModuleHandleA("ffxiv.exe");