Beispiel #1
0
        public void Invoke(Session _Session, IncomingPacket _Packet)
        {
            string RoomName  = _Packet.GetNextString();
            string RoomModel = _Packet.GetNextString();

            System.MySqlManager.InvokeQuery(new MakeNewRoomQuery(RoomName, RoomModel, _Session.User.ID));
        }
Beispiel #2
0
        public void Invoke(Session _Session, IncomingPacket _Packet)
        {
            string Data1 = _Packet.GetNextString();
            string Data2 = _Packet.GetNextString();
            string Data3 = _Packet.GetNextString();

            //System.IOStreamer.AppendLog(Data1);
            //System.IOStreamer.AppendLog(Data2);
            //System.IOStreamer.AppendLog(Data3);

            if (Data1 == "Vip")
            {
            }
        }
Beispiel #3
0
        public void Invoke(Session _Session, IncomingPacket _Packet)
        {
            string theClient = _Packet.GetNextString();

            if (theClient == System.ClientVersion)
            {
                _Session.UpdateSessionProgress(ProgressType.PolicyRequest);
                string MyIP    = _Session.Socket.RemoteEndPoint.ToString().Split(':')[0];
                User   newUser = System.UsersManager.Authenticate(MyIP);
                if (newUser != null)
                {
                    _Session.UpdateUser(newUser);
                    _Session.Send(new Outgoing.UserData(_Session.User));
                    _Session.Send(new Outgoing.LoadHotel());
                    _Session.Send(new Outgoing.PrivateRoomsCategories());
                }
                else
                {
                    System.GameSocket.CloseSession(_Session);
                }
            }
            else
            {
                System.GameSocket.CloseSession(_Session);
            }
        }
Beispiel #4
0
        public void Invoke(Session _Session, IncomingPacket _Packet)
        {
            string Sex    = _Packet.GetNextString();
            string Avatar = _Packet.GetNextString();

            _Session.User.Sex    = Sex;
            _Session.User.Avatar = Avatar;
            System.MySqlManager.InvokeQuery(new UpdateUserDataQuery(_Session.User));

            _Session.Send(new Outgoing.UpdateUserData(_Session.User, true));
            int RoomID = _Session.User.RoomID;

            if (RoomID != 0)
            {
                Room theRoom = System.RoomsManager.GetOrCreateVirtualRoom(RoomID);
                foreach (User User in theRoom.AllUsers)
                {
                    System.GameSocket.Sessions[User.ConnID].Send(new Outgoing.UpdateUserData(_Session.User, false));
                }
            }
        }
Beispiel #5
0
        public void Invoke(Session _Session, IncomingPacket _Packet)
        {
            string Category = _Packet.GetNextString();

            if (Category == "-1")
            {
                _Session.Send(new Outgoing.PrivateRooms("visit", null));
            }
            else
            {
                _Session.Send(new Outgoing.PrivateRooms("cat", Category));
            }
        }
Beispiel #6
0
        public void Invoke(Session _Session, IncomingPacket _Packet)
        {
            string Category = _Packet.GetNextString();

            _Session.Send(new Outgoing.PrivateRooms("events", Category));
        }
Beispiel #7
0
        public void Invoke(Session _Session, IncomingPacket _Packet)
        {
            string Text = _Packet.GetNextString();

            _Session.Send(new Outgoing.PrivateRooms("search", Text));
        }