Ejemplo n.º 1
0
        public void AppTest()
        {
            pvp = new PVPNetConnection();
            pvp.Connect("tryme123xxx1", "XXXXXXXxx", Region.NA, "4.21.14");

            pvp.OnLogin += pvp_OnLogin;
            Console.ReadLine();
        }
Ejemplo n.º 2
0
        public Client(Region region, string username, string password)
        {
            Data = new AccountData {
                Username = username, Password = password
            };
            IsCompleted = new TaskCompletionSource <bool>();
            Completed   = false;

            Connection          = new PVPNetConnection();
            Connection.OnLogin += OnLogin;
            Connection.OnError += OnError;

            Connection.Connect(username, password, region, "5.4.15_02_19_22_27");
        }
Ejemplo n.º 3
0
        public Client(Region region, string username, string password)
        {
            Data = new AccountData {
                Username = username, Password = password
            };
            _completed = false;

            Connection          = new PVPNetConnection();
            Connection.OnLogin += OnLogin;
            Connection.OnError += OnError;

            Connection.Connect(username, password, region, "5.2.15");

            Console.WriteLine("[{0:HH:mm}] <{1}> Connecting to PvP.net", DateTime.Now, Data.Username);
        }
Ejemplo n.º 4
0
        public Client(Region region, string username, string password)
        {
            Data = new Account
            {
                Username = username,
                Password = password
            };
            IsCompleted = new TaskCompletionSource <bool>();
            Completed   = false;

            Connection          = new PVPNetConnection();
            Connection.OnLogin += OnLogin;
            Connection.OnError += OnError;

            Connection.Connect(username, password, region, Settings.Config.ClientVersion);
        }
Ejemplo n.º 5
0
        public Engine(Accounts playerBot)
        {
            Account = playerBot;
            Region curRegion = (Region)Enum.Parse(typeof(Region), _setting.Region.ToUpper());

            SummonerQueue = _setting.QueueType;
            AccountName   = playerBot.Account;
            //Console.WriteLine("Region: " + JsonConvert.SerializeObject(curRegion, Formatting.Indented));

            #region Callbacks
            Connections.OnError += (object sender, Error error) =>
            {
                Console.WriteLine("Error received: " + error.Message);
                return;
            };

            Connections.OnLogin           += OnLogin;
            Connections.OnMessageReceived += OnMessageReceived;
            #endregion

            Connections.Connect(AccountName, playerBot.Password, curRegion, Client.ClientVersion);
        }