Jump to content

OWN Emulator Testing in 1.1.2 | Auth Process Error


Recommended Posts

Posted

 

Does somebody has any idea why it does not work?

this is a call from 

CMD_AUTH_REALMLIST
using (var memory = new MemoryStream())
using (var writer = new PrimitiveWriter(memory))
{
    var addr = NetworkUtil.GetMatchingLocalIP(Client.IpAddress) ?? (object)"127.0.0.1";
    addr = addr + ":" + 7470;
    
    
    writer.WriteByte((byte)0x10); //AuthServerOpCode - REALM_LIST
    writer.BaseStream.Position += 2; // Packet length
    writer.Write(0); // Unknown Value (0x0000)
    
    switch (Client.ClientInformation.Version.Build)
    {
        case 5875:                                          // 1.12.1
        case 6005:                                          // 1.12.2
        case 6141:                                          // 1.12.3
            writer.Write((byte)0x01); //Realm Count
    
            //Loop durch alle realms
            writer.Write((byte)0x00); //ServerType - Normal -1.1.2
            writer.Write((byte)0x02); //realmflags - offline
            writer.WriteCString("daran"); //realmname
            writer.WriteCString(addr.ToString()); //server adress with port
            writer.WriteFloat(1); //population
            writer.Write((byte)0); //chars count on realm from account
            writer.Write((byte)9); //realmCategory - german
            writer.WriteByte(0x00); // Unknown Value (0x0000) -1.2

            writer.Write((byte)0x00); // Unknown Value- 1.2 
            writer.Write((byte)0x02); // Unknown Value - 1.2
    }

    writer.BaseStream.Position = 1;
    writer.Write((short)writer.BaseStream.Length-3); //packet lenght

    Socket.Send(memory.ToArray());
  • 7 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use