Ejemplo n.º 1
0
        public static void fleeToMouse()
        {
            try
            {
                stackQ();
                YasDash closeDash = getClosestDash();
                if (closeDash != null)
                {
                    List <Obj_AI_Base> jumps = canGoThrough(closeDash);
                    if (jumps.Count > 0 || ((W.IsReady() || (Yasuo.wall != null && (Yasuo.wall.endtime - Game.Time) > 3f))))
                    {
                        var distToDash = Player.Distance(closeDash.from);

                        if (W.IsReady() && distToDash < 136f && jumps.Count == 0 && NavMesh.LineOfSightTest(closeDash.to, closeDash.to) &&
                            MinionManager.GetMinions(Game.CursorPos, 350).Where(min => min.IsVisible).Count() < 2)
                        {
                            SmoothMouse.addMouseEvent(closeDash.to);
                            W.Cast(closeDash.to);
                        }

                        if (distToDash > 2f)
                        {
                            Player.IssueOrder(GameObjectOrder.MoveTo, closeDash.from);
                            return;
                        }

                        if (distToDash < 3f && jumps.Count > 0 && jumps.First().Distance(Player) <= 470)
                        {
                            SmoothMouse.addMouseEvent(jumps.First().Position);
                            E.Cast(jumps.First());
                        }
                        return;
                    }
                }
                if (getClosestDash(400) == null)
                {
                    Yasuo.gapCloseE(Game.CursorPos.To2D());
                }
                Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPos);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
            }
        }
Ejemplo n.º 2
0
 public static void OnProcessSpell(Obj_AI_Base obj, GameObjectProcessSpellCastEventArgs arg)
 {
     if (obj.IsMe)
     {
         if (arg.Slot == SpellSlot.Q)
         {
             Yasuo.setSkillShots();
         }
         if (arg.SData.Name == "YasuoDashWrapper")    //start dash
         {
             Console.WriteLine("--- DAhs started---");
             Yasuo.lastDash.from = Yasuo.Player.Position;
             Yasuo.isDashigPro   = true;
             Yasuo.castFrom      = Yasuo.Player.Position;
             Yasuo.startDash     = Environment.TickCount;
         }
     }
 }
Ejemplo n.º 3
0
        private static void onLoad(EventArgs args)
        {
            if (ObjectManager.Player.ChampionName != CharName)
            {
                return;
            }

            Yasuo.setSkillShots();
            Yasuo.setDashes();
            Yasuo.point1 = Yasuo.Player.Position;
            Game.PrintChat("YasuoSharpV2 by DeTuKs");

            Console.WriteLine("YasuoSharpV2 by DeTuKs");

            try
            {
                Config = new Menu("YasuoSharp", "Yasuo", true);
                //Orbwalker
                Config.AddSubMenu(new Menu("Orbwalker", "Orbwalker"));
                Orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalker"));
                //TS
                var TargetSelectorMenu = new Menu("Target Selector", "Target Selector");
                TargetSelector.AddToMenu(TargetSelectorMenu);
                Config.AddSubMenu(TargetSelectorMenu);
                //Combo
                Config.AddSubMenu(new Menu("Combo Sharp", "combo"));
                Config.SubMenu("combo").AddItem(new MenuItem("comboItems", "Use Items")).SetValue(true);
                //SmartR
                Config.SubMenu("combo").AddItem(new MenuItem("smartR", "Smart R")).SetValue(true);
                Config.SubMenu("combo").AddItem(new MenuItem("useRHit", "Use R if hit")).SetValue(new Slider(3, 5, 1));
                Config.SubMenu("combo").AddItem(new MenuItem("useRHitTime", "Use R when they land")).SetValue(true);
                Config.SubMenu("combo").AddItem(new MenuItem("useEWall", "use E to safe")).SetValue(true);
                //Flee away
                Config.SubMenu("combo").AddItem(new MenuItem("flee", "E away")).SetValue(new KeyBind('Z', KeyBindType.Press, false));
                Config.SubMenu("combo").AddItem(new MenuItem("fleeStack", "Stack Q while flee")).SetValue(true);


                //LastHit
                Config.AddSubMenu(new Menu("LastHit Sharp", "lHit"));
                Config.SubMenu("lHit").AddItem(new MenuItem("useQlh", "Use Q")).SetValue(true);
                Config.SubMenu("lHit").AddItem(new MenuItem("useElh", "Use E")).SetValue(true);
                //LaneClear
                Config.AddSubMenu(new Menu("LaneClear Sharp", "lClear"));
                Config.SubMenu("lClear").AddItem(new MenuItem("useQlc", "Use Q")).SetValue(true);
                Config.SubMenu("lClear").AddItem(new MenuItem("useEmpQHit", "Emp Q Min hit")).SetValue(new Slider(3, 6, 1));
                Config.SubMenu("lClear").AddItem(new MenuItem("useElc", "Use E")).SetValue(true);
                //Harass
                Config.AddSubMenu(new Menu("Harass Sharp", "harass"));
                Config.SubMenu("harass").AddItem(new MenuItem("harassTower", "Harass under tower")).SetValue(false);
                Config.SubMenu("harass").AddItem(new MenuItem("harassOn", "Harass enemies")).SetValue(true);
                Config.SubMenu("harass").AddItem(new MenuItem("harQ3Only", "Use only Q3")).SetValue(false);
                //Drawings
                Config.AddSubMenu(new Menu("Drawing Sharp", "drawing"));
                Config.SubMenu("drawing").AddItem(new MenuItem("disDraw", "Dissabel drawing")).SetValue(false);
                Config.SubMenu("drawing").AddItem(new MenuItem("drawQ", "Draw Q range")).SetValue(true);
                Config.SubMenu("drawing").AddItem(new MenuItem("drawE", "Draw E range")).SetValue(true);
                Config.SubMenu("drawing").AddItem(new MenuItem("drawR", "Draw R range")).SetValue(true);
                Config.SubMenu("drawing").AddItem(new MenuItem("drawWJ", "Draw Wall Jumps")).SetValue(true);

                //Extra
                Config.AddSubMenu(new Menu("Extra Sharp", "extra"));
                Config.SubMenu("extra").AddItem(new MenuItem("djTur", "Dont Jump turrets")).SetValue(true);
                Config.SubMenu("extra").AddItem(new MenuItem("autoLevel", "Auto Level")).SetValue(true);
                Config.SubMenu("extra").AddItem(new MenuItem("levUpSeq", "")).SetValue(new StringList(new string[2] {
                    "Q E W Q start", "Q E Q W start"
                }));

                //LastHit
                Config.AddSubMenu(new Menu("Wall Usage", "aShots"));
                //SmartW
                Config.SubMenu("aShots").AddItem(new MenuItem("smartW", "Smart WW")).SetValue(true);
                Config.SubMenu("aShots").AddItem(new MenuItem("smartEDogue", "E use dogue")).SetValue(true);
                Config.SubMenu("aShots").AddItem(new MenuItem("wwDanger", "WW only dangerous")).SetValue(false);
                Config.SubMenu("aShots").AddItem(new MenuItem("wwDmg", "WW if does proc HP")).SetValue(new Slider(0, 100, 1));
                skillShotMenu = getSkilshotMenu();
                Config.SubMenu("aShots").AddSubMenu(skillShotMenu);

                Config.SubMenu("aShots").AddSubMenu(TargetedSpellManager.setUp());
                //Streaming
                Config.AddSubMenu(new Menu("Stream Sharp", "stream"));
                Config.SubMenu("stream").AddItem(new MenuItem("streamMouse", "SimulateMouse")).SetValue(false);

                //Debug
                Config.AddSubMenu(new Menu("Debug", "debug"));
                Config.SubMenu("debug").AddItem(new MenuItem("WWLast", "Print last ww blocked")).SetValue(new KeyBind('T', KeyBindType.Press, false));
                Config.SubMenu("debug").AddItem(new MenuItem("saveDash", "saveDashd")).SetValue(new KeyBind('O', KeyBindType.Press, false));
                Config.SubMenu("debug").AddItem(new MenuItem("exportDash", "export dashes")).SetValue(new KeyBind('P', KeyBindType.Press, false));
                Config.SubMenu("debug").AddItem(new MenuItem("deleteDash", "deleteLastDash")).SetValue(new KeyBind('I', KeyBindType.Press, false));

                Config.AddToMainMenu();

                TargetSpellDetector.init();

                Drawing.OnDraw += onDraw;
                Game.OnUpdate  += OnGameUpdate;

                GameObject.OnCreate            += OnCreateObject;
                GameObject.OnDelete            += OnDeleteObject;
                Obj_AI_Base.OnProcessSpellCast += OnProcessSpell;
                Spellbook.OnStopCast           += onStopCast;
                CustomEvents.Unit.OnLevelUp    += OnLevelUp;

                SkillshotDetector.OnDetectSkillshot += OnDetectSkillshot;
                SkillshotDetector.OnDeleteMissile   += OnDeleteMissile;
            }
            catch
            {
                Game.PrintChat("Oops. Something went wrong with Yasuo - Sharpino");
            }
        }
Ejemplo n.º 4
0
        private static void OnGameUpdate(EventArgs args)
        {
            try
            {
                Yasuo.Q.SetSkillshot(Yasuo.getNewQSpeed(), 50f, float.MaxValue, false, SkillshotType.SkillshotLine);

                if (Yasuo.startDash + 475000 / ((700 + Yasuo.Player.MoveSpeed)) < Environment.TickCount && Yasuo.isDashigPro)
                {
                    Yasuo.isDashigPro = false;
                }

                //updateSkillshots();
                //Remove the detected skillshots that have expired.
                DetectedSkillshots.RemoveAll(skillshot => !skillshot.IsActive());

                Obj_AI_Hero target = TargetSelector.GetTarget((Yasuo.E.IsReady()) ? 1500 : 475, TargetSelector.DamageType.Physical);
                if (Orbwalker.ActiveMode.ToString() == "Combo")
                {
                    Yasuo.doCombo(target);
                }

                if (Orbwalker.ActiveMode.ToString() == "LastHit")
                {
                    Yasuo.doLastHit(target);
                    Yasuo.useQSmart(target);
                }

                if (Orbwalker.ActiveMode.ToString() == "Mixed")
                {
                    Yasuo.doLastHit(target);
                    Yasuo.useQSmart(target);
                }

                if (Orbwalker.ActiveMode.ToString() == "LaneClear")
                {
                    Yasuo.doLaneClear(target);
                }

                if (Config.Item("flee").GetValue <KeyBind>().Active)
                {
                    Yasuo.fleeToMouse();
                    Yasuo.stackQ();
                }

                if (Config.Item("saveDash").GetValue <KeyBind>().Active&& canSave)
                {
                    Yasuo.saveLastDash();
                    canSave = false;
                }
                else
                {
                    canSave = true;
                }

                if (Config.Item("deleteDash").GetValue <KeyBind>().Active&& canDelete)
                {
                    if (Yasuo.dashes.Count > 0)
                    {
                        Yasuo.dashes.RemoveAt(Yasuo.dashes.Count - 1);
                    }
                    canDelete = false;
                }
                else
                {
                    canDelete = true;
                }
                if (Config.Item("exportDash").GetValue <KeyBind>().Active&& canExport)
                {
                    using (var file = new System.IO.StreamWriter(@"C:\YasuoDashes.txt"))
                    {
                        foreach (var dash in Yasuo.dashes)
                        {
                            string dashS = "dashes.Add(new YasDash(new Vector3(" +
                                           dash.from.X.ToString("0.00").Replace(',', '.') + "f," +
                                           dash.from.Y.ToString("0.00").Replace(',', '.') + "f," +
                                           dash.from.Z.ToString("0.00").Replace(',', '.') +
                                           "f),new Vector3(" + dash.to.X.ToString("0.00").Replace(',', '.') + "f," +
                                           dash.to.Y.ToString("0.00").Replace(',', '.') + "f," +
                                           dash.to.Z.ToString("0.00").Replace(',', '.') + "f)));";
                            //new YasDash(new Vector3(X,Y,Z),new Vector3(X,Y,Z))

                            file.WriteLine(dashS);
                        }
                        file.Close();
                    }

                    canExport = false;
                }
                else
                {
                    canExport = true;
                }

                if (Config.Item("WWLast").GetValue <KeyBind>().Active)
                {
                    Console.WriteLine("Last WW skill blocked: " + lastSpell);
                    Game.PrintChat("Last WW skill blocked: " + lastSpell);
                }

                if (Config.Item("harassOn").GetValue <bool>() && Orbwalker.ActiveMode.ToString() == "None")
                {
                    if (target != null)
                    {
                        Yasuo.useQSmart(target, Config.Item("harQ3Only").GetValue <bool>());
                    }
                }

                foreach (var mis in DetectedSkillshots)
                {
                    Yasuo.useWSmart(mis);

                    if (Config.Item("smartEDogue").GetValue <bool>() && !Yasuo.isSafePoint(Yasuo.Player.Position.To2D(), true).IsSafe)
                    {
                        Yasuo.useEtoSafe(mis);
                    }
                }

                if (Config.Item("smartR").GetValue <bool>() && Yasuo.R.IsReady())
                {
                    Yasuo.useRSmart();
                }

                Yasuo.processTargetedSpells();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
            }
        }
Ejemplo n.º 5
0
        private static void onLoad(EventArgs args)
        {
            if (ObjectManager.Player.ChampionName != CharName)
            {
                return;
            }

            Yasuo.setSkillShots();
            Yasuo.setDashes();
            Yasuo.point1 = Yasuo.Player.Position;
            Game.PrintChat("YasuoSharpV2 by DeTuKs");

            try
            {
                Config = new Menu("【無為汉化】亚索V2", "Yasuo", true);
                //Orbwalker
                Config.AddSubMenu(new Menu("走砍", "Orbwalker"));
                Orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalker"));
                //TS
                var TargetSelectorMenu = new Menu("目标选择", "Target Selector");
                SimpleTs.AddToMenu(TargetSelectorMenu);
                Config.AddSubMenu(TargetSelectorMenu);
                //Combo
                Config.AddSubMenu(new Menu("连招", "combo"));
                Config.SubMenu("combo").AddItem(new MenuItem("comboItems", "使用点燃")).SetValue(true);
                //SmartR
                Config.SubMenu("combo").AddItem(new MenuItem("smartR", "智能 R")).SetValue(true);
                Config.SubMenu("combo").AddItem(new MenuItem("useRHit", "使用 R 如果击中")).SetValue(new Slider(3, 5, 1));
                Config.SubMenu("combo").AddItem(new MenuItem("useRHitTime", "当要落地时使用︱R")).SetValue(true);
                Config.SubMenu("combo").AddItem(new MenuItem("useEWall", "安全使用 E ")).SetValue(true);
                //Flee away
                Config.SubMenu("combo").AddItem(new MenuItem("flee", "使用E逃跑")).SetValue(new KeyBind('Z', KeyBindType.Press, false));
                Config.SubMenu("combo").AddItem(new MenuItem("fleeStack", "逃跑时叠加Q")).SetValue(true);


                //LastHit
                Config.AddSubMenu(new Menu("补兵", "lHit"));
                Config.SubMenu("lHit").AddItem(new MenuItem("useQlh", "使用 Q")).SetValue(true);
                Config.SubMenu("lHit").AddItem(new MenuItem("useElh", "使用 E")).SetValue(true);
                //LaneClear
                Config.AddSubMenu(new Menu("清兵", "lClear"));
                Config.SubMenu("lClear").AddItem(new MenuItem("useQlc", "使用 Q")).SetValue(true);
                Config.SubMenu("lClear").AddItem(new MenuItem("useEmpQHit", "小兵最少数量︱")).SetValue(new Slider(3, 6, 1));
                Config.SubMenu("lClear").AddItem(new MenuItem("useElc", "使用 E")).SetValue(true);
                //Harass
                Config.AddSubMenu(new Menu("骚扰", "harass"));
                Config.SubMenu("harass").AddItem(new MenuItem("harassTower", "塔下骚扰")).SetValue(false);
                Config.SubMenu("harass").AddItem(new MenuItem("harassOn", "骚扰敌人")).SetValue(true);
                Config.SubMenu("harass").AddItem(new MenuItem("harQ3Only", "只使Q3")).SetValue(false);
                //Drawings
                Config.AddSubMenu(new Menu("范围", "drawing"));
                Config.SubMenu("drawing").AddItem(new MenuItem("disDraw", "全部关闭")).SetValue(false);
                Config.SubMenu("drawing").AddItem(new MenuItem("drawQ", "Q范围")).SetValue(true);
                Config.SubMenu("drawing").AddItem(new MenuItem("drawE", "E范围")).SetValue(true);
                Config.SubMenu("drawing").AddItem(new MenuItem("drawR", "R范围")).SetValue(true);
                Config.SubMenu("drawing").AddItem(new MenuItem("drawWJ", "显示可穿越的墙︱")).SetValue(true);

                //Extra
                Config.AddSubMenu(new Menu("额外", "extra"));
                Config.SubMenu("extra").AddItem(new MenuItem("djTur", "不要跳进塔︱")).SetValue(true);
                Config.SubMenu("extra").AddItem(new MenuItem("autoLevel", "自动加点")).SetValue(true);
                Config.SubMenu("extra").AddItem(new MenuItem("levUpSeq", "")).SetValue(new StringList(new string[2] {
                    "Q E W Q start", "Q E Q W start"
                }));

                //LastHit
                Config.AddSubMenu(new Menu("风墙", "aShots"));
                //SmartW
                Config.SubMenu("aShots").AddItem(new MenuItem("smartW", "只能使用W")).SetValue(true);
                Config.SubMenu("aShots").AddItem(new MenuItem("smartEDogue", "E 使用dogue")).SetValue(true);
                Config.SubMenu("aShots").AddItem(new MenuItem("wwDanger", "WW 只躲危险技能")).SetValue(false);
                Config.SubMenu("aShots").AddItem(new MenuItem("wwDmg", "触发WW 血量低于")).SetValue(new Slider(0, 100, 1));
                skillShotMenu = getSkilshotMenu();
                Config.SubMenu("aShots").AddSubMenu(skillShotMenu);
                //Debug
                Config.AddSubMenu(new Menu("调试", "debug"));
                Config.SubMenu("debug").AddItem(new MenuItem("WWLast", "Print last ww blocked")).SetValue(new KeyBind('T', KeyBindType.Press, false));
                Config.SubMenu("debug").AddItem(new MenuItem("saveDash", "saveDashd")).SetValue(new KeyBind('O', KeyBindType.Press, false));
                Config.SubMenu("debug").AddItem(new MenuItem("exportDash", "export dashes")).SetValue(new KeyBind('P', KeyBindType.Press, false));
                Config.SubMenu("debug").AddItem(new MenuItem("deleteDash", "deleteLastDash")).SetValue(new KeyBind('I', KeyBindType.Press, false));

                Config.AddSubMenu(new Menu("無為汉化", "by wuwei"));
                Config.SubMenu("by wuwei").AddItem(new MenuItem("qunhao", "汉化群:386289593"));
                Config.SubMenu("by wuwei").AddItem(new MenuItem("qunhao2", "娃娃群:158994507"));

                Config.AddToMainMenu();
                Drawing.OnDraw    += onDraw;
                Game.OnGameUpdate += OnGameUpdate;

                GameObject.OnCreate            += OnCreateObject;
                GameObject.OnDelete            += OnDeleteObject;
                Obj_AI_Base.OnProcessSpellCast += OnProcessSpell;
                CustomEvents.Unit.OnLevelUp    += OnLevelUp;

                Game.OnGameSendPacket    += OnGameSendPacket;
                Game.OnGameProcessPacket += OnGameProcessPacket;

                SkillshotDetector.OnDetectSkillshot += OnDetectSkillshot;
                SkillshotDetector.OnDeleteMissile   += OnDeleteMissile;
            }
            catch
            {
                Game.PrintChat("Oops. Something went wrong with Yasuo - Sharpino");
            }
        }
Ejemplo n.º 6
0
        private static void OnGameUpdate(EventArgs args)
        {
            try
            {
                if (!wasStream && Config.Item("streamMouse").GetValue <bool>())
                {
//                        SmoothMouse.start();
                    wasStream = true;
                }
                else if (!Config.Item("streamMouse").GetValue <bool>())
                {
                    wasStream = false;
                }


                Yasuo.Q.SetSkillshot(Yasuo.getNewQSpeed(), 50f, float.MaxValue, false, SkillshotType.SkillshotLine);

                if (Yasuo.startDash + 470000 / ((700 + Yasuo.Player.MoveSpeed)) < Environment.TickCount && Yasuo.isDashigPro)
                {
                    Yasuo.isDashigPro = false;
                }

                //updateSkillshots();
                //Remove the detected skillshots that have expired.
                DetectedSkillshots.RemoveAll(skillshot => !skillshot.IsActive());

                AIHeroClient target = TargetSelector.GetTarget((Yasuo.E.IsReady()) ? 1500 : 475, TargetSelector.DamageType.Physical);
                if (Orbwalker.ActiveMode.ToString() == "Combo")
                {
                    Yasuo.doCombo(target);
                }

                if (Orbwalker.ActiveMode.ToString() == "LastHit")
                {
                    Yasuo.doLastHit(target);
                    Yasuo.useQSmart(target);
                }

                if (Orbwalker.ActiveMode.ToString() == "Mixed")
                {
                    Yasuo.doLastHit(target);
                    Yasuo.useQSmart(target);
                }

                if (Orbwalker.ActiveMode.ToString() == "LaneClear")
                {
                    Yasuo.doLaneClear(target);
                }

                if (Config.Item("flee").GetValue <KeyBind>().Active)
                {
                    Yasuo.fleeToMouse();
                    Yasuo.stackQ();
                }

                if (Config.Item("harassOn").GetValue <bool>() && Orbwalker.ActiveMode.ToString() == "None")
                {
                    if (target != null)
                    {
                        Yasuo.useQSmart(target, Config.Item("harQ3Only").GetValue <bool>());
                    }
                }

                foreach (var mis in DetectedSkillshots)
                {
                    Yasuo.useWSmart(mis);

                    if (Config.Item("smartEDogue").GetValue <bool>() && !Yasuo.isSafePoint(Yasuo.Player.Position.To2D(), true).IsSafe)
                    {
                        Yasuo.useEtoSafe(mis);
                    }
                }

                if (Config.Item("smartR").GetValue <bool>() && Yasuo.R.IsReady())
                {
                    Yasuo.useRSmart();
                }

                Yasuo.processTargetedSpells();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
            }
        }
Ejemplo n.º 7
0
        private static void onLoad(EventArgs args)
        {
            if (ObjectManager.Player.ChampionName != CharName)
            {
                return;
            }

            Yasuo.setSkillShots();
            Yasuo.setDashes();
            Yasuo.point1 = Yasuo.Player.Position;
            Chat.Print("YasuoSharpV2 by DeTuKs");

            Console.WriteLine("YasuoSharpV2 by DeTuKs");

            try
            {
                Config = MainMenu.AddMenu("YasuoSharp", "YasuoASHARP");

                //Combo
                comboMenu = Config.AddSubMenu("Combo Sharp", "combo");
                comboMenu.Add("comboItems", new CheckBox("Use Items"));
                comboMenu.Add("useEWall", new CheckBox("E behind Wall to safe"));

                //SmartR
                smartR = Config.AddSubMenu("Smart R");
                smartR.Add("smartR", new CheckBox("Use Smart R?"));
                smartR.AddGroupLabel("Settings : ");
                smartR.Add("useRHitTime", new CheckBox("Use R Delay"));
                smartR.Add("useRHit", new Slider("R if hit : ", 3, 1, 5));
                smartR.Add("useRHP", new Slider("R if Enemy HP less than : ", 25, 0, 100));

                //Flee away
                flee = Config.AddSubMenu("Flee");
                //flee.Add("flee", new KeyBind("E away", false, KeyBind.BindTypes.HoldActive, 'Z'));
                flee.Add("fleeStack", new CheckBox("Stack Q while flee"));

                //LastHit
                lasthit = Config.AddSubMenu("LastHit Sharp", "lHit");
                lasthit.Add("useQlh", new CheckBox("Use Q"));
                lasthit.Add("useElh", new CheckBox("Use E"));

                //LaneClear
                laneclear = Config.AddSubMenu("LaneClear Sharp", "lClear");
                laneclear.Add("useQlc", new CheckBox("Use Q"));
                laneclear.Add("useEmpQHit", new Slider("Emp Q Min hit", 3, 1, 6));
                laneclear.Add("useElc", new CheckBox("Use E"));

                //Harass
                harass = Config.AddSubMenu("Harass Sharp", "harass");
                harass.Add("harassTower", new CheckBox("Harass under tower", false));
                harass.Add("harassOn", new CheckBox("Harass enemies"));
                harass.Add("harQ3Only", new CheckBox("Use only Q3", false));

                //Drawings
                drawings = Config.AddSubMenu("Drawing Sharp", "drawing");
                drawings.Add("disDraw", new CheckBox("Dissabel drawing", false));
                drawings.Add("drawQ", new CheckBox("Draw Q range"));
                drawings.Add("drawE", new CheckBox("Draw E range"));
                drawings.Add("drawR", new CheckBox("Draw R range"));
                drawings.Add("drawWJ", new CheckBox("Draw Wall Jumps"));

                //Extra
                extra = Config.AddSubMenu("Extra Sharp", "extra");
                extra.Add("djTur", new CheckBox("Dont Jump turrets"));
                extra.Add("autoLevel", new CheckBox("Auto Level"));
                extra.Add("levUpSeq", new ComboBox("Sequence : ", 0, "Q E W Q start", "Q E Q W start"));

                //SmartW
                smartW = Config.AddSubMenu("Wall Usage", "aShots");
                smartW.Add("smartW", new CheckBox("Smart WW"));

                //Debug
                debug = Config.AddSubMenu("Debug", "debug");
                debug.Add("WWLast", new KeyBind("Print last ww blocked", false, KeyBind.BindTypes.HoldActive, 'T'));
                debug.Add("saveDash", new KeyBind("saveDashd", false, KeyBind.BindTypes.HoldActive, 'O'));
                debug.Add("exportDash", new KeyBind("export dashes", false, KeyBind.BindTypes.HoldActive, 'P'));
                debug.Add("deleteDash", new KeyBind("deleteLastDash", false, KeyBind.BindTypes.HoldActive, 'I'));

                Valvrave_Sharp.Program.MainA();

                Drawing.OnDraw += onDraw;
                Game.OnUpdate  += OnGameUpdate;

                GameObject.OnCreate            += OnCreateObject;
                GameObject.OnDelete            += OnDeleteObject;
                Obj_AI_Base.OnProcessSpellCast += OnProcessSpell;
                Spellbook.OnStopCast           += onStopCast;
                CustomEvents.Unit.OnLevelUp    += OnLevelUp;

                Game.OnSendPacket    += OnGameSendPacket;
                Game.OnProcessPacket += OnGameProcessPacket;
            }
            catch
            {
                Chat.Print("Oops. Something went wrong with Yasuo - Sharpino");
            }
        }
Ejemplo n.º 8
0
        private static void OnGameUpdate(EventArgs args)
        {
            try
            {
                Yasuo.Q.SetSkillshot(Yasuo.getNewQSpeed(), 50f, float.MaxValue, false, SkillshotType.SkillshotLine);

                if (Yasuo.startDash + 470000 / ((700 + Yasuo.Player.MoveSpeed)) < Environment.TickCount && Yasuo.isDashigPro)
                {
                    Yasuo.isDashigPro = false;
                }

                //updateSkillshots();
                //Remove the detected skillshots that have expired.

                AIHeroClient target = TargetSelector.GetTarget((Yasuo.E.IsReady()) ? 1500 : 475, DamageType.Physical);
                if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Combo))
                {
                    Yasuo.doCombo(target);
                }

                if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LastHit))
                {
                    Yasuo.doLastHit(target);
                    Yasuo.useQSmart(target);
                }

                if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Harass))
                {
                    Yasuo.doLastHit(target);
                    Yasuo.useQSmart(target);
                }

                if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.LaneClear) || Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.JungleClear))
                {
                    Yasuo.doLaneClear(target);
                }

                if (Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.Flee))
                {
                    Yasuo.fleeToMouse();
                    Yasuo.stackQ();
                }

                if (debug["saveDash"].Cast <KeyBind>().CurrentValue&& canSave)
                {
                    Yasuo.saveLastDash();
                    canSave = false;
                }
                else
                {
                    canSave = true;
                }

                if (debug["deleteDash"].Cast <KeyBind>().CurrentValue&& canDelete)
                {
                    if (Yasuo.dashes.Count > 0)
                    {
                        Yasuo.dashes.RemoveAt(Yasuo.dashes.Count - 1);
                    }
                    canDelete = false;
                }
                else
                {
                    canDelete = true;
                }
                if (debug["exportDash"].Cast <KeyBind>().CurrentValue&& canExport)
                {
                    using (var file = new System.IO.StreamWriter(@"C:\YasuoDashes.txt"))
                    {
                        foreach (var dash in Yasuo.dashes)
                        {
                            string dashS = "dashes.Add(new YasDash(new Vector3(" +
                                           dash.from.X.ToString("0.00").Replace(',', '.') + "f," +
                                           dash.from.Y.ToString("0.00").Replace(',', '.') + "f," +
                                           dash.from.Z.ToString("0.00").Replace(',', '.') +
                                           "f),new Vector3(" + dash.to.X.ToString("0.00").Replace(',', '.') + "f," +
                                           dash.to.Y.ToString("0.00").Replace(',', '.') + "f," +
                                           dash.to.Z.ToString("0.00").Replace(',', '.') + "f)));";
                            //new YasDash(new Vector3(X,Y,Z),new Vector3(X,Y,Z))

                            file.WriteLine(dashS);
                        }
                        file.Close();
                    }

                    canExport = false;
                }
                else
                {
                    canExport = true;
                }

                if (debug["WWLast"].Cast <KeyBind>().CurrentValue)
                {
                    Console.WriteLine("Last WW skill blocked: " + lastSpell);
                    Chat.Print("Last WW skill blocked: " + lastSpell);
                }

                if (harass["harassOn"].Cast <CheckBox>().CurrentValue&& Orbwalker.ActiveModesFlags.HasFlag(Orbwalker.ActiveModes.None))
                {
                    if (target != null)
                    {
                        Yasuo.useQSmart(target, harass["harQ3Only"].Cast <CheckBox>().CurrentValue);
                    }
                }

                if (smartR["smartR"].Cast <CheckBox>().CurrentValue&& Yasuo.R.IsReady())
                {
                    Yasuo.useRSmart();
                }
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex);
            }
        }
Ejemplo n.º 9
0
        private static void onLoad(EventArgs args)
        {
            if (ObjectManager.Player.ChampionName != CharName)
            {
                return;
            }

            Yasuo.setSkillShots();
            Yasuo.setDashes();
            Yasuo.point1 = Yasuo.Player.Position;
            Game.PrintChat("YasuoSharpV2 by DeTuKs");

            try
            {
                Config = new Menu("鐒$偤姹夊寲-浜氱储", "Yasuo", true);
                //Orbwalker
                Config.AddSubMenu(new Menu("璧扮爫", "Orbwalker"));
                Orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalker"));
                //TS
                var TargetSelectorMenu = new Menu("鐩爣閫夋嫨", "Target Selector");
                SimpleTs.AddToMenu(TargetSelectorMenu);
                Config.AddSubMenu(TargetSelectorMenu);
                //Combo
                Config.AddSubMenu(new Menu("杩炴嫑", "combo"));
                Config.SubMenu("combo").AddItem(new MenuItem("comboItems", "浣跨敤鐐圭噧")).SetValue(true);
                //SmartR
                Config.SubMenu("combo").AddItem(new MenuItem("smartR", "鏅鸿兘 R")).SetValue(true);
                Config.SubMenu("combo").AddItem(new MenuItem("useRHit", "浣跨敤 R 濡傛灉鍑讳腑")).SetValue(new Slider(3, 5, 1));
                Config.SubMenu("combo").AddItem(new MenuItem("useRHitTime", "褰撹钀藉湴鏃朵娇鐢副R")).SetValue(true);
                Config.SubMenu("combo").AddItem(new MenuItem("useEWall", "瀹夊叏浣跨敤 E ")).SetValue(true);
                //Flee away
                Config.SubMenu("combo").AddItem(new MenuItem("flee", "浣跨敤E閫冭窇")).SetValue(new KeyBind('Z', KeyBindType.Press, false));
                Config.SubMenu("combo").AddItem(new MenuItem("fleeStack", "閫冭窇鏃跺彔鍔燪")).SetValue(true);


                //LastHit
                Config.AddSubMenu(new Menu("琛ュ叺", "lHit"));
                Config.SubMenu("lHit").AddItem(new MenuItem("useQlh", "浣跨敤 Q")).SetValue(true);
                Config.SubMenu("lHit").AddItem(new MenuItem("useElh", "浣跨敤 E")).SetValue(true);
                //LaneClear
                Config.AddSubMenu(new Menu("娓呭叺", "lClear"));
                Config.SubMenu("lClear").AddItem(new MenuItem("useQlc", "浣跨敤 Q")).SetValue(true);
                Config.SubMenu("lClear").AddItem(new MenuItem("useEmpQHit", "灏忓叺鏈€灏戞暟閲忥副")).SetValue(new Slider(3, 6, 1));
                Config.SubMenu("lClear").AddItem(new MenuItem("useElc", "浣跨敤 E")).SetValue(true);
                //Harass
                Config.AddSubMenu(new Menu("楠氭壈", "harass"));
                Config.SubMenu("harass").AddItem(new MenuItem("harassTower", "濉斾笅楠氭壈")).SetValue(false);
                Config.SubMenu("harass").AddItem(new MenuItem("harassOn", "楠氭壈鏁屼汉")).SetValue(true);
                Config.SubMenu("harass").AddItem(new MenuItem("harQ3Only", "鍙娇Q3")).SetValue(false);
                //Drawings
                Config.AddSubMenu(new Menu("鑼冨洿", "drawing"));
                Config.SubMenu("drawing").AddItem(new MenuItem("disDraw", "鍏ㄩ儴鍏抽棴")).SetValue(false);
                Config.SubMenu("drawing").AddItem(new MenuItem("drawQ", "Q鑼冨洿")).SetValue(true);
                Config.SubMenu("drawing").AddItem(new MenuItem("drawE", "E鑼冨洿")).SetValue(true);
                Config.SubMenu("drawing").AddItem(new MenuItem("drawR", "R鑼冨洿")).SetValue(true);
                Config.SubMenu("drawing").AddItem(new MenuItem("drawWJ", "鏄剧ず鍙┛瓒婄殑澧欙副")).SetValue(true);

                //Extra
                Config.AddSubMenu(new Menu("棰濆", "extra"));
                Config.SubMenu("extra").AddItem(new MenuItem("djTur", "涓嶈璺宠繘濉旓副")).SetValue(true);
                Config.SubMenu("extra").AddItem(new MenuItem("autoLevel", "鑷姩鍔犵偣")).SetValue(true);
                Config.SubMenu("extra").AddItem(new MenuItem("levUpSeq", "")).SetValue(new StringList(new string[2] {
                    "Q E W Q start", "Q E Q W start"
                }));

                //LastHit
                Config.AddSubMenu(new Menu("椋庡", "aShots"));
                //SmartW
                Config.SubMenu("aShots").AddItem(new MenuItem("smartW", "鍙兘浣跨敤W")).SetValue(true);
                Config.SubMenu("aShots").AddItem(new MenuItem("smartEDogue", "E 浣跨敤 dogue")).SetValue(true);
                Config.SubMenu("aShots").AddItem(new MenuItem("wwDanger", "WW 鍙翰鍗遍櫓鎶€鑳斤副")).SetValue(false);
                Config.SubMenu("aShots").AddItem(new MenuItem("wwDmg", "瑙﹀彂WW 琛€閲忎綆浜庯副")).SetValue(new Slider(0, 100, 1));
                skillShotMenu = getSkilshotMenu();
                Config.SubMenu("aShots").AddSubMenu(skillShotMenu);
                //Debug
                Config.AddSubMenu(new Menu("璋冭瘯", "debug"));
                Config.SubMenu("debug").AddItem(new MenuItem("WWLast", "Print last ww blocked")).SetValue(new KeyBind('T', KeyBindType.Press, false));
                Config.SubMenu("debug").AddItem(new MenuItem("saveDash", "saveDashd")).SetValue(new KeyBind('O', KeyBindType.Press, false));
                Config.SubMenu("debug").AddItem(new MenuItem("exportDash", "export dashes")).SetValue(new KeyBind('P', KeyBindType.Press, false));
                Config.SubMenu("debug").AddItem(new MenuItem("deleteDash", "deleteLastDash")).SetValue(new KeyBind('I', KeyBindType.Press, false));

                Config.AddSubMenu(new Menu("鐒$偤姹夊寲", "by wuwei"));
                Config.SubMenu("by wuwei").AddItem(new MenuItem("qunhao", "姹夊寲缇わ細386289593"));
                Config.SubMenu("by wuwei").AddItem(new MenuItem("qunhao2", "濞冨▋缇わ細158994507"));

                Config.AddToMainMenu();
                Drawing.OnDraw    += onDraw;
                Game.OnGameUpdate += OnGameUpdate;

                GameObject.OnCreate            += OnCreateObject;
                GameObject.OnDelete            += OnDeleteObject;
                Obj_AI_Base.OnProcessSpellCast += OnProcessSpell;
                CustomEvents.Unit.OnLevelUp    += OnLevelUp;

                Game.OnGameSendPacket    += OnGameSendPacket;
                Game.OnGameProcessPacket += OnGameProcessPacket;

                SkillshotDetector.OnDetectSkillshot += OnDetectSkillshot;
                SkillshotDetector.OnDeleteMissile   += OnDeleteMissile;
            }
            catch
            {
                Game.PrintChat("Oops. Something went wrong with Yasuo - Sharpino");
            }
        }