コード例 #1
0
ファイル: OKTWward.cs プロジェクト: happymaj00r/Port
        private void Game_OnUpdate(EventArgs args)
        {
            if (!Program.LagFree(0) || Player.IsRecalling() || Player.IsDead)
            {
                return;
            }

            foreach (var obj in HiddenObjList)
            {
                if (obj.endTime < Game.Time)
                {
                    HiddenObjList.Remove(obj);
                    return;
                }
            }

            if (Config.Item("autoBuy").GetValue <bool>() && Player.InFountain() && !ScryingOrb.IsOwned() && Player.Level >= 9 && Shop.IsOpen)
            {
                var itm = new EloBuddy.SDK.Item(ItemId.Farsight_Alteration);
                itm.Buy();
            }

            if (rengar && Player.HasBuff("rengarralertsound"))
            {
                CastVisionWards(Player.ServerPosition);
            }

            if (Vayne != null && Vayne.IsValidTarget(1000) && Vayne.HasBuff("vaynetumblefade"))
            {
                CastVisionWards(Vayne.ServerPosition);
            }

            AutoWardLogic();
        }
コード例 #2
0
ファイル: Zhonya.cs プロジェクト: Burbb/Portaio
        /// <summary>
        ///     Initializes this instance.
        /// </summary>
        public void Load()
        {
            zhonyaItem = new EloBuddy.SDK.Item(Game.MapId == GameMapId.SummonersRift ? ItemId.Zhonyas_Hourglass : EloBuddy.ItemId.Wooglets_Witchcap);

            Game.OnUpdate                  += this.OnUpdate;
            GameObject.OnCreate            += this.GameObjectOnCreate;
            Obj_AI_Base.OnProcessSpellCast += this.ObjAiBaseOnProcessSpellCast;
        }
コード例 #3
0
 private static void InitItem()
 {
     Bilgewater    = new EloBuddy.SDK.Item(ItemId.Bilgewater_Cutlass, 550);
     BotRuinedKing = new EloBuddy.SDK.Item(ItemId.Blade_of_the_Ruined_King, 550);
     Youmuu        = new EloBuddy.SDK.Item(ItemId.Youmuus_Ghostblade, 0);
     Tiamat        = new EloBuddy.SDK.Item(ItemId.Tiamat_Melee_Only, 400);
     Hydra         = new EloBuddy.SDK.Item(ItemId.Ravenous_Hydra_Melee_Only, 400);
     Titanic       = new EloBuddy.SDK.Item(3748, 0);
 }
コード例 #4
0
ファイル: Program.cs プロジェクト: CONANLXF/AIO
 private static void InitItem()
 {
     Bilgewater = new EloBuddy.SDK.Item(ItemId.Bilgewater_Cutlass, 550);
     BotRuinedKing = new EloBuddy.SDK.Item(ItemId.Blade_of_the_Ruined_King, 550);
     Youmuu = new EloBuddy.SDK.Item(ItemId.Youmuus_Ghostblade, 0);
     Tiamat = new EloBuddy.SDK.Item(ItemId.Tiamat_Melee_Only, 400);
     Hydra = new EloBuddy.SDK.Item(ItemId.Ravenous_Hydra_Melee_Only, 400);
     Titanic = new EloBuddy.SDK.Item(3748, 0);
 }
コード例 #5
0
        public static void OnAttack(AttackableUnit unit, AttackableUnit target)
        {
            var item = new EloBuddy.SDK.Item(ItemId.Youmuus_Ghostblade);

            if (unit.IsMe && (Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.Combo || Orbwalker.ActiveMode == Orbwalking.OrbwalkingMode.OrbwalkPassive || OrbwalkLastClickActive))
            {
                if (item.IsReady())
                {
                    item.Cast();
                }
            }
        }
コード例 #6
0
ファイル: Items.cs プロジェクト: tekintr/PortAIO-Common-1
            /// <summary>
            ///     Initializes a new instance of the <see cref="Item" /> class.
            /// </summary>
            /// <param name="id">The item identifier.</param>
            /// <param name="range">The range.</param>
            /// <exception cref="MissingMemberException">Thrown when we were unable to find the item with same id.</exception>
            public Item(ItemId id, float range)
            {
                var item = new EloBuddy.SDK.Item(id, range);

                if (item == null)
                {
                    throw new MissingMemberException($"Unable to find item with the id {id}");
                }

                this.Id    = (int)item.Id;
                this.Name  = item.ItemInfo.Name;
                this.Range = range;
                //this.BasePrice = item.Price;
                //this.SellPrice = (int)(item.Price * item.SellBackModifier);
                //this.Purchaseable = item.CanBeSold;
                this.Stacks = (int)item.ItemInfo.Stacks;
                //this.HideFromAll = !item.UsableInStore;
            }
コード例 #7
0
 static ItemHandler()
 {
     botrk      = new EloBuddy.SDK.Item(3153, 450);
     tiamat     = new EloBuddy.SDK.Item(3077, 400);
     hydra      = new EloBuddy.SDK.Item(3074, 400);
     randuins   = new EloBuddy.SDK.Item(3143, 500);
     odins      = new EloBuddy.SDK.Item(3180, 520);
     bilgewater = new EloBuddy.SDK.Item(3144, 450);
     hexgun     = new EloBuddy.SDK.Item(3146, 700);
     Dfg        = new EloBuddy.SDK.Item(3128, 750);
     Bft        = new EloBuddy.SDK.Item(3188, 750);
     sheen      = new EloBuddy.SDK.Item(3057, player.AttackRange);
     gaunlet    = new EloBuddy.SDK.Item(3025, player.AttackRange);
     trinity    = new EloBuddy.SDK.Item(3078, player.AttackRange);
     lich       = new EloBuddy.SDK.Item(3100, player.AttackRange);
     youmuu     = new EloBuddy.SDK.Item(3142, player.AttackRange);
     Qss        = new EloBuddy.SDK.Item(3140, 0);
     Mercurial  = new EloBuddy.SDK.Item(3139, 0);
     Dervish    = new EloBuddy.SDK.Item(3137, 0);
     Zhonya     = new EloBuddy.SDK.Item(3157, 0);
     Wooglet    = new EloBuddy.SDK.Item(3090, 0);
     locket     = new EloBuddy.SDK.Item((int)ItemId.Locket_of_the_Iron_Solari, 0);
 }
コード例 #8
0
ファイル: Zhonya.cs プロジェクト: yashine59fr/PortAIO-1
        /// <summary>
        ///     Initializes this instance.
        /// </summary>
        public void Load()
        {
            zhonyaItem = new EloBuddy.SDK.Item(Game.MapId == GameMapId.SummonersRift ? ItemId.Zhonyas_Hourglass : EloBuddy.ItemId.Wooglets_Witchcap);

            Game.OnUpdate += this.OnUpdate;
            GameObject.OnCreate += this.GameObjectOnCreate;
            Obj_AI_Base.OnProcessSpellCast += this.ObjAiBaseOnProcessSpellCast;
        }