Exemple #1
0
        public static void Load()
        {
            try
            {
                slot1 = Entry.Player.Spellbook.GetSpell(SpellSlot.Summoner1);
                slot2 = Entry.Player.Spellbook.GetSpell(SpellSlot.Summoner2);

                //Soon riot will introduce multiple cleanses, mark my words.
                var cleanseNames = new[] { "summonerboost" };

                if (cleanseNames.Contains(slot1.Name))
                {
                    cleanseSpell = new Spell(SpellSlot.Summoner1, 550f);
                    summonerCleanse = SpellSlot.Summoner1;
                }
                else if (cleanseNames.Contains(slot2.Name))
                {
                    cleanseSpell = new Spell(SpellSlot.Summoner2, 550f);
                    summonerCleanse = SpellSlot.Summoner2;
                }
                else
                {
                    Console.WriteLine("You don't have cleanse f****t");
                    return;
                }

                Game.OnUpdate += OnUpdate;
            }
            catch (Exception e)
            {
                Console.WriteLine("An error occurred: '{0}'", e);
            }
        }
Exemple #2
0
 public static void InitSpells()
 {
     Q     = new Spell(SpellSlot.Q, 300f);
     W     = new Spell(SpellSlot.W);
     E     = new Spell(SpellSlot.E, 545f);
     R     = new Spell(SpellSlot.R);
     Flash = Player.GetSpellSlot("summonerflash");
 }
Exemple #3
0
        public SpellData(LeagueSharp.SpellSlot slot,
                         TargetSelector.DamageType damageType,
                         int type,
                         string spellName,
                         float delay,
                         float radius,
                         float range,
                         int missileSpeed,
                         Func <float> rangeFunc            = null,
                         Func <Obj_AI_Base, double> damage = null)
        {
            SpellName    = spellName;
            Delay        = delay;
            Radius       = radius;
            Range        = range;
            MissileSpeed = missileSpeed;
            Instance     = new Spell(slot, range, damageType);

            switch (type)
            {
            case 1:
                Instance.SetSkillshot(delay, radius, missileSpeed, false, SkillshotType.SkillshotLine);
                break;

            case 2:
                Instance.SetTargetted(delay, missileSpeed);
                break;

            case 3:
                Instance.SetSkillshot(delay, radius, missileSpeed, false, SkillshotType.SkillshotCircle);
                break;

            case 4:
                Instance.SetSkillshot(delay, radius, missileSpeed, false, SkillshotType.SkillshotCone);
                break;
            }

            RangeFunc = rangeFunc;
            Damage    = damage;
        }
Exemple #4
0
 public MItem(String name, String menuName, String menuVariable, int id, ItemTypeId type, float range = 0, SpellSlot abilitySlot = SpellSlot.Unknown, SpellType spellType = SpellType.TargetAll)
 {
     this.name = name;
     this.menuVariable = menuVariable;
     this.menuName = menuName;
     this.id = id;
     this.range = range;
     this.type = type;
     this.abilitySlot = abilitySlot;
     this.spellType = spellType;
 }
Exemple #5
0
 public static void InitSpells()
 {
     Q = new Spell(SpellSlot.Q, 300f);
     W = new Spell(SpellSlot.W);
     E = new Spell(SpellSlot.E, 545f);
     R = new Spell(SpellSlot.R);
     Flash = Player.GetSpellSlot("summonerflash");
 }
Exemple #6
0
 public MItem(String name, String menuName, String menuVariable, int id, ItemTypeId type, float range = 0, SpellSlot abilitySlot = SpellSlot.Unknown, SpellType spellType = SpellType.TargetAll)
 {
     this.name         = name;
     this.menuVariable = menuVariable;
     this.menuName     = menuName;
     this.id           = id;
     this.range        = range;
     this.type         = type;
     this.abilitySlot  = abilitySlot;
     this.spellType    = spellType;
 }