public void AddLotus(Lotus lotus) { lock (lotusList) { lotusList.Add(lotus); } }
public void OgResultSearch() { var lotus = new Lotus(@"AppSrv74/U74/RND"); lotus.Init("123456"); var doc = lotus.SearchDocumentsByFormula("4525807B001D7F74", "[document_groupID] contains \"919DE51E60BD949E45258148002854EA\"").GetFirstDocument(); }
private void HandleTap(TappedEventArgs tapEvent) { // Construct a Ray using forward direction of the HoloLens. Ray HeadRay = new Ray(tapEvent.headPose.position, tapEvent.headPose.forward); Vector3 PointInAir = HeadRay.GetPoint(2.0f); Lotus lotusInAir = new Lotus(lotusTemplate, PointInAir); lotusCloverManager.AddLotus(lotusInAir); }
internal static bool LoadResultsFromSed(this OgDocument doc, Lotus lotus, string replicaId) { var results = lotus.SearchDocumentsByFormula(replicaId, $"[document_groupID] contains \"{doc.GroudId}\""); if (results.Count > 0) { var ogResult = OgResult.FromNotes(results.GetFirstDocument()); doc.Results = new[] { ogResult }; return(true); } return(false); }
private void BoUpdate() { if (lotusTimer % 64 == 0 && lotusLoop < 10) { Lotus lotusInAir = new Lotus(lotusTemplate, UnityEngine.Random.insideUnitSphere + boBannerOrigin); lotusCloverManager.AddLotus(lotusInAir); lotusLoop++; } if (lotusTimer == 130) { lotusTimer = 0; } lotusTimer++; }
public void LotusTestMethod() { var lotus = new Lotus(@"AppSrv74/U74/RND"); lotus.Init("123456"); var doc = lotus.SearchDocumentsByFormula("4525807B001CF66F", "[registration_number] contains \"1271-2/17-17\"").GetFirstDocument(); foreach (var attachment in lotus.GetAttachments(doc, "ответ")) { Assert.IsTrue(File.Exists(attachment)); File.Delete(attachment); } }
// Update is called once per frame void Update() { if (Input.GetMouseButtonUp(0)) { Ray ray = cam.ScreenPointToRay(Input.mousePosition); if (Input.GetMouseButtonUp(0)) { Vector3 PointInAir = ray.GetPoint(2.0f); Lotus lotusInAir = new Lotus(lotusTemplate, PointInAir); lotusCloverManager.AddLotus(lotusInAir); } } }
public void AssociationTestMethod() { var lotus = new Lotus(@"AppSrv74/U74/RND"); lotus.Init("123456"); var docs = lotus.SearchDocumentsByFormula("4525807B001CF66F", "[StatusId] contains \"in_file\" and [acceptance_date] > 01/06/2017 and [Form] contains \"doc_og\""); var totalCount = docs.Count; var ogDocuments = new List <OgDocument>(); for (var count = 1; count <= totalCount; count++) { var doc = docs.GetNthDocument(count); var ogDoc = OgDocument.FromNotes(doc); try { ogDoc.Attachments = lotus.GetAttachments(doc, "ответ") .Select(path => new Attachment(path)) .ToArray(); } catch (NoAttachmentException) { File.AppendAllText("log.txt", $"{ogDoc.Number} - отсутствуют вложения\n"); } ogDocuments.Add(ogDoc); } foreach (var ogDoc in ogDocuments) { try { ogDoc.LoadResultsFromSed(lotus, ""); } catch (Exception) { File.AppendAllText("log.txt", $"{ogDoc.Number} - ошибка при загрузке результатов\n"); } } foreach (var ogDoc in ogDocuments) { var isValid = ogDoc.ValidateResults(); if (!isValid) { File.AppendAllText("log.txt", $"{ogDoc.Number} - ошибка при валидации результатов\n"); } } Assert.IsTrue(ogDocuments.All(doc => doc.ValidateResults())); }
// Update is called once per frame void Update() { if (_CarSelectionGridInt == 0) { Cata.SetActiveRecursively(true); F599.SetActiveRecursively(false); FCa.SetActiveRecursively(false); Lambo.SetActiveRecursively(false); Lotus.SetActiveRecursively(false); _target = CataMass; } if (_CarSelectionGridInt == 1) { Cata.SetActiveRecursively(false); F599.SetActiveRecursively(false); FCa.SetActiveRecursively(false); Lambo.SetActiveRecursively(false); Lotus.SetActiveRecursively(true); } if (_CarSelectionGridInt == 2) { Cata.SetActiveRecursively(false); F599.SetActiveRecursively(false); FCa.SetActiveRecursively(false); Lambo.SetActiveRecursively(true); Lotus.SetActiveRecursively(false); } if (_CarSelectionGridInt == 3) { Cata.SetActiveRecursively(false); F599.SetActiveRecursively(false); FCa.SetActiveRecursively(true); Lambo.SetActiveRecursively(false); Lotus.SetActiveRecursively(false); } if (_CarSelectionGridInt == 4) { Cata.SetActiveRecursively(false); F599.SetActiveRecursively(true); FCa.SetActiveRecursively(false); Lambo.SetActiveRecursively(false); Lotus.SetActiveRecursively(false); } }
void OnGUI() { GUI.BeginGroup(new Rect(Screen.width - buttonWidth * 2 - 130 - buttonSpacing * 40, buttonSpacing, buttonWidth + buttonSpacing * 160, buttonHeight / 3 - buttonSpacing * 4)); GUI.Box(new Rect(0, 0, buttonWidth * 2 - 135 + buttonSpacing * 2, buttonHeight / 6 + 18 + buttonSpacing * 5), ""); CarSelectionGridInt = GUI.SelectionGrid(new Rect(buttonSpacing, buttonSpacing, buttonWidth * 2, buttonHeight / 4), CarSelectionGridInt, ThumbnailsLocked, 6); GUI.EndGroup(); /* * If selected car is bought you can see filled info box and car itself */ if (xmlReaderRights.lotusStatus_ != 0) { ThumbnailsLocked[1] = LotusLogo; if (CarSelectionGridInt == 1) { Cata.SetActiveRecursively(false); F599.SetActiveRecursively(false); FCa.SetActiveRecursively(false); Lambo.SetActiveRecursively(false); Lotus.SetActiveRecursively(true); GUI.Box(new Rect(0, 0, Screen.width - 1150, Screen.height - 400), "Lotus Evora"); GUI.Box(new Rect(0, 20, Screen.width - 1150, Screen.height - 400), LotusCarInfo); CarSelectionGridInt = 1; } } if (xmlReaderRights.lamboStatus_ != 0) { ThumbnailsLocked[2] = LamborghiniLogo; if (CarSelectionGridInt == 2) { Cata.SetActiveRecursively(false); F599.SetActiveRecursively(false); FCa.SetActiveRecursively(false); Lambo.SetActiveRecursively(true); Lotus.SetActiveRecursively(false); GUI.Box(new Rect(0, 0, Screen.width - 1150, Screen.height - 400), "Lamborghini Murcielago"); GUI.Box(new Rect(0, 20, Screen.width - 1150, Screen.height - 400), LamboCarInfo); } } if (xmlReaderRights.fCaStatus_ != 0) { ThumbnailsLocked[3] = FerrariCALogo; if (CarSelectionGridInt == 3) { Cata.SetActiveRecursively(false); F599.SetActiveRecursively(false); FCa.SetActiveRecursively(true); Lambo.SetActiveRecursively(false); Lotus.SetActiveRecursively(false); GUI.Box(new Rect(0, 0, Screen.width - 1150, Screen.height - 400), "Ferrari California"); GUI.Box(new Rect(0, 20, Screen.width - 1150, Screen.height - 400), FCaCarInfo); } } if (xmlReaderRights.f599Status_ != 0) { ThumbnailsLocked[4] = Ferrari599Logo; if (CarSelectionGridInt == 4) { Cata.SetActiveRecursively(false); F599.SetActiveRecursively(true); FCa.SetActiveRecursively(false); Lambo.SetActiveRecursively(false); Lotus.SetActiveRecursively(false); GUI.Box(new Rect(0, 0, Screen.width - 1150, Screen.height - 400), "Ferrari 599"); GUI.Box(new Rect(0, 20, Screen.width - 1150, Screen.height - 400), F599CarInfo); } } /* * Shows Price tag for every car that is not bought */ if (xmlReaderRights.lotusStatus_ == 0) // for Lotus { if (CarSelectionGridInt == 1) { GUI.Box(new Rect(0, 0, Screen.width - 1150, Screen.height - 400), "Lotus Evora"); GUI.Box(new Rect(0, 20, Screen.width - 1150, Screen.height - 400), lotusPrice + " \n Your money $" + money); } } if (xmlReaderRights.lamboStatus_ == 0) //for Lambo { if (CarSelectionGridInt == 2) { GUI.Box(new Rect(0, 0, Screen.width - 1150, Screen.height - 400), "Lamborghini Murcielago"); GUI.Box(new Rect(0, 20, Screen.width - 1150, Screen.height - 400), lamboPrice + " \n Your money $" + money); } } if (xmlReaderRights.fCaStatus_ == 0) //for Ferrari CA { if (CarSelectionGridInt == 3) { GUI.Box(new Rect(0, 0, Screen.width - 1150, Screen.height - 400), "Ferrari California"); GUI.Box(new Rect(0, 20, Screen.width - 1150, Screen.height - 400), fCaPrice + " \n Your money $" + money); } } if (xmlReaderRights.f599Status_ == 0) //for Ferrari 599 { if (CarSelectionGridInt == 4) { GUI.Box(new Rect(0, 0, Screen.width - 1150, Screen.height - 400), "Ferrari F599"); GUI.Box(new Rect(0, 20, Screen.width - 1150, Screen.height - 400), f599Price + " \n Your money $" + money); } } /* * Unity car is always active! */ if (CarSelectionGridInt == 0) { Cata.SetActiveRecursively(true); F599.SetActiveRecursively(false); FCa.SetActiveRecursively(false); Lambo.SetActiveRecursively(false); Lotus.SetActiveRecursively(false); CarSelectionGridInt = 0; GUI.Box(new Rect(0, 0, Screen.width - 1150, Screen.height - 400), "Unit One"); GUI.Box(new Rect(0, 20, Screen.width - 1150, Screen.height - 400), UnityCarInfo); } if (GUI.Button(new Rect(0, Screen.height - 50, 100, 50), "Back")) // Brings you back to the Main Menu { Application.LoadLevel("Menu"); } xmlReaderRights reader = new xmlReaderRights(); reader.Start(); }
public IList <OgDocument> Get(string query) { if (!Lotus.IsInitialize) { Lotus.Init(LotusPass); } var docs = Lotus.SearchDocumentsByFormula(OgReplicaId, query); var ogDocuments = new List <OgDocument>(); for (var count = 1; count <= docs.Count; count++) { var doc = docs.GetNthDocument(count); OgDocument ogDoc = null; try { ogDoc = OgDocument.FromNotes(doc); } catch (NotImplementedException ex) { RaseNewMessage($"ERROR: Неожиданное значение при формировании документа. '{ex}'"); continue; } try { ogDoc.Attachments = Lotus.GetAttachments(doc, "ответ") .Select(path => new Attachment(path)) .ToArray(); } catch (NoAttachmentException) { RaseNewMessage($"WARNING: {ogDoc.Number} - отсутствуют вложения"); //continue; } RaseNewMessage($"{ogDoc.Number} - получен"); ogDocuments.Add(ogDoc); } foreach (var ogDoc in ogDocuments) { try { ogDoc.LoadResultsFromSed(Lotus, ResultReplicaId); RaseNewMessage($"Получен результат для {ogDoc.Number}"); } catch (DocumentsNotFoundException) { RaseNewMessage($"WARNING: {ogDoc.Number} - результат отсутствует"); } catch (Exception) { RaseNewMessage($"ERROR: {ogDoc.Number} - ошибка при загрузке результата"); } } foreach (var ogDoc in ogDocuments) { if (!ogDoc.ValidateResults()) { RaseNewMessage($"ERROR: {ogDoc.Number} - ошибка валидации результата"); } } return(ogDocuments); }
// Update is called once per frame void Update() { if (_CarSelectionGridInt == 0) { Cata.SetActiveRecursively(true); F599.SetActiveRecursively(false); FCa.SetActiveRecursively(false); Lambo.SetActiveRecursively(false); Lotus.SetActiveRecursively(false); if (CataColorChange.ColorsSelectionGridInt == 0) { body.renderer.material.mainTexture = red; } if (CataColorChange.ColorsSelectionGridInt == 1) { body.renderer.material.mainTexture = blue; } if (CataColorChange.ColorsSelectionGridInt == 2) { body.renderer.material.mainTexture = yellow; } if (CataColorChange.ColorsSelectionGridInt == 3) { body.renderer.material.mainTexture = pink; } if (CataColorChange.ColorsSelectionGridInt == 4) { body.renderer.material.mainTexture = green; } if (CataColorChange.ColorsSelectionGridInt == 5) { body.renderer.material.mainTexture = orange; } _target = CataMass; } if (_CarSelectionGridInt == 1) { Cata.SetActiveRecursively(false); Lotus.SetActiveRecursively(true); F599.SetActiveRecursively(false); FCa.SetActiveRecursively(false); Lambo.SetActiveRecursively(false); lotusBlack.active = false; lotusRed.active = false; lotusYellow.active = false; lotusGreen.active = false; lotusSilver.active = false; lotusBlue.active = false; if (selectedColorInt == 0) { lotusBlack.SetActiveRecursively(true); } if (selectedColorInt == 1) { lotusRed.SetActiveRecursively(true); } if (selectedColorInt == 2) { lotusYellow.SetActiveRecursively(true); } if (selectedColorInt == 3) { lotusGreen.SetActiveRecursively(true); } if (selectedColorInt == 4) { lotusSilver.SetActiveRecursively(true); } if (selectedColorInt == 5) { lotusBlue.SetActiveRecursively(true); } } if (_CarSelectionGridInt == 2) { Cata.SetActiveRecursively(false); F599.SetActiveRecursively(false); Lambo.SetActiveRecursively(true); FCa.SetActiveRecursively(false); Lotus.SetActiveRecursively(false); lamboRed.active = false; lamboOrange.active = false; lamboYellow.active = false; lamboBlue.active = false; lamboBlack.active = false; lamboGreen.active = false; if (selectedColorInt == 0) { lamboBlack.SetActiveRecursively(true); } if (selectedColorInt == 1) { lamboRed.SetActiveRecursively(true); } if (selectedColorInt == 2) { lamboYellow.SetActiveRecursively(true); } if (selectedColorInt == 3) { lamboGreen.SetActiveRecursively(true); } if (selectedColorInt == 4) { lamboOrange.SetActiveRecursively(true); lamboOrange.active = true; } if (selectedColorInt == 5) { lamboBlue.SetActiveRecursively(true); } } if (_CarSelectionGridInt == 3) { Cata.SetActiveRecursively(false); F599.SetActiveRecursively(false); FCa.SetActiveRecursively(true); Lambo.SetActiveRecursively(false); Lotus.SetActiveRecursively(false); fCaBlack.active = false; fCaBlue.active = false; fCaYellow.active = false; fCaRed.active = false; fCaSilver.active = false; fCaGreen.active = false; if (selectedColorInt == 0) { fCaBlack.SetActiveRecursively(true); } if (selectedColorInt == 1) { fCaRed.SetActiveRecursively(true); } if (selectedColorInt == 2) { fCaYellow.SetActiveRecursively(true); } if (selectedColorInt == 3) { fCaGreen.SetActiveRecursively(true); } if (selectedColorInt == 4) { fCaSilver.SetActiveRecursively(true); } if (selectedColorInt == 5) { fCaBlue.SetActiveRecursively(true); } } if (_CarSelectionGridInt == 4) { Cata.SetActiveRecursively(false); F599.SetActiveRecursively(true); FCa.SetActiveRecursively(false); Lambo.SetActiveRecursively(false); Lotus.SetActiveRecursively(false); f599Black.active = false; f599Blue.active = false; f599Red.active = false; f599White.active = false; f599Yellow.active = false; f599Silver.active = false; if (selectedColorInt == 0) { f599Black.SetActiveRecursively(true); } if (selectedColorInt == 1) { f599Red.SetActiveRecursively(true); } if (selectedColorInt == 2) { f599Yellow.SetActiveRecursively(true); } if (selectedColorInt == 3) { f599White.SetActiveRecursively(true); } if (selectedColorInt == 4) { f599Silver.SetActiveRecursively(true); } if (selectedColorInt == 5) { f599Blue.SetActiveRecursively(true); } } }
} // OnClose public void Combo() { if (!Menu.Item("enabled").IsActive() || Game.IsChatOpen || Time.Enabled) { return; } Me = ObjectManager.LocalHero; Q = Me.Spellbook.SpellQ; W = Me.Spellbook.SpellW; R = Me.Spellbook.SpellR; Leans = Me.FindItem("item_aether_lens"); Urn = Me.FindItem("item_urn_of_shadows"); Dagon = Me.Inventory.Items.FirstOrDefault(x => x.Name.Contains("item_dagon")); Ethereal = Me.FindItem("item_ethereal_blade"); Shiva = Me.FindItem("item_shivas_guard"); Glimmer = Me.FindItem("item_glimmer_cape"); Vail = Me.FindItem("item_veil_of_discord"); Orchid = Me.FindItem("item_orchid") ?? Me.FindItem("item_bloodthorn"); Abyssal = Me.FindItem("item_abyssal_blade"); Atos = Me.FindItem("item_rod_of_atos"); Bkb = Me.FindItem("item_black_king_bar"); Mail = Me.FindItem("item_blade_mail"); Lotus = Me.FindItem("item_lotus_orb"); Active = Game.IsKeyDown(Menu.Item("Combo Key").GetValue <KeyBind>().Key); var v = ObjectManager.GetEntities <Hero>().Where(x => x.Team != Me.Team && x.IsAlive && x.IsVisible && !x.IsIllusion && !x.IsMagicImmune()).ToList(); if (Active && Menu.Item("Skills").GetValue <AbilityToggler>().IsEnabled(W.Name)) { if (Me.HasModifier("modifier_pudge_rot") && v.Count(x => x.Distance2D(Me) <= W.GetCastRange() + Me.HullRadius) == 0) { W.ToggleAbility(); Time.Start(); } else if (!Me.HasModifier("modifier_pudge_rot") && v.Count(x => x.Distance2D(Me) <= W.GetCastRange() + Me.HullRadius) > 0) { W.ToggleAbility(); Time.Start(); } } E = Toolset.ClosestToMouse(Me); if (E == null || !Me.IsAlive) { return; } Sheep = E.ClassId == ClassId.CDOTA_Unit_Hero_Tidehunter ? null : Me.FindItem("item_sheepstick"); if (R.IsInAbilityPhase || R.IsChanneling || Me.IsChanneling()) { return; } if (Active) { MinRangeHook = E.HullRadius + 27; CastRange = Leans != null ? (Q.CastRange + 200 + E.HullRadius) : (Q.CastRange + E.HullRadius); EMoveSpeed = E.HasModifier("modifier_spirit_breaker_charge_of_darkness") ? 550 + ((int)E.Spellbook.Spell1.Level * 50) : E.MovementSpeed; Vector2 vector = new Vector2((float)Math.Cos(E.RotationRad) * EMoveSpeed, (float)Math.Sin(E.RotationRad) * EMoveSpeed); Vector3 start = new Vector3((float)((0.3 + (Game.Ping / 1000)) * Math.Cos(E.RotationRad) * EMoveSpeed + E.Position.X), (float)((0.3 + (Game.Ping / 1000)) * Math.Sin(E.RotationRad) * EMoveSpeed + E.NetworkPosition.Y), E.NetworkPosition.Z); Vector3 specialPosition = new Vector3((float)(MinRangeHook * Math.Cos(E.RotationRad) + E.NetworkPosition.X), (float)(MinRangeHook * Math.Sin(E.RotationRad) + E.NetworkPosition.Y), E.NetworkPosition.Z); HookPosition = Interception(start, vector, Me.Position, 1600); if ( Atos != null && Atos.CanBeCasted() && Me.CanCast() && !E.IsMagicImmune() && !E.HasModifier("modifier_spirit_breaker_charge_of_darkness") && Menu.Item("Items").GetValue <AbilityToggler>().IsEnabled(Atos.Name) && Me.Distance2D(E) <= 1500 && Utils.SleepCheck("a") ) { Atos.UseAbility(E); Utils.Sleep(250, "a"); } else if (Q.CanBeCasted() && Menu.Item("Skills").GetValue <AbilityToggler>().IsEnabled(Q.Name)) { if (E.NetworkActivity == NetworkActivity.Move || E.HasModifier("modifier_spirit_breaker_charge_of_darkness")) { for (double i = 0.03; i <= 0.135; i += 0.03) { Vector3 estimated = new Vector3((float)(i * Math.Cos(E.RotationRad) * EMoveSpeed + HookPosition.X), (float)(i * Math.Sin(E.RotationRad) * EMoveSpeed + HookPosition.Y), E.NetworkPosition.Z); if (GetTimeToTurn(estimated) <= i) { HookPosition = estimated; TimeTurn = i; break; } } CastPos = (HookPosition - Me.Position) * ((Q.GetCastRange() + Me.HullRadius) / HookPosition.Distance2D(Me.Position)) + Me.Position; if (Me.Position.Distance2D(HookPosition) < CastRange) { Q.UseAbility(CastPos); Time.Interval = 150 + TimeTurn * 1000; Time.Start(); } } else { CastPos = (specialPosition - Me.Position) * ((Q.GetCastRange() + Me.HullRadius) / specialPosition.Distance2D(Me.Position)) + Me.Position; if (Me.Position.Distance2D(E.NetworkPosition) < CastRange) { Q.UseAbility(CastPos); Time.Start(); } } } else { if (R.IsInAbilityPhase || R.IsChanneling) { return; } uint countElse = 0; countElse += 1; if (Vail != null && Vail.CanBeCasted() && Me.Distance2D(E) <= 1100 && Menu.Item("Items").GetValue <AbilityToggler>().IsEnabled(Vail.Name) && Utils.SleepCheck("vail")) { Vail.UseAbility(E.Position); Utils.Sleep(130, "vail"); } else { countElse += 1; } if (Orchid != null && Orchid.CanBeCasted() && Me.Distance2D(E) <= 900 && Menu.Item("Items").GetValue <AbilityToggler>().IsEnabled(Orchid.Name) && Utils.SleepCheck("orchid")) { Orchid.UseAbility(E); Utils.Sleep(100, "orchid"); } else { countElse += 1; } if (Shiva != null && Shiva.CanBeCasted() && Me.Distance2D(E) <= 600 && Menu.Item("Items").GetValue <AbilityToggler>().IsEnabled(Shiva.Name) && !E.IsMagicImmune() && Utils.SleepCheck("Shiva")) { Shiva.UseAbility(); Utils.Sleep(100, "Shiva"); } else { countElse += 1; } if (Ethereal != null && Ethereal.CanBeCasted() && Me.Distance2D(E) <= 700 && Me.Distance2D(E) <= 400 && Menu.Item("Items").GetValue <AbilityToggler>().IsEnabled(Ethereal.Name) && Utils.SleepCheck("ethereal")) { Ethereal.UseAbility(E); Utils.Sleep(100, "ethereal"); } else { countElse += 1; } if (Dagon != null && Dagon.CanBeCasted() && Me.Distance2D(E) <= Dagon.GetCastRange() && Utils.SleepCheck("dagon")) { Dagon.UseAbility(E); Utils.Sleep(100, "dagon"); } else { countElse += 1; } if (Urn != null && Urn.CanBeCasted() && Urn.CurrentCharges > 0 && Me.Distance2D(E) <= 400 && Menu.Item("Items").GetValue <AbilityToggler>().IsEnabled(Urn.Name) && Utils.SleepCheck("urn")) { Urn.UseAbility(E); Utils.Sleep(240, "urn"); } else { countElse += 1; } if (Glimmer != null && Glimmer.CanBeCasted() && Me.Distance2D(E) <= 300 && Utils.SleepCheck("glimmer")) { Glimmer.UseAbility(Me); Utils.Sleep(200, "glimmer"); } else { countElse += 1; } if (Mail != null && Mail.CanBeCasted() && v.Count(x => x.Distance2D(Me) <= 650) >= (Menu.Item("Heel").GetValue <Slider>().Value) && Menu.Item("Items").GetValue <AbilityToggler>().IsEnabled(Mail.Name) && Utils.SleepCheck("mail")) { Mail.UseAbility(); Console.WriteLine(countElse.ToString()); Utils.Sleep(100, "mail"); } else { countElse += 1; } if (Bkb != null && Bkb.CanBeCasted() && v.Count(x => x.Distance2D(Me) <= 650) >= (Menu.Item("Heel").GetValue <Slider>().Value) && Menu.Item("Items").GetValue <AbilityToggler>().IsEnabled(Bkb.Name) && Utils.SleepCheck("bkb")) { Bkb.UseAbility(); Utils.Sleep(100, "bkb"); } else { countElse += 1; } if (Lotus != null && Lotus.CanBeCasted() && v.Count(x => x.Distance2D(Me) <= 650) >= 2 && Menu.Item("Items").GetValue <AbilityToggler>().IsEnabled(Lotus.Name) && Utils.SleepCheck("lotus")) { Lotus.UseAbility(Me); Utils.Sleep(100, "lotus"); } else { countElse += 1; } if (countElse == 11 && R != null && R.CanBeCasted() && Me.Distance2D(E) <= R.GetCastRange() + 150 && (!Urn.CanBeCasted() || Urn.CurrentCharges <= 0) && Menu.Item("Skills").GetValue <AbilityToggler>().IsEnabled(R.Name) && Utils.SleepCheck("R") ) { R.UseAbility(E); Utils.Sleep(150, "R"); } else { countElse += 1; } if (Abyssal != null && !R.CanBeCasted() && Abyssal.CanBeCasted() && !E.IsStunned() && !E.IsHexed() && Me.Distance2D(E) <= 300 && Menu.Item("Items").GetValue <AbilityToggler>().IsEnabled(Abyssal.Name) && Utils.SleepCheck("abyssal")) { Abyssal.UseAbility(E); Utils.Sleep(200, "abyssal"); } else { countElse += 1; } if (Sheep != null && !R.CanBeCasted() && Sheep.CanBeCasted() && !E.IsStunned() && !E.IsHexed() && Me.Distance2D(E) <= 900 && Menu.Item("Items").GetValue <AbilityToggler>().IsEnabled(Sheep.Name) && Utils.SleepCheck("sheep")) { Sheep.UseAbility(E); Utils.Sleep(200, "sheep"); } else { countElse += 1; } if (countElse == 14 && Me.Distance2D(E) <= 300 && Mail != null && Mail.CanBeCasted() && (E.NetworkActivity == NetworkActivity.Attack || E.Spellbook.Spells.All(x => x.IsInAbilityPhase)) && Menu.Item("Items").GetValue <AbilityToggler>().IsEnabled(Mail.Name) && Utils.SleepCheck("mail")) { Mail.UseAbility(); Utils.Sleep(100, "mail"); } else { countElse += 1; } if (countElse == 15 && Lotus != null && Lotus.CanBeCasted() && Me.Distance2D(E) <= 600 && Menu.Item("Items").GetValue <AbilityToggler>().IsEnabled(Lotus.Name) && Utils.SleepCheck("lotus")) { Lotus.UseAbility(Me); Utils.Sleep(100, "lotus"); } if ((R == null || !R.CanBeCasted() || !Q.CanBeCasted() && Me.Distance2D(E) >= R.GetCastRange() + Me.HullRadius && !E.HasModifier("pudge_meat_hook")) && !E.IsAttackImmune()) { if (Menu.Item("orbwalk").GetValue <bool>() && Me.Distance2D(E) <= 1900) { Orbwalking.Orbwalk(E, 0, 1600, true, true); } } } } }
private void btn_Lotus_Click(object sender, RoutedEventArgs e) { Lotus lotu = new Lotus(); lotu.Show(); }
protected Loader(string server, string pass) { Server = server; LotusPass = pass; Lotus = new Lotus(Server); }