Well here's the aiming snippit. Add it into your esp and you'll be almost as good as me.
public void DoAiming()
{
while (true)
{
if (Aimed == true && AimedEntity != null)
{
}
Thread.Sleep(1);
}
}
protected override void WndProc(ref Message m)
{
if (m.Msg == 0x312)
{
switch ((int)m.WParam)
{
case 0:
if (this.Settings != null && this.Settings.Visible)
{
this.Settings.Close();
break;
}
this.Settings = new Settings(); this.Settings.Show();
this.Settings.Location = new Point(this.GameWindowRect.Right - this.Settings.Width - 20, this.GameWindowRect.Top + 200);
Native.SetForegroundWindow(this.GameMemory.Process.MainWindowHandle);
break;
case 1:
ShowRadar = !ShowRadar;
Main.Ini.IniWriteValue("Radar", "Show", ShowRadar.ToString());
break;
case 2:
ShowMap = !ShowMap;
break;
case 3:
ShowMapLarge = !ShowMapLarge;
Main.Ini.IniWriteValue("Map", "LargeMap", Main.ShowMapLarge.ToString());
break;
case 4:
Main.IsRunning = false;
break;
}
}
base.WndProc(ref m);
}
public static void MoveMouse(int xDelta, int yDelta)
{
Native.mouse_event(1, xDelta, yDelta, 0u, 0u);
}
public static void MoveMouseTo(int x, int y)
{
Native.mouse_event(0x8000, x, y, 0, 0);
Native.mouse_event(1, x, y, 0, 0);
}
}
}