コード例 #1
0
ファイル: Orbwalker.cs プロジェクト: mirinsharp/Leaguesharp
        public Orbwalker(Menu menuToAttach)
        {
            m_rnd                = new Random();
            m_lastAATick         = 0;
            m_lastWindUpTick     = 0;
            m_lastMoveTick       = 0;
            m_Attack             = true;
            m_Move               = true;
            m_baseWindUp         = 1f / (ObjectManager.Player.AttackCastDelay * ObjectManager.Player.GetAttackSpeed());
            m_baseAttackSpeed    = 1f / (ObjectManager.Player.AttackDelay * ObjectManager.Player.GetAttackSpeed());
            m_orbwalkingPoint    = Vector3.Zero;
            m_Configuration      = new ConfigMenu(this, menuToAttach);
            m_orbwalkEnabled     = true;
            m_forcedTarget       = null;
            m_lastTarget         = null;
            m_fnCanAttack        = null;
            m_fnCanMove          = null;
            m_fnCanOrbwalkTarget = null;
            m_fnShouldWait       = null;

            Game.OnUpdate += Game_OnUpdate;
            Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
            Obj_AI_Base.OnDoCast           += Obj_AI_Base_OnDoCast;
            Obj_AI_Base.OnPlayAnimation    += Obj_AI_Base_OnPlayAnimation;
            Obj_AI_Base.OnIssueOrder       += Obj_AI_Base_OnIssueOrder;
            Obj_AI_Base.OnBuffAdd          += Obj_AI_Base_OnBuffAdd;
            Obj_AI_Base.OnBuffRemove       += Obj_AI_Base_OnBuffRemove;
            new Drawings(this);
        }
コード例 #2
0
ファイル: Orbwalker.cs プロジェクト: xQxCPMxQx/Leaguesharp-7
        public Orbwalker(Menu menuToAttach)
        {
            m_rnd = new Random();
            m_lastAATick = 0;
            m_lastWindUpTick = 0;
            m_lastMoveTick = 0;
            m_Attack = true;
            m_Move = true;
            m_baseWindUp = 1f / (ObjectManager.Player.AttackCastDelay * ObjectManager.Player.GetAttackSpeed());
            m_baseAttackSpeed = 1f / (ObjectManager.Player.AttackDelay * ObjectManager.Player.GetAttackSpeed());
            m_orbwalkingPoint = Vector3.Zero;
            m_Configuration = new ConfigMenu(this, menuToAttach);
            m_orbwalkEnabled = true;
            m_forcedTarget = null;
            m_lastTarget = null;
            m_fnCanAttack = null;
            m_fnCanMove = null;
            m_fnCanOrbwalkTarget = null;
            m_fnShouldWait = null;

            Game.OnUpdate += Game_OnUpdate;
            Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
            Obj_AI_Base.OnDoCast += Obj_AI_Base_OnDoCast;
            Obj_AI_Base.OnPlayAnimation += Obj_AI_Base_OnPlayAnimation;
            Obj_AI_Base.OnIssueOrder += Obj_AI_Base_OnIssueOrder;
            Obj_AI_Base.OnBuffAdd += Obj_AI_Base_OnBuffAdd;
            Obj_AI_Base.OnBuffRemove += Obj_AI_Base_OnBuffRemove;
            new Drawings(this);
        }
コード例 #3
0
        /// <summary>
        /// The orbwalker constructor
        /// </summary>
        /// <param name="menuToAttach">The menu to attach.</param>
        public Orbwalker(Menu menuToAttach)
        {
            m_rnd                = new Random();
            m_lastAATick         = 0;
            m_lastWindUpEndTick  = 0;
            m_lastMoveTick       = 0;
            m_Attack             = true;
            m_Move               = true;
            m_baseWindUp         = 1f / (ObjectManager.Player.AttackCastDelay * ObjectManager.Player.GetAttackSpeed());
            m_baseAttackSpeed    = 1f / (ObjectManager.Player.AttackDelay * ObjectManager.Player.GetAttackSpeed());
            m_orbwalkingPoint    = Vector3.Zero;
            m_Configuration      = new ConfigMenu(this, menuToAttach);
            m_orbwalkEnabled     = true;
            m_forcedTarget       = null;
            m_lastTarget         = null;
            m_fnCanAttack        = null;
            m_fnCanMove          = null;
            m_fnCanOrbwalkTarget = null;
            m_fnShouldWait       = null;

            Game.OnUpdate += Game_OnUpdate;
            Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
            Obj_AI_Base.OnDoCast           += Obj_AI_Base_OnDoCast;
            Obj_AI_Base.OnBuffAdd          += Obj_AI_Base_OnBuffAdd;
            Obj_AI_Base.OnBuffRemove       += Obj_AI_Base_OnBuffRemove;
            Obj_AI_Base.OnNewPath          += Obj_AI_Base_OnNewPath;
            Obj_AI_Base.OnPlayAnimation    += Obj_AI_Base_OnPlayAnimation;
            Spellbook.OnStopCast           += Spellbook_OnStopCast;
            Obj_AI_Base.OnDamage           += Obj_AI_Base_OnDamage;
            PacketHandler.Register(0x43, PacketHandler_AfterAttack);
            new Drawings(this);
        }
コード例 #4
0
ファイル: Orbwalker.cs プロジェクト: 7873508/SAC
        /// <summary>
        /// The orbwalker constructor
        /// </summary>
        /// <param name="menuToAttach">The menu to attach.</param>
        public Orbwalker(Menu menuToAttach)
        {
            m_rnd = new Random();
            m_lastAATick = 0;
            m_lastWindUpEndTick = 0;
            m_lastMoveTick = 0;
            m_Attack = true;
            m_Move = true;
            m_baseWindUp = 1f / (ObjectManager.Player.AttackCastDelay * ObjectManager.Player.GetAttackSpeed());
            m_baseAttackSpeed = 1f / (ObjectManager.Player.AttackDelay * ObjectManager.Player.GetAttackSpeed());
            m_orbwalkingPoint = Vector3.Zero;
            m_Configuration = new ConfigMenu(this, menuToAttach);
            m_orbwalkEnabled = true;
            m_forcedTarget = null;
            m_lastTarget = null;
            m_fnCanAttack = null;
            m_fnCanMove = null;
            m_fnCanOrbwalkTarget = null;
            m_fnShouldWait = null;

            Game.OnUpdate += Game_OnUpdate;
            Obj_AI_Base.OnProcessSpellCast += Obj_AI_Base_OnProcessSpellCast;
            Obj_AI_Base.OnDoCast += Obj_AI_Base_OnDoCast;
            Obj_AI_Base.OnBuffAdd += Obj_AI_Base_OnBuffAdd;
            Obj_AI_Base.OnBuffRemove += Obj_AI_Base_OnBuffRemove;
            Obj_AI_Base.OnNewPath += Obj_AI_Base_OnNewPath;
            Obj_AI_Base.OnPlayAnimation += Obj_AI_Base_OnPlayAnimation;
            Spellbook.OnStopCast += Spellbook_OnStopCast;
            Obj_AI_Base.OnDamage += Obj_AI_Base_OnDamage;
            PacketHandler.Register(0x43, PacketHandler_AfterAttack);
            new Drawings(this);
        }