Example #1
0
        public void FairyEnchancementThead()
        {
            IsRun = true;
            FairyItem FFE = SelectFairyForEnchance();

            if (FFE.id == 0)
            {
                return;
            }
            Thread.Sleep(1000);
            FairyItem F1 = GetEquiped();

            while (LevelUpForSpirit())
            {
                Thread.Sleep(2200);
                FairyItem F2 = GetEquiped();
                if (F2.P1 > F1.P1)
                {
                    RAS.Add(F2.P1 - F1.P1);
                    break;
                }
            }
            Thread.Sleep(2000);
            FairyItem FF = GetEquiped();

            if (!FF.IsGood() && FF.lvl < 100)
            {
                Detach();
            }
            FairyEnchancementThead();
            THH.SelfStop("FET:" + CHR.Name);
            IsRun = false;
        }
Example #2
0
        public Boolean LevelUpForSpirit()
        {
            FairyItem FI = GetEquiped();

            if (!FI.IsGood())
            {
                return(false);
            }
            int    DSU = (int)((double)Level.EXP[FI.lvl] * 0.4 / (FI.lvl < 11 ? 0.5 : Math.Round((double)FI.lvl / (double)CHR.LVL, 2) * 5));
            Packet P   = new Packet(CHR.HNDL, "71-00-00-00-00-00-01");

            P.Copy(DSU, 2, 4);
            P.Send();
            return(true);
        }