public static void OnLevelUp(LeagueSharp.Obj_AI_Base sender, LeagueSharp.Common.CustomEvents.Unit.OnLevelUpEventArgs args) { if (sender.NetworkId == Yasuo.Player.NetworkId) { if (!Config.Item("autoLevel").GetValue <bool>()) { return; } if (Config.Item("levUpSeq").GetValue <StringList>().SelectedIndex == 0) { Yasuo.sBook.LevelUpSpell(Yasuo.levelUpSeq[args.NewLevel - 1].Slot); } else if (Config.Item("levUpSeq").GetValue <StringList>().SelectedIndex == 1) { Yasuo.sBook.LevelUpSpell(Yasuo.levelUpSeq2[args.NewLevel - 1].Slot); } } }
public static void Unit_OnLevelUp(LeagueSharp.Obj_AI_Base sender, LeagueSharp.Common.CustomEvents.Unit.OnLevelUpEventArgs args) { if (sender.IsMe) { if (!_config.Item("AutoLevel").GetValue <bool>()) { return; } if (_config.Item("Style").GetValue <StringList>().SelectedIndex == 0) { _player.Spellbook.LevelUpSpell(Tiger[args.NewLevel - 1].Slot); } else if (_config.Item("Style").GetValue <StringList>().SelectedIndex == 1) { _player.Spellbook.LevelUpSpell(Phoenix[args.NewLevel - 1].Slot); } } }
internal static void OnLevelUp(Obj_AI_Base sender, LeagueSharp.Common.CustomEvents.Unit.OnLevelUpEventArgs args) { if (sender.NetworkId == Yasuo.Player.NetworkId) { if (!extra["autoLevel"].Cast <CheckBox>().CurrentValue) { return; } if (extra["levUpSeq"].Cast <ComboBox>().CurrentValue == 0) { Yasuo.sBook.LevelUpSpell(Yasuo.levelUpSeq[args.NewLevel - 1].Slot); } else if (extra["levUpSeq"].Cast <ComboBox>().CurrentValue == 1) { Yasuo.sBook.LevelUpSpell(Yasuo.levelUpSeq2[args.NewLevel - 1].Slot); } } }
private static void OnLevelUp(LeagueSharp.Obj_AI_Base sender, LeagueSharp.Common.CustomEvents.Unit.OnLevelUpEventArgs args) { if (!sender.IsValid || !sender.IsMe) { return; } if (!_config.Item("AutoLevel").GetValue <bool>()) { return; } if (_config.Item("Style").GetValue <StringList>().SelectedIndex == 0) { _player.Spellbook.LevelUpSpell((SpellSlot)tristap[args.NewLevel - 1]); } else if (_config.Item("Style").GetValue <StringList>().SelectedIndex == 1) { _player.Spellbook.LevelUpSpell((SpellSlot)tristad[args.NewLevel - 1]); } }