Exemple #1
0
        public void start()
        {
            var firstFull = Convert.ToInt32(DateTime.Now.ToString("HHmmss"));

            while (true)
            {
                if (ProxyList.Count < 3)
                {
                    foreach (var item in ProxyFix)
                    {
                        ProxyList.Enqueue(item);
                    }
                }
                // Program.MessDeals.Enqueue("БОТ[" + ID + "] " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss:fff") + "|проверил предметы!" );
                while (Program.pauseDeals == true)
                {
                    Thread.Sleep(200);
                }
                var res = ClickItem(ITEMS);
                if (res == true)
                {
                    var first = Convert.ToInt32(DateTime.Now.ToString("HHmmss"));
                }
                if (Convert.ToInt32(DateTime.Now.ToString("HHmmss")) - firstFull > 200)
                {
                    bool cheek = false;
                    var  dt    = DataTa.GetTable();
                    foreach (DataRow item in dt.Rows)
                    {
                        cheek = true;
                        var s = item.ItemArray;
                        if (s[0].ToString() == Properties.Settings.Default.name && s[1].ToString() == Properties.Settings.Default.Deals)
                        {
                            if (s[3].ToString() != Properties.Settings.Default.DealsVersion)
                            {
                                MessageBox.Show("Версия ПО устарела");
                                Application.Exit();
                            }
                            Program.sleepIDeals = Convert.ToInt32(s[2].ToString());
                        }
                    }
                    if (cheek == false)
                    {
                        MessageBox.Show("Лицензия не активная.");
                        Application.Exit();
                    }
                    firstFull = Convert.ToInt32(DateTime.Now.ToString("HHmmss"));
                    // RefreshBotInventory();
                    Program.MessDeals.Enqueue("БОТ[" + ID + "] " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss:fff") + "|" + "{Правило 200сек.}Обновил инвентари!");
                }
                Thread.Sleep(Program.sleepMDeals);
            }
        }
Exemple #2
0
        public void start()
        {
            var firstFull = Convert.ToInt32(DateTime.Now.ToString("HHmmss"));

            while (true)
            {
                try
                {
                    while (Program.pauseLoot == true)
                    {
                        Thread.Sleep(200);
                    }
                    Program.MessLoot.Enqueue("БОТ[" + ID + "] " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss:fff") + "|" + "Завершил загрузку предметов.");
                    var res = ClickItem(driver.PageSource);
                    if (res == true)
                    {
                        var first = Convert.ToInt32(DateTime.Now.ToString("HHmmss"));
                    }
                    if (Convert.ToInt32(DateTime.Now.ToString("HHmmss")) - firstFull > 200)
                    {
                        bool cheek = false;
                        var  dt    = DataTa.GetTable();
                        foreach (DataRow item in dt.Rows)
                        {
                            var s = item.ItemArray;
                            if (s[0].ToString() == Properties.Settings.Default.name && s[1].ToString() == Properties.Settings.Default.lootfarm)
                            {
                                cheek = true;
                                if (s[3].ToString() != Properties.Settings.Default.lootfarmVersion)
                                {
                                    MessageBox.Show("Версия ПО устарела");
                                    Application.Exit();
                                }
                                Program.sleepILoot = Convert.ToInt32(s[2].ToString());
                            }
                        }
                        if (cheek == false)
                        {
                            MessageBox.Show("Лицензия не активная.");
                            Application.Exit();
                        }
                        firstFull = Convert.ToInt32(DateTime.Now.ToString("HHmmss"));
                        RefreshBotInventory();
                        Program.MessLoot.Enqueue("БОТ[" + ID + "] " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss:fff") + "|" + "{Правило 200сек.}Обновил инвентари!");
                    }
                    Thread.Sleep(Program.sleepMSecondLoot);
                }
                catch (Exception)
                {
                }
                //Program.MessLoot.Enqueue("БОТ[" + ID + "] " + "--------------------------------");
            }
        }
Exemple #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            bool chek         = false;
            var  dt           = DataTa.GetTable();
            bool checkcsMoney = false;
            bool checkcsloot  = false;
            bool checkcstrade = false;
            bool checkcstsf   = false;
            bool checkcdeals  = false;

            foreach (DataRow item in dt.Rows)
            {
                var s = item.ItemArray;
                if (s[0].ToString() == textBox1.Text)
                {
                    if (s[4].ToString() == "https://cs.money/ru")
                    {
                        checkcsMoney = true;
                        Properties.Settings.Default.csmoney = s[1].ToString();
                        Properties.Settings.Default.name    = textBox1.Text;
                        Properties.Settings.Default.Save();
                        if (s[3].ToString() != Properties.Settings.Default.csmoneyVersion)
                        {
                            MessageBox.Show("Версия ПО устарела");
                            Application.Exit();
                        }
                    }
                    if (s[4].ToString() == "https://loot.farm")
                    {
                        checkcsloot = true;
                        Properties.Settings.Default.lootfarm = s[1].ToString();
                        Properties.Settings.Default.name     = textBox1.Text;
                        Properties.Settings.Default.Save();
                        if (s[3].ToString() != Properties.Settings.Default.lootfarmVersion)
                        {
                            MessageBox.Show("Версия ПО устарела");
                            Application.Exit();
                        }
                    }
                    if (s[4].ToString() == "https://cstrade.gg")
                    {
                        checkcstrade = true;
                        Properties.Settings.Default.CsTrade = s[1].ToString();
                        Properties.Settings.Default.name    = textBox1.Text;
                        Properties.Settings.Default.Save();
                        if (s[3].ToString() != Properties.Settings.Default.CsTradeVersion)
                        {
                            MessageBox.Show("Версия ПО устарела");
                            Application.Exit();
                        }
                    }
                    if (s[4].ToString() == "https://tradeskinsfast.com/")
                    {
                        checkcstsf = true;
                        Properties.Settings.Default.CsTSF = s[1].ToString();
                        Properties.Settings.Default.name  = textBox1.Text;
                        Properties.Settings.Default.Save();
                        if (s[3].ToString() != Properties.Settings.Default.CsTSFVersion)
                        {
                            MessageBox.Show("Версия ПО устарела");
                            Application.Exit();
                        }
                    }
                    if (s[4].ToString() == "https://ru.cs.deals/")
                    {
                        checkcdeals = true;
                        Properties.Settings.Default.Deals = s[1].ToString();
                        Properties.Settings.Default.name  = textBox1.Text;
                        Properties.Settings.Default.Save();
                        if (s[3].ToString() != Properties.Settings.Default.DealsVersion)
                        {
                            MessageBox.Show("Версия ПО устарела");
                            Application.Exit();
                        }
                    }
                    //Program.sleepILoot = Convert.ToInt32(s[2].ToString());
                    chek = true;
                }
            }
            if (checkcsloot == false)
            {
                Properties.Settings.Default.lootfarm = "";
                Properties.Settings.Default.Save();
            }
            if (checkcsMoney == false)
            {
                Properties.Settings.Default.csmoney = "";
                Properties.Settings.Default.Save();
            }
            if (checkcstrade == false)
            {
                Properties.Settings.Default.CsTrade = "";
                Properties.Settings.Default.Save();
            }
            if (checkcstsf == false)
            {
                Properties.Settings.Default.CsTSF = "";
                Properties.Settings.Default.Save();
            }
            if (checkcdeals == false)
            {
                Properties.Settings.Default.Deals = "";
                Properties.Settings.Default.Save();
            }
            if (chek == false)
            {
                MessageBox.Show("Программа не лицензированная");
                Application.Exit();
            }
            else
            {
                Form1 f1 = new Form1(); f1.Show(); this.Hide();
            }
        }