I've managed to update the source and offsets, and get the bot about 90% functional
attacking, potting, buffs, target filter all work. I haven't bothered updating the dont attack lords, or the already tagged options. i dont care about those and they are really only used when you bot in public....which i dont.
right now the zoning control, and the auto-follow leader are not functional. This is due to the autoroute function within the source not working.
I've tested the logic, and stepped through it all with the debugger, however the game.exe crashes once the array of bytes is sent through the pipeserver.
Code:
public void BoI_MapAutoRoute(int MapID, float X_Coord, float Y_Coord) //3
{
byte[] PServer_OutBuffer = new byte[64]; //out buffer
byte[] UniID = BitConverter.GetBytes((uint)LocalGlobals.NamedPipe_UniqueID); //Unique ID
Array.Copy(UniID, 0, PServer_OutBuffer, 0, 4);
byte[] MsType = BitConverter.GetBytes(3); //type
Array.Copy(MsType, 0, PServer_OutBuffer, 4, 4);
byte[] MaID = BitConverter.GetBytes(MapID); //Map ID
Array.Copy(MaID, 0, PServer_OutBuffer, 8, 4);
byte[] MaX = BitConverter.GetBytes(X_Coord); //Map X Coord
Array.Copy(MaX, 0, PServer_OutBuffer, 12, 4);
byte[] MaY = BitConverter.GetBytes(Y_Coord); //Map Y Coord
Array.Copy(MaY, 0, PServer_OutBuffer, 16, 4);
[B]pieServer.SendMessage(PServer_OutBuffer);[/B]
}
Code:
public void SendMessage(byte[] messageBuffer)
{
lock (this.clients)
{
if (!active)
{
active = true;
foreach (Client client in this.clients)
{
if (client != null)
{
[B]client.stream.Write(messageBuffer, 0, messageBuffer.Length);[/B]
try
{
client.stream.Flush();
}
catch //client already closed
{
}
}
}
active = false;
}
}
}
the game.exe crashes where the text is bolded.
From here, I'm not sure what to do in order to get the auto-follow functional. I've tried unpacking the game.exe on both x64 and x86 windows virtual machines. The process always terminates when i press F9 the second time.
Anyways, I'm willing to share my work with anyone who can help me get this autoroute functional.
I think it boils down to the array of bytes being constructed improperly due to the new update, not particularly sure.