Example #1
0
        private void initNxtBot()
        {
            MyXML xml = new MyXML(config_path);

            try
            {
                n_nxt_bot_num_runs.Value = Convert.ToDecimal(xml.read(nb_run_number));
            }
            catch { }

            try
            {
                n_nxt_bot_run_delay.Value = Convert.ToDecimal(xml.read(nb_run_delay));
            }
            catch { }

            try
            {
                n_nxt_bot_sleep_time.Value = Convert.ToDecimal(xml.read(nb_rest));
            }
            catch { }

            try
            {
                B_DankCellarBot.active = true;
                g_nxt_bot.Enabled      = B_DankCellarBot.active;
            }
            catch { }

            try
            {
                c_nxt_auto_rep.Checked = Convert.ToBoolean(xml.read(nb_rep));
            }
            catch { }


            try
            {
                c_loot_set.Checked = Convert.ToBoolean(xml.read(loot_set));
            }
            catch { }
            try
            {
                c_loot_legendary.Checked = Convert.ToBoolean(xml.read(loot_legendary));
            }
            catch { }
            try
            {
                c_store_to_stash.Checked = Convert.ToBoolean(xml.read(loot_store_to_stash));
            }
            catch { }
            try
            {
                c_loot_rare.Checked = Convert.ToBoolean(xml.read(loot_rare));
            }
            catch { }

            nxtBot = new B_DankCellarBot();
        }
Example #2
0
        private void initHailiesBot()
        {
            MyXML xml = new MyXML(config_path);

            try
            {
                n_hailiesChest_run_number.Value = Convert.ToDecimal(xml.read(hb_run_number));
            }
            catch { }

            try
            {
                n_hailieRunDalay.Value = Convert.ToDecimal(xml.read(hb_run_delay));
            }
            catch { }

            try
            {
                n_hailie_rest.Value = Convert.ToDecimal(xml.read(hb_rest));
            }
            catch { }

            HailiesChestBot = new B_HailiesChestBot();
        }
Example #3
0
        private void main_Load(object sender, EventArgs e)
        {
            PixelColors.getinstance();
            GameStateChecker.getInstance().start();

            writeToLog(module_name, D3Stuff.getInstance().getModuleName() + " loaded!");

            //load bot options
            MyXML xml = new MyXML(config_path);

            try
            {
                n_restart_delay.Value = Convert.ToDecimal(xml.read(restart_delay));
            }
            catch { }

            try
            {
                n_max_waittime.Value = Convert.ToDecimal(xml.read(max_waittime));
            }
            catch { }
            try
            {
                n_max_d3_restarts.Value = Convert.ToDecimal(xml.read(max_restarts));
            }
            catch { }

            try
            {
                n_start_delay.Value = Convert.ToDecimal(xml.read(start_delay));
            }
            catch { }
            try
            {
                n_login_trys.Value = Convert.ToDecimal(xml.read(login_trys));
            }
            catch { }
            try
            {
                c_demonHunter.Checked = Convert.ToBoolean(xml.read(demon_hunter));
            }
            catch { }
            try
            {
                c_remember_pass.Checked = Convert.ToBoolean(xml.read(remember_pass));
                if (c_remember_pass.Checked)
                {
                    String dec_pass = xml.read(encrypted_pass);

                    for (int i = 0; i < enc_times; i++)
                        dec_pass = Cypher.Decrypt(dec_pass);

                    t_pw.Text = dec_pass;
                }
            }
            catch { }
            try
            {
                Tools.adjust_bot_point.X = Convert.ToInt32(xml.read(adjust_point_x));
                Tools.adjust_bot_point.Y = Convert.ToInt32(xml.read(adjust_point_y));
            }
            catch { }

            //inithealthBot();
            try
            {
                D3InventoryStuff.getInstance();
            }
            catch (Exception ex) { MessageBox.Show(ex.Message); }

            initHailiesBot();
            initNxtBot();
            initLoginBot();

            lvlBot = new B_levelBot();

            r_log.Text += "------------------------------" + Environment.NewLine;

            r_log.SelectionStart = r_log.Text.Length;
            r_log.ScrollToCaret();

            finished_init = true;

            try
            {
                if (xml.read("first_start") == "")
                {
                    MessageBox.Show("You are using this tool for the first time. Please adjust the bots with the \"" + b_adjust_bot.Text + "\" button.");
                    xml.write("first_start", "!");
                }
            }
            catch { }
        }
Example #4
0
        private void initNxtBot()
        {
            MyXML xml = new MyXML(config_path);
            
            try
            {
                n_nxt_bot_num_runs.Value = Convert.ToDecimal(xml.read(nb_run_number));
            }
            catch { }

            try
            {
                n_nxt_bot_run_delay.Value = Convert.ToDecimal(xml.read(nb_run_delay));
            }
            catch { }

            try
            {
                n_nxt_bot_sleep_time.Value = Convert.ToDecimal(xml.read(nb_rest));
            }
            catch { }

            try
            {
                B_DankCellarBot.active = true;
                g_nxt_bot.Enabled = B_DankCellarBot.active;
            }
            catch { }

            try
            {
                c_nxt_auto_rep.Checked = Convert.ToBoolean(xml.read(nb_rep));
            }
            catch { }


            try
            {
                c_loot_set.Checked = Convert.ToBoolean(xml.read(loot_set));
            }
            catch { }
            try
            {
                c_loot_legendary.Checked = Convert.ToBoolean(xml.read(loot_legendary));
            }
            catch { }
            try
            {
                c_store_to_stash.Checked = Convert.ToBoolean(xml.read(loot_store_to_stash));
            }
            catch { }
            try
            {
                c_loot_rare.Checked = Convert.ToBoolean(xml.read(loot_rare));
            }
            catch { }

            nxtBot = new B_DankCellarBot();
        }
Example #5
0
        private void initHailiesBot()
        {
            MyXML xml = new MyXML(config_path);

            try
            {
                n_hailiesChest_run_number.Value = Convert.ToDecimal(xml.read(hb_run_number));
            }
            catch { }

            try
            {
                n_hailieRunDalay.Value = Convert.ToDecimal(xml.read(hb_run_delay));
            }
            catch { }

            try
            {
                n_hailie_rest.Value = Convert.ToDecimal(xml.read(hb_rest));
            }
            catch { }
            
            HailiesChestBot = new B_HailiesChestBot();
        }
Example #6
0
 public void reload()
 {
     try
     {
         MyXML xml = new MyXML(xml_file);
         isInGame_ = xml.read(isInGame_key);
         isloginScreen_ = xml.read(isloginScreen_key);
         isLoadingScreen_ = xml.read(isLoadingScreen_key);
         isDisconnectDienst_ = xml.read(isDisconnectDienst_key);
         isLoginLoading_ = xml.read(isLoginLoading_key);
         isCharScreen_RedEnterGameButton_ = xml.read(isCharScreen_RedEnterGameButton_key);
         isCharScreen_GrayEnterGameButton_ = xml.read(isCharScreen_GrayEnterGameButton_key);
         isInTown_ = xml.read(isInTown_key);
         isInTown2_ = xml.read(isInTown2_key);
         isWPopen_ = xml.read(isWPopen_key);
         isNeedRep1_ = xml.read(isNeedRep1_key);
         isNeedRep2_ = xml.read(isNeedRep2_key);
         isDead_ = xml.read(isDead_key);
         isStashOpen_ = xml.read(isStashOpen_key);
         isInventoryOpen_ = xml.read(isInventoryOpen_key);
     }
     catch (Exception e) { System.Windows.Forms.MessageBox.Show(e.Message); }
 }
 public void reload()
 {
     try
     {
         MyXML xml = new MyXML(xml_file);
         isInGame_           = xml.read(isInGame_key);
         isloginScreen_      = xml.read(isloginScreen_key);
         isLoadingScreen_    = xml.read(isLoadingScreen_key);
         isDisconnectDienst_ = xml.read(isDisconnectDienst_key);
         isLoginLoading_     = xml.read(isLoginLoading_key);
         isCharScreen_RedEnterGameButton_  = xml.read(isCharScreen_RedEnterGameButton_key);
         isCharScreen_GrayEnterGameButton_ = xml.read(isCharScreen_GrayEnterGameButton_key);
         isInTown_        = xml.read(isInTown_key);
         isInTown2_       = xml.read(isInTown2_key);
         isWPopen_        = xml.read(isWPopen_key);
         isNeedRep1_      = xml.read(isNeedRep1_key);
         isNeedRep2_      = xml.read(isNeedRep2_key);
         isDead_          = xml.read(isDead_key);
         isStashOpen_     = xml.read(isStashOpen_key);
         isInventoryOpen_ = xml.read(isInventoryOpen_key);
     }
     catch (Exception e) { System.Windows.Forms.MessageBox.Show(e.Message); }
 }
Example #8
0
        private void main_Load(object sender, EventArgs e)
        {
            PixelColors.getinstance();
            GameStateChecker.getInstance().start();

            writeToLog(module_name, D3Stuff.getInstance().getModuleName() + " loaded!");

            //load bot options
            MyXML xml = new MyXML(config_path);

            try
            {
                n_restart_delay.Value = Convert.ToDecimal(xml.read(restart_delay));
            }
            catch { }

            try
            {
                n_max_waittime.Value = Convert.ToDecimal(xml.read(max_waittime));
            }
            catch { }
            try
            {
                n_max_d3_restarts.Value = Convert.ToDecimal(xml.read(max_restarts));
            }
            catch { }

            try
            {
                n_start_delay.Value = Convert.ToDecimal(xml.read(start_delay));
            }
            catch { }
            try
            {
                n_login_trys.Value = Convert.ToDecimal(xml.read(login_trys));
            }
            catch { }
            try
            {
                c_demonHunter.Checked = Convert.ToBoolean(xml.read(demon_hunter));
            }
            catch { }
            try
            {
                c_remember_pass.Checked = Convert.ToBoolean(xml.read(remember_pass));
                if (c_remember_pass.Checked)
                {
                    String dec_pass = xml.read(encrypted_pass);

                    for (int i = 0; i < enc_times; i++)
                    {
                        dec_pass = Cypher.Decrypt(dec_pass);
                    }

                    t_pw.Text = dec_pass;
                }
            }
            catch { }
            try
            {
                Tools.adjust_bot_point.X = Convert.ToInt32(xml.read(adjust_point_x));
                Tools.adjust_bot_point.Y = Convert.ToInt32(xml.read(adjust_point_y));
            }
            catch { }

            //inithealthBot();
            try
            {
                D3InventoryStuff.getInstance();
            }
            catch (Exception ex) { MessageBox.Show(ex.Message); }

            initHailiesBot();
            initNxtBot();
            initLoginBot();

            lvlBot = new B_levelBot();

            r_log.Text += "------------------------------" + Environment.NewLine;

            r_log.SelectionStart = r_log.Text.Length;
            r_log.ScrollToCaret();

            finished_init = true;

            try
            {
                if (xml.read("first_start") == "")
                {
                    MessageBox.Show("You are using this tool for the first time. Please adjust the bots with the \"" + b_adjust_bot.Text + "\" button.");
                    xml.write("first_start", "!");
                }
            }
            catch { }
        }