Exemplo n.º 1
0
        public void FairyEnchancementThead()
        {
            IsRun = true;
            ItemFairy FFE = SelectFairyForEnchance();

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

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

            if (!FF.IsGood() && FF.lvl < 100)
            {
                Detach();
            }
            FairyEnchancementThead();
            THH.SelfStop("FET:" + CHR.Name);
            IsRun = false;
        }
Exemplo n.º 2
0
        public Boolean LevelUpForSpirit()
        {
            ItemFairy 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.GetVar("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);
        }