Beispiel #1
0
        private static void GameOnDraw(EventArgs args)
        {
            if (ZyraTheTrollMeNu.Nodraw())
            {
                return;
            }

            {
                if (ZyraTheTrollMeNu.DrawingsQ())
                {
                    new Circle {
                        Color = Color.Red, Radius = Q.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (ZyraTheTrollMeNu.DrawingsW())
                {
                    new Circle {
                        Color = Color.Red, Radius = W.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (ZyraTheTrollMeNu.DrawingsE())
                {
                    new Circle {
                        Color = Color.Red, Radius = E.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
                if (ZyraTheTrollMeNu.DrawingsR())
                {
                    new Circle {
                        Color = Color.Red, Radius = R.Range, BorderWidth = 2f
                    }.Draw(Player.Position);
                }
            }
        }
Beispiel #2
0
        private static void OnLoadingComplete(EventArgs args)
        {
            if (Player.ChampionName != "Zyra")
            {
                return;
            }
            Chat.Print(
                "<font color=\"#d80303\" >MeLoDag Presents </font><font color=\"#ffffff\" > Zyra </font><font color=\"#d80303\" >Kappa Kippo</font>");
            ZyraTheTrollMeNu.LoadMenu();
            Game.OnTick += GameOnTick;
            Activator.LoadSpells();
            Game.OnUpdate += OnGameUpdate;

            #region Skill

            Q = new Spell.Skillshot(SpellSlot.Q, 800, SkillShotType.Cone);
            W = new Spell.Active(SpellSlot.W, 850);
            E = new Spell.Skillshot(SpellSlot.E, 1100, SkillShotType.Linear, 250, 1150, 80);
            {
                E.AllowedCollisionCount = 0;
            }
            R = new Spell.Skillshot(SpellSlot.R, 700, SkillShotType.Circular, 250, 1200, 150);

            #endregion

            Gapcloser.OnGapcloser            += AntiGapCloser;
            Interrupter.OnInterruptableSpell += Interupt;
            Drawing.OnDraw += GameOnDraw;
            DamageIndicator.Initialize(SpellDamage.GetTotalDamage);
        }
Beispiel #3
0
 private static void Heal()
 {
     if (Activator.Heal != null && Activator.Heal.IsReady() &&
         Player.HealthPercent <= ZyraTheTrollMeNu.SpellsHealHp() &&
         Player.CountEnemiesInRange(600) > 0 && Activator.Heal.IsReady())
     {
         Activator.Heal.Cast();
     }
 }
Beispiel #4
0
        private static void Ignite()
        {
            var autoIgnite = TargetSelector.GetTarget(Activator.Ignite.Range, DamageType.True);

            if (autoIgnite != null && autoIgnite.Health <= Player.GetSpellDamage(autoIgnite, Activator.Ignite.Slot) ||
                autoIgnite != null && autoIgnite.HealthPercent <= ZyraTheTrollMeNu.SpellsIgniteFocus())
            {
                Activator.Ignite.Cast(autoIgnite);
            }
        }
Beispiel #5
0
 void OnGameUpdate(EventArgs args)
 {
     if (Activator.Heal != null)
     {
         Heal();
     }
     if (Activator.Ignite != null)
     {
         Ignite();
     }
     if (ZyraTheTrollMeNu.CheckSkin())
     {
         if (ZyraTheTrollMeNu.SkinId() != CurrentSkin)
         {
             Player.SetSkinId(ZyraTheTrollMeNu.SkinId());
             CurrentSkin = ZyraTheTrollMeNu.SkinId();
         }
     }
 }
Beispiel #6
0
 void AutoPotions()
 {
     if (ZyraTheTrollMeNu.SpellsPotionsCheck() && !Player.IsInShopRange() &&
         Player.HealthPercent <= ZyraTheTrollMeNu.SpellsPotionsHp() &&
         !(Player.HasBuff("RegenerationPotion") || Player.HasBuff("ItemCrystalFlaskJungle") ||
           Player.HasBuff("ItemMiniRegenPotion") || Player.HasBuff("ItemCrystalFlask") ||
           Player.HasBuff("ItemDarkCrystalFlask")))
     {
         if (Activator.HuntersPot.IsReady() && Activator.HuntersPot.IsOwned())
         {
             Activator.HuntersPot.Cast();
         }
         if (Activator.CorruptPot.IsReady() && Activator.CorruptPot.IsOwned())
         {
             Activator.CorruptPot.Cast();
         }
         if (Activator.Biscuit.IsReady() && Activator.Biscuit.IsOwned())
         {
             Activator.Biscuit.Cast();
         }
         if (Activator.HpPot.IsReady() && Activator.HpPot.IsOwned())
         {
             Activator.HpPot.Cast();
         }
         if (Activator.RefillPot.IsReady() && Activator.RefillPot.IsOwned())
         {
             Activator.RefillPot.Cast();
         }
     }
     if (ZyraTheTrollMeNu.SpellsPotionsCheck() && !Player.IsInShopRange() &&
         Player.ManaPercent <= ZyraTheTrollMeNu.SpellsPotionsM() &&
         !(Player.HasBuff("RegenerationPotion") || Player.HasBuff("ItemCrystalFlaskJungle") ||
           Player.HasBuff("ItemMiniRegenPotion") || Player.HasBuff("ItemCrystalFlask") ||
           Player.HasBuff("ItemDarkCrystalFlask")))
     {
         if (Activator.CorruptPot.IsReady() && Activator.CorruptPot.IsOwned())
         {
             Activator.CorruptPot.Cast();
         }
     }
 }