public IEnumerable <string> Get() { Blitz helper = new Blitz(); string deviceMAC = helper.GenerateToken("B8:7C6F:1A:D8:25"); return(new string[] { deviceMAC, "value2" }); //return new string[] { "Please add a parameter", "Parameter is an encoded MAC address" }; }
public IActionResult CreateToken(Device parameter) { DeviceManager manager = new DeviceManager(); if (manager.IsActive(parameter.MAC, 2)) { Blitz helper = new Blitz(); string token = helper.GenerateToken(parameter.MAC); return(Ok(token)); } return(BadRequest()); }
public ViewModel() { foreach (var info in Info.Instance().Party) { Party.Add(new Character(0x5616 + info.Value * 148) { Info = info }); } for (uint i = 0; i < 256; i++) { Items.Add(new Item(0x3F14 + i * 2, 0x4114 + i)); } foreach (var info in Info.Instance().KeyItems) { KeyItems.Add(new BitValue(0x44D4, info)); } for (uint i = 0; i < 200; i++) { Equipments.Add(new Equipment(0x44EA + i * 22)); } foreach (var info in Info.Instance().Blitz_Player) { if (info.Value >= 60) { continue; } Blitz.Add(new BlitzBall(0x1234, info)); } for (uint i = 0; i < 8; i++) { Blitz_Term.Add(new IntValue(0x1676 + i, 1)); } foreach (var info in Info.Instance().Monsters) { Monsters.Add(new IntValue(0x4254 + info.Value, 1) { Info = info }); } for (uint i = 0; i < 6; i++) { FavorabilityRatings.Add(new IntValue(0x78 + i * 4, 4)); } }
private static void ByCombo() { var target = TargetSelector.GetTarget(Q.Range, DamageType.Magical); if (target != null) { if (Blits["Qc"].Cast <CheckBox>().CurrentValue&& Blitz.Distance(target) > Blitz.GetAutoAttackRange() && Blitz.Distance(target) < Q.Range) { QLogic(target); } } if (Blits["Wc"].Cast <CheckBox>().CurrentValue&& W.IsReady()) { var enemy = EntityManager.Heroes.Enemies.FirstOrDefault(e => Blitz.Distance(e) < 400); if (enemy != null) { W.Cast(); } } if (Blits["Ec"].Cast <CheckBox>().CurrentValue&& E.IsReady()) { var enemy = EntityManager.Heroes.Enemies.FirstOrDefault(e => Blitz.Distance(e) < 300); if (enemy != null) { Orbwalker.DisableMovement = true; Orbwalker.DisableAttacking = true; E.Cast(); Player.IssueOrder(GameObjectOrder.AttackUnit, enemy); Orbwalker.DisableMovement = false; Orbwalker.DisableAttacking = false; } } if (Blits["Rc"].Cast <CheckBox>().CurrentValue&& EntityManager.Heroes.Enemies.Exists(e => Blitz.Distance(e) < R.Range && e.HasBuffOfType(BuffType.Knockup)) && R.IsReady()) { R.Cast(); } if (Blits["Rc"].Cast <CheckBox>().CurrentValue&& EntityManager.Heroes.Enemies.Count(e => Blitz.Distance(e) < R.Range) >= Blits["rs"].Cast <Slider>().CurrentValue&& R.IsReady()) { R.Cast(); } }
public bool CreateBlitz(BlitzCreate model) { var entity = new Blitz() { Name = model.Name, Location = model.Location, Date = model.Date, CreatedUtc = model.CreatedUtc }; using (var ctx = new ApplicationDbContext()) { ctx.Blitzes.Add(entity); return(ctx.SaveChanges() == 1); } }
public List <Device> GetSensorByHubMAC(string token) { Blitz helper = new Blitz(); string deviceMAC = helper.DecodeToken(token); DeviceManager manager = new DeviceManager(); List <Device> devices = new List <Device>(); Hub hub = manager.HubGetByMAC(deviceMAC); if (hub != null) { if (hub.IsActive) { devices = manager.GetDevicesByOffice(hub.OfficeID); } } return(devices); }
private static void On_LoadGame() { // remove Update check //try { Update.Check(); } //catch { } Game.Print("Supported Champions: Alistar, Blitz, Lux, Morgana, Pyke, Soraka, Thresh"); Game.Print("SPrediction Port By Mask"); if (ObjectManager.Player.CharacterName == "Soraka") { Soraka.Load(); Game.Print("Soraka Script Load"); } else if (ObjectManager.Player.CharacterName == "Blitzcrank") { Blitz.BlitzOnLoad(); Game.Print("Blitzcrank Script Load"); Game.Print("This script is a Port of KurisuBlitz (Code of Kurisu)"); } else if (ObjectManager.Player.CharacterName == "Lux") { Lux.Load(); Game.Print("Partial Port of ChewyMoon Lux Load"); } else if (ObjectManager.Player.CharacterName == "Pyke") { Pyke.On_Load(); Game.Print("011110001.Pyke Load"); } else if (ObjectManager.Player.CharacterName == "Thresh") { Thresh.OnLoad(); Game.Print("011110001.Thresh Load"); } else if (ObjectManager.Player.CharacterName == "Alistar") { Alistar.OnLoad(); } else if (ObjectManager.Player.CharacterName == "Morgana") { Morgana.OnLoad(); Game.Print("Morgana Script Load"); Game.Print("This script is a Port of Kurisu Morgana (Code of Kurisu)"); } }
private static void OnGameLoad() { Game.Print("Supported Champions: Alistar, Blitz, Lux, Morgana, Pyke, Soraka, Thresh"); Game.Print("SPrediction Port By Mask"); if (ObjectManager.Player.CharacterName == "Soraka") { Soraka.Load(); Game.Print("Soraka Script Load"); } else if (ObjectManager.Player.CharacterName == "Blitzcrank") { Blitz.BlitzOnLoad(); Game.Print("Blitzcrank Script Load"); Game.Print("This script is a Port of KurisuBlitz (Code of Kurisu)"); } else if (ObjectManager.Player.CharacterName == "Lux") { Lux.Load(); Game.Print("Partial Port of ChewyMoon Lux Load"); } else if (ObjectManager.Player.CharacterName == "Pyke") { Pyke.On_Load(); Game.Print("011110001.Pyke Load"); } else if (ObjectManager.Player.CharacterName == "Thresh") { Thresh.OnLoad(); Game.Print("011110001.Thresh Load"); } else if (ObjectManager.Player.CharacterName == "Alistar") { Alistar.OnLoad(); } else if (ObjectManager.Player.CharacterName == "Morgana") { Morgana.OnLoad(); Game.Print("Morgana Script Load"); Game.Print("This script is Fixed By Memory"); Notifications.Add(new Notification("Easy Support Fixed By Memory", "Credit Memory")); } }
private static void On_LoadGame() { logo = new Render.Sprite(LoadImg("lgo"), new Vector2(Drawing.Width / 2 - 250, Drawing.Height / 2 - 250)); logo.Add(0); logo.OnDraw(); DelayAction.Add(7000, () => logo.Remove()); Chat.PrintChat("Supported Champions: Blitz , Soraka, Lux, Pyke"); Chat.PrintChat("SPrediction Port By Mask"); if (ObjectManager.Player.CharacterName == "Soraka") { Soraka.Load(); Chat.PrintChat("Soraka Script Load"); } else if (ObjectManager.Player.CharacterName == "Blitzcrank") { Blitz.BlitzOnLoad(); Chat.PrintChat("Blitzcrank Script Load"); Chat.PrintChat("This script is a Port of KurisuBlitz (Code of Kurisu)"); } else if (ObjectManager.Player.CharacterName == "Lux") { Lux.Load(); Chat.PrintChat("Partial Port of ChewyMoon Lux Load"); } else if (ObjectManager.Player.CharacterName == "Pyke") { Pyke.On_Load(); Chat.PrintChat("011110001.Pyke Load"); } else if (ObjectManager.Player.CharacterName == "Thresh") { Thresh.OnLoad(); Chat.PrintChat("011110001.Thresh Load"); } else if (ObjectManager.Player.CharacterName == "Alistar") { Alistar.OnLoad(); } }
private static void AutoLogic() { if (Blits["misc"].Cast <CheckBox>().CurrentValue) { var max = EntityManager.Heroes.Enemies.Max(t => TargetSelector.GetPriority(t)); foreach ( var enemy in EntityManager.Heroes.Enemies.Where( e => e.IsValidTarget(Q.Range) && !Blits["grabs" + e.ChampionName.ToLower()].Cast <CheckBox>().CurrentValue) .Where(enemy => TargetSelector.GetPriority(enemy) == max)) { QLogic(enemy); } } if (Blits["misc"].Cast <CheckBox>().CurrentValue) { var enemy = EntityManager.Heroes.Enemies.Find(e => !Blits["grabs" + e.ChampionName.ToLower()].Cast <CheckBox>().CurrentValue&& e.IsValidTarget(Q.Range) && (Q.GetPrediction(e).HitChance == HitChance.Dashing || Q.GetPrediction(e).HitChance == HitChance.Immobile)); if (enemy != null) { QLogic(enemy); } } if (Blits["misc"].Cast <CheckBox>().CurrentValue) { var enemy = EntityManager.Heroes.Enemies.Find(e => e.IsValidTarget(R.Range) && Blitz.GetSpellDamage(e, SpellSlot.R) >= Prediction.Health.GetPrediction(e, R.CastDelay)); if (enemy != null) { R.Cast(); } } }
public User GetByCredentials(string username, string password) { password = Blitz.CalculateMD5Hash(password); return(GetAll().FirstOrDefault(e => (e.UserName.Equals(username) || e.EmailAddress.Equals(username)) && e.Password.Equals(password))); }