public override void Withdraw(float amount) { int DebitFee = 250; base.Withdraw(amount + DebitFee); TS.Add(new TransactionInfo(amount + DebitFee, 0)); }
public TS GetSelectedSet <TD, TS>() where TS : BaseSet <TD, TS>, new() where TD : BaseDat <TD> { TS ret = new TS(); foreach (DataGridViewRow row in SelectedRows) { ret.Add((TD)row.DataBoundItem); } return(ret); }
public void Add(Team Team) { AllTeams.Add(Team); var TC = TeamClumps.Find(delegate(CompetingModels CM) { return(CM.CompetingModel == Team.ModelName); }); if (TC == null) { TeamClumps.Add(new CompetingModels() { CompetingModel = Team.ModelName }); } //FO IT SMALLER bool Added = false; if (Team.CM == null) { return; } foreach (var TS in Team.CM.TeamSets) { if (TS.First.Enabled && TS.Second.Enabled && TS.Third.Enabled) { continue; } //bool HasSameP = false; foreach (var T in TS.GetAsList()) { if (!T.Enabled) { continue; } if (!T.HasSameParticipant(Team)) { TS.Add(T); Added = true; //HasSameP = true; } } if (!Added) { Team.CM.TeamSets.Add(new TeamSet() { First = Team }); } } //GenerateTeamSets(); }
private static void Loading_OnLoadingComplete1(EventArgs args) { if (Player.Instance.Hero != Champion.Brand) { return; } MenuIni = MainMenu.AddMenu("Brand", "Brand"); TS = MenuIni.AddSubMenu("TargetSelector"); Auto = MenuIni.AddSubMenu("Auto"); Combo = MenuIni.AddSubMenu("Combo"); Harass = MenuIni.AddSubMenu("Harass"); LaneClear = MenuIni.AddSubMenu("LaneClear"); JungleClear = MenuIni.AddSubMenu("JungleClear"); KillSteal = MenuIni.AddSubMenu("KillSteal"); DrawMenu = MenuIni.AddSubMenu("Drawings"); TS.AddGroupLabel("Target Selector"); tsmode = TS.Add("tsmode", new ComboBox("TargetSelector", 0, "Custom TargetSelector", "Core TargetSelector")); tselect = TS.Add("select", new ComboBox("Focus Mode", 0, "Most Passive Stacks", "Less Cast Target", "Near Mouse")); if (tsmode.CurrentValue == 1) { tselect.IsVisible = false; } tsmode.OnValueChange += delegate { tselect.hide(tsmode); }; Auto.AddGroupLabel("Auto Settings"); Auto.Add("AutoR", new Slider("Auto R AoE hit [{0}] Targets or more", 2, 1, 6)); Auto.Add("Gap", new CheckBox("Anti GapCloser")); Auto.Add("Int", new CheckBox("Auto Interrupter")); Auto.Add("Danger", new ComboBox("Interrupter Danger Level", 1, "High", "Medium", "Low")); Auto.AddSeparator(0); Auto.AddGroupLabel("Auto Hit Passive"); Auto.Add("AutoQ", new CheckBox("Auto Q Dotnate Passive")); Auto.Add("AutoW", new CheckBox("Auto W Dotnate Passive", false)); Auto.Add("AutoE", new CheckBox("Auto E Dotnate Passive")); Auto.AddSeparator(0); Auto.AddGroupLabel("Anti GapCloser - Spells"); foreach (var enemy in EntityManager.Heroes.Enemies) { foreach (var gapspell in Gapcloser.GapCloserList.Where(e => e.ChampName == enemy.ChampionName)) { Auto.AddLabel(gapspell.ChampName); Auto.Add(gapspell.SpellName, new CheckBox(gapspell.SpellName + " - " + gapspell.SpellSlot)); } } Combo.AddGroupLabel("Combo Settings"); Combo.Add("Q", new CheckBox("Use Q")); Combo.AddLabel("Extra Q Settings"); Combo.Add("Qp", new CheckBox("Q Only for stun")); Combo.Add(Q.Slot + "Mana", new Slider("Use Q if Mana% is more than [{0}%]", 10)); Combo.AddSeparator(1); Combo.Add("W", new CheckBox("Use W")); Combo.AddLabel("Extra W Settings"); Combo.Add("Wp", new CheckBox("W Only if target has brand passive", false)); Combo.Add(W.Slot + "Mana", new Slider("Use W if Mana% is more than [{0}%]", 5)); Combo.AddSeparator(1); Combo.Add("E", new CheckBox("Use E")); Combo.AddLabel("Extra E Settings"); Combo.Add("Ep", new CheckBox("E Only if target has brand passive", false)); Combo.Add(E.Slot + "Mana", new Slider("Use E if Mana% is more than [{0}%]", 15)); Combo.AddSeparator(1); Combo.Add("RFinisher", new CheckBox("Use R Finisher")); Combo.Add("RAoe", new CheckBox("Use R Aoe")); Combo.Add("Rhit", new Slider("R AoE hit [{0}] Targets or more", 2, 1, 6)); Combo.Add(R.Slot + "Mana", new Slider("Use R if Mana% is more than [{0}%]")); Harass.AddGroupLabel("Harass"); Harass.Add("Q", new CheckBox("Use Q")); Harass.Add(Q.Slot + "Mana", new Slider("Use Q if Mana% is more than [{0}%]", 65)); Harass.AddSeparator(1); Harass.Add("W", new CheckBox("Use W")); Harass.Add(W.Slot + "Mana", new Slider("Use W if Mana% is more than [{0}%]", 65)); Harass.AddSeparator(1); Harass.Add("E", new CheckBox("Use E")); Harass.Add(E.Slot + "Mana", new Slider("Use E if Mana% is more than [{0}%]", 65)); LaneClear.AddGroupLabel("LaneClear"); LaneClear.Add("Q", new CheckBox("Use Q")); LaneClear.Add(Q.Slot + "Mana", new Slider("Use Q if Mana% is more than [{0}%]", 65)); LaneClear.AddSeparator(1); LaneClear.Add("W", new CheckBox("Use W")); LaneClear.Add(W.Slot + "Mana", new Slider("Use W if Mana% is more than [{0}%]", 65)); LaneClear.AddSeparator(1); LaneClear.Add("E", new CheckBox("Use E")); LaneClear.Add(E.Slot + "Mana", new Slider("Use E if Mana% is more than [{0}%]", 65)); JungleClear.AddGroupLabel("JungleClear"); JungleClear.Add("Q", new CheckBox("Use Q")); JungleClear.Add(Q.Slot + "Mana", new Slider("Use Q if Mana% is more than [{0}%]", 65)); JungleClear.AddSeparator(1); JungleClear.Add("W", new CheckBox("Use W")); JungleClear.Add(W.Slot + "Mana", new Slider("Use W if Mana% is more than [{0}%]", 65)); JungleClear.AddSeparator(1); JungleClear.Add("E", new CheckBox("Use E")); JungleClear.Add(E.Slot + "Mana", new Slider("Use E if Mana% is more than [{0}%]", 65)); KillSteal.AddGroupLabel("KillSteal"); KillSteal.Add("Q", new CheckBox("Use Q")); KillSteal.Add("W", new CheckBox("Use W")); KillSteal.Add("E", new CheckBox("Use E")); KillSteal.Add("R", new CheckBox("Use R", false)); DrawMenu.AddGroupLabel("Drawings"); DrawMenu.Add("damage", new CheckBox("Draw Combo Damage")); DrawMenu.AddLabel("Draws = ComboDamage / Enemy Current Health"); DrawMenu.AddSeparator(1); DrawMenu.Add("Q", new CheckBox("Draw Q Range")); DrawMenu.Add(Q.Name, new ComboBox("Q Color", 0, "Chartreuse", "BlueViolet", "Aqua", "Purple", "White", "Orange", "Green")); DrawMenu.AddSeparator(1); DrawMenu.Add("W", new CheckBox("Draw W Range")); DrawMenu.Add(W.Name, new ComboBox("W Color", 0, "Chartreuse", "BlueViolet", "Aqua", "Purple", "White", "Orange", "Green")); DrawMenu.AddSeparator(1); DrawMenu.Add("E", new CheckBox("Draw E Range")); DrawMenu.Add(E.Name, new ComboBox("E Color", 0, "Chartreuse", "BlueViolet", "Aqua", "Purple", "White", "Orange", "Green")); DrawMenu.AddSeparator(1); DrawMenu.Add("R", new CheckBox("Draw R Range")); DrawMenu.Add(R.Name, new ComboBox("R Color", 0, "Chartreuse", "BlueViolet", "ChartAquareuse", "Purple", "White", "Orange", "Green")); DrawMenu.AddSeparator(1); Game.OnTick += Game_OnTick; Drawing.OnDraw += Drawing_OnDraw; Gapcloser.OnGapcloser += Gapcloser_OnGapcloser; Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell; Orbwalker.OnUnkillableMinion += Orbwalker_OnUnkillableMinion; }
public override void Deposit(float amount) { base.Deposit(amount); TS.Add(new TransactionInfo(0, amount)); }
private static void Loading_OnLoadingComplete1(EventArgs args) { if (Player.Instance.Hero != Champion.Brand) { return; } MenuIni = MainMenu.AddMenu("CH汉化-火男", "Brand"); TS = MenuIni.AddSubMenu("目标选择器"); Auto = MenuIni.AddSubMenu("自动化"); Combo = MenuIni.AddSubMenu("连招"); Harass = MenuIni.AddSubMenu("骚扰"); LaneClear = MenuIni.AddSubMenu("清线"); JungleClear = MenuIni.AddSubMenu("清野"); KillSteal = MenuIni.AddSubMenu("抢头"); DrawMenu = MenuIni.AddSubMenu("线圈"); TS.AddGroupLabel("目标选择器"); tsmode = TS.Add("tsmode", new ComboBox("目标选择模式", 0, "自定义选择", "库自定义选择")); tselect = TS.Add("select", new ComboBox("集火模式", 0, "最多被动叠加目标", "最少技能可击杀目标", "鼠标附近目标")); if (tsmode.CurrentValue == 1) { tselect.IsVisible = false; } tsmode.OnValueChange += delegate { tselect.hide(tsmode); }; Auto.AddGroupLabel("自动化设置"); Auto.Add("AutoR", new Slider("自动 R 如果能命中 [{0}] 个目标/以上", 2, 1, 6)); Auto.Add("Gap", new CheckBox("自动防突进")); Auto.Add("Int", new CheckBox("自动技能打断")); Auto.Add("Danger", new ComboBox("技能危险等级", 1, "高", "中", "低")); Auto.AddSeparator(0); Auto.AddGroupLabel("自动被动"); Auto.Add("AutoQ", new CheckBox("自动 Q 被动")); Auto.Add("AutoW", new CheckBox("自动 W 被动", false)); Auto.Add("AutoE", new CheckBox("自动 E 被动")); Auto.AddSeparator(0); Auto.AddGroupLabel("防突进 - 技能"); foreach (var enemy in EntityManager.Heroes.Enemies) { foreach (var gapspell in Gapcloser.GapCloserList.Where(e => e.ChampName == enemy.ChampionName)) { Auto.AddLabel(gapspell.ChampName); Auto.Add(gapspell.SpellName, new CheckBox(gapspell.SpellName + " - " + gapspell.SpellSlot)); } } Combo.AddGroupLabel("连招设置"); Combo.Add("Q", new CheckBox("使用 Q")); Combo.AddLabel("额外 Q 设置"); Combo.Add("Qp", new CheckBox("只用Q晕眩")); Combo.Add(Q.Slot + "Mana", new Slider("蓝量高于 [{0}%] 使用 Q", 10)); Combo.AddSeparator(1); Combo.Add("W", new CheckBox("使用 W")); Combo.AddLabel("额外 W 设置"); Combo.Add("Wp", new CheckBox("只用W 当目标有被动", false)); Combo.Add(W.Slot + "Mana", new Slider("蓝量高于 [{0}%] 使用 W", 5)); Combo.AddSeparator(1); Combo.Add("E", new CheckBox("使用 E")); Combo.AddLabel("额外 E 设置"); Combo.Add("Ep", new CheckBox("只用E 当目标有被动", false)); Combo.Add(E.Slot + "Mana", new Slider("蓝量高于 [{0}%] 使用 E", 15)); Combo.AddSeparator(1); Combo.Add("RFinisher", new CheckBox("使用 R 结束连招/尾头")); Combo.Add("RAoe", new CheckBox("使用 R 范围伤害")); Combo.Add("Rhit", new Slider("R 范围命中 [{0}] 个目标", 2, 1, 6)); Combo.Add(R.Slot + "Mana", new Slider("蓝量高于 [{0}%] 使用 R")); Harass.AddGroupLabel("骚扰"); Harass.Add("Q", new CheckBox("使用 Q")); Harass.Add(Q.Slot + "Mana", new Slider("蓝量高于 [{0}%] 使用 Q", 65)); Harass.AddSeparator(1); Harass.Add("W", new CheckBox("使用 W")); Harass.Add(W.Slot + "Mana", new Slider("蓝量高于 [{0}%] 使用 W", 65)); Harass.AddSeparator(1); Harass.Add("E", new CheckBox("使用 E")); Harass.Add(E.Slot + "Mana", new Slider("蓝量高于 [{0}%] 使用 E", 65)); LaneClear.AddGroupLabel("清线"); LaneClear.Add("Q", new CheckBox("使用 Q")); LaneClear.Add(Q.Slot + "Mana", new Slider("蓝量高于 [{0}%] 使用 Q", 65)); LaneClear.AddSeparator(1); LaneClear.Add("W", new CheckBox("使用 W")); LaneClear.Add(W.Slot + "Mana", new Slider("蓝量高于 [{0}%] 使用 W", 65)); LaneClear.AddSeparator(1); LaneClear.Add("E", new CheckBox("使用 E")); LaneClear.Add(E.Slot + "Mana", new Slider("蓝量高于 [{0}%] 使用 E", 65)); JungleClear.AddGroupLabel("清野"); JungleClear.Add("Q", new CheckBox("使用 Q")); JungleClear.Add(Q.Slot + "Mana", new Slider("蓝量高于 [{0}%] 使用 Q", 65)); JungleClear.AddSeparator(1); JungleClear.Add("W", new CheckBox("使用 W")); JungleClear.Add(W.Slot + "Mana", new Slider("蓝量高于 [{0}%] 使用 W", 65)); JungleClear.AddSeparator(1); JungleClear.Add("E", new CheckBox("使用 E")); JungleClear.Add(E.Slot + "Mana", new Slider("蓝量高于 [{0}%] 使用 E", 65)); KillSteal.AddGroupLabel("抢头"); KillSteal.Add("Q", new CheckBox("使用 Q")); KillSteal.Add("W", new CheckBox("使用 W")); KillSteal.Add("E", new CheckBox("使用 E")); KillSteal.Add("R", new CheckBox("使用 R", false)); DrawMenu.AddGroupLabel("线圈"); DrawMenu.Add("damage", new CheckBox("显示连招伤害")); DrawMenu.AddLabel("显示 = 连招伤害 / 敌人当前血量"); DrawMenu.AddSeparator(1); DrawMenu.Add("Q", new CheckBox("显示 Q 范围")); DrawMenu.Add(Q.Name, new ComboBox("Q 颜色", 0, "Chartreuse", "BlueViolet", "Aqua", "Purple", "White", "Orange", "Green")); DrawMenu.AddSeparator(1); DrawMenu.Add("W", new CheckBox("显示 W 范围")); DrawMenu.Add(W.Name, new ComboBox("W 颜色", 0, "Chartreuse", "BlueViolet", "Aqua", "Purple", "White", "Orange", "Green")); DrawMenu.AddSeparator(1); DrawMenu.Add("E", new CheckBox("显示 E 范围")); DrawMenu.Add(E.Name, new ComboBox("E 颜色", 0, "Chartreuse", "BlueViolet", "Aqua", "Purple", "White", "Orange", "Green")); DrawMenu.AddSeparator(1); DrawMenu.Add("R", new CheckBox("显示 R 范围")); DrawMenu.Add(R.Name, new ComboBox("R 颜色", 0, "Chartreuse", "BlueViolet", "ChartAquareuse", "Purple", "White", "Orange", "Green")); DrawMenu.AddSeparator(1); Game.OnTick += Game_OnTick; Drawing.OnDraw += Drawing_OnDraw; Gapcloser.OnGapcloser += Gapcloser_OnGapcloser; Interrupter.OnInterruptableSpell += Interrupter_OnInterruptableSpell; Orbwalker.OnUnkillableMinion += Orbwalker_OnUnkillableMinion; }