I already do that in my code :
Code:
public void MoveTo(Position p)
{
IntPtr ptr = new IntPtr();
byte[] x = BitConverter.GetBytes(p.X);
byte[] y = BitConverter.GetBytes(p.Y);
byte[] z = BitConverter.GetBytes(p.Z);
byte[] walk = BitConverter.GetBytes((int)WowAPI.ClickToMoveType.Move); <-- WowAPI.ClickToMoveType.Move Equals to 0x04
MemoryAPI.WriteProcessMemory(handle, new IntPtr(wowAddressBase + 0xD0F39C + 0x80), x, (uint)4, out ptr);
MemoryAPI.WriteProcessMemory(handle, new IntPtr(wowAddressBase + 0xD0F39C + 0x84), y, (uint)4, out ptr);
MemoryAPI.WriteProcessMemory(handle, new IntPtr(wowAddressBase + 0xD0F39C + 0x88), z, (uint)4, out ptr);
MemoryAPI.WriteProcessMemory(handle, new IntPtr(wowAddressBase + 0xD0F39C + 0x10), walk, (uint)4, out ptr); <-- This line modify ActionType
}
I tried to run the program as administrator : nothing