private void Awake() { rb = GetComponent <Rigidbody2D>(); anim = GetComponentInChildren <Animator>(); shield = GetComponentInChildren <Shield>(); spells = GetComponentInChildren <SpellsManager>(); startSpeed = speed; endCooldown = true; }
public void OnInitialize() { Game.OnGameLoaded += () => { Core.DelayAction(() => { if (Globals.MyHero.Hero.Equals(Champion.Annie)) { switch (Updater.Run(Name, Version)) { case "NoUpdate": Chat.Print("<font color='#27ae60'>[T2IN1-UPDATE-CHECKER] </font>No update found"); break; case "Failed": Chat.Print("<font color='#e74c3c'>[T2IN1-UPDATE-CHECKER] </font>Could not check for updates"); break; case "NewVersion": Chat.Print("<font color='#e74c3c'>[T2IN1-UPDATE-CHECKER] </font>A new update is available"); break; default: Chat.Print("<font color='#e74c3c'>[T2IN1-UPDATE-CHECKER] </font>Could not check for updates"); break; } Console.Clear(); try { SpellsManager.Initialize(); Menus.Initialize(); Drawings.Initialize(); DamageIndicator.Initialize(); ModeManager.Initialize(); EventManager.Initialize(); /* Interrupt.Initialize(); TODO: FINISH */ } catch (Exception _Exception) { Logger.Log("Error: " + _Exception, ConsoleColor.Red); } Chat.Print("<font color='#27ae60'>[T2IN1-REBORN] </font>Script is fully initialized"); } else { Chat.Print("<font color='#e74c3c'>[T2IN1-REBORN] </font> Champion: " + ObjectManager.Player.ChampionName + " is not Supported!"); } }, new Random().Next(1250, 3500)); }; }
private static void Loading_OnLoadingComplete(EventArgs args) { //Teemo if (Player.Instance.Hero == Champion.Teemo) { SpellsManager.InitializeSpells(); Menus.CreateMenu(); ModeManager.InitializeModes(); DrawingsManager.InitializeDrawings(); Chat.Print("T2IN1 Teemo Loaded!"); Chat.Print("Credits to MarioGK for his Template & Lib also Credits to Joker for Parts of his Lib"); } }
public static void Execute() { Orbwalker.DisableAttacking = true; var target = TargetSelector.GetTarget(Q.Range, DamageType.Magical); if (Q.IsReady()) { MiscMenu.GetSliderValue("predictionHit"); SpellsManager.castQ(target, false, predictionHit); } if (E.IsReady()) { E.Cast(Utils.getPlayer()); } }
void Start() { if (instance == null) { instance = this; } else if (instance != this) { Destroy(this); } SetSpellButtons(); Ticker.OnTickEvent += CheckSpellsTimer; }
private static void Loading_OnLoadingComplete(EventArgs args) { //Wukong if (Player.Instance.Hero == Champion.Blitzcrank) { SpellsManager.InitializeSpells(); Menus.CreateMenu(); ModeManager.InitializeModes(); DrawingsManager.InitializeDrawings(); JungleSteal.Execute(); Combo.Initialize_E_AA_Reset(); Chat.Print("[T2IN1] Blitzcrank Loaded!", TextColor.LimeGreen); } else { Chat.Print("[T2IN1] " + ObjectManager.Player.ChampionName + " is not Supported!", TextColor.PaleVioletRed); } }
/// <summary> /// Put in here what you want to do when the mode is running /// </summary> public static void Execute() { //var target = TargetManager.GetChampionTarget(SpellManager.R.Range, DamageType.Magical, false, false, SpellManager.RDamage()); // if (target != null) // SpellManager.CastR(target); //Thanks to Mario if (KillStealMenu.GetCheckBoxValue("rUse")) { var rtarget = TargetSelector.GetTarget(R.Range, DamageType.Magical); if (R.IsReady()) { var rDamage = rtarget.GetDamage(SpellSlot.R); var target = TargetManager.GetChampionTarget(SpellsManager.R.Range, DamageType.Magical, false, false, SpellsManager.RDamage()); if (target != null) { SpellsManager.R.Cast(target); } } } // END THANKS }
public static void Execute() { var qtarget = TargetSelector.GetTarget(Q.Range, DamageType.Magical); var wtarget = TargetSelector.GetTarget(W.Range, DamageType.Magical); var etarget = TargetSelector.GetTarget(E.Range, DamageType.Magical); if (ComboMenu.GetCheckBoxValue("combo1")) { if (ComboMenu.GetCheckBoxValue("rUse") && R.IsReady() && getPlayer().HealthPercent < comboUseRW) { R.Cast(); } if (ComboMenu.GetCheckBoxValue("eUse") && E.IsReady()) { var player1 = ObjectManager.Player; E.Cast(player1); } if (ComboMenu.GetCheckBoxValue("wUse") && wtarget.IsValidTarget(W.Range) && W.IsReady()) { W.Cast(wtarget); } if (ComboMenu.GetCheckBoxValue("qUse") && Q.IsReady() && qtarget.IsValidTarget(Q.Range)) { SpellsManager.castQ(qtarget, false, predictionHit); } } if (ComboMenu.GetCheckBoxValue("combo2")) { if (ComboMenu.GetCheckBoxValue("rUse") && R.IsReady() && getPlayer().HealthPercent < comboUseRW) { R.Cast(); } if (ComboMenu.GetCheckBoxValue("wUse") && wtarget.IsValidTarget(W.Range) && W.IsReady()) { W.Cast(wtarget); } if (ComboMenu.GetCheckBoxValue("qUse") && Q.IsReady() && qtarget.IsValidTarget(Q.Range)) { SpellsManager.castQ(qtarget, false, predictionHit); } } if (ComboMenu.GetCheckBoxValue("combo3")) { if (ComboMenu.GetCheckBoxValue("qUse") && Q.IsReady() && qtarget.IsValidTarget(Q.Range)) { SpellsManager.castQ(qtarget, false, predictionHit); } if (ComboMenu.GetCheckBoxValue("wUse") && wtarget.IsValidTarget(W.Range) && W.IsReady()) { W.Cast(wtarget); } if (ComboMenu.GetCheckBoxValue("rUse") && R.IsReady() && getPlayer().HealthPercent < comboUseRW) { R.Cast(); } } if (ComboMenu.GetCheckBoxValue("combo4")) { if (ComboMenu.GetCheckBoxValue("qUse") && Q.IsReady() && qtarget.IsValidTarget(Q.Range)) { Q.Cast(qtarget); } if (ComboMenu.GetCheckBoxValue("rUse") && R.IsReady() && getPlayer().HealthPercent < comboUseRW) { R.Cast(); } if (ComboMenu.GetCheckBoxValue("wUse") && wtarget.IsValidTarget(W.Range) && W.IsReady()) { W.Cast(wtarget); } if (ComboMenu.GetCheckBoxValue("eUse") && E.IsReady()) { var player1 = ObjectManager.Player; E.Cast(player1); } } if (ComboMenu.GetCheckBoxValue("combo5")) { if (ComboMenu.GetCheckBoxValue("wUse") && wtarget.IsValidTarget(W.Range) && W.IsReady()) { W.Cast(wtarget); } if (ComboMenu.GetCheckBoxValue("eUse") && E.IsReady()) { var player1 = ObjectManager.Player; E.Cast(player1); } if (ComboMenu.GetCheckBoxValue("rUse") && R.IsReady() && getPlayer().HealthPercent < comboUseRW && ComboMenu.GetCheckBoxValue("qUse") && Q.IsReady()) { R.Cast(); Q.Cast(qtarget); } } if (ComboMenu.GetCheckBoxValue("combo6")) { if (ComboMenu.GetCheckBoxValue("rUse") && R.IsReady() && getPlayer().HealthPercent < comboUseRW && ComboMenu.GetCheckBoxValue("qUse") && Q.IsReady()) { R.Cast(); Q.Cast(qtarget); } if (ComboMenu.GetCheckBoxValue("wUse") && wtarget.IsValidTarget(W.Range) && W.IsReady()) { W.Cast(wtarget); } if (ComboMenu.GetCheckBoxValue("eUse") && E.IsReady()) { var player1 = ObjectManager.Player; E.Cast(player1); } } if (ComboMenu.GetCheckBoxValue("combo7")) { var target = TargetSelector.GetTarget(1250, DamageType.Magical); if (target == null) { return; } var pred = Q.GetPrediction(target); var sayimiz = target.CountEnemiesInRange(Q.Width); var player1 = ObjectManager.Player; if (R.IsReady() && (Q.IsReady() || W.IsReady() || E.IsReady())) { if (player1.HealthPercent < 50 && W.IsReady() && target.IsValidTarget(W.Range)) { R.TryToCast(player1, ComboMenu); } if (Q.IsReady() && target.IsValidTarget(Q.Range)) { if (pred.HitChance >= HitChance.High) { R.TryToCast(player1, ComboMenu); } } if (E.IsReady() && player1.Position.CountAlliesInRange(E.Range) >= 3) { R.TryToCast(player1, ComboMenu); } } if (player1.HasBuff("KarmaMantra") && (Q.IsReady() || W.IsReady() || E.IsReady())) { if (player1.HealthPercent < 50 && W.IsReady() && target.IsValidTarget(W.Range)) { W.TryToCast(target, ComboMenu); } if (E.IsReady() && player1.Position.CountAlliesInRange(E.Range) >= 3) { E.TryToCast(player1, ComboMenu); } if (target.IsValidTarget(Q.Range) && Q.IsReady()) { Q.TryToCast(target, ComboMenu); } } //if player doesnt have karma mantra activated. else { if (target.IsValidTarget(W.Range)) { W.TryToCast(target, ComboMenu); } if (target.IsValidTarget(Q.Range)) { Q.TryToCast(target, ComboMenu); } } if (target.HasBuff("KarmaSpiritBind") || (Player.Instance.IsInDanger(80) && target.IsAttackingPlayer)) { E.TryToCast(player1, ComboMenu); } //Run to target with normal E if player can catch. if (player1.Distance(target) < Q.Range + player1.MoveSpeed * 0.3 && E.IsReady() && player1.HasBuff("CrestoftheAncientGolem")) { E.TryToCast(player1, ComboMenu); } } }
public static void Execute() { //////////////////////////////////////////////////////////////////////////////////////////////////////////////// var Target = TargetSelector.GetTarget(Q.Range, DamageType.Physical); if (Target == null || Target.IsInvulnerable || Target.MagicImmune) { return; } //////////////////////////////////////////////////////////////////////////////////////////////////////////////// #region C0 if (ComboMenu["Comba"].Cast <ComboBox>().CurrentValue == 0) { if (Program.burrowed) { if (ComboMenu.GetCheckBoxValue("UseEBCombo")) { var te = TargetSelector.GetTarget(Q.Range + W.Range, DamageType.Physical); if (E2.IsReady() && te.IsValidTarget(E2.Range + W.Range) && Program._player.Distance(te) > Q.Range) { var predictionE2 = E2.GetPrediction(te); if (predictionE2.HitChance >= HitChance.High) { E2.Cast(predictionE2.CastPosition - 50); } } } if (ComboMenu.GetCheckBoxValue("UseQBCombo")) { var tbq = TargetSelector.GetTarget(Q.Range + W.Range, DamageType.Physical); var predictionQ2 = Q2.GetPrediction(tbq); if (Q2.IsReady() && tbq.IsValidTarget(Q2.Range) && predictionQ2.HitChance >= HitChance.High) { Q2.Cast(predictionQ2.CastPosition); } } if (ComboMenu.GetCheckBoxValue("UseWCombo")) { var tw = TargetSelector.GetTarget(W.Range, DamageType.Physical); if (W.IsReady() && tw.IsValidTarget(W.Range) && !Q2.IsReady()) { W.Cast(); } } } if (!Program.burrowed) { if (ComboMenu.GetCheckBoxValue("UseQCombo")) { var tq = TargetSelector.GetTarget(Q.Range, DamageType.Physical); if (Q.IsReady() && tq.IsValidTarget(Q.Range)) { Q.Cast(); } } if (ComboMenu.GetCheckBoxValue("UseECombo")) { var te = TargetSelector.GetTarget(E.Range, DamageType.Physical); if (te.IsValidTarget(E.Range) && E.IsReady()) { if (Q.IsOnCooldown) { E.Cast(te); } else if (_player.Mana < 100 && te.Health <= te.GetDamage(SpellSlot.E)) { E.Cast(te); } else if (te.Health <= SpellsManager.GetTotalDamage(te)) { E.Cast(te); } } } if (ComboMenu.GetCheckBoxValue("UseWCombo") && W.IsReady()) { var tw = TargetSelector.GetTarget(W.Range, DamageType.Physical); if (!Q.IsReady() && !tw.IsValidTarget(E.Range) && tw.IsValidTarget(Q2.Range)) { W.Cast(); } } } } #endregion C0 #region C1 if (ComboMenu["Comba"].Cast <ComboBox>().CurrentValue == 1) { ComboMenu.Add("comboE2Distance", new Slider("Use E (Burrowed) when 0 enemies in range:", 550, 100, 750)); if (Player.Instance.CountEnemiesInRange(800) > 0) { Program.Yomuus(); } if (Program.burrowed) { var targetW = TargetSelector.GetTarget(Player.Instance.BoundingRadius + 175, DamageType.Physical); var targetQ2 = TargetSelector.GetTarget(850, DamageType.Magical); var targetE = TargetSelector.GetTarget(550, DamageType.Physical); var targetE2 = TargetSelector.GetTarget(E2.Range, DamageType.Physical); var predE2 = E2.GetPrediction(targetE2); if (ComboMenu.GetCheckBoxValue("UseWCombo") && W.IsReady()) { if (targetW != null && targetW.IsValidTarget(W.Range)) { W.Cast(); return; } } if (ComboMenu.GetCheckBoxValue("UseQBCombo") && Q2.IsReady()) { if (targetQ2 != null && targetQ2.IsValidTarget(Q2.Range)) { var predictionQ2 = Q2.GetPrediction(targetQ2); if (predictionQ2.HitChance >= HitChance.Medium) { Q2.Cast(predictionQ2.CastPosition); return; } } } if (ComboMenu.GetCheckBoxValue("UseEBCombo") && E2.IsReady()) { if (Player.Instance.CountEnemiesInRange(ComboMenu.GetSliderValue("comboE2Distance")) < 1) { if (targetE2.IsValidTarget()) { E2.Cast(targetE2.Position + 200); return; } } } } if (!Program.burrowed) { var targetE = TargetSelector.GetTarget(E.Range, DamageType.Physical); var lastTarget = Orbwalker.LastTarget; var target = TargetSelector.GetTarget(300, DamageType.Physical); if (ComboMenu.GetCheckBoxValue("UseECombo") && E.IsReady()) { if (targetE != null && targetE.IsValidTarget()) { E.Cast(targetE); return; } } if (ComboMenu.GetCheckBoxValue("UseWCombo") && W.IsReady()) { if (Player.Instance.CountEnemiesInRange(300) == 0) { W.Cast(); return; } } if (ComboMenu.GetCheckBoxValue("UseWCombo") && W.IsReady()) { if (lastTarget.IsValidTarget(Player.Instance.BoundingRadius + 250) && !target.HasBuff("reksaiknockupimmune")) { W.Cast(); return; } } } } #endregion C1 }
private void Start() { spells = FindObjectOfType <SpellsManager>(); }