private void MainForm_Load(object sender, EventArgs e) { ItemInfo.LoadItemsOtb(); mapTiles = new Dictionary <Location, OtMapTile>(); mapCreatures = new Dictionary <Location, PacketCreature>(); packetQueue = new Queue <SplitPacket>(); Reset(); client = ClientChooser.ShowBox(); if (client != null) { if (!useHookProxy && client.LoggedIn) { MessageBox.Show("Using the proxy requires that the client is not logged in."); Application.Exit(); } else if (!useHookProxy) { client.Exited += new EventHandler(Client_Exited); client.IO.StartProxy(); } Start(); } else { MessageBox.Show("MapTracker requires at least one running client."); Application.Exit(); } camLoader = new CamLoader(client, proxy, Log); minimap = new MiniMap(); }
private void MainForm_Load(object sender, EventArgs e) { ItemInfo.LoadItemsOtb(); mapTiles = new Dictionary<Location, OtMapTile>(); mapCreatures = new Dictionary<Location, PacketCreature>(); packetQueue = new Queue<SplitPacket>(); Reset(); client = ClientChooser.ShowBox(); if (client != null) { if (!useHookProxy && client.LoggedIn) { MessageBox.Show("Using the proxy requires that the client is not logged in."); Application.Exit(); } else if (!useHookProxy) { client.Exited += new EventHandler(Client_Exited); client.IO.StartProxy(); } Start(); } else { MessageBox.Show("MapTracker requires at least one running client."); Application.Exit(); } camLoader = new CamLoader(client, proxy, Log); minimap = new MiniMap(); }