private static void Loading_OnLoadingComplete(EventArgs args) { try { if (Game.MapId != GameMapId.HowlingAbyss) { Logger.Send("AramBuddy only supports Howling Abyss. " + Game.MapId + " will never be supported", Logger.LogLevel.Error); return; } textsize = Drawing.Width <= 1280 || Drawing.Height <= 720 ? 10F : 40F; text = new Text("YOUR ORBWALKER IS DISABLED", new Font("Euphemia", textsize, FontStyle.Bold)) { Color = System.Drawing.Color.White, Position = new Vector2(Drawing.Width * 0.3f, Drawing.Height * 0.2f) }; Chat.OnClientSideMessage += delegate(ChatClientSideMessageEventArgs eventArgs) { if (eventArgs.Message.ToLower().Contains("portaio") && !CrashAIODetected) { var warnmsg = "AramBuddy does not work with CrashAIO\nDisable CrashAIO in order to use AramBuddy !"; Chat.Print(warnmsg); Logger.Send(warnmsg, Logger.LogLevel.Warn); Notifications.Show(new SimpleNotification("AramBuddy", warnmsg), 20000); Drawing.OnEndScene += delegate { text.TextValue = warnmsg; text.Position = new Vector2(Drawing.Width * 0.3f, Drawing.Height * 0.2f); text.Draw(); }; CrashAIODetected = true; } }; // Creates The Menu CreateMenu(); // Checks for updates //CheckVersion.Init(); // Inits KappaEvade KappaEvade.Init(); // Initialize the AutoShop. AutoShop.Setup.Init(); Timer = Game.Time; TimeToStart = new Random().Next(10000, 30000) + Game.Ping; Game.OnTick += Game_OnTick; Events.OnGameEnd += Events_OnGameEnd; Player.OnPostIssueOrder += Player_OnPostIssueOrder; Drawing.OnEndScene += Drawing_OnEndScene; Logger.Send("Starting after: " + (TimeToStart / 1000).ToString("F1") + " Second/s", Logger.LogLevel.Event); } catch (Exception ex) { Logger.Send("Program Error At Loading_OnLoadingComplete", ex, Logger.LogLevel.Error); } }
public static void Init() { KappaEvade.Init(); Activator.Load.Init(); Events.Init(); //Tracker.Ganks.Init(); }
private static void Loading_OnLoadingComplete(EventArgs args) { if (!SupportedHeros.Contains(Player.Instance.Hero)) { return; } var Instance = (Base)Activator.CreateInstance(null, "KappAIO.Champions." + Player.Instance.Hero + "." + Player.Instance.Hero).Unwrap(); KappaEvade.Init(); CheckVersion.Init(); Utility.Activator.Load.Init(); Events.Init(); }
private static void Loading_OnLoadingComplete(EventArgs args) { try { // Disable arambuddy if it's not running in HowlingAbyss if (Game.MapId != GameMapId.HowlingAbyss) { Logger.Send(Game.MapId + " IS NOT Supported By AramBuddy !", Logger.LogLevel.Warn); Chat.Print(Game.MapId + " IS NOT Supported By AramBuddy !"); return; } textsize = (Drawing.Width + Drawing.Height) * 0.02f; text = new Text("YOUR ORBWALKER IS DISABLED", new Font("Euphemia", textsize, FontStyle.Bold)) { Color = System.Drawing.Color.White, Position = new Vector2(Drawing.Width * 0.3f, Drawing.Height * 0.2f) }; Chat.OnClientSideMessage += delegate(ChatClientSideMessageEventArgs eventArgs) { if (eventArgs.Message.ToLower().Contains("portaio") && !CrashAIODetected) { var warnmsg = "AramBuddy Does not Work With PortAIO\nDisable PortAIO In order to use AramBuddy !"; Chat.Print(warnmsg); Logger.Send(warnmsg, Logger.LogLevel.Warn); Notifications.Show(new SimpleNotification("AramBuddy", warnmsg), 20000); Drawing.OnEndScene += delegate { text.TextValue = warnmsg; text.Position = new Vector2(Drawing.Width * 0.3f, Drawing.Height * 0.2f); text.Draw(); }; CrashAIODetected = true; } }; // Creates The Menu CreateMenu(); // Checks for updates CheckVersion.Init(); // Inits KappaEvade KappaEvade.Init(); // Initialize the AutoShop. Setup.Init(); // The time Game loaded At. Timer = Game.Time; // Time in ms to start the bot TimeToStart = new Random().Next(7500, 30000) + Game.Ping; Game.OnTick += Game_OnTick; Events.OnGameEnd += Events_OnGameEnd; Player.OnPostIssueOrder += Player_OnPostIssueOrder; Drawing.OnEndScene += Drawing_OnEndScene; Logger.Send("Starting After: " + (TimeToStart / 1000).ToString("F1") + " Second/s", Logger.LogLevel.Event); } catch (Exception ex) { Logger.Send("Program Error At Loading_OnLoadingComplete", ex, Logger.LogLevel.Error); } }