示例#1
0
        public static void JungleFarm()
        {
            var useQ = EntryPoint.Menu.Item("l33t.stds.junglefarming.qmode").GetValue <bool>();
            var useW = EntryPoint.Menu.Item("l33t.stds.junglefarming.wmode").GetValue <bool>();
            var useE = EntryPoint.Menu.Item("l33t.stds.junglefarming.emode").GetValue <bool>();
            var mobs = ObjectCache.GetMinions(
                ObjectManager.Player.ServerPosition, Spells[SpellSlot.W].Range, MinionTypes.All, MinionTeam.Neutral,
                MinionOrderTypes.MaxHealth);

            if (mobs.Count <= 0)
            {
                return;
            }
            var mob = mobs[0];

            if (Spells[SpellSlot.Q].IsReady() && useQ)
            {
                Spells[SpellSlot.Q].Instance.Cast(mob);
                Spells[SpellSlot.Q].LastCastAttemptTick = (int)(Game.Time * 0x3E8);
            }
            if (Spells[SpellSlot.W].IsReady() && useW &&
                Environment.TickCount - Spells[SpellSlot.Q].LastCastAttemptTick > 800)
            {
                Spells[SpellSlot.W].Instance.Cast(mob);
                Spells[SpellSlot.W].LastCastAttemptTick = (int)(Game.Time * 0x3E8);
            }
            if (useE && Spells[SpellSlot.E].IsReady())
            {
                Spells[SpellSlot.E].Instance.Cast(mob);
                Spells[SpellSlot.E].LastCastAttemptTick = (int)(Game.Time * 0x3E8);
            }
        }
示例#2
0
        public static void ProcessFarm(bool laneClear = false)
        {
            if (!Orbwalking.CanMove(40) &&
                (laneClear &&
                 EntryPoint.Menu.Item("l33t.stds.farming.lcmana").GetValue <Slider>().Value <
                 EntryPoint.Player.ManaPercent ||
                 !laneClear &&
                 EntryPoint.Menu.Item("l33t.stds.farming.farmmana").GetValue <Slider>().Value <
                 EntryPoint.Player.ManaPercent))
            {
                return;
            }

            var rangedMinionsQ = ObjectCache.GetMinions(
                ObjectManager.Player.ServerPosition, Spells[SpellSlot.Q].Range + Spells[SpellSlot.Q].Instance.Width + 30,
                MinionTypes.Ranged);
            var allMinionsQ = ObjectCache.GetMinions(
                ObjectManager.Player.ServerPosition, Spells[SpellSlot.Q].Range + Spells[SpellSlot.Q].Instance.Width + 30);
            var rangedMinionsW = ObjectCache.GetMinions(
                ObjectManager.Player.ServerPosition, Spells[SpellSlot.W].Range + Spells[SpellSlot.W].Instance.Width + 30,
                MinionTypes.Ranged);
            var allMinionsW = ObjectCache.GetMinions(
                ObjectManager.Player.ServerPosition, Spells[SpellSlot.W].Range + Spells[SpellSlot.W].Instance.Width + 30);
            var rangedMinionsE = ObjectCache.GetMinions(
                ObjectManager.Player.ServerPosition, Spells[SpellSlot.E].Range + Spells[SpellSlot.E].Instance.Width + 30,
                MinionTypes.Ranged);
            var allMinionsE = ObjectCache.GetMinions(
                ObjectManager.Player.ServerPosition, Spells[SpellSlot.E].Range + Spells[SpellSlot.E].Instance.Width + 30);
            var useQi = EntryPoint.Menu.Item("l33t.stds.farming.qmode").GetValue <StringList>().SelectedIndex;
            var useWi = EntryPoint.Menu.Item("l33t.stds.farming.wmode").GetValue <StringList>().SelectedIndex;
            var useEi = EntryPoint.Menu.Item("l33t.stds.farming.emode").GetValue <StringList>().SelectedIndex;
            var useQ  = (laneClear && (useQi == 1 || useQi == 2)) || (!laneClear && (useQi == 0 || useQi == 2));
            var useW  = (laneClear && (useWi == 1 || useWi == 2)) || (!laneClear && (useWi == 0 || useWi == 2));
            var useE  = (laneClear && (useEi == 1 || useEi == 2)) || (!laneClear && (useEi == 0 || useEi == 2));

            ProcessFarmQ(useQ, laneClear, rangedMinionsQ, allMinionsQ);
            if (laneClear)
            {
                ProcessFarmW(useW, rangedMinionsW, allMinionsW);
                ProcessFarmE(useE, rangedMinionsE, allMinionsE);
            }
        }
示例#3
0
        private static void DrawDebug()
        {
            var minions = ObjectCache.GetMinions();
            var heros   = ObjectCache.GetHeroes();

            Sprite.Begin(SpriteFlags.AlphaBlend);

            Font.DrawText(
                Sprite,
                "Close Minion Count: " + (minions != null ? minions.Count(m => m.IsValidTarget(475f)) : 0),
                (int)(Drawing.Width * 0.90f), (int)(Drawing.Height * 0.64f), Color.White);
            Font.DrawText(
                Sprite, "Minion Count: " + (minions != null ? minions.Count() : 0),
                (int)(Drawing.Width * 0.90f), (int)(Drawing.Height * 0.625f), Color.White);
            Font.DrawText(
                Sprite, "Hero Count: " + (heros != null ? heros.Count() : 0), (int)(Drawing.Width * 0.90f),
                (int)(Drawing.Height * 0.615f), Color.White);
            FontB.DrawText(Sprite, "Welcome back, " + ObjectManager.Player.Name + ".", (int)(Drawing.Width * 0.90f), (int)(Drawing.Height * 0.60f), Color.Red);

            Sprite.End();
        }