Ejemplo n.º 1
0
 public static void UseE()
 {
     if (MenuManager.UseE && SpellManager.E.IsReady() && !MenuManager.AutoE) //!AutoE to save FPS
     {
         Condemn.Execute();
     }
 }
Ejemplo n.º 2
0
            static Modes()
            {
                Menu = MenuManager.Menu.AddSubMenu("Modes");

                Combo.Initialize();
                Menu.AddSeparator();
                Harass.Initialize();
                Menu.AddSeparator();
                LastHit.Initialize();
                Menu.AddSeparator();
                LaneClear.Initialize();
                Menu.AddSeparator();
                JungleClear.Initialize();
                Menu.AddSeparator();

                Menu        = MenuManager.Menu.AddSubMenu("Condemn");
                CondemnMenu = Menu;
                Condemn.Initialize();

                Menu = MenuManager.Menu.AddSubMenu("Misc");
                Misc.Initialize();

                Menu = MenuManager.Menu.AddSubMenu("Activator");
                ItemUsage.Initialize();

                Menu = MenuManager.Menu.AddSubMenu("Gosu");
                Gosu.Initialize();
            }
Ejemplo n.º 3
0
 public static void UseE()
 {
     if (Variables.AfterAttack && Manager.MenuManager.UseE && Manager.SpellManager.E.IsReady())
     {
         Condemn.Execute();
     }
 }
Ejemplo n.º 4
0
 public Vayne()
     : base("Vayne", "SAutoCarry - Vayne")
 {
     Tumble.Initialize(this);
     Condemn.Initialize(this);
     SCommon.Prediction.Prediction.predMenu.Item("SPREDDRAWINGS").SetValue(false);
     OnDraw   += BeforeDraw;
     OnCombo  += Combo;
     OnHarass += Harass;
 }
Ejemplo n.º 5
0
 public void Combo()
 {
     if (ComboUseE)
     {
         var t = TargetSelector.GetTarget(Spells[E].Range + 300f, LeagueSharp.Common.TargetSelector.DamageType.Physical);
         if (t != null && Spells[E].IsReady() && Condemn.IsValidTarget(t))
         {
             Spells[E].CastOnUnit(t);
         }
     }
 }
Ejemplo n.º 6
0
        private static void OnJungle()
        {
            if (Config.Menu["jungle.settings"]["jungle.mana"] < ObjectManager.Player.ManaPercent)
            {
                return;
            }

            if (Config.Menu["jungle.settings"]["jungle.e"] && Spells.E.IsReady())
            {
                foreach (var mob in GameObjects.JungleLarge.Where(x => x.IsValidTarget(Spells.E.Range)))
                {
                    Condemn.JungleCondemn(mob, Config.PushDistance.Value);
                }
            }
        }
Ejemplo n.º 7
0
        private static void OnJungle()
        {
            if (Config.getSliderItem(Config.jungleMenu, "jungle.mana") < ObjectManager.Player.ManaPercent)
            {
                return;
            }

            if (Config.getCheckBoxItem(Config.jungleMenu, "jungle.e") && Spells.E.IsReady())
            {
                foreach (var mob in GameObjects.JungleLarge.Where(x => x.LSIsValidTarget(Spells.E.Range)))
                {
                    Condemn.JungleCondemn(mob, Config.PushDistance);
                }
            }
        }
Ejemplo n.º 8
0
        public void Harass()
        {
            if (HarassUseE)
            {
                var t = TargetSelector.GetTarget(Spells[E].Range + 300, LeagueSharp.Common.TargetSelector.DamageType.Physical);
                if (t != null && Spells[E].IsReady())
                {
                    if (HarassUseE3RdW && t.IsValidTarget(Spells[E].Range) && t.GetBuffCount("vaynesilvereddebuff") == 2)
                    {
                        Spells[E].CastOnUnit(t);
                    }

                    if (Condemn.IsValidTarget(t))
                    {
                        Spells[E].CastOnUnit(t);
                    }
                }
            }
        }
Ejemplo n.º 9
0
    // Use this for initialization
    void Start()
    {
        currentHealth = maxHealth;

        //Initialize Abilities - TODO Should this be done statically?
        tumble = new Tumble();
        tumble.setScript(this);
        silverBolts = new Silver_Bolts();
        silverBolts.setScript(this);
        condemn = new Condemn();
        condemn.setScript(this);
        finalHour = new Final_Hour();
        finalHour.setScript(this);
        //	valor = new Valor();
        //	valor.setScript(this);

        IconWidth = tumbleTexture.width;
        IconHeight = tumbleTexture.height;

        //Initially not running
        running = false;

        idling = true;

        a = gameObject.GetComponent(typeof(Animation)) as Animation;

        originalRotation = transform.localRotation;
        //spinning = false;

        alive = true;
    }
Ejemplo n.º 10
0
    // Use this for initialization
    void Start()
    {
        //Initialize Abilities - TODO Should this be done statically?
        tumble = new Tumble();
        tumble.setScript(this);
        silverBolts = new Silver_Bolts();
        silverBolts.setScript(this);
        condemn = new Condemn();
        condemn.setScript(this);
        finalHour = new Final_Hour();
        finalHour.setScript(this);
        shadowBolt = new ShadowBolt();
        shadowBolt.setScript(this);

        IconWidth = tumbleTexture.width;
        IconHeight = tumbleTexture.height;

        level = 1;

        //Initially not running
        running = false;

        idling = true;

        a = gameObject.GetComponent(typeof(Animation)) as Animation;

        originalRotation = transform.localRotation;

        alive = true;

        inventory = new Item[inventorySize];

        Bow startingBow = new Bow();
        startingBow.randomizeWeapon(1, 1);
        awardItem(startingBow);

        Helm startingHelm = new Helm();
        startingHelm.randomizeArmor(1, 1);
        awardItem(startingHelm);

        Chest startingChest = new Chest();
        startingChest.randomizeArmor(1, 1);
        awardItem(startingChest);

        Gloves startingGloves = new Gloves();
        startingGloves.randomizeArmor(1, 1);
        awardItem(startingGloves);

        Boots startingBoots = new Boots();
        startingBoots.randomizeArmor(1, 1);
        awardItem(startingBoots);

        checkpointTexture = Resources.Load("CheckpointTexture/CheckpointMaybe") as Texture2D;
        playerPortrait = Resources.Load("CheckpointTexture/vayne_circle") as Texture2D;
        playerManaTexture = Resources.Load("PlayerTextures/mana") as Texture2D;
        swiftDeathTexture = Resources.Load("VayneTextures/swiftDeath") as Texture2D;
        shadowBoltTexture = Resources.Load("VayneTextures/ShadowBolt") as Texture2D;

        leftClickOverlay = Resources.Load("InstructionPage/leftclick") as Texture2D;
        rightClickOverlay = Resources.Load("InstructionPage/rightclick") as Texture2D;

        winTexture = Resources.Load("GUITextures/victoryFull") as Texture2D;
        lossTexture = Resources.Load("GUITextures/defeatFull") as Texture2D;
        continueButton = Resources.Load("InstructionPage/Continue") as Texture2D;
        continueButtonHighlighted = Resources.Load("InstructionPage/Continue2") as Texture2D;

        equipment = new Item[6]; //TODO decide on size

        equipmentRect = new Rect(50, 50, 300, 300);
        inventoryRect = new Rect(Screen.width - 350, 50, 300, Mathf.Ceil(inventorySize / 6) * 50 + 20);
        confirmRect = new Rect((Screen.width / 2) - 150, Screen.height / 4, 300, 300);
        continueRect = new Rect((Screen.width / 2) - (continueButton.width / 2), Screen.height * (3.0f/4.0f), continueButton.width, continueButton.height);

        movementSpeed = 1;

        recalculateStats();

        if(PlayerPrefs.GetString("IsSaveGame") == "true"){
            name = PlayerPrefs.GetString("SaveFileName");
            Load();
        }

        currentHealth = maxHealth;
        currentMana = maxMana;

        Save();
    }