private void Game_OnGameLoad(EventArgs args) { try { //devModeOn = true; Player.OnIssueOrder += Game_OnIssueOrder; Spellbook.OnCastSpell += Game_OnCastSpell; Game.OnUpdate += Game_OnGameUpdate; AIHeroClient.OnProcessSpellCast += Game_OnProcessSpell; Game.OnEnd += Game_OnGameEnd; SpellDetector.OnProcessDetectedSpells += SpellDetector_OnProcessDetectedSpells; Orbwalking.BeforeAttack += Orbwalking_BeforeAttack; Chat.Print(devModeOn ? "<b>ezEvade: Developer Mode On</b>" : "<b>ezEvade: Loaded!</b>"); menu = new Menu("ezEvade", "ezEvade", true); Menu mainMenu = new Menu("Main", "Main"); mainMenu.AddItem(new MenuItem("DodgeSkillShots", "Dodge SkillShots").SetValue(new KeyBind('K', KeyBindType.Toggle, true))); mainMenu.Item("DodgeSkillShots").Permashow(); mainMenu.AddItem(new MenuItem("ActivateEvadeSpells", "Use Evade Spells").SetValue(new KeyBind('K', KeyBindType.Toggle, true))); mainMenu.Item("ActivateEvadeSpells").Permashow(); mainMenu.AddItem(new MenuItem("DodgeDangerous", "Dodge Only Dangerous").SetValue(false)); mainMenu.AddItem(new MenuItem("DodgeFOWSpells", "Dodge FOW SkillShots").SetValue(true)); mainMenu.AddItem(new MenuItem("DodgeCircularSpells", "Dodge Circular SkillShots").SetValue(true)); menu.AddSubMenu(mainMenu); //var keyBind = mainMenu.Item("DodgeSkillShots").GetValue<KeyBind>(); //mainMenu.Item("DodgeSkillShots").SetValue(new KeyBind(keyBind.Key, KeyBindType.Toggle, true)); spellDetector = new SpellDetector(menu); evadeSpell = new EvadeSpell(menu); Menu keyMenu = new Menu("Key Settings", "KeySettings"); keyMenu.AddItem(new MenuItem("DodgeDangerousKeyEnabled", "Enable Dodge Only Dangerous Keys").SetValue(false)); keyMenu.AddItem(new MenuItem("DodgeDangerousKey", "Dodge Only Dangerous Key").SetValue(new KeyBind(32, KeyBindType.Press))); keyMenu.AddItem(new MenuItem("DodgeDangerousKey2", "Dodge Only Dangerous Key 2").SetValue(new KeyBind('V', KeyBindType.Press))); keyMenu.AddItem(new MenuItem("DodgeOnlyOnComboKeyEnabled", "Enable Dodge Only On Combo Key").SetValue(false)); keyMenu.AddItem(new MenuItem("DodgeComboKey", "Dodge Only Combo Key").SetValue(new KeyBind(32, KeyBindType.Press))); keyMenu.AddItem(new MenuItem("DontDodgeKeyEnabled", "Enable Don't Dodge Key").SetValue(false)); keyMenu.AddItem(new MenuItem("DontDodgeKey", "Don't Dodge Key").SetValue(new KeyBind('Z', KeyBindType.Press))); menu.AddSubMenu(keyMenu); Menu miscMenu = new Menu("Misc Settings", "MiscSettings"); miscMenu.AddItem(new MenuItem("HigherPrecision", "Enhanced Dodge Precision").SetValue(false)); miscMenu.AddItem(new MenuItem("RecalculatePosition", "Recalculate Path").SetValue(true)); miscMenu.AddItem(new MenuItem("ContinueMovement", "Continue Last Movement").SetValue(true)); miscMenu.AddItem(new MenuItem("CalculateWindupDelay", "Calculate Windup Delay").SetValue(true)); miscMenu.AddItem(new MenuItem("CheckSpellCollision", "Check Spell Collision").SetValue(false)); miscMenu.AddItem(new MenuItem("PreventDodgingUnderTower", "Prevent Dodging Under Tower").SetValue(false)); miscMenu.AddItem(new MenuItem("PreventDodgingNearEnemy", "Prevent Dodging Near Enemies").SetValue(true)); miscMenu.AddItem(new MenuItem("AdvancedSpellDetection", "Advanced Spell Detection").SetValue(false)); miscMenu.AddItem(new MenuItem("ClickRemove", "Allow Left Click Removal") .SetValue(true).SetTooltip("Left Click to Remove Traps and Globals")); //miscMenu.AddItem(new MenuItem("AllowCrossing", "Allow Crossing").SetValue(false)); //miscMenu.AddItem(new MenuItem("CalculateHeroPos", "Calculate Hero Position").SetValue(false)); miscMenu.AddItem(new MenuItem("EvadeMode", "Evade Profile") .SetValue(new StringList(new[] { "Smooth", "Very Smooth", "Fastest", "Hawk", "Kurisu", "GuessWho" }, 0))); miscMenu.Item("EvadeMode").ValueChanged += OnEvadeModeChange; miscMenu.AddItem(new MenuItem("ResetConfig", "Reset Evade Config").SetValue(false)); Menu limiterMenu = new Menu("Humanizer", "Limiter"); limiterMenu.AddItem(new MenuItem("ClickOnlyOnce", "Click Only Once").SetValue(true)); limiterMenu.AddItem(new MenuItem("EnableEvadeDistance", "Extended Evade").SetValue(false)); limiterMenu.AddItem(new MenuItem("TickLimiter", "Tick Limiter").SetValue(new Slider(100, 0, 500))); limiterMenu.AddItem(new MenuItem("SpellDetectionTime", "Spell Detection Time").SetValue(new Slider(0, 0, 1000))); limiterMenu.AddItem(new MenuItem("ReactionTime", "Reaction Time").SetValue(new Slider(0, 0, 500))); limiterMenu.AddItem(new MenuItem("DodgeInterval", "Dodge Interval").SetValue(new Slider(0, 0, 2000))); miscMenu.AddSubMenu(limiterMenu); Menu fastEvadeMenu = new Menu("Fast Evade", "FastEvade"); fastEvadeMenu.AddItem(new MenuItem("FastMovementBlock", "Fast Movement Block")).SetValue(false); fastEvadeMenu.AddItem(new MenuItem("FastEvadeActivationTime", "FastEvade Activation Time").SetValue(new Slider(65, 0, 500))); fastEvadeMenu.AddItem(new MenuItem("SpellActivationTime", "Spell Activation Time").SetValue(new Slider(400, 0, 1000))); fastEvadeMenu.AddItem(new MenuItem("RejectMinDistance", "Collision Distance Buffer").SetValue(new Slider(10, 0, 100))); miscMenu.AddSubMenu(fastEvadeMenu); /*Menu evadeSpellSettingsMenu = new Menu("Evade Spell", "EvadeSpellMisc"); * evadeSpellSettingsMenu.AddItem(new MenuItem("EvadeSpellActivationTime", "Evade Spell Activation Time").SetValue(new Slider(150, 0, 500))); * * miscMenu.AddSubMenu(evadeSpellSettingsMenu);*/ Menu bufferMenu = new Menu("Extra Buffers", "ExtraBuffers"); bufferMenu.AddItem(new MenuItem("ExtraPingBuffer", "Extra Ping Buffer").SetValue(new Slider(65, 0, 200))); bufferMenu.AddItem(new MenuItem("ExtraCPADistance", "Extra Collision Distance").SetValue(new Slider(10, 0, 150))); bufferMenu.AddItem(new MenuItem("ExtraSpellRadius", "Extra Spell Radius").SetValue(new Slider(0, 0, 100))); bufferMenu.AddItem(new MenuItem("ExtraEvadeDistance", "Extra Evade Distance").SetValue(new Slider(100, 0, 300))); bufferMenu.AddItem(new MenuItem("ExtraAvoidDistance", "Extra Avoid Distance").SetValue(new Slider(50, 0, 300))); bufferMenu.AddItem(new MenuItem("MinComfortZone", "Min Distance to Champion").SetValue(new Slider(550, 0, 1000))); miscMenu.AddSubMenu(bufferMenu); Menu loadTestMenu = new Menu("Tests", "LoadTests"); loadTestMenu.AddItem(new MenuItem("LoadPingTester", "Load Ping Tester").SetValue(false)); loadTestMenu.AddItem(new MenuItem("LoadSpellTester", "Load Spell Tester").SetValue(false)); loadTestMenu.Item("LoadPingTester").ValueChanged += OnLoadPingTesterChange; loadTestMenu.Item("LoadSpellTester").ValueChanged += OnLoadSpellTesterChange; miscMenu.AddSubMenu(loadTestMenu); menu.AddSubMenu(miscMenu); menu.AddToMainMenu(); spellDrawer = new SpellDrawer(menu); //autoSetPing = new AutoSetPing(menu); var initCache = ObjectCache.myHeroCache; if (devModeOn) { var evadeTester = new Menu("ezEvade: Test", "ezEvadeTest", true); var o = new EvadeTester(evadeTester); evadeTester.AddToMainMenu(); //Utility.DelayAction.Add(100, () => loadTestMenu.Item("LoadSpellTester").SetValue(true)); } Console.WriteLine("ezEvade Loaded"); } catch (Exception e) { Console.WriteLine(e); } }
private void Game_OnGameLoad(EventArgs args) { try { Obj_AI_Hero.OnIssueOrder += Game_OnIssueOrder; Spellbook.OnCastSpell += Game_OnCastSpell; Game.OnUpdate += Game_OnGameUpdate; Obj_AI_Hero.OnProcessSpellCast += Game_OnProcessSpell; Game.OnEnd += Game_OnGameEnd; SpellDetector.OnProcessDetectedSpells += SpellDetector_OnProcessDetectedSpells; Orbwalking.BeforeAttack += Orbwalking_BeforeAttack; /*Console.WriteLine("<font color=\"#66CCFF\" >Yomie's </font><font color=\"#CCFFFF\" >ezEvade</font> - " + * "<font color=\"#FFFFFF\" >Version " + Assembly.GetExecutingAssembly().GetName().Version + "</font>"); */ menu = new Menu("ezEvade", "ezEvade", true); Menu mainMenu = new Menu("Main", "Main"); mainMenu.AddItem(new MenuItem("DodgeSkillShots", "Dodge SkillShots").SetValue(new KeyBind('K', KeyBindType.Toggle, true))); mainMenu.AddItem(new MenuItem("ActivateEvadeSpells", "Use Evade Spells").SetValue(new KeyBind('K', KeyBindType.Toggle, true))); mainMenu.AddItem(new MenuItem("DodgeDangerous", "Dodge Only Dangerous").SetValue(false)); mainMenu.AddItem(new MenuItem("DodgeFOWSpells", "Dodge FOW SkillShots").SetValue(true)); mainMenu.AddItem(new MenuItem("DodgeCircularSpells", "Dodge Circular SkillShots").SetValue(true)); menu.AddSubMenu(mainMenu); //var keyBind = mainMenu.Item("DodgeSkillShots").GetValue<KeyBind>(); //mainMenu.Item("DodgeSkillShots").SetValue(new KeyBind(keyBind.Key, KeyBindType.Toggle, true)); spellDetector = new SpellDetector(menu); evadeSpell = new EvadeSpell(menu); Menu keyMenu = new Menu("Key Settings", "KeySettings"); keyMenu.AddItem(new MenuItem("DodgeDangerousKeyEnabled", "Enable Dodge Only Dangerous Keys").SetValue(false)); keyMenu.AddItem(new MenuItem("DodgeDangerousKey", "Dodge Only Dangerous Key").SetValue(new KeyBind(32, KeyBindType.Press))); keyMenu.AddItem(new MenuItem("DodgeDangerousKey2", "Dodge Only Dangerous Key 2").SetValue(new KeyBind('V', KeyBindType.Press))); keyMenu.AddItem(new MenuItem("DodgeOnlyOnComboKeyEnabled", "Enable Dodge Only On Combo Key").SetValue(false)); keyMenu.AddItem(new MenuItem("DodgeComboKey", "Dodge Only Combo Key").SetValue(new KeyBind(32, KeyBindType.Press))); keyMenu.AddItem(new MenuItem("DontDodgeKeyEnabled", "Enable Don't Dodge Key").SetValue(false)); keyMenu.AddItem(new MenuItem("DontDodgeKey", "Don't Dodge Key").SetValue(new KeyBind('Z', KeyBindType.Press))); menu.AddSubMenu(keyMenu); Menu miscMenu = new Menu("Misc Settings", "MiscSettings"); miscMenu.AddItem(new MenuItem("HigherPrecision", "Enhanced Dodge Precision").SetValue(false)); miscMenu.AddItem(new MenuItem("RecalculatePosition", "Recalculate Path").SetValue(true)); miscMenu.AddItem(new MenuItem("ContinueMovement", "Continue Last Movement").SetValue(true)); miscMenu.AddItem(new MenuItem("CalculateWindupDelay", "Calculate Windup Delay").SetValue(true)); miscMenu.AddItem(new MenuItem("CheckSpellCollision", "Check Spell Collision").SetValue(false)); miscMenu.AddItem(new MenuItem("DodgeCheckHP", "Check My Hero HP%") .SetValue(false)).SetTooltip("Enabling this will check if above X HP % and ignore spells."); miscMenu.AddItem(new MenuItem("PreventDodgingUnderTower", "Prevent Dodging Under Tower").SetValue(false)); miscMenu.AddItem(new MenuItem("PreventDodgingNearEnemy", "Prevent Dodging Near Enemies").SetValue(true)); miscMenu.AddItem(new MenuItem("AdvancedSpellDetection", "Advanced Spell Detection").SetValue(false)); //miscMenu.AddItem(new MenuItem("AllowCrossing", "Allow Crossing").SetValue(false)); //miscMenu.AddItem(new MenuItem("CalculateHeroPos", "Calculate Hero Position").SetValue(false)); Menu evadeModeMenu = new Menu("Mode", "EvadeModeSettings"); evadeModeMenu.AddItem(new MenuItem("EvadeMode", "Evade Profile") .SetValue(new StringList(new[] { "Smooth", "Fastest", "Very Smooth", "Hawk", "Kurisu" }, 0))); miscMenu.AddSubMenu(evadeModeMenu); miscMenu.Item("EvadeMode").ValueChanged += OnEvadeModeChange; Menu limiterMenu = new Menu("Humanizer", "Limiter"); limiterMenu.AddItem(new MenuItem("ClickOnlyOnce", "Click Only Once").SetValue(true)); limiterMenu.AddItem(new MenuItem("EnableEvadeDistance", "Extended Evade").SetValue(false)); limiterMenu.AddItem(new MenuItem("TickLimiter", "Tick Limiter").SetValue(new Slider(100, 0, 500))); limiterMenu.AddItem(new MenuItem("SpellDetectionTime", "Spell Detection Time").SetValue(new Slider(0, 0, 1000))); limiterMenu.AddItem(new MenuItem("ReactionTime", "Reaction Time").SetValue(new Slider(0, 0, 500))); limiterMenu.AddItem(new MenuItem("DodgeInterval", "Dodge Interval").SetValue(new Slider(0, 0, 2000))); miscMenu.AddSubMenu(limiterMenu); Menu fastEvadeMenu = new Menu("Fast Evade", "FastEvade"); fastEvadeMenu.AddItem(new MenuItem("FastMovementBlock", "Fast Movement Block")).SetValue(false); fastEvadeMenu.AddItem(new MenuItem("FastEvadeActivationTime", "FastEvade Activation Time").SetValue(new Slider(65, 0, 500))); fastEvadeMenu.AddItem(new MenuItem("SpellActivationTime", "Spell Activation Time").SetValue(new Slider(200, 0, 1000))); fastEvadeMenu.AddItem(new MenuItem("RejectMinDistance", "Collision Distance Buffer").SetValue(new Slider(10, 0, 100))); miscMenu.AddSubMenu(fastEvadeMenu); /*Menu evadeSpellSettingsMenu = new Menu("Evade Spell", "EvadeSpellMisc"); * evadeSpellSettingsMenu.AddItem(new MenuItem("EvadeSpellActivationTime", "Evade Spell Activation Time").SetValue(new Slider(150, 0, 500))); * * miscMenu.AddSubMenu(evadeSpellSettingsMenu);*/ Menu bufferMenu = new Menu("Extra Buffers", "ExtraBuffers"); bufferMenu.AddItem(new MenuItem("ExtraPingBuffer", "Extra Ping Buffer").SetValue(new Slider(65, 0, 200))); bufferMenu.AddItem(new MenuItem("ExtraCPADistance", "Extra Collision Distance").SetValue(new Slider(10, 0, 150))); bufferMenu.AddItem(new MenuItem("ExtraSpellRadius", "Extra Spell Radius").SetValue(new Slider(0, 0, 100))); bufferMenu.AddItem(new MenuItem("ExtraEvadeDistance", "Extra Evade Distance").SetValue(new Slider(100, 0, 300))); bufferMenu.AddItem(new MenuItem("ExtraAvoidDistance", "Extra Avoid Distance").SetValue(new Slider(50, 0, 300))); bufferMenu.AddItem(new MenuItem("MinComfortZone", "Min Distance to Champion").SetValue(new Slider(550, 0, 1000))); miscMenu.AddSubMenu(bufferMenu); Menu resetMenu = new Menu("Reset Config", "ResetConfig"); resetMenu.AddItem(new MenuItem("ResetConfig", "Reset Config").SetValue(false)); resetMenu.AddItem(new MenuItem("ResetConfig200", "Set Patch Config").SetValue(true)); miscMenu.AddSubMenu(resetMenu); Menu loadTestMenu = new Menu("Tests", "LoadTests"); loadTestMenu.AddItem(new MenuItem("LoadPingTester", "Load Ping Tester").SetValue(false)); loadTestMenu.AddItem(new MenuItem("LoadSpellTester", "Load Spell Tester").SetValue(false)); loadTestMenu.Item("LoadPingTester").ValueChanged += OnLoadPingTesterChange; loadTestMenu.Item("LoadSpellTester").ValueChanged += OnLoadSpellTesterChange; miscMenu.AddSubMenu(loadTestMenu); menu.AddSubMenu(miscMenu); menu.AddToMainMenu(); spellDrawer = new SpellDrawer(menu); autoSetPing = new AutoSetPing(menu); var initCache = ObjectCache.myHeroCache; evadeTester = new EvadeTester(menu); Utility.DelayAction.Add(100, () => loadTestMenu.Item("LoadSpellTester").SetValue(true)); Console.WriteLine("ezEvade Loaded"); } catch (Exception e) { Console.WriteLine(e); } }