private static void DrawEzKill() { if (!Menu.Item("ezKillCheck").GetValue <bool>() || Game.IsWatchingGame || Game.IsChatOpen) { return; } switch (EzKillStyle.GetValue <StringList>().SelectedIndex) { case 0: var icoSize = new Vector2((HUDInfo.GetHpBarSizeY() * 2)); var icoPos = HUDInfo.GetHPbarPosition(Target) - new Vector2(21, 5); switch (IsEzKillable()) { case true: EzkillIcon = Drawing.GetTexture("materials/ensage_ui/emoticons/bc_emoticon_fire"); break; case false: EzkillIcon = null; break; } Drawing.DrawRect(icoPos, icoSize, EzkillIcon); break; case 1: var pos = HUDInfo.GetHPbarPosition(Target); var size = HUDInfo.GetHpBarSizeY() + 3; var text = string.Empty; var color = new Color(); var fontFlags = FontFlags.AntiAlias | FontFlags.Additive; if (Game.IsKeyDown(ComboKey.GetValue <KeyBind>().Key)) { pos = pos - new Vector2(58, 0); text = "CASTING..."; color = Color.Crimson; } else { switch (IsEzKillable()) { case true: pos = pos - new Vector2(40, 0); text = "EZKILL"; color = Color.Chartreuse; break; case false: pos = pos - new Vector2(63, 0); text = "NON-EZKILL"; color = Color.White; break; } } Drawing.DrawText(text, pos, new Vector2(size), color, fontFlags); break; } }
public void RecordKey(ComboKey key) { if (key != ComboKey.Space) { CurrentCombo.Add(key); } else { gestureSystem.CheckCombo(CurrentCombo); } }
public void Attack(ComboKey comboKey) { }
private static void ComboUsage(EventArgs args) { if (!Game.IsInGame || Game.IsPaused || Game.IsWatchingGame || Game.IsChatOpen) { return; } Target = Me.ClosestToMouseTarget(ClosestToMouseRange.GetValue <Slider>().Value); if (Game.IsKeyDown(ComboKey.GetValue <KeyBind>().Key)) { GetAbilities(); if (Target == null || !Target.IsValid || !Target.IsVisible || Target.IsIllusion || !Target.IsAlive || Me.IsChanneling() || Target.IsInvul() || HasModifiers()) { return; } if (Target.IsLinkensProtected()) { PopLinkens(Cyclone); PopLinkens(ForceStaff); PopLinkens(Atos); PopLinkens(Sheep); PopLinkens(Orchid); PopLinkens(Dagon); PopLinkens(Silence); } else { if (!Utils.SleepCheck("combosleep")) { return; } Orbwalk(); if (Target.Distance2D(Me.Position) < 700) { if (Utils.SleepCheck("ezkill")) { EzKill = IsEzKillable(); Utils.Sleep(5000, "ezkill"); } } if (Soulring != null && Soulring.CanBeCasted() && SoulRing.GetValue <bool>()) { Soulring.UseAbility(); } if (!Target.UnitState.HasFlag(UnitState.Hexed) && !Target.UnitState.HasFlag(UnitState.Stunned)) { UseItem(Sheep, Sheep.GetCastRange()); } UseBlink(); CastAbility(Silence, Silence.GetCastRange()); CastAbility(Bolt, Bolt.GetCastRange()); CastAbility(Slow, Slow.GetCastRange()); UseItem(Atos, Atos.GetCastRange(), 140); UseItem(Medal, Medal.GetCastRange()); UseItem(Orchid, Orchid.GetCastRange()); UseItem(Bloodthorn, Bloodthorn.GetCastRange()); UseItem(Veil, Veil.GetCastRange()); UseItem(Ethereal, Ethereal.GetCastRange()); UseDagon(); CastUltimate(); UseItem(Shivas, Shivas.GetCastRange()); Utils.Sleep(150, "combosleep"); } } if (Game.IsKeyDown(HarassKey.GetValue <KeyBind>().Key)) { GetAbilities(); if (Target == null || !Target.IsValid || !Target.IsVisible || Target.IsIllusion || !Target.IsAlive || Me.IsChanneling() || Target.IsInvul() || HasModifiers()) { return; } if (!Utils.SleepCheck("harasssleep")) { return; } Orbwalk(); CastAbility(Bolt, Bolt.GetCastRange()); Utils.Sleep(150, "harasssleep"); } }