As the title say. Chernobyl is weird when he is coding, was checking his way of making bot detection and it makes no sense to me.
So his "locale" is this:
Code:
byte locale = pck.ReadUInt8();
Session isBot is false from start.
Code:
m_State.SetParameter("isBot", false);
This is the part I don't understand: (Agent)
Code:
if (Global.EnableBotDetected && locale == Global.OriginalLocale)
{
m_State.SetParameter("isBot", true);
}
if (locale != Global.OriginalLocale)
{
Packet p = new Packet(0x6103);
p.WriteUInt32(uint32_1);
p.WriteAscii(uname);
p.WriteAscii(passw);
p.WriteUInt8(Global.OriginalLocale);
p.WriteUInt32(ukn1);
p.WriteUInt16(ukn);
// m_ModuleSecurity.Send(p);
SendPacketToModule(p);
continue;
}
Gateway:
Code:
if (locale > 0 && locale != Global.OriginalLocale)
{
Packet login = new Packet(0x6102);
login.WriteUInt8(Global.OriginalLocale);
login.WriteAscii(username);
login.WriteAscii(password);
login.WriteUInt16(ServerID);
// m_ModuleSecurity.Send(login);
SendPacketToModule(login);
continue;
}
His OriginalLocale is
Code:
public static int OriginalLocale = 22;
Why would you resend the original locale like this and the biggest question, does this even detect bots? lol?