// ReSharper disable once UnusedParameter.Local // ReSharper disable once UnusedMember.Local private static void OnLoad(EventArgs args) { //They wanted comments so i added this line Console.WriteLine(@"Generating Auto Properties..."); Properties.GenerateProperties(); //Close If Assembly Not Needed if (Properties.PlayerHero.ChampionName != "Kalista") { return; } //Create Menu and Initialize spells Console.WriteLine(@"Generating Menu"); SMenu.GenerateMenu(); Console.WriteLine(@"Generating Spells..."); Properties.Champion.LoadSpells(); Properties.MainMenu.AddToMainMenu(); Console.WriteLine(@"Linking Game Events..."); //Link Game evernts to functions Game.OnUpdate += Game_OnUpdate; //Properties.AutoLevel.InitilizeAutoLevel(); Obj_AI_Base.OnProcessSpellCast += OnProcessSpellCast; SoulBound.Initialize(); DrawingManager.Initilize(); ItemManager.Initilize(); AutoLevel.Initilize(); TrinketManager.Initilize(); AutoEventManager.Initilize(); Humanizer.Blocker.Initilize(); switch (Properties.MainMenu.Item("sOrbwalker").GetValue <StringList>().SelectedIndex) { case 0: Console.WriteLine(@"Activating Skywalker..."); SkyWalker.OnNonKillableMinion += AutoEventManager.CheckNonKillables; SkyWalker.AfterAttack += OrbWalkerManager.AfterAttack; break; case 1: Console.WriteLine(@"Activating Common Walker..."); Orbwalking.OnNonKillableMinion += AutoEventManager.CheckNonKillables; Orbwalking.AfterAttack += OrbWalkerManager.AfterAttack; break; } // Limiter.LoadDelays(); // Add Delays for later use //Humanizer needs to be reworked //Humanizer.AddAction("rendDelay",200); // Humanizer.AddAction("generalDelay",125); //Loaded yay Console.WriteLine(@"S Class Kalista Load Completed"); Game.PrintChat("<b> <font color=\"#F88017\">S</font> Class <font color=\"#F88017\">Kalista</font></b> - <font color=\"#008080\">Loaded and ready!</font>"); Net.CheckVersion(); }
private static void Combo() { if (Properties.MainMenu.Item("bUseQCombo").GetValue <bool>() && Properties.Champion.Q.IsReady()) { if (!Properties.MainMenu.Item("bUseManaManager").GetValue <bool>() || Properties.MainMenu.Item("bUseManaManager").GetValue <bool>() && Properties.PlayerHero.ManaPercent > Properties.MainMenu.Item("sMinManaQ").GetValue <Slider>().Value) { var target = TargetSelector.GetTarget(Properties.Champion.Q.Range, TargetSelector.DamageType.Physical); var predictionPosition = Properties.Champion.Q.GetPrediction(target); if (predictionPosition.Hitchance >= GetHitChance()) { if (Properties.MainMenu.Item("bUseQComboReset").GetValue <bool>()) { if (Properties.PlayerHero.IsWindingUp || Properties.PlayerHero.IsDashing()) { Properties.Champion.Q.Cast(predictionPosition.CastPosition); } } else if (!Properties.PlayerHero.IsWindingUp && !Properties.PlayerHero.IsDashing()) { Properties.Champion.Q.Cast(predictionPosition.CastPosition); } } } } if (!Properties.MainMenu.Item("bUseManaManager").GetValue <bool>() || Properties.MainMenu.Item("bUseManaManager").GetValue <bool>() && Properties.PlayerHero.ManaPercent > Properties.MainMenu.Item("sMinManaE").GetValue <Slider>().Value) { if (Properties.Time.CheckRendDelay()) // Wait for rend delay { if (Properties.Champion.E.IsReady()) { if (Properties.MainMenu.Item("bUseECombo").GetValue <bool>()) { AutoEventManager.CheckEnemies(); } } } } if (Properties.MainMenu.Item("bUseMinionComboWalk").GetValue <bool>() && Properties.MainMenu.Item("sOrbwalker").GetValue <StringList>().SelectedIndex == 1)// Only for common orbwalker { OrbWalkMinions(); } }