Beispiel #1
0
 private static void Game_OnUpdate(EventArgs args)
 {
     if (SetOrbWalkerTarget.Enabled && Orbwalker.ActiveMode <= OrbwalkerMode.Harass)
     {
         if (ObjectManager.Player.CanAttack || Orbwalker.CanAttack())
         {
             var target = FSTargetSelector.GetFSTarget(ObjectManager.Player.GetCurrentAutoAttackRange());
             if (target != null)
             {
                 Orbwalker.Orbwalk(target, Game.CursorPos);
             }
             else
             {
                 Orbwalker.Orbwalk(Orbwalker.GetTarget(), Game.CursorPos);
             }
         }
         else
         {
             ResetOrbwalker();
         }
     }
     else
     {
         ResetOrbwalker();
     }
 }
Beispiel #2
0
        private static void Drawing_OnDraw(EventArgs args)
        {
            if (DrawTarget.Enabled && FSTargetSelector.GetFSTarget(DrawTarget.ActiveValue) != null)
            {
                var targetpos = Drawing.WorldToScreen(FSTargetSelector.GetFSTarget(DrawTarget.ActiveValue).Position);
                Drawing.DrawLine(new Vector2(targetpos.X, targetpos.Y), new Vector2(targetpos.X + 25, targetpos.Y - 25), 5f, System.Drawing.Color.Red);
                Drawing.DrawLine(new Vector2(targetpos.X, targetpos.Y), new Vector2(targetpos.X - 25, targetpos.Y - 25), 5f, System.Drawing.Color.Red);

                Drawing.DrawCircle(FSTargetSelector.GetFSTarget(DrawTarget.ActiveValue).Position, 100, System.Drawing.Color.Red);
            }
        }
Beispiel #3
0
        private static void Drawing_OnDraw(EventArgs args)
        {
            if (DrawTarget.Enabled && FSTargetSelector.GetFSTarget(DrawTarget.ActiveValue) != null)
            {
                var orbtarget = FSTargetSelector.GetFSTarget(ObjectManager.Player.GetCurrentAutoAttackRange());
                if (orbtarget != null && SetOrbWalkerTarget.Enabled && Orbwalker.ActiveMode <= OrbwalkerMode.Harass && (FunnySlayerCommon.OnAction.BeforeAA || FunnySlayerCommon.OnAction.OnAA))
                {
                    var targetpos = Drawing.WorldToScreen(orbtarget.Position);
                    Drawing.DrawLine(new Vector2(targetpos.X, targetpos.Y), new Vector2(targetpos.X + 25, targetpos.Y - 25), 5f, System.Drawing.Color.Red);
                    Drawing.DrawLine(new Vector2(targetpos.X, targetpos.Y), new Vector2(targetpos.X - 25, targetpos.Y - 25), 5f, System.Drawing.Color.Red);

                    Drawing.DrawCircle(orbtarget.Position, 100, System.Drawing.Color.Red);
                }
                else
                {
                    var targetpos = Drawing.WorldToScreen(FSTargetSelector.GetFSTarget(DrawTarget.ActiveValue).Position);
                    Drawing.DrawLine(new Vector2(targetpos.X, targetpos.Y), new Vector2(targetpos.X + 25, targetpos.Y - 25), 5f, System.Drawing.Color.White);
                    Drawing.DrawLine(new Vector2(targetpos.X, targetpos.Y), new Vector2(targetpos.X - 25, targetpos.Y - 25), 5f, System.Drawing.Color.White);

                    Drawing.DrawCircle(FSTargetSelector.GetFSTarget(DrawTarget.ActiveValue).Position, 100, System.Drawing.Color.Red);
                }
            }
        }