Example #1
0
        private int recallsWithGold; //TODO repair shop and remove this tempfix

        public Recall(LogicSelector currentLogic, Menu parMenu)
        {
            Menu menu = parMenu.AddSubMenu("Recall settings", "ergtrh");
            flatGold=new Slider("Minimum base gold to recall", 560, 0, 4000);
            goldPerLevel = new Slider("Minmum gold per level to recall", 70, 0, 300);
            menu.Add("mingold", flatGold);
            menu.Add("goldper", goldPerLevel);
            menu.AddSeparator(100);
            menu.AddLabel(
    @"
Example: Your champ has lvl 10
Base gold = 560
Gold per level = 70
Minimum gold = 560+70*10 = 1260

AutoBuddy won't recall if you have less gold than needed for next item.

            ");
            current = currentLogic;
            foreach (
                Obj_SpawnPoint so in
                    ObjectManager.Get<Obj_SpawnPoint>().Where(so => so.Team == ObjectManager.Player.Team))
            {
                spawn = so;
            }
            Core.DelayAction(ShouldRecall, 3000);
            if (MainMenu.GetMenu("AB").Get<CheckBox>("debuginfo").CurrentValue)
                Drawing.OnDraw += Drawing_OnDraw;
        }
Example #2
0
 public Combat(LogicSelector currentLogic)
 {
     current = currentLogic;
     Game.OnTick += Game_OnTick;
     if (MainMenu.GetMenu("AB").Get<CheckBox>("debuginfo").CurrentValue)
         Drawing.OnDraw += Drawing_OnDraw;
 }
Example #3
0
 public Survi(LogicSelector currentLogic)
 {
     current = currentLogic;
     Game.OnTick += Game_OnTick;
     Obj_AI_Base.OnSpellCast += Obj_AI_Base_OnSpellCast;
     DecHits();
     if (MainMenu.GetMenu("AB").Get<CheckBox>("debuginfo").CurrentValue)
         Drawing.OnDraw += Drawing_OnDraw;
 }
Example #4
0
 public Load(LogicSelector c)
 {
     currentLogic = c;
     startTime = Game.Time + waitTime + RandGen.r.NextFloat(-10, 20);
     if (MainMenu.GetMenu("AB").Get<CheckBox>("debuginfo").CurrentValue)
         Drawing.OnDraw += Drawing_OnDraw;
     MainMenu.GetMenu("AB").Get<CheckBox>("reselectlane").OnValueChange += Checkbox_OnValueChange;
     MainMenu.GetMenu("AB").Get<Slider>("lane").OnValueChange += Slider_OnValueChange;
 }
Example #5
0
        public Survi(LogicSelector currentLogic)
        {
            current = currentLogic;
            Game.OnTick += Game_OnTick;
            Obj_AI_Base.OnSpellCast += Obj_AI_Base_OnSpellCast;
            DecHits();

            Drawing.OnDraw += Drawing_OnDraw;
        }
Example #6
0
        public Load(LogicSelector c)
        {
            currentLogic = c;
            startTime    = Game.Time + waitTime + RandGen.r.NextFloat(-10, 20);

            Drawing.OnDraw += Drawing_OnDraw;
            Chat.OnMessage += Chat_OnMessage;

            MainMenu.GetMenu("AB").Get <CheckBox>("reselectlane").OnValueChange += Checkbox_OnValueChange;
            MainMenu.GetMenu("AB").Get <Slider>("lane").OnValueChange           += Slider_OnValueChange;
        }
Example #7
0
 public Survi(LogicSelector currentLogic)
 {
     current                  = currentLogic;
     Game.OnTick             += Game_OnTick;
     Obj_AI_Base.OnSpellCast += Obj_AI_Base_OnSpellCast;
     DecHits();
     if (MainMenu.GetMenu("AB").Get <CheckBox>("debuginfo").CurrentValue)
     {
         Drawing.OnDraw += Drawing_OnDraw;
     }
 }
Example #8
0
 public Load(LogicSelector c)
 {
     currentLogic = c;
     startTime = Game.Time + waitTime + RandGen.r.NextFloat(-10, 20);
     if (MainMenu.GetMenu("AB").Get<CheckBox>("debuginfo").CurrentValue)
         Drawing.OnDraw += Drawing_OnDraw;
     if (!AutoWalker.p.Name.Equals("Challenjour Ryze"))
         Chat.OnMessage += Chat_OnMessage;
     MainMenu.GetMenu("AB").Get<CheckBox>("reselectlane").OnValueChange += Checkbox_OnValueChange;
     MainMenu.GetMenu("AB").Get<Slider>("lane").OnValueChange += Slider_OnValueChange;
 }
Example #9
0
 public Push(LogicSelector current)
 {
     SetRandVector();
     randomVector = new Vector3();
     currentWave = new Obj_AI_Minion[0];
     currentLogic = current;
     Core.DelayAction(SetWaveNumber, 500);
     SetCurrentWave();
     SetOffset();
     if (MainMenu.GetMenu("AB").Get<CheckBox>("debuginfo").CurrentValue)
         Drawing.OnDraw += Drawing_OnDraw;
 }
Example #10
0
        public Load(LogicSelector c)
        {
            currentLogic = c;
            startTime    = Game.Time + waitTime + RandGen.r.NextFloat(-10, 20);

            Drawing.OnDraw += Drawing_OnDraw;
            if (!AutoWalker.myHero.Name.Equals("Challenjour Ryze"))
            {
                Chat.OnMessage += Chat_OnMessage;
            }
            MainMenu.GetMenu("AB").Get <CheckBox>("reselectlane").OnValueChange += Checkbox_OnValueChange;
            MainMenu.GetMenu("AB").Get <Slider>("lane").OnValueChange           += Slider_OnValueChange;
        }
Example #11
0
 public Load(LogicSelector c)
 {
     currentLogic = c;
     startTime = Game.Time + waitTime + RandGen.r.NextFloat(-10, 20);
     if (MainMenu.GetMenu("AB").Get<CheckBox>("debuginfo").CurrentValue)
         Drawing.OnDraw += Drawing_OnDraw;
     MainMenu.GetMenu("AB").Get<CheckBox>("reselectlane").OnValueChange += Checkbox_OnValueChange;
     MainMenu.GetMenu("AB").Get<Slider>("lane").OnValueChange += Slider_OnValueChange;
     Orbwalker.OnUnkillableMinion += (target, args) =>
     {
         c.myChamp.UnkillableMinion(target, args.RemainingHealth);
     };
 }
Example #12
0
 public Recall(LogicSelector currentLogic)
 {
     lastRecallGold = 30000;
     current = currentLogic;
     foreach (
         Obj_SpawnPoint so in
             ObjectManager.Get<Obj_SpawnPoint>().Where(so => so.Team == ObjectManager.Player.Team))
     {
         spawn = so;
     }
     Core.DelayAction(ShouldRecall, 3000);
     if (MainMenu.GetMenu("AB").Get<CheckBox>("debuginfo").CurrentValue)
         Drawing.OnDraw += Drawing_OnDraw;
 }
Example #13
0
        public Push(LogicSelector current)
        {
            color=new ColorBGRA(255, 210, 105, 255);
            colorRed = new ColorBGRA(139, 0, 0, 255);
            colorGreen = new ColorBGRA(0, 100, 0, 255);
            SetRandVector();
            randomVector = new Vector3();
            currentWave = new Obj_AI_Minion[0];
            currentLogic = current;
            Core.DelayAction(SetWaveNumber, 500);
            SetCurrentWave();
            SetOffset();

            Drawing.OnDraw += Drawing_OnDraw;
        }
Example #14
0
        public Push(LogicSelector current)
        {
            color      = new ColorBGRA(255, 210, 105, 255);
            colorRed   = new ColorBGRA(139, 0, 0, 255);
            colorGreen = new ColorBGRA(0, 100, 0, 255);
            SetRandVector();
            randomVector = new Vector3();
            currentWave  = new Obj_AI_Minion[0];
            currentLogic = current;
            Core.DelayAction(SetWaveNumber, 500);
            SetCurrentWave();
            SetOffset();

            Drawing.OnDraw += Drawing_OnDraw;
        }
Example #15
0
 public Recall(LogicSelector currentLogic)
 {
     current = currentLogic;
     foreach (
         var so in
         ObjectManager.Get <Obj_SpawnPoint>().Where(so => so.Team == ObjectManager.Player.Team))
     {
         spawn = so;
     }
     Core.DelayAction(ShouldRecall, 3000);
     if (MainMenu.GetMenu("AB").Get <CheckBox>("debuginfo").CurrentValue)
     {
         Drawing.OnDraw += Drawing_OnDraw;
     }
 }
Example #16
0
 public Push(LogicSelector current)
 {
     color=new ColorBGRA(255, 210, 105, 255);
     colorRed = new ColorBGRA(139, 0, 0, 255);
     colorGreen = new ColorBGRA(0, 100, 0, 255);
     SetRandVector();
     randomVector = new Vector3();
     currentWave = new Obj_AI_Minion[0];
     currentLogic = current;
     Core.DelayAction(SetWaveNumber, 500);
     SetCurrentWave();
     SetOffset();
     if (MainMenu.GetMenu("AB").Get<CheckBox>("debuginfo").CurrentValue)
         Drawing.OnDraw += Drawing_OnDraw;
 }
Example #17
0
 public Push(LogicSelector current)
 {
     color      = new ColorBGRA(255, 210, 105, 255);
     colorRed   = new ColorBGRA(139, 0, 0, 255);
     colorGreen = new ColorBGRA(0, 100, 0, 255);
     SetRandVector();
     randomVector = new Vector3();
     currentWave  = new Obj_AI_Minion[0];
     currentLogic = current;
     Core.DelayAction(SetWaveNumber, 500);
     SetCurrentWave();
     SetOffset();
     if (MainMenu.GetMenu("AB").Get <CheckBox>("debuginfo").CurrentValue)
     {
         Drawing.OnDraw += Drawing_OnDraw;
     }
 }
Example #18
0
        private int recallsWithGold; //TODO repair shop and remove this tempfix

        public Recall(LogicSelector currentLogic, Menu parMenu)
        {
            var menu = parMenu.AddSubMenu("Recall settings", "ergtrh");

            menu.AddLabel(
                @"
Autobuddy will recall only if your HP/MP is lower than the percentage you specified.
(defaulted to 25% HP/15% MP)
So you won't lose easy kills just because you have enough gold to buy something.
            ");
            current = currentLogic;
            foreach (
                var so in
                ObjectManager.Get <Obj_SpawnPoint>().Where(so => so.Team == ObjectManager.Player.Team))
            {
                spawn = so;
            }
            Core.DelayAction(ShouldRecall, 3000);
            if (MainMenu.GetMenu("AB").Get <CheckBox>("debuginfo").CurrentValue)
            {
                Drawing.OnDraw += Drawing_OnDraw;
            }
        }
Example #19
0
        private int recallsWithGold; //TODO repair shop and remove this tempfix

        public Recall(LogicSelector currentLogic, Menu parMenu)
        {
            var menu = parMenu.AddSubMenu("Recall settings", "ergtrh");

            menu.AddLabel(
                @"
Autobuddy yanlizca HP/MP'niz belirttginiz yuzdeden daha dusukse geri doner.
(varsayilan 25% HP/15% MP)
Yani birsey satin alacak kadar altininiz oldugunda kolay oldurmeyi kaybetmessin.
            ");
            current = currentLogic;
            foreach (
                var so in
                ObjectManager.Get <Obj_SpawnPoint>().Where(so => so.Team == ObjectManager.Player.Team))
            {
                spawn = so;
            }
            Core.DelayAction(ShouldRecall, 3000);
            if (MainMenu.GetMenu("AB").Get <CheckBox>("debuginfo").CurrentValue)
            {
                Drawing.OnDraw += Drawing_OnDraw;
            }
        }
Example #20
0
 public Combat(LogicSelector currentLogic)
 {
     current = currentLogic;
     Game.OnTick += Game_OnTick;
     Drawing.OnDraw += Drawing_OnDraw;
 }
Example #21
0
        private static void Start()
        {
            RandGen.Start();
            bool generic = false;
            switch (ObjectManager.Player.Hero)
            {
                case Champion.Ashe:
                    myChamp = new Ashe();
                    break;
                case Champion.Caitlyn:
                    myChamp = new Caitlyn();
                    break;
                default:
                    generic = true;
                    myChamp = new Generic();
                    break;
                case Champion.Ezreal:
                    myChamp = new Ezreal();
                    break;
                case Champion.Cassiopeia:
                    myChamp = new Cassiopeia();
                    break;
            }
            CustomLvlSeq cl = new CustomLvlSeq(menu, AutoWalker.p, Path.Combine(Environment.GetFolderPath(
            Environment.SpecialFolder.ApplicationData), "AutoBuddy\\Skills"));
            if (!generic)
            {
                BuildCreator bc = new BuildCreator(menu, Path.Combine(Environment.GetFolderPath(
                    Environment.SpecialFolder.ApplicationData), "AutoBuddy\\Builds"), myChamp.ShopSequence);
            }


            else
            {
                myChamp = new Generic();
                if (MainMenu.GetMenu("AB_" + ObjectManager.Player.ChampionName) != null &&
                    MainMenu.GetMenu("AB_" + ObjectManager.Player.ChampionName).Get<Label>("shopSequence") != null)
                {
                    Chat.Print("Autobuddy: Loaded shop plugin for " + ObjectManager.Player.ChampionName);
                    BuildCreator bc = new BuildCreator(menu, Path.Combine(Environment.GetFolderPath(
                        Environment.SpecialFolder.ApplicationData), "AutoBuddy\\Builds"),
                        MainMenu.GetMenu("AB_" + ObjectManager.Player.ChampionName)
                            .Get<Label>("shopSequence")
                            .DisplayName);
                }
                else
                {
                    BuildCreator bc = new BuildCreator(menu, Path.Combine(Environment.GetFolderPath(
                        Environment.SpecialFolder.ApplicationData), "AutoBuddy\\Builds"), myChamp.ShopSequence);
                }
            }
            Logic = new LogicSelector(myChamp, menu);
            new Disrespekt();
            Telemetry.SendEvent("GameStart", new Dictionary<string, string>()
            {
                {"GameChamp", AutoWalker.p.ChampionName},
                {"GameType", BrutalExtensions.GetGameType()},
                {"GameRegion", Game.Region},
                {"GameID", ""+AutoWalker.GameID},
            });
        }
Example #22
0
        private static void Start()
        {
            RandGen.Start();
            bool generic = false;
            if (ObjectManager.Player.Hero == Champion.Ashe)
            {
                myChamp = new Ashe();
            }
            else if (ObjectManager.Player.Hero == Champion.Caitlyn)
            {
                myChamp = new Caitlyn();
            }
            else
            {
                generic = true;
                myChamp = new Generic();
            }
            if (!generic)
                easyShop = new EasyShop(myChamp.ShopSequence, menu);

            else
            {
                myChamp = new Generic();
                if (MainMenu.GetMenu("AB_" + ObjectManager.Player.ChampionName)!=null&&MainMenu.GetMenu("AB_" + ObjectManager.Player.ChampionName).Get<Label>("shopSequence") != null)
                {
                    Chat.Print("Autobuddy: Loaded shop plugin for " + ObjectManager.Player.ChampionName);
                    easyShop = new EasyShop(
                        MainMenu.GetMenu("AB_" + ObjectManager.Player.ChampionName)
                            .Get<Label>("shopSequence")
                            .DisplayName, menu);
                }
                else
                {
                    Chat.Print("Autobuddy shop and auto skill lvl: no plugins detected for " +
                               ObjectManager.Player.ChampionName + ", using generic ADC build");
                    easyShop = new EasyShop(myChamp.ShopSequence, menu);
                }

            }
            if (!menu.Get<CheckBox>("autolvl").CurrentValue)
                LevelUp = new SkillLevelUp(myChamp);
            Logic = new LogicSelector(myChamp);
        }
Example #23
0
 public Combat(LogicSelector currentLogic)
 {
     current         = currentLogic;
     Game.OnTick    += Game_OnTick;
     Drawing.OnDraw += Drawing_OnDraw;
 }
Example #24
0
        private static void Start()
        {
            RandGen.Start();
            bool generic = false;
            switch (ObjectManager.Player.Hero)
            {
                case Champion.Ashe:
                    myChamp = new Ashe();
                    break;
                case Champion.Caitlyn:
                    myChamp = new Caitlyn();
                    break;
                default:
                    generic = true;
                    myChamp = new Generic();
                    break;
                case Champion.Ezreal:
                    myChamp = new Ezreal();
                    break;
                case Champion.Cassiopeia:
                    myChamp = new Cassiopeia();
                    break;
            }
            CustomLvlSeq cl = new CustomLvlSeq(menu, AutoWalker.p, Path.Combine(Environment.GetFolderPath(
            Environment.SpecialFolder.ApplicationData), "AutoBuddy\\Skills"));
            if (!generic)
            {
                BuildCreator bc = new BuildCreator(menu, Path.Combine(Environment.GetFolderPath(
                    Environment.SpecialFolder.ApplicationData), "AutoBuddy\\Builds"), myChamp.ShopSequence);
            }


            else
            {
                myChamp = new Generic();
                if (MainMenu.GetMenu("AB_" + ObjectManager.Player.ChampionName) != null &&
                    MainMenu.GetMenu("AB_" + ObjectManager.Player.ChampionName).Get<Label>("shopSequence") != null)
                {
                    Chat.Print("Autobuddy: Loaded shop plugin for " + ObjectManager.Player.ChampionName);
                    BuildCreator bc = new BuildCreator(menu, Path.Combine(Environment.GetFolderPath(
                        Environment.SpecialFolder.ApplicationData), "AutoBuddy\\Builds"),
                        MainMenu.GetMenu("AB_" + ObjectManager.Player.ChampionName)
                            .Get<Label>("shopSequence")
                            .DisplayName);
                }
                else
                {
                    BuildCreator bc = new BuildCreator(menu, Path.Combine(Environment.GetFolderPath(
                        Environment.SpecialFolder.ApplicationData), "AutoBuddy\\Builds"), myChamp.ShopSequence);
                }
            }
            Logic = new LogicSelector(myChamp, menu);
        }