private static void OnGameUpdate(EventArgs args) { try { if (Player.IsDead) { return; } //킬스틸 타겟 var KTarget = ObjectManager.Get <Obj_AI_Hero>().OrderByDescending(x => x.Health).FirstOrDefault(x => x.IsEnemy && x.Distance(Player) < 375); if (KTarget != null && MainMenu._MainMenu.Item("KUse_R").GetValue <bool>() && KTarget.Health < _R.GetDamage(KTarget) && _R.IsReady()) { _R.Cast(KTarget, true); } if (InsecTime < Environment.TickCount) { InsecType = "Wait"; // 인섹킥 초기화 } if (Ward_Time < Environment.TickCount) { WW = true; // 와드방호 초기화 } if (MainMenu._MainMenu.Item("AutoKick").GetValue <Slider>().Value != 0 && _R.Level > 0 && _R.IsReady() && !MainMenu._MainMenu.Item("InsecKick").GetValue <KeyBind>().Active) { AutoKick(); // 오토 킥 } if (MainMenu._MainMenu.Item("CKey").GetValue <KeyBind>().Active) // Combo { var QTarget = TargetSelector.GetTarget(_Q.Range, TargetSelector.DamageType.Physical); var ETarget = TargetSelector.GetTarget(_E.Range, TargetSelector.DamageType.Physical); if (QTarget != null && _Q.IsReady() && ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Q).Name == "BlindMonkQOne" && MainMenu._MainMenu.Item("CUse_Q").GetValue <bool>() && QTime < Environment.TickCount) { var HC = HitChance.Medium; switch (MainMenu._MainMenu.Item("CUseQ_Hit").GetValue <Slider>().Value) { case 1: HC = HitChance.OutOfRange; break; case 2: HC = HitChance.Impossible; break; case 3: HC = HitChance.Low; break; case 4: HC = HitChance.Medium; break; case 5: HC = HitChance.High; break; case 6: HC = HitChance.VeryHigh; break; } _Q.CastIfHitchanceEquals(QTarget, HC, true); QTime = TickCount(2000); } if (ETarget != null && _E.IsReady() && !Orbwalking.CanAttack() && Orbwalking.CanMove(10) && ETime < Environment.TickCount && MainMenu._MainMenu.Item("CUse_E").GetValue <bool>()) { _E.Cast(true); ETime = TickCount(1000); } if (!_Q.IsReady() && !_E.IsReady() && !Orbwalking.CanAttack() && Orbwalking.CanMove(10) && WTime < Environment.TickCount && MainMenu._MainMenu.Item("CUse_W").GetValue <bool>()) { _W.Cast(Player, true); WTime = TickCount(1000); } } if (MainMenu._MainMenu.Item("HKey").GetValue <KeyBind>().Active) // Hafass { var QTarget = TargetSelector.GetTarget(_Q.Range, TargetSelector.DamageType.Physical); var ETarget = TargetSelector.GetTarget(_E.Range, TargetSelector.DamageType.Physical); if (QTarget != null && _Q.IsReady() && ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Q).Name == "BlindMonkQOne" && MainMenu._MainMenu.Item("HUse_Q").GetValue <bool>() && QTime < Environment.TickCount) { var HC = HitChance.Medium; _Q.CastIfHitchanceEquals(QTarget, HC, true); QTime = TickCount(2000); } if (ETarget != null && _E.IsReady() && !Orbwalking.CanAttack() && Orbwalking.CanMove(10) && ETime < Environment.TickCount && MainMenu._MainMenu.Item("HUse_E").GetValue <bool>()) { _E.Cast(true); ETime = TickCount(1000); } if (!_Q.IsReady() && !_E.IsReady() && !Orbwalking.CanAttack() && Orbwalking.CanMove(10) && WTime < Environment.TickCount && MainMenu._MainMenu.Item("HUse_W").GetValue <bool>()) { _W.Cast(Player, true); WTime = TickCount(1000); } } if (MainMenu._MainMenu.Item("LKey").GetValue <KeyBind>().Active) // LaneClear { var MinionTarget = MinionManager.GetMinions(1100, MinionTypes.All, MinionTeam.Enemy, MinionOrderTypes.Health); foreach (var minion in MinionTarget) { if (_Q.IsReady() && MainMenu._MainMenu.Item("LUse_Q").GetValue <bool>() && minion != null && Environment.TickCount > QTime) { _Q.CastIfHitchanceEquals(minion, HitChance.Medium, true); QTime = TickCount(1000); } if (_E.IsReady() && MainMenu._MainMenu.Item("LUse_E").GetValue <bool>() && minion != null && Environment.TickCount > ETime && !Orbwalking.CanAttack() && Orbwalking.CanMove(10)) { _E.Cast(true); ETime = TickCount(1000); } if (_W.IsReady() && MainMenu._MainMenu.Item("LUse_W").GetValue <bool>() && minion != null && Environment.TickCount > WTime && !Orbwalking.CanAttack() && Orbwalking.CanMove(10)) { _W.Cast(Player, true); WTime = TickCount(1000); } } } if (MainMenu._MainMenu.Item("JKey").GetValue <KeyBind>().Active) // JungleClear { var JungleTarget = MinionManager.GetMinions(1100, MinionTypes.All, MinionTeam.Neutral, MinionOrderTypes.MaxHealth); foreach (var minion in JungleTarget) { if (_Q.IsReady() && MainMenu._MainMenu.Item("JUse_Q").GetValue <bool>() && minion != null && Environment.TickCount > QTime) { _Q.CastIfHitchanceEquals(minion, HitChance.Medium, true); QTime = TickCount(1500); } if (_E.IsReady() && MainMenu._MainMenu.Item("JUse_E").GetValue <bool>() && minion != null && Environment.TickCount > ETime && !Orbwalking.CanAttack() && Orbwalking.CanMove(10)) { _E.Cast(true); ETime = TickCount(1500); } if (_W.IsReady() && MainMenu._MainMenu.Item("JUse_W").GetValue <bool>() && minion != null && Environment.TickCount > WTime && !Orbwalking.CanAttack() && Orbwalking.CanMove(10)) { _W.Cast(Player, true); WTime = TickCount(1500); } } } if (MainMenu._MainMenu.Item("InsecKick").GetValue <KeyBind>().Active) // 인섹킥 { var GetTarget = TargetSelector.GetSelectedTarget(); if (GetTarget == null || GetTarget.IsDead) { return; } var Turrets = ObjectManager.Get <Obj_Turret>() .OrderBy(obj => obj.Position.Distance(Player.Position)) .FirstOrDefault(obj => obj.IsAlly && obj.Health > 1); var AllyChampion = ObjectManager.Get <Obj_AI_Hero>().FirstOrDefault(obj => obj.IsAlly && !obj.IsMe && !obj.IsDead && obj.Distance(Player.Position) < 2000); if (Turrets == null && AllyChampion == null) { return; } if (AllyChampion != null) { InsecST = AllyChampion.Position; } else { InsecST = Turrets.Position; } InsecED = GetTarget.Position; InsecPOS = InsecST.Extend(InsecED, +InsecED.Distance(InsecST) + 230); Player.IssueOrder(GameObjectOrder.MoveTo, InsecPOS); //Drawing.DrawText(200, 200, Color.White, InsecType); if (MainMenu._MainMenu.Item("KickAndFlash").GetValue <bool>() && InsecPOS.Distance(Player.Position) < 425 && GetTarget.Distance(Player.Position) < 375 && InsecType == "Wait" && _R.Level > 0 && _R.IsReady() && InsecType != "WF" && InsecType != "WF1" && Player.GetSpellSlot("SummonerFlash").IsReady()) { InsecTime = TickCount(2000); InsecText = "Flash"; InsecType = "RF"; _R.Cast(GetTarget, true); return; } if (InsecPOS.Distance(Player.Position) < 575 && _R.Level > 0 && _R.IsReady() && InsecType != "RF") { InsecText = "Ward"; if (InsecType == "Wait" && InsecType != "WF" && InsecType != "WF1" && _W.IsReady()) { if (ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Name == "blindmonkwtwo") { return; } InsecTime = TickCount(2000); InsecType = "WF"; var Ward = Items.GetWardSlot(); Player.Spellbook.CastSpell(Ward.SpellSlot, InsecPOS); } if (InsecType == "WF" && _W.IsReady()) { if (ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Name == "blindmonkwtwo") { return; } var WardObj = ObjectManager.Get <Obj_AI_Base>() // 커서근처 와드 유무 .OrderBy(obj => obj.Distance(InsecPOS)) .FirstOrDefault(obj => obj.IsAlly && !obj.IsMe && obj.Distance(InsecPOS) <= 110 && obj.Name.ToLower().Contains("ward")); if (WardObj != null) { InsecType = "WF1"; _W.Cast(WardObj, true); } } if (InsecType == "WF1") { if (GetTarget.Distance(Player.Position) < 375) { _R.Cast(GetTarget, true); } else { Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPos); } } return; } // 플 425, 와드 575 } if (MainMenu._MainMenu.Item("Ward_W").GetValue <KeyBind>().Active) // 와드 방호 { //와드방호는 WW로 정의 var Cursor = Game.CursorPos; var Ward = Items.GetWardSlot(); Player.IssueOrder(GameObjectOrder.MoveTo, Cursor); if (ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Name == "blindmonkwtwo") { return; } if (Player.Distance(Cursor) > 700) { Cursor = Game.CursorPos.Extend(Player.Position, +Player.Distance(Game.CursorPos) - 700); } //Render.Circle.DrawCircle(Cursor, 50, Color.Black, 2); //Drawing.DrawText(200, 200, Color.White, "WW is: " + WW.ToString()); if (_W.IsReady()) { var Object = ObjectManager.Get <Obj_AI_Hero>().FirstOrDefault(obj => obj.IsAlly && !obj.IsMe && obj.Distance(Cursor) < 110); // 커서근처 챔프유무 var Minion = MinionManager.GetMinions(Cursor, 110, MinionTypes.All, MinionTeam.Ally); // 아군 미니언 유무 var WardObj = ObjectManager.Get <Obj_AI_Base>() // 커서근처 와드 유무 .OrderBy(obj => obj.Distance(Cursor)) .FirstOrDefault(obj => obj.IsAlly && !obj.IsMe && obj.Distance(Cursor) <= 110 && obj.Name.ToLower().Contains("ward")); if (WardObj != null) { _W.Cast(WardObj, true); Ward_Time = TickCount(2000); WW = true; return; } if (Object != null) { _W.Cast(Object, true); Ward_Time = TickCount(2000); WW = true; return; } if (Minion != null) { foreach (var minion in Minion) { if (minion != null) { _W.Cast(minion, true); Ward_Time = TickCount(2000); WW = true; return; } } } if (Player.Distance(Cursor) > 575) { Cursor = Game.CursorPos.Extend(Player.Position, +Player.Distance(Game.CursorPos) - 575); } //Render.Circle.DrawCircle(Cursor, 50, Color.Black, 2); if (WW && Ward != null && Ward_Time < Environment.TickCount) { Player.Spellbook.CastSpell(Ward.SpellSlot, Cursor); WW = false; Ward_Time = TickCount(2000); } WardObj = ObjectManager.Get <Obj_AI_Base>() // 커서근처 와드 유무 .OrderBy(obj => obj.Distance(Cursor)) .FirstOrDefault(obj => obj.IsAlly && !obj.IsMe && obj.Distance(Cursor) <= 110 && obj.Name.ToLower().Contains("ward")); if (WardObj != null) { _W.Cast(WardObj, true); Ward_Time = TickCount(2000); WW = true; return; } } } } catch (Exception e) { Console.Write(e); Game.PrintChat("FreshLeesin is not working. plz send message by KorFresh (Code 4)"); } }
public static void Drawing_OnDraw(EventArgs args) { try { if (Player.IsDead) { return; } if (_MainMenu.Item("LeeSin_Draw_Q").GetValue <bool>()) { Render.Circle.DrawCircle(Player.Position, _Q.Range, Color.White, 1); } if (_MainMenu.Item("LeeSin_Draw_W").GetValue <bool>()) { Render.Circle.DrawCircle(Player.Position, _W.Range, Color.White, 1); } if (_MainMenu.Item("LeeSin_Draw_E").GetValue <bool>()) { Render.Circle.DrawCircle(Player.Position, _E.Range, Color.White, 1); } if (_MainMenu.Item("LeeSin_Draw_Ward").GetValue <bool>()) { Render.Circle.DrawCircle(Player.Position, 625, Color.White, 1); } //if (TargetSelector.GetSelectedTarget() != null) Render.Circle.DrawCircle(TargetSelector.GetSelectedTarget().Position, 375, Color.Green, 2); if (_MainMenu.Item("LeeSin_InsecKick").GetValue <KeyBind>().Active&& TargetSelector.GetSelectedTarget() != null && _MainMenu.Item("LeeSin_PredictR").GetValue <bool>()) { var GetTarget = TargetSelector.GetSelectedTarget(); if (GetTarget == null || GetTarget.IsDead) { return; } var Turrets = ObjectManager.Get <Obj_Turret>() .OrderBy(obj => obj.Position.Distance(Player.Position)) .FirstOrDefault(obj => obj.IsAlly && !obj.IsDead); var AllyChampion = ObjectManager.Get <Obj_AI_Hero>().FirstOrDefault(obj => obj.IsAlly && !obj.IsMe && !obj.IsDead && obj.Distance(Player.Position) < 2000); if (Turrets == null && AllyChampion == null) { return; } if (AllyChampion != null) { var InsecPOS = InsecST.Extend(InsecED, +InsecED.Distance(InsecST) + 230); } Render.Circle.DrawCircle(InsecPOS, 50, Color.Gold); if (GetTarget.Distance(Player.Position) < 625) { Render.Circle.DrawCircle(Player.Position, 525, Color.LightGreen); } else { Render.Circle.DrawCircle(Player.Position, 525, Color.IndianRed); } Drawing.DrawLine(Drawing.WorldToScreen(InsecST)[0], Drawing.WorldToScreen(InsecST)[1], Drawing.WorldToScreen(InsecED)[0], Drawing.WorldToScreen(InsecED)[1], 2, Color.Green); } if (_Q.IsReady() && ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Q).Name == "blindmonkqtwo") { var target = ObjectManager.Get <Obj_AI_Hero>().FirstOrDefault(f => f.IsEnemy && !f.IsZombie && f.Distance(Player.Position) <= _Q.Range && f.HasBuff("BlindMonkQOne")); if (target != null) { Render.Circle.DrawCircle(target.Position, 175, Color.YellowGreen); } } } catch (Exception) { if (NowTime() > ErrorTime) { Game.PrintChat(ChampName + " in FreshBooster isn't Load. Error Code 03"); ErrorTime = TickCount(10000); } } }
private static void Drawing_OnDraw(EventArgs args) { try { if (Player.IsDead) { return; } if (MainMenu._MainMenu.Item("Draw_Q").GetValue <bool>()) { Render.Circle.DrawCircle(Player.Position, _Q.Range, Color.White, 1); } if (MainMenu._MainMenu.Item("Draw_W").GetValue <bool>()) { Render.Circle.DrawCircle(Player.Position, _W.Range, Color.White, 1); } if (MainMenu._MainMenu.Item("Draw_E").GetValue <bool>()) { Render.Circle.DrawCircle(Player.Position, _E.Range, Color.White, 1); } if (MainMenu._MainMenu.Item("Draw_Ward").GetValue <bool>()) { Render.Circle.DrawCircle(Player.Position, 575, Color.White, 1); } //if (TargetSelector.GetSelectedTarget() != null) Render.Circle.DrawCircle(TargetSelector.GetSelectedTarget().Position, 375, Color.Green, 2); if (MainMenu._MainMenu.Item("InsecKick").GetValue <KeyBind>().Active&& TargetSelector.GetSelectedTarget() != null && MainMenu._MainMenu.Item("PredictR").GetValue <bool>()) { var GetTarget = TargetSelector.GetSelectedTarget(); if (GetTarget == null || GetTarget.IsDead) { return; } var Turrets = ObjectManager.Get <Obj_Turret>() .OrderBy(obj => obj.Position.Distance(Player.Position)) .FirstOrDefault(obj => obj.IsAlly && !obj.IsDead); var AllyChampion = ObjectManager.Get <Obj_AI_Hero>().FirstOrDefault(obj => obj.IsAlly && !obj.IsMe && !obj.IsDead && obj.Distance(Player.Position) < 2000); if (Turrets == null && AllyChampion == null) { return; } if (AllyChampion != null) { var InsecPOS = InsecST.Extend(InsecED, +InsecED.Distance(InsecST) + 230); } Render.Circle.DrawCircle(InsecPOS, 50, Color.Gold); if (GetTarget.Distance(Player.Position) < 575) { Render.Circle.DrawCircle(Player.Position, 475, Color.LightGreen); } else { Render.Circle.DrawCircle(Player.Position, 475, Color.IndianRed); } Drawing.DrawLine(Drawing.WorldToScreen(InsecST)[0], Drawing.WorldToScreen(InsecST)[1], Drawing.WorldToScreen(InsecED)[0], Drawing.WorldToScreen(InsecED)[1], 2, Color.Green); } // test // test } catch (Exception e) { Console.Write(e); Game.PrintChat("FreshLeesin is not working. plz send message by KorFresh (Code 5)"); } }
private void OnGameUpdate(EventArgs args) { if (Player.IsDead) { return; } var KTarget = ObjectManager.Get <AIHeroClient>().OrderByDescending(x => x.Health).FirstOrDefault(x => x.IsEnemy && x.Distance(Player) < 375); if (KTarget != null && _MainMenu.Item("LeeSin_KUse_R").GetValue <bool>() && KTarget.Health < _R.GetDamage(KTarget) && _R.IsReady()) { _R.Cast(KTarget, true); } if (InsecTime < Environment.TickCount) { InsecType = "Wait"; // 인섹킥 초기화 } if (Ward_Time < Environment.TickCount) { WW = true; // 와드방호 초기화 } if (_MainMenu.Item("LeeSin_AutoKick").GetValue <Slider>().Value != 0 && _R.Level > 0 && _R.IsReady() && !_MainMenu.Item("LeeSin_InsecKick").GetValue <KeyBind>().Active) { AutoKick(); } if (_MainMenu.Item("CKey").GetValue <KeyBind>().Active) // Combo { Combo(); var QTarget = TargetSelector.GetTarget(_Q.Range, TargetSelector.DamageType.Physical); var ETarget = TargetSelector.GetTarget(_E.Range, TargetSelector.DamageType.Physical); if (ETarget != null && _E.IsReady() && !Orbwalking.CanAttack() && Orbwalking.CanMove(10) && ETime < Environment.TickCount && _MainMenu.Item("LeeSin_CUse_E").GetValue <bool>()) { _E.Cast(true); ETime = TickCount(1000); } if (!_Q.IsReady() && !_E.IsReady() && !Orbwalking.CanAttack() && Orbwalking.CanMove(10) && WTime < Environment.TickCount && _MainMenu.Item("LeeSin_CUse_W").GetValue <bool>()) { _W.Cast(Player, true); WTime = TickCount(1000); } } if (_MainMenu.Item("HKey").GetValue <KeyBind>().Active) // Hafass { var QTarget = TargetSelector.GetTarget(_Q.Range, TargetSelector.DamageType.Physical); var ETarget = TargetSelector.GetTarget(_E.Range, TargetSelector.DamageType.Physical); if (QTarget != null && _Q.IsReady() && ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Q).Name == "BlindMonkQOne" && _MainMenu.Item("LeeSin_HUse_Q").GetValue <bool>()) { var HC = HitChance.Medium; _Q.CastIfHitchanceEquals(QTarget, HC, true); QTime = TickCount(2000); } if (ETarget != null && _E.IsReady() && !Orbwalking.CanAttack() && Orbwalking.CanMove(10) && ETime < Environment.TickCount && _MainMenu.Item("LeeSin_HUse_E").GetValue <bool>()) { _E.Cast(true); ETime = TickCount(1000); } if (!_Q.IsReady() && !_E.IsReady() && !Orbwalking.CanAttack() && Orbwalking.CanMove(10) && WTime < Environment.TickCount && _MainMenu.Item("LeeSin_HUse_W").GetValue <bool>()) { _W.Cast(Player, true); WTime = TickCount(1000); } } if (_MainMenu.Item("LKey").GetValue <KeyBind>().Active) // LaneClear { var MinionTarget = MinionManager.GetMinions(1100, MinionTypes.All, MinionTeam.Enemy, MinionOrderTypes.Health); foreach (var minion in MinionTarget) { if (_Q.IsReady() && _MainMenu.Item("LeeSin_LUse_Q").GetValue <bool>() && minion != null && Environment.TickCount > QTime) { _Q.CastIfHitchanceEquals(minion, HitChance.Medium, true); QTime = TickCount(1000); } if (_E.IsReady() && _MainMenu.Item("LeeSin_LUse_E").GetValue <bool>() && minion != null && Environment.TickCount > ETime && !Orbwalking.CanAttack() && Orbwalking.CanMove(10)) { _E.Cast(true); ETime = TickCount(1000); } if (_W.IsReady() && _MainMenu.Item("LeeSin_LUse_W").GetValue <bool>() && minion != null && Environment.TickCount > WTime && !Orbwalking.CanAttack() && Orbwalking.CanMove(10)) { _W.Cast(Player, true); WTime = TickCount(1000); } } } if (_MainMenu.Item("JKey").GetValue <KeyBind>().Active) // JungleClear { var JungleTarget = MinionManager.GetMinions(1100, MinionTypes.All, MinionTeam.Neutral, MinionOrderTypes.MaxHealth); foreach (var minion in JungleTarget) { if (_Q.IsReady() && _MainMenu.Item("LeeSin_JUse_Q").GetValue <bool>() && minion != null && Environment.TickCount > QTime) { _Q.CastIfHitchanceEquals(minion, HitChance.Medium, true); QTime = TickCount(1500); } if (_E.IsReady() && _MainMenu.Item("LeeSin_JUse_E").GetValue <bool>() && minion != null && Environment.TickCount > ETime && !Orbwalking.CanAttack() && Orbwalking.CanMove(10)) { _E.Cast(true); ETime = TickCount(1500); } if (_W.IsReady() && _MainMenu.Item("LeeSin_JUse_W").GetValue <bool>() && minion != null && Environment.TickCount > WTime && !Orbwalking.CanAttack() && Orbwalking.CanMove(10)) { _W.Cast(Player, true); WTime = TickCount(1500); } } } if (_MainMenu.Item("LeeSin_InsecKick").GetValue <KeyBind>().Active) // 인섹킥 { ObjectManager.Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPosCenter); var GetTarget = TargetSelector.SelectedTarget; if (GetTarget == null || GetTarget.IsDead) { return; } if (_Q.IsReady() && ObjectManager.Player.Spellbook.GetSpell(SpellSlot.Q).Name == "BlindMonkQOne" && _Q.GetPrediction(GetTarget).Hitchance >= HitChance.Medium) { _Q.CastOnUnit(GetTarget, true); } var Turrets = ObjectManager.Get <Obj_Turret>() .OrderBy(obj => obj.Position.Distance(Player.Position)) .FirstOrDefault(obj => obj.IsAlly && obj.Health > 1); var AllyChampion = ObjectManager.Get <AIHeroClient>().FirstOrDefault(obj => obj.IsAlly && !obj.IsMe && !obj.IsDead && obj.Distance(Player.Position) < 2000); if (Turrets == null && AllyChampion == null) { return; } if (AllyChampion != null) { InsecST = AllyChampion.Position; } else { InsecST = Turrets.Position; } InsecED = GetTarget.Position; InsecPOS = InsecST.Extend(InsecED, +InsecED.Distance(InsecST) + 230); MovingPlayer(InsecPOS); if (!_R.IsReady()) { return; } if (_MainMenu.Item("LeeSin_KickAndFlash").GetValue <bool>() && InsecPOS.Distance(Player.Position) < 425 && GetTarget.Distance(Player.Position) < 375 && InsecType == "Wait" && _R.Level > 0 && _R.IsReady() && InsecType != "WF" && InsecType != "WF1" && Player.GetSpellSlot("SummonerFlash").IsReady()) { InsecTime = TickCount(2000); InsecText = "Flash"; InsecType = "RF"; _R.Cast(GetTarget, true); return; } if (InsecPOS.Distance(Player.Position) < 625 && _R.Level > 0 && _R.IsReady() && InsecType != "RF") { InsecText = "Ward"; if (InsecType == "Wait" && InsecType != "WF" && InsecType != "WF1" && _W.IsReady()) { if (ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Name == "blindmonkwtwo") { return; } InsecTime = TickCount(2000); InsecType = "WF"; var Ward = Items.GetWardSlot(); Player.Spellbook.CastSpell(Ward.SpellSlot, InsecPOS); } if (InsecType == "WF" && _W.IsReady()) { if (ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Name == "blindmonkwtwo") { return; } var WardObj = ObjectManager.Get <AIBaseClient>() // 커서근처 와드 유무 .OrderBy(obj => obj.Distance(InsecPOS)) .FirstOrDefault(obj => obj.IsAlly && !obj.IsMe && obj.Distance(InsecPOS) <= 110 && obj.Name.ToLower().Contains("ward")); if (WardObj != null) { InsecType = "WF1"; _W.Cast(WardObj, true); } } if (InsecType == "WF1") { if (GetTarget.Distance(Player.Position) < 375) { _R.Cast(GetTarget, true); } else { EnsoulSharp.Player.IssueOrder(GameObjectOrder.MoveTo, Game.CursorPosCenter); } } return; } // 플 425, 와드 625 } if (_MainMenu.Item("LeeSin_Ward_W").GetValue <KeyBind>().Active) // 와드 방호 { //와드방호는 WW로 정의 var Cursor = Game.CursorPosCenter; var Ward = Items.GetWardSlot(); EnsoulSharp.Player.IssueOrder(GameObjectOrder.MoveTo, Cursor); if (ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Name.ToLower() == "BlindMonkWTwo") { return; } if (Player.Distance(Cursor) > 700) { Cursor = Game.CursorPosCenter.Extend(Player.Position, +Player.Distance(Game.CursorPosCenter) - 700); } //Render.Circle.DrawCircle(Cursor, 50, Color.Black, 2); //Drawing.DrawText(200, 200, Color.White, "WW is: " + WW.ToString()); if (_W.IsReady() && ObjectManager.Player.Spellbook.GetSpell(SpellSlot.W).Name.ToLower() == "BlindMonkWOne") { var Object = ObjectManager.Get <AIHeroClient>().FirstOrDefault(obj => obj.IsAlly && !obj.IsMe && obj.Distance(Cursor) < 110); // 커서근처 챔프유무 var Minion = MinionManager.GetMinions(Cursor, 110, MinionTypes.All, MinionTeam.Ally); // 아군 미니언 유무 var WardObj = ObjectManager.Get <AIBaseClient>() // 커서근처 와드 유무 .OrderBy(obj => obj.Distance(Cursor)) .FirstOrDefault(obj => obj.IsAlly && !obj.IsMe && obj.Distance(Cursor) <= 110 && obj.Name.ToLower().Contains("ward")); if (WardObj != null && WTime < Environment.TickCount) { _W.Cast(WardObj, true); Ward_Time = TickCount(2000); WW = true; WTime = TickCount(2000); return; } if (Object != null && WTime < Environment.TickCount) { _W.Cast(Object, true); Ward_Time = TickCount(2000); WW = true; WTime = TickCount(2000); return; } if (Minion != null && WTime < Environment.TickCount) { foreach (var minion in Minion) { if (minion != null) { _W.Cast(minion, true); Ward_Time = TickCount(2000); WW = true; WTime = TickCount(2000); return; } } } if (Player.Distance(Cursor) > 625) { Cursor = Game.CursorPosCenter.Extend(Player.Position, +Player.Distance(Game.CursorPosCenter) - 625); } //Render.Circle.DrawCircle(Cursor, 50, Color.Black, 2); if (WW && Ward != null && Ward_Time < Environment.TickCount) { Player.Spellbook.CastSpell(Ward.SpellSlot, Cursor); WW = false; Ward_Time = TickCount(2000); } WardObj = ObjectManager.Get <AIBaseClient>() // 커서근처 와드 유무 .OrderBy(obj => obj.Distance(Cursor)) .FirstOrDefault(obj => obj.IsAlly && !obj.IsMe && obj.Distance(Cursor) <= 110 && obj.Name.ToLower().Contains("ward")); if (WardObj != null && WTime < Environment.TickCount) { _W.Cast(WardObj, true); Ward_Time = TickCount(2000); WW = true; WTime = TickCount(2000); return; } } } }