예제 #1
0
        private void BB_RUN_Click(object sender, EventArgs e)
        {
            BeastFactory BF = Client.CC.CHR.GetClass <BeastFactory>();

            if (BB_RUN.Text.Equals("Запустить"))
            {
                BF.OpenBags    = OBCB.Checked;
                BF.SkipBattles = SBCB.Checked;
                try { BF.PointLimit = Int32.Parse(PointLimit.Text); } catch { }
                BF.RunBeastBattle();
                BB_RUN.Text = "Остановить";
            }
            else
            {
                BF.StopBeastBattle();
                BB_RUN.Text = "Запустить";
            }
        }
예제 #2
0
        private void TEST_Click(object sender, EventArgs e)
        {
            BeastFactory MBF = Client.CC.CHR.GetClass <BeastFactory>();

            LTB.Clear();
            LTB.AppendText("[======= RUN TEST! =======]\r\n");
            //Client.CC.CHR.MBF.OpenBattle();
            MBF.LoadMine();
            MBF.LoadEnemy();
            Beast[] BB = MBF.AnalizeEnemy();
            LTB.AppendText("[GamesRemain    " + MBF.GamesRemain + "   =======]\r\n");
            LTB.AppendText("[Points         " + MBF.Points + "    =======]\r\n");
            LTB.AppendText("[Reward         " + MBF.Reward + "    =======]\r\n");
            LTB.AppendText("[======= MY! =======]\r\n");
            foreach (Beast b in MBF.MY.Values)
            {
                LTB.AppendText("ID:" + b.ID + "\r\n");
                LTB.AppendText("IID:" + b.ItemId + "\r\n");
                LTB.AppendText("ID2:" + b.ID2 + "\r\n");
                LTB.AppendText("Name:" + b.Name + "\r\n");
                LTB.AppendText("Power:" + b.Power + "\r\n");
                LTB.AppendText("LVL:" + b.Level + "\r\n");
                LTB.AppendText("Class:" + b.Class + "\r\n");
                LTB.AppendText("ELEMENTS:" + b.Element + "\r\n");
                LTB.AppendText("ENEMY:" + b.Enemies + "\r\n");
                LTB.AppendText("IMPROVE:" + b.NeedImprove + "\r\n");
                LTB.AppendText("DAMAGE_ANAL:" + b.DAR + "\r\n");
                LTB.AppendText("[========================]\r\n");
            }
            LTB.AppendText("[======= ENEMY! =======]\r\n");
            foreach (Beast b in MBF.ENEMY.Values)
            {
                LTB.AppendText("ID:" + b.ID + "\r\n");
                LTB.AppendText("Name:" + b.Name + "\r\n");
                LTB.AppendText("Power:" + b.Power + "\r\n");
                LTB.AppendText("LVL:" + b.Level + "\r\n");
                LTB.AppendText("Class:" + b.Class + "\r\n");
                LTB.AppendText("ELEMENTS:" + b.Element + "\r\n");
                LTB.AppendText("ENEMY:" + b.Enemies + "\r\n");
                LTB.AppendText("[========================]\r\n");
            }
            LTB.AppendText("[======= My BEST =======]\r\n");
            foreach (Beast b in BB)
            {
                LTB.AppendText("ID:" + b.ID + "\r\n");
                LTB.AppendText("IID:" + b.ItemId + "\r\n");
                LTB.AppendText("ID2:" + b.ID2 + "\r\n");
                LTB.AppendText("Name:" + b.Name + "\r\n");
                LTB.AppendText("Power:" + b.Power + "\r\n");
                LTB.AppendText("LVL:" + b.Level + "\r\n");
                LTB.AppendText("Class:" + b.Class + "\r\n");
                LTB.AppendText("ELEMENTS:" + b.Element + "\r\n");
                LTB.AppendText("ENEMY:" + b.Enemies + "\r\n");
                LTB.AppendText("IMPROVE:" + b.NeedImprove + "\r\n");
                LTB.AppendText("DAMAGE_ANAL:" + b.DAR + "\r\n");
                LTB.AppendText("[========================]\r\n");
            }
            LTB.AppendText("[======= INVENTARY! =======]\r\n");
            foreach (ItemBeast bi in MBF.BIL.Values)
            {
                LTB.AppendText("ID:" + bi.id + "\r\n");
                LTB.AppendText("Count:" + bi.count + "\r\n");
                LTB.AppendText("INCUBE:" + bi.NeedIncube + "\r\n");
                LTB.AppendText("[========================]\r\n");
            }
        }