public void ReadBotConf()
        {
            switch (_ahbot.Read("AhbotConf", "AuctionHouseBot.Seller.Enabled"))
            {
            case "1":
                cbAHbot.Text = "Enabled";
                break;

            case "0":
                cbAHbot.Text = "Disabled";
                break;
            }

            switch (_aiplayerbot.Read("AiPlayerbotConf", "AiPlayerbot.Enabled"))
            {
            case "1":
                cbBots.Text = "Enabled";
                break;

            case "0":
                cbBots.Text = "Disabled";
                break;
            }
            txbMinbot.Text      = _aiplayerbot.Read("AiPlayerbotConf", "AiPlayerbot.MinRandomBots");
            txbMaxBot.Text      = _aiplayerbot.Read("AiPlayerbotConf", "AiPlayerbot.MaxRandomBots");
            txbMinBotInter.Text = _aiplayerbot.Read("AiPlayerbotConf", "AiPlayerbot.MinRandomBotsPerInterval");
            txbMaxBotInter.Text = _aiplayerbot.Read("AiPlayerbotConf", "AiPlayerbot.MaxRandomBotsPerInterval");
            txbBotAccount.Text  = _aiplayerbot.Read("AiPlayerbotConf", "AiPlayerbot.RandomBotAccountCount");
            txbUpdateInter.Text = _aiplayerbot.Read("AiPlayerbotConf", "AiPlayerbot.RandomBotUpdateInterval");
            txbMinLevel.Text    = _aiplayerbot.Read("AiPlayerbotConf", "AiPlayerbot.RandomBotMinLevel");
            txbMaxLevel.Text    = _aiplayerbot.Read("AiPlayerbotConf", "AiPlayerbot.RandomBotMaxLevel");

            if (txbMaxLevel.Text.Contains("(ignored"))
            {
                string[] a = txbMaxLevel.Text.Split('(');
                txbMaxLevel.Text = a[0].Trim();
            }

            switch (_aiplayerbot.Read("AiPlayerbotConf", "AiPlayerbot.DeleteRandomBotAccounts"))
            {
            case "1":
                cbDel.Checked = true;
                break;

            case "2":
                cbDel.Checked = true;
                break;
            }

            switch (_aiplayerbot.Read("AiPlayerbotConf", "AiPlayerbot.RandomBotJoinLfg"))
            {
            case "1":
                cbJoin.Checked = true;
                break;

            case "0":
                cbJoin.Checked = false;
                break;
            }

            switch (_aiplayerbot.Read("AiPlayerbotConf", "AiPlayerbot.RandomBotLoginAtStartup"))
            {
            case "1":
                cbRndBotLgn.Checked = true;
                break;

            case "0":
                cbRndBotLgn.Checked = false;
                break;
            }

            _maps = _aiplayerbot.Read("AiPlayerbotConf", "AiPlayerbot.RandomBotMaps");
            _arr1 = _maps.Split(',');

            if (_arr1.Contains("0"))
            {
                cbEastern.Checked = true;
            }

            if (_arr1.Contains("1"))
            {
                cbKalimdor.Checked = true;
            }

            if (_arr1.Contains("530"))
            {
                cbOutland.Checked = true;
            }

            if (_arr1.Contains("571"))
            {
                cbNorthrend.Checked = true;
            }
        }
Beispiel #2
0
        public void ReadiniClassic()
        {
            switch (MyIni.Read("mangosd.CONF", "AllFlightPaths"))
            {
            case "1":
                cbPaths.Text = "Enabled";
                break;

            case "0":
                cbPaths.Text = "Disabled";
                break;
            }

            txbLevel.Text       = MyIni.Read("MangosdConf", "StartPlayerLevel");
            txbMoney.Text       = MyIni.Read("MangosdConf", "StartPlayerMoney");
            txbHonor.Text       = MyIni.Read("MangosdConf", "StartHonorPoints");
            txbArena.Text       = MyIni.Read("MangosdConf", "StartArenaPoints");
            txbPoor.Text        = MyIni.Read("MangosdConf", "Rate.Drop.Item.Poor");
            txbNormal.Text      = MyIni.Read("MangosdConf", "Rate.Drop.Item.Normal");
            txbUncommon.Text    = MyIni.Read("MangosdConf", "Rate.Drop.Item.Uncommon");
            txbRare.Text        = MyIni.Read("MangosdConf", "Rate.Drop.Item.Rare");
            txbEpic.Text        = MyIni.Read("MangosdConf", "Rate.Drop.Item.Epic");
            txbLegendary.Text   = MyIni.Read("MangosdConf", "Rate.Drop.Item.Legendary");
            txbArtifact.Text    = MyIni.Read("MangosdConf", "Rate.Drop.Item.Artifact");
            txbReferenced.Text  = MyIni.Read("MangosdConf", "Rate.Drop.Item.Referenced");
            txbMoneyRate.Text   = MyIni.Read("MangosdConf", "Rate.Drop.Money");
            txbKillRate.Text    = MyIni.Read("MangosdConf", "Rate.XP.Kill");
            txbQuestRate.Text   = MyIni.Read("MangosdConf", "Rate.XP.Quest");
            txbExploreRate.Text = MyIni.Read("MangosdConf", "Rate.XP.Explore");
            txbHonorRate.Text   = MyIni.Read("MangosdConf", "Rate.Honor");
            txbTalentRate.Text  = MyIni.Read("MangosdConf", "Rate.Talent");
        }