Ejemplo n.º 1
0
        private static void Drawing_OnDraw(EventArgs args)
        {
            SpellDataInstClient spellQ = Player.Spellbook.GetSpell(SpellSlot.Q);
            SpellData           dataQ  = Player.Spellbook.GetSpell(SpellSlot.Q).SData;
            SpellDataInstClient spellW = Player.Spellbook.GetSpell(SpellSlot.W);
            SpellData           dataW  = Player.Spellbook.GetSpell(SpellSlot.W).SData;
            SpellDataInstClient spellE = Player.Spellbook.GetSpell(SpellSlot.E);
            SpellData           dataE  = Player.Spellbook.GetSpell(SpellSlot.E).SData;
            SpellDataInstClient spellR = Player.Spellbook.GetSpell(SpellSlot.R);
            SpellData           dataR  = Player.Spellbook.GetSpell(SpellSlot.R).SData;
            var    playerC             = Player.Crit.ToString();
            var    playerC1            = playerC.Replace("0 ", "") + "%";
            string bufferious          = "";

            foreach (var buff in Player.Buffs)
            {
                bufferious += (buff.Name + "(" + buff.Count + ")" + ", ");
            }


            Drawing.DrawText(150, 40, Color.Orange, "Dev Essentials by BehroozUAC");
            Drawing.DrawText(150, 60, Color.White, "Coordinates:");
            Drawing.DrawText(150, 75, Color.White, Player.Position.ToString());
            Drawing.DrawText(150, 145, Color.Yellow, "General Info:");
            Drawing.DrawText(150, 170, Color.White, "Gold Earned: " + Player.GoldTotal.ToString());
            Drawing.DrawText(150, 185, Color.White, "Attack Delay: " + Player.AttackDelay.ToString());
            Drawing.DrawText(150, 200, Color.White, "Chance of Critical: " + playerC);

            Drawing.DrawText(150, 225, Color.White, "Player Direction:");
            Drawing.DrawText(150, 240, Color.White, Player.Direction.ToString());
            Drawing.DrawText(150, 265, Color.White, "Base AD: " + Player.BaseAttackDamage.ToString());
            Drawing.DrawText(150, 280, Color.White, "Base AP: " + Player.BaseAbilityDamage.ToString());
            Drawing.DrawText(150, 325, Color.White, "Cursor Position: " + Game.CursorPosRaw.ToString());
            Drawing.DrawText(150, 450, Color.White, "Buffs: ");
            Drawing.DrawText(150, 465, Color.White, bufferious.ToString());


            Drawing.DrawText(500, 40, Color.Yellow, "Skill Info:");
            Drawing.DrawText(500, 70, Color.White, "Q: ");
            Drawing.DrawText(500, 80, Color.Yellow, "--------");
            Drawing.DrawText(500, 90, Color.White, "Name: " + spellQ.Name.ToString());
            Drawing.DrawText(500, 105, Color.White, "Level: " + spellQ.Level.ToString());
            Drawing.DrawText(500, 120, Color.White, "Range: " + spellQ.SData.CastRange.ToString());
            Drawing.DrawText(500, 170, Color.White, "W: ");
            Drawing.DrawText(500, 180, Color.Yellow, "--------");
            Drawing.DrawText(500, 190, Color.White, "Name: " + spellW.Name.ToString());
            Drawing.DrawText(500, 200, Color.White, "Level: " + spellW.Level.ToString());
            Drawing.DrawText(500, 210, Color.White, "Range: " + spellW.SData.CastRange.ToString());
            Drawing.DrawText(500, 250, Color.White, "E: ");
            Drawing.DrawText(500, 260, Color.Yellow, "--------");
            Drawing.DrawText(500, 275, Color.White, "Name: " + spellE.Name.ToString());
            Drawing.DrawText(500, 290, Color.White, "Level: " + spellE.Level.ToString());
            Drawing.DrawText(500, 305, Color.White, "Range: " + spellE.SData.CastRange.ToString());
            Drawing.DrawText(500, 350, Color.White, "R: ");
            Drawing.DrawText(500, 360, Color.Yellow, "--------");
            Drawing.DrawText(500, 380, Color.White, "Name: " + spellR.Name.ToString());
            Drawing.DrawText(500, 400, Color.White, "Level: " + spellR.Level.ToString());
            Drawing.DrawText(500, 420, Color.White, "Range: " + spellR.SData.CastRange.ToString());
        }
Ejemplo n.º 2
0
 /// <summary>
 ///     Returns if the spell is ready to use.
 /// </summary>
 /// <param name="spell">Spell Data Instance</param>
 /// <param name="t">Time Left</param>
 /// <returns>Is Spell Ready to use</returns>
 public static bool IsReady(this SpellDataInstClient spell, int t = 0)
 {
     return((spell != null) &&
            (spell.Slot != SpellSlot.Unknown && t == 0
                    ? spell.State == SpellState.Ready
                    : (spell.State == SpellState.Ready ||
                       (spell.State == SpellState.Cooldown && (spell.CooldownExpires - Game.Time) <= t / 1000f))));
 }
Ejemplo n.º 3
0
        public void InitializeSpells()
        {
            try
            {
                q = new Spell(SpellSlot.Q, 1100);
                w = new Spell(SpellSlot.W);
                e = new Spell(SpellSlot.E, 525);
                r = new Spell(SpellSlot.R, 800);

                q.SetSkillshot(0.25f, 90, 2000, true, SkillshotType.SkillshotLine);

                ignite = ObjectManager.Player.Spellbook.GetSpell(ObjectManager.Player.GetSpellSlot("summonerdot"));
            }
            catch (Exception exception)
            {
                Console.WriteLine("Could not load the spells - {0}", exception);
            }
        }
Ejemplo n.º 4
0
        public Zed()
        {
            try
            {
                _q = new Spell(SpellSlot.Q, 900f);
                _w = new Spell(SpellSlot.W, 700f);
                _e = new Spell(SpellSlot.E, 270f);
                _r = new Spell(SpellSlot.R, 650f);

                _q.SetSkillshot(0.25f, 50f, 1700f, false, false, SkillshotType.Line);

                _bilge      = new Items.Item(3144, 475f);
                _blade      = new Items.Item(3153, 425f);
                _hydra      = new Items.Item(3074, 250f);
                _tiamat     = new Items.Item(3077, 250f);
                _rand       = new Items.Item(3143, 490f);
                _lotis      = new Items.Item(3190, 590f);
                _youmuu     = new Items.Item(3142, 10);
                _titanic    = new Items.Item((int)ItemId.Titanic_Hydra, 250f);
                _igniteSlot = _player.GetSpellSlot("SummonerDot");

                var enemy = from hero in ObjectManager.Get <AIHeroClient>()
                            where hero.IsEnemy == true
                            select hero;
                // Just menu things test
                _config = new Menu("Zed", "DH.Zed", true);


                //Combo
                _config.Add(new Menu("Combo", "Combo"));
                ((Menu)_config["Combo"]).Add(new MenuBool("UseWC", "Use W (also gap close)"));
                ((Menu)_config["Combo"]).Add(new MenuBool("UseIgnitecombo", "Use Ignite(rush for it)"));
                ((Menu)_config["Combo"]).Add(new MenuBool("UseUlt", "Use Ultimate"));
                ((Menu)_config["Combo"]).Add(new MenuKeyBind("ActiveCombo", "Combo!", Keys.Space, KeyBindType.Press));
                ((Menu)_config["Combo"])
                .Add(new MenuKeyBind("TheLine", "The Line Combo", Keys.T, KeyBindType.Press));

                //Harass
                _config.Add(new Menu("Harass", "Harass"));
                ((Menu)_config["Harass"]).Add(new MenuKeyBind("longhar", "Long Poke (toggle)", Keys.U, KeyBindType.Toggle));
                ((Menu)_config["Harass"]).Add(new MenuBool("UseItemsharass", "Use Tiamat/Hydra"));
                ((Menu)_config["Harass"]).Add(new MenuBool("UseWH", "Use W"));
                ((Menu)_config["Harass"])
                .Add(
                    new MenuKeyBind("ActiveHarass", "Harass!", Keys.C, KeyBindType.Press));

                //items
                _config.Add(new Menu("items", "items"));
                ((Menu)_config["items"]).Add(new Menu("Offensive", "Offensive"));
                ((Menu)_config["items"]["Offensive"]).Add(new MenuBool("Youmuu", "Use Youmuu's"));
                ((Menu)_config["items"]["Offensive"]).Add(new MenuBool("Tiamat", "Use Tiamat"));
                ((Menu)_config["items"]["Offensive"]).Add(new MenuBool("Hydra", "Use Hydra"));
                ((Menu)_config["items"]["Offensive"]).Add(new MenuBool("Bilge", "Use Bilge"));
                ((Menu)_config["items"]["Offensive"])
                .Add(new MenuSlider("BilgeEnemyhp", "If Enemy Hp <", 85, 1, 100));
                ((Menu)_config["items"]["Offensive"])
                .Add(new MenuSlider("Bilgemyhp", "Or your Hp < ", 85, 1, 100));
                ((Menu)_config["items"]["Offensive"]).Add(new MenuBool("Blade", "Use Blade"));
                ((Menu)_config["items"]["Offensive"])
                .Add(new MenuSlider("BladeEnemyhp", "If Enemy Hp <", 85, 1, 100));
                ((Menu)_config["items"]["Offensive"])
                .Add(new MenuSlider("Blademyhp", "Or Your  Hp <", 85, 1, 100));
                ((Menu)_config["items"]).Add(new Menu("Deffensive", "Deffensive"));
                ((Menu)_config["items"]["Deffensive"])
                .Add(new MenuBool("Omen", "Use Randuin Omen"))
                ;
                ((Menu)_config["items"]["Deffensive"])
                .Add(new MenuSlider("Omenenemys", "Randuin if enemys>", 2, 1, 5));
                ((Menu)_config["items"]["Deffensive"])
                .Add(new MenuBool("lotis", "Use Iron Solari"))
                ;
                ((Menu)_config["items"]["Deffensive"])
                .Add(new MenuSlider("lotisminhp", "Solari if Ally Hp<", 35, 1, 100));

                //Farm
                _config.Add(new Menu("Farm", "Farm"));
                ((Menu)_config["Farm"]).Add(new Menu("LaneFarm", "LaneFarm"));
                ((Menu)_config["Farm"]["LaneFarm"])
                .Add(new MenuBool("UseItemslane", "Use Hydra/Tiamat"))
                ;
                ((Menu)_config["Farm"]["LaneFarm"]).Add(new MenuBool("UseQL", "Q LaneClear"));
                ((Menu)_config["Farm"]["LaneFarm"]).Add(new MenuBool("UseEL", "E LaneClear"));
                ((Menu)_config["Farm"]["LaneFarm"])
                .Add(new MenuSlider("Energylane", "Energy Lane% >", 45, 1, 100));
                ((Menu)_config["Farm"]["LaneFarm"])
                .Add(
                    new MenuKeyBind("Activelane", "Lane clear!", Keys.S, KeyBindType.Press));

                ((Menu)_config["Farm"]).Add(new Menu("LastHit", "LastHit"));
                ((Menu)_config["Farm"]["LastHit"]).Add(new MenuBool("UseQLH", "Q LastHit"));
                ((Menu)_config["Farm"]["LastHit"]).Add(new MenuBool("UseELH", "E LastHit"));
                ((Menu)_config["Farm"]["LastHit"])
                .Add(new MenuSlider("Energylast", "Energy lasthit% >", 85, 1, 100));
                ((Menu)_config["Farm"]["LastHit"])
                .Add(
                    new MenuKeyBind("ActiveLast", "LastHit!", Keys.X, KeyBindType.Press));

                ((Menu)_config["Farm"]).Add(new Menu("Jungle", "Jungle"));
                ((Menu)_config["Farm"]["Jungle"])
                .Add(new MenuBool("UseItemsjungle", "Use Hydra/Tiamat"))
                ;
                ((Menu)_config["Farm"]["Jungle"]).Add(new MenuBool("UseQJ", "Q Jungle"));
                ((Menu)_config["Farm"]["Jungle"]).Add(new MenuBool("UseWJ", "W Jungle"));
                ((Menu)_config["Farm"]["Jungle"]).Add(new MenuBool("UseEJ", "E Jungle"));
                ((Menu)_config["Farm"]["Jungle"])
                .Add(new MenuSlider("Energyjungle", "Energy Jungle% >", 85, 1, 100));
                ((Menu)_config["Farm"]["Jungle"])
                .Add(
                    new MenuKeyBind("Activejungle", "Jungle!", Keys.S, KeyBindType.Press));

                //Misc
                _config.Add(new Menu("Misc", "Misc"));
                ((Menu)_config["Misc"]).Add(new MenuBool("UseIgnitekill", "Use Ignite KillSteal"));
                ((Menu)_config["Misc"]).Add(new MenuBool("UseQM", "Use Q KillSteal"));
                ((Menu)_config["Misc"]).Add(new MenuBool("UseEM", "Use E KillSteal"));
                ((Menu)_config["Misc"]).Add(new MenuBool("AutoE", "Auto E"));
                ((Menu)_config["Misc"]).Add(new MenuBool("rdodge", "R Dodge Dangerous"));
                foreach (var e in enemy)
                {
                    SpellDataInstClient rdata = e.Spellbook.GetSpell(SpellSlot.R);
                    if (DangerDB.DangerousList.Any(spell => spell.Contains(rdata.SData.Name)))
                    {
                        ((Menu)_config["Misc"]).Add(new MenuBool("ds" + e.CharacterName, rdata.SData.Name));
                    }
                }


                //Drawings
                _config.Add(new Menu("Drawings", "Drawings"));
                ((Menu)_config["Drawings"]).Add(new MenuBool("DrawQ", "Draw Q"));
                ((Menu)_config["Drawings"]).Add(new MenuBool("DrawE", "Draw E"));
                ((Menu)_config["Drawings"]).Add(new MenuBool("DrawQW", "Draw long harras"));
                ((Menu)_config["Drawings"]).Add(new MenuBool("DrawR", "Draw R"));
                ((Menu)_config["Drawings"]).Add(new MenuBool("DrawHP", "Draw HP bar"));
                ((Menu)_config["Drawings"]).Add(new MenuBool("shadowd", "Shadow Position"));
                ((Menu)_config["Drawings"]).Add(new MenuBool("damagetest", "Damage Text"));
                ((Menu)_config["Drawings"]).Add(new MenuBool("CircleLag", "Lag Free Circles"));
                ((Menu)_config["Drawings"])
                .Add(new MenuSlider("CircleQuality", "Circles Quality", 100, 10, 100));
                ((Menu)_config["Drawings"])
                .Add(new MenuSlider("CircleThickness", "Circles Thickness", 1, 1, 10));
                _config.Attach();
                //new AssassinManager();
                //new DamageIndicator();

                //DamageIndicator.DamageToUnit = ComboDamage;
                //Game.PrintChat("<font color='#881df2'>Zed is Back by jackisback</font> Loaded.");
                //Game.PrintChat("<font color='#f2881d'>if you wanna help me to pay my internet bills^^ paypal= [email protected]</font>");

                Drawing.OnDraw        += Drawing_OnDraw;
                Game.OnTick           += Game_OnUpdate;
                AIBaseClient.OnDoCast += OnProcessSpell;
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                Chat.Print("Error something went wrong");
            }
        }
Ejemplo n.º 5
0
        private static void Game_OnGameLoad()
        {
            try
            {
                zedlogo = new Render.Sprite(LoadImg("zedlogo"), new Vector2(Drawing.Width / 2 - 500, Drawing.Height / 2 - 350));
                zedlogo.Add(0);
                zedlogo.OnDraw();

                DelayAction.Add(7000, () => zedlogo.Remove());

                _player = ObjectManager.Player;
                if (ObjectManager.Player.CharacterName != ChampionName)
                {
                    return;
                }
                _q = new Spell(SpellSlot.Q, 900f);
                _w = new Spell(SpellSlot.W, 700f);
                _e = new Spell(SpellSlot.E, 270f);
                _r = new Spell(SpellSlot.R, 650f);

                _q.SetSkillshot(0.25f, 50f, 1700f, false, SkillshotType.Line);

                _bilge      = new Items.Item(3144, 475f);
                _blade      = new Items.Item(3153, 425f);
                _hydra      = new Items.Item(3074, 250f);
                _tiamat     = new Items.Item(3077, 250f);
                _rand       = new Items.Item(3143, 490f);
                _lotis      = new Items.Item(3190, 590f);
                _youmuu     = new Items.Item(3142, 10);
                _igniteSlot = _player.GetSpellSlot("SummonerDot");
                var enemy = from hero in ObjectManager.Get <AIHeroClient>()
                            where hero.IsEnemy == true
                            select hero;



                var _config = new Menu("zedisback", "011110001.Zed", true);
                var combo   = new Menu("combat", "[COMBO] Settings");
                combo.Add(_combo.Ult);
                combo.Add(_combo.Wgap);
                combo.Add(_combo.Ig);
                combo.Add(_combo.Cmode);

                var harass = new Menu("harass", "[HARASS] Settings");
                harass.Add(_harass.Wh);
                harass.Add(_harass.energia);

                var clear = new Menu("clear", "[LANE CLEAR] Settings");
                clear.Add(_clear.Qlane);
                clear.Add(_clear.Elane);
                clear.Add(_clear.energia);

                var misc = new Menu("clear", "[MISC] Settings");
                misc.Add(_misc.Qks);
                misc.Add(_misc.Eks);

                var dodge = new Menu("dodge", "[ULTIMATE] Settings");

                foreach (var e in enemy)
                {
                    SpellDataInstClient rdata = e.Spellbook.GetSpell(SpellSlot.R);
                    if (DangerDB.DangerousList.Any(spell => spell.Contains(rdata.SData.Name)))
                    {
                        dodge.Add(new MenuBool(rdata.SData.Name, rdata.SData.Name));
                    }
                }

                _config.Add(combo);
                _config.Add(harass);
                _config.Add(clear);
                _config.Add(misc);
                _config.Add(dodge);
                _config.Attach();


                Game.OnUpdate  += Game_OnUpdate;
                Drawing.OnDraw += Drawing_OnDraw;
                //AIBaseClient.OnProcessSpellCast += OnProcessSpell;
            }
            catch
            {
            }
        }