Пример #1
0
        public override void run()
        {
            Account player = this._client._player;

            if (player != null && player._room != null)
            {
                Channel channel = player.getChannel();
                if (channel != null)
                {
                    using (ROOM_INVITE_SHOW_PAK roomInviteShowPak = new ROOM_INVITE_SHOW_PAK(player, player._room))
                    {
                        byte[] completeBytes = roomInviteShowPak.GetCompleteBytes("ROOM_INVITE_PLAYERS_REC");
                        for (int index = 0; index < this.count; ++index)
                        {
                            try
                            {
                                AccountManager.getAccount(channel.getPlayer(this.readUD())._playerId, true).SendCompletePacket(completeBytes);
                            }
                            catch
                            {
                            }
                        }
                    }
                }
            }
            else
            {
                this.erro = 2147483648U;
            }
            this._client.SendPacket((SendPacket) new ROOM_INVITE_RETURN_PAK(this.erro));
        }
Пример #2
0
        public override void run()
        {
            Account p = _client._player;

            if (p != null && p._room != null)
            {
                Channel ch = p.getChannel();
                if (ch != null)
                {
                    using (ROOM_INVITE_SHOW_PAK packet = new ROOM_INVITE_SHOW_PAK(p, p._room))
                    {
                        byte[] data = packet.GetCompleteBytes();
                        for (int i = 0; i < count; i++)
                        {
                            try
                            {
                                Account ps = AccountManager.getAccount(ch.getPlayer(readUD())._playerId, true);
                                if (ps != null)
                                {
                                    ps.SendCompletePacket(data);
                                }
                            }
                            catch { }
                        }
                    }
                }
            }
            else
            {
                erro = 0x80000000;
            }
            _client.SendPacket(new ROOM_INVITE_RETURN_PAK(erro));
        }