private static void onLoad(EventArgs args) { Game.PrintChat("Talon - Sharp by DeTuKs"); try { Config = new Menu("Talon - Sharp", "Talon", true); //Orbwalker Config.AddSubMenu(new Menu("Orbwalker", "Orbwalker")); Talon.orbwalker = new Orbwalking.Orbwalker(Config.SubMenu("Orbwalker")); //TS var TargetSelectorMenu = new Menu("Target Selector", "Target Selector"); SimpleTs.AddToMenu(TargetSelectorMenu); Config.AddSubMenu(TargetSelectorMenu); //Combo Config.AddSubMenu(new Menu("Combo Sharp", "combo")); Config.SubMenu("combo").AddItem(new MenuItem("comboItems", "Use Items")).SetValue(true); //LastHit Config.AddSubMenu(new Menu("LastHit Sharp", "lHit")); //LaneClear Config.AddSubMenu(new Menu("LaneClear Sharp", "lClear")); //Harass Config.AddSubMenu(new Menu("Harass Sharp", "harass")); Config.SubMenu("harass").AddItem(new MenuItem("harHard", "Hard harass")).SetValue(new KeyBind('T', KeyBindType.Press, false)); Config.SubMenu("harass").AddItem(new MenuItem("smaHard", "Small harass")).SetValue(new KeyBind('A', KeyBindType.Press, false)); //Extra Config.AddSubMenu(new Menu("Extra Sharp", "extra")); Config.SubMenu("extra").AddItem(new MenuItem("drawHp", "Draw pred hp")).SetValue(true); //Debug Config.AddSubMenu(new Menu("Debug", "debug")); Config.SubMenu("debug").AddItem(new MenuItem("db_targ", "Debug Target")).SetValue(new KeyBind('N', KeyBindType.Press, false)); Config.AddToMainMenu(); Drawing.OnDraw += onDraw; Drawing.OnEndScene += OnEndScene; Game.OnGameUpdate += OnGameUpdate; GameObject.OnCreate += OnCreateObject; GameObject.OnDelete += OnDeleteObject; Obj_AI_Base.OnProcessSpellCast += OnProcessSpell; Orbwalking.OnAttack += AfterAttack; Game.OnGameProcessPacket += OnGameProcessPacket; Talon.setSkillshots(); } catch { Game.PrintChat("Oops. Something went wrong with Yasuo- Sharpino"); } }
private static void OnEndScene(EventArgs args) { if (Config.Item("drawHp").GetValue <bool>()) { foreach (var enemy in ObjectManager.Get <Obj_AI_Hero>().Where(ene => !ene.IsDead && ene.IsEnemy && ene.IsVisible)) { hpi.unit = enemy; hpi.drawDmg(Talon.getFullComboDmg(enemy), Color.Yellow); } } }
private static void OnGameUpdate(EventArgs args) { if (useQ && Talon.Q.IsReady()) { Talon.Q.Cast(); } if (!Talon.Q.IsReady()) { useQ = false; } Obj_AI_Hero target = SimpleTs.GetTarget(750, SimpleTs.DamageType.Physical); if (Talon.orbwalker.ActiveMode.ToString() == "Combo") { Talon.doCombo(target); } if (Talon.orbwalker.ActiveMode.ToString() == "Mixed") { //Console.WriteLine("Skill name: "+Talon.Rdata.Name); // foreach (var buf in target.Buffs) // { // Console.WriteLine("buf: "+buf.Name); // } } if (Talon.orbwalker.ActiveMode.ToString() == "LaneClear") { // Console.WriteLine("Qbleed dmg " + Talon.getTargetBleedDmg(target)); } if (Config.Item("harHard").GetValue <KeyBind>().Active) { Talon.doHarassHard(target); } if (Config.Item("smaHard").GetValue <KeyBind>().Active) { Talon.doHarassSmall(target); } if (Config.Item("harassOn").GetValue <bool>() && Talon.orbwalker.ActiveMode.ToString() == "None") { } }