Jump to content
  • 0
yannickkutil

OWN Emulator Testing in 1.1.2 | Auth Process Error

Question

 

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());
Edited by yannickkutil

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Contact Us

To contact us click here
You can also email us at [email protected]

Privacy Policy | Terms & Conditions

Repositories

The Link to the master list
of MaNGOS repositories:
Copyright © getMaNGOS. All rights Reserved.

This website is in no way associated with or endorsed by Blizzard Entertainment®
×
×
  • 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