Exemple #1
0
        protected override void CombatRoutine(GUnit Cible)
        {
            Cible.Target();
            deplacement(Cible);
            CastSpell("Attaque auto");
            int i = 0;

            //SendConsole("------", ConsoleLvl.High);
            //  showTargetlist();
            while (Cible.IsAlive && localPlayer.IsAlive)
            {
                if (BreakCurActionB == true)
                {
                    BreakCurActionB = false;
                    break;
                }
                LuaVM.DoString(LuaHelp.AttackingTarget);

                Repositionnement(Cible);

                Thread.Sleep(200);
                if (!Cible.inCombat || !localPlayer.inCombat)
                {
                    Cible.Target();
                    Thread.Sleep(100);
                    CastSpell("Attaque auto");
                }
                i++;
                TargetList.Sort();
            }
            //showTargetlist();
            // SendConsole("Something stopped : " + (TargetList[0].Target == Cible).ToString() + " " + i.ToString(), ConsoleLvl.High);
        }
Exemple #2
0
        protected override void CombatRoutine(GUnit Cible)
        {
            if (waitTankPull)
            {
                if (BotHelper.CombatTime(Cible) < TimeSpan.FromMilliseconds(1000))
                {
                    // combat vien juste de commencer
                    Thread.Sleep(timeToWaitPull);
                }
            }

            while (Cible.IsAlive && localPlayer.IsAlive)
            {
                if (BreakCurActionB == true)
                {
                    BreakCurActionB = false;
                    break;
                }
                LuaVM.DoString(LuaHelp.AttackingTarget);

                Repositionnement(Cible);
                if (!Cible.inCombat || !localPlayer.inCombat)
                {
                    Cible.Target();
                    Thread.Sleep(100);
                }
                Thread.Sleep(200);

                TargetList.Sort();
            }
        }
Exemple #3
0
        protected override void HealRoutine(GUnit Cible)
        {
            Cible.Target();

            while (Cible.Health != 1.0)
            {
                if (BreakCurActionB == true)
                {
                    BreakCurActionB = false;
                    break;
                }
                LuaVM.DoString(LuaHelp.HealingTarget);
                Thread.Sleep(200);
            }
        }
Exemple #4
0
        protected override void CombatRoutine(GUnit Cible)
        {
            while (Cible.IsAlive && localPlayer.IsAlive)
            {
                if (BreakCurActionB == true)
                {
                    BreakCurActionB = false;
                    break;
                }
                LuaVM.DoString(LuaHelp.AttackingTarget);

                Repositionnement(Cible);
                if (!Cible.inCombat || !localPlayer.inCombat)
                {
                    Cible.Target();
                    Thread.Sleep(100);
                }
                Thread.Sleep(200);

                TargetList.Sort();
            }
        }