- Joined
- Dec 21, 2013
- Messages
- 392
- Reaction score
- 181
Edit: No longer maintained and needed. Use cgi’s patcher.
Last edited:
Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!
Join Today!Note
AKTools now relies on my server for handling IPs which means you need an active internet connection to be able to convert your IPs. This way class A IPs (e.g. 10.10.12.3) should theoretically be supported. Haven't tested it so let me know.
var ip = IPAddress.Parse(iUserIp.Text);
iIpToBytes.Text = BitConverter.ToString(ip.GetAddressBytes());
var lastOctetToZero = ip.GetAddressBytes();
lastOctetToZero[3] = 0;
var ipLastOctetToZero = ip.GetAddressBytes();
ipLastOctetToZero[3] = 0;
using (var fileStream = File.Open(filename, FileMode.Open, FileAccess.ReadWrite))
{
using (var binaryWriter = new BinaryWriter(fileStream))
using (var binaryReader = new BinaryReader(fileStream))
{
binaryReader.BaseStream.Seek(baseJump, SeekOrigin.Begin);
var current = binaryReader.ReadByte();
if (current == 0xCC)
{
binaryWriter.BaseStream.Position = 202276;
binaryWriter.Write(ipLastOctetToZero);
binaryWriter.BaseStream.Position = 203060;
binaryWriter.Write(ipLastOctetToZero);
return;
}
Console.WriteLine("Incompatible file...");
}
}