public static void Load() { var _Menu = new Menu(_MenuNameBase, "drawingMenu"); _Menu.AddSubMenu(DrawingOnMonsters.DrawingMonsterMenu()); _Menu.AddSubMenu(DrawingOnChamps.DrawingOnChampionsMenu()); _Menu.AddSubMenu(DrawingOnMinions.DrawingOnMinionsMenu()); SMenu.AddSubMenu(_Menu); EloBuddy.Drawing.OnDraw += DrawingOnMonsters.OnDrawMonster; EloBuddy.Drawing.OnDraw += DrawingOnChamps.OnDrawEnemy; EloBuddy.Drawing.OnDraw += DrawingOnChamps.OnDrawSelf; EloBuddy.Drawing.OnDraw += DrawingOnMinions.OnMinionDraw; }
private static void OnUpdate(EventArgs args) { if (!Humanizer.Limiter.CheckDelay($"{Humanizer.DelayItemBase}Slider.LevelDelay")) { return; } Humanizer.Limiter.UseTick($"{Humanizer.DelayItemBase}Slider.LevelDelay"); if (SMenu.Item(_MenuItemBase + "Boolean.AutoLevelUp").GetValue <bool>()) { LevelUpSpells(); } }
public static void OnDrawEnemy(EventArgs args) { if (!SMenu.Item(_MenuItemBase + "Boolean.DrawOnEnemy").GetValue <bool>() || DamageToEnemy == null) { return; } foreach ( var unit in HeroManager.Enemies.Where( unit => unit.IsValid && unit.IsHPBarRendered && Champion.E.IsInRange(unit))) { const int xOffset = 10; const int yOffset = 20; const int width = 103; const int height = 8; var barPos = unit.HPBarPosition; var damage = Libaries.Damage.DamageCalc.CalculateRendDamage(unit); var percentHealthAfterDamage = Math.Max(0, unit.Health - damage) / unit.MaxHealth; var yPos = barPos.Y + yOffset; var xPosDamage = barPos.X + xOffset + width * percentHealthAfterDamage; var xPosCurrentHp = barPos.X + xOffset + width * unit.Health / unit.MaxHealth; if (SMenu.Item(_MenuItemBase + "Boolean.DrawOnEnemy.KillableColor").GetValue <Circle>().Active&& damage > unit.Health) { EloBuddy.Drawing.DrawText(barPos.X + xOffset, barPos.Y + yOffset - 13, SMenu.Item(_MenuItemBase + "Boolean.DrawOnEnemy.KillableColor").GetValue <Circle>().Color, "Killable"); } EloBuddy.Drawing.DrawLine(xPosDamage, yPos, xPosDamage, yPos + height, 1, Color.LightGray); if (!SMenu.Item(_MenuItemBase + "Boolean.DrawOnEnemy.FillColor").GetValue <Circle>().Active) { return; } var differenceInHp = xPosCurrentHp - xPosDamage; var pos1 = barPos.X + 9 + (107 * percentHealthAfterDamage); for (var i = 0; i < differenceInHp; i++) { EloBuddy.Drawing.DrawLine(pos1 + i, yPos, pos1 + i, yPos + height, 1, SMenu.Item(_MenuItemBase + "Boolean.DrawOnEnemy.FillColor").GetValue <Circle>().Color); } } }
public void OnDrawEnemy(EventArgs args) { if (!SMenu.Item(MenuItemBase + "Boolean.DrawOnEnemy").GetValue <bool>()) { _damageIndicator.SetFillEnabled(false); _damageIndicator.SetKillableEnabled(false); return; } _damageIndicator.SetFillEnabled(SMenu.Item(MenuItemBase + "Boolean.DrawOnEnemy.FillColor").GetValue <Circle>().Active); _damageIndicator.SetFill(SMenu.Item(MenuItemBase + "Boolean.DrawOnEnemy.FillColor").GetValue <Circle>().Color); _damageIndicator.SetKillableEnabled(SMenu.Item(MenuItemBase + "Boolean.DrawOnEnemy.KillableColor").GetValue <Circle>().Active); _damageIndicator.SetKillable(SMenu.Item(MenuItemBase + "Boolean.DrawOnEnemy.KillableColor").GetValue <Circle>().Color); }
public static void Load() { var _Menu = new Menu(_MenuNameBase, "drawingMenu"); _Menu.AddSubMenu(DrawingOnMonsters.DrawingMonsterMenu()); _Menu.AddSubMenu(DrawingOnChamps.DrawingOnChampionsMenu()); _Menu.AddSubMenu(DrawingOnMinions.DrawingOnMinionsMenu()); SMenu.AddSubMenu(_Menu); DrawingOnMonsters.DamageToMonster = Damage.DamageCalc.CalculateRendDamage; DrawingOnChamps.DamageToEnemy = Damage.DamageCalc.CalculateRendDamage; LeagueSharp.Drawing.OnDraw += DrawingOnMonsters.OnDrawMonster; LeagueSharp.Drawing.OnDraw += DrawingOnChamps.OnDrawEnemy; LeagueSharp.Drawing.OnDraw += DrawingOnChamps.OnDrawSelf; LeagueSharp.Drawing.OnDraw += DrawingOnMinions.OnMinionDraw; }
private static bool RendBeforeDeath() { if (!SMenu.Item(RendHandler._MenuItemBase + "Boolean.RendBeforeDeath").GetValue <bool>()) { return(false); } if (!Humanizer.Limiter.CheckDelay($"{Humanizer.DelayItemBase}Slider.RendDelay")) { return(false); } var champs = 0; // ReSharper disable once LoopCanBePartlyConvertedToQuery foreach (var target in HeroManager.Enemies) { if (!target.IsValidTarget(Champion.E.Range)) { continue; } if (!target.HasBuff("KalistaExpungeMarker")) { continue; } if (ObjectManager.Player.HealthPercent > SMenu.Item(RendHandler._MenuItemBase + "Boolean.RendBeforeDeath.Slider.PercentHP").GetValue <Slider>().Value) { continue; } if (target.GetBuffCount("kalistaexpungemarker") < SMenu.Item(RendHandler._MenuItemBase + "Boolean.RendBeforeDeath.Slider.Stacks").GetValue <Slider>().Value) { continue; } champs++; if (champs < SMenu.Item(RendHandler._MenuItemBase + "Boolean.RendBeforeDeath.Slider.Enemies").GetValue <Slider>().Value) { continue; } Humanizer.Limiter.UseTick($"{Humanizer.DelayItemBase}Slider.RendDelay"); Champion.E.Cast(); return(true); } return(false); }
public static void OnMinionDraw(EventArgs args) { if (Player.IsDead) { return; } if (!SMenu.Item(_MenuItemBase + "Boolean.DrawOnMinions").GetValue <bool>()) { return; } foreach (var minion in ObjectManager.Get <Obj_AI_Minion>()) { if (minion.Distance(Player) > SMenu.Item(_MenuItemBase + "Boolean.DrawOnMinions.Distance").GetValue <Slider>().Value) { continue; // Out of render range } if (minion.IsAlly) { continue; //This is not Dota2 } if (minion.IsDead) { continue; //Dont poke the dead } if (!minion.IsMinion) { continue; //Differect Function } if (Player.GetAutoAttackDamage(minion) > minion.Health) // Is killable { Render.Circle.DrawCircle(minion.Position, minion.BoundingRadius + 50, SMenu.Item(_MenuItemBase + "Boolean.DrawOnMinions.MarkerKillableColor").GetValue <Circle>().Color, 2); } else // Not killable { Render.Circle.DrawCircle(minion.Position, minion.BoundingRadius + 50, SMenu.Item(_MenuItemBase + "Boolean.DrawOnMinions.MarkerInnerColor").GetValue <Circle>().Color, 2); var remainingHp = (int)100 * (minion.Health - Player.GetAutoAttackDamage(minion)) / minion.Health; Render.Circle.DrawCircle(minion.Position, minion.BoundingRadius + (float)remainingHp + 50, SMenu.Item(_MenuItemBase + "Boolean.DrawOnMinions.MakerOuterColor").GetValue <Circle>().Color, 2); } } }
private static bool RendEpicsMinions() { var found = false; if (!SMenu.Item(RendHandler._MenuItemBase + "Boolean.RendEpicMinions").GetValue <bool>()) { return(false); } if (!Humanizer.Limiter.CheckDelay($"{Humanizer.DelayItemBase}Slider.RendDelay")) { return(false); } foreach (var epic in MinionManager.GetMinions(Player.ServerPosition, Champion.E.Range).Where(epic => epic.IsValid)) { if (epic.CharData.BaseSkinName.ToLower().Contains("siege")) { if (Damage.DamageCalc.CalculateRendDamage(epic) < epic.Health) { continue; } found = true; break; } if (!epic.CharData.BaseSkinName.ToLower().Contains("super")) { continue; } if (Damage.DamageCalc.CalculateRendDamage(epic) < epic.Health) { continue; } found = true; break; } if (!found) { return(false); } Humanizer.Limiter.UseTick($"{Humanizer.DelayItemBase}Slider.RendDelay"); Champion.E.Cast(); return(true); }
private static void LevelUpSpells() { var qL = Player.Spellbook.GetSpell(Champion.Q.Slot).Level + QOff; var wL = Player.Spellbook.GetSpell(Champion.W.Slot).Level + WOff; var eL = Player.Spellbook.GetSpell(Champion.E.Slot).Level + EOff; var rL = Player.Spellbook.GetSpell(Champion.R.Slot).Level + ROff; if (qL + wL + eL + rL >= Player.Level) { return; } int[] level = { 0, 0, 0, 0 }; if (SMenu.Item(_MenuItemBase + "Boolean.StartE").GetValue <bool>()) { for (var i = 0; i < Player.Level; i++) { level[LevelStructure.StartE[i] - 1] = level[LevelStructure.StartE[i] - 1] + 1; } } else { for (var i = 0; i < Player.Level; i++) { level[LevelStructure.StartW[i] - 1] = level[LevelStructure.StartW[i] - 1] + 1; } } if (qL < level[0]) { Player.Spellbook.LevelSpell(SpellSlot.Q); } if (wL < level[1]) { Player.Spellbook.LevelSpell(SpellSlot.W); } if (eL < level[2]) { Player.Spellbook.LevelSpell(SpellSlot.E); } if (rL < level[3]) { Player.Spellbook.LevelSpell(SpellSlot.R); } }
private static bool RendOnLeave() { if (!SMenu.Item(RendHandler._MenuItemBase + "Boolean.RendOnLeave").GetValue <bool>()) { return(false); } if (!Humanizer.Limiter.CheckDelay($"{Humanizer.DelayItemBase}Slider.RendDelay")) { return(false); } foreach (var target in HeroManager.Enemies) { if (!target.IsValidTarget(Champion.E.Range)) { continue; } if (Damage.DamageCalc.CheckNoDamageBuffs(target)) { continue; } if (target.IsDead) { continue; } if (target.Distance(Player) < Champion.E.Range - 50) { continue; } var stacks = target.GetBuffCount("kalistaexpungemarker"); if (stacks <= SMenu.Item(RendHandler._MenuItemBase + "Boolean.RendOnLeave.Slider.Stacks").GetValue <Slider>().Value) { continue; } Humanizer.Limiter.UseTick($"{Humanizer.DelayItemBase}Slider.RendDelay"); Champion.E.Cast(); return(true); } return(false); }
private static void OnUpdate(EventArgs args) { if (!Humanizer.Limiter.CheckDelay($"{Humanizer.DelayItemBase}Slider.TrinketDelay")) { return; } Humanizer.Limiter.UseTick($"{Humanizer.DelayItemBase}Slider.TrinketDelay"); if (!SMenu.Item(_MenuItemBase + "Boolean.BuyOrb").GetValue <bool>() || Player.Level < 9) { return; } if (!ObjectManager.Player.InShop() || Items.HasItem(Structures.Items.Trinkets.Orb.Id)) { return; } Structures.Items.Trinkets.Orb.Buy(); }
static SmiteMenu() { SMenu.AddGroupLabel("Çarp Ayarları"); SMenu.AddSeparator(); _smiteToggle = SMenu.Add("EnableSmite", new KeyBind("Canavarlara Çarp kullanma tuşu", false, KeyBind.BindTypes.PressToggle, 'M')); _smiteEnemies = SMenu.Add("EnableSmiteEnemies", new KeyBind("Maviye Çarp Kullan", false, KeyBind.BindTypes.PressToggle, 'M')); _smiteCombo = SMenu.Add("EnableSmiteCombo", new KeyBind("Kırmızıya Çarp Kombo (Tuş)", false, KeyBind.BindTypes.PressToggle, 'M')); _redSmitePercent = SMenu.Add("SmiteRedPercent", new Slider("Kırmızının Canı Şu kadarken at", 60)); SMenu.AddSeparator(); SMenu.AddGroupLabel("Çarp Atılacak Canavarlar"); SMenu.Add("SRU_Baron", new CheckBox("Baron")); SMenu.Add("SRU_Dragon", new CheckBox("Ejder")); SMenu.Add("SRU_Red", new CheckBox("Kırmız")); SMenu.Add("SRU_Blue", new CheckBox("Mavi")); SMenu.Add("SRU_Gromp", new CheckBox("Kurbağa")); SMenu.Add("SRU_Murkwolf", new CheckBox("AlacaKurt")); SMenu.Add("SRU_Krug", new CheckBox("Golem")); SMenu.Add("SRU_Razorbeak", new CheckBox("SivriGagalar")); SMenu.Add("Sru_Crab", new CheckBox("Yampiri Yengeç")); SMenu.Add("SRU_RiftHerald", new CheckBox("Baronun Kız Kardeşi :D", false)); }
private static void LoadDelays() { try { foreach (var sDelay in _sDelays.Where(sDelay => !Delays.ContainsKey(sDelay))) { Delays.Add($"{Humanizer.DelayItemBase}Slider.{sDelay}", new NewLevelShit( SMenu.Item($"{Humanizer.DelayItemBase}Slider.{sDelay}").GetValue <Slider>().Value, 0f)); } } catch { //F**k her right in the pussy } finally { _fMin = SMenu.Item($"{Humanizer.DelayItemBase}Slider.MinSeedDelay").GetValue <Slider>().Value; _fMax = SMenu.Item($"{Humanizer.DelayItemBase}Slider.MaxSeedDelay").GetValue <Slider>().Value; } }
public static void CheckNonKillables(AttackableUnit minion) { if (!SMenu.Item(RendHandler._MenuItemBase + "Boolean.RendNonKillables").GetValue <bool>()) { return; } if (!Humanizer.Limiter.CheckDelay($"{Humanizer.DelayItemBase}Slider.NonKillableDelay")) { return; } if (!(minion.Health <= Damage.DamageCalc.CalculateRendDamage((Obj_AI_Base)minion)) || minion.Health > 60) { return; } if (!minion.IsValidTarget(Champion.E.Range)) { return; } Humanizer.Limiter.UseTick($"{Humanizer.DelayItemBase}Slider.NonKillableDelay"); Champion.E.Cast(); }
static SmiteMenu() { SMenu.AddGroupLabel("Çarp Ayarları"); SMenu.AddSeparator(); _smiteToggle = SMenu.Add("EnableSmite", new KeyBind("Çarp Canavarlar Üzerinde Aktif Tuşu", false, KeyBind.BindTypes.PressToggle, 'M')); _smiteEnemies = SMenu.Add("EnableSmiteEnemies", new KeyBind("Mavi Çarp KS Tuşu", false, KeyBind.BindTypes.PressToggle, 'M')); _smiteCombo = SMenu.Add("EnableSmiteCombo", new KeyBind("Kırmızı Çarp Kombosu Tuşu", false, KeyBind.BindTypes.PressToggle, 'M')); _redSmitePercent = SMenu.Add("SmiteRedPercent", new Slider("Kırmızı Çarp İçin düşmanın canı %", 60)); SMenu.AddSeparator(); SMenu.AddGroupLabel("Çarp Kullanılabilecek Canavarlar"); SMenu.Add("SRU_Baron", new CheckBox("Baron")); SMenu.Add("SRU_Dragon", new CheckBox("Ejder")); SMenu.Add("SRU_Red", new CheckBox("Kırmızı")); SMenu.Add("SRU_Blue", new CheckBox("Mavi")); SMenu.Add("SRU_Gromp", new CheckBox("Kurbağa")); SMenu.Add("SRU_Murkwolf", new CheckBox("AlacaKurt")); SMenu.Add("SRU_Krug", new CheckBox("Golem")); SMenu.Add("SRU_Razorbeak", new CheckBox("SivriGagalar")); SMenu.Add("Sru_Crab", new CheckBox("Yampiri Yengeç")); SMenu.Add("SRU_RiftHerald", new CheckBox("Baronun Kız Kardeşi", false)); }
static SmiteMenu() { SMenu.AddGroupLabel("Smite Options"); SMenu.AddSeparator(); _smiteToggle = SMenu.Add("EnableSmite", new KeyBind("Enable Smite Monsters (Toggle)", false, KeyBind.BindTypes.PressToggle, 'M')); _smiteEnemies = SMenu.Add("EnableSmiteEnemies", new KeyBind("Blue Smite KS (Toggle)", false, KeyBind.BindTypes.PressToggle, 'M')); _smiteCombo = SMenu.Add("EnableSmiteCombo", new KeyBind("Red Smite Combo (Toggle)", false, KeyBind.BindTypes.PressToggle, 'M')); _redSmitePercent = SMenu.Add("SmiteRedPercent", new Slider("Red Smite Enemy % HP", 60)); SMenu.AddSeparator(); SMenu.AddGroupLabel("Smite-able Monsters"); SMenu.Add("SRU_Baron", new CheckBox("Baron")); SMenu.Add("SRU_Dragon", new CheckBox("Dragon")); SMenu.Add("SRU_Red", new CheckBox("Red")); SMenu.Add("SRU_Blue", new CheckBox("Blue")); SMenu.Add("SRU_Gromp", new CheckBox("Gromp")); SMenu.Add("SRU_Murkwolf", new CheckBox("Murkwolf")); SMenu.Add("SRU_Krug", new CheckBox("Krug")); SMenu.Add("SRU_Razorbeak", new CheckBox("Razorbeak")); SMenu.Add("Sru_Crab", new CheckBox("Crab")); SMenu.Add("SRU_RiftHerald", new CheckBox("Rift Herald", false)); }
private static bool RendHarass() { if (!SMenu.Item(RendHandler._MenuItemBase + "Boolean.RendMinions").GetValue <bool>()) { return(false); } if (!Humanizer.Limiter.CheckDelay($"{Humanizer.DelayItemBase}Slider.RendDelay")) { return(false); } foreach (var target in HeroManager.Enemies) { if (!target.IsValidTarget(Champion.E.Range)) { continue; } if (Damage.DamageCalc.CheckNoDamageBuffs(target)) { continue; } var stacks = target.GetBuffCount("kalistaexpungemarker"); if (stacks < SMenu.Item(RendHandler._MenuItemBase + "Boolean.RendHarrassKill.Slider.Stacks").GetValue <Slider>().Value) { continue; } var minions = MinionManager.GetMinions(Player.ServerPosition, Champion.E.Range); var count = minions.Count(minion => minion.Health <= Damage.DamageCalc.CalculateRendDamage(minion) && minion.IsValid); if (SMenu.Item(RendHandler._MenuItemBase + "Boolean.RendHarrassKill.Slider.Killed").GetValue <Slider>().Value > count) { continue; } Humanizer.Limiter.UseTick($"{Humanizer.DelayItemBase}Slider.RendDelay"); Champion.E.Cast(); return(true); } return(false); }
private static void LaneClear() { if (SMenu.Item(_MenuItemBase + "Clear.Boolean.Rend.Minions").GetValue <bool>() && Champion.E.IsReady()) { if (!Humanizer.Limiter.CheckDelay($"{Humanizer.DelayItemBase}Slider.RendDelay")) { var minions = MinionManager.GetMinions(Player.ServerPosition, Champion.E.Range); var count = minions.Count( minion => minion.Health <= Damage.DamageCalc.CalculateRendDamage(minion) && minion.IsValid); if (SMenu.Item(_MenuItemBase + "Clear.Boolean.Rend.Minions.Killed").GetValue <Slider>().Value > count) { if (true)//ManaHandler.UseModeE()) { Humanizer.Limiter.UseTick($"{Humanizer.DelayItemBase}Slider.RendDelay"); Champion.E.Cast(); } } } } }
private void Start() { //add the listner to all the buttons if (Transicion.bandera == 1) { PrincipalMenu.SetActive(false); SMenu.SetActive(true); transicion.ButtonMenu(); Transicion.bandera = 0; } if (BtnAtrasMenuJuegos.bandera2 == 1) { PrincipalMenu.SetActive(false); MenuJuegos.SetActive(true); panelopen.ButtonMenu(); BtnAtrasMenuJuegos.bandera2 = 0; } if (BanderaNumeros.bandera3 == 1) { PrincipalMenu.SetActive(false); SMenu.SetActive(true); transicion.ButtonMenu(); tecla = 2; } for (int i = 0; i < options.Count; i++) { Button localBtn = options[i]; localBtn.onClick.AddListener(() => OnClic(localBtn, tecla)); } for (int i = 0; i < uiButtons.Count; i++) { Button localBtn = uiButtons[i]; localBtn.onClick.AddListener(() => Animacion(localBtn)); localBtn.onClick.AddListener(() => OneClick(localBtn)); } }
public void OnDrawSelf(EventArgs args) { if (!SMenu.Item(MenuItemBase + "Boolean.DrawOnSelf").GetValue <bool>()) { return; } if (!Champion.Player.Position.IsOnScreen()) { return; } if (SMenu.Item(MenuItemBase + "Boolean.DrawOnSelf.ComboColor").GetValue <Circle>().Active&& Champion.GetSpellR.Level > 0) { Render.Circle.DrawCircle(Champion.Player.Position, Champion.GetSpellR.Range, SMenu.Item(MenuItemBase + "Boolean.DrawOnSelf.ComboColor").GetValue <Circle>().Color, 2); } if (SMenu.Item(MenuItemBase + "Boolean.DrawOnSelf.WColor").GetValue <Circle>().Active&& Champion.GetSpellW.Level > 0) { Render.Circle.DrawCircle(Champion.Player.Position, Champion.GetSpellW.Range, SMenu.Item(MenuItemBase + "Boolean.DrawOnSelf.WColor").GetValue <Circle>().Color, 2); } }
public static void LoadAssembly() { //load delays DelayHandler.Load(); //Initilize Menus var champMenu = new Menus.ChampionMenu(); var orbwalkerMenu = new Menus.OrbwalkerMenu(); var antiMenu = new Menus.AutoMenu(); //Load Data Champion.Player = ObjectManager.Player; //Load Menus into SMenu antiMenu.Load(); champMenu.Load(); orbwalkerMenu.Load(); _loader = new GeassLib.Loader($"{Champion.Player.ChampionName}", true, true, Data.Level.AbilitySequence, true, true); //Add SMenu to main menu SMenu.AddToMainMenu(); }
public static bool RendEnemies() { if (!SMenu.Item(RendHandler._MenuItemBase + "Boolean.RendEnemyChampions").GetValue <bool>()) { return(false); } if (!Humanizer.Limiter.CheckDelay($"{Humanizer.DelayItemBase}Slider.RendDelay")) { return(false); } foreach (var target in HeroManager.Enemies) { if (!target.IsValidTarget(Champion.E.Range)) { continue; } if (Damage.DamageCalc.CheckNoDamageBuffs(target)) { continue; } if (Damage.DamageCalc.CalculateRendDamage(target) < target.Health) { continue; } if (target.IsDead) { continue; } Humanizer.Limiter.UseTick($"{Humanizer.DelayItemBase}Slider.RendDelay"); Champion.E.Cast(); return(true); } return(false); }
private static bool RendMinions() { if (!SMenu.Item(RendHandler._MenuItemBase + "Boolean.RendMinions").GetValue <bool>()) { return(false); } if (!Humanizer.Limiter.CheckDelay($"{Humanizer.DelayItemBase}Slider.RendDelay")) { return(false); } var minions = MinionManager.GetMinions(Player.ServerPosition, Champion.E.Range); var count = minions.Count(minion => minion.Health <= Damage.DamageCalc.CalculateRendDamage(minion) && minion.IsValid); if (SMenu.Item(RendHandler._MenuItemBase + "Boolean.RendMinions.Slider.Killed").GetValue <Slider>().Value > count) { return(false); } Humanizer.Limiter.UseTick($"{Humanizer.DelayItemBase}Slider.RendDelay"); Champion.E.Cast(); return(true); }
private static bool RendSmallMonsters() { if (!SMenu.Item(RendHandler._MenuItemBase + "Boolean.RendSmallMonster").GetValue <bool>()) { return(false); } if (!Humanizer.Limiter.CheckDelay($"{Humanizer.DelayItemBase}Slider.RendDelay")) { return(false); } if ( !MinionManager.GetMinions(Player.ServerPosition, Champion.E.Range, MinionTypes.All, MinionTeam.Neutral, MinionOrderTypes.MaxHealth) .Any(monster => Damage.DamageCalc.CalculateRendDamage(monster) > monster.Health)) { return(false); } Humanizer.Limiter.UseTick($"{Humanizer.DelayItemBase}Slider.RendDelay"); Champion.E.Cast(); return(true); }
public static void OnLoad() { if (Player.ChampionName != "Kalista") { return; } Console.WriteLine(@"S+ Class Kalista Loading Core..."); Core.Champion.Load(); Console.WriteLine(@"S+ Class Kalista Loading Humanizer..."); Humanizer.Load(); Console.WriteLine(@"S+ Class Kalista Loading Drawing..."); DrawingHandler.Load(); Console.WriteLine(@"S+ Class Kalista Loading Orbwalker..."); OrbwalkHandler.Load(); Console.WriteLine(@"S+ Class Kalista Loading Auto Events..."); RendHandler.Load(); SentinelHandler.Load(); Console.WriteLine(@"S+ Class Kalista Loading ManaManager..."); // ManaHandler.Load(); Console.WriteLine(@"S+ Class Kalista Loading Trinkets..."); TrinketHandler.Load(); Console.WriteLine(@"S+ Class Kalista Loading Items..."); ItemHandler.Load(); Console.WriteLine(@"S+ Class Kalista Loading Levels..."); LevelHandler.Load(); Console.WriteLine(@"S+ Class Kalista Loading SoulBound..."); SoulBoundHandler.Load(); Console.WriteLine(@"S+ Class Kalista Loading Debugger..."); DebugHandler.Load(); Console.WriteLine(@"S+ Class Kalista Finalizing Menu..."); SMenu.AddSubMenu(new Menu("Credits: By Kallen", "doesnotMatterMenu")); Core.SMenu.AddToMainMenu(); Console.WriteLine(@"S+ Class Kalista Load Completed"); }
private static void OnUpdate(EventArgs args) { if (SMenu.Item(_MenuItemBase + "Boolean.UseSentinel").GetValue <bool>()) { if (Core.Time.TickCount > LastKeyCheckTick + 1000) // every 1 second { if (SMenu.Item(_MenuItemBase + "Boolean.UseSentinel.ModeSwap").GetValue <KeyBind>().Active) { SwapLocations(); } LastKeyCheckTick = Time.TickCount; } if (Core.Time.TickCount > LastSendCheckTick + 3000) // every 3 second { if (SMenu.Item(_MenuItemBase + "Boolean.UseSentinel.KeyPress").GetValue <KeyBind>().Active) { if (SentSentinel()) { LastSendCheckTick = Time.TickCount; } } } } }
public static void Load() { SMenu.AddSubMenu(_Menu()); Game.OnUpdate += OnUpdate; }
public static void Load() { SMenu.AddSubMenu(_Menu()); Obj_AI_Base.OnSpellCast += OnCast; }
public ResponseBase InsertOrUpdate(MenuModel model, int userId) { ResponseBase result = null; try { result = new ResponseBase(); SMenu menu; using (var db = new IEDEntities()) { if (CheckMenuName(model.MenuName, null, db) != null) { result.IsSuccess = false; result.Errors.Add(new Error() { Message = "Tên Menu đã tồn tại. Vui lòng chọn lại tên khác!", MemberName = "Thêm Mới Menu" }); } else { model.MenuName = model.MenuName.Trim(); model.Link = model.Link != null?model.Link.Trim() : null; if (model.Id == 0) { menu = new SMenu(); Parse.CopyObject(model, ref menu); if (model.Icon != "0" && model.Icon != null) { menu.Icon = model.Icon.Split(',').ToList().First(); } menu.CreatedUser = userId; menu.CreatedDate = DateTime.Now; db.SMenus.Add(menu); } else { menu = db.SMenus.FirstOrDefault(x => x.Id == model.Id && !x.IsDeleted); if (menu != null) { menu.MenuName = model.MenuName.Trim(); menu.MenuCategoryId = model.MenuCategoryId > 0 ? model.MenuCategoryId : menu.MenuCategoryId; menu.Link = model.Link.Trim(); menu.OrderIndex = model.OrderIndex; if (model.Icon != "0" && model.Icon != null) { menu.Icon = model.Icon.Split(',').ToList().FirstOrDefault(); } menu.IsViewIcon = model.IsViewIcon; menu.Description = model.Description; menu.IsShow = model.IsShow; menu.ModuleId = model.ModuleId; menu.UpdatedUser = userId; menu.UpdatedDate = DateTime.Now; db.Entry <SMenu>(menu).State = EntityState.Modified; result.IsSuccess = true; } else { result.IsSuccess = false; result.Errors.Add(new Error() { MemberName = "UpdateMenu", Message = "Menu đang thao tác không tồn tại. Vui lòng kiểm tra lại!" }); } } db.SaveChanges(); result.IsSuccess = true; } } } catch (Exception ex) { throw ex; } return(result); }
public static void Load() { SMenu.AddSubMenu(_Menu()); RendCheck.Load(); }