public void Reset(Control host) { H1.Reset(host); H2.Reset(host); H3.Reset(host); H4.Reset(host); H5.Reset(host); H6.Reset(host); BlockQuote.Reset(host); P.Reset(host); FigCaption.Reset(host); Pre.Reset(host); Dt.Reset(host); Dd.Reset(host); Li.Reset(host); A.Reset(host); Span.Reset(host); Label.Reset(host); Q.Reset(host); Cite.Reset(host); I.Reset(host); Em.Reset(host); Mark.Reset(host); Time.Reset(host); Code.Reset(host); Strong.Reset(host); }
private static void Flee() { Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPos); if (!Ismelee()) { R.Cast(); } if (Ismelee()) { var min = ObjectManager.Get <Obj_AI_Minion>() .Where(x => x.Distance(Player) < 300 && !x.IsDead && x.IsEnemy).ToList(); foreach (var minions in min) { if (E.IsReady() && Q.IsReady()) { Em.Cast(minions); } if (!E.IsReady()) { Qm.Cast(minions); } } } }
//Updates emitter public static void Update() { foreach (EmitterBox Em in mEmitterList) { Em.CheckEM(); } }
public static void Update() { //Updates the emitters foreach (Emitter Em in mEmitterList) { Em.CheckForEmission(); } }
public void Merge(params DocumentStyle[] styles) { if (styles != null) { foreach (var style in styles) { Section.Merge(style.Section); Article.Merge(style.Article); Header.Merge(style.Header); Footer.Merge(style.Footer); Main.Merge(style.Main); Figure.Merge(style.Figure); Details.Merge(style.Details); Summary.Merge(style.Summary); Div.Merge(style.Div); Ul.Merge(style.Ul); Ol.Merge(style.Ol); Dl.Merge(style.Dl); Td.Merge(style.Td); Table.Merge(style.Table); Img.Merge(style.Img); YouTube.Merge(style.YouTube); Channel9.Merge(style.Channel9); H1.Merge(style.H1); H2.Merge(style.H2); H3.Merge(style.H3); H4.Merge(style.H4); H5.Merge(style.H5); H6.Merge(style.H6); BlockQuote.Merge(style.BlockQuote); P.Merge(style.P); FigCaption.Merge(style.FigCaption); Pre.Merge(style.Pre); Dt.Merge(style.Dt); Dd.Merge(style.Dd); Li.Merge(style.Li); A.Merge(style.A); Span.Merge(style.Span); Label.Merge(style.Label); Q.Merge(style.Q); Cite.Merge(style.Cite); I.Merge(style.I); Em.Merge(style.Em); Mark.Merge(style.Mark); Time.Merge(style.Time); Code.Merge(style.Code); Strong.Merge(style.Strong); } } }
public async Task Emojify([Remainder] string rem) { rem = rem.ToLower(); string estring = string.Empty; foreach (char character in rem) { estring += $"{Em.GetEmoji(character.ToString())} "; } await ReplyAsync(estring); }
private static void Combomelee() { // if (Player.IsWindingUp) return; var target = TargetSelector.GetTarget(Qm.Range, TargetSelector.DamageType.Physical); if (target == null) { return; } if (Player.Distance(target) < Orbwalking.GetRealAutoAttackRange(target)) { if (Wm.IsReady()) { Wm.Cast(); } } if (Player.Distance(target) < 300) { if (Qm.IsReady() && !Em.IsReady() && GetBool("useqcm", typeof(bool))) { Qm.Cast(target); } if (Em.IsReady() && GetBool("useecm", typeof(bool))) { var aarange = Orbwalking.GetRealAutoAttackRange(target); if (((!Q.IsReady() || (SpellTimer["Qm"] > 1.3f) && !E.IsReady()) || Player.Distance(target) < aarange + 150)) { Em.Cast(target); } if (target.Health < EMeleeDamage(target) + 200) { Em.Cast(target); } } } else { if (Ready("Q") || Ready("W") && Em.IsReady() && GetBool("useecm", typeof(bool))) { Em.Cast(target); } if (Qm.IsReady() && GetBool("useqcm", typeof(bool))) { Qm.Cast(target); } } }
protected void btnSave_Click(object sender, EventArgs e) { Employee employee = new Employee { Em EmployeeName = txtName.Text, Location = txtLocation.Text, DateOfJoin = DateTime.Parse(txtDateOfJoin.Text) }; Obj.Insert(employee); } }
private static void Laneclearmelee() { if (getSliderItem(MenuConfig.laneclear, "minmana") > Player.ManaPercent) { return; } if (!Ismelee()) { return; } var min = ObjectManager.Get <Obj_AI_Minion>() .Where(x => x.LSDistance(Player) < 300 && !x.IsDead && x.IsEnemy).ToList(); if (min.FirstOrDefault() == null) { minionscirclemelee = null; return; } foreach (var minions in min) { minionscirclemelee = new LeagueSharp.Common.Geometry.Polygon.Circle(minions.Position, 300); if (E.IsReady() && getCheckBoxItem(MenuConfig.laneclear, "useelm")) { if (minions.Health < EMeleeDamage(minions)) { Em.Cast(minions); } } } var count = min.Where(x => minionscirclemelee.IsInside(x)); var objAiMinions = count as IList <Obj_AI_Minion> ?? count.ToList(); if (objAiMinions.Count() >= getSliderItem(MenuConfig.laneclear, "minhitwq")) { if (W.IsReady() && getCheckBoxItem(MenuConfig.laneclear, "usewlm")) { W.Cast(); } if (Q.IsReady() && getCheckBoxItem(MenuConfig.laneclear, "useqlm")) { Qm.Cast(objAiMinions.FirstOrDefault()); } } }
private static void Laneclearmelee() { if (GetValue("minmana") > Player.ManaPercent) { return; } if (!Ismelee()) { return; } var min = ObjectManager.Get <Obj_AI_Minion>() .Where(x => x.Distance(Player) < 300 && !x.IsDead && x.IsEnemy).ToList(); if (min.FirstOrDefault() == null) { minionscirclemelee = null; return; } foreach (var minions in min) { minionscirclemelee = new Geometry.Polygon.Circle(minions.Position, 300); if (E.IsReady() && GetBool("useelm", typeof(bool))) { if (minions.Health < EMeleeDamage(minions)) { Em.Cast(minions); } } } var count = min.Where(x => minionscirclemelee.IsInside(x)); var objAiMinions = count as IList <Obj_AI_Minion> ?? count.ToList(); if (objAiMinions.Count() >= GetValue("minhitwq")) { if (W.IsReady() && GetBool("usewlm", typeof(bool))) { W.Cast(); } if (Q.IsReady() && GetBool("useqlm", typeof(bool))) { Qm.Cast(objAiMinions.FirstOrDefault()); } } }
private static void OnGapClose(ActiveGapcloser gapcloser) { if (!GetBool("autoegap", typeof(bool))) { return; } if (gapcloser.Sender.IsMe || gapcloser.Sender.IsAlly) { return; } if (!Ismelee() && R.IsReady()) { R.Cast(); } if (gapcloser.End.Distance(Player.Position) < Em.Range && Ismelee()) { Em.Cast(gapcloser.Sender); } }
private static void OnDash(Obj_AI_Base sender, Dash.DashItem args) { if (!GetBool("autoedash", typeof(bool))) { return; } if (sender.IsMe || sender.IsAlly) { return; } if (args.Unit == null) { return; } if (Ismelee() && R.IsReady()) { Em.Cast(args.Unit); } }
private static void OnDash(Obj_AI_Base sender, Dash.DashItem args) { if (!getCheckBoxItem(MenuConfig.misc, "autoedash")) { return; } if (sender.IsMe || sender.IsAlly) { return; } if (args.Unit == null) { return; } if (Ismelee() && R.IsReady()) { Em.Cast(args.Unit); } }
private static void OnGapClose(ActiveGapcloser gapcloser) { if (!getCheckBoxItem(MenuConfig.misc, "autoegap")) { return; } if (gapcloser.Sender.IsMe || gapcloser.Sender.IsAlly) { return; } if (!Ismelee() && R.IsReady()) { R.Cast(); } if (gapcloser.End.LSDistance(Player.Position) < Em.Range && Ismelee()) { Em.Cast(gapcloser.Sender); } }
private static void OnInterrupt(Obj_AI_Hero sender, Interrupter2.InterruptableTargetEventArgs args) { if (!GetBool("autoeint", typeof(bool))) { return; } if (sender.IsMe || sender.IsAlly) { return; } if (sender.Distance(Player) <= Em.Range) { if (!Ismelee()) { R.Cast(); } if (Ismelee()) { Em.Cast(sender); } } }
private static void OnInterrupt(AIHeroClient sender, Interrupter2.InterruptableTargetEventArgs args) { if (!getCheckBoxItem(MenuConfig.misc, "autoeint")) { return; } if (sender.IsMe || sender.IsAlly) { return; } if (sender.LSDistance(Player) <= Em.Range) { if (!Ismelee()) { R.Cast(); } if (Ismelee()) { Em.Cast(sender); } } }
public async Task <IApiResult <string> > Hello(string name, int count, Guid guid, byte[] file, long id = -1, Em em = Em.Test) { var test3 = DependencyHelper.GetService <TestObject>(); var test2 = DependencyHelper.GetService <ITest>(nameof(TestObject)); var ctx = context = GlobalContext.Current; await Debug(1, context, context); ScopeRuner.RunScope("Hello2", Hello2); await Debug(1, ctx, GlobalContext.Current); if (DateTime.Now.Ticks % 13 == 11) { Logger.Exception(new Exception("故意的")); } if (DateTime.Now.Ticks % 23 == 19) { Logger.Error("故意的"); } if (DateTime.Now.Ticks % 67 == 57) { Logger.Log(LogLevel.Critical, "故意的"); } return(ApiResultHelper.Helper.Succees($"name:{name} count:{count} guid:{guid} file:{file} id:{id} em:{em}")); }
protected void btn_UrlSırala_Click(object sender, EventArgs e) { TextBox1.Text = ""; TextBox2.Text = ""; //Virgüle kadar ayırıyoruz. string[] url_kumesi = UrlText.Text.Split(','); //Textboxlara girilen verileri listeye attık. for (int i = 0; i < url_kumesi.Count(); i++) { url_list.Add(url_kumesi[i]); } string[] kelime_kumesi = KelimeText.Text.Split(','); for (int i = 0; i < kelime_kumesi.Count(); i++) { kelime_list.Add(kelime_kumesi[i]); } #region tanımlamalar Title title = new Title(); ahref a = new ahref(); List <int> list = new List <int>(); UrlPuan url_puan = new UrlPuan(); List <string> Result = new List <string>(); List <double> title_Puan = new List <double>(); List <double> ahref_Puan = new List <double>(); List <double> h1_Puan = new List <double>(); List <double> h2_Puan = new List <double>(); List <double> h3_Puan = new List <double>(); List <double> h4_Puan = new List <double>(); List <double> h5_Puan = new List <double>(); List <double> h6_Puan = new List <double>(); List <double> big_Puan = new List <double>(); List <double> bold_Puan = new List <double>(); List <double> em_Puan = new List <double>(); List <double> head_Puan = new List <double>(); List <double> label_Puan = new List <double>(); List <double> li_Puan = new List <double>(); List <double> link_Puan = new List <double>(); List <double> option_Puan = new List <double>(); List <double> p_Puan = new List <double>(); List <double> span_Puan = new List <double>(); List <double> strong_Puan = new List <double>(); List <double> th_Puan = new List <double>(); double[] toplamPuan = new double[kelime_list.Count]; ahref ahref = new ahref(); h1 h1 = new h1(); h2 h2 = new h2(); h3 h3 = new h3(); h4 h4 = new h4(); h5 h5 = new h5(); h6 h6 = new h6(); Head head = new Head(); LabelHtml labelHtml = new LabelHtml(); Link link = new Link(); Span span = new Span(); Strong strong = new Strong(); Bold bold = new Bold(); Em em = new Em(); Li li = new Li(); Option option = new Option(); Th th = new Th(); LabelHtml labelhtml = new LabelHtml(); Htmlİslemleri Cek_veri = new Htmlİslemleri(); string htmlstring; List <int> kelimeSayilari = new List <int>(); int KeyCount = 0; List <double> standartSapmaListesi = new List <double>(); double standartSapma; List <double> URLpuan = new List <double>(); double tekUrlPuan = 0; #endregion //Her url için html çekme ve puanlama işlemini yapıyoruz for (int j = 0; j < url_list.Count; j++) { htmlstring = Cek_veri.GetVeri(url_list[j]); HtmlAgilityPack.HtmlDocument htmldoc = new HtmlAgilityPack.HtmlDocument(); htmldoc.LoadHtml(htmlstring); #region etiketPuanlama title_Puan = title.sıralamaPuan(url_list, kelime_list, Cek_veri, title.etiket, title.puan, htmldoc); ahref_Puan = ahref.sıralamaPuan(url_list, kelime_list, Cek_veri, ahref.etiket, ahref.puan, htmldoc); h1_Puan = h1.sıralamaPuan(url_list, kelime_list, Cek_veri, h1.etiket, h1.puan, htmldoc); h2_Puan = h2.sıralamaPuan(url_list, kelime_list, Cek_veri, h2.etiket, h2.puan, htmldoc); h3_Puan = h3.sıralamaPuan(url_list, kelime_list, Cek_veri, h3.etiket, h3.puan, htmldoc); h4_Puan = h4.sıralamaPuan(url_list, kelime_list, Cek_veri, h4.etiket, h4.puan, htmldoc); h5_Puan = h5.sıralamaPuan(url_list, kelime_list, Cek_veri, h5.etiket, h5.puan, htmldoc); h6_Puan = h6.sıralamaPuan(url_list, kelime_list, Cek_veri, h6.etiket, h6.puan, htmldoc); strong_Puan = strong.sıralamaPuan(url_list, kelime_list, Cek_veri, strong.etiket, strong.puan, htmldoc); bold_Puan = bold.sıralamaPuan(url_list, kelime_list, Cek_veri, bold.etiket, bold.puan, htmldoc); em_Puan = em.sıralamaPuan(url_list, kelime_list, Cek_veri, em.etiket, em.puan, htmldoc); head_Puan = head.sıralamaPuan(url_list, kelime_list, Cek_veri, head.etiket, head.puan, htmldoc); label_Puan = labelhtml.sıralamaPuan(url_list, kelime_list, Cek_veri, labelhtml.etiket, labelhtml.puan, htmldoc); li_Puan = li.sıralamaPuan(url_list, kelime_list, Cek_veri, li.etiket, li.puan, htmldoc); link_Puan = link.sıralamaPuan(url_list, kelime_list, Cek_veri, link.etiket, link.puan, htmldoc); option_Puan = option.sıralamaPuan(url_list, kelime_list, Cek_veri, option.etiket, option.puan, htmldoc); span_Puan = span.sıralamaPuan(url_list, kelime_list, Cek_veri, span.etiket, span.puan, htmldoc); th_Puan = th.sıralamaPuan(url_list, kelime_list, Cek_veri, th.etiket, th.puan, htmldoc); #endregion tekUrlPuan = 0; for (int i = 0; i < kelime_list.Count; i++) { KeyCount = Cek_veri.FindWord(htmlstring, kelime_list[i]); if (kelimeSayilari.Count == kelime_list.Count) { kelimeSayilari.Clear(); } kelimeSayilari.Add(KeyCount); if (i == kelime_list.Count - 1) { standartSapma = 0; standartSapma = standart(kelimeSayilari); standartSapmaListesi.Add(standartSapma); } #region uzunifkontrolu toplamPuan[i] = 0; if (ahref_Puan.Count != 0) { toplamPuan[i] = toplamPuan[i] + ahref_Puan[i]; } if (title_Puan.Count != 0) { toplamPuan[i] = toplamPuan[i] + title_Puan[i]; } if (h1_Puan.Count != 0) { toplamPuan[i] = toplamPuan[i] + h1_Puan[i]; } if (h2_Puan.Count != 0) { toplamPuan[i] = toplamPuan[i] + h2_Puan[i]; } if (h3_Puan.Count != 0) { toplamPuan[i] = toplamPuan[i] + h3_Puan[i]; } if (h4_Puan.Count != 0) { toplamPuan[i] = toplamPuan[i] + h4_Puan[i]; } if (h5_Puan.Count != 0) { toplamPuan[i] = toplamPuan[i] + h5_Puan[i]; } if (h6_Puan.Count != 0) { toplamPuan[i] = toplamPuan[i] + h6_Puan[i]; } if (strong_Puan.Count != 0) { toplamPuan[i] = toplamPuan[i] + strong_Puan[i]; } if (bold_Puan.Count != 0) { toplamPuan[i] = toplamPuan[i] + bold_Puan[i]; } if (head_Puan.Count != 0) { toplamPuan[i] = toplamPuan[i] + head_Puan[i]; } if (label_Puan.Count != 0) { toplamPuan[i] = toplamPuan[i] + label_Puan[i]; } if (li_Puan.Count != 0) { toplamPuan[i] = toplamPuan[i] + li_Puan[i]; } if (link_Puan.Count != 0) { toplamPuan[i] = toplamPuan[i] + link_Puan[i]; } if (option_Puan.Count != 0) { toplamPuan[i] = toplamPuan[i] + option_Puan[i]; } if (span_Puan.Count != 0) { toplamPuan[i] = toplamPuan[i] + span_Puan[i]; } if (th_Puan.Count != 0) { toplamPuan[i] = toplamPuan[i] + th_Puan[i]; } #endregion //2 kelime için puanı toplanıcak tekUrlPuan = tekUrlPuan + toplamPuan[i]; } if (kelime_list.Count == 1) { URLpuan.Add(tekUrlPuan); } else { URLpuan.Add(tekUrlPuan / standartSapmaListesi[j]); } Result.Add(url_list[j]); Result.Add("puan: " + URLpuan[j].ToString()); for (int i = 0; i < kelime_list.Count; i++) { Result.Add(kelime_list[i] + ":" + kelimeSayilari[i].ToString()); } } double d = kelimeSayilari.Count / kelime_list.Count; for (int c = 0; c < Result.Count; c++) { TextBox1.Text = TextBox1.Text + Result[c] + Environment.NewLine; } #region sıralama List <string> sonuc = new List <string>(); sonuc.Add("Sıralanmış Hali:"); for (int i = 0; i < url_list.Count; i++) { for (int j = 1; j < url_list.Count - i; j++) { if (URLpuan[j] < URLpuan[j - 1]) { double gecici = URLpuan[j - 1]; URLpuan[j - 1] = URLpuan[j]; URLpuan[j] = gecici; string geciciURL = url_list[j - 1]; url_list[j - 1] = url_list[j]; url_list[j] = geciciURL; } } } url_list.Reverse(); URLpuan.Reverse(); for (int i = 0; i < url_list.Count; i++) { sonuc.Add(url_list[i]); sonuc.Add("puan: " + URLpuan[i].ToString()); } for (int c = 0; c < sonuc.Count; c++) { TextBox2.Text = TextBox2.Text + sonuc[c] + Environment.NewLine; } # endregion }
public List <double> puanHesapla(List <string> url_list) { #region tanımlamalar Title title = new Title(); ahref a = new ahref(); List <int> list = new List <int>(); UrlPuan url_puan = new UrlPuan(); List <double> title_Puan = new List <double>(); List <double> ahref_Puan = new List <double>(); List <double> h1_Puan = new List <double>(); List <double> h2_Puan = new List <double>(); List <double> h3_Puan = new List <double>(); List <double> h4_Puan = new List <double>(); List <double> h5_Puan = new List <double>(); List <double> h6_Puan = new List <double>(); List <double> big_Puan = new List <double>(); List <double> bold_Puan = new List <double>(); List <double> em_Puan = new List <double>(); List <double> head_Puan = new List <double>(); List <double> label_Puan = new List <double>(); List <double> li_Puan = new List <double>(); List <double> link_Puan = new List <double>(); List <double> option_Puan = new List <double>(); List <double> p_Puan = new List <double>(); List <double> span_Puan = new List <double>(); List <double> strong_Puan = new List <double>(); List <double> th_Puan = new List <double>(); // List<double> toplamPuan = new List<double>(); double[] toplamPuan = new double[kelime_list.Count]; ahref ahref = new ahref(); h1 h1 = new h1(); h2 h2 = new h2(); h3 h3 = new h3(); h4 h4 = new h4(); h5 h5 = new h5(); h6 h6 = new h6(); Head head = new Head(); LabelHtml labelHtml = new LabelHtml(); Link link = new Link(); Span span = new Span(); Strong strong = new Strong(); Bold bold = new Bold(); Em em = new Em(); Li li = new Li(); Option option = new Option(); Th th = new Th(); LabelHtml labelhtml = new LabelHtml(); Htmlİslemleri Cek_veri = new Htmlİslemleri(); string htmlstring; List <int> kelimeSayilari = new List <int>(); int KeyCount = 0; List <double> standartSapmaListesi = new List <double>(); double standartSapma; List <double> URLpuan = new List <double>(); double tekUrlPuan = 0; #endregion for (int j = 0; j < url_list.Count; j++) { htmlstring = Cek_veri.GetVeri(url_list[j]); HtmlAgilityPack.HtmlDocument htmldoc = new HtmlAgilityPack.HtmlDocument(); htmldoc.LoadHtml(htmlstring); #region etiketPuanlama title_Puan = title.sıralamaPuan(url_list, kelime_list, Cek_veri, title.etiket, title.puan, htmldoc); ahref_Puan = ahref.sıralamaPuan(url_list, kelime_list, Cek_veri, ahref.etiket, ahref.puan, htmldoc); h1_Puan = h1.sıralamaPuan(url_list, kelime_list, Cek_veri, h1.etiket, h1.puan, htmldoc); h2_Puan = h2.sıralamaPuan(url_list, kelime_list, Cek_veri, h2.etiket, h2.puan, htmldoc); h3_Puan = h3.sıralamaPuan(url_list, kelime_list, Cek_veri, h3.etiket, h3.puan, htmldoc); h4_Puan = h4.sıralamaPuan(url_list, kelime_list, Cek_veri, h4.etiket, h4.puan, htmldoc); h5_Puan = h5.sıralamaPuan(url_list, kelime_list, Cek_veri, h5.etiket, h5.puan, htmldoc); h6_Puan = h6.sıralamaPuan(url_list, kelime_list, Cek_veri, h6.etiket, h6.puan, htmldoc); strong_Puan = strong.sıralamaPuan(url_list, kelime_list, Cek_veri, strong.etiket, strong.puan, htmldoc); bold_Puan = bold.sıralamaPuan(url_list, kelime_list, Cek_veri, bold.etiket, bold.puan, htmldoc); em_Puan = em.sıralamaPuan(url_list, kelime_list, Cek_veri, em.etiket, em.puan, htmldoc); head_Puan = head.sıralamaPuan(url_list, kelime_list, Cek_veri, head.etiket, head.puan, htmldoc); label_Puan = labelhtml.sıralamaPuan(url_list, kelime_list, Cek_veri, labelhtml.etiket, labelhtml.puan, htmldoc); li_Puan = li.sıralamaPuan(url_list, kelime_list, Cek_veri, li.etiket, li.puan, htmldoc); link_Puan = link.sıralamaPuan(url_list, kelime_list, Cek_veri, link.etiket, link.puan, htmldoc); option_Puan = option.sıralamaPuan(url_list, kelime_list, Cek_veri, option.etiket, option.puan, htmldoc); span_Puan = span.sıralamaPuan(url_list, kelime_list, Cek_veri, span.etiket, span.puan, htmldoc); th_Puan = th.sıralamaPuan(url_list, kelime_list, Cek_veri, th.etiket, th.puan, htmldoc); #endregion tekUrlPuan = 0; for (int i = 0; i < kelime_list.Count; i++) { KeyCount = Cek_veri.FindWord(htmlstring, kelime_list[i]); if (kelimeSayilari.Count == kelime_list.Count) { kelimeSayilari.Clear(); } kelimeSayilari.Add(KeyCount); if (i == kelime_list.Count - 1) { standartSapma = 0; standartSapma = standart(kelimeSayilari); standartSapmaListesi.Add(standartSapma); } #region uzunifkontrolu toplamPuan[i] = 0; if (ahref_Puan.Count != 0) { toplamPuan[i] = toplamPuan[i] + ahref_Puan[i]; } if (title_Puan.Count != 0) { toplamPuan[i] = toplamPuan[i] + title_Puan[i]; } if (h1_Puan.Count != 0) { toplamPuan[i] = toplamPuan[i] + h1_Puan[i]; } if (h2_Puan.Count != 0) { toplamPuan[i] = toplamPuan[i] + h2_Puan[i]; } if (h3_Puan.Count != 0) { toplamPuan[i] = toplamPuan[i] + h3_Puan[i]; } if (h4_Puan.Count != 0) { toplamPuan[i] = toplamPuan[i] + h4_Puan[i]; } if (h5_Puan.Count != 0) { toplamPuan[i] = toplamPuan[i] + h5_Puan[i]; } if (h6_Puan.Count != 0) { toplamPuan[i] = toplamPuan[i] + h6_Puan[i]; } if (strong_Puan.Count != 0) { toplamPuan[i] = toplamPuan[i] + strong_Puan[i]; } if (bold_Puan.Count != 0) { toplamPuan[i] = toplamPuan[i] + bold_Puan[i]; } if (head_Puan.Count != 0) { toplamPuan[i] = toplamPuan[i] + head_Puan[i]; } if (label_Puan.Count != 0) { toplamPuan[i] = toplamPuan[i] + label_Puan[i]; } if (li_Puan.Count != 0) { toplamPuan[i] = toplamPuan[i] + li_Puan[i]; } if (link_Puan.Count != 0) { toplamPuan[i] = toplamPuan[i] + link_Puan[i]; } if (option_Puan.Count != 0) { toplamPuan[i] = toplamPuan[i] + option_Puan[i]; } if (span_Puan.Count != 0) { toplamPuan[i] = toplamPuan[i] + span_Puan[i]; } if (th_Puan.Count != 0) { toplamPuan[i] = toplamPuan[i] + th_Puan[i]; } #endregion //2 kelime için puanı toplanıcak tekUrlPuan = tekUrlPuan + toplamPuan[i]; } if (kelime_list.Count == 1) { URLpuan.Add(tekUrlPuan); } else { URLpuan.Add(tekUrlPuan / standartSapmaListesi[j]); } } return(URLpuan); }
private static void Combomelee() { // if (Player.IsWindingUp) return; var target = TargetSelector.GetTarget(Qm.Range, DamageType.Physical); if (target == null) { return; } var expires = (Player.Spellbook.GetSpell(SpellSlot.R).CooldownExpires); var CD = (int) (expires - (Game.Time - 1)); if (Player.LSDistance(target) < Orbwalking.GetRealAutoAttackRange(target)) { if (Wm.IsReady()) { Wm.Cast(); } } foreach (var x in HeroManager.Enemies.Where(z => z.LSIsValidTarget(Em.Range))) { if (x.Health < EMeleeDamage(target) + 100) { Em.Cast(target); } } if (Player.LSDistance(target) <= Em.Range - 80) { if (Qm.IsReady() && !Em.IsReady() && getCheckBoxItem(MenuConfig.combo, "useqcm")) { Qm.Cast(target); } if (SpellTimer["Em"] > 1.6 && Qm.IsReady()) { Qm.Cast(target); } if (Em.IsReady() && getCheckBoxItem(MenuConfig.combo, "useecm")) { var aarange = Orbwalking.GetRealAutoAttackRange(target); if (SpellTimer["Qm"] < 2.2 && (Player.LSDistance(target) < aarange + 100 || (SpellTimer["Q"] < 1.2 && CD < 1.5))) { Em.Cast(target); } if (target.Health < EMeleeDamage(target) + 90) { Em.Cast(target); } } } else { if ((SpellTimer["Q"] < 1.5 || SpellTimer["W"] < 0.8) && CD < 1 && Em.IsReady() && getCheckBoxItem(MenuConfig.combo, "useecm")) { Em.Cast(target); } if (Qm.IsReady() && getCheckBoxItem(MenuConfig.combo, "useqcm")) { Qm.Cast(target); } } }