Exemplo n.º 1
0
        internal static void HealOrCureSelfChiva()
        {
            Spell s = null;

            s = Get(20, World.Player.Poisoned ? 1 : 2);

            if (RazorEnhanced.Settings.General.ReadBool("BlockChivalryHealCheckBox"))
            {
                if (World.Player.Hits < World.Player.HitsMax || World.Player.Poisoned)
                {
                    if (s != null)
                    {
                        if (World.Player.Poisoned || World.Player.Hits < World.Player.HitsMax)
                        {
                            Targeting.TargetSelf(true);
                        }
                        Assistant.Client.Instance.SendToServer(new CastSpellFromMacro((ushort)s.GetID()));
                        s.Cast();
                    }
                }
            }
            else
            {
                if (s != null)
                {
                    if (World.Player.Poisoned || World.Player.Hits < World.Player.HitsMax)
                    {
                        Targeting.TargetSelf(true);
                    }
                    Assistant.Client.Instance.SendToServer(new CastSpellFromMacro((ushort)s.GetID()));
                    s.Cast();
                }
            }
        }
Exemplo n.º 2
0
        internal static void MiniHealOrCureSelf()
        {
            Spell s = null;

            s = World.Player.Poisoned ? Get(2, 3) : Get(1, 4);

            if (RazorEnhanced.Settings.General.ReadBool("BlockMiniHealCheckBox"))
            {
                if (World.Player.Hits < World.Player.HitsMax || World.Player.Poisoned)
                {
                    if (s != null)
                    {
                        if (World.Player.Poisoned || World.Player.Hits < World.Player.HitsMax)
                        {
                            Targeting.TargetSelf(true);
                        }
                        ClientCommunication.SendToServer(new CastSpellFromMacro((ushort)s.GetID()));
                        s.Cast();
                    }
                }
            }
            else
            {
                if (s != null)
                {
                    if (World.Player.Poisoned || World.Player.Hits < World.Player.HitsMax)
                    {
                        Targeting.TargetSelf(true);
                    }
                    ClientCommunication.SendToServer(new CastSpellFromMacro((ushort)s.GetID()));
                    s.Cast();
                }
            }
        }
Exemplo n.º 3
0
        public static void MiniHealOrCureSelf()
        {
            Spell s = null;

            if (!ClientCommunication.AllowBit(FeatureBit.BlockHealPoisoned))
            {
                s = Get(1, 4);                   // mini heal
            }
            else
            {
                if (World.Player.Poisoned)
                {
                    s = Get(2, 3);                       // cure
                }
                else
                {
                    s = Get(1, 4);                       // mini heal
                }
            }

            if (s != null)
            {
                if (World.Player.Poisoned || World.Player.Hits < World.Player.HitsMax)
                {
                    Targeting.TargetSelf(true);
                }
                ClientCommunication.SendToServer(new CastSpellFromMacro((ushort)s.GetID()));
                s.Cast();
            }
        }
Exemplo n.º 4
0
        internal static void HealOrCureSelf()
        {
            Spell s = null;

            if (World.Player.Poisoned)
            {
                s = Get(2, 3);                 // cure
            }
            else if (World.Player.Hits + 2 < World.Player.HitsMax)
            {
                if (World.Player.Hits + 30 < World.Player.HitsMax && World.Player.Mana >= 12)
                {
                    s = Get(4, 5);                     // greater heal
                }
                else
                {
                    s = Get(1, 4);                     // mini heal
                }
            }
            else
            {
                if (World.Player.Mana >= 12)
                {
                    s = Get(4, 5);                     // greater heal
                }
                else
                {
                    s = Get(1, 4);                     // mini heal
                }
            }

            if (RazorEnhanced.Settings.General.ReadBool("BlockBigHealCheckBox"))
            {
                if (World.Player.Hits < World.Player.HitsMax || World.Player.Poisoned)
                {
                    if (s != null)
                    {
                        if (World.Player.Poisoned || World.Player.Hits < World.Player.HitsMax)
                        {
                            Targeting.TargetSelf(true);
                        }
                        Assistant.Client.Instance.SendToServer(new CastSpellFromMacro((ushort)s.GetID()));
                        s.Cast();
                    }
                }
            }
            else
            {
                if (s != null)
                {
                    if (World.Player.Poisoned || World.Player.Hits < World.Player.HitsMax)
                    {
                        Targeting.TargetSelf(true);
                    }
                    Assistant.Client.Instance.SendToServer(new CastSpellFromMacro((ushort)s.GetID()));
                    s.Cast();
                }
            }
        }
Exemplo n.º 5
0
        public static void HealOrCureSelf()
        {
            Spell s = null;

            if (!Client.Instance.AllowBit(FeatureBit.BlockHealPoisoned))
            {
                if (World.Player.Hits + 30 < World.Player.HitsMax && World.Player.Mana >= 12)
                {
                    s = Get(4, 5); // greater heal
                }
                else
                {
                    s = Get(1, 4); // mini heal
                }
            }
            else
            {
                if (World.Player.Poisoned && Client.Instance.AllowBit(FeatureBit.BlockHealPoisoned))
                {
                    s = Get(2, 3); // cure
                }
                else if (World.Player.Hits + 2 < World.Player.HitsMax)
                {
                    if (World.Player.Hits + 30 < World.Player.HitsMax && World.Player.Mana >= 12)
                    {
                        s = Get(4, 5); // greater heal
                    }
                    else
                    {
                        s = Get(1, 4); // mini heal
                    }
                }
                else
                {
                    if (World.Player.Mana >= 12)
                    {
                        s = Get(4, 5); // greater heal
                    }
                    else
                    {
                        s = Get(1, 4); // mini heal
                    }
                }
            }

            if (s != null)
            {
                if (World.Player.Poisoned || World.Player.Hits < World.Player.HitsMax)
                {
                    Targeting.TargetSelf(true);
                }
                Client.Instance.SendToServer(new CastSpellFromMacro((ushort)s.GetID()));
                s.Cast();
            }
        }
Exemplo n.º 6
0
        public static void HealOrCureSelf()
        {
            Spell s = null;

            if (!ClientCommunication.AllowBit(FeatureBit.BlockHealPoisoned))
            {
                if (World.Player.Hits + 30 < World.Player.HitsMax && World.Player.Mana >= 12)
                {
                    s = Get(4, 5);                       // greater heal
                }
                else
                {
                    s = Get(1, 4);                       // mini heal
                }
            }
            else
            {
                if (World.Player.Poisoned && ClientCommunication.AllowBit(FeatureBit.BlockHealPoisoned))
                {
                    s = Get(2, 3);                       // cure
                }
                else if (World.Player.Hits + 2 < World.Player.HitsMax)
                {
                    if (World.Player.Hits + 30 < World.Player.HitsMax && World.Player.Mana >= 12)
                    {
                        s = Get(4, 5);                           // greater heal
                    }
                    else
                    {
                        s = Get(1, 4);                           // mini heal
                    }
                }
                else
                {
                    if (World.Player.Mana >= 12)
                    {
                        s = Get(4, 5);                           // greater heal
                    }
                    else
                    {
                        s = Get(1, 4);                           // mini heal
                    }
                }
            }

            if (s != null)
            {
                if (World.Player.Poisoned || World.Player.Hits < World.Player.HitsMax)
                {
                    Targeting.TargetSelf(true);
                }
                s.Cast(s.GetID());
            }
        }