my bot works very well before patch 6.2.0 20253,but now this line doesn't work at all
Code:
if (Memory.Read<uint>(Memory.BaseAddress + CTM_Base + CTM_Push) == 0x0000000D)
i get wrong offsit?but they are the same as the Info Dump Thread.
i would appreciate if anyone can help me
it's some of the code below,ClickToMove function don't have any problem
Code:
private static uint CGUnit_C__InitializeTrackingState = 0x41fb57;
private static uint CTM_Base = 0xE3AE28;
private static uint CTM_Push = 0x1C;
private void RunPoints(string str)
{
string[] wayPoints = str.Split('\n');
string[] points;
for (int i=0;i<wayPoints.Length;i++)
{
if (Memory.Read<uint>(Memory.BaseAddress + CTM_Base + CTM_Push) == 0x0000000D)
{
points = wayPoints[i].Split(':');
ClickToMove(Convert.ToSingle(points[0]), Convert.ToSingle(points[1]), Convert.ToSingle(points[2]), 0, 0x4, 2.5f);
System.Threading.Thread.Sleep(30);
}
}
}
public static void ClickToMove(Single x, Single y, Single z, UInt64 guid, Int32 action, Single precision)
{
UInt32 Pos_Codecave = Memory.AllocateMemory(0x4 * 3);
UInt32 GUID_Codecave = Memory.AllocateMemory(0x8);
UInt32 Precision_Codecave = Memory.AllocateMemory(0x4);
Memory.Write<UInt64>(GUID_Codecave, guid);
Memory.Write<float>(Precision_Codecave, precision);
Memory.Write<float>(Pos_Codecave, x);
Memory.Write<float>(Pos_Codecave + 0x4, y);
Memory.Write<float>(Pos_Codecave + 0x8, z);
string[] asm = new string[]
{
"mov edx, [" + Precision_Codecave + "]",
"push edx",
"call " + ((uint)Memory.BaseAddress + (uint)ClntObjMgrGetActivePlayerObj),
"mov ecx, eax",
"push " + Pos_Codecave,
"push " + GUID_Codecave,
"push " + action,
"call " + ((uint)Memory.BaseAddress + (uint)CGUnit_C__InitializeTrackingState),
"retn",
};
InjectAndExecute(asm);
Memory.FreeMemory(Pos_Codecave);
Memory.FreeMemory(GUID_Codecave);
Memory.FreeMemory(Precision_Codecave);
}