예제 #1
0
        public void farm()
        {
            if (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.LaneClear)
            {
                var mobs = MinionManager.GetMinions(ObjectManager.Player.ServerPosition, Q.Range, MinionTypes.All, MinionTeam.Neutral, MinionOrderTypes.MaxHealth);
                if (mobs.Count > 0 && Player.Mana > RMANA + WMANA + EMANA + QMANA)
                {
                    var mob = mobs[0];
                    if (Q.IsReady() && Config.Item("farmQ").GetValue <bool>())
                    {
                        Q.Cast(mob);
                        return;
                    }

                    if (R1.IsReady() && Config.Item("farmR").GetValue <bool>())
                    {
                        R1.Cast(mob);
                        return;
                    }
                }

                if (!Player.IsWindingUp && Player.ManaPercentage() > Config.Item("Mana").GetValue <Slider>().Value)
                {
                    var minions = MinionManager.GetMinions(Player.ServerPosition, Q.Range, MinionTypes.All, MinionTeam.Enemy, MinionOrderTypes.MaxHealth);
                    var Wfarm   = Q.GetCircularFarmLocation(minions, 200);
                    var rfarm   = R1.GetCircularFarmLocation(minions, 100);
                    if (R1.IsReady() && Config.Item("farmR").GetValue <bool>() && Player.Spellbook.GetSpell(SpellSlot.R).Ammo > 1)
                    {
                        if (rfarm.MinionsHit > 1)
                        {
                            R1.Cast(rfarm.Position);
                        }
                    }
                    if (Q.IsReady() && Config.Item("farmQ").GetValue <bool>())
                    {
                        var Rfarm = Q.GetCircularFarmLocation(minions, 100);
                        if (Wfarm.MinionsHit > 2)
                        {
                            Q.Cast(Rfarm.Position);
                        }
                    }
                }
            }
        }