public static void CustomEvents_Unit_OnLevelUp(Obj_AI_Base sender, CustomEvents.Unit.OnLevelUpEventArgs args) { if (sender.NetworkId != Player.NetworkId) { return; } }
public static void OnLevelUp(Obj_AI_Base sender, CustomEvents.Unit.OnLevelUpEventArgs args) { if ((qOff + wOff + eOff + rOff) < player.Level) { int i = player.Level - 1; SpellSlot abilitySlot; if (abilityOrder[i] == 1) { abilitySlot = SpellSlot.Q; } else if (abilityOrder[i] == 2) { abilitySlot = SpellSlot.W; } else if (abilityOrder[i] == 3) { abilitySlot = SpellSlot.E; } else if (abilityOrder[i] == 4) { abilitySlot = SpellSlot.R; } else { abilitySlot = SpellSlot.Q; } ObjectManager.Player.Spellbook.LevelUpSpell(abilitySlot); } }
private static void OnLevelUp(Obj_AI_Base sender, CustomEvents.Unit.OnLevelUpEventArgs args) { if (Config.Item("autoLVL").GetValue <bool>()) { JungleClearer.jungler.levelUp(sender, args); } }
public void levelUp(Obj_AI_Base sender, CustomEvents.Unit.OnLevelUpEventArgs args) { if (sender.NetworkId == player.NetworkId) { sBook.LevelUpSpell(levelUpSeq[args.NewLevel - 1].Slot); } }
private static void UnitOnOnLevelUp(Obj_AI_Base sender, CustomEvents.Unit.OnLevelUpEventArgs args) { if (!sender.IsValid || !sender.IsMe || _priority == null || TotalLeveled() - _levelStrategy.LevelOneSkills == 0) { return; } foreach (SpellSlot spellSlot in _priority) { if (ObjectManager.Player.Spellbook.GetSpell(spellSlot).Level == 0 && args.NewLevel >= GetMinLevel(spellSlot) && args.NewLevel > _levelStrategy.MinimumLevel(spellSlot) && _levelStrategy.CanLevel(args.NewLevel, spellSlot)) { Level(spellSlot); return; } } var sl = _activate.GetValue <StringList>(); if (args.NewLevel >= Int32.Parse(sl.SList[sl.SelectedIndex])) { SpellSlot spellSlot = _levelStrategy.GetSpellSlotToLevel(args.NewLevel, _priority); if (spellSlot != SpellSlot.Unknown) { Level(spellSlot); } } }
//Auto level up skill static void Unit_OnLevelUp(Obj_AI_Base sender, CustomEvents.Unit.OnLevelUpEventArgs args) { if (!sender.IsMe || !Config.Item("Auto Level").GetValue <bool>()) { return; } Player.Spellbook.LevelUpSpell((SpellSlot)levelUpList[args.NewLevel - 1]); }
private void onLevelUpEvent(Obj_AI_Base champ, CustomEvents.Unit.OnLevelUpEventArgs evt) { // se for eu que evolui de level if (champ.IsMe && Config.Item("autoUpSkill").GetValue <bool>()) { int order = Config.Item("autoSkillOrder").GetValue <StringList>().SelectedIndex; masterYi.autoUpSkill(order, evt.NewLevel); } }
private void OnLevelUp(Obj_AI_Base sender, CustomEvents.Unit.OnLevelUpEventArgs args) { if (!sender.IsMe) { return; } ObjectManager.Player.Spellbook.LevelUpSpell(SpellSlot.R); }
private static void UnitOnOnLevelUp(Obj_AI_Base sender, CustomEvents.Unit.OnLevelUpEventArgs args) { if (!sender.IsValid || !sender.IsMe || _priority == null || TotalLeveled() == 0) { return; } for (int i = 0; i < args.RemainingPoints; i++) { if (args.NewLevel > 3) { if (ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Q).Level == 0 && args.NewLevel >= GetMinLevel(SpellSlot.Q)) { ObjectManager.Player.Spellbook.LevelUpSpell(SpellSlot.Q); } if (ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Level == 0 && args.NewLevel >= GetMinLevel(SpellSlot.W)) { ObjectManager.Player.Spellbook.LevelUpSpell(SpellSlot.W); } if (ObjectManager.Player.Spellbook.GetSpell(SpellSlot.E).Level == 0 && args.NewLevel >= GetMinLevel(SpellSlot.E)) { ObjectManager.Player.Spellbook.LevelUpSpell(SpellSlot.E); } } if (args.NewLevel >= 6 && ObjectManager.Player.Spellbook.GetSpell(SpellSlot.R).Level == 0 && args.NewLevel >= GetMinLevel(SpellSlot.R)) { ObjectManager.Player.Spellbook.LevelUpSpell(SpellSlot.R); } } StringList sl = _activate.GetValue <StringList>(); if (args.NewLevel >= Int32.Parse(sl.SList[sl.SelectedIndex])) { foreach (SpellSlot s in _priority) { for (int i = 0; i < args.RemainingPoints; i++) { if (((ObjectManager.Player.Spellbook.GetSpell(s).Level == 0 && args.NewLevel <= 3) || args.NewLevel > 3) && args.NewLevel >= GetMinLevel(s)) { ObjectManager.Player.Spellbook.LevelUpSpell(s); } } } } }
private void OnGameUpdate(EventArgs args) { int newLevel = ObjectManager.Player.Level; if (_level < newLevel) { CustomEvents.Unit.OnLevelUpEventArgs levelupArgs = new CustomEvents.Unit.OnLevelUpEventArgs { NewLevel = newLevel, RemainingPoints = newLevel - _level }; _level = newLevel; OnLevelUp(ObjectManager.Player, levelupArgs); } }
//Auto level up skill public static void Unit_OnLevelUp(Obj_AI_Base sender, CustomEvents.Unit.OnLevelUpEventArgs args) { if (!sender.IsMe || !Config.Item("Auto Level").GetValue <bool>()) { return; } if (Config.Item("Style").GetValue <StringList>().SelectedIndex == 0) { ObjectManager.Player.Spellbook.LevelUpSpell((SpellSlot)levelUpListPhoenix[args.NewLevel - 1]); } else { ObjectManager.Player.Spellbook.LevelUpSpell((SpellSlot)levelUpListTiger[args.NewLevel - 1]); } }
private static void Game_OnUpdate(EventArgs args) { int newLevel = ObjectManager.Player.Level; if (_level < newLevel) { var levelupArgs = new CustomEvents.Unit.OnLevelUpEventArgs { NewLevel = newLevel, RemainingPoints = newLevel - _level }; _level = newLevel; UnitOnOnLevelUp(ObjectManager.Player, levelupArgs); } }
public static void CustomEvents_Unit_OnLevelUp(Obj_AI_Base sender, CustomEvents.Unit.OnLevelUpEventArgs args) { if (sender.NetworkId != Player.NetworkId) { return; } if (!Config.Item("AutoLevelUp").GetValue <bool>()) { return; } Player.Spellbook.LevelUpSpell(SmiteSlot != SpellSlot.Unknown ? JunglerLevel[args.NewLevel - 1].Slot : TopLaneLevel[args.NewLevel - 1].Slot); }
private static void OnLevelUp(Obj_AI_Base sender, CustomEvents.Unit.OnLevelUpEventArgs args) { if (!sender.IsMe) { return; } var level = ObjectManager.Player.Level; level += 1; Game.PrintChat("LEVEL:"); Game.PrintChat(level.ToString()); if (level == 2) { ObjectManager.Player.Spellbook.LevelUpSpell(SpellSlot.Q); } else if (level == 3) { ObjectManager.Player.Spellbook.LevelUpSpell(SpellSlot.E); } else if (level == 4) { ObjectManager.Player.Spellbook.LevelUpSpell(SpellSlot.W); } else if (level == 5) { ObjectManager.Player.Spellbook.LevelUpSpell(SpellSlot.E); } else if (level == 6) { ObjectManager.Player.Spellbook.LevelUpSpell(SpellSlot.R); } else if (level == 7) { ObjectManager.Player.Spellbook.LevelUpSpell(SpellSlot.E); } else if (level == 8) { ObjectManager.Player.Spellbook.LevelUpSpell(SpellSlot.Q); } else if (level == 9) { ObjectManager.Player.Spellbook.LevelUpSpell(SpellSlot.E); } else if (level == 10) { ObjectManager.Player.Spellbook.LevelUpSpell(SpellSlot.Q); } else if (level == 11) { ObjectManager.Player.Spellbook.LevelUpSpell(SpellSlot.R); } else if (level == 12) { ObjectManager.Player.Spellbook.LevelUpSpell(SpellSlot.Q); } else if (level == 13) { ObjectManager.Player.Spellbook.LevelUpSpell(SpellSlot.Q); } else if (level == 14) { ObjectManager.Player.Spellbook.LevelUpSpell(SpellSlot.W); } else if (level == 15) { ObjectManager.Player.Spellbook.LevelUpSpell(SpellSlot.W); } else if (level == 16) { ObjectManager.Player.Spellbook.LevelUpSpell(SpellSlot.R); } else if (level == 17) { ObjectManager.Player.Spellbook.LevelUpSpell(SpellSlot.W); } else if (level == 18) { ObjectManager.Player.Spellbook.LevelUpSpell(SpellSlot.W); } }
private void OnUnitLevelUp(Obj_AI_Base sender, CustomEvents.Unit.OnLevelUpEventArgs args) { try { if (!sender.IsValid || !sender.IsMe) { return; } var availablePoints = args.RemainingPoints; var delay = Menu.Item(Menu.Name + "Delay").GetValue <Slider>().Value; var pLevel = _q.Level + _w.Level + _e.Level + GetRLevel() + 1; if (pLevel <= 5) { var index = Menu.Item(Menu.Name + "Early" + pLevel).GetValue <StringList>().SelectedIndex; switch (index) { case 0: return; case 1: break; case 2: if (_q.Level >= MaxSpellLevel(SpellSlot.Q, pLevel)) { break; } LevelUp(SpellSlot.Q, delay); return; case 3: if (_w.Level >= MaxSpellLevel(SpellSlot.W, pLevel)) { break; } LevelUp(SpellSlot.W, delay); return; case 4: if (_e.Level >= MaxSpellLevel(SpellSlot.E, pLevel)) { break; } LevelUp(SpellSlot.E, delay); return; } } foreach (var pItem in GetOrderedPriorityList()) { if (availablePoints <= 0) { return; } var pointsToLevelSlot = MaxSpellLevel(pItem.Slot, args.NewLevel) - ObjectManager.Player.Spellbook.GetSpell(pItem.Slot).Level; pointsToLevelSlot = pointsToLevelSlot > availablePoints ? availablePoints : pointsToLevelSlot; for (var i = 0; pointsToLevelSlot > i; i++) { LevelUp(pItem.Slot, delay); availablePoints--; } if (pItem.Slot == SpellSlot.R && Menu.Item(Menu.Name + "OnlyR").GetValue <bool>()) { return; } } } catch (Exception ex) { //Global.Logger.AddItem(new LogItem(ex)); } }
private void OnLevelUp(Obj_AI_Base sender, CustomEvents.Unit.OnLevelUpEventArgs args) { try { if (!Enabled) { return; } if (!sender.IsValid || !sender.IsMe) { return; } Utility.Map.MapType map = Utility.Map.GetMap()._MapType; var points = args.RemainingPoints; if ((map == Utility.Map.MapType.SummonersRift || map == Utility.Map.MapType.TwistedTreeline) && args.NewLevel <= 1) { return; } if ((map == Utility.Map.MapType.CrystalScar || map == Utility.Map.MapType.HowlingAbyss) && args.NewLevel <= 3) { return; } if (args.NewLevel == 6 || args.NewLevel == 11 || args.NewLevel == 16) { ObjectManager.Player.Spellbook.LevelUpSpell(SpellSlot.R); points--; } if (Menu.Item(Name + "OnlyR").GetValue <bool>()) { return; } var patternIndex = Menu.Item(Name + "PatternEarly").GetValue <StringList>().SelectedIndex; MenuInfo mf = null; switch (args.NewLevel) { case 2: switch (patternIndex) { case 0: case 1: mf = GetMenuInfoByPriority(2); break; case 2: case 3: mf = GetMenuInfoByPriority(1); break; } break; case 3: switch (patternIndex) { case 0: case 2: mf = GetMenuInfoByPriority(3); break; case 1: mf = GetMenuInfoByPriority(1); break; case 3: mf = GetMenuInfoByPriority(2); break; } break; case 4: switch (patternIndex) { case 0: mf = GetMenuInfoByPriority(1); break; } break; } if (mf != null && points > 0) { ObjectManager.Player.Spellbook.LevelUpSpell(mf.Slot); points--; } foreach (MenuInfo mi in GetOrderedList()) { if (points > 0) { ObjectManager.Player.Spellbook.LevelUpSpell(mi.Slot); points--; } } } catch (Exception ex) { Logger.WriteBlock(ex.Message, ex.ToString()); } }