⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 universel.cs

📁 EBot source for the popular MMORPG World of Warcraft
💻 CS
📖 第 1 页 / 共 4 页
字号:
                MyProject.Forms.TimerForm.Wait500ms.Enabled = true;
                Clavier.SendTextToWoWChat("/cast " + MyProject.Forms.UniverselSettings.HealSpell2.Text);
                func.oldWait(0x3e8);
                while (Operators.ConditionalCompareObjectNotEqual(GameObjects.PlayerCastSpellId(), 0, false))
                {
                    func.oldWait(1);
                }
                func.oldWait(0x5dc);
            }
            if (MyProject.Forms.UniverselSettings.HealActive3.Checked && ((MyProject.Forms.Main.PlayerHealthBar.Value < Conversions.ToDouble(MyProject.Forms.UniverselSettings.HealVie3.Text)) & (MyProject.Forms.Main.PlayerManaBar.Value > Conversions.ToDouble(MyProject.Forms.UniverselSettings.HealMana3.Text))))
            {
                func.logmsg("[COMBAT] Lancement du sort de heal : " + MyProject.Forms.UniverselSettings.HealSpell3.Text);
                while (MyProject.Forms.TimerForm.Wait500ms.Enabled)
                {
                    func.oldWait(1);
                }
                MyProject.Forms.TimerForm.Wait500ms.Enabled = true;
                Clavier.SendTextToWoWChat("/cast " + MyProject.Forms.UniverselSettings.HealSpell3.Text);
                func.oldWait(0x3e8);
                while (Operators.ConditionalCompareObjectNotEqual(GameObjects.PlayerCastSpellId(), 0, false))
                {
                    func.oldWait(1);
                }
                func.oldWait(0x5dc);
            }
            if (MyProject.Forms.UniverselSettings.HealActive4.Checked && ((MyProject.Forms.Main.PlayerHealthBar.Value < Conversions.ToDouble(MyProject.Forms.UniverselSettings.HealVie4.Text)) & (MyProject.Forms.Main.PlayerManaBar.Value > Conversions.ToDouble(MyProject.Forms.UniverselSettings.HealMana4.Text))))
            {
                func.logmsg("[COMBAT] Lancement du sort de heal : " + MyProject.Forms.UniverselSettings.HealSpell4.Text);
                while (MyProject.Forms.TimerForm.Wait500ms.Enabled)
                {
                    func.oldWait(1);
                }
                MyProject.Forms.TimerForm.Wait500ms.Enabled = true;
                Clavier.SendTextToWoWChat("/cast " + MyProject.Forms.UniverselSettings.HealSpell4.Text);
                func.oldWait(0x3e8);
                while (Operators.ConditionalCompareObjectNotEqual(GameObjects.PlayerCastSpellId(), 0, false))
                {
                    func.oldWait(1);
                }
                func.oldWait(0x5dc);
            }
            return 0;
        }

        public static object PreCombat()
        {
            Heal();
            if (MyProject.Forms.UniverselSettings.PreCombatActive1.Checked)
            {
                func.logmsg("[COMBAT] Lancement du sort de Pr\x00e9-Combat : " + MyProject.Forms.UniverselSettings.PreCombatSpell1.Text);
                while (MyProject.Forms.TimerForm.Wait500ms.Enabled)
                {
                    func.oldWait(1);
                }
                MyProject.Forms.TimerForm.Wait500ms.Enabled = true;
                Clavier.SendTextToWoWChat("/cast " + MyProject.Forms.UniverselSettings.PreCombatSpell1.Text);
                func.oldWait(0x3e8);
                while (Operators.ConditionalCompareObjectNotEqual(GameObjects.PlayerCastSpellId(), 0, false))
                {
                    func.oldWait(1);
                }
                func.oldWait(0x5dc);
            }
            Heal();
            if (MyProject.Forms.UniverselSettings.PreCombatActive2.Checked)
            {
                func.logmsg("[COMBAT] Lancement du sort de Pr\x00e9-Combat : " + MyProject.Forms.UniverselSettings.PreCombatSpell2.Text);
                while (MyProject.Forms.TimerForm.Wait500ms.Enabled)
                {
                    func.oldWait(1);
                }
                MyProject.Forms.TimerForm.Wait500ms.Enabled = true;
                Clavier.SendTextToWoWChat("/cast " + MyProject.Forms.UniverselSettings.PreCombatSpell2.Text);
                func.oldWait(0x3e8);
                while (Operators.ConditionalCompareObjectNotEqual(GameObjects.PlayerCastSpellId(), 0, false))
                {
                    func.oldWait(1);
                }
                func.oldWait(0x5dc);
            }
            Heal();
            if (MyProject.Forms.UniverselSettings.PreCombatActive3.Checked)
            {
                func.logmsg("[COMBAT] Lancement du sort de Pr\x00e9-Combat : " + MyProject.Forms.UniverselSettings.PreCombatSpell3.Text);
                while (MyProject.Forms.TimerForm.Wait500ms.Enabled)
                {
                    func.oldWait(1);
                }
                MyProject.Forms.TimerForm.Wait500ms.Enabled = true;
                Clavier.SendTextToWoWChat("/cast " + MyProject.Forms.UniverselSettings.PreCombatSpell3.Text);
                func.oldWait(0x3e8);
                while (Operators.ConditionalCompareObjectNotEqual(GameObjects.PlayerCastSpellId(), 0, false))
                {
                    func.oldWait(1);
                }
                func.oldWait(0x5dc);
            }
            return 0;
        }

        public static object Pull()
        {
            Heal();
            if (MyProject.Forms.UniverselSettings.PullActive1.Checked)
            {
                func.logmsg("[COMBAT] Lancement du sort de pull : " + MyProject.Forms.UniverselSettings.PullSpell1.Text);
                while (MyProject.Forms.TimerForm.Wait500ms.Enabled)
                {
                    func.oldWait(1);
                }
                MyProject.Forms.TimerForm.Wait500ms.Enabled = true;
                Clavier.SendTextToWoWChat("/cast " + MyProject.Forms.UniverselSettings.PullSpell1.Text);
                func.oldWait(0x3e8);
                while (Operators.ConditionalCompareObjectNotEqual(GameObjects.PlayerCastSpellId(), 0, false))
                {
                    func.oldWait(1);
                }
                func.oldWait(0x5dc);
            }
            Heal();
            if (MyProject.Forms.UniverselSettings.PullActive2.Checked)
            {
                func.logmsg("[COMBAT] Lancement du sort de pull : " + MyProject.Forms.UniverselSettings.PullSpell2.Text);
                while (MyProject.Forms.TimerForm.Wait500ms.Enabled)
                {
                    func.oldWait(1);
                }
                MyProject.Forms.TimerForm.Wait500ms.Enabled = true;
                Clavier.SendTextToWoWChat("/cast " + MyProject.Forms.UniverselSettings.PullSpell2.Text);
                func.oldWait(0x3e8);
                while (Operators.ConditionalCompareObjectNotEqual(GameObjects.PlayerCastSpellId(), 0, false))
                {
                    func.oldWait(1);
                }
                func.oldWait(0x5dc);
            }
            Heal();
            if (MyProject.Forms.UniverselSettings.PullActive3.Checked)
            {
                func.logmsg("[COMBAT] Lancement du sort de pull : " + MyProject.Forms.UniverselSettings.PullSpell3.Text);
                while (MyProject.Forms.TimerForm.Wait500ms.Enabled)
                {
                    func.oldWait(1);
                }
                MyProject.Forms.TimerForm.Wait500ms.Enabled = true;
                Clavier.SendTextToWoWChat("/cast " + MyProject.Forms.UniverselSettings.PullSpell3.Text);
                func.oldWait(0x3e8);
                while (Operators.ConditionalCompareObjectNotEqual(GameObjects.PlayerCastSpellId(), 0, false))
                {
                    func.oldWait(1);
                }
                func.oldWait(0x5dc);
            }
            Heal();
            if (MyProject.Forms.UniverselSettings.PullActive4.Checked)
            {
                func.logmsg("[COMBAT] Lancement du sort de pull : " + MyProject.Forms.UniverselSettings.PullSpell4.Text);
                while (MyProject.Forms.TimerForm.Wait500ms.Enabled)
                {
                    func.oldWait(1);
                }
                MyProject.Forms.TimerForm.Wait500ms.Enabled = true;
                Clavier.SendTextToWoWChat("/cast " + MyProject.Forms.UniverselSettings.PullSpell4.Text);
                func.oldWait(0x3e8);
                while (Operators.ConditionalCompareObjectNotEqual(GameObjects.PlayerCastSpellId(), 0, false))
                {
                    func.oldWait(1);
                }
                func.oldWait(0x5dc);
            }
            Heal();
            if (MyProject.Forms.UniverselSettings.PullActive5.Checked)
            {
                func.logmsg("[COMBAT] Lancement du sort de pull : " + MyProject.Forms.UniverselSettings.PullSpell5.Text);
                while (MyProject.Forms.TimerForm.Wait500ms.Enabled)
                {
                    func.oldWait(1);
                }
                MyProject.Forms.TimerForm.Wait500ms.Enabled = true;
                Clavier.SendTextToWoWChat("/cast " + MyProject.Forms.UniverselSettings.PullSpell5.Text);
                func.oldWait(0x3e8);
                while (Operators.ConditionalCompareObjectNotEqual(GameObjects.PlayerCastSpellId(), 0, false))
                {
                    func.oldWait(1);
                }
                func.oldWait(0x5dc);
            }
            Heal();
            if (MyProject.Forms.UniverselSettings.PullActive6.Checked)
            {
                func.logmsg("[COMBAT] Lancement du sort de pull : " + MyProject.Forms.UniverselSettings.PullSpell6.Text);
                while (MyProject.Forms.TimerForm.Wait500ms.Enabled)
                {
                    func.oldWait(1);
                }
                MyProject.Forms.TimerForm.Wait500ms.Enabled = true;
                Clavier.SendTextToWoWChat("/cast " + MyProject.Forms.UniverselSettings.PullSpell6.Text);
                func.oldWait(0x3e8);
                while (Operators.ConditionalCompareObjectNotEqual(GameObjects.PlayerCastSpellId(), 0, false))
                {
                    func.oldWait(1);
                }
                func.oldWait(0x5dc);
            }
            Heal();
            return 0;
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -