public static void Initialize() { _Q = new Spell(SpellSlot.Q, 925); _Q.SetSkillshot(.25f, 70f, 2000f, false, SkillshotType.SkillshotLine); _W = new Spell(SpellSlot.W, 900); _W.SetSkillshot(1.25f, 225f, float.MaxValue, false, SkillshotType.SkillshotCircle); _R = new Spell(SpellSlot.R, 650); }
public static void initSpells() { internalQ = new Spell(SpellSlot.Q, 260f); internalW = new Spell(SpellSlot.W, 125f); internalE = new Spell(SpellSlot.E, 325f); internalR = new Spell(SpellSlot.R, 900f); internalR.SetSkillshot(0.25f,200f,1600f,false,SkillshotType.SkillshotCone); }
public static void initSpells() { internalQ = new Spell(SpellSlot.Q, 625f); internalW = new Spell(SpellSlot.W, 625f); internalE = new Spell(SpellSlot.E, 0f); internalR = new Spell(SpellSlot.R, 600f); internalW.SetSkillshot(0.5f, 250f, float.MaxValue, false, SkillshotType.SkillshotCone); internalR.SetSkillshot(0.2f, 250f, float.MaxValue, false, SkillshotType.SkillshotCircle); }
public static void Initialize() { _Q = new Spell(SpellSlot.Q, 1200); _Q.SetSkillshot(0.25f, 60f, 2000f, true, SkillshotType.SkillshotLine); _W = new Spell(SpellSlot.W, 1000); _W.SetSkillshot(0.25f, 80f, 1600f, false, SkillshotType.SkillshotLine); _E = new Spell(SpellSlot.E, 475); _R = new Spell(SpellSlot.R, float.MaxValue); _R.SetSkillshot(1f, 160f, 2000f, false, SkillshotType.SkillshotLine); }
public jumpingKalista() { Bootstrap.Init(null); Q = new Spell(SpellSlot.Q, 1200); W = new Spell(SpellSlot.W, 5000); E = new Spell(SpellSlot.E, 1000); R = new Spell(SpellSlot.R, 1500); Q.SetSkillshot(0.35f, 40, 2400, true, SkillshotType.SkillshotLine); createMenu(); Notifications.Add(readyToUse); Drawing.OnDraw += OnDraw; Game.OnUpdate += OnUpdate; }
public Yasuo() { Q = new Spell(SpellSlot.Q, 500); Q2 = new Spell(SpellSlot.Q, 1150); W = new Spell(SpellSlot.W, 400); E = new Spell(SpellSlot.E, 475); R = new Spell(SpellSlot.R, 1300); Q.SetSkillshot(GetQ12Delay, 20, float.MaxValue, false, SkillshotType.SkillshotLine); Q2.SetSkillshot(GetQ3Delay, 90, 1500, false, SkillshotType.SkillshotLine); E.SetTargetted(0.05f, GetESpeed); Q.DamageType = Q2.DamageType = R.DamageType = DamageType.Physical; E.DamageType = DamageType.Magical; Q.MinHitChance = Q2.MinHitChance = HitChance.VeryHigh; var orbwalkMenu = MainMenu.Add(new Menu("Orbwalk", "Orbwalk")); { orbwalkMenu.Separator("Q: Always On"); orbwalkMenu.Separator("Sub Settings"); orbwalkMenu.Bool("Ignite", "Use Ignite"); orbwalkMenu.Bool("Item", "Use Item"); orbwalkMenu.Separator("E Gap Settings"); orbwalkMenu.Bool("EGap", "Use E"); orbwalkMenu.List("EMode", "Follow Mode", new[] { "Enemy", "Mouse" }); orbwalkMenu.Slider("ERange", "If Distance >", 300, 0, (int)E.Range); orbwalkMenu.Bool("ETower", "Under Tower"); orbwalkMenu.Bool("EStackQ", "Stack Q While Gap", false); orbwalkMenu.Separator("R Settings"); orbwalkMenu.Bool("R", "Use R"); orbwalkMenu.Bool("RDelay", "Delay Casting"); orbwalkMenu.Slider("RHpU", "If Enemy Hp < (%)", 60); orbwalkMenu.Slider("RCountA", "Or Enemy >=", 2, 1, 5); } var hybridMenu = MainMenu.Add(new Menu("Hybrid", "Hybrid")); { hybridMenu.Separator("Q: Always On"); hybridMenu.Bool("Q3", "Also Q3"); hybridMenu.Bool("QLastHit", "Last Hit (Q1/2)"); hybridMenu.Separator("Auto Q Settings"); hybridMenu.KeyBind("AutoQ", "KeyBind", Keys.T, KeyBindType.Toggle); hybridMenu.Bool("AutoQ3", "Also Q3", false); } var lcMenu = MainMenu.Add(new Menu("LaneClear", "Lane Clear")); { lcMenu.Separator("Q: Always On"); lcMenu.Bool("Q3", "Also Q3"); lcMenu.Separator("E Settings"); lcMenu.Bool("E", "Use E"); lcMenu.Bool("ELastHit", "Last Hit Only", false); lcMenu.Bool("ETower", "Under Tower", false); } var farmMenu = MainMenu.Add(new Menu("Farm", "Farm")); { farmMenu.Separator("Q Settings"); farmMenu.Bool("Q", "Use Q"); farmMenu.Bool("Q3", "Also Q3", false); farmMenu.Separator("E Settings"); farmMenu.Bool("E", "Use E"); farmMenu.Bool("ETower", "Under Tower", false); } var ksMenu = MainMenu.Add(new Menu("KillSteal", "Kill Steal")); { ksMenu.Bool("Q", "Use Q"); ksMenu.Bool("E", "Use E"); ksMenu.Bool("R", "Use R"); ksMenu.Separator("Extra R Settings"); foreach (var enemy in GameObjects.EnemyHeroes) { ksMenu.Bool("RCast" + enemy.ChampionName, "Cast On " + enemy.ChampionName, false); } } var fleeMenu = MainMenu.Add(new Menu("Flee", "Flee")); { fleeMenu.KeyBind("E", "Use E", Keys.C); fleeMenu.Bool("Q", "Stack Q While Dash"); } if (GameObjects.EnemyHeroes.Any()) { Evade.Init(); EvadeTarget.Init(); } var drawMenu = MainMenu.Add(new Menu("Draw", "Draw")); { drawMenu.Bool("Q", "Q Range"); drawMenu.Bool("E", "E Range", false); drawMenu.Bool("R", "R Range"); drawMenu.Bool("StackQ", "Auto Stack Q Status"); } MainMenu.KeyBind("StackQ", "Auto Stack Q", Keys.Z, KeyBindType.Toggle); Evade.Evading += Evading; Evade.TryEvading += TryEvading; Game.OnUpdate += OnUpdate; Drawing.OnDraw += OnDraw; Obj_AI_Base.OnPlayAnimation += (sender, args) => { if (!sender.IsMe || args.Animation != "Spell3") { return; } isDashing = true; DelayAction.Add( 300, () => { if (Player.IsDashing()) { isDashing = false; } }); DelayAction.Add(450, () => isDashing = false); }; }
private static void Game_OnGameStart(EventArgs args) { if (Player.ChampionName != "Thresh") return; _logger = new StreamWriter(AppDomain.CurrentDomain.BaseDirectory + @"\log.txt") { AutoFlush = true }; _q = new Spell(SpellSlot.Q, 1100); _q.SetSkillshot(true, SkillshotType.SkillshotLine); _config = new Menu("Prediction", "Prediction", true); _orbwalker = new Orbwalker(); Menu settings = new Menu("Settings", "Settings"); settings.Add(new MenuKeyBind("Write", "Write Last Cast information to log", System.Windows.Forms.Keys.L, KeyBindType.Press)); settings.Add(new MenuSeparator("Info", "Log files are located in %appdata%")); _config.Add(settings); _config.Attach(); Game.OnUpdate += Game_OnUpdate; Drawing.OnDraw += Drawing_OnDraw; }
public static void OnLoad(object sender, EventArgs e) { if (Player.ChampionName != ChampName) return; Q = new Spell(SpellSlot.Q, 865); Qn = new Spell(SpellSlot.Q, 865); W = new Spell(SpellSlot.W, 585); E = new Spell(SpellSlot.E, 585); R = new Spell(SpellSlot.R); Q.SetSkillshot(0.26f, 50f, 1700f, true, SkillshotType.SkillshotLine); Qn.SetSkillshot(0.26f, 50f, 1700f, false, SkillshotType.SkillshotLine); abilitySequence = new int[] {1, 2, 3, 1, 1, 4, 1, 2, 1, 2, 4, 3, 2, 2, 3, 4, 3, 3}; Config = new Menu("Slutty Ryze", "Slutty Ryze", true); LeagueSharp.SDK.Core.Bootstrap.Init(null); //This will be a loader functionality later on var comboMenu = new Menu("combo", "Combo Settings"); var combodefaultMenu = new Menu("combos", "Spells"); { combodefaultMenu.Add(new MenuBool("useQ", "Use Q", true)); combodefaultMenu.Add(new MenuBool("useW", "Use W", true)); combodefaultMenu.Add(new MenuBool("useE", "Use E", true)); combodefaultMenu.Add(new MenuBool("useR", "Use R")); combodefaultMenu.Add(new MenuBool("useRww", "Use R Only when Rooted", true)); comboMenu.Add(combodefaultMenu); } var combooptionsMenu = new Menu("combooptions", "Combo Options"); { combooptionsMenu.Add(new MenuBool("AAblock", "Auto Attack Block", true)); combooptionsMenu.Add(new MenuList<string>("comboooptions", "Combo Mode", new[] { "Stable", "Beta Combo" })); comboMenu.Add(combooptionsMenu); } Config.Add(comboMenu); var hybridMenu = new Menu("hybrid", "Hybrid"); { hybridMenu.Add(new MenuBool("nospell", "Don't Proc Passive", true)); hybridMenu.Add(new MenuBool("useQm", "Use Q", true)); hybridMenu.Add(new MenuBool("useQml", "Use Q Last Hit", true)); hybridMenu.Add(new MenuBool("useWm", "Use W", true)); hybridMenu.Add(new MenuBool("useEm", "Use E", true)); hybridMenu.Add(new MenuBool("UseQauto", "Auto Q")); hybridMenu.Add(new MenuSlider("mMin", "Minimum Mana For Spells", 40)); Config.Add(hybridMenu); } var clearMenu = new Menu("laneclear", "Clear"); var laneMenu = new Menu("laneeclear", "Lane Clear (V)"); { laneMenu.Add(new MenuSlider("minmana", "Minimum Mana For Spells", 40)); laneMenu.Add(new MenuBool("useq2L", "Use Q", true)); laneMenu.Add(new MenuBool("usew2L", "Use W", true)); laneMenu.Add(new MenuBool("usee2L", "Use E", true)); laneMenu.Add(new MenuBool("user2L", "Use R", true)); laneMenu.Add(new MenuBool("useQlc", "Use Q Last hit", true)); laneMenu.Add(new MenuBool("useWlc", "Use W Last hit", true)); laneMenu.Add(new MenuBool("useElc", "Use E Last Hit", true)); // laneMenu.Add(new MenuSlider("useRl", "Use R When X Minions", 1,3,20)); laneMenu.Add(new MenuBool("spellblock", "Don't Use Spells when to pop passive")); clearMenu.Add(laneMenu); } var lasthitMenu = new Menu("lasthit", "Last Hit (X)"); { lasthitMenu.Add(new MenuBool("useQ2l", "Use Q Last hit", true)); lasthitMenu.Add(new MenuBool("useW2l", "Use W Last hit", true)); lasthitMenu.Add(new MenuBool("useE2l", "Use E Last Hit", true)); clearMenu.Add(lasthitMenu); } Config.Add(clearMenu); /* var potionMenu = new Menu("autoP", "Auto Potions"); { potionMenu.Add(new MenuBool("autoPO", "Auto Health Potion", true)); potionMenu.Add(new MenuBool("HP", "Auto Health Potion", true)); potionMenu.Add(new MenuSlider("HPSlider", "Minimum %Health for Potion", 30)); potionMenu.Add(new MenuBool("Mana", "Auto Mana Potion", true)); potionMenu.Add(new MenuSlider("MANASlider", "Minimum %Mana for Potion", 30)); potionMenu.Add(new MenuBool("Biscuit", "Auto Biscuit", true)); potionMenu.Add(new MenuSlider("bSlider", "Minimum %Health for Biscuit", 30)); potionMenu.Add(new MenuBool("flask", "Auto Flask", true)); potionMenu.Add(new MenuSlider("fSlider", "Minimum %Health for flask", 30)); } Config.Add(potionMenu); */ var miscMenu = new Menu("misc", "Miscellaneous"); { miscMenu.Add(new MenuBool("useW2I", "Interrupt With W", true)); miscMenu.Add(new MenuBool("useQW2D", "Use W/Q On Dashing", true)); miscMenu.Add(new MenuBool("level", "Auto Skill Level Up", true)); miscMenu.Add(new MenuBool("autow", "Auto W enemy under turre", true)); Config.Add(miscMenu); } /* var passiveMenu = new Menu("passive", "Passive Stack"); { passiveMenu.Add(new MenuBool("autoPassive", "Passive Stack")) } */ var drawMenu = new Menu("draw", "Drawings"); { drawMenu.Add(new MenuBool("qDraw", "Draw Q", true)); drawMenu.Add(new MenuBool("wDraw", "Draw W", true)); drawMenu.Add(new MenuBool("eDraw", "Draw E", true)); Config.Add(drawMenu); } Config.Attach(); Drawing.OnDraw += OnDraw; Game.OnUpdate += OnUpdate; InterruptableSpell.OnInterruptableTarget += Interruptable; // Dash.OnDash += Unit_Ondash; }
private static bool CastQ3(Obj_AI_Hero target = null) { var spellQ = new Spell(SpellSlot.Q, Q2.Range); spellQ.SetSkillshot(Q2.Delay, Q2.Width, Q2.Speed, true, Q2.Type); if (target != null) { var pred = spellQ.VPrediction(target, true, new[] { CollisionableObjects.YasuoWall }); if (pred.Hitchance >= Q2.MinHitChance && Q.Cast(pred.CastPosition)) { return true; } } else { int[] hit = { -1 }; var predPos = Vector3.Zero; foreach (var pred in GameObjects.EnemyHeroes.Where(i => i.IsValidTarget(Q2.Range)) .Select(i => spellQ.VPrediction(i, true, new[] { CollisionableObjects.YasuoWall })) .Where(i => i.Hitchance >= Q2.MinHitChance && i.AoeTargetsHitCount > hit[0])) { hit[0] = pred.AoeTargetsHitCount; predPos = pred.CastPosition; } if (predPos.IsValid() && Q.Cast(predPos)) { return true; } } return false; }
public TwistedFate() { Q = new Spell(SpellSlot.Q, 1400); W = new Spell(SpellSlot.W); E = new Spell(SpellSlot.E); R = new Spell(SpellSlot.R); Q.SetSkillshot(0.25f, 40, 1000, false, SkillshotType.SkillshotLine); Q.DamageType = W.DamageType = E.DamageType = DamageType.Magical; Q.MinHitChance = HitChance.High; Menu Combo = new Menu("Combo", "Combo"); { Bool(Combo, "Qc", "Q", true); Bool(Combo, "Qafterattackc", "Q after attack", true); Bool(Combo, "Qimmobilec", "Q on immobile", true); Slider(Combo, "Qhitc", "Q if will hit", 2, 1, 3); Bool(Combo, "Wc", "W", true); Bool(Combo, "pickgoldc", "Pick gold card while using R", true); Bool(Combo, "dontpickyellow1stc", "don't pick gold at 1st turn", false); MainMenu.Add(Combo); } Menu Harass = new Menu("Harass", "Harass"); { Bool(Harass, "Qh", "Q", true); Bool(Harass, "Qafterattackh", "Q after attack", true); Bool(Harass, "Qimmobileh", "Q on immobile", true); Slider(Harass, "Qhith", "Q if will hit", 2, 1, 3); Bool(Harass, "Wh", "W", true); List(Harass, "Wcolorh", "W card type", new[] { "blue", "red", "gold" }); Slider(Harass, "manah", "Min mana", 40, 0, 100); MainMenu.Add(Harass); } Menu Clear = new Menu("Clear", "Clear"); { Bool(Clear, "Qj", "Q", true); Slider(Clear, "Qhitj", "Q if will hit", 2, 1, 3); Bool(Clear, "Wj", "W", true); List(Clear, "Wcolorj", "W card type", new[] { "blue", "red" }); Slider(Clear, "wmanaj", "mana only W blue", 0, 0, 100); Slider(Clear, "manaj", "Min mana", 40, 0, 100); MainMenu.Add(Clear); } Menu Auto = new Menu("Auto", "Auto"); { Bool(Auto, "throwyellowa", "gapclose + interrupt: throw gold card", true); Bool(Auto, "killsteala", "KillSteal Q", true); MainMenu.Add(Auto); } Menu Helper = new Menu("Helper", "Pick card Helper"); { Bool(Helper, "enableh", "Enabale", true); KeyBind(Helper, "pickyellowh", "Pick Yellow", Keys.W,KeyBindType.Toggle); KeyBind(Helper, "pickblueh", "Pick Blue", Keys.G,KeyBindType.Toggle); KeyBind(Helper, "pickredh", "Pick Red", Keys.H,KeyBindType.Toggle); MainMenu.Add(Helper); } Menu drawMenu = new Menu("Draw", "Draw"); { Bool(drawMenu, "Qd", "Q"); Bool(drawMenu, "Rd", "R"); Bool(drawMenu, "Hpd", "Damage Indicator"); MainMenu.Add(drawMenu); } drawMenu.MenuValueChanged += drawMenu_MenuValueChanged; Game.OnUpdate += OnUpdate; Drawing.OnDraw += OnDraw; //Obj_AI_Base.OnProcessSpellCast += OnProcessSpellCast; //GameObject.OnCreate += OnCreate; Gapcloser.OnGapCloser += Gapcloser_OnGapCloser; InterruptableSpell.OnInterruptableTarget += InterruptableSpell_OnInterruptableTarget; Drawing.OnEndScene += Drawing_OnEndScene; Orb.OnAction += Orbwalker_OnAction; DamageIndicator.DamageToUnit = TwistedFateDamage; CustomDamageIndicator.Initialize(TwistedFateDamage); DamageIndicator.Enabled = drawhp; CustomDamageIndicator.Enabled = drawhp; }
public LeeSin() { Q = new Spell(SpellSlot.Q, 1100); Q2 = new Spell(SpellSlot.Q, 1300); W = new Spell(SpellSlot.W, 700); E = new Spell(SpellSlot.E, 400); E2 = new Spell(SpellSlot.E, 550); R = new Spell(SpellSlot.R, 375); Q.SetSkillshot(0.25f, 60, 1800, true, SkillshotType.SkillshotLine); W.SetTargetted(0.05f, 1400); R.SetTargetted(0.25f, 1500); Q.DamageType = Q2.DamageType = W.DamageType = R.DamageType = DamageType.Physical; E.DamageType = DamageType.Magical; Q.MinHitChance = HitChance.VeryHigh; Insec.Init(); var orbwalkMenu = MainMenu.Add(new Menu("Orbwalk", "Orbwalk")); { orbwalkMenu.KeyBind("Star", "Star Combo", Keys.X); orbwalkMenu.Bool("W", "Use W", false); orbwalkMenu.Bool("E", "Use E"); orbwalkMenu.Separator("Q Settings"); orbwalkMenu.Bool("Q", "Use Q"); orbwalkMenu.Bool("Q2", "-> Also Q2"); orbwalkMenu.Bool("QCol", "Smite Collision"); orbwalkMenu.Separator("R Settings"); orbwalkMenu.Bool("R", "Use R"); orbwalkMenu.Bool("RKill", "If Kill Enemy Behind"); orbwalkMenu.Slider("RCountA", "Or Hit Enemy Behind >=", 1, 1, 4); orbwalkMenu.Separator("Sub Settings"); orbwalkMenu.Bool("Ignite", "Use Ignite"); orbwalkMenu.Bool("Item", "Use Item"); } var farmMenu = MainMenu.Add(new Menu("Farm", "Farm")); { farmMenu.Bool("Q", "Use Q1"); } var ksMenu = MainMenu.Add(new Menu("KillSteal", "Kill Steal")); { ksMenu.Bool("Q", "Use Q"); ksMenu.Bool("E", "Use E"); ksMenu.Bool("R", "Use R"); ksMenu.Separator("Extra R Settings"); foreach (var enemy in GameObjects.EnemyHeroes) { ksMenu.Bool("RCast" + enemy.ChampionName, "Cast On " + enemy.ChampionName, false); } } var drawMenu = MainMenu.Add(new Menu("Draw", "Draw")); { drawMenu.Bool("Q", "Q Range", false); drawMenu.Bool("W", "W Range"); drawMenu.Bool("E", "E Range", false); drawMenu.Bool("R", "R Range", false); } MainMenu.KeyBind("FleeW", "Use W To Flee", Keys.C); Game.OnUpdate += OnUpdate; Drawing.OnDraw += args => { if (Player.IsDead) { return; } if (MainMenu["Draw"]["Q"] && Q.Level > 0) { Drawing.DrawCircle( Player.Position, (IsQOne ? Q : Q2).Range, Q.IsReady() ? Color.LimeGreen : Color.IndianRed); } if (MainMenu["Draw"]["W"] && W.Level > 0 && IsWOne) { Drawing.DrawCircle(Player.Position, W.Range, W.IsReady() ? Color.LimeGreen : Color.IndianRed); } if (MainMenu["Draw"]["E"] && E.Level > 0) { Drawing.DrawCircle( Player.Position, (IsEOne ? E : E2).Range, E.IsReady() ? Color.LimeGreen : Color.IndianRed); } if (MainMenu["Draw"]["R"] && R.Level > 0) { Drawing.DrawCircle(Player.Position, R.Range, R.IsReady() ? Color.LimeGreen : Color.IndianRed); } }; Obj_AI_Base.OnProcessSpellCast += (sender, args) => { if (!sender.IsMe) { return; } if (MainMenu["Orbwalk"]["Star"].GetValue<MenuKeyBind>().Active && args.SData.Name == "BlindMonkRKick" && E.IsReady() && IsEOne && HaveQ((Obj_AI_Hero)args.Target) && Player.Mana >= 80) { DelayAction.Add(R.Delay * 1000, () => E.Cast()); } }; }
public Ashe() { //Spell Q = new Spell(SpellSlot.Q); W = new Spell(SpellSlot.W, 1200f) { DamageType = DamageType.Physical }; E = new Spell(SpellSlot.E); R = new Spell(SpellSlot.R, 2500f) { DamageType = DamageType.Physical, MinHitChance = HitChance.High }; W.SetSkillshot(0.25f, 40f, 902f, true, SkillshotType.SkillshotLine); R.SetSkillshot(0.25f, 130f, 1600f, false, SkillshotType.SkillshotLine); //Menu Menu ComboMenu = new Menu("Combo", "Combo"); Menu HarassMenu = new Menu("Harass", "Harass"); Menu LaneClearMenu = new Menu("LaneClear", "LaneClear"); Menu JungleClearMenu = new Menu("JungleClear", "JungleClear"); Menu MiscMenu = new Menu("Misc", "Misc"); Menu DrawingsMenu = new Menu("Drawings", "Drawings"); ComboMenu.Add(new MenuBool("UseQ", "Use Q", true)); ComboMenu.Add(new MenuBool("UseW", "Use W", true)); ComboMenu.Add(new MenuBool("UseE", "Use E", false)); ComboMenu.Add(new MenuBool("UseR", "Use R", true)); HarassMenu.Add(new MenuBool("UseW", "Use W", true)); LaneClearMenu.Add(new MenuBool("UseW", "Use W", false)); JungleClearMenu.Add(new MenuBool("UseQ", "Use Q", true)); JungleClearMenu.Add(new MenuBool("UseW", "Use W", true)); MiscMenu.Add(new MenuBool("UseKillsteal", "Use Killsteal", true)); MiscMenu.Add(new MenuBool("AutoRimmobile", "Auto R against immobile target", true)); DrawingsMenu.Add(new MenuSeparator("Wseparator", "W")); DrawingsMenu.Add(new MenuBool("DrawW", "Draw W Range", true)); DrawingsMenu.Add(new MenuColor("WColor", "Color", SharpDX.Color.Blue)); DrawingsMenu.Add(new MenuSeparator("Rseparator", "R")); DrawingsMenu.Add(new MenuBool("DrawR", "Draw R Range", true)); DrawingsMenu.Add(new MenuColor("RColor", "Color", SharpDX.Color.Blue)); DrawingsMenu.Add(new MenuSeparator("Dseparator", "DamageIndicator")); var UseDamageIndicator = new MenuBool("UseDamageIndicator", "Use DamageIndicator", true); var DamageIndicatorFillColor = new MenuColor("DamageIndicatorFillColor", "Color", SharpDX.Color.Goldenrod); UseDamageIndicator.ValueChanged += (object sender, EventArgs e) => { DamageIndicator.Enabled = UseDamageIndicator.Value; }; DamageIndicatorFillColor.ValueChanged += (object sender, EventArgs e) => { DamageIndicator.FillColor = Color.FromArgb(DamageIndicatorFillColor.Color.ToBgra()); }; DrawingsMenu.Add(UseDamageIndicator); DrawingsMenu.Add(DamageIndicatorFillColor); MenuProvider.MainMenu.Add(ComboMenu); MenuProvider.MainMenu.Add(HarassMenu); MenuProvider.MainMenu.Add(LaneClearMenu); MenuProvider.MainMenu.Add(JungleClearMenu); MenuProvider.MainMenu.Add(MiscMenu); MenuProvider.MainMenu.Add(DrawingsMenu); //Event Game.OnUpdate += Game_OnGameUpdate; Drawing.OnDraw += Game_OnDraw; DamageIndicator.DamageToUnit = GetComboDamage; //Loaded Logging.Write()(LogLevel.Info, "HuyNK_Series_SDK: Ashe Loaded!"); }
public Zed() { Q = new Spell(SpellSlot.Q, 925); Q2 = new Spell(SpellSlot.Q, 925); W = new Spell(SpellSlot.W, 600); E = new Spell(SpellSlot.E, 280); R = new Spell(SpellSlot.R, 700); Q.SetSkillshot(0.25f, 50, 1700, true, SkillshotType.SkillshotLine); Q2.SetSkillshot(0.25f, 50, 1700, true, SkillshotType.SkillshotLine); E.SetTargetted(0.05f, float.MaxValue); Q.DamageType = Q2.DamageType = E.DamageType = R.DamageType = DamageType.Physical; Q.MinHitChance = Q2.MinHitChance = HitChance.VeryHigh; var orbwalkMenu = MainMenu.Add(new Menu("Orbwalk", "Orbwalk")); { orbwalkMenu.Separator("Q/E: Always On"); orbwalkMenu.Separator("Sub Settings"); orbwalkMenu.Bool("Ignite", "Use Ignite"); orbwalkMenu.Bool("Item", "Use Item"); orbwalkMenu.Separator("W Settings"); orbwalkMenu.Bool("WNormal", "Use For Non-R Combo"); orbwalkMenu.List("WAdv", "Use For R Combo", new[] { "OFF", "Line", "Triangle", "Mouse" }, 1); orbwalkMenu.List("WSwapGap", "Swap To Gap Close", new[] { "OFF", "Smart", "Always" }, 1); orbwalkMenu.Separator("R Settings"); orbwalkMenu.Bool("R", "Use R"); orbwalkMenu.Slider( "RStopRange", "Priorize If Ready And Distance <=", (int)(R.Range + 200), (int)R.Range, (int)(R.Range + W.Range)); orbwalkMenu.List("RSwapGap", "Swap To Gap Close", new[] { "OFF", "Smart", "Always" }, 1); orbwalkMenu.Slider("RSwapIfHpU", "Swap If Hp < (%)", 20); orbwalkMenu.Bool("RSwapIfKill", "Swap If Mark Can Kill Target"); orbwalkMenu.Separator("Extra R Settings"); foreach (var enemy in GameObjects.EnemyHeroes) { orbwalkMenu.Bool("RCast" + enemy.ChampionName, "Not Cast On " + enemy.ChampionName, true); } } var hybridMenu = MainMenu.Add(new Menu("Hybrid", "Hybrid")); { hybridMenu.List("Mode", "Mode", new[] { "W-E-Q", "E-Q", "Q" }); hybridMenu.Separator("Auto Q Settings"); hybridMenu.KeyBind("AutoQ", "KeyBind", Keys.T, KeyBindType.Toggle); hybridMenu.Slider("AutoQMpA", "If Mp >=", 100, 0, 200); } var farmMenu = MainMenu.Add(new Menu("Farm", "Farm")); { farmMenu.Bool("Q", "Use Q"); farmMenu.Bool("E", "Use E", false); } var ksMenu = MainMenu.Add(new Menu("KillSteal", "Kill Steal")); { ksMenu.Bool("Q", "Use Q"); ksMenu.Bool("E", "Use E"); } if (GameObjects.EnemyHeroes.Any()) { Evade.Init(); } var drawMenu = MainMenu.Add(new Menu("Draw", "Draw")); { drawMenu.Bool("Q", "Q Range"); drawMenu.Bool("W", "W Range"); drawMenu.Bool("E", "E Range", false); drawMenu.Bool("R", "R Range"); drawMenu.Bool("Target", "Target"); drawMenu.Bool("WPos", "W Shadow"); drawMenu.Bool("RPos", "R Shadow"); } MainMenu.KeyBind("FleeW", "Use W To Flee", Keys.C); Evade.TryEvading += TryEvading; Game.OnUpdate += OnUpdate; Drawing.OnDraw += OnDraw; GameObject.OnCreate += (sender, args) => { var shadow = sender as Obj_AI_Minion; if (shadow == null || !shadow.IsValid || shadow.Name != "Shadow" || shadow.IsEnemy) { return; } if (wCasted) { wShadow = shadow; wCasted = false; rCasted = false; DelayAction.Add(4450, () => wShadow = null); } else if (rCasted) { rShadow = shadow; rCasted = false; wCasted = false; DelayAction.Add(7450, () => rShadow = null); } }; GameObject.OnCreate += (sender, args) => { var mark = sender as Obj_GeneralParticleEmitter; if (mark != null && mark.IsValid && mark.Name == "Zed_Base_R_buf_tell.troy" && rShadow.IsValid() && deathMark == null) { deathMark = mark; } }; GameObject.OnDelete += (sender, args) => { var mark = sender as Obj_GeneralParticleEmitter; if (mark != null && mark.IsValid && mark.Name == "Zed_Base_R_buf_tell.troy" && deathMark.NetworkId == mark.NetworkId) { deathMark = null; } }; Obj_AI_Base.OnProcessSpellCast += (sender, args) => { if (!sender.IsMe) { return; } if (args.SData.Name == "ZedW") { rCasted = false; wCasted = true; } if (args.SData.Name == "ZedR") { wCasted = false; rCasted = true; } }; }
public static void Initialize() { _Q = new Spell(SpellSlot.Q, 1050); _Q.SetSkillshot(.25f, 60f, 1600f, true, SkillshotType.SkillshotLine); _W = new Spell(SpellSlot.W, 900); _W.SetSkillshot(1f, 240f, float.MaxValue, false, SkillshotType.SkillshotCircle); _E = new Spell(SpellSlot.E, 625); _E.SetTargetted(0.25f, float.MaxValue); _R = new Spell(SpellSlot.R, 750); _R.SetTargetted(.25f, 1000f); }
static void OnLoad(object sender, EventArgs args) { if (Player.ChampionName != "Cassiopeia") return; Bootstrap.Init(null); Game.PrintChat("CassioSDK by ngothaison Loaded!"); Game.PrintChat(Player.FlatMagicDamageMod.ToString()); Game.PrintChat(Player.TotalMagicalDamage.ToString()); Ignite = Player.GetSpellSlot("summonerdot"); config = new Menu("cassiopeia", "Cassiopeia", true); var drawmenu = config.Add(new Menu("drawing", "Drawing")); drawmenu.Add(new MenuBool("drawQ", "Draw Q, W range")); drawmenu.Add(new MenuBool("drawE", "Draw E range")); drawmenu.Add(new MenuBool("drawR", "Draw R range")); var farm = config.Add(new Menu("farm", "Farm")); farm.Add(new MenuBool("useqlh", "Use Q Last Hit",true)); farm.Add(new MenuBool("useelh", "Use E Last Hit",true)); var combo = config.Add(new Menu("combo", "Combo Settings")); combo.Add(new MenuBool("useQ", "Use Q",true)); combo.Add(new MenuBool("useW", "Use W",true)); combo.Add(new MenuBool("useR", "Use R",true)); combo.Add(new MenuBool("useIgnite", "Use Ignite In Combo")); var harass = config.Add(new Menu("harass", "Harass Settings")); harass.Add(new MenuBool("useq", "Use Q",true)); harass.Add(new MenuBool("usew", "Use W",true)); var killsteal = config.Add(new Menu("ks", "Kill Steal With E")); killsteal.Add(new MenuBool("kswE", "Kill Steal With E",true)); Q = new Spell(SpellSlot.Q, 850f); W = new Spell(SpellSlot.W, 850f); E = new Spell(SpellSlot.E, 700f); R = new Spell(SpellSlot.R, 825f); Q.SetSkillshot(false, SkillshotType.SkillshotCircle); W.SetSkillshot(false, SkillshotType.SkillshotCircle); R.SetSkillshot(false, SkillshotType.SkillshotCone); config.Attach(); Drawing.OnDraw += OnDraw; Game.OnUpdate += OnUpdate; }
public Ahri() { Q = new Spell(SpellSlot.Q, 880); W = new Spell(SpellSlot.W, 550); E = new Spell(SpellSlot.E, 975); E2 = new Spell(SpellSlot.E, 975); R = new Spell(SpellSlot.R, 450);//600 Q.SetSkillshot(0.25f, 100, 1600, false, SkillshotType.SkillshotLine); E.SetSkillshot(0.25f, 60, 1550, true, SkillshotType.SkillshotLine); E2.SetSkillshot(0.25f, 60, 1550, true, SkillshotType.SkillshotLine); Q.DamageType = W.DamageType = E.DamageType = DamageType.Magical; Q.MinHitChance = HitChance.High; E.MinHitChance = HitChance.High; Menu Asassin = new Menu("Assassin", "AssasinMode"); { KeyBind(Asassin, "activeAssasin", "Assassin Key", Keys.T, KeyBindType.Press); Separator(Asassin, "1", "Make sure you select a target"); Separator(Asassin, "2", "before press this key"); MainMenu.Add(Asassin); } Menu Combo = new Menu("Combo", "Combo"); { Bool(Combo, "Qc", "Q", true); Bool(Combo, "Wc", "W", true); Bool(Combo, "Ec", "E", true); MainMenu.Add(Combo); } Menu Harass = new Menu("Harass", "Harass"); { Bool(Harass, "Qh", "Q", true); Bool(Harass, "Wh", "W", true); Bool(Harass, "Eh", "E", true); Slider(Harass, "manah", "Min mana", 40, 0, 100); MainMenu.Add(Harass); } Menu Clear = new Menu("Clear", "Clear"); { Bool(Clear, "Qj", "Q", true); Slider(Clear, "Qhitj", "Q if will hit", 2, 1, 3); Slider(Clear, "manaj", "Min mana", 40, 0, 100); MainMenu.Add(Clear); } Menu Auto = new Menu("Auto", "Auto"); { KeyBind(Auto, "harassa", "Harass Q", Keys.H, KeyBindType.Toggle); Bool(Auto, "interrupta", "E interrupt + gapcloser", true); Bool(Auto, "killsteala", "KillSteal", true); MainMenu.Add(Auto); } Menu drawMenu = new Menu("Draw", "Draw"); { Bool(drawMenu, "Qd", "Q"); Bool(drawMenu, "Wd", "W"); Bool(drawMenu, "Ed", "E"); Bool(drawMenu, "Rd", "R"); Bool(drawMenu, "Hpd", "Damage Indicator"); MainMenu.Add(drawMenu); } drawMenu.MenuValueChanged += drawMenu_MenuValueChanged; Game.OnUpdate += Game_OnUpdate; Obj_AI_Base.OnNewPath += Obj_AI_Base_OnNewPath; Drawing.OnDraw += Drawing_OnDraw; Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast; Gapcloser.OnGapCloser += Gapcloser_OnGapCloser; InterruptableSpell.OnInterruptableTarget += InterruptableSpell_OnInterruptableTarget; DamageIndicator.DamageToUnit = AhriDamage; CustomDamageIndicator.Initialize(AhriDamage); DamageIndicator.Enabled = drawhp; CustomDamageIndicator.Enabled = drawhp; }
private void LoadMenu() { _player = ObjectManager.Player; _q = new Spell(SpellSlot.Q, 676f); _w = new Spell(SpellSlot.W, 325f); _e = new Spell(SpellSlot.E, 980f); _r = new Spell(SpellSlot.R, 550f); _q.SetSkillshot(0.6f, 250f, 2000f, false, SkillshotType.SkillshotCircle); _e.SetSkillshot(0.25f, 35f, 1250f, false, SkillshotType.SkillshotLine); _spellList.Add(_q); _spellList.Add(_w); _spellList.Add(_e); _spellList.Add(_r); IgniteSlot = _player.GetSpellSlot("SummonerDot"); SmiteSlot = _player.GetSpellSlot("summonersmite"); CreateMenu(); Game.OnUpdate += Game_OnUpdate; Drawing.OnDraw += Drawing_OnDraw; InterruptableSpell.OnInterruptableTarget += OnPossibleToInterrupt; }
public Syndra() { Q = new Spell(SpellSlot.Q, 800); W = new Spell(SpellSlot.W, 1150); E = new Spell(SpellSlot.E, 700); //1100 R = new Spell(SpellSlot.R,675); Q.SetSkillshot(0.5f, 10, float.MaxValue, false, SkillshotType.SkillshotCircle); W.SetSkillshot(0.25f, 10, 1450, false, SkillshotType.SkillshotCircle, Player.Position, Player.Position); E.SetSkillshot(0.5f, 10, 1600, false, SkillshotType.SkillshotCircle); Q.DamageType = W.DamageType = E.DamageType = DamageType.Magical; Q.MinHitChance = HitChance.Medium; W.MinHitChance = HitChance.Medium; Menu Combo = new Menu("Combo", "Combo"); { Bool(Combo, "Qc", "Q", true); Bool(Combo, "Wc", "W", true); Bool(Combo, "Ec", "E", true); Bool(Combo, "QEc", "QE", true); Bool(Combo, "Rc", "R", true); Separator(Combo, "Rbc", "cast R target:"); foreach (var hero in GameObjects.EnemyHeroes) { Bool(Combo, hero.ChampionName + "c", hero.ChampionName, true); } MainMenu.Add(Combo); } Menu Harass = new Menu("Harass", "Harass"); { Bool(Harass, "Qh", "Q", true); Bool(Harass, "Wh", "W", true); Bool(Harass, "Eh", "E", true); Slider(Harass, "manah", "Min mana", 40, 0, 100); MainMenu.Add(Harass); } Menu Auto = new Menu("Auto", "Auto"); { Bool(Auto, "Qa", "Q on target AA + spellcast ", true); Bool(Auto, "GapIntera", "Anti-Gap & Interrupt", true); Bool(Auto, "killsteala", "KillSteal ", true); MainMenu.Add(Auto); } Menu Helper = new Menu("Helper", "Helper"); { Bool(Helper, "enableh", "Enabale", true); KeyBind(Helper, "QEh", "QE to mouse", Keys.G, KeyBindType.Press); MainMenu.Add(Helper); } Menu drawMenu = new Menu("Draw", "Draw"); { Bool(drawMenu, "Qd", "Q"); Bool(drawMenu, "Wd", "W"); Bool(drawMenu, "Ed", "E"); Bool(drawMenu, "QEd", "QE"); Bool(drawMenu, "Rd", "R"); Bool(drawMenu, "Hpd", "Damage Indicator"); MainMenu.Add(drawMenu); } drawMenu.MenuValueChanged += drawMenu_MenuValueChanged; Game.OnUpdate += OnUpdate; Drawing.OnDraw += OnDraw; Obj_AI_Base.OnProcessSpellCast += OnProcessSpellCast; GameObject.OnCreate += OnCreate; GameObject.OnDelete += OnDelete; Gapcloser.OnGapCloser += Gapcloser_OnGapCloser; InterruptableSpell.OnInterruptableTarget += InterruptableSpell_OnInterruptableTarget; //Orb.OnAction += Orbwalker_OnAction; DamageIndicator.DamageToUnit = SyndraDamage; CustomDamageIndicator.Initialize(SyndraDamage); DamageIndicator.Enabled = drawhp; CustomDamageIndicator.Enabled = drawhp; Obj_AI_Base.OnLevelUp += Obj_AI_Base_OnLevelUp; }
public Cassiopeia() { abilitySequence = new int[] {1, 3, 3, 2, 3, 4, 3, 1, 3, 1, 4, 1, 1, 2, 2, 4, 2, 2}; Q = new Spell(SpellSlot.Q, 850f); Spells.Add(Q); Q.SetSkillshot(0.75f, Q.Instance.SData.CastRadius, float.MaxValue, false, SkillshotType.SkillshotCircle); W = new Spell(SpellSlot.W, 850f); Spells.Add(W); W.SetSkillshot(0.5f, W.Instance.SData.CastRadius, W.Instance.SData.MissileSpeed, false, SkillshotType.SkillshotCircle); E = new Spell(SpellSlot.E, 700f); Spells.Add(E); E.SetTargetted(0.2f, float.MaxValue); R = new Spell(SpellSlot.R, 825f); Spells.Add(R); R.SetSkillshot(0.3f, (float) (80*Math.PI/180), float.MaxValue, false, SkillshotType.SkillshotCone); Z = new Menu("Adv# - Cassiopeia", "root", true); LeagueSharp.SDK.Core.Bootstrap.Init(null); Menu MCombo = new Menu("Combo", "combo"); { MCombo.Add(new MenuBool("combo.q", "Use Q", true)); MCombo.Add(new MenuBool("combo.w", "Use W", true)); MCombo.Add(new MenuBool("combo.e", "Use E", true)); MCombo.Add(new MenuBool("combo.r", "Use R", true)); MCombo.Add(new MenuSeparator("combo.spacer1", "R Settings")); MCombo.Add(new MenuSlider("combo.r.minfacing", "R Minimum Facing", 1, 1, 5)); MCombo.Add(new MenuSlider("combo.r.minhit", "R Minimum Hit", 1, 1, 5)); MCombo.Add(new MenuBool("combo.r.smart", "Smart Ultimate", true)); } Z.Add(MCombo); Menu MHarass = new Menu("Harass", "harass"); { MHarass.Add(new MenuBool("harass.q", "Use Q", true)); MHarass.Add(new MenuBool("harass.w", "Use W", true)); MHarass.Add(new MenuBool("harass.e", "Use E", true)); MHarass.Add(new MenuBool("harass.spacer1", " ")); MHarass.Add(new MenuBool("harass.e.restriction", "E Only If Poisoned", true)); } Z.Add(MHarass); Menu MLH = new Menu("Last Hit", "lasthit"); { MLH.Add(new MenuBool("lasthit.e", "Use E", true)); MLH.Add(new MenuBool("lasthit.e.auto", "Use E Automatically", false)); } Z.Add(MLH); Menu MLC = new Menu("Lane Clear", "laneclear"); { MLC.Add(new MenuBool("laneclear.q", "Use Q", true)); MLC.Add(new MenuBool("laneclear.w", "Use W", true)); MLC.Add(new MenuBool("laneclear.e", "Use E", true)); MLC.Add(new MenuSeparator("laneclear.spacer1", "E Settings")); MLC.Add(new MenuBool("laneclear.e.restriction", "E Only If Poisoned", true)); MLC.Add(new MenuBool("laneclear.e.lasthit", "E Only If Last Hit", true)); MLC.Add(new MenuSlider("laneclear.w.restriction", "W Minimum Hit", 3, 1, 10)); } Z.Add(MLC); Menu Misc = new Menu("Misc", "misc"); { Misc.Add(new MenuBool("misc.manamenagertm", "Restrict Mana Usage", true)); Misc.Add(new MenuSlider("misc.manamenagertm.slider", "Minimum Mana", 35, 0, 95)); Misc.Add(new MenuBool("misc.spacer1", "Item Stack")); Misc.Add(new MenuBool("misc.itemstack", "Item Stacking", true)); Misc.Add(new MenuSeparator("misc.spacer3", "Kill Steal")); Misc.Add(new MenuBool("misc.qks", "Kill Secure with Q", true)); Misc.Add(new MenuBool("misc.wks", "Kill Secure with W", true)); Misc.Add(new MenuBool("misc.eks", "Kill Secure with E", true)); Misc.Add(new MenuSlider("misc.edelay", "E Delay", 0, 0, 500)); Misc.Add(new MenuSeparator("misc.spacer4", "Miscellaneous")); Misc.Add(new MenuBool("misc.autospells", "Auto Level Spells", true)); Misc.Add(new MenuSeparator("misc.spacer5", "Events")); Misc.Add(new MenuBool("misc.gc", "W on gap closer", true)); Misc.Add(new MenuSlider("misc.gc.hp", "if HP < ", 30)); Misc.Add(new MenuBool("misc.aablock", "Auto Attack Block in combo", false)); } Z.Add(Misc); Menu Drawings = new Menu("Drawings", "drawings"); { Drawings.Add(new MenuBool("draw", "Drawings", true)); Drawings.Add(new MenuBool("draw.q", "Draw Q Range", true)); Drawings.Add(new MenuBool("draw.w", "Draw W Range", true)); Drawings.Add(new MenuBool("draw.e", "Draw E Range", true)); Drawings.Add(new MenuBool("draw.r", "Draw R Range", true)); Drawings.Add(new MenuBool("draw.tg", "Draw Target", true)); } Z.Add(Drawings); Z.Add(new MenuBool("credits1", "Credits:")); Z.Add(new MenuBool("credits2", "TehBlaxxor - Coding")); Z.Add(new MenuBool("credits3", "Hoes - Coding")); Z.Add(new MenuBool("credits4", "Hawk - Testing")); Z.Attach(); Game.OnUpdate += Game_OnUpdate; Drawing.OnDraw += Drawing_OnDraw; Gapcloser.OnGapCloser += AntiGapCloser; Spellbook.OnCastSpell += Spellbook_OnCastSpell; }
internal static void OnLoad(object sender, EventArgs e) { if (Player.CharData.BaseSkinName.ToLower() != "blitzcrank") { Console.WriteLine("Champion is not supported."); return; } try { Q = new Spell(SpellSlot.Q, 1050); E = new Spell(SpellSlot.E, 0); R = new Spell(SpellSlot.R, 600); Q.SetSkillshot(0.25f, 70f, 1800f, true, SkillshotType.SkillshotLine); //Q.SetSkillshot(Q.Instance.SData.SpellCastTime, Q.Instance.SData.LineWidth, Q.Instance.SData.MissileSpeed, true, SkillshotType.SkillshotLine); CreateMenu(); Game.OnUpdate += OnUpdate; Drawing.OnDraw += OnDraw; } catch (Exception ex) { Console.WriteLine(ex); } }
private static void CastW(Obj_AI_Hero target, bool isCombo = false) { if (wShadow.IsValid() || Variables.TickCount - W.LastCastAttemptT <= 500) { return; } var castPos = Vector3.Zero; var spellQ = new Spell(SpellSlot.Q, Q.Range + (isCombo ? W.Range : 0)); spellQ.SetSkillshot(Q.Delay, Q.Width, Q.Speed - 100, Q.Collision, Q.Type); var posPred = spellQ.VPrediction(target, true, new[] { CollisionableObjects.YasuoWall }).CastPosition; if (isCombo) { switch (MainMenu["Orbwalk"]["WAdv"].GetValue<MenuList>().Index) { case 1: castPos = Player.ServerPosition + (posPred - rShadow.ServerPosition).Normalized() * W.Range; break; case 2: var subPos1 = Player.ServerPosition + (posPred - rShadow.ServerPosition).Normalized().Perpendicular() * W.Range; var subPos2 = Player.ServerPosition + (rShadow.ServerPosition - posPred).Normalized().Perpendicular() * W.Range; if (!subPos1.IsWall() && subPos2.IsWall()) { castPos = subPos1; } else if (subPos1.IsWall() && !subPos2.IsWall()) { castPos = subPos2; } else { castPos = subPos1; } break; case 3: castPos = Game.CursorPos; break; } } else { castPos = W.IsInRange(target) ? Player.ServerPosition.Extend(posPred, E.Range) : target.ServerPosition; } if (!castPos.IsValid()) { return; } if (W.Cast(castPos)) { W.LastCastAttemptT = Variables.TickCount; } }
private static void CastW(Obj_AI_Hero target, bool isCombo = false) { if (WState != 0 || Variables.TickCount - W.LastCastAttemptT <= 500 || Player.Distance(target) >= W.Range + Q.Range) { return; } var castPos = default(Vector3); var spellQ = new Spell(SpellSlot.Q, Q.Range + W.Range); spellQ.SetSkillshot(Q.Delay, Q.Width, Q.Speed + 250, Q.Collision, Q.Type); var posPred = Common.GetPrediction(spellQ, target, true, new[] { CollisionableObjects.YasuoWall }).CastPosition; if (isCombo) { switch (MainMenu["Orbwalk"]["WAdv"].GetValue<MenuList>().Index) { case 1: castPos = Player.ServerPosition + (posPred - rShadow.ServerPosition).Normalized() * 500; break; case 2: var subPos1 = Player.ServerPosition + (posPred - rShadow.ServerPosition).Normalized().Perpendicular() * 500; var subPos2 = Player.ServerPosition + (rShadow.ServerPosition - posPred).Normalized().Perpendicular() * 500; if (subPos1.IsWall() && !subPos2.IsWall() && target.Distance(subPos2) < target.Distance(subPos1)) { castPos = subPos2; } if (!subPos1.IsWall() && subPos2.IsWall() && target.Distance(subPos1) < target.Distance(subPos2)) { castPos = subPos1; } if ((!subPos1.IsWall() && !subPos2.IsWall()) || (subPos1.IsWall() && subPos2.IsWall())) { castPos = target.Distance(subPos1) < target.Distance(subPos2) ? subPos1 : subPos2; } if (!castPos.IsValid()) { castPos = subPos1; } break; case 3: castPos = Game.CursorPos; break; } } else { castPos = Player.ServerPosition.Extend(posPred, E.Range); } if (!castPos.IsValid()) { return; } if (W.Cast(castPos)) { W.LastCastAttemptT = Variables.TickCount; } }
private static bool CastQ3(Obj_AI_Hero target = null) { var spellQ = new Spell(SpellSlot.Q, Q2.Range); spellQ.SetSkillshot(Q2.Delay, Q2.Width, Q2.Speed, true, Q2.Type); if (target != null) { var pred = Common.GetPrediction(spellQ, target, true, new[] { CollisionableObjects.YasuoWall }); if (pred.Hitchance >= Q2.MinHitChance && Q.Cast(pred.CastPosition)) { return true; } } else { var hit = -1; var predPos = new Vector3(); foreach (var hero in GameObjects.EnemyHeroes.Where(i => i.IsValidTarget(Q2.Range))) { var pred = Common.GetPrediction(spellQ, hero, true, new[] { CollisionableObjects.YasuoWall }); if (pred.Hitchance >= Q2.MinHitChance && pred.AoeTargetsHitCount > hit) { hit = pred.AoeTargetsHitCount; predPos = pred.CastPosition; } } if (predPos.IsValid() && Q.Cast(predPos)) { return true; } } return false; }
private static void OnProcessSpellCast(Obj_AI_Base sender, GameObjectProcessSpellCastEventArgs args) { if (!sender.IsMe) { return; } if (args.SData.Name == "ZedShuriken" && Orbwalker.ActiveMode == OrbwalkerMode.Hybrid && MainMenu["Hybrid"]["Mode"].GetValue<MenuList>().Index == 0 && MainMenu["Hybrid"]["QOverW"] && WState == 0 && GetTarget != null) { var spellQ = new Spell(SpellSlot.Q, Q.Range + W.Range); spellQ.SetSkillshot(Q.Delay, Q.Width, Q.Speed + 250, Q.Collision, Q.Type); for (var i = 0; i < 360; i += 30) { var posRotated = Player.ServerPosition + Player.Direction.Perpendicular().Rotated((float)(Math.PI * i / 180)) * W.Range; spellQ.UpdateSourcePosition(posRotated, posRotated); var predQ = Common.GetPrediction(spellQ, GetTarget, true, new[] { CollisionableObjects.YasuoWall }); if (predQ.Hitchance < Q2.MinHitChance) { continue; } DelayAction.Add( Q.Delay * 1000, () => { if (W.Cast(posRotated)) { W.LastCastAttemptT = Variables.TickCount; } }); break; } } if (args.SData.Name == "ZedShadowDash") { rCasted = false; wCasted = true; } if (args.SData.Name == "zedult") { wCasted = false; rCasted = true; } }
public Yasuo() { Q = new Spell(SpellSlot.Q, 500); Q2 = new Spell(SpellSlot.Q, 1100); W = new Spell(SpellSlot.W, 400); E = new Spell(SpellSlot.E, 475); R = new Spell(SpellSlot.R, 1300); Q.SetSkillshot(GetQDelay, 20, float.MaxValue, false, SkillshotType.SkillshotLine); Q2.SetSkillshot(GetQ2Delay, 90, 1500, false, SkillshotType.SkillshotLine); E.SetTargetted(0.05f, GetESpeed); Q.DamageType = Q2.DamageType = R.DamageType = DamageType.Physical; E.DamageType = DamageType.Magical; Q.MinHitChance = Q2.MinHitChance = HitChance.High; var orbwalkMenu = new Menu("Orbwalk", "Orbwalk"); { Separator(orbwalkMenu, "blank0", "Q/Ignite/Item: Always On"); Separator(orbwalkMenu, "blank1", "E Gap Settings"); Bool(orbwalkMenu, "EGap", "Use E"); Slider(orbwalkMenu, "ERange", "If Distance >", (int)(E.Range * 0.5), 0, (int)E.Range); Bool(orbwalkMenu, "ETower", "Under Tower", false); Bool(orbwalkMenu, "EStackQ", "Stack Q While Gap", false); Separator(orbwalkMenu, "blank2", "R Settings"); Bool(orbwalkMenu, "R", "Use R"); Bool(orbwalkMenu, "RDelay", "Delay Casting"); Slider(orbwalkMenu, "RHpU", "If Enemy Hp < (%)", 60); Slider(orbwalkMenu, "RCountA", "Or Enemy >=", 2, 1, 5); MainMenu.Add(orbwalkMenu); } var hybridMenu = new Menu("Hybrid", "Hybrid"); { Separator(hybridMenu, "blank3", "Q: Always On"); Bool(hybridMenu, "Q3", "Also Q3"); Bool(hybridMenu, "QLastHit", "Last Hit (Q1/2)"); Separator(hybridMenu, "blank4", "Auto Q Settings"); KeyBind(hybridMenu, "AutoQ", "KeyBind", Keys.T, KeyBindType.Toggle); Bool(hybridMenu, "AutoQ3", "Also Q3", false); MainMenu.Add(hybridMenu); } var lcMenu = new Menu("LaneClear", "Lane Clear"); { Separator(lcMenu, "blank5", "Q: Always On"); Bool(lcMenu, "Q3", "Also Q3"); Separator(lcMenu, "blank6", "E Settings"); Bool(lcMenu, "E", "Use E"); Bool(lcMenu, "ETower", "Under Tower", false); MainMenu.Add(lcMenu); } var lhMenu = new Menu("LastHit", "Last Hit"); { Separator(lhMenu, "blank7", "Q Settings"); Bool(lhMenu, "Q", "Use Q"); Bool(lhMenu, "Q3", "Also Q3", false); Separator(lhMenu, "blank8", "E Settings"); Bool(lhMenu, "E", "Use E"); Bool(lhMenu, "ETower", "Under Tower", false); MainMenu.Add(lhMenu); } var ksMenu = new Menu("KillSteal", "Kill Steal"); { Bool(ksMenu, "Q", "Use Q"); Bool(ksMenu, "E", "Use E"); Bool(ksMenu, "R", "Use R"); Separator(ksMenu, "blank7", "Extra R Settings"); foreach (var enemy in GameObjects.EnemyHeroes) { Bool(ksMenu, "RCast" + enemy.ChampionName, "Cast On " + enemy.ChampionName); } MainMenu.Add(ksMenu); } var fleeMenu = new Menu("Flee", "Flee"); { KeyBind(fleeMenu, "E", "Use E", Keys.C); Bool(fleeMenu, "Q", "Stack Q While Dash"); MainMenu.Add(fleeMenu); } if (GameObjects.EnemyHeroes.Any()) { Evade.Init(); } var drawMenu = new Menu("Draw", "Draw"); { Bool(drawMenu, "StackQ", "Auto Stack Q Status"); MainMenu.Add(drawMenu); } KeyBind(MainMenu, "StackQ", "Auto Stack Q", Keys.Z, KeyBindType.Toggle); Game.OnUpdate += OnUpdate; Drawing.OnDraw += OnDraw; Game.OnUpdate += OnUpdateEvade; Obj_AI_Base.OnPlayAnimation += OnPlayAnimation; }
static void Game_OnGameLoad(object sender, EventArgs e) { //"1 3 1 2 1 4 1 3 1 3 4 3 3 2 2 4 2 2"; if (Player.ChampionName != "Kalista") { return; } Q = new Spell(SpellSlot.Q, 1150f); Q.SetSkillshot(0.25f, 40f, 1700f, true, SkillshotType.SkillshotLine); W = new Spell(SpellSlot.W, 5200f); E = new Spell(SpellSlot.E, 1200f); R = new Spell(SpellSlot.R, 1200f); menuload(); Game.OnUpdate += Game_OnUpdate; Drawing.OnDraw += Drawing_OnDraw; Drawing.OnDraw += DraWing.Drawing_OnDraw; Obj_AI_Hero.OnProcessSpellCast += Event_OnProcessSpellCast; // Orbwalking.OnNonKillableMinion += Event_OnNonKillableMinion; Obj_AI_Hero.OnBuffAdd += Event_OnBuffAdd; FillPositions(); }
public Zed() { Q = new Spell(SpellSlot.Q, 975); Q2 = new Spell(SpellSlot.Q, 975); W = new Spell(SpellSlot.W, 600); E = new Spell(SpellSlot.E, 290); R = new Spell(SpellSlot.R, 700); Q.SetSkillshot(0.25f, 50, 1700, true, SkillshotType.SkillshotLine); Q2.SetSkillshot(0.25f, 50, 1700, true, SkillshotType.SkillshotLine); E.SetTargetted(0, float.MaxValue); Q.DamageType = Q2.DamageType = E.DamageType = R.DamageType = DamageType.Physical; Q.MinHitChance = Q2.MinHitChance = HitChance.VeryHigh; var orbwalkMenu = new Menu("Orbwalk", "Orbwalk"); { Config.Separator(orbwalkMenu, "blank0", "Q/E/Ignite/Item: Always On"); Config.Separator(orbwalkMenu, "blank1", "W Settings"); Config.Bool(orbwalkMenu, "WNormal", "Use For Non-R Combo"); Config.List(orbwalkMenu, "WAdv", "Use For R Combo", new[] { "OFF", "Line", "Triangle", "Mouse" }).Index = 1; Config.List(orbwalkMenu, "WSwapGap", "Swap To Gap Close", new[] { "OFF", "Smart", "Always" }).Index = 1; Config.Separator(orbwalkMenu, "blank2", "R Settings"); Config.Bool(orbwalkMenu, "R", "Use R"); Config.Slider( orbwalkMenu, "RStopRange", "Priorize If Ready And Distance <=", (int)(R.Range + 200), (int)R.Range, (int)(R.Range + W.Range)); Config.List(orbwalkMenu, "RSwapGap", "Swap To Gap Close", new[] { "OFF", "Smart", "Always" }).Index = 1; Config.Slider(orbwalkMenu, "RSwapIfHpU", "Swap If Hp < (%)", 20); Config.Bool(orbwalkMenu, "RSwapIfKill", "Swap If Mark Can Kill Target"); Config.Separator(orbwalkMenu, "blank3", "Extra R Settings"); foreach (var enemy in GameObjects.EnemyHeroes) { Config.Bool(orbwalkMenu, "RCast" + enemy.ChampionName, "Cast On " + enemy.ChampionName, false); } MainMenu.Add(orbwalkMenu); } var hybridMenu = new Menu("Hybrid", "Hybrid"); { Config.List(hybridMenu, "Mode", "Mode", new[] { "W-E-Q", "E-Q", "Q" }); Config.Bool(hybridMenu, "QOverW", "Priorize Q Over W", false); Config.Separator(hybridMenu, "blank4", "Auto Q Settings"); Config.KeyBind(hybridMenu, "AutoQ", "KeyBind", Keys.T, KeyBindType.Toggle); Config.Slider(hybridMenu, "AutoQMpA", "If Mp >=", 100, 0, 200); MainMenu.Add(hybridMenu); } var farmMenu = new Menu("Farm", "Farm"); { Config.Bool(farmMenu, "Q", "Use Q"); Config.Bool(farmMenu, "E", "Use E", false); MainMenu.Add(farmMenu); } var ksMenu = new Menu("KillSteal", "Kill Steal"); { Config.Bool(ksMenu, "Q", "Use Q"); Config.Bool(ksMenu, "E", "Use E"); MainMenu.Add(ksMenu); } var drawMenu = new Menu("Draw", "Draw"); { Config.Bool(drawMenu, "Q", "Q Range"); Config.Bool(drawMenu, "W", "W Range"); Config.Bool(drawMenu, "E", "E Range", false); Config.Bool(drawMenu, "R", "R Range"); Config.Bool(drawMenu, "Target", "Target"); Config.Bool(drawMenu, "WPos", "W Shadow"); Config.Bool(drawMenu, "RPos", "R Shadow"); MainMenu.Add(drawMenu); } Config.KeyBind(MainMenu, "FleeW", "Use W To Flee", Keys.C); Game.OnUpdate += OnUpdate; Drawing.OnDraw += OnDraw; Obj_AI_Base.OnProcessSpellCast += OnProcessSpellCast; GameObject.OnCreate += OnCreate; GameObject.OnDelete += OnDelete; }
/// <summary> /// The load. /// </summary> public void Load() { Q = new Spell(SpellSlot.Q, 0x3CA); W = new Spell(SpellSlot.W, 0x226); E = new Spell(SpellSlot.E, 0x36B); R = new Spell(SpellSlot.R); Q.SetSkillshot(0.283f, 0x12C, 0x6D6, false, SkillshotType.SkillshotCircle); E.SetSkillshot(0.25f, 0xFA, float.MaxValue, false, SkillshotType.SkillshotCircle); this.CreateMenu(); Game.OnUpdate += this.GameOnOnUpdate; Gapcloser.OnGapCloser += this.Gapcloser_OnGapCloser; InterruptableSpell.OnInterruptableTarget += this.InterruptableSpellOnOnInterruptableTarget; }
public Kalista() { //Spell Q = new Spell(SpellSlot.Q, 1150f) { DamageType = DamageType.Physical }; W = new Spell(SpellSlot.W, 5200f); E = new Spell(SpellSlot.E, 950f); R = new Spell(SpellSlot.R, 1500f); Q.SetSkillshot(0.25f, 40f, 1200f, true, SkillshotType.SkillshotLine); //Menu Menu ComboMenu = new Menu("Combo", "Combo"); Menu HarassMenu = new Menu("Harass", "Harass"); Menu LaneClearMenu = new Menu("LaneClear", "LaneClear"); Menu JungleClearMenu = new Menu("JungleClear", "JungleClear"); Menu MiscMenu = new Menu("Misc", "Misc"); Menu DrawingsMenu = new Menu("Drawings", "Drawings"); ComboMenu.Add(new MenuBool("UseQ", "Use Q", true)); ComboMenu.Add(new MenuBool("UseE", "Use E", true)); HarassMenu.Add(new MenuBool("UseQ", "Use Q", true)); LaneClearMenu.Add(new MenuSeparator("Qseparator", "Q")); LaneClearMenu.Add(new MenuBool("UseQ", "Use Q", true)); LaneClearMenu.Add(new MenuSlider("UseQNumber", "Cast Q if killable minion number >=", 4, 1, 7)); LaneClearMenu.Add(new MenuSeparator("Eseparator", "E")); LaneClearMenu.Add(new MenuBool("UseE", "Use E", true)); LaneClearMenu.Add(new MenuSlider("UseENumber", "Cast E if killable minion number >=", 3, 1, 7)); JungleClearMenu.Add(new MenuBool("UseQ", "Use Q", true)); JungleClearMenu.Add(new MenuBool("UseE", "Use E", true)); MiscMenu.Add(new MenuBool("UseKillsteal", "Use Killsteal", true)); MiscMenu.Add(new MenuBool("UseMobsteal", "Use Mobsteal", true)); DrawingsMenu.Add(new MenuSeparator("Qseparator", "Q")); DrawingsMenu.Add(new MenuBool("DrawQ", "Draw Q Range", true)); DrawingsMenu.Add(new MenuColor("QColor", "Color", SharpDX.Color.Blue)); DrawingsMenu.Add(new MenuSeparator("Wseparator", "W")); DrawingsMenu.Add(new MenuBool("DrawW", "Draw W Range")); DrawingsMenu.Add(new MenuColor("WColor", "Color", SharpDX.Color.Blue)); DrawingsMenu.Add(new MenuSeparator("Eseparator", "E")); DrawingsMenu.Add(new MenuBool("DrawE", "Draw E Range", true)); DrawingsMenu.Add(new MenuColor("EColor", "Color", SharpDX.Color.Blue)); DrawingsMenu.Add(new MenuSeparator("Rseparator", "R")); DrawingsMenu.Add(new MenuBool("DrawR", "Draw R Range")); DrawingsMenu.Add(new MenuColor("RColor", "Color", SharpDX.Color.Blue)); DrawingsMenu.Add(new MenuSeparator("Dseparator", "DamageIndicator")); var UseDamageIndicator = new MenuBool("UseDamageIndicator", "Use DamageIndicator", true); var DamageIndicatorFillColor = new MenuColor("DamageIndicatorFillColor", "Color", SharpDX.Color.Goldenrod); UseDamageIndicator.ValueChanged += (object sender, EventArgs e) => { DamageIndicator.Enabled = UseDamageIndicator.Value; }; DamageIndicatorFillColor.ValueChanged += (object sender, EventArgs e) => { DamageIndicator.FillColor = Color.FromArgb(DamageIndicatorFillColor.Color.ToBgra()); }; DrawingsMenu.Add(UseDamageIndicator); DrawingsMenu.Add(DamageIndicatorFillColor); MenuProvider.MainMenu.Add(ComboMenu); MenuProvider.MainMenu.Add(HarassMenu); MenuProvider.MainMenu.Add(LaneClearMenu); MenuProvider.MainMenu.Add(JungleClearMenu); MenuProvider.MainMenu.Add(MiscMenu); MenuProvider.MainMenu.Add(DrawingsMenu); //Event Game.OnUpdate += Game_OnGameUpdate; Drawing.OnDraw += Game_OnDraw; Spellbook.OnCastSpell += Spellbook_OnCastSpell; DamageIndicator.DamageToUnit = GetComboDamage; //Loaded Logging.Write()(LogLevel.Info, "HuyNK Series SDK: Kalista Loaded!"); }
private static void InitKallista() { Q = new Spell(SpellSlot.Q, 1150); Q.SetSkillshot(0.25f, 40f, 1200f, true, SkillshotType.SkillshotLine); W = new Spell(SpellSlot.W, 5200); E = new Spell(SpellSlot.E, 950); R = new Spell(SpellSlot.R, 1200); R.SetSkillshot(0.50f, 1500f, float.MaxValue, false, SkillshotType.SkillshotCircle); }