Ejemplo n.º 1
0
        public static void Chasing(EventArgs args)
        {
            var me = ObjectMgr.LocalHero;

            if (!Game.IsInGame || me.ClassID != ClassID.CDOTA_Unit_Hero_Broodmother || me == null)
            {
                return;
            }
            if (activChase)
            {
                var target      = me.ClosestToMouseTarget(1500);
                var Spiderlings = ObjectMgr.GetEntities <Unit>().Where(spiderlings => spiderlings.ClassID == ClassID.CDOTA_Unit_Broodmother_Spiderling).ToList();
                {
                    if (target != null && target.IsAlive && !target.IsIllusion)
                    {
                        foreach (var Spider in Spiderlings)
                        {
                            if (Spider.Distance2D(target) <= 1000 && Utils.SleepCheck(Spider.Handle.ToString()))
                            {
                                Spider.Attack(target);
                                Utils.Sleep(900, Spider.Handle.ToString());
                            }
                        }
                    }
                    else
                    {
                        foreach (var Spider in Spiderlings)
                        {
                            if (Utils.SleepCheck(Spider.Handle.ToString()))
                            {
                                Spider.Move(Game.MousePosition);
                                Utils.Sleep(900, Spider.Handle.ToString());
                            }
                        }
                    }
                }
            }
        }
Ejemplo n.º 2
0
 private static void Chasing()
 {
     if (Utils.SleepCheck("All"))
     {
         var me          = ObjectMgr.LocalHero;
         var target      = me.ClosestToMouseTarget(1500);
         var Spiderlings = ObjectMgr.GetEntities <Unit>().Where(spiderlings => spiderlings.ClassID == ClassID.CDOTA_Unit_Broodmother_Spiderling).ToList();
         {
             if (target != null && target.IsAlive && !target.IsIllusion && chasing.isActive)
             {
                 {
                     foreach (var Spider in Spiderlings)
                     {
                         if (Spider.Distance2D(target) <= 1000 && (Utils.SleepCheck("combo")))
                         {
                             Spider.Attack(target);
                         }
                     }
                     Utils.Sleep(750, "combo");
                 }
             }
             else
             {
                 if (Utils.SleepCheck("combo"))
                 {
                     foreach (var Spider in Spiderlings)
                     {
                         Spider.Move(Game.MousePosition);
                     }
                 }
                 Utils.Sleep(750, "combo");
             }
         }
     }
     Utils.Sleep(350, "All");
 }
Ejemplo n.º 3
0
        public static void ChasingAll(EventArgs args)
        {
            var me = ObjectMgr.LocalHero;

            if (!Game.IsInGame || me.ClassID != ClassID.CDOTA_Unit_Hero_Broodmother || me == null)
            {
                return;
            }
            var target = me.ClosestToMouseTarget(1900);

            if (activCombo && target != null && target.IsAlive && !target.IsIllusion)
            {
                var Spiderlings = ObjectMgr.GetEntities <Unit>().Where(spiderlings => spiderlings.ClassID == ClassID.CDOTA_Unit_Broodmother_Spiderling).ToList();

                foreach (var Spider in Spiderlings)
                {
                    if (Spider.Distance2D(target) <= 1500 && Utils.SleepCheck(Spider.Handle.ToString()))
                    {
                        Spider.Attack(target);
                        Utils.Sleep(900, Spider.Handle.ToString());
                    }
                }
                foreach (var Spider in Spiderlings)
                {
                    if (Spider.Distance2D(target) >= 1500 && Utils.SleepCheck(Spider.Handle.ToString()))
                    {
                        Spider.Move(Game.MousePosition);
                        Utils.Sleep(900, Spider.Handle.ToString());
                    }
                }


                var linkens = target.Modifiers.Any(x => x.Name == "modifier_item_spheretarget") || target.Inventory.Items.Any(x => x.Name == "item_sphere");

                var enemies = ObjectMgr.GetEntities <Hero>().Where(hero => hero.IsAlive && !hero.IsIllusion && hero.IsVisible && hero.Team != me.Team).ToList();
                if (target != null && target.IsAlive && !target.IsIllusion && me.Distance2D(target) <= 1000)
                {
                    if (Q == null)
                    {
                        Q = me.Spellbook.SpellQ;
                    }

                    if (W == null)     ///////It will be added later//////////
                    {
                        W = me.Spellbook.SpellW;
                    }

                    if (R == null)
                    {
                        R = me.Spellbook.SpellR;
                    }

                    // Item

                    if (sheep == null)
                    {
                        sheep = target.ClassID == ClassID.CDOTA_Unit_Hero_Tidehunter ? null : me.FindItem("item_sheepstick");
                    }


                    if (cheese == null)
                    {
                        cheese = me.FindItem("item_cheese");
                    }

                    if (orchid == null)
                    {
                        orchid = me.FindItem("item_orchid");
                    }

                    if (Soul == null)
                    {
                        Soul = me.FindItem("item_soul_ring");
                    }

                    if (shiva == null)
                    {
                        shiva = me.FindItem("item_shivas_guard");
                    }

                    if (dagon == null)
                    {
                        dagon = me.Inventory.Items.FirstOrDefault(item => item.Name.Contains("item_dagon"));
                    }

                    if (mom == null)
                    {
                        mom = me.FindItem("item_mask_of_madness");
                    }

                    if (abyssal == null)
                    {
                        abyssal = me.FindItem("item_abyssal_blade");
                    }

                    if (mjollnir == null)
                    {
                        mjollnir = me.FindItem("item_mjollnir");
                    }

                    if (halberd == null)
                    {
                        halberd = me.FindItem("item_heavens_halberd");
                    }

                    if (medall == null)
                    {
                        medall = me.FindItem("item_medallion_of_courage") ?? me.FindItem("item_solar_crest");
                    }

                    if (satanic == null)
                    {
                        satanic = me.FindItem("item_satanic");
                    }

                    if (     // Q Skill
                        Q != null &&
                        Q.CanBeCasted() &&
                        me.CanCast() &&
                        !target.IsMagicImmune() &&
                        me.Distance2D(target) <= 600 &&
                        Utils.SleepCheck("Q")
                        )

                    {
                        Q.UseAbility(target);
                        Utils.Sleep(250 + Game.Ping, "Q");
                    }     // Q Skill end



                    if (    //R Skill
                        R != null &&
                        R.CanBeCasted() &&
                        me.CanCast() &&
                        me.Distance2D(target) <= 350 &&
                        Utils.SleepCheck("R")
                        )
                    {
                        R.UseAbility();
                        Utils.Sleep(250 + Game.Ping, "R");
                    }     // R Skill end


                    if (     // orchid
                        orchid != null &&
                        orchid.CanBeCasted() &&
                        me.CanCast() &&
                        !target.IsMagicImmune() &&
                        !linkens &&
                        Utils.SleepCheck("orchid") &&
                        me.Distance2D(target) <= 1000
                        )
                    {
                        orchid.UseAbility(target);
                        Utils.Sleep(250 + Game.Ping, "orchid");
                    }     // orchid Item end

                    if (  // sheep
                        sheep != null &&
                        sheep.CanBeCasted() &&
                        me.CanCast() &&
                        !target.IsMagicImmune() &&
                        !linkens &&
                        Utils.SleepCheck("sheep") &&
                        me.Distance2D(target) <= 600
                        )
                    {
                        sheep.UseAbility(target);
                        Utils.Sleep(250 + Game.Ping, "sheep");
                    }     // sheep Item end

                    if (  // Soul Item
                        Soul != null &&
                        me.Health / me.MaximumHealth <= 0.5 &&

                        me.Mana <= Q.ManaCost &&
                        Soul.CanBeCasted())
                    {
                        Soul.UseAbility();
                    }     // Soul Item end

                    if (  // Shiva Item
                        shiva != null &&
                        shiva.CanBeCasted() &&
                        me.CanCast() &&
                        !target.IsMagicImmune() &&
                        Utils.SleepCheck("shiva") &&
                        me.Distance2D(target) <= 600
                        )
                    {
                        shiva.UseAbility();
                        Utils.Sleep(250 + Game.Ping, "shiva");
                    }     // Shiva Item end

                    if (  // MOM
                        mom != null &&
                        mom.CanBeCasted() &&
                        me.CanCast() &&
                        Utils.SleepCheck("mom") &&
                        me.Distance2D(target) <= 700
                        )
                    {
                        mom.UseAbility();
                        Utils.Sleep(250 + Game.Ping, "mom");
                    }     // MOM Item end

                    if (  // Medall
                        medall != null &&
                        medall.CanBeCasted() &&

                        Utils.SleepCheck("Medall") &&
                        me.Distance2D(target) <= 500
                        )
                    {
                        medall.UseAbility(target);
                        Utils.Sleep(250 + Game.Ping, "Medall");
                    }     // Medall Item end

                    if (  // Abyssal Blade
                        abyssal != null &&
                        abyssal.CanBeCasted() &&
                        me.CanCast() &&
                        !target.IsMagicImmune() &&
                        Utils.SleepCheck("abyssal") &&
                        me.Distance2D(target) <= 400
                        )
                    {
                        abyssal.UseAbility(target);
                        Utils.Sleep(250 + Game.Ping, "abyssal");
                    }     // Abyssal Item end

                    if (  // Hellbard
                        halberd != null &&
                        halberd.CanBeCasted() &&
                        me.CanCast() &&
                        !target.IsMagicImmune() &&
                        Utils.SleepCheck("halberd") &&
                        me.Distance2D(target) <= 700
                        )
                    {
                        halberd.UseAbility(target);
                        Utils.Sleep(250 + Game.Ping, "halberd");
                    }     // Hellbard Item end

                    if (  // Mjollnir
                        mjollnir != null &&
                        mjollnir.CanBeCasted() &&
                        me.CanCast() &&
                        !target.IsMagicImmune() &&
                        Utils.SleepCheck("mjollnir") &&
                        me.Distance2D(target) <= 600
                        )
                    {
                        mjollnir.UseAbility(me);
                        Utils.Sleep(250 + Game.Ping, "mjollnir");
                    }     // Mjollnir Item end

                    if (  // Dagon
                        dagon != null &&
                        dagon.CanBeCasted() &&
                        me.CanCast() &&
                        !target.IsMagicImmune() &&
                        Utils.SleepCheck("dagon")
                        )
                    {
                        dagon.UseAbility(target);
                        Utils.Sleep(250 + Game.Ping, "dagon");
                    }     // Dagon Item end


                    if (    // Satanic
                        satanic != null &&
                        me.Health / me.MaximumHealth <= 0.4 &&
                        satanic.CanBeCasted() &&
                        me.Distance2D(target) <= 300
                        &&
                        Utils.SleepCheck("Satanic")
                        )
                    {
                        satanic.UseAbility();
                        Utils.Sleep(250 + Game.Ping, "Satanic");
                    }     // Satanic Item end

                    if (  //Attack
                        me.Distance2D(target) <= 1900 &&
                        Utils.SleepCheck("Attack")
                        )
                    {
                        me.Attack(target);
                        Utils.Sleep(300 + Game.Ping, "Attack");
                    }     // Attack


                    /***************************************WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW**********************************/


                    List <Unit> SpideWeb = ObjectMgr.GetEntities <Unit>().Where(web => web.ClassID == ClassID.CDOTA_Unit_Broodmother_Web).ToList();

                    e = ObjectMgr.GetEntities <Hero>()
                        .Where(x => x.IsAlive && x.Team != me.Team && !x.IsIllusion)
                        .OrderBy(x => x.Position.Distance2D(SpideWeb.OrderBy(y => x.Position.Distance2D(y.Position)).FirstOrDefault().Position))
                        .FirstOrDefault();

                    if (e.Distance2D(SpideWeb.FirstOrDefault()) > 1100 && e != null && W != null && e.IsAlive && !e.IsIllusion)
                    {
                        if (e.Distance2D(SpideWeb.FirstOrDefault()) >= 1100 && me.Distance2D(e) <= 600 && Utils.SleepCheck(e.Handle.ToString()) && W.CanBeCasted())
                        {
                            W.UseAbility(e.Position);
                            Utils.Sleep(4000, e.Handle.ToString());
                        }
                    }
                    /***************************************WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW**********************************/
                }
            }
        }
Ejemplo n.º 4
0
        private static void ChasingAll()
        {
            if (Utils.SleepCheck("All"))
            {
                var me          = ObjectMgr.LocalHero;
                var target      = me.ClosestToMouseTarget(1500);
                var Spiderlings = ObjectMgr.GetEntities <Unit>().Where(spiderlings => spiderlings.ClassID == ClassID.CDOTA_Unit_Broodmother_Spiderling).ToList();


                {
                    if (target != null && target.IsAlive && !target.IsIllusion && chasing.isActive)

                    {
                        {
                            if (Utils.SleepCheck("combing"))
                            {
                                foreach (var Spider in Spiderlings)
                                {
                                    if (Spider.Distance2D(target) <= 1500)
                                    {
                                        Spider.Attack(target);
                                    }
                                }
                            }
                            Utils.Sleep(550, "combing");
                        }
                    }
                    if (Utils.SleepCheck("combo"))
                    {
                        foreach (var Spider in Spiderlings)
                        {
                            if (Spider.Distance2D(target) >= 1500)
                            {
                                Spider.Move(Game.MousePosition);
                            }
                        }
                    }
                    Utils.Sleep(700, "combo");


                    var linkens = target.Modifiers.Any(x => x.Name == "modifier_item_spheretarget") || target.Inventory.Items.Any(x => x.Name == "item_sphere");

                    var enemies = ObjectMgr.GetEntities <Hero>().Where(hero => hero.IsAlive && !hero.IsIllusion && hero.IsVisible && hero.Team != me.Team).ToList();

                    {
                        if (target != null && target.IsAlive && !target.IsIllusion && me.Distance2D(target) <= 1000 && Utils.SleepCheck("combo") && chasing.isActive)
                        {
                            foreach (var Enemy in enemies)
                            {
                                if (me.Distance2D(target) <= 1000 && Utils.SleepCheck("combing"))
                                {
                                    Q.UseAbility(target);
                                    Utils.Sleep(350, "combing");
                                }
                            }
                        }
                        else
                        {
                            me.Attack(target);
                        }
                        Utils.Sleep(470, "combo");
                    }


                    if (Q == null)
                    {
                        Q = me.Spellbook.SpellQ;
                    }

                    /*  if (W == null) ///////It will be added later//////////
                     *    W = me.Spellbook.SpellW; */

                    if (R == null)
                    {
                        R = me.Spellbook.SpellR;
                    }

                    // Item

                    if (sheep == null)
                    {
                        sheep = target.ClassID == ClassID.CDOTA_Unit_Hero_Tidehunter ? null : me.FindItem("item_sheepstick");
                    }


                    if (cheese == null)
                    {
                        cheese = me.FindItem("item_cheese");
                    }

                    if (orchid == null)
                    {
                        orchid = me.FindItem("item_orchid");
                    }

                    if (Soul == null)
                    {
                        Soul = me.FindItem("item_soul_ring");
                    }

                    if (shiva == null)
                    {
                        shiva = me.FindItem("item_shivas_guard");
                    }

                    dagon = me.Inventory.Items.FirstOrDefault(item => item.Name.Contains("item_dagon"));

                    if (mom == null)
                    {
                        mom = me.FindItem("item_mask_of_madness");
                    }

                    if (abyssal == null)
                    {
                        abyssal = me.FindItem("item_abyssal_blade");
                    }

                    if (mjollnir == null)
                    {
                        mjollnir = me.FindItem("item_mjollnir");
                    }

                    if (halberd == null)
                    {
                        halberd = me.FindItem("item_heavens_halberd");
                    }

                    if (medall == null)
                    {
                        medall = me.FindItem("item_medallion_of_courage") ?? me.FindItem("item_solar_crest");
                    }

                    if (satanic == null)
                    {
                        satanic = me.FindItem("item_satanic");
                    }

                    if ( // Q Skill
                        Q != null &&
                        Q.CanBeCasted() &&
                        me.CanCast() &&
                        !target.IsMagicImmune() &&
                        me.Distance2D(target) <= 600 &&
                        Utils.SleepCheck("Q")
                        )

                    {
                        Q.UseAbility(target);
                        Utils.Sleep(250 + Game.Ping, "Q");
                    } // Q Skill end



                    if (//R Skill
                        R != null &&
                        R.CanBeCasted() &&
                        me.CanCast() &&
                        me.Distance2D(target) <= 350 &&
                        Utils.SleepCheck("R")
                        )
                    {
                        R.UseAbility();
                        Utils.Sleep(250 + Game.Ping, "R");
                    } // R Skill end


                    if ( // orchid
                        orchid != null &&
                        orchid.CanBeCasted() &&
                        me.CanCast() &&
                        !target.IsMagicImmune() &&
                        !linkens &&
                        Utils.SleepCheck("orchid") &&
                        me.Distance2D(target) <= 1000
                        )
                    {
                        orchid.UseAbility(target);
                        Utils.Sleep(250 + Game.Ping, "orchid");
                    } // orchid Item end

                    if (// Soul Item
                        Soul != null &&
                        me.Health / me.MaximumHealth <= 0.5 &&

                        me.Mana <= Q.ManaCost &&
                        Soul.CanBeCasted())
                    {
                        Soul.UseAbility();
                    } // Soul Item end

                    if (// Shiva Item
                        shiva != null &&
                        shiva.CanBeCasted() &&
                        me.CanCast() &&
                        !target.IsMagicImmune() &&
                        Utils.SleepCheck("shiva") &&
                        me.Distance2D(target) <= 600
                        )
                    {
                        shiva.UseAbility();
                        Utils.Sleep(250 + Game.Ping, "shiva");
                    } // Shiva Item end

                    if (// MOM
                        mom != null &&
                        mom.CanBeCasted() &&
                        me.CanCast() &&
                        Utils.SleepCheck("mom") &&
                        me.Distance2D(target) <= 700
                        )
                    {
                        mom.UseAbility();
                        Utils.Sleep(250 + Game.Ping, "mom");
                    } // MOM Item end

                    if ( // Medall
                        medall != null &&
                        medall.CanBeCasted() &&

                        Utils.SleepCheck("Medall") &&
                        me.Distance2D(target) <= 500
                        )
                    {
                        medall.UseAbility(target);
                        Utils.Sleep(250 + Game.Ping, "Medall");
                    } // Medall Item end

                    if ( // Abyssal Blade
                        abyssal != null &&
                        abyssal.CanBeCasted() &&
                        me.CanCast() &&
                        !target.IsMagicImmune() &&
                        Utils.SleepCheck("abyssal") &&
                        me.Distance2D(target) <= 400
                        )
                    {
                        abyssal.UseAbility(target);
                        Utils.Sleep(250 + Game.Ping, "abyssal");
                    } // Abyssal Item end

                    if ( // Hellbard
                        halberd != null &&
                        halberd.CanBeCasted() &&
                        me.CanCast() &&
                        !target.IsMagicImmune() &&
                        Utils.SleepCheck("halberd") &&
                        me.Distance2D(target) <= 700
                        )
                    {
                        halberd.UseAbility(target);
                        Utils.Sleep(250 + Game.Ping, "halberd");
                    } // Hellbard Item end

                    if ( // Mjollnir
                        mjollnir != null &&
                        mjollnir.CanBeCasted() &&
                        me.CanCast() &&
                        !target.IsMagicImmune() &&
                        Utils.SleepCheck("mjollnir") &&
                        me.Distance2D(target) <= 600
                        )
                    {
                        mjollnir.UseAbility(me);
                        Utils.Sleep(250 + Game.Ping, "mjollnir");
                    } // Mjollnir Item end

                    if (// Dagon
                        dagon != null &&
                        dagon.CanBeCasted() &&
                        me.CanCast() &&
                        !target.IsMagicImmune() &&
                        Utils.SleepCheck("dagon")
                        )
                    {
                        dagon.UseAbility(target);
                        Utils.Sleep(250 + Game.Ping, "dagon");
                    } // Dagon Item end


                    if (// Satanic
                        satanic != null &&
                        me.Health / me.MaximumHealth <= 0.4 &&
                        satanic.CanBeCasted() &&
                        me.Distance2D(target) <= 300
                        &&
                        Utils.SleepCheck("Satanic")
                        )
                    {
                        satanic.UseAbility();
                        Utils.Sleep(250 + Game.Ping, "Satanic");
                    } // Satanic Item end
                }
            }
            Utils.Sleep(290, "All");
        }