public static void InitVariables() { Q = new Spell.Skillshot(SpellSlot.Q, 325, SkillShotType.Linear); E = new Spell.Targeted(SpellSlot.E, 550); R = new Spell.Active(SpellSlot.R); InitMenu(); }
public static bool TryToCast(this Spell.Ranged spell, Obj_AI_Base target, Menu m) { if (target == null) { return(false); } return(target.CanCastSpell(spell) && m.GetCheckBoxValue(spell.Slot.ToString().ToLower()) && spell.Cast(target)); }
/// <summary> /// Check if can cast the spell on the target /// </summary> /// <param name="target">Target to check</param> /// <param name="spell">Any spell</param> /// <returns></returns> public static bool CanCast(this Obj_AI_Base target, Spell.Ranged spell) { if (spell != null) { return(spell.IsReady() && target.IsValidTarget(spell.Range) && target.IsNotNull()); } return(false); }
public static bool TryToCast(this Spell.Ranged spell, Obj_AI_Base target, Menu m) { if (target == null) { return(false); } return(target.CanCast(spell, m) && spell.Cast(target)); }
/// <summary> /// It will only cast the spell if it can /// </summary> /// <param name="spell">Active Spell</param> /// <param name="target">Target to cast the spell</param> public static bool TryCast(this Spell.Ranged spell, Obj_AI_Base target) { if (spell != null) { if (target.CanCast(spell)) { return(spell.Cast(target)); } } return(false); }
private static void VayLoad(EventArgs args) { Q = new Spell.Skillshot(SpellSlot.Q, 300, SkillShotType.Linear); R = new Spell.Active(SpellSlot.R); if (!Player.Instance.ChampionName.ToLower().Contains("vayne")) { return; } Chat.Print("Pronto"); menu = MainMenu.AddMenu("Activetion", "Activetion"); menu.Add("combo", new CheckBox("Combo Active", true)); menu.Add("CR", new CheckBox("Active(R)")); menu.Add("UCR", new Slider("Use R When You Have More Enemy >= {0}", 3, 0, 5)); Game.OnUpdate += Game_OnTick; Obj_AI_Base.OnBasicAttack += Obj_AI_Base_OnBasicAttack; Obj_AI_Base.OnBuffGain += Obj_AI_Base_OnBuffGain; }
public static bool CanCast(this Obj_AI_Base target, Spell.Ranged spell, Menu m) { var asBase = spell as Spell.SpellBase; return(target.CanCast(asBase, m)); }
private static void Game_OnStart(EventArgs args) { if (!_Player.ChampionName.ToLower().Contains("vayne")) return; Q = new Spell.Skillshot(SpellSlot.Q, int.MaxValue, SkillShotType.Linear); E = new Spell.Targeted(SpellSlot.E, 590); Condemn.ESpell = new Spell.Skillshot(SpellSlot.E, 590, SkillShotType.Linear, 250, 1250); R = new Spell.Active(SpellSlot.R); Menu = MainMenu.AddMenu("Vayne Buddy", "vBuddy"); Menu.AddGroupLabel("Vayne Buddy"); Menu.AddLabel("Version: " + "0.0.0.2"); Menu.AddSeparator(); Menu.AddLabel("By Fluxy ;)"); Menu.AddSeparator(); Menu.AddLabel("p.s. imeh is f****t"); ComboMenu = Menu.AddSubMenu("Combo", "vBuddyCombo"); ComboMenu.AddGroupLabel("Combo Settings"); ComboMenu.Add("useQCombo", new CheckBox("Use Q")); ComboMenu.Add("useQKite", new CheckBox("Use Q to Kite Melee", false)); ComboMenu.Add("useECombo", new CheckBox("Use E (Execute)")); ComboMenu.AddLabel("R Settings"); ComboMenu.Add("useRCombo", new CheckBox("Use R", false)); ComboMenu.Add("noRUnderTurret", new CheckBox("Disable R if Target is under enemy turret")); CondemnPriorityMenu = Menu.AddSubMenu("Auto Condemn", "vBuddyCondemnPriority"); CondemnPriorityMenu.AddGroupLabel("Condemn Priority"); foreach (var enem in ObjectManager.Get<AIHeroClient>().Where(a => a.IsEnemy)) { var champValue = CondemnPriorityMenu.Add(enem.ChampionName + "priority", new Slider(enem.ChampionName + ": ", 1, 1, 5)); var enem1 = enem; champValue.OnValueChange += delegate { champValue.DisplayName = enem1.ChampionName + ": " + PriorityValues[champValue.CurrentValue]; }; champValue.DisplayName = enem1.ChampionName + ": " + PriorityValues[champValue.CurrentValue]; } CondemnPriorityMenu.AddSeparator(); var sliderValue = CondemnPriorityMenu.Add("minSliderAutoCondemn", new Slider("Min Priority for Auto Condemn: ", 2, 1, 5)); sliderValue.OnValueChange += delegate { sliderValue.DisplayName = "Min Priority for Auto Condemn: " + PriorityValues[sliderValue.CurrentValue]; }; sliderValue.DisplayName = "Min Priority for Auto Condemn: " + PriorityValues[sliderValue.CurrentValue]; CondemnPriorityMenu.Add("autoCondemnToggle", new KeyBind("Auto Condemn", false, KeyBind.BindTypes.PressToggle, 'H')); CondemnPriorityMenu.AddSeparator(); CondemnMenu = Menu.AddSubMenu("Condemn", "vBuddyCondemn"); CondemnMenu.AddGroupLabel("Condemn Settings"); CondemnMenu.AddSeparator(); CondemnMenu.Add("pushDistance", new Slider("Push Distance", 410, 350, 420)); CondemnMenu.Add("condemnPercent", new Slider("Condemn Percent", 33, 1)); CondemnMenu.AddSeparator(); CondemnMenu.AddLabel("Active Mode Settings"); CondemnMenu.Add("smartVsCheap", new CheckBox("On (SMART CONDEMN (saves fps)) / OFF (360 degree check)", true)); CondemnMenu.AddSeparator(); CondemnMenu.Add("condemnCombo", new CheckBox("Condemn in Combo", true)); CondemnMenu.Add("condemnComboTrinket", new CheckBox("Trinket Bush After E", true)); CondemnMenu.Add("condemnHarass", new CheckBox("Condemn in Harass", true)); HarassMenu = Menu.AddSubMenu("Harass", "vBuddyHarass"); HarassMenu.AddGroupLabel("Harass Settings"); HarassMenu.Add("useQHarass", new CheckBox("Use Q", true)); FarmMenu = Menu.AddSubMenu("Farming", "vBuddyFarm"); FarmMenu.AddGroupLabel("Farming Settings"); FarmMenu.Add("onlyTumbleToCursor", new CheckBox("Only Tumble To Cursor", false)); FarmMenu.AddLabel("Last Hit"); FarmMenu.Add("useQLastHit", new CheckBox("Use Q Last", true)); FarmMenu.AddLabel("WaveClear"); FarmMenu.Add("useQWaveClear", new CheckBox("Use Q WaveClear", true)); DrawMenu = Menu.AddSubMenu("Misc Menu", "vBuddyMisc"); DrawMenu.AddGroupLabel("Draw Settings"); DrawMenu.Add("drawERange", new CheckBox("Draw E Range", false)); DrawMenu.Add("condemnVisualiser", new CheckBox("Draw Condemn", false)); DrawMenu.Add("drawStacks", new CheckBox("Draw W Stacks", false)); DrawMenu.AddLabel("Misc"); DrawMenu.Add("wallJumpKey", new KeyBind("Tumble Walls", false, KeyBind.BindTypes.HoldActive, 'Z')); DrawMenu.Add("condemnNextAA", new KeyBind("Condemn Next AA", false, KeyBind.BindTypes.PressToggle, 'E')); DrawMenu.AddLabel("Anti-Champions"); DrawMenu.Add("antiKalista", new CheckBox("Anti-Kalista")); DrawMenu.Add("antiRengar", new CheckBox("Anti-Rengar")); InterruptorMenu = Menu.AddSubMenu("Interrupter", "InterruptorvBuddy"); InterruptorMenu.AddGroupLabel("Interrupter Menu"); InterruptorMenu.Add("enableInterrupter", new CheckBox("Enable Interrupter")); InterruptorMenu.AddSeparator(); var dangerSlider = InterruptorMenu.Add("dangerLevel", new Slider("Set Your Danger Level: ", 3, 1, 3)); var dangerSliderDisplay = InterruptorMenu.Add("dangerLevelDisplay", new Label("Danger Level: " + DangerSliderValues[dangerSlider.Cast<Slider>().CurrentValue - 1])); dangerSlider.Cast<Slider>().OnValueChange += delegate { dangerSliderDisplay.Cast<Label>().DisplayName = "Danger Level: " + DangerSliderValues[dangerSlider.Cast<Slider>().CurrentValue - 1]; }; GapCloserMenu = Menu.AddSubMenu("Anti-GapClosers", "gapClosersvBuddy"); GapCloserMenu.AddGroupLabel("Anti-GapCloser Menu"); GapCloserMenu.Add("enableGapCloser", new CheckBox("Enable Anti-GapCloser")); Orbwalker.OnPreAttack += Events.Orbwalker_OnPreAttack; Game.OnUpdate += Game_OnUpdate; Drawing.OnDraw += Drawing_OnDraw; Gapcloser.OnGapcloser += Events.Gapcloser_OnGapCloser; Interrupter.OnInterruptableSpell += Events.Interrupter_OnInterruptableSpell; Obj_AI_Base.OnProcessSpellCast += AIHeroClient_OnProcessSpellCast; Obj_AI_Base.OnSpellCast += Obj_AI_Base_OnSpellCast; Obj_AI_Base.OnBasicAttack += Events.ObjAiBaseOnOnBasicAttack; GameObject.OnCreate += Events.GameObject_OnCreate; }
public static bool CanCastSpell(this Obj_AI_Base target, Spell.Ranged spell) { var asBase = spell as Spell.SpellBase; return(target.CanCastSpell(asBase)); }
public override sealed void _SetupSpells() { _Q = new Spell.Skillshot(SpellSlot.Q, 325, SkillShotType.Linear); _E = new Spell.Targeted(SpellSlot.E, 590); _R = new Spell.Active(SpellSlot.R); }
public static void Loading_OnLoadingComplete(EventArgs args) { if (Player.Instance.Hero != Champion.Vayne) { return; } _q = new Spell.Skillshot(SpellSlot.Q, int.MaxValue, SkillShotType.Linear); _e = new Spell.Targeted(SpellSlot.E, 590); _e2 = new Spell.Skillshot(SpellSlot.E, 590, SkillShotType.Linear, 250, 1250); _r = new Spell.Active(SpellSlot.R); var slot = _Player.GetSpellSlotFromName("summonerheal"); if (slot != SpellSlot.Unknown) { Heal = new Spell.Active(slot, 600); } HealthPotion = new Item(2003, 0); TotalBiscuit = new Item(2010, 0); CorruptingPotion = new Item(2033, 0); RefillablePotion = new Item(2031, 0); HuntersPotion = new Item(2032, 0); Chat.Print( "<font color=\"#ef0101\" >MeLoDag Presents </font><font color=\"#ffffff\" > VayneTHeTroll </font><font color=\"#ef0101\" >Kappa Kippo</font>"); Menu = MainMenu.AddMenu("VayneTheTroll", "VayneTheTroll"); ComboMenu = Menu.AddSubMenu("Combo Settings", "Combo"); ComboMenu.AddGroupLabel("Use Q Settings"); ComboMenu.Add("useQcombo", new ComboBox(" ", 0, "Side", "Cursor", "SmartQ", "SafeQ", "AggroQ")); ComboMenu.AddGroupLabel("Use E Settings"); ComboMenu.AddLabel("Use E on"); foreach (var enemies in EntityManager.Heroes.Enemies.Where(i => !i.IsMe)) { ComboMenu.Add("useEcombo" + enemies.ChampionName, new CheckBox("" + enemies.ChampionName)); } ComboMenu.Add("pushDistance", new Slider("Push Distance", 410, 350, 420)); ComboMenu.AddGroupLabel("Use R Settings"); ComboMenu.Add("useRCombo", new CheckBox("Use R")); ComboMenu.Add("Rcount", new Slider("R when enemies >= ", 2, 1, 5)); HarassMenu = Menu.AddSubMenu("Harass Settings", "Harass"); HarassMenu.AddLabel("SoonTM"); // HarassMenu.Add("useQHarass", new CheckBox("Use Q")); // HarassMenu.Add("useEHarass", new CheckBox("Use E")); // HarassMenu.Add("useEHarassMana", new Slider("E Mana > %", 70, 0, 100)); // HarassMenu.Add("useQHarassMana", new Slider("Q Mana > %", 70, 0, 100)); JungleLaneMenu = Menu.AddSubMenu("Lane Clear Settings", "FarmSettings"); JungleLaneMenu.AddLabel("Lane Clear"); JungleLaneMenu.Add("useQFarm", new CheckBox("Use Q[LastHit]")); JungleLaneMenu.Add("useQMana", new Slider("Q Mana > %", 75, 0, 100)); JungleLaneMenu.AddLabel("Jungle Clear"); JungleLaneMenu.Add("useQJungle", new CheckBox("Use Q")); JungleLaneMenu.Add("useQJunglemana", new Slider("Mana > %", 40, 0, 100)); MiscMenu = Menu.AddSubMenu("Misc Settings", "MiscSettings"); MiscMenu.AddGroupLabel("Gapcloser Settings"); MiscMenu.Add("gapcloser", new CheckBox("Auto Q for Gapcloser")); MiscMenu.AddGroupLabel("Interrupter Settings & Dangerlvl"); MiscMenu.Add("interrupter", new CheckBox("Auto E for Interrupter")); MiscMenu.Add("useQcombo", new ComboBox(" ", 2, "High", "Medium", "Low")); MiscMenu.AddGroupLabel("Focus W Settings"); MiscMenu.Add("FocusW", new CheckBox("Focus target with 2 W")); // MiscMenu.Add("UseQks", new CheckBox("Use Q ks")); AutoPotHealMenu = Menu.AddSubMenu("Potion & Heal", "Potion & Heal"); AutoPotHealMenu.AddGroupLabel("Auto pot usage"); AutoPotHealMenu.Add("potion", new CheckBox("Use potions")); AutoPotHealMenu.Add("potionminHP", new Slider("Minimum Health % to use potion", 40)); AutoPotHealMenu.Add("potionMinMP", new Slider("Minimum Mana % to use potion", 20)); AutoPotHealMenu.AddGroupLabel("AUto Heal Usage"); AutoPotHealMenu.Add("UseHeal", new CheckBox("Use Heal")); AutoPotHealMenu.Add("useHealHP", new Slider("Minimum Health % to use Heal", 20)); ItemMenu = Menu.AddSubMenu("Item Settings", "ItemMenuettings"); ItemMenu.Add("useBOTRK", new CheckBox("Use BOTRK")); ItemMenu.Add("useBotrkMyHP", new Slider("My Health < ", 60, 1, 100)); ItemMenu.Add("useBotrkEnemyHP", new Slider("Enemy Health < ", 60, 1, 100)); ItemMenu.Add("useYoumu", new CheckBox("Use Youmu")); ItemMenu.AddSeparator(); ItemMenu.Add("useQSS", new CheckBox("Use QSS")); ItemMenu.Add("Qssmode", new ComboBox(" ", 0, "Auto", "Combo")); ItemMenu.Add("Stun", new CheckBox("Stun", true)); ItemMenu.Add("Blind", new CheckBox("Blind", true)); ItemMenu.Add("Charm", new CheckBox("Charm", true)); ItemMenu.Add("Suppression", new CheckBox("Suppression", true)); ItemMenu.Add("Polymorph", new CheckBox("Polymorph", true)); ItemMenu.Add("Fear", new CheckBox("Fear", true)); ItemMenu.Add("Taunt", new CheckBox("Taunt", true)); ItemMenu.Add("Silence", new CheckBox("Silence", false)); ItemMenu.Add("QssDelay", new Slider("Use QSS Delay(ms)", 250, 0, 1000)); ItemMenu.AddGroupLabel("Qqs Utly"); ItemMenu.Add("ZedUlt", new CheckBox("Zed R", true)); ItemMenu.Add("VladUlt", new CheckBox("Vladimir R", true)); ItemMenu.Add("FizzUlt", new CheckBox("Fizz R", true)); ItemMenu.Add("MordUlt", new CheckBox("Mordekaiser R", true)); ItemMenu.Add("PoppyUlt", new CheckBox("Poppy R", true)); ItemMenu.Add("QssUltDelay", new Slider("Use QSS Delay(ms) for Ult", 250, 0, 1000)); SkinMenu = Menu.AddSubMenu("Skin Changer", "SkinChanger"); SkinMenu.Add("checkSkin", new CheckBox("Use Skin Changer", false)); StringList(SkinMenu, "skin.Id", "Skin", new[] { "Default", "Vindicator", "Aristocrat ", "Dragonslayer ", "Heartseeker", "SKT T1", "Arclight", "DragonSlayer Chaos", "DragonSlayer Curse", "DragonSlayer Element" }, 0); DrawMenu = Menu.AddSubMenu("Drawing Settings"); DrawMenu.Add("drawE", new CheckBox("Draw E Range")); Game.OnTick += Game_OnTick; Game.OnUpdate += OnGameUpdate; Orbwalker.OnPostAttack += OnAfterAttack; Obj_AI_Base.OnBuffGain += OnBuffGain; Gapcloser.OnGapcloser += Gapcloser_OnGapCloser; Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell; Drawing.OnDraw += Drawing_OnDraw; }
public static void Loading_OnLoadingComplete(EventArgs args) { if (EloBuddy.Player.Instance.Hero != Champion.Vayne) { return; } Q = new Spell.Skillshot(SpellSlot.Q, int.MaxValue, SkillShotType.Linear); E = new Spell.Targeted(SpellSlot.E, 590); E2 = new Spell.Skillshot(SpellSlot.E, 590, SkillShotType.Linear, 250, 1250); VayneTheTroll.Condemn.ESpell = new Spell.Skillshot(SpellSlot.E, 590, SkillShotType.Linear, 250, 1250); R = new Spell.Active(SpellSlot.R); var slot = Player.GetSpellSlotFromName("summonerheal"); if (slot != SpellSlot.Unknown) { Heal = new Spell.Active(slot, 600); } HealthPotion = new Item(2003, 0); TotalBiscuit = new Item(2010, 0); CorruptingPotion = new Item(2033, 0); RefillablePotion = new Item(2031, 0); HuntersPotion = new Item(2032, 0); Chat.Print( "<font color=\"#ef0101\" >MeLoSenpai Presents </font><font color=\"#ffffff\" > VayneTHeTroll </font><font color=\"#ef0101\" >Kappa Kippo</font>"); Chat.Print("Version 1.5 (28/12/2016)", Color.GreenYellow); Chat.Print("Gl and HF also Dont Feed!!", Color.GreenYellow); Menu = MainMenu.AddMenu("VayneTheTroll", "VayneTheTroll"); ComboMenu = Menu.AddSubMenu("Combo Settings", "Combo"); ComboMenu.AddGroupLabel("Q Settings"); ComboMenu.Add("useQcombo", new ComboBox("Q Logic", 0, "Side", "Cursor", "SmartQ", "SafeQ", "AggroQ", "Burst")); ComboMenu.Add("UseQulty", new CheckBox("Auto Q when using R", false)); ComboMenu.AddLabel("W Settings:"); ComboMenu.Add("FocusW", new CheckBox("Focus target With Silver Bolt")); ComboMenu.AddLabel("E Settings:"); ComboMenu.Add("UseEks", new CheckBox("Use E Ks")); ComboMenu.Add("useEcombo", new ComboBox("E Logic", 0, "VayneTheTroll", "360 Fluxy")); ComboMenu.Add("pushDistance", new Slider("Push Distance", 410, 350, 420)); ComboMenu.Add("condemnPercent", new Slider("HitChange %", 70)); ComboMenu.AddLabel("Use R Settings"); ComboMenu.Add("useRCombo", new CheckBox("Use R")); ComboMenu.Add("Rcount", new Slider("R when enemies >= ", 2, 1, 5)); ComboMenu.Add("noaa", new CheckBox("No AA If active Ulty ")); ComboMenu.Add("Noaaslider", new Slider("No AA when enemy in range ", 2, 1, 5)); HarassMenu = Menu.AddSubMenu("Harass Settings", "Harass"); HarassMenu.AddLabel("SoonTM"); // HarassMenu.Add("useQHarass", new CheckBox("Use Q")); // HarassMenu.Add("useEHarass", new CheckBox("Use E")); // HarassMenu.Add("useEHarassMana", new Slider("E Mana > %", 70, 0, 100)); // HarassMenu.Add("useQHarassMana", new Slider("Q Mana > %", 70, 0, 100)); JungleLaneMenu = Menu.AddSubMenu("Lane Clear Settings", "FarmSettings"); JungleLaneMenu.AddLabel("Lane Clear"); JungleLaneMenu.Add("useQFarm", new CheckBox("Use Q[LastHit]")); JungleLaneMenu.Add("useQMana", new Slider("Q Mana > %", 75)); JungleLaneMenu.AddLabel("Jungle Clear"); JungleLaneMenu.Add("useQJungle", new CheckBox("Use Q")); JungleLaneMenu.Add("useEJungle", new CheckBox("Use E")); JungleLaneMenu.Add("useQJunglemana", new Slider("Mana > %", 40)); MiscMenu = Menu.AddSubMenu("Misc Settings", "MiscSettings"); MiscMenu.AddGroupLabel("Gapcloser Settings"); MiscMenu.Add("gapcloser", new CheckBox("Auto Q for Gapcloser", false)); MiscMenu.AddLabel("Interrupter Settings:"); MiscMenu.Add("interrupter", new CheckBox("Enable Interrupter Using E")); MiscMenu.Add("interrupt.value", new ComboBox("Interrupter DangerLevel", 0, "High", "Medium", "Low")); MiscMenu.Add("delayinter", new Slider("Use Interrupter Delay(ms)", 50)); // MiscMenu.Add("UseQks", new CheckBox("Use Q ks")); AutoPotHealMenu = Menu.AddSubMenu("Potion & Heal", "Potion & Heal"); AutoPotHealMenu.AddGroupLabel("Auto pot usage"); AutoPotHealMenu.Add("potion", new CheckBox("Use potions")); AutoPotHealMenu.Add("potionminHP", new Slider("Minimum Health % to use potion", 40)); AutoPotHealMenu.Add("potionMinMP", new Slider("Minimum Mana % to use potion", 20)); AutoPotHealMenu.AddGroupLabel("AUto Heal Usage"); AutoPotHealMenu.Add("UseHeal", new CheckBox("Use Heal")); AutoPotHealMenu.Add("useHealHP", new Slider("Minimum Health % to use Heal", 20)); ItemMenu = Menu.AddSubMenu("Item Settings", "ItemMenuettings"); ItemMenu.Add("useBOTRK", new CheckBox("Use BOTRK")); ItemMenu.Add("useBotrkMyHP", new Slider("My Health < ", 60)); ItemMenu.Add("useBotrkEnemyHP", new Slider("Enemy Health < ", 60)); ItemMenu.Add("useYoumu", new CheckBox("Use Youmu")); ItemMenu.AddSeparator(); ItemMenu.Add("useQSS", new CheckBox("Use QSS")); ItemMenu.Add("Qssmode", new ComboBox(" ", 0, "Auto", "Combo")); ItemMenu.Add("Stun", new CheckBox("Stun")); ItemMenu.Add("Blind", new CheckBox("Blind")); ItemMenu.Add("Charm", new CheckBox("Charm")); ItemMenu.Add("Suppression", new CheckBox("Suppression")); ItemMenu.Add("Polymorph", new CheckBox("Polymorph")); ItemMenu.Add("Fear", new CheckBox("Fear")); ItemMenu.Add("Taunt", new CheckBox("Taunt")); ItemMenu.Add("Silence", new CheckBox("Silence", false)); ItemMenu.Add("QssDelay", new Slider("Use QSS Delay(ms)", 250, 0, 1000)); FleeMenu = Menu.AddSubMenu("Flee Settings", "FleeSettings"); FleeMenu.Add("fleeQ", new CheckBox("Use Q")); FleeMenu.Add("fleeE", new CheckBox("Use E")); SkinMenu = Menu.AddSubMenu("Skin Changer", "SkinChanger"); SkinMenu.Add("checkSkin", new CheckBox("Use Skin Changer", false)); StringList(SkinMenu, "skin.Id", "Skin", new[] { "Default", "Vindicator", "Aristocrat ", "Dragonslayer ", "Heartseeker", "SKT T1", "Arclight", "DragonSlayer Chaos", "DragonSlayer Curse", "DragonSlayer Element" }, 0); DrawMenu = Menu.AddSubMenu("Drawing Settings"); DrawMenu.Add("drawStun", new CheckBox("Draw Stun Pos")); DrawMenu.Add("drawE", new CheckBox("Draw E Range")); Game.OnTick += Game_OnTick; Game.OnUpdate += OnGameUpdate; Orbwalker.OnPostAttack += OnAfterAttack; // Orbwalker.OnPostAttack += Orbwalking_AfterAttack1; Obj_AI_Base.OnBuffGain += OnBuffGain; Gapcloser.OnGapcloser += Gapcloser_OnGapCloser; Interrupter.OnInterruptableSpell += Interupthighlvl; Interrupter.OnInterruptableSpell += Interuptmediumlvl; Interrupter.OnInterruptableSpell += Interuptlowlvl; Obj_AI_Base.OnProcessSpellCast += OnProcessSpellCast; Drawing.OnDraw += Drawing_OnDraw; EloBuddy.Player.OnIssueOrder += Player_OnIssueOrder; }
private static void Game_OnStart(EventArgs args) { if (!_Player.ChampionName.ToLower().Contains("vayne")) return; Bootstrap.Init(null); ItemManager.Init(); TargetSelector2.init(); Q = new Spell.Skillshot(SpellSlot.Q, (uint) _Player.GetAutoAttackRange(), SkillShotType.Circular); E = new Spell.Targeted(SpellSlot.E, (uint) _Player.GetAutoAttackRange()); R = new Spell.Active(SpellSlot.R); Menu = MainMenu.AddMenu("Vayne Buddy", "vBuddy"); Menu.AddGroupLabel("Vayne Buddy"); Menu.AddLabel("Version: " + "0.0.0.1"); Menu.AddSeparator(); Menu.AddLabel("By Fluxy ;)"); Menu.AddSeparator(); Menu.AddLabel("p.s. imeh is f****t"); ComboMenu = Menu.AddSubMenu("Combo", "vBuddyCombo"); ComboMenu.AddGroupLabel("Combo Settings"); ComboMenu.Add("useQCombo", new CheckBox("Use Q", true)); ComboMenu.AddLabel("R Settings"); ComboMenu.Add("useRCombo", new CheckBox("Use R", false)); ComboMenu.Add("noRUnderTurret", new CheckBox("Disable R if Target is under allied turret", true)); CondemnPriorityMenu = Menu.AddSubMenu("Auto Condemn", "vBuddyCondemnPriority"); CondemnPriorityMenu.AddGroupLabel("Condemn Priority"); foreach (var enem in ObjectManager.Get<AIHeroClient>().Where(a => a.IsEnemy)) { var champValue = CondemnPriorityMenu.Add(enem.ChampionName + "priority", new Slider(enem.ChampionName + ": ", 1, 1, 5)); var enem1 = enem; champValue.OnValueChange += delegate { champValue.DisplayName = enem1.ChampionName + ": " + PriorityValues[champValue.CurrentValue]; }; champValue.DisplayName = enem1.ChampionName + ": " + PriorityValues[champValue.CurrentValue]; } CondemnPriorityMenu.AddSeparator(); var sliderValue = CondemnPriorityMenu.Add("minSliderAutoCondemn", new Slider("Min Priority for Auto Condemn: ", 2, 1, 5)); sliderValue.OnValueChange += delegate { sliderValue.DisplayName = "Min Priority for Auto Condemn: " + PriorityValues[sliderValue.CurrentValue]; }; sliderValue.DisplayName = "Min Priority for Auto Condemn: " + PriorityValues[sliderValue.CurrentValue]; CondemnPriorityMenu.Add("autoCondemnToggle", new KeyBind("Auto Condemn", false, KeyBind.BindTypes.PressToggle, 'H')); CondemnPriorityMenu.AddSeparator(); CondemnMenu = Menu.AddSubMenu("Condemn", "vBuddyCondemn"); CondemnMenu.AddGroupLabel("Condemn Settings"); CondemnMenu.AddSeparator(); CondemnMenu.Add("pushDistance", new Slider("Push Distance", 410, 350, 420)); CondemnMenu.AddSeparator(); CondemnMenu.AddLabel("Active Mode Settings"); CondemnMenu.Add("smartVsCheap", new CheckBox("On (SMART CONDEMN (saves fps)) / OFF (360 degree check)", true)); CondemnMenu.AddSeparator(); CondemnMenu.Add("condemnCombo", new CheckBox("Condemn in Combo", true)); CondemnMenu.Add("condemnComboTrinket", new CheckBox("Trinket Bush After E", true)); CondemnMenu.Add("condemnHarass", new CheckBox("Condemn in Harass", true)); HarassMenu = Menu.AddSubMenu("Harass", "vBuddyHarass"); HarassMenu.AddGroupLabel("Harass Settings"); HarassMenu.Add("useQHarass", new CheckBox("Use Q", true)); FarmMenu = Menu.AddSubMenu("Farming", "vBuddyFarm"); FarmMenu.AddGroupLabel("Farming Settings"); FarmMenu.Add("customLastHitWaveClearMode", new CheckBox("Custom LH / WC")); FarmMenu.Add("MinManaQLHWC", new Slider("Minimum Mana % for Farm", 30)); FarmMenu.AddLabel("Last Hit"); FarmMenu.Add("useQLastHit", new CheckBox("Use Q Last", true)); FarmMenu.AddLabel("WaveClear"); FarmMenu.Add("useQWaveClear", new CheckBox("Use Q WaveClear", true)); DrawMenu = Menu.AddSubMenu("Misc Menu", "vBuddyMisc"); DrawMenu.AddGroupLabel("Draw Settings"); DrawMenu.Add("drawERange", new CheckBox("Draw E Range", false)); DrawMenu.Add("condemnVisualiser", new CheckBox("Draw Condemn", false)); DrawMenu.Add("drawStacks", new CheckBox("Draw W Stacks", false)); DrawMenu.AddLabel("Misc"); DrawMenu.Add("wallJumpKey", new KeyBind("Tumble Walls", false, KeyBind.BindTypes.HoldActive, 'Z')); InterruptorMenu = Menu.AddSubMenu("Interrupter", "InterruptorvBuddy"); InterruptorMenu.AddGroupLabel("Interrupter Menu"); InterruptorMenu.Add("enableInterrupter", new CheckBox("Enable Interrupter")); InterruptorMenu.AddSeparator(); var dangerSlider = InterruptorMenu.Add("dangerLevel", new Slider("Set Your Danger Level: ", 3, 1, 3)); var dangerSliderDisplay = InterruptorMenu.Add("dangerLevelDisplay", new Label("Danger Level: " + DangerSliderValues[dangerSlider.Cast<Slider>().CurrentValue - 1])); dangerSlider.Cast<Slider>().OnValueChange += delegate { dangerSliderDisplay.Cast<Label>().DisplayName = "Danger Level: " + DangerSliderValues[dangerSlider.Cast<Slider>().CurrentValue - 1]; }; GapCloserMenu = Menu.AddSubMenu("Anti-GapClosers", "gapClosersvBuddy"); GapCloserMenu.AddGroupLabel("Anti-GapCloser Menu"); GapCloserMenu.Add("enableGapCloser", new CheckBox("Enable Anti-GapCloser")); Orbwalker.OnPostAttack += Events.Orbwalker_OnPostAttack; Orbwalker.OnPreAttack += Events.Orbwalker_OnPreAttack; Game.OnUpdate += Game_OnUpdate; Drawing.OnDraw += Drawing_OnDraw; Gapcloser.OnGapCloser += Events.Gapcloser_OnGapCloser; Interrupter.OnInterruptableSpell += Events.Interrupter_OnInterruptableSpell; AIHeroClient.OnProcessSpellCast += AIHeroClient_OnProcessSpellCast; Chat.Print("VayneBuddy: Loading Tasks Done.", Color.Firebrick); Chat.Print("VayneBuddy: iMeh is f****t.", Color.Firebrick); }
public static void OnLoadingComplete(EventArgs args) { if (EloBuddy.Player.Instance.Hero != Champion.Vayne) { return; } Chat.Print("Version 1v Beta", Color.LightBlue); //spells Q = new Spell.Skillshot(SpellSlot.Q, int.MaxValue, SkillShotType.Linear); E = new Spell.Targeted(SpellSlot.E, 750); EDeclaraçãoParaoInimigo = new Spell.Skillshot(SpellSlot.E, 590, SkillShotType.Linear, 150, 1150); W = new Spell.Active(SpellSlot.W); R = new Spell.Active(SpellSlot.R); //Menu MainVayne = MainMenu.AddMenu("Vayne", "Vayne"); vCombo = MainVayne.AddSubMenu("[Combo]"); vCombo.AddGroupLabel("Q Settings"); vCombo.Add("Qcombo", new ComboBox("Q Logic", 0, "Side", "Cursor", "Burst")); vCombo.Add("QeR", new CheckBox("Auto [Q+R]", false)); vCombo.Add("UsarE", new CheckBox("Use E Combo")); vCombo.AddLabel("W Settings:"); vCombo.Add("FocusW", new CheckBox("[Focus target]")); vCombo.AddLabel("R Settings"); vCombo.Add("RCombo", new CheckBox("Use R")); vCombo.Add("RC", new Slider("R enemies= {0} ", 2, 1, 5)); vCombo.Add("ResetAA", new CheckBox("No AA If active Ulty ")); vCombo.Add("Joberr", new Slider("AA enemy", 2, 1, 5)); //Harass vHarass = MainVayne.AddSubMenu("[Harass]"); vHarass.Add("UseE", new CheckBox("Use Spell E", false)); vHarass.Add("MiniManar", new Slider("E Mana = {0}", 70, 0, 100)); //Lane vLane = MainVayne.AddSubMenu("[Lane]"); vLane.Add("QLane", new CheckBox("Use Q")); vLane.Add("QMana", new Slider("Q Mana = {0}", 75)); //Jungle vJungle = MainVayne.AddSubMenu("[Jungle]"); vJungle.Add("Qjungle", new CheckBox("Use Q Jungle")); vJungle.Add("QMana", new Slider("Q Mana = {0}", 75)); //Draw vDraw = MainVayne.AddSubMenu("[Draw]"); vDraw.Add("UnicoDraw", new CheckBox("Draw E")); //KilSteal vKil = MainVayne.AddSubMenu("[KillSteal]"); vKil.AddLabel("E Settings:"); vKil.Add("EKillSteal", new CheckBox("[Use E KS]")); vKil.Add("Ecombo", new ComboBox("E Logic", 1, "EloBuddy", "Joker")); vKil.Add("GoodPush", new Slider("Distance = {0}", 410, 350, 420)); vKil.Add("Precentir", new Slider("HitChange = {0}", 70)); //Iter vIter = MainVayne.AddSubMenu("[Interrupter]"); vIter.Add("interrupter", new CheckBox(" Use E Interrupter")); vIter.Add("AutoQ", new CheckBox("Q Gapcloser", false)); vIter.Add("interronperespell", new ComboBox("Interrupter HitChance", 0, "High", "Medium", "Low")); //Some daqui seu cachorro Drawing.OnDraw += Finalização.Trump.OnDraw; Game.OnUpdate += Definições_dos_Modos.Modos.Atualização; Orbwalker.OnPostAttack += Definições_dos_Modos.Modos.DespoisDoAtauqe; Gapcloser.OnGapcloser += Definições_dos_Modos.ModV2.AntiGapCloser; Interrupter.OnInterruptableSpell += Definições_dos_Modos.ModV2.PorjetoBase; Interrupter.OnInterruptableSpell += Definições_dos_Modos.ModV2.HomemInvible; Interrupter.OnInterruptableSpell += Definições_dos_Modos.ModV2.JookerLoL; Obj_AI_Base.OnProcessSpellCast += Definições_dos_Modos.ModV2.CasteloDoReiArthur; EloBuddy.Player.OnIssueOrder += Definições_dos_Modos.ModV2.BorResetaOSeusAtacks; }
private static void Game_OnStart(EventArgs args) { if (!_Player.ChampionName.ToLower().Contains("vayne")) { return; } Q = new Spell.Skillshot(SpellSlot.Q, int.MaxValue, SkillShotType.Linear); E = new Spell.Targeted(SpellSlot.E, 550); Condemn.ESpell = new Spell.Skillshot(SpellSlot.E, 550, SkillShotType.Linear, 250, 1200); R = new Spell.Active(SpellSlot.R); Menu = MainMenu.AddMenu("Crayz Vayne", "CrayzVayne"); Menu.AddGroupLabel("Crayz Vayne"); Menu.AddLabel("Version: " + "7.5.179.44"); Menu.AddSeparator(); Menu.AddLabel("By Crayz Turkis ;)"); Menu.AddSeparator(); Menu.AddLabel("Have Fun !"); ComboMenu = Menu.AddSubMenu("Combo", "Combo"); ComboMenu.AddGroupLabel("Combo Settings"); ComboMenu.Add("useQCombo", new CheckBox("Use Q")); ComboMenu.Add("useQKite", new CheckBox("Use Q to Kite Melee", false)); ComboMenu.Add("useECombo", new CheckBox("Use E (Execute)")); ComboMenu.AddLabel("R Settings"); ComboMenu.Add("useRCombo", new CheckBox("Use R", false)); ComboMenu.Add("noRUnderTurret", new CheckBox("Disable R if Target is under enemy turret")); CondemnPriorityMenu = Menu.AddSubMenu("Auto Condemn", "AutoCondemn"); CondemnPriorityMenu.AddGroupLabel("Condemn Priority"); foreach (var enem in ObjectManager.Get <AIHeroClient>().Where(a => a.IsEnemy)) { var champValue = CondemnPriorityMenu.Add(enem.ChampionName + "priority", new Slider(enem.ChampionName + ": ", 1, 1, 5)); var enem1 = enem; champValue.OnValueChange += delegate { champValue.DisplayName = enem1.ChampionName + ": " + PriorityValues[champValue.CurrentValue]; }; champValue.DisplayName = enem1.ChampionName + ": " + PriorityValues[champValue.CurrentValue]; } CondemnPriorityMenu.AddSeparator(); var sliderValue = CondemnPriorityMenu.Add("minSliderAutoCondemn", new Slider("Min Priority for Auto Condemn: ", 2, 1, 5)); sliderValue.OnValueChange += delegate { sliderValue.DisplayName = "Min Priority for Auto Condemn: " + PriorityValues[sliderValue.CurrentValue]; }; sliderValue.DisplayName = "Min Priority for Auto Condemn: " + PriorityValues[sliderValue.CurrentValue]; CondemnPriorityMenu.Add("autoCondemnToggle", new KeyBind("Auto Condemn", false, KeyBind.BindTypes.PressToggle, 'H')); CondemnPriorityMenu.AddSeparator(); CondemnMenu = Menu.AddSubMenu("Condemn", "Condemn"); CondemnMenu.AddGroupLabel("Condemn Settings"); CondemnMenu.AddSeparator(); CondemnMenu.Add("pushDistance", new Slider("Push Distance", 410, 350, 420)); CondemnMenu.Add("condemnPercent", new Slider("Condemn Percent", 33, 1)); CondemnMenu.AddSeparator(); CondemnMenu.AddLabel("Active Mode Settings"); CondemnMenu.Add("smartVsCheap", new CheckBox("On (saves fps) OFF (360 degree check)", true)); CondemnMenu.AddSeparator(); CondemnMenu.Add("condemnCombo", new CheckBox("Condemn in Combo", true)); CondemnMenu.Add("condemnComboTrinket", new CheckBox("Trinket Bush After E", true)); CondemnMenu.Add("condemnHarass", new CheckBox("Condemn in Harass", true)); HarassMenu = Menu.AddSubMenu("Harass", "Harass"); HarassMenu.AddGroupLabel("Harass Settings"); HarassMenu.Add("useQHarass", new CheckBox("Use Q", true)); FarmMenu = Menu.AddSubMenu("Farming", "Farming"); FarmMenu.AddGroupLabel("Farming Settings"); FarmMenu.Add("onlyTumbleToCursor", new CheckBox("Only Tumble To Cursor", false)); FarmMenu.AddLabel("Last Hit"); FarmMenu.Add("useQLastHit", new CheckBox("Use Q Last", true)); FarmMenu.AddLabel("WaveClear"); FarmMenu.Add("useQWaveClear", new CheckBox("Use Q WaveClear", true)); DrawMenu = Menu.AddSubMenu("Misc Menu", "Misc"); DrawMenu.AddGroupLabel("Draw Settings"); DrawMenu.Add("drawERange", new CheckBox("Draw E Range", false)); DrawMenu.Add("condemnVisualiser", new CheckBox("Draw Condemn", false)); DrawMenu.Add("drawStacks", new CheckBox("Draw W Stacks", false)); DrawMenu.AddLabel("Misc"); DrawMenu.Add("wallJumpKey", new KeyBind("Tumble Walls", false, KeyBind.BindTypes.HoldActive, 'Z')); DrawMenu.Add("condemnNextAA", new KeyBind("Condemn Next AA", false, KeyBind.BindTypes.PressToggle, 'E')); DrawMenu.AddLabel("Anti-Champions"); DrawMenu.Add("antiKalista", new CheckBox("Anti-Kalista")); DrawMenu.Add("antiRengar", new CheckBox("Anti-Rengar")); InterruptorMenu = Menu.AddSubMenu("Interrupter", "Interrupter"); InterruptorMenu.AddGroupLabel("Interrupter Menu"); InterruptorMenu.Add("enableInterrupter", new CheckBox("Enable Interrupter")); InterruptorMenu.AddSeparator(); var dangerSlider = InterruptorMenu.Add("dangerLevel", new Slider("Set Your Danger Level: ", 3, 1, 3)); var dangerSliderDisplay = InterruptorMenu.Add("dangerLevelDisplay", new Label("Danger Level: " + DangerSliderValues[dangerSlider.Cast <Slider>().CurrentValue - 1])); dangerSlider.Cast <Slider>().OnValueChange += delegate { dangerSliderDisplay.Cast <Label>().DisplayName = "Danger Level: " + DangerSliderValues[dangerSlider.Cast <Slider>().CurrentValue - 1]; }; GapCloserMenu = Menu.AddSubMenu("Anti-GapClosers", "Anti-GapClosers"); GapCloserMenu.AddGroupLabel("Anti-GapCloser Menu"); GapCloserMenu.Add("enableGapCloser", new CheckBox("Enable Anti-GapCloser")); Orbwalker.OnPreAttack += Events.Orbwalker_OnPreAttack; Game.OnUpdate += Game_OnUpdate; Drawing.OnDraw += Drawing_OnDraw; Gapcloser.OnGapcloser += Events.Gapcloser_OnGapCloser; Interrupter.OnInterruptableSpell += Events.Interrupter_OnInterruptableSpell; Obj_AI_Base.OnProcessSpellCast += AIHeroClient_OnProcessSpellCast; Obj_AI_Base.OnSpellCast += Obj_AI_Base_OnSpellCast; Obj_AI_Base.OnBasicAttack += Events.ObjAiBaseOnOnBasicAttack; GameObject.OnCreate += Events.GameObject_OnCreate; }