public static void SendAuthSuccessful(IRealmClient client) { using (var packet = new RealmPacketOut(RealmServerOpCode.SMSG_AUTH_RESPONSE, 11)) { packet.WriteByte((byte)LoginErrorCode.AUTH_OK); //BillingTimeRemaining packet.Write(0); packet.Write((byte)0x02); // BillingPlan Flags // 0x2, 0x4, 0x10 mutually exclusive. Order of Precedence: 0x2 > 0x4 > 0x10 // 0x2 -> No Time left? // 0x20 // 0x8 // BillingTimeRested packet.Write(0); packet.Write((byte)client.Account.ClientId); client.Send(packet, addEnd: false); } ClientAddonHandler.SendAddOnInfoPacket(client); RealmServer.Instance.OnClientAccepted(null, null); }
public static void SendAuthSuccessful(IRealmClient client) { using (RealmPacketOut packet = new RealmPacketOut((PacketId)RealmServerOpCode.SMSG_AUTH_RESPONSE, 11)) { packet.WriteByte((byte)12); packet.Write(0); packet.Write((byte)2); packet.Write(0); packet.Write((byte)client.Account.ClientId); client.Send(packet, false); } ClientAddonHandler.SendAddOnInfoPacket(client); ServerApp <WCell.RealmServer.RealmServer> .Instance.OnClientAccepted((object)null, (EventArgs)null); }