Esempio n. 1
0
 private bool needRune()
 {
     return(MyHelpers.spellCharges(RuneofPower.Name) > 0 &&
            (MyHelpers.haveBuff(MemoryofLucidDreams.Name) || (MyHelpers.GetSpellCooldown(Combustion.Name) > 10 && MyHelpers.spellCharges(FireBlast.Name) == 0)) &&
            !MyHelpers.haveBuff(RuneofPower.Name) &&
            !MyHelpers.haveBuff(Combustion.Name) &&
            RuneofPower.IsSpellUsable &&
            ObjectManager.Me.SpeedMoving == 0 &&
            (MyHelpers.haveBuff(MemoryofLucidDreams.Name)
             ||
             ((MyHelpers.spellCharges(RuneofPower.Name) == 2) ||
              (MyHelpers.spellCharges(RuneofPower.Name) == 1 &&
               MyHelpers.GetSpellCooldownCharges(RuneofPower.Name) + 10 < MyHelpers.GetSpellCooldown(Combustion.Name)))));
 }
Esempio n. 2
0
    public void Damage()
    {
        if (Meteor.IsSpellUsable &&
            MyHelpers.haveBuff(RuneofPower.Name) &&
            (MyHelpers.haveBuffStack("Blaster Master") == 3 || (!MyHelpers.haveBuff(Combustion.Name) || MyHelpers.spellCharges(FireBlast.Name) == 0)) &&
            MyHelpers.getTargetDistance() <= 40.0f
            )
        {
            MyHelpers.castSpell(Meteor.Name);
            ClickOnTerrain.Pulse(ObjectManager.Target.Position);

            return;
        }
        if (MyHelpers.haveBuff("Hot Streak!") && !buffTime)
        {
            while (MyHelpers.haveBuff(Combustion.Name))
            {
                if (MyHelpers.haveBuff("Hot Streak!"))
                {
                    Pyroblast.Launch();
                    Thread.Sleep(200);
                    if (MyHelpers.spellCharges(FireBlast.Name) == 0)
                    {
                        Thread.Sleep(200);
                    }

                    canBlast = true;
                    continue;
                }
                if (!ObjectManager.Me.IsCast && MyHelpers.spellCharges(FireBlast.Name) > 0 && MyHelpers.haveBuff("Heating Up"))
                {
                    canBlast = false;
                    MyHelpers.castSpell(FireBlast.Name);
                    continue;
                }
                if (MyHelpers.itemIsUsable("Hyperthread Wristwraps") && MyHelpers.spellCharges(FireBlast.Name) == 0 && !ObjectManager.Me.IsCast)
                {
                    ItemsManager.UseItem(ItemsManager.GetIdByName("Hyperthread Wristwraps"));
                    continue;
                }
                if (MyHelpers.spellCharges(FireBlast.Name) == 0 &&
                    !MyHelpers.haveBuff("Hot Streak!") && !ObjectManager.Me.IsCast)
                {
                    Thread.Sleep(400);

                    if (MyHelpers.spellCharges(FireBlast.Name) == 0 &&
                        !MyHelpers.haveBuff("Hot Streak!") && !ObjectManager.Me.IsCast)
                    {
                        MyHelpers.castSpell(Scorch.Name);
                        while (ObjectManager.Me.IsCast)
                        {
                            Thread.Sleep(50);
                        }

                        continue;
                    }
                    else
                    {
                        continue;
                    }
                }
            }
            if (MyHelpers.haveBuff("Hot Streak!"))
            {
                MyHelpers.castSpell(Pyroblast.Name);
            }
            return;
        }
        if (MyHelpers.spellCharges(FireBlast.Name) > 0 && !buffTime && MyHelpers.haveBuff("Heating Up") && !MyHelpers.haveBuff(Combustion.Name))
        {
            MyHelpers.castSpell(FireBlast.Name);
            return;
        }
        if (BlazingBarrier.IsSpellUsable)
        {
            MyHelpers.castSpell(BlazingBarrier.Name);
        }

        if (!MyHelpers.haveBuff("Hot Streak!") &&
            Scorch.IsSpellUsable &&
            !buffTime &&
            (ObjectManager.Me.SpeedMoving > 0 || ObjectManager.Target.HealthPercent < 30))


        {
            Thread.Sleep(100);
            if (!MyHelpers.haveBuff("Hot Streak!") &&
                Scorch.IsSpellUsable &&
                !buffTime &&
                (ObjectManager.Me.SpeedMoving > 0 || ObjectManager.Target.HealthPercent < 30))
            {
                MyHelpers.castSpell(Scorch.Name);
            }

            return;
        }


        if (!MyHelpers.haveBuff("Hot Streak!") && !buffTime && !MyHelpers.haveBuff(Combustion.Name) && !(ObjectManager.Me.SpeedMoving > 0 || ObjectManager.Target.HealthPercent < 30))
        {
            MyHelpers.castSpell(Fireball.Name);
            return;
        }
    }
Esempio n. 3
0
    public void burstPrepare()
    {
        buffTime = true;
        doBurst  = false;

        while (!MyHelpers.itemIsUsable("Azshara's Font of Power") || ObjectManager.Me.IsCast)
        {
            Thread.Sleep(100);
        }
        while (MyHelpers.itemIsUsable("Azshara's Font of Power"))
        {
            ItemsManager.UseItem(ItemsManager.GetIdByName("Azshara's Font of Power"));
        }

        Thread.Sleep(4020);

        if (!MyHelpers.inCombat())
        {
            if (MyHelpers.itemIsEquiped("Notorious Gladiator's Badge"))
            {
                Thread.Sleep(13000);
            }

            if (!MyHelpers.haveBuff("Hot Streak!") && !MyHelpers.haveBuff("Heating Up"))
            {
                MyHelpers.castSpell(Fireball.Name);
                Thread.Sleep(2300);
            }
        }
        if (MyHelpers.itemIsEquiped("Notorious Gladiator's Badge"))
        {
            while (!MyHelpers.itemIsUsable("Notorious Gladiator's Badge"))
            {
                if (MyHelpers.inCombat())
                {
                    if (ObjectManager.Target.HealthPercent < 30 || ObjectManager.Me.SpeedMoving > 0)
                    {
                        if (!MyHelpers.haveBuff("Hot Streak!") &&
                            Scorch.IsSpellUsable &&
                            (ObjectManager.Me.SpeedMoving > 0 || ObjectManager.Target.HealthPercent < 30))


                        {
                            Thread.Sleep(100);
                            if (!MyHelpers.haveBuff("Hot Streak!") &&
                                Scorch.IsSpellUsable &&
                                (ObjectManager.Me.SpeedMoving > 0 || ObjectManager.Target.HealthPercent < 30))
                            {
                                MyHelpers.castSpell(Scorch.Name);
                            }

                            continue;
                        }
                        if (ObjectManager.Target.HealthPercent < 30 && MyHelpers.haveBuff("Hot Streak!"))
                        {
                            MyHelpers.castSpell(Pyroblast.Name);
                            continue;
                        }
                    }
                    else
                    {
                        if (MyHelpers.haveBuff("Hot Streak!") && MyHelpers.BuffTimeLeft("Hot Streak!") < 10)
                        {
                            MyHelpers.castSpell(Pyroblast.Name);
                            continue;
                        }
                        else if (MyHelpers.spellCharges(FireBlast.Name) > 0 && MyHelpers.haveBuff("Heating Up"))
                        {
                            MyHelpers.castSpell(FireBlast.Name);
                            continue;
                        }
                        else
                        {
                            MyHelpers.castSpell(Fireball.Name);
                            continue;
                        }
                    }
                }
            }
            ;

            while (!MyHelpers.itemIsUsable("Notorious Gladiator's Badge") || ObjectManager.Me.IsCast)
            {
                Thread.Sleep(10);
            }
            while (MyHelpers.itemIsUsable("Notorious Gladiator's Badge"))
            {
                ItemsManager.UseItem(ItemsManager.GetIdByName("Notorious Gladiator's Badge"));
            }
        }

        if (!MyHelpers.haveBuff("Hot Streak!") && !MyHelpers.haveBuff("Heating Up"))
        {
            needBlast = true;
        }

        while (!MemoryofLucidDreams.IsSpellUsable || ObjectManager.Me.IsCast)
        {
            Thread.Sleep(10);
        }
        while (!MyHelpers.haveBuff(MemoryofLucidDreams.Name))
        {
            MyHelpers.castSpell(MemoryofLucidDreams.Name);
        }

        Thread.Sleep(100);

        if (!MyHelpers.haveBuff("Hot Streak!"))
        {
            MyHelpers.castSpell(FireBlast.Name);
        }


        while (Berserking.IsSpellUsable)
        {
            MyHelpers.castSpell(Berserking.Name);
        }



        while (!RuneofPower.IsSpellUsable)
        {
            Thread.Sleep(10);
        }
        while (!MyHelpers.haveBuff(RuneofPower.Name))
        {
            MyHelpers.castSpell(RuneofPower.Name);
        }



        while (!Meteor.IsSpellUsable || ObjectManager.Me.IsCast)
        {
            Thread.Sleep(10);
        }
        while (Meteor.IsSpellUsable)
        {
            MyHelpers.castSpell(Meteor.Name);
            ClickOnTerrain.Pulse(ObjectManager.Target.Position);
        }


        while (!Combustion.IsSpellUsable || ObjectManager.Me.IsCast)
        {
            Thread.Sleep(10);
        }
        while (!MyHelpers.haveBuff(Combustion.Name))
        {
            MyHelpers.castSpell(Combustion.Name);
        }

        if (needBlast && !MyHelpers.haveBuff("Hot Streak!"))
        {
            MyHelpers.castSpell(FireBlast.Name);
        }
        needBlast = false;
        buffTime  = false;
        return;
    }