private static void OnGameUpdate(EventArgs args) { try { lastTick = now; ARAMSimulator.updateArmaPlay(); } catch (Exception ex) { Console.WriteLine(ex); } }
private static void OnGameUpdate(EventArgs args) { try { if (Config.Item("botOff").GetValue <bool>()) { return; } if (Config.Item("db_targ").GetValue <KeyBind>().Active) { foreach (var buf in ObjectManager.Player.Buffs) { Console.WriteLine(buf.Name); } /*var player = HeroManager.Player; * foreach (var spell in * SpellDatabase.Spells.Where( * s => * s.ChampionName.Equals(player.ChampionName))) * { * Console.WriteLine("-----Spell: " + spell.Slot + "---------------- "); * if(spell.SpellTags != null) * foreach (var tag in spell.SpellTags) * { * Console.WriteLine("--tag: " + tag); * } * if (spell.CastType != null) * foreach (var ctype in spell.CastType) * { * Console.WriteLine("--casttype: " + ctype); * } * }*/ } //if (lastTick + tickTimeRng > now) // return; //if(rng == null) // rng = new Random(); //tickTimeRng = rng.Next(70, 140); lastTick = now; ARAMSimulator.updateArmaPlay(); } catch (Exception ex) { Console.WriteLine(ex); } }
private static void OnGameUpdate(EventArgs args) { try { if (Debug["botOff"].Cast <CheckBox>().CurrentValue) { return; } lastTick = now; ARAMSimulator.updateArmaPlay(); } catch (Exception ex) { Console.WriteLine("Error at line: " + ex.LineNumber()); Console.WriteLine(ex); } }