コード例 #1
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;
    }