NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;
using EloBuddy;
using EloBuddy.SDK;
using EloBuddy.SDK.Constants;
using EloBuddy.SDK.Enumerations;
using EloBuddy.SDK.Events;
using EloBuddy.SDK.Menu;
using EloBuddy.SDK.Menu.Values;

namespace ZombieAmumu
{
internal class Program
{
public static Spell.Skillshot Q;
public static Spell.Active W;
public static Spell.Active E;
public static Spell.Active R;
public static Menu ZombieAmumu, ComboMenu, DrawMenu, MiscMenu, QMenu;
public static AIHeroClient Me = ObjectManager.Player;
public static HitChance QHitChance;

private static void Main(string[] args)
{
Loading.OnLoadingComplete += OnLoaded;
}

public static AIHeroClient _Player
{
get { return ObjectManager.Player; }
}

private static void OnLoaded(EventArgs args)
{
Bootstrap.Init(null);
Q = new Spell.Skillshot(SpellSlot.Q, 1050, SkillShotType.Linear, (int)250f, (int)2000f, (int)80f);
W = new Spell.Active(SpellSlot.W, 300);
E = new Spell.Active(SpellSlot.E, 350);
R = new Spell.Active(SpellSlot.R, 550);

ZombieAmumu = MainMenu.AddMenu("ZombieAmumu", "zombieamumu");
ZombieAmumu.AddGroupLabel("ZombieAmumu");
ZombieAmumu.AddSeparator();
ZombieAmumu.AddLabel("Made by Clyde for EloBuddy users! :)");

ComboMenu = ZombieAmumu.AddSubMenu("Combo", "SpaceBarToWin");
ComboMenu.AddGroupLabel("Combo Settings");
ComboMenu.AddSeparator();
ComboMenu.Add("usecomboq", new CheckBox("Use Q"));
ComboMenu.Add("usecombow", new CheckBox("Use W"));
ComboMenu.Add("usecomboe", new CheckBox("Use E"));
ComboMenu.Add("usecombor", new CheckBox("Use R"));
ComboMenu.AddSeparator();
ComboMenu.Add("rslider", new Slider("Minimum people for R", 1, 0, 5));

DrawMenu = ZombieAmumu.AddSubMenu("Drawings", "drawings");
DrawMenu.AddGroupLabel("Drawings");
DrawMenu.AddSeparator();
DrawMenu.Add("drawq", new CheckBox("Draw Q"));
DrawMenu.Add("drawr", new CheckBox("Draw R"));

MiscMenu = ZombieAmumu.AddSubMenu("Misc", "misc");
MiscMenu.AddGroupLabel("KS");
MiscMenu.AddSeparator();
MiscMenu.Add("kse", new CheckBox("KS with E"));
MiscMenu.Add("ksr", new CheckBox("KS with R"));
MiscMenu.AddSeparator();
MiscMenu.AddGroupLabel("Interrupt");
MiscMenu.AddSeparator();
MiscMenu.Add("intq", new CheckBox("Use Q to Interrupt"));

QMenu = ZombieAmumu.AddSubMenu("Q Settings", "qsettings");
QMenu.AddGroupLabel("Q Settings");
QMenu.AddSeparator();
QMenu.Add("qmin", new Slider("Min Range", 255, 0, (int)Q.Range));
QMenu.Add("qmax", new Slider("Max Range", (int)Q.Range, 0, (int)Q.Range));
QMenu.AddSeparator();
foreach (var obj in ObjectManager.Get<AIHeroClient>().Where(obj => obj.Team != Me.Team))
{
QMenu.Add("bind" + obj.ChampionName.ToLower(), new CheckBox("Bind " + obj.ChampionName));
}
QMenu.AddSeparator();
QMenu.Add("mediumpred", new CheckBox("More Q"));

Game.OnTick += Tick;
Drawing.OnDraw += OnDraw;
}

private static void OnDraw(EventArgs args)
{
if (!Me.IsDead)
{
if (DrawMenu["drawq"].Cast<CheckBox>().CurrentValue && Q.IsLearned)
{
Drawing.DrawCircle(Me.Position, Q.Range, Color.White);
}
if (DrawMenu["drawr"].Cast<CheckBox>().CurrentValue && R.IsLearned)
{
Drawing.DrawCircle(Me.Position, R.Range, Color.White);
}
}
}

private static void Tick(EventArgs args)
{
QHitChance = QMenu["mediumpred"].Cast<CheckBox>().CurrentValue ? HitChance.Medium : HitChance.High;
KillSecure();
if (Orbwalker.ActiveModesFlags == Orbwalker.ActiveModes.Combo)
{
Combo(ComboMenu["usecomboq"].Cast<CheckBox>().CurrentValue,
ComboMenu["usecomboe"].Cast<CheckBox>().CurrentValue,
ComboMenu["usecombor"].Cast<CheckBox>().CurrentValue);
}
}

public static float EDamage(Obj_AI_Base target)
{
return _Player.CalculateDamageOnUnit(target, DamageType.Magical,
(float)(new[] { 75, 100, 125, 150, 175 }[Program.E.Level] + 0.5 * _Player.FlatMagicDamageMod));
}

public static float RDamage(Obj_AI_Base target)
{
return _Player.CalculateDamageOnUnit(target, DamageType.Magical,
(float)(new[] { 150, 250, 350 }[Program.R.Level] + 0.8 * _Player.FlatMagicDamageMod));
}

private static void KillSecure()
{
if (R.IsReady() && MiscMenu["ksr"].Cast<CheckBox>().CurrentValue)
{
foreach (var rtarget in HeroManager.Enemies.Where(hero => hero.IsValidTarget(R.Range) && !hero.IsDead && !hero.IsZombie))
{
if (Me.GetSpellDamage(rtarget, SpellSlot.R) >= rtarget.Health)
{
R.Cast();
if (MiscMenu["ksr"].Cast<CheckBox>().CurrentValue)
{
Chat.Print("KS Succesful with R");
}
}
}

if (E.IsReady() && MiscMenu["kse"].Cast<CheckBox>().CurrentValue)
{
foreach (var etarget in HeroManager.Enemies.Where(hero => hero.IsValidTarget(E.Range) && !hero.IsDead && !hero.IsZombie))
{
if (Me.GetSpellDamage(etarget, SpellSlot.E) >= etarget.Health)
{
E.Cast();
if (MiscMenu["kse"].Cast<CheckBox>().CurrentValue)
{
Chat.Print("KS Succesful with E");
}
}
}
}
}
}


private static void Interrupt(Obj_AI_Base sender, Interrupter.InterruptableSpellEventArgs e)
{
if (MiscMenu["intq"].Cast<CheckBox>().CurrentValue && Q.IsReady())
{
if (sender.Distance(Me, true) <= Q.RangeSquared)
{
var pred = Q.GetPrediction(sender);
if (pred.HitChance >= HitChance.Low)
{
Q.Cast(pred.CastPosition);
}
}
}
}

private static void OrbwalkerPreAttack(AttackableUnit target, Orbwalker.PreAttackArgs args)
{
if (W.IsReady() && ComboMenu["usecombow"].Cast<CheckBox>().CurrentValue)
W.Cast();
}

private static void Combo(bool shoulduseQ, bool shoulduseE, bool shoulduseR)
{

if (shoulduseQ && Q.IsReady())
{
try
{

var bindTarget = TargetSelector.GetTarget(Q.Range, DamageType.Magical);
if (bindTarget.IsValidTarget(Q.Range))
{
if (Q.GetPrediction(bindTarget).HitChance >= QHitChance)
{
if (bindTarget.Distance(Me.ServerPosition) > QMenu["qmin"].Cast<Slider>().CurrentValue)
{
if (QMenu["bind" + bindTarget.ChampionName].Cast<CheckBox>().CurrentValue)
{
Q.Cast(bindTarget);
}
}
}
}
}
catch
{
}
if (shoulduseR && R.IsReady() &&
Me.CountEnemiesInRange(R.Range) >= ComboMenu["rslider"].Cast<Slider>().CurrentValue)
{
R.Cast();
}
}
}
}
}
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.