private static void OnGameUpdate(EventArgs args) { if (Config.Item("debugOn").GetValue <MenuKeyBind>().Active) //fullDMG { foreach (var buf in MasterYi.player.Buffs) { Console.WriteLine(buf.Name); } } if (Orbwalker.ActiveMode == OrbwalkerMode.Combo) { AIHeroClient target = TargetSelector.GetTarget(800); Orbwalker.ForceTarget = target; if (target != null) { MasterYi.selectedTarget = target; } MasterYi.slayMaderDuker(target); } //anti buferino foreach (var buf in MasterYi.player.Buffs) { TargetedSkills.TargSkill skill = TargetedSkills.dagerousBuffs.FirstOrDefault(ob => ob.sName.ToLower() == buf.Name.ToLower()); if (skill != null) { // Console.WriteLine("Evade: " + buf.Name); MasterYi.evadeBuff(buf, skill); } // if(buf.EndTime-Game.Time<0.2f) } }
public MasterSharp() { Game.Print("MasterYi - by DeTuKs"); MasterYi.setSkillShots(); TargetedSkills.setUpSkills(); Config = new Menu("MasterYi", "MasterYi - Sharp", true); //TS //Combo Config.AddSubMenu(new Menu("combo", "Combo Sharp")); Config.SubMenu("combo").Add(new MenuBool("comboItems", "Meh everything is fine here")); Config.SubMenu("combo").Add(new MenuBool("comboWreset", "AA reset W")); Config.SubMenu("combo").Add(new MenuBool("useQ", "Use Q to gap")); Config.SubMenu("combo").Add(new MenuBool("useE", "Use E")); Config.SubMenu("combo").Add(new MenuBool("useR", "Use R")); Config.SubMenu("combo").Add(new MenuBool("useSmite", "Use Smite")); //Extra Config.AddSubMenu(new Menu("extra", "Extra Sharp")); Config.SubMenu("extra").Add(new MenuBool("packets", "Use Packet cast")).SetValue(false); Config.AddSubMenu(new Menu("aShots", "Anti Skillshots")); //SmartW Config.SubMenu("aShots").Add(new MenuBool("smartW", "Smart W if cantQ")); Config.SubMenu("aShots").Add(new MenuBool("smartQDogue", "Q use evade")); Config.SubMenu("aShots").Add(new MenuSlider("useWatHP", "use W below HP")).SetValue(new Slider(100, 0, 100)); Config.SubMenu("aShots").Add(new MenuBool("wqOnDead", "W or Q if will kill")).SetValue(false); //Debug Config.AddSubMenu(new Menu("draw", "Drawing")); Config.SubMenu("draw").Add(new MenuBool("drawCir", "Draw circles")); Config.SubMenu("draw").Add(new MenuKeyBind("debugOn", "Debug stuff", Keys.A, KeyBindType.Press)); Config.Attach(); Drawing.OnDraw += onDraw; EnsoulSharp.SDK.Events.Tick.OnTick += OnGameUpdate; AIBaseClient.OnDoCast += OnProcessSpell; //Game.OnProcessPacket += OnGameProcessPacket; Dash.OnDash += onDash; Orbwalker.OnAction += afterAttack; }
public static void OnProcessSpell(AIBaseClient obj, AIBaseClientProcessSpellCastEventArgs arg) { if (obj.IsEnemy && obj is AIHeroClient) { //Game.Print("Casted: " + arg.SData.Name); if (arg.Target != null && arg.Target.NetworkId == MasterYi.player.NetworkId) { //Console.WriteLine(arg.SData.Name); if (obj is AIHeroClient) { var hero = (AIHeroClient)obj; //Game.Print("Has1: " + arg.SData.Name); var spellSlot = (hero.GetSpellSlot(arg.SData.Name)); TargetedSkills.TargSkill skill = TargetedSkills.targetedSkillsAll.FirstOrDefault(ob => ob.sName == arg.SData.Name); if (skill != null) { //Game.Print("Evade: " + arg.SData.Name); MasterYi.evadeDamage(skill.useQ, skill.useW, arg, skill.delay); return; } } } if (arg.End.DistanceToPlayer() < arg.SData.CastRadius / 2) { var hero = (AIHeroClient)obj; //Game.Print("Has: " + arg.SData.Name); TargetedSkills.TargSkill skill = TargetedSkills.targetedSkillsAll.FirstOrDefault(ob => ob.sName == arg.SData.Name); if (skill != null) { //Game.Print("Evade: " + arg.SData.Name); MasterYi.evadeDamage(skill.useQ, skill.useW, arg, skill.delay); return; } } } }