Exemplo n.º 1
0
        private static void onLoad(EventArgs args)
        {
            try {
                loadMenu();
                menu.AddToMainMenu();

                Drawing.OnDraw     += onDraw;
                Drawing.OnEndScene += OnEndScene;
                Game.OnGameUpdate  += OnGameUpdate;

                GameObject.OnCreate            += OnCreateObject;
                GameObject.OnDelete            += OnDeleteObject;
                Obj_AI_Base.OnProcessSpellCast += OnProcessSpell;

                Game.OnGameSendPacket    += OnGameSendPacket;
                Game.OnGameProcessPacket += OnGameProcessPacket;

                Zed.setSkillshots();

                // loadSpeech();
            }
            catch (Exception ex) {
                Console.WriteLine(ex.Message);
            }
        }
Exemplo n.º 2
0
        /*private static void setInterval() {
         *  wantSpeech = menu.Item("speech").GetValue<bool>();
         *  if (wantSpeech) {
         *      int speechInterval = menu.Item("speechinterval").GetValue<Slider>().Value;
         *      if (oldInterval == speechInterval) {
         *          return;
         *      }
         *      if (oldInterval != speechInterval) {
         *          speechTimer.Change(0, speechInterval);
         *          //Message("New Delay: " + speechInterval / 1000 + " Seconds.");
         *          oldInterval = speechInterval;
         *      }
         *  }
         * }*/


        private static void OnEndScene(EventArgs args)
        {
            if (menu.Item("drawHp").GetValue <bool>())
            {
                foreach (
                    Obj_AI_Hero enemy in
                    ObjectManager.Get <Obj_AI_Hero>()
                    .Where(ene => !ene.IsDead && ene.IsEnemy && ene.IsVisible))
                {
                    hpi.unit = enemy;
                    hpi.drawDmg(Zed.getFullComboDmg(enemy));
                }
            }
        }
Exemplo n.º 3
0
        private static void OnGameUpdate(EventArgs args)
        {
            Zed.checkForSwap("LowHP");

            Zed.Flee();
            Obj_AI_Hero target  = SimpleTs.GetTarget(Zed.Q.Range + Zed.W.Range, SimpleTs.DamageType.Physical);
            Obj_AI_Hero target2 = SimpleTs.GetTarget(Zed.R.Range + Zed.Q.Range, SimpleTs.DamageType.Physical);

            if (menu.Item("shadowCoax").GetValue <KeyBind>().Active)
            {
                Zed.shadowCoax(target2);
            }
            //setInterval();
            switch (LXOrbwalker.CurrentMode)
            {
            case LXOrbwalker.Mode.Combo:
                if (Zed.R.IsReady() && Zed.Player.Distance(target) < Zed.R.Range &&
                    menu.Item("useRC").GetValue <bool>() && menu.Item("use" + target.ChampionName).GetValue <bool>())
                {
                    Zed.doLineCombo(target);
                }
                else
                {
                    Zed.normalCombo(target);
                }
                break;

            case LXOrbwalker.Mode.Harass:
                Zed.doHarass(target);
                break;

            case LXOrbwalker.Mode.LaneClear:
                Zed.doLaneClear();
                break;

            case LXOrbwalker.Mode.Lasthit:
                Zed.doLastHit();
                break;
            }

            if (LXOrbwalker.CurrentMode != LXOrbwalker.Mode.Combo)
            {
                Zed.serverTookWCast = false;
            }
        }
Exemplo n.º 4
0
 private static void onDraw(EventArgs args)
 {
     // Obj_AI_Hero pl = ObjectManager.Get<Obj_AI_Hero>().FirstOrDefault(h => h.IsEnemy);
     // Vector3 shadowPos = pl.Position + Vector3.Normalize(pl.Position - ObjectManager.Player.Position)*Zed.W.Range;
     // Utility.DrawCircle(shadowPos, 100, Color.Yellow);
     foreach (
         Obj_AI_Hero Hero in
         ObjectManager.Get <Obj_AI_Hero>().Where(
             h => h.IsEnemy && h.Distance(Zed.shadowW.Position) <= Zed.R.Range && h.IsValidTarget()))
     {
         if (Zed.isKillableShadowCoax(Hero) && Zed.R.IsReady())
         {
             Vector2 pScreen = Drawing.WorldToScreen(Hero.Position);
             pScreen[0] -= 20;
             Drawing.DrawText(pScreen.X - 60, pScreen.Y, Color.Red, "Killable by Shadow Coax");
             //Utility.DrawCircle(Hero.Position,100f,Color.Blue);
         }
     }
     if (Zed.shadowW != null && !Zed.shadowW.IsDead)
     {
         Utility.DrawCircle(Zed.shadowW.Position, 100, Color.Red);
     }
 }