Exemplo n.º 1
0
        public override void Entry(IModHelper helper)
        {
            this.button = new UpdateButton(helper);
            this.menu   = new UpdateMenu();

            GameEvents.UpdateTick            += this.GameEvents_UpdateTick;
            GraphicsEvents.OnPostRenderEvent += this.GraphicsEvents_OnPostRenderHudEvent;
            InputEvents.ButtonPressed        += this.InputEvents_ButtonPressed;

            new Thread(() =>
            {
                Thread.Sleep(4000);
                this.Notify(new List <ModStatus>()
                {
                    new ModStatus(UpdateStatus.UpToDate, "Stack Everything", "Cat", "https://www.nexusmods.com/stardewvalley/mods/2053", "2.7.0-beta"),
                    new ModStatus(UpdateStatus.UpToDate, "Content Patcher", "Pathoschild", "https://www.nexusmods.com/stardewvalley/mods/1915", "1.4.-beta.3"),

                    /*new ModStatus(UpdateStatus.Error, "Shmoopyaaaaaaaaaa", "bloooooooooooorg", "https://www.nexusmods.com/stardewvalley/mods/2223", "1.0.0", null, "No update key found."),
                     * new ModStatus(UpdateStatus.Skipped, "bldargo", "flargo", "https://github.com/babies", "1.0.0", null, "old"),
                     * new ModStatus(UpdateStatus.Error, "Shmoopyaaaaaaaaaa", "bloooooooooooorg", "https://www.nexusmods.com/stardewvalley/mods/2223", "1.0.0", null, "No update key found."),
                     * new ModStatus(UpdateStatus.OutOfDate, "Doopy", "aaaa", "https://community.playstarbound.com/threads/treetransplant.135549/", "1.1.0", "1.2.0"),
                     * new ModStatus(UpdateStatus.OutOfDate, "Doopy", "aaaas", "https://community.playstarbound.com/threads/treetransplant.135549/", "1.1.0", "1.2.0"),
                     * new ModStatus(UpdateStatus.Error, "Shmoopyaaaaaaaaaa", "bloooooooooooorg", "https://www.nexusmods.com/stardewvalley/mods/2223", "1.0.0", null, "No update key found."),
                     * new ModStatus(UpdateStatus.Skipped, "bldargo", "flargo", "https://github.com/babies", "1.0.0", null, "old")*/
                });
            }).Start();

            //new SMAPIUpdateManager(this);
        }
        public override void Entry(IModHelper helper)
        {
            this.config = this.Helper.ReadConfig <ModUpdateMenuConfig>();
            this.button = new UpdateButton(helper);
            this.menu   = new UpdateMenu();

            GameEvents.UpdateTick            += this.GameEvents_UpdateTick;
            GraphicsEvents.OnPostRenderEvent += this.GraphicsEvents_OnPostRenderHudEvent;
            InputEvents.ButtonPressed        += this.InputEvents_ButtonPressed;

            new Thread(() =>
            {
                IUpdateStatusRetriever statusRetriever = new UpdateStatusRetriever(this.Helper);
                int attempts = 50;
                while (true)
                {
                    Thread.Sleep(1000);
                    try
                    {
                        if (statusRetriever.GetUpdateStatuses(out IList <ModStatus> statuses))
                        {
                            if (this.currentStatuses != null && this.currentStatuses.Count == statuses.Count)
                            {
                                this.Notify(statuses);

                                try
                                {
                                    this.NotifySMAPI(statusRetriever.GetSMAPIUpdateVersion());
                                }
                                catch
                                {
                                    this.NotifySMAPI(null);
                                }


                                break;
                            }
                            else
                            {
                                this.currentStatuses = statuses;
                            }
                        }

                        attempts--;
                        if (attempts == 0)
                        {
                            throw new Exception("All update attempts failed.");
                        }
                    }
                    catch (Exception e)
                    {
                        this.Monitor.Log("Failed retrieving update info from SMAPI: ", LogLevel.Debug);
                        this.Monitor.Log(e.ToString(), LogLevel.Debug);
                        this.Notify(null);
                        this.NotifySMAPI(null);
                        break;
                    }
                }
            }).Start();
        }
Exemplo n.º 3
0
        /// <summary>Raised after the game is launched, right before the first update tick. </summary>
        /// <param name="sender">The event sender.</param>
        /// <param name="e">The event arguments.</param>
        private void OnGameLaunched(object sender, GameLaunchedEventArgs e)
        {
            this.menu = new UpdateMenu();
            new Thread(() =>
            {
                IUpdateStatusRetriever statusRetriever = new UpdateStatusRetriever(this.Helper);
                int attempts = 50;
                while (true)
                {
                    Thread.Sleep(1000);
                    try
                    {
                        if (statusRetriever.GetUpdateStatuses(out IList <ModStatus> statuses))
                        {
                            if (this.currentStatuses != null && this.currentStatuses.Count == statuses.Count)
                            {
                                this.Notify(statuses);

                                try
                                {
                                    this.NotifySMAPI(statusRetriever.GetSMAPIUpdateVersion());
                                }
                                catch
                                {
                                    this.NotifySMAPI(null);
                                }


                                break;
                            }
                            else
                            {
                                this.currentStatuses = statuses;
                            }
                        }

                        attempts--;
                        if (attempts == 0)
                        {
                            throw new Exception("All update attempts failed.");
                        }
                    }
                    catch (Exception ex)
                    {
                        this.Monitor.Log("Failed retrieving update info from SMAPI: ", LogLevel.Debug);
                        this.Monitor.Log(ex.ToString(), LogLevel.Debug);
                        this.Notify(null);
                        this.NotifySMAPI(null);
                        break;
                    }
                }
            }).Start();
        }
Exemplo n.º 4
0
    public NativeMenu(IntPtr handle, WindowWrapper Window, UpdateMenu MenuConstructor = null)
    {
        this.handle         = handle;
        this.Window         = Window;
        this.MenuConstrucor = MenuConstructor;
        eventHandler        = new wndProc(MenuProc).Invoke;
        WndProcHandler      = GCHandle.Alloc(eventHandler);
        Subclassed          = NativeMethods.SetWindowSubclass(handle, (wndProc)WndProcHandler.Target, WndProcId, IntPtr.Zero);
        InitMenu(handle);

        //IntPtr buffer = Marshal.AllocHGlobal(200);
        //GetWindowText(handle, buffer, 200);
        //Window.Caption = Marshal.PtrToStringAnsi(buffer);
        //var ctl = new Win32Window(handle);
    }
Exemplo n.º 5
0
        public IApiResult Update(UpdateMenu operation)
        {
            var result = operation.ExecuteAsync().Result;

            if (result is ValidationsOutput)
            {
                return(new ApiResult <List <ValidationItem> >()
                {
                    Data = ((ValidationsOutput)result).Errors
                });
            }
            else
            {
                return(new ApiResult <object>()
                {
                    Status = ApiResult <object> .ApiStatus.Success
                });
            }
        }
Exemplo n.º 6
0
        private static void Loading_OnLoadingComplete(EventArgs args)
        {
            if (Player.Instance.ChampionName != "Olaf")
            {
                return;
            }

            Chat.Print("Perfect Olaf Reloaded");

            SpellDataInst smite = _Player.Spellbook.Spells.Where(spell => spell.Name.Contains("smite")).Any() ? _Player.Spellbook.Spells.Where(spell => spell.Name.Contains("smite")).First() : null;

            if (smite != null)
            {
                Smite = new Spell.Targeted(smite.Slot, 500);
            }



            Bootstrap.Init(null);

            Healthpot        = new Item(2003, 0);
            Manapot          = new Item(2004, 0);
            RefillablePotion = new Item(2031, 0);
            HuntersPotion    = new Item(2032, 0);
            CorruptionPotion = new Item(2033, 0);
            uint level = (uint)Player.Instance.Level;

            Q = new Spell.Skillshot(SpellSlot.Q, 1000, SkillShotType.Linear, 250, 1550, 75)
            {
                AllowedCollisionCount = int.MaxValue, MinimumHitChance = HitChance.High
            };
            Q2 = new Spell.Skillshot(SpellSlot.Q, 900, SkillShotType.Linear, 250, 1550, 75)
            {
                AllowedCollisionCount = int.MaxValue, MinimumHitChance = HitChance.High
            };
            W = new Spell.Active(SpellSlot.W);
            E = new Spell.Targeted(SpellSlot.E, 325);
            R = new Spell.Active(SpellSlot.R);

            Menu = MainMenu.AddMenu("Perfect Olaf", "perfectolaf");

            ComboMenu = Menu.AddSubMenu("Combo Settings", "ComboSettings");
            ComboMenu.AddLabel("Combo Settings");
            ComboMenu.Add("QCombo", new CheckBox("Use Q"));
            ComboMenu.Add("WCombo", new CheckBox("Use W"));
            ComboMenu.Add("ECombo", new CheckBox("Use E"));
            ComboMenu.Add("RCombo", new CheckBox("Use R"));
            ComboMenu.Add("useTiamat", new CheckBox("Use Items"));

            HarassMenu = Menu.AddSubMenu("Harass Settings", "HarassSettings");
            HarassMenu.AddLabel("Harass Settings");
            HarassMenu.Add("QHarass", new CheckBox("Use Q"));
            HarassMenu.Add("WHarass", new CheckBox("Use W"));
            HarassMenu.Add("EHarass", new CheckBox("Use E"));

            FarmingMenu = Menu.AddSubMenu("Lane Clear", "FarmSettings");

            FarmingMenu.AddLabel("Lane Clear");
            FarmingMenu.Add("QLaneClear", new CheckBox("Use Q LaneClear"));
            FarmingMenu.Add("QlaneclearMana", new Slider("Mana < %", 45, 0, 100));
            FarmingMenu.Add("WLaneClear", new CheckBox("Use W LaneClear"));
            FarmingMenu.Add("WlaneclearMana", new Slider("Mana < %", 45, 0, 100));
            FarmingMenu.Add("ELaneClear", new CheckBox("Use E LaneClear"));
            FarmingMenu.Add("ElaneclearHP", new Slider("HP < %", 10, 0, 100));

            FarmingMenu.AddLabel("Jungle Clear");
            FarmingMenu.Add("Qjungle", new CheckBox("Use Q in Jungle"));
            FarmingMenu.Add("QjungleMana", new Slider("Mana < %", 45, 0, 100));
            FarmingMenu.Add("Wjungle", new CheckBox("Use W in Jungle"));
            FarmingMenu.Add("WjungleMana", new Slider("Mana < %", 45, 0, 100));
            FarmingMenu.Add("Ejungle", new CheckBox("Use E in Jungle"));
            FarmingMenu.Add("EjungleHP", new Slider("HP < %", 25, 0, 100));

            FarmingMenu.AddLabel("Last Hit Settings");
            FarmingMenu.Add("Qlasthit", new CheckBox("Use Q LastHit"));
            FarmingMenu.Add("Elasthit", new CheckBox("Use E LastHit"));
            FarmingMenu.Add("QlasthitMana", new Slider("Mana < %", 45, 0, 100));

            SetSmiteSlot();
            if (SmiteSlot != SpellSlot.Unknown)
            {
                SmiteMenu = Menu.AddSubMenu("Smite Usage", "SmiteUsage");
                SmiteMenu.AddLabel("Smite Usage");
                SmiteMenu.Add("Use Smite?", new CheckBox("Use Smite"));
                SmiteMenu.Add("SmiteEnemy", new CheckBox("Use Smite Combo for Enemy!"));
                SmiteMenu.Add("Red?", new CheckBox("Red"));
                SmiteMenu.Add("Blue?", new CheckBox("Blue"));
                SmiteMenu.Add("Dragon?", new CheckBox("Dragon"));
                SmiteMenu.Add("Baron?", new CheckBox("Baron"));
            }


            MiscMenu = Menu.AddSubMenu("More Settings", "Misc");

            MiscMenu.AddLabel("Auto");
            MiscMenu.Add("Auto Ignite", new CheckBox("Auto Ignite"));
            MiscMenu.Add("autoQ", new CheckBox("Use Auto Q to Flee/Escape"));
            MiscMenu.Add("autoR", new CheckBox("Use Auto R in Dangerous Spell", false));
            MiscMenu.Add("autoEenemyHP", new Slider("Enemy HP < %", 45, 0, 100));
            MiscMenu.AddSeparator();
            MiscMenu.AddLabel("Items");
            MiscMenu.AddLabel("BOTRK,Bilgewater Cutlass Settings");
            MiscMenu.Add("botrkHP", new Slider("My HP < %", 60, 0, 100));
            MiscMenu.Add("botrkenemyHP", new Slider("Enemy HP < %", 60, 0, 100));

            MiscMenu.AddLabel("KillSteal");
            MiscMenu.Add("Qkill", new CheckBox("Use Q KillSteal"));
            MiscMenu.Add("Ekill", new CheckBox("Use E KillSteal"));

            MiscMenu.AddLabel("Activator");
            MiscMenu.Add("useHP", new CheckBox("Use Health Potion"));
            MiscMenu.Add("useHPV", new Slider("HP < %", 45, 0, 100));
            MiscMenu.Add("useMana", new CheckBox("Use Mana Potion"));
            MiscMenu.Add("useManaV", new Slider("Mana < %", 45, 0, 100));
            MiscMenu.Add("useCrystal", new CheckBox("Use Refillable Potions"));
            MiscMenu.Add("useCrystalHPV", new Slider("HP < %", 45, 0, 100));
            MiscMenu.Add("useCrystalManaV", new Slider("Mana < %", 45, 0, 100));

            DrawMenu = Menu.AddSubMenu("Draw Settings", "Drawings");
            DrawMenu.Add("drawAA", new CheckBox("Draw AA Range"));
            DrawMenu.Add("drawQ", new CheckBox("Draw Q"));
            DrawMenu.Add("drawQpos", new CheckBox("Draw Q Position"));
            DrawMenu.Add("drawE", new CheckBox("Draw E"));

            UpdateMenu = Menu.AddSubMenu("Last Update Logs", "Updates");
            UpdateMenu.AddLabel("V0.1.7.0");
            UpdateMenu.AddLabel("-Q Prediction UPDATE! Please Change Prediction Settings");
            UpdateMenu.AddLabel("Prediction");
            UpdateMenu.AddLabel("  Algorithm");
            UpdateMenu.AddLabel("    Hitchance = 4");
            UpdateMenu.AddLabel("  Collision");
            UpdateMenu.AddLabel("    Extra Hitbox Radius = 40");

            Game.OnTick         += Game_OnTick;
            Drawing.OnDraw      += Drawing_OnDraw;
            GameObject.OnCreate += GameObject_OnCreate;
            GameObject.OnDelete += GameObject_OnDelete;

            Chat.Print("Perrrrrrrrrfect Addon", System.Drawing.Color.Red);
        }
Exemplo n.º 7
0
        private static void Loading_OnLoadingComplete(EventArgs args)
        {
            if (Player.Instance.ChampionName != "Veigar")
            {
                return;
            }


            //ITEMS CAN BE SET IN HERE

            Q = new Spell.Skillshot(SpellSlot.Q, 950, SkillShotType.Linear, 250, 950, 75);
            W = new Spell.Skillshot(SpellSlot.W, 950, SkillShotType.Linear, 400, 1060, 312);
            E = new Spell.Skillshot(SpellSlot.E, 1050, SkillShotType.Linear, 300, 1050, 185);
            R = new Spell.Targeted(SpellSlot.R, 650);

            Menu = MainMenu.AddMenu("Soft Veigar", "softveigar");

            ComboMenu = Menu.AddSubMenu("Combo Settings", "ComboSettings");
            ComboMenu.AddLabel("Combo Settings");
            ComboMenu.Add("QCom", new CheckBox("Use Q"));
            ComboMenu.Add("WCom", new CheckBox("Use W"));
            ComboMenu.Add("ECom", new CheckBox("Use E"));
            ComboMenu.Add("RCom", new CheckBox("Use R"));


            FarmingMenu = Menu.AddSubMenu("Lane Clear", "FarmSettings");

            FarmingMenu.AddLabel("Lane Clear");
            FarmingMenu.Add("QLaneClear", new CheckBox("Use Q to LaneClear"));
            FarmingMenu.Add("QlaneclearManaPercent", new Slider("Mana < %", 45));
            FarmingMenu.Add("WLaneClear", new CheckBox("Use W to LaneClear"));
            FarmingMenu.Add("WlaneclearManaPercent", new Slider("Mana < %", 45));


            FarmingMenu.AddLabel("Last Hit Settings");
            FarmingMenu.Add("Qlasthit", new CheckBox("Use Q LastHit"));
            FarmingMenu.Add("QlasthitManapercent", new Slider("Mana < %", 45));


            MiscsMenu = Menu.AddSubMenu("Misc", "Misc");

            MiscsMenu.AddLabel("Auto");
            MiscsMenu.Add("Auto Ignite", new CheckBox("Auto Ignite"));
            MiscsMenu.Add("autoRenemyHP", new Slider("Enemy HP < %", 10));
            MiscsMenu.Add("InterruptSpellsE", new CheckBox("Use E Interrupt Spells"));

            KsMenu = Menu.AddSubMenu("Ks", "KS Menu");

            KsMenu.AddLabel("KillSteal");
            KsMenu.Add("Qks", new CheckBox("Use Q to KillSteal"));
            KsMenu.Add("Rks", new CheckBox("Use R to KillSteal"));

            HarassMenu = Menu.AddSubMenu("Harass", "Harass");
            HarassMenu.Add("HarassQ", new CheckBox("Use Q to harass"));
            HarassMenu.Add("HarassW", new CheckBox("Use W to harass"));

            DrawingsMenu = Menu.AddSubMenu("Drawings", "Drawings");
            DrawingsMenu.Add("drawAARange", new CheckBox("Draw AA Range"));
            DrawingsMenu.Add("drawQ", new CheckBox("Draw Q"));
            DrawingsMenu.Add("drawW", new CheckBox("Draw W "));
            DrawingsMenu.Add("drawE", new CheckBox("Draw E"));
            DrawingsMenu.Add("drawR", new CheckBox("Draw R"));

            UpdateMenu = Menu.AddSubMenu("Last Update Logs", "Updates");

            UpdateMenu.Add("release", new CheckBox(" 06/03/2016 RELEASE "));
            UpdateMenu.Add("release", new CheckBox(" 07/03/2016 FIXED COMBO // Added E Interrupt"));

            Game.OnTick    += Game_OnTick;
            Drawing.OnDraw += Drawing_OnDraw;

            Chat.Print("Soft Veigar by TroopSoft Loaded", Color.Aqua);
            Chat.Print("If any Bug does exist , message TroopSoft on EloBuddy!", Color.CadetBlue);
            Chat.Print("Dominate this game!!", Color.Green);
        }
        private static void Loading_OnLoadingComplete(EventArgs args)
        {
            if (Player.Instance.ChampionName != "Olaf")
            {
                return;
            }

            SpellDataInst smite = _Player.Spellbook.Spells.Where(spell => spell.Name.Contains("smite")).Any() ? _Player.Spellbook.Spells.Where(spell => spell.Name.Contains("smite")).First() : null;

            if (smite != null)
            {
                Smite = new Spell.Targeted(smite.Slot, 500);
            }



            Bootstrap.Init(null);

            Healthpot        = new Item(2003, 0);
            Manapot          = new Item(2004, 0);
            RefillablePotion = new Item(2031, 0);
            HuntersPotion    = new Item(2032, 0);
            CorruptionPotion = new Item(2033, 0);
            uint level = (uint)Player.Instance.Level;

            Q = new Spell.Skillshot(SpellSlot.Q, 1000, SkillShotType.Linear, 250, 1550, 75)
            {
                AllowedCollisionCount = int.MaxValue, MinimumHitChance = HitChance.High
            };
            Q2 = new Spell.Skillshot(SpellSlot.Q, 900, SkillShotType.Linear, 250, 1550, 75)
            {
                AllowedCollisionCount = int.MaxValue, MinimumHitChance = HitChance.High
            };
            W = new Spell.Active(SpellSlot.W);
            E = new Spell.Targeted(SpellSlot.E, 325);
            R = new Spell.Active(SpellSlot.R);

            Menu = MainMenu.AddMenu("Perfect Olaf", "perfectolaf");

            ComboMenu = Menu.AddSubMenu("Combo Settings", "ComboSettings");
            ComboMenu.AddLabel("Kombo Ayarları");
            ComboMenu.Add("QCombo", new CheckBox("Kullan Q"));
            ComboMenu.Add("WCombo", new CheckBox("Kullan W"));
            ComboMenu.Add("ECombo", new CheckBox("Kullan E"));
            ComboMenu.Add("RCombo", new CheckBox("Kullan R"));
            ComboMenu.Add("useTiamat", new CheckBox("Kullan İtemler"));

            HarassMenu = Menu.AddSubMenu("Harass Settings", "HarassSettings");
            HarassMenu.AddLabel("Dürtme Ayarları");
            HarassMenu.Add("QHarass", new CheckBox("Kullan Q"));
            HarassMenu.Add("WHarass", new CheckBox("Kullan W"));
            HarassMenu.Add("EHarass", new CheckBox("Kullan E"));

            FarmingMenu = Menu.AddSubMenu("Lane Clear", "FarmSettings");

            FarmingMenu.AddLabel("Lane Temizleme");
            FarmingMenu.Add("QLaneClear", new CheckBox("Q Kullan"));
            FarmingMenu.Add("QlaneclearMana", new Slider("Mana < %", 45, 0, 100));
            FarmingMenu.Add("WLaneClear", new CheckBox("W Kullan"));
            FarmingMenu.Add("WlaneclearMana", new Slider("Mana < %", 45, 0, 100));
            FarmingMenu.Add("ELaneClear", new CheckBox("E Kullan"));
            FarmingMenu.Add("ElaneclearHP", new Slider("Canım < %", 10, 0, 100));

            FarmingMenu.AddLabel("Orman Temizleme");
            FarmingMenu.Add("Qjungle", new CheckBox("Q Kullan"));
            FarmingMenu.Add("QjungleMana", new Slider("Mana < %", 45, 0, 100));
            FarmingMenu.Add("Wjungle", new CheckBox("W Kullan"));
            FarmingMenu.Add("WjungleMana", new Slider("Mana < %", 45, 0, 100));
            FarmingMenu.Add("Ejungle", new CheckBox("E Kullan"));
            FarmingMenu.Add("EjungleHP", new Slider("Canım < %", 25, 0, 100));

            FarmingMenu.AddLabel("SonVuruş Ayarları");
            FarmingMenu.Add("Qlasthit", new CheckBox("Q Kullan"));
            FarmingMenu.Add("Elasthit", new CheckBox("E Kullan"));
            FarmingMenu.Add("QlasthitMana", new Slider("Mana < %", 45, 0, 100));

            SetSmiteSlot();
            if (SmiteSlot != SpellSlot.Unknown)
            {
                SmiteMenu = Menu.AddSubMenu("Smite Usage", "SmiteUsage");
                SmiteMenu.AddLabel("Çarp Kullanımı");
                SmiteMenu.Add("Use Smite?", new CheckBox("Çarp Kullan"));
                SmiteMenu.Add("SmiteEnemy", new CheckBox("Komboda düşmana çarp kullan!"));
                SmiteMenu.Add("Red?", new CheckBox("Kırmızı"));
                SmiteMenu.Add("Blue?", new CheckBox("Mavi"));
                SmiteMenu.Add("Dragon?", new CheckBox("Ejder"));
                SmiteMenu.Add("Baron?", new CheckBox("Baron"));
            }


            MiscMenu = Menu.AddSubMenu("More Settings", "Misc");

            MiscMenu.AddLabel("Otomatik Ayarlar");
            MiscMenu.Add("Auto Ignite", new CheckBox("Otomatik Tutuştur"));
            MiscMenu.Add("autoQ", new CheckBox("Kaçarken otomatik Q Kullan"));
            MiscMenu.Add("autoR", new CheckBox("Tehlikeli durumlarda Otomatik R", false));
            MiscMenu.Add("autoEenemyHP", new Slider("Düşman Canı < %", 45, 0, 100));
            MiscMenu.AddSeparator();
            MiscMenu.AddLabel("İtemler");
            MiscMenu.AddLabel("Mahvolmuş ve Bilge Palası");
            MiscMenu.Add("botrkHP", new Slider("Canım < %", 60, 0, 100));
            MiscMenu.Add("botrkenemyHP", new Slider("Düşmanın canı < %", 60, 0, 100));

            MiscMenu.AddLabel("KillÇalma");
            MiscMenu.Add("Qkill", new CheckBox("Q Kullan"));
            MiscMenu.Add("Ekill", new CheckBox("E Kullan"));

            MiscMenu.AddLabel("Aktivator");
            MiscMenu.Add("useHP", new CheckBox("Can İksiri Kullan"));
            MiscMenu.Add("useHPV", new Slider("Canım < %", 45, 0, 100));
            MiscMenu.Add("useMana", new CheckBox("Mana iksiri kullan"));
            MiscMenu.Add("useManaV", new Slider("Mana < %", 45, 0, 100));
            MiscMenu.Add("useCrystal", new CheckBox("Dolduralabilir iksir kullan"));
            MiscMenu.Add("useCrystalHPV", new Slider("Canım < %", 45, 0, 100));
            MiscMenu.Add("useCrystalManaV", new Slider("Mana < %", 45, 0, 100));

            DrawMenu = Menu.AddSubMenu("Draw Settings", "Drawings");
            DrawMenu.Add("drawAA", new CheckBox("Göster AA Menzili"));
            DrawMenu.Add("drawQ", new CheckBox("Göster Q"));
            DrawMenu.Add("drawQpos", new CheckBox("Göster Q Pozisyonu"));
            DrawMenu.Add("drawE", new CheckBox("Göster E"));

            UpdateMenu = Menu.AddSubMenu("Last Update Logs", "Updates");
            UpdateMenu.AddLabel("V0.1.7.0");
            UpdateMenu.AddLabel("-Q Prediction UPDATE! Please Change Prediction Settings");
            UpdateMenu.AddLabel("Prediction");
            UpdateMenu.AddLabel("  Algorithm");
            UpdateMenu.AddLabel("    Hitchance = 4");
            UpdateMenu.AddLabel("  Collision");
            UpdateMenu.AddLabel("    Extra Hitbox Radius = 40");

            Game.OnTick         += Game_OnTick;
            Drawing.OnDraw      += Drawing_OnDraw;
            GameObject.OnCreate += GameObject_OnCreate;
            GameObject.OnDelete += GameObject_OnDelete;

            Chat.Print("Perrrrrrrrrfect Addon made by Centilmen50, Cevirmen tradana", System.Drawing.Color.Red);
        }
Exemplo n.º 9
0
        private static void Loading_OnLoadingComplete(EventArgs args)
        {
            if (Player.Instance.ChampionName != "Hecarim")
            {
                return;
            }


            Bootstrap.Init(null);

            Healthpot        = new Item(2003, 0);
            Manapot          = new Item(2004, 0);
            CrystalFlask     = new Item(2041, 0);
            CorruptingPotion = new Item(2033, 0);
            RefillablePotion = new Item(2031, 0);

            uint level = (uint)Player.Instance.Level;

            Q = new Spell.Active(SpellSlot.Q, 350);
            W = new Spell.Active(SpellSlot.W, 525);
            E = new Spell.Active(SpellSlot.E, 450);
            R = new Spell.Skillshot(SpellSlot.R, 1000, SkillShotType.Linear, 250, 800, 200);

            Menu = MainMenu.AddMenu("Perfect Hecarim", "perfecthecarim");
            Menu.AddLabel("Mükemmel Ass");
            Menu.AddLabel("Çeviri TRAdana-Güncellemede bildiriniz");

            Menu.AddSeparator();


            ComboMenu = Menu.AddSubMenu("Combo Ayarları", "ComboSettings");
            ComboMenu.AddLabel("Combo Ayarları");
            ComboMenu.Add("QCombo", new CheckBox("Kullan Q"));
            ComboMenu.Add("WCombo", new CheckBox("Kullan W"));
            ComboMenu.Add("ECombo", new CheckBox("Kullan E"));
            ComboMenu.Add("RCombo", new CheckBox("Kullan R"));
            ComboMenu.Add("rCount", new Slider("R için say ", 3, 1, 5));
            ComboMenu.Add("useTiamat", new CheckBox("İtemleri Kullan"));

            HarassMenu = Menu.AddSubMenu("Dürtme Ayarları", "HarassSettings");
            HarassMenu.AddLabel("Dürtme Ayarları");
            HarassMenu.Add("QHarass", new CheckBox("Kullan Q"));

            FarmingMenu = Menu.AddSubMenu("LaneTemizleme", "FarmSettings");

            FarmingMenu.AddLabel("LaneTemizleme");
            FarmingMenu.Add("QLaneClear", new CheckBox("LaneTemizlemede Q Kullan"));
            FarmingMenu.Add("QlaneclearMana", new Slider("Manam < %", 45, 0, 100));
            FarmingMenu.Add("WLaneClear", new CheckBox("LaneTemizlemede W Kullan"));
            FarmingMenu.Add("WlaneclearMana", new Slider("Manam < %", 45, 0, 100));

            FarmingMenu.AddLabel("OrmanTemizleme");
            FarmingMenu.Add("Qjungle", new CheckBox("OrmanTemizlemede Q Kullan"));
            FarmingMenu.Add("QjungleMana", new Slider("Manam < %", 45, 0, 100));
            FarmingMenu.Add("Wjungle", new CheckBox("OrmanTemizlemede W Kullan"));
            FarmingMenu.Add("WjungleMana", new Slider("Manam < %", 45, 0, 100));
            FarmingMenu.Add("Ejungle", new CheckBox("OrmanTemizlemede E Kullan"));
            FarmingMenu.Add("EjungleMana", new Slider("Manam < %", 70, 0, 100));

            FarmingMenu.AddLabel("Son Vuruş Ayarları");
            FarmingMenu.Add("Qlasthit", new CheckBox("Son Vuruşta Q Kullan"));
            FarmingMenu.Add("QlasthitMana", new Slider("Mana < %", 45, 0, 100));

            SmiteMenu = Menu.AddSubMenu("Çarp Kullan", "SmiteUsage");
            SmiteMenu.AddLabel("Çarp Kullan");
            SmiteMenu.Add("Use Smite?", new CheckBox("Çarp Kullan"));
            SmiteMenu.Add("Red?", new CheckBox("Kırmızı"));
            SmiteMenu.Add("Blue?", new CheckBox("Mavi"));
            SmiteMenu.Add("Dragon?", new CheckBox("Ejder"));
            SmiteMenu.Add("Baron?", new CheckBox("Baron"));


            MiscMenu = Menu.AddSubMenu("Ek Ayarlar", "Misc");

            MiscMenu.AddLabel("Otomatik");
            MiscMenu.Add("Auto Ignite", new CheckBox("Otomatik Tutuştur"));
            MiscMenu.Add("autoE", new CheckBox("Kaçarken Otomatik E Kullan"));
            MiscMenu.Add("autoR", new CheckBox("Tehlikeli Büyülerde otomatik R kullan"));
            MiscMenu.AddSeparator();
            MiscMenu.AddLabel("İtemler");
            MiscMenu.AddSeparator();
            MiscMenu.AddLabel("Mahvolmuş Kılıç Ayarları");
            MiscMenu.Add("botrkHP", new Slider("Benim canım < %", 60, 0, 100));
            MiscMenu.Add("botrkenemyHP", new Slider("Düşmanın canı < %", 60, 0, 100));

            MiscMenu.AddLabel("Kill Çalma");
            MiscMenu.Add("Qkill", new CheckBox("KillÇalmada Q Kullan"));
            MiscMenu.Add("Ekill", new CheckBox("KillÇalmada E Kullan"));

            MiscMenu.AddLabel("Aktif Edici");
            MiscMenu.Add("useHP", new CheckBox("Can İksiri Kullan"));
            MiscMenu.Add("useHPV", new Slider("Canım < %", 45, 0, 100));
            MiscMenu.Add("useMana", new CheckBox("Mana İksiri Kullan"));
            MiscMenu.Add("useManaV", new Slider("Manam < %", 45, 0, 100));
            MiscMenu.Add("useCrystal", new CheckBox("Bisküvi Kullan"));
            MiscMenu.Add("useCrystalHPV", new Slider("Canım < %", 45, 0, 100));
            MiscMenu.Add("useCrystalManaV", new Slider("Manam < %", 45, 0, 100));

            Skin = Menu.AddSubMenu("Skin Değiştirici", "SkinChange");
            Skin.Add("checkSkin", new CheckBox("Skin Değiştirici Kullan"));
            Skin.Add("skin.Id", new Slider("Skin Numarası", 3, 0, 5));

            DrawMenu = Menu.AddSubMenu("Göster Ayarları", "Drawings");
            DrawMenu.Add("drawAA", new CheckBox("Göster AA Menzili"));
            DrawMenu.Add("drawQ", new CheckBox("Göster Q Menzili"));
            DrawMenu.Add("drawW", new CheckBox("Göster W Menzili"));
            DrawMenu.Add("drawR", new CheckBox("Göster R Menzili"));

            UpdateMenu = Menu.AddSubMenu("Son Güncelleme Kaydı", "Updates");
            UpdateMenu.AddLabel("V0.0.3");
            UpdateMenu.AddLabel("-Orman Temizleme Eklendi!");

            Game.OnTick    += Game_OnTick;
            Drawing.OnDraw += Drawing_OnDraw;
            Game.OnUpdate  += OnGameUpdate;

            Chat.Print("Perrrrrrrrrfect Addon,TRAdana iyi oyunlar diler", System.Drawing.Color.Red);
        }