public override void OnRead(RiftClient From)
        {
            Realm Rm = Program.AcctMgr.GetRealm((int)RealmId);
            if (Rm != null)
                From.Rm = Rm;

            if (From.Rm == null)
            {
                Log.Error("WorldSelectRequest", "Realm null : " + From.GetIp);
                From.Disconnect();
                return;
            }

            LobbyWorldSelectResponse Rp = new LobbyWorldSelectResponse();
            From.SendSerialized(Rp);
        }
        public override void OnRead(RiftClient From)
        {
            Realm Rm = CharacterMgr.Instance.GetRealm((int)RealmId);

            if (Rm != null)
                From.Realm = Rm;

            if (From.Realm == null)
            {
                Log.Error("LobbyWorldSelectRequest", "Invalid RealmId=" + RealmId);
                From.Disconnect();
            }
            else
            {
                LobbyWorldSelectResponse Rp = new LobbyWorldSelectResponse();
                From.SendSerialized(Rp);
            }
        }
Пример #3
0
        public override void OnRead(RiftClient From)
        {
            Realm Rm = Program.AcctMgr.GetRealm((int)RealmId);

            if (Rm != null)
            {
                From.Rm = Rm;
            }

            if (From.Rm == null)
            {
                Log.Error("WorldSelectRequest", "Realm null : " + From.GetIp);
                From.Disconnect();
                return;
            }

            LobbyWorldSelectResponse Rp = new LobbyWorldSelectResponse();

            From.SendSerialized(Rp);
        }
Пример #4
0
        public override void OnRead(RiftClient From)
        {
            Realm Rm = CharacterMgr.Instance.GetRealm((int)RealmId);

            if (Rm != null)
            {
                From.Realm = Rm;
            }

            if (From.Realm == null)
            {
                Log.Error("LobbyWorldSelectRequest", "Invalid RealmId=" + RealmId);
                From.Disconnect();
            }
            else
            {
                LobbyWorldSelectResponse Rp = new LobbyWorldSelectResponse();
                From.SendSerialized(Rp);
            }
        }