Exemple #1
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);
            }
        }
Exemple #2
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);
            }
        }
Exemple #3
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);
            }
        }