예제 #1
0
 public void Invoke(Session _Session, IncomingPacket _Packet)
 {
     string _item = _Packet.GetString();
     string _tipop = _Packet.GetString();
     int _periodo = _Packet.GetInt();
     int _pre = _Packet.GetInt();
     _Session.Send(_Session.User.BuyItems(_item, _tipop, _periodo, _pre));
     _Session.Send(_Session.User.GetAvatars());
 }
예제 #2
0
        public void Invoke(Session _Session, IncomingPacket _Packet)
        {
            int version = _Packet.GetInt();
            int user_id = _Packet.GetInt();
            string user_key = _Packet.GetString();

            _Session.Send("[" + (int)ServerOpcode.login_profile + "]");
            _Session.User.LoadUser(version, user_id, user_key);
            _Session.Send("[" + (int)ServerOpcode.login_avatars + "]");
            _Session.User.LoadinfoAvatars();
            _Session.Send(_Session.User.PlayerInfo());

            _Session.Send(_Session.User.UpdateBoddy());

            LogConsole.Show(LogType.INFO, "Version: {0} User_id: {1} User_key: {2}", version, user_id, user_key);
        }
예제 #3
0
        public void Invoke(Session _Session, IncomingPacket _Packet)
        {
            int fid = _Packet.GetInt();

            if (fid == 0)
            {
                _Session.Send(_Session.User.UpdateBoddy());
            }
            else if (fid == 1)
            {
                _Session.Send(_Session.User.Guildinfo());
            }
        }