public void Load(EventArgs arg) { Chat.Print("| Kindred - NevaSeries | - Loaded!", System.Drawing.Color.Red); Chat.Print("Checking version [ ... ]", System.Drawing.Color.Yellow); if (!Player.Instance.ChampionName.Contains("Kindred")) { Chat.Print("This is a Kindred addon,you have " + Player.Instance.ChampionName, System.Drawing.Color.Orange); Chat.Print("Bye, no free elo for you ^^ ", System.Drawing.Color.Black); return; } if (new WebClient().DownloadString("http://pastebin.com/raw.php?i=khH0mDQh") != cVersion) { Chat.Print("Old version, update addon please!", System.Drawing.Color.Red); return; } else { Chat.Print("You got the last version! " + cVersion, System.Drawing.Color.Blue); } menu.loadMenu(); spells.loadSpells(); Game.OnTick += keys; Drawing.OnDraw += KindredDrawings.actives; Game.OnUpdate += Kindred.gameUpdate; }
private static void OnLoadingComplete(EventArgs args) { if (Player.Instance.ChampionName != "Kindred") { return; } AbilitySequence = new int[] { 2, 1, 3, 1, 1, 4, 1, 2, 1, 2, 4, 2, 2, 3, 3, 4, 3, 3 }; Chat.Print("Kindred Dude Loaded!", Color.CornflowerBlue); Chat.Print("Enjoy the game and DONT FEED!", Color.Red); KindredMenu.loadMenu(); KindredActivator.loadSpells(); Game.OnTick += GameOnTick; Game.OnUpdate += OnGameUpdate; #region Skill Q = new Spell.Skillshot(SpellSlot.Q, (uint)ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Q).SData.CastRangeDisplayOverride, SkillShotType.Linear); W = new Spell.Active(SpellSlot.W); E = new Spell.Targeted(SpellSlot.E, (uint)ObjectManager.Player.Spellbook.GetSpell(SpellSlot.E).SData.CastRange); R = new Spell.Targeted(SpellSlot.R, (uint)ObjectManager.Player.Spellbook.GetSpell(SpellSlot.R).SData.CastRange); #endregion Game.OnUpdate += OnGameUpdate; Drawing.OnDraw += GameOnDraw; Gapcloser.OnGapcloser += AntiGapCloser; }