private static void OnLoad() { MenuIni = MainMenu.AddMenu("Auto Farm ", "Auto Farm"); Lh = MenuIni.AddSubMenu("LastHit ", "LastHit"); Lh.AddGroupLabel("LastHit Settings"); Lh.Add( Player.ChampionName + "Enable", new KeyBind("Enable LastHit Toggle", true, KeyBind.BindTypes.PressToggle, 'M')); Lh.Add( Player.ChampionName + "Enableactive", new KeyBind("Enable LastHit Active", false, KeyBind.BindTypes.HoldActive)); Lh.Add(Player.ChampionName + "combo", new CheckBox("Disable When Combo is active ")); Lh.Add(Player.ChampionName + "harass", new CheckBox("Disable When Harass is active ")); Lh.AddSeparator(); Lh.AddGroupLabel("Spells Settings"); Lh.Add(Player.ChampionName + "Qmode", new ComboBox("Q Mode", 0, "UnKillable Minions", "LastHit")); Lh.Add(Player.ChampionName + "Q", new CheckBox("Use Q ", false)); Lh.Add(Player.ChampionName + "Wmode", new ComboBox("W Mode", 0, "UnKillable Minions", "LastHit")); Lh.Add(Player.ChampionName + "W", new CheckBox("Use W ", false)); Lh.Add(Player.ChampionName + "Emode", new ComboBox("E Mode", 0, "UnKillable Minions", "LastHit")); Lh.Add(Player.ChampionName + "E", new CheckBox("Use E ", false)); Lh.Add(Player.ChampionName + "Rmode", new ComboBox("R Mode", 0, "UnKillable Minions", "LastHit")); Lh.Add(Player.ChampionName + "R", new CheckBox("Use R ", false)); Lc = MenuIni.AddSubMenu("LaneClear ", "LaneClear"); Lc.AddGroupLabel("LaneClear Settings"); Lc.Add( Player.ChampionName + "Enable", new KeyBind("Enable LaneClear Toggle", true, KeyBind.BindTypes.PressToggle, 'M')); Lc.Add( Player.ChampionName + "Enableactive", new KeyBind("Enable LaneClear Active", false, KeyBind.BindTypes.HoldActive)); Lc.Add(Player.ChampionName + "combo", new CheckBox("Disable When Combo is active ")); Lc.Add(Player.ChampionName + "harass", new CheckBox("Disable When Harass is active ")); Lc.AddSeparator(); Lc.AddGroupLabel("Spells Settings"); Lc.Add(Player.ChampionName + "Qmode", new ComboBox("Q Mode", 0, "OnAfterAttack", "Always")); Lc.Add(Player.ChampionName + "Q", new CheckBox("Use Q ", false)); Lc.Add(Player.ChampionName + "Wmode", new ComboBox("W Mode", 0, "OnAfterAttack", "Always")); Lc.Add(Player.ChampionName + "W", new CheckBox("Use W ", false)); Lc.Add(Player.ChampionName + "Emode", new ComboBox("E Mode", 0, "OnAfterAttack", "Always")); Lc.Add(Player.ChampionName + "E", new CheckBox("Use E ", false)); Lc.Add(Player.ChampionName + "Rmode", new ComboBox("R Mode", 0, "OnAfterAttack", "Always")); Lc.Add(Player.ChampionName + "R", new CheckBox("Use R ", false)); ManaMenu = MenuIni.AddSubMenu("Mana Manager ", "Mana Manager"); ManaMenu.AddGroupLabel("Only Cast if Mana >= %"); ManaMenu.Add(Player.ChampionName + "Q", new Slider(" Q ")); ManaMenu.Add(Player.ChampionName + "W", new Slider(" W ")); ManaMenu.Add(Player.ChampionName + "E", new Slider(" E ")); ManaMenu.Add(Player.ChampionName + "R", new Slider(" R ")); DrawMenu = MenuIni.AddSubMenu("Drawings ", "Drawings"); DrawMenu.AddGroupLabel("Drawings Settings"); DrawMenu.Add(Player.ChampionName + "Q", new CheckBox("Draw Q ", false)); DrawMenu.Add(Player.ChampionName + "W", new CheckBox("Draw W ", false)); DrawMenu.Add(Player.ChampionName + "E", new CheckBox("Draw E ", false)); DrawMenu.Add(Player.ChampionName + "R", new CheckBox("Draw R ", false)); SpellManager.Initialize(); SpellLibrary.Initialize(); Orbwalker.OnUnkillableMinion += LastHit.Orbwalker_OnUnkillableMinion; Drawing.OnDraw += Drawing_OnDraw; Orbwalker.OnPostAttack += LaneClear.Orbwalker_OnPostAttack; Game.OnTick += Game_OnTick; }
private static void OnLoad() { MenuIni = MainMenu.AddMenu("Auto Farm ", "Auto Farm"); Lh = MenuIni.AddSubMenu("LastHit ", "LastHit"); Lh.AddGroupLabel("LastHit Settings"); Lh.Add( Player.ChampionName + "Enable", new KeyBind("SonVurus Aktiflestirme Tusu", true, KeyBind.BindTypes.PressToggle, 'M')); Lh.Add( Player.ChampionName + "Enableactive", new KeyBind("SonVurus Aktif", false, KeyBind.BindTypes.HoldActive)); Lh.Add(Player.ChampionName + "combo", new CheckBox("Kombo etkin oldugunda devre disi birak ")); Lh.Add(Player.ChampionName + "harass", new CheckBox("Durtme etkin oldugunda devre disi birak ")); Lh.AddSeparator(); Lh.AddGroupLabel("Spells Settings"); Lh.Add(Player.ChampionName + "Qmode", new ComboBox("Q Modu", 0, "Kesemeyecegim minyona", "SonVurus")); Lh.Add(Player.ChampionName + "Q", new CheckBox("Kullan Q ", false)); Lh.Add(Player.ChampionName + "Wmode", new ComboBox("W Modu", 0, "Kesemeyecegim minyona", "SonVurus")); Lh.Add(Player.ChampionName + "W", new CheckBox("Kullan W ", false)); Lh.Add(Player.ChampionName + "Emode", new ComboBox("E Modu", 0, "Kesemeyecegim minyona", "SonVurus")); Lh.Add(Player.ChampionName + "E", new CheckBox("Kullan E ", false)); Lh.Add(Player.ChampionName + "Rmode", new ComboBox("R Modu", 0, "Kesemeyecegim minyona", "SonVurus")); Lh.Add(Player.ChampionName + "R", new CheckBox("Kullan R ", false)); Lc = MenuIni.AddSubMenu("LaneClear ", "LaneClear"); Lc.AddGroupLabel("LaneClear Settings"); Lc.Add( Player.ChampionName + "Enable", new KeyBind("Koridor temizleme aktiflestirme tusu", true, KeyBind.BindTypes.PressToggle, 'M')); Lc.Add( Player.ChampionName + "Enableactive", new KeyBind("Koridor temizleme aktif", false, KeyBind.BindTypes.HoldActive)); Lc.Add(Player.ChampionName + "combo", new CheckBox("Kombo etkin oldugunda devre disi birak ")); Lc.Add(Player.ChampionName + "harass", new CheckBox("Durtme etkin oldugunda devre disi birak ")); Lc.AddSeparator(); Lc.AddGroupLabel("Spells Settings"); Lc.Add(Player.ChampionName + "Qmode", new ComboBox("Q Modu", 0, "SaldiridanSonra", "Surekli")); Lc.Add(Player.ChampionName + "Q", new CheckBox("Kullan Q ", false)); Lc.Add(Player.ChampionName + "Wmode", new ComboBox("W Modu", 0, "SaldiridanSonra", "Surekli")); Lc.Add(Player.ChampionName + "W", new CheckBox("Kullan W ", false)); Lc.Add(Player.ChampionName + "Emode", new ComboBox("E Modu", 0, "SaldiridanSonra", "Surekli")); Lc.Add(Player.ChampionName + "E", new CheckBox("Kullan E ", false)); Lc.Add(Player.ChampionName + "Rmode", new ComboBox("R Modu", 0, "SaldiridanSonra", "Surekli")); Lc.Add(Player.ChampionName + "R", new CheckBox("Kullan R ", false)); ManaMenu = MenuIni.AddSubMenu("Mana Manager ", "Mana Manager"); ManaMenu.AddGroupLabel("Sadece kullanilsin Mana >= %"); ManaMenu.Add(Player.ChampionName + "Q", new Slider(" Q ")); ManaMenu.Add(Player.ChampionName + "W", new Slider(" W ")); ManaMenu.Add(Player.ChampionName + "E", new Slider(" E ")); ManaMenu.Add(Player.ChampionName + "R", new Slider(" R ")); DrawMenu = MenuIni.AddSubMenu("Drawings ", "Drawings"); DrawMenu.AddGroupLabel("Drawings Settings"); DrawMenu.Add(Player.ChampionName + "Q", new CheckBox("Goster Q ", false)); DrawMenu.Add(Player.ChampionName + "W", new CheckBox("Goster W ", false)); DrawMenu.Add(Player.ChampionName + "E", new CheckBox("Goster E ", false)); DrawMenu.Add(Player.ChampionName + "R", new CheckBox("Goster R ", false)); SpellManager.Initialize(); SpellLibrary.Initialize(); Orbwalker.OnUnkillableMinion += LastHit.Orbwalker_OnUnkillableMinion; Drawing.OnDraw += Drawing_OnDraw; Orbwalker.OnPostAttack += LaneClear.Orbwalker_OnPostAttack; Game.OnTick += Game_OnTick; }
private void Exportfunction() { if (!String.IsNullOrEmpty(InsertedNameForXmlfile)) { this.Message = ""; try { using (var fldrDlg = new FolderBrowserDialog()) { if (fldrDlg.ShowDialog() == DialogResult.OK) { this.Message = ""; if (String.IsNullOrEmpty(fldrDlg.SelectedPath)) { this.Message = "Bitte geben Sie Pfad ein: "; } else { String path = fldrDlg.SelectedPath + "\\" + InsertedNameForXmlfile + ".xml"; XmlTextWriter xmlWriter = new XmlTextWriter(path, System.Text.Encoding.UTF8); xmlWriter.Formatting = Formatting.Indented; xmlWriter.WriteStartDocument(); xmlWriter.WriteComment("Creating an XML File....."); xmlWriter.WriteStartElement("Categories"); foreach (CategoryViewModel category in Set) { xmlWriter.WriteStartElement("Category"); xmlWriter.WriteElementString("Name", category.Name); xmlWriter.WriteElementString("CreatedTime", category.CreatedTime); xmlWriter.WriteElementString("NumberOfCards", category.NumberOfCards.ToString()); xmlWriter.WriteStartElement("Cards"); for (var i = 0; i < category.Collections.Length; i++) { for (var j = 0; j < category.Collections[i].Count; j++) { xmlWriter.WriteStartElement("Card"); xmlWriter.WriteElementString("Name", category.Collections[i][j].Name); xmlWriter.WriteElementString("CreatedTime", (category.Collections[i][j].Info.CreatedTime).ToString()); xmlWriter.WriteElementString("CreatedTimeAsString", category.Collections[i][j].Info.CreatedTimeAsString); xmlWriter.WriteElementString("IsMarked", category.Collections[i][j].Info.Marked.ToString()); xmlWriter.WriteElementString("LastlernedColor", category.Collections[i][j].Info.LastLearnedColor); xmlWriter.WriteElementString("LastLearnedTime", (category.Collections[i][j].Info.LastLearnedTime).ToString()); xmlWriter.WriteElementString("LastTimeUsed", (category.Collections[i][j].Info.LastTimeUsed).ToString()); xmlWriter.WriteStartElement("LearnHistory"); foreach (bool Lh in category.Collections[i][j].Info.LearnHistory) { xmlWriter.WriteElementString("LH", Lh.ToString()); } xmlWriter.WriteEndElement(); xmlWriter.WriteElementString("Question", category.Collections[i][j].Front.Text); if (category.Collections[i][j].Front.Image != null) { byte[] bImage = BitmapSourceToByte(category.Collections[i][j].Front.Image); xmlWriter.WriteElementString("QuestionFoto", Convert.ToBase64String(bImage)); } xmlWriter.WriteElementString("Answer", category.Collections[i][j].Back.Text); if (category.Collections[i][j].Back.Image != null) { byte[] bImage = BitmapSourceToByte(category.Collections[i][j].Back.Image); xmlWriter.WriteElementString("AnswerFoto", Convert.ToBase64String(bImage)); } xmlWriter.WriteStartElement("KeyWords"); foreach (String keyword in category.Collections[i][j].Keywords) { xmlWriter.WriteElementString("keyword", keyword); } xmlWriter.WriteEndElement(); xmlWriter.WriteEndElement(); } } xmlWriter.WriteEndElement(); xmlWriter.WriteEndElement(); } //xmlWriter.WriteEndElement(); xmlWriter.WriteEndDocument(); xmlWriter.Flush(); xmlWriter.Close(); this.Message = "Fertig!\n Pfad: " + path; } } } } catch (Exception) { MessageBox.Show("An Error Occured", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } } else { this.Message = "Zum Exportieren geben Sie bitte einen Dateinamen ein!"; } }
private static void OnLoad() { MenuIni = MainMenu.AddMenu("Auto Farm ", "Auto Farm"); Lh = MenuIni.AddSubMenu("LastHit ", "LastHit"); Lh.AddGroupLabel("Sonvuruş Ayarları"); Lh.Add( Player.ChampionName + "Enable", new KeyBind("Son vuruş tuşu", true, KeyBind.BindTypes.PressToggle, 'M')); Lh.Add( Player.ChampionName + "Enableactive", new KeyBind("Son vuruş Aktif", false, KeyBind.BindTypes.HoldActive)); Lh.Add(Player.ChampionName + "combo", new CheckBox("Komboda Kullanma")); Lh.Add(Player.ChampionName + "harass", new CheckBox("Dürtmede Kullanma")); Lh.AddSeparator(); Lh.AddGroupLabel("Spells Settings"); Lh.Add(Player.ChampionName + "Qmode", new ComboBox("Q Modu", 0, "UnKillable Minions", "LastHit")); Lh.Add(Player.ChampionName + "Q", new CheckBox("Kullan Q ", false)); Lh.Add(Player.ChampionName + "Wmode", new ComboBox("W Modu", 0, "UnKillable Minions", "LastHit")); Lh.Add(Player.ChampionName + "W", new CheckBox("Kullan W ", false)); Lh.Add(Player.ChampionName + "Emode", new ComboBox("E Modu", 0, "UnKillable Minions", "LastHit")); Lh.Add(Player.ChampionName + "E", new CheckBox("Kullan E ", false)); Lh.Add(Player.ChampionName + "Rmode", new ComboBox("R Modu", 0, "UnKillable Minions", "LastHit")); Lh.Add(Player.ChampionName + "R", new CheckBox("Kullan R ", false)); Lc = MenuIni.AddSubMenu("LaneClear ", "LaneClear"); Lc.AddGroupLabel("Lanetemizleme Ayarları"); Lc.Add( Player.ChampionName + "Enable", new KeyBind("Lanetemizleme aktif Tuşu", true, KeyBind.BindTypes.PressToggle, 'M')); Lc.Add( Player.ChampionName + "Enableactive", new KeyBind("Lanetemizleme aktif", false, KeyBind.BindTypes.HoldActive)); Lc.Add(Player.ChampionName + "combo", new CheckBox("Kombo sırasında devredışı bırak ")); Lc.Add(Player.ChampionName + "harass", new CheckBox("Dürtme sırasından devredışı bırak ")); Lc.AddSeparator(); Lc.AddGroupLabel("Büyü Ayarları"); Lc.Add(Player.ChampionName + "Qmode", new ComboBox("Q Modu", 0, "OnAfterAttack", "Always")); Lc.Add(Player.ChampionName + "Q", new CheckBox("Kullan Q ", false)); Lc.Add(Player.ChampionName + "Wmode", new ComboBox("W Modu", 0, "OnAfterAttack", "Always")); Lc.Add(Player.ChampionName + "W", new CheckBox("Kullan W ", false)); Lc.Add(Player.ChampionName + "Emode", new ComboBox("E Modu", 0, "OnAfterAttack", "Always")); Lc.Add(Player.ChampionName + "E", new CheckBox("Kullan E ", false)); Lc.Add(Player.ChampionName + "Rmode", new ComboBox("R Modu", 0, "OnAfterAttack", "Always")); Lc.Add(Player.ChampionName + "R", new CheckBox("Kullan R ", false)); ManaMenu = MenuIni.AddSubMenu("Mana Manager ", "Mana Manager"); ManaMenu.AddGroupLabel("Manam sadece şundan yüksekse >= %"); ManaMenu.Add(Player.ChampionName + "Q", new Slider("Q Kullan")); ManaMenu.Add(Player.ChampionName + "W", new Slider("W Kullan")); ManaMenu.Add(Player.ChampionName + "E", new Slider("E Kullan")); ManaMenu.Add(Player.ChampionName + "R", new Slider("R Kullan")); DrawMenu = MenuIni.AddSubMenu("Drawings ", "Drawings"); DrawMenu.AddGroupLabel("Gösterge Ayarları"); DrawMenu.Add(Player.ChampionName + "Q", new CheckBox("Göster Q ", false)); DrawMenu.Add(Player.ChampionName + "W", new CheckBox("Göster W ", false)); DrawMenu.Add(Player.ChampionName + "E", new CheckBox("Göster E ", false)); DrawMenu.Add(Player.ChampionName + "R", new CheckBox("Göster R ", false)); SpellManager.Initialize(); SpellLibrary.Initialize(); Orbwalker.OnUnkillableMinion += LastHit.Orbwalker_OnUnkillableMinion; Drawing.OnDraw += Drawing_OnDraw; Orbwalker.OnPostAttack += LaneClear.Orbwalker_OnPostAttack; Game.OnTick += Game_OnTick; }