Exemplo n.º 1
0
    private void Awake()
    {
        _config = Configurables.Instance;

        _config.EvnAreaTimer += OnAreaTimer;
        _config.EvnUseWeapon += OnUseWeapon;
    }
Exemplo n.º 2
0
        public AnubRekhan10Tactic(AmeisenBotInterfaces bot)
        {
            Bot = bot;
            TankingPathQueue = new();

            Configurables.TryAdd("isOffTank", false);
        }
Exemplo n.º 3
0
        protected BasicCombatClass(AmeisenBotInterfaces bot)
        {
            Bot = bot;

            SpellAbortFunctions = new();

            CooldownManager      = new(Bot.Character.SpellBook.Spells);
            RessurrectionTargets = new();

            TargetProviderDps  = new TargetManager(Bot, WowRole.Dps, TimeSpan.FromMilliseconds(250));
            TargetProviderTank = new TargetManager(Bot, WowRole.Tank, TimeSpan.FromMilliseconds(250));
            TargetProviderHeal = new TargetManager(Bot, WowRole.Heal, TimeSpan.FromMilliseconds(250));

            MyAuraManager     = new(Bot);
            TargetAuraManager = new(Bot);
            GroupAuraManager  = new(Bot);

            InterruptManager = new();

            EventCheckFacing = new(TimeSpan.FromMilliseconds(500));
            EventAutoAttack  = new(TimeSpan.FromMilliseconds(500));

            Configurables.TryAdd("HealthItemThreshold", 30.0);
            Configurables.TryAdd("ManaItemThreshold", 30.0);
        }
Exemplo n.º 4
0
        public WarriorProtection(AmeisenBotInterfaces bot) : base(bot)
        {
            Configurables.TryAdd("FartOnCharge", false);

            InterruptManager.InterruptSpells = new()
            {
                { 0, (x) => TryCastSpell(Warrior548.Pummel, x.Guid, true) },
                { 1, (x) => TryCastSpell(Warrior548.DragonRoar, x.Guid, true) },
            };
Exemplo n.º 5
0
 public override void SetupConfig()
 {
     phrasePath = new Configurable()
     {
         Name         = "dbpath",
         ReadableName = "Path to Database",
         Parent       = this
     };
     Configurables.Add(phrasePath);
 }
Exemplo n.º 6
0
 public override void SetupConfig()
 {
     db_filename = new Configurable()
     {
         Name         = "dbpath",
         ReadableName = "Path to Database",
         Parent       = this
     };
     Configurables.Add(db_filename);
 }
Exemplo n.º 7
0
        public PaladinHoly(AmeisenBotInterfaces bot) : base(bot)
        {
            Configurables.TryAdd("AttackInGroups", true);
            Configurables.TryAdd("AttackInGroupsUntilManaPercent", 85.0);
            Configurables.TryAdd("AttackInGroupsCloseCombat", false);
            Configurables.TryAdd("BeaconOfLightSelfHealth", 85.0);
            Configurables.TryAdd("BeaconOfLightPartyHealth", 85.0);
            Configurables.TryAdd("DivinePleaMana", 60.0);
            Configurables.TryAdd("DivineIlluminationManaAbove", 20.0);
            Configurables.TryAdd("DivineIlluminationManaUntil", 50.0);

            MyAuraManager.Jobs.Add(new KeepActiveAuraJob(bot.Db, Paladin335a.BlessingOfWisdom, () => TryCastSpell(Paladin335a.BlessingOfWisdom, Bot.Wow.PlayerGuid, true)));
            MyAuraManager.Jobs.Add(new KeepActiveAuraJob(bot.Db, Paladin335a.DevotionAura, () => TryCastSpell(Paladin335a.DevotionAura, Bot.Wow.PlayerGuid, true)));
            MyAuraManager.Jobs.Add(new KeepActiveAuraJob(bot.Db, Paladin335a.SealOfWisdom, () => Bot.Character.SpellBook.IsSpellKnown(Paladin335a.SealOfWisdom) && TryCastSpell(Paladin335a.SealOfWisdom, Bot.Wow.PlayerGuid, true)));
            MyAuraManager.Jobs.Add(new KeepActiveAuraJob(bot.Db, Paladin335a.SealOfVengeance, () => !Bot.Character.SpellBook.IsSpellKnown(Paladin335a.SealOfWisdom) && TryCastSpell(Paladin335a.SealOfVengeance, Bot.Wow.PlayerGuid, true)));

            GroupAuraManager.SpellsToKeepActiveOnParty.Add((Paladin335a.BlessingOfWisdom, (spellName, guid) => TryCastSpell(spellName, guid, true)));

            HealingManager = new(bot, (string spellName, ulong guid) => { return(TryCastSpell(spellName, guid)); });

            // make sure all new spells get added to the healing manager
            Bot.Character.SpellBook.OnSpellBookUpdate += () =>
            {
                if (Bot.Character.SpellBook.TryGetSpellByName(Paladin335a.FlashOfLight, out Spell spellFlashOfLight))
                {
                    HealingManager.AddSpell(spellFlashOfLight);
                }

                if (Bot.Character.SpellBook.TryGetSpellByName(Paladin335a.HolyLight, out Spell spellHolyLight))
                {
                    HealingManager.AddSpell(spellHolyLight);
                }

                if (Bot.Character.SpellBook.TryGetSpellByName(Paladin335a.HolyShock, out Spell spellHolyShock))
                {
                    HealingManager.AddSpell(spellHolyShock);
                }

                if (Bot.Character.SpellBook.TryGetSpellByName(Paladin335a.LayOnHands, out Spell spellLayOnHands))
                {
                    HealingManager.AddSpell(spellLayOnHands);
                }
            };

            SpellAbortFunctions.Add(HealingManager.ShouldAbortCasting);

            ChangeBeaconEvent = new(TimeSpan.FromSeconds(1));
        }
Exemplo n.º 8
0
        public Module_Test()
        {
            ID       = ModuleList.Test;
            UsableBy = APIList.All;

            configTest1 = new Configurable()
            {
                Name   = "dick",
                Parent = this
            };
            Configurables.Add(configTest1);

            if (configTest1.Value == string.Empty)
            {
                configTest1.Value = "notbutt!";
            }
        }
Exemplo n.º 9
0
    private void Awake()
    {
        _camera = Camera.main;
        _config = Configurables.Instance;

        _screenRatio   = new Vector2(0.0f, _camera.orthographicSize * 2);
        _screenRatio.x = Screen.width * _screenRatio.y / Screen.height;

        _screenScaleFactor  = _levelProperty.CageDistance.y - _levelProperty.CageDistance.x;
        _screenScaleFactor /= _levelProperty.CageLayers.Length;

        _colorClamp = 1.0f / (_levelProperty.CageLayers.Length - 1);

        _config.EvnAttackCube  += OnAttackCube;
        _config.EvnDestroyCube += OnDestroyCube;

        Application.targetFrameRate = 30;
    }
Exemplo n.º 10
0
    private void Awake()
    {
        _config      = Configurables.Instance;
        _camera      = Camera.main;
        _rayDistance = _camera.farClipPlane;

        _curAreaTime = 0;
        _touchEffect = ETouchEffect.None;
        _firstTouch  = false;

        Input.multiTouchEnabled = false;

        _explosionArea.gameObject.SetActive(false);

        _config.EvnCageChangeSize += OnCageChangeSize;
        _config.EvnForwardEdge    += OnForwardEdge;
        _config.EvnChangeWeapon   += OnChangeWeapon;
    }
Exemplo n.º 11
0
        public PaladinHoly(AmeisenBotInterfaces bot) : base(bot)
        {
            Configurables.TryAdd("AttackInGroups", true);
            Configurables.TryAdd("AttackInGroupsUntilManaPercent", 85.0);
            Configurables.TryAdd("AttackInGroupsCloseCombat", false);
            Configurables.TryAdd("BeaconOfLightSelfHealth", 85.0);
            Configurables.TryAdd("BeaconOfLightPartyHealth", 85.0);
            Configurables.TryAdd("DivinePleaMana", 60.0);

            GroupAuraManager.SpellsToKeepActiveOnParty.Add((Paladin548.BlessingOfKings, (spellName, guid) => TryCastSpell(spellName, guid, true)));

            HealingManager = new(bot, (string spellName, ulong guid) => { return(TryCastSpell(spellName, guid)); });

            // make sure all new spells get added to the healing manager
            Bot.Character.SpellBook.OnSpellBookUpdate += () =>
            {
                if (Bot.Character.SpellBook.TryGetSpellByName(Paladin548.FlashOfLight, out Spell spellFlashOfLight))
                {
                    HealingManager.AddSpell(spellFlashOfLight);
                }

                if (Bot.Character.SpellBook.TryGetSpellByName(Paladin548.HolyShock, out Spell spellHolyShock))
                {
                    HealingManager.AddSpell(spellHolyShock);
                }

                if (Bot.Character.SpellBook.TryGetSpellByName(Paladin548.HolyLight, out Spell spellHolyLight))
                {
                    HealingManager.AddSpell(spellHolyLight);
                }

                if (Bot.Character.SpellBook.TryGetSpellByName(Paladin548.DivineLight, out Spell spellDivineLight))
                {
                    HealingManager.AddSpell(spellDivineLight);
                }
            };

            InterruptManager.InterruptSpells = new()
            {
                { 0, (x) => TryCastSpell(Paladin548.FistOfJustice, x.Guid, true) },
                { 1, (x) => TryCastSpell(Paladin548.HammerOfJustice, x.Guid, true) },
Exemplo n.º 12
0
 public void Awake()
 {
     inst = this;
 }