public RiotBot(string username, string password, string reg, string path, int threadid, QueueTypes QueueType) { ipath = path; Accountname = username; Password = password; threadID = threadid; queueType = QueueType; region = reg; connection.OnConnect += new LoLConnection.OnConnectHandler(this.connection_OnConnect); connection.OnDisconnect += new LoLConnection.OnDisconnectHandler(this.connection_OnDisconnect); connection.OnError += new LoLConnection.OnErrorHandler(this.connection_OnError); connection.OnLogin += new LoLConnection.OnLoginHandler(this.connection_OnLogin); connection.OnLoginQueueUpdate += new LoLConnection.OnLoginQueueUpdateHandler(this.connection_OnLoginQueueUpdate); connection.OnMessageReceived += new LoLConnection.OnMessageReceivedHandler(this.connection_OnMessageReceived); switch (region) { case "EUW": connection.Connect(username, password, Region.EUW, "4.18.14_08_22_13_33"); break; case "EUNE": connection.Connect(username, password, Region.EUN, "4.18.14_08_22_13_33"); break; case "NA": connection.Connect(username, password, Region.NA, "4.18.14_08_22_13_33"); regionURL = "NA1"; break; case "KR": connection.Connect(username, password, Region.KR, "4.18.14_08_22_13_33"); break; case "BR": connection.Connect(username, password, Region.BR, "4.18.14_08_22_13_33"); break; case "OCE": connection.Connect(username, password, Region.OCE, "4.18.14_08_22_13_33"); break; case "RU": connection.Connect(username, password, Region.RU, "4.18.14_08_22_13_33"); break; case "TR": connection.Connect(username, password, Region.TR, "4.18.14_08_22_13_33"); break; case "LAS": connection.Connect(username, password, Region.LAS, "4.18.14_08_22_13_33"); break; case "LAN": connection.Connect(username, password, Region.LAN, "4.18.14_08_22_13_33"); break; } }
public Smurf(SmurfData _smurf, RotationType rotationType) { info = _smurf; connection.OnConnect += new LoLConnection.OnConnectHandler(connection_OnConnect); connection.OnError += new LoLConnection.OnErrorHandler(connection_OnError); connection.OnMessageReceived += new LoLConnection.OnMessageReceivedHandler(connection_OnMessageReceived); type = rotationType; connection.Connect(info.username, info.password, info.region); }
public OldVoliBot(string username, string password, console _parent, QueueTypes queue) { parent = _parent; ipath = parent.lolPath; Accountname = username; Password = password; queueType = queue; baseRegion = BaseRegion.GetRegion(_parent.region.ToString()); connection.OnConnect += new LoLConnection.OnConnectHandler(connection_OnConnect); connection.OnDisconnect += new LoLConnection.OnDisconnectHandler(connection_OnDisconnect); connection.OnError += new LoLConnection.OnErrorHandler(connection_OnError); connection.OnLogin += new LoLConnection.OnLoginHandler(connection_OnLogin); connection.OnLoginQueueUpdate += new LoLConnection.OnLoginQueueUpdateHandler(connection_OnLoginQueueUpdate); connection.OnMessageReceived += new LoLConnection.OnMessageReceivedHandler(connection_OnMessageReceived); string pass = Regex.Replace(password, @"\s+", ""); connection.Connect(Accountname, pass, baseRegion.PVPRegion, _parent.currentVersion + "." + Config.clientSubVersion); }
public void Connect() { if (!connection.IsConnected()) { connection.Connect(userName, password, region, Properties.Settings.Default.clientVer); } }
public RiotBot(string username, string password, string reg, string path, int threadid, QueueTypes QueueType, int tmp_colanchoi = 999) { ipath = path; Accountname = username; Password = password; threadID = threadid; queueType = QueueType; region = reg; connection.OnConnect += new LoLConnection.OnConnectHandler(this.connection_OnConnect); connection.OnDisconnect += new LoLConnection.OnDisconnectHandler(this.connection_OnDisconnect); connection.OnError += new LoLConnection.OnErrorHandler(this.connection_OnError); connection.OnLogin += new LoLConnection.OnLoginHandler(this.connection_OnLogin); connection.OnLoginQueueUpdate += new LoLConnection.OnLoginQueueUpdateHandler(this.connection_OnLoginQueueUpdate); connection.OnMessageReceived += new LoLConnection.OnMessageReceivedHandler(this.connection_OnMessageReceived); switch (region) { case "TH": connection.Connect(username, password, Region.TH, Program.cversion); break; case "SGMY": connection.Connect(username, password, Region.SGMY, Program.cversion); break; case "TW": connection.Connect(username, password, Region.TW, Program.cversion); break; case "PH": connection.Connect(username, password, Region.PH, Program.cversion); break; case "VN": connection.Connect(username, password, Region.VN, Program.cversion); break; } solanchoi = tmp_colanchoi; }
public AccountManager_TEST(string username, string password, string region) { InitializeComponent(); gifImage = new GifImage(Properties.Resources.table); gifImage.ReverseAtEnd = false; pictureBox1.Image = gifImage.GetFrame(0); timer1.Enabled = true; _connection = new LoLConnection(); _connection.OnLogin += new LoLConnection.OnLoginHandler(connection_OnLogin); _connection.OnError += new LoLConnection.OnErrorHandler(connection_OnError); BaseRegion testRegion = BaseRegion.GetRegion(region); _connection.Connect(username, password, testRegion.PVPRegion, Config.clientSeason + "." + Config.clientSubVersion); }
public async void init(String region, String username, String password) { int startDiff = Convert.ToInt32(startTime - Stopwatch.GetTimestamp()); if (startDiff > 0) { this.updateStatus("Waiting for " + (startDiff / 1000) + " seconds", Accountname); await Task.Delay(startDiff); } if (stopForced) { return; } switch (region) { case "EUW": connection.Connect(username, password, Region.EUW, Program.cversion); break; case "EUNE": connection.Connect(username, password, Region.EUN, Program.cversion); break; case "NA": connection.Connect(username, password, Region.NA, Program.cversion); regionURL = "NA1"; break; case "KR": connection.Connect(username, password, Region.KR, Program.cversion); break; case "BR": connection.Connect(username, password, Region.BR, Program.cversion); break; case "OCE": connection.Connect(username, password, Region.OCE, Program.cversion); break; case "RU": connection.Connect(username, password, Region.RU, Program.cversion); break; case "TR": connection.Connect(username, password, Region.TR, Program.cversion); break; case "LAS": connection.Connect(username, password, Region.LAS, Program.cversion); break; case "LAN": connection.Connect(username, password, Region.LAN, Program.cversion); break; case "TH": connection.Connect(username, password, Region.TH, Program.cversion); break; case "SGMY": connection.Connect(username, password, Region.SGMY, Program.cversion); break; case "TW": connection.Connect(username, password, Region.TW, Program.cversion); break; case "PH": connection.Connect(username, password, Region.PH, Program.cversion); break; case "VN": connection.Connect(username, password, Region.VN, Program.cversion); break; case "ID": connection.Connect(username, password, Region.ID, Program.cversion); break; } }
public async void init(String region, String username, String password) { if (stopForced) { return; } switch (region) { case "EUW": connection.Connect(username, password, LoLLauncher.Region.EUW, clientMask); break; case "EUNE": connection.Connect(username, password, LoLLauncher.Region.EUN, clientMask); break; case "NA": connection.Connect(username, password, LoLLauncher.Region.NA, clientMask); regionURL = "NA1"; break; case "KR": connection.Connect(username, password, LoLLauncher.Region.KR, clientMask); break; case "BR": connection.Connect(username, password, LoLLauncher.Region.BR, clientMask); break; case "OCE": connection.Connect(username, password, LoLLauncher.Region.OCE, clientMask); break; case "RU": connection.Connect(username, password, LoLLauncher.Region.RU, clientMask); break; case "TR": connection.Connect(username, password, LoLLauncher.Region.TR, clientMask); break; case "LAS": connection.Connect(username, password, LoLLauncher.Region.LAS, clientMask); break; case "LAN": connection.Connect(username, password, LoLLauncher.Region.LAN, clientMask); break; case "TH": connection.Connect(username, password, LoLLauncher.Region.TH, clientMask); break; case "SGMY": connection.Connect(username, password, LoLLauncher.Region.SGMY, clientMask); break; case "TW": connection.Connect(username, password, LoLLauncher.Region.TW, clientMask); break; case "PH": connection.Connect(username, password, LoLLauncher.Region.PH, clientMask); break; case "VN": connection.Connect(username, password, LoLLauncher.Region.VN, clientMask); break; case "ID": connection.Connect(username, password, LoLLauncher.Region.ID, clientMask); break; } }
public Program(string username, string password, string region, string path, int threadid, QueueTypes QueueType) { ipath = path; Accountname = username; Password = password; threadID = threadid; queueType = QueueType; regiona = region; connection.OnConnect += new LoLConnection.OnConnectHandler(connection_OnConnect); connection.OnDisconnect += new LoLConnection.OnDisconnectHandler(connection_OnDisconnect); connection.OnError += new LoLConnection.OnErrorHandler(connection_OnError); connection.OnLogin += new LoLConnection.OnLoginHandler(connection_OnLogin); connection.OnLoginQueueUpdate += new LoLConnection.OnLoginQueueUpdateHandler(connection_OnLoginQueueUpdate); connection.OnMessageReceived += new LoLConnection.OnMessageReceivedHandler(connection_OnMessageReceived); switch (region) { case "EUW": connection.Connect(username, password, Region.EUW, "4.21.14_12_08_11_36"); break; case "EUNE": connection.Connect(username, password, Region.EUN, "4.21.14_12_08_11_36"); break; case "BR": connection.Connect(username, password, Region.BR, "4.21.14_12_08_11_36"); break; case "KR": connection.Connect(username, password, Region.KR, "4.21.14_12_08_11_36"); break; case "OCE": connection.Connect(username, password, Region.OCE, "4.21.14_12_08_11_36"); break; case "NA": connection.Connect(username, password, Region.NA, "4.21.14_12_08_11_36"); break; case "TR": connection.Connect(username, password, Region.TR, "4.21.14_12_08_11_36"); break; case "TW": connection.Connect(username, password, Region.TW, "4.21.14_12_08_11_36"); break; case "RU": connection.Connect(username, password, Region.RU, "4.21.14_12_08_11_36"); break; case "LAN": connection.Connect(username, password, Region.LAN, "4.21.14_12_08_11_36"); break; case "LAS": connection.Connect(username, password, Region.LAS, "4.21.14_12_08_11_36"); break; } }
public async void start() { connection.Connect(username, password, region, smurf); }