Jump to content

Avvi

Members
  • Posts

    397
  • Joined

  • Last visited

Posts posted by Avvi

  1. Just now, totalkhaos10 said:

    I did all of that. I have it as an .xml file now. It is loaded in the Wrobot program itself now. I selected gatherer, then selected this profile. I hit start but nothing happens.

    Can you paste your logs here? Also, is the Play Button Changing to a Square, or is it staying a triangle?

  2. Not sure if this will work, but try this:

     

        private void watchForEvents()
        {
    
            EventsLuaWithArgs.OnEventsLuaWithArgs += (LuaEventsId id, List<string> args) =>
            {
    
                if (id == wManager.Wow.Enums.LuaEventsId.PLAYER_ENTER_COMBAT) {
                    Logging.Write("AUTO ATTACK ENABLED.");
               	wManager.Wow.Helpers.Lua.RunMacroText("/stopattack");
              	Logging.Write("AUTO ATTACK DISABLED.");
                  Methods.RunMacro("/cast Auto Shot", Me.InCombat);
                }
    
            };
    
        }

     

    I expect it to stop the auto attack. You may need to call another one of  your methods to restart your rotation. Not sure how exactly it will behave once you stop the auto attack. Also, please note that this is a workaround, and doesn't really solve the problem. It would be interesting to determine what causes it to start the auto attack in the first place. 

     

  3. My code is working in Legion for me. This is exactly what i have: 

        private void watchForEvents()
        {
    
            EventsLuaWithArgs.OnEventsLuaWithArgs += (LuaEventsId id, List<string> args) =>
            {
    
                if (id == wManager.Wow.Enums.LuaEventsId.PLAYER_ENTER_COMBAT) {
                    Logging.Write("AUTO ATTACK ENABLED.");
                }
    
            };
    
        }

     

    I can spam the "Auto-Attack" button, and it spams the AUTO ATTACK ENABLED. Or, when the character enables it himself, it also logs the AUTO ATTACK ENABLED

  4. 24 minutes ago, Findeh said:
    On 9/22/2017 at 8:21 AM, Zer said:

    - When bot chooses target he binds to it and run strait to it, but if any player attack this target during bot run and target becomes grey (tagget by other player) bot do not stop attacking, but continue run and attack that target. Is it possible to fix?

    Unsolvable.

    This is solvable via a plugin - if someone wanted to write one for it.

  5. My mistake, the correct event is: PLAYER_ENTER_COMBAT . I forgot that Auto Attack is a different beast. The correct event is PLAYER_ENTER_COMBAT

    Remove the if statement, and just print the logs like this:

     

     private void watchForAutoAttack()
        {
    
            EventsLuaWithArgs.OnEventsLuaWithArgs += (LuaEventsId id, List<string> args) =>
            {
                if (id == wManager.Wow.Enums.LuaEventsId.PLAYER_ENTER_COMBAT) {
                        // log the stuffs
                }
    
            };
    
        }

     

     

  6. I think this should work:

    You'll have to call watchForAutoAttack() from your initializer. Also, you may need to use UNIT_SPELLCAST_SENT instead. 

     private void watchForAutoAttack()
        {
    
            EventsLuaWithArgs.OnEventsLuaWithArgs += (LuaEventsId id, List<string> args) =>
            {
                if (id == wManager.Wow.Enums.LuaEventsId.UNIT_SPELLCAST_START) {
                    if (args[0] == "player" && args[1] == "Auto-Attack") {
                        // log the stuffs
                    }
                }
    
            };
    
        }

     

  7. 2 minutes ago, Apexx said:

    Looking at the ability that is interrupting Auto Shot again, my thread title might be misleading. The standard "Attack" skill is the one flashing against Auto Shot in the animated .gif above.
    I have the addon, "SpellID" that shows the obvious - spell ID in tooltips, and Attack is not returning any ID. I don't think I would be able to test if "Attack" is activated.

    I will try and disable any close proximity melee abilities from the fight class and see what happens...

    Yeah, I think it's a good test - just to eliminate all possibilities. Let us know the results!

  8. Looking at your code, the only thing I can think of that 'might' be causing this is your WingClip method. Like maybe it is getting actived? Maybe??!? Or, perhaps the MyTarget.GetDistance is returning less than it should be?

    MyTarget.GetDistance <= 5

    Can you try adding an event that catches when the Auto-Attack spell is activated? And then print out the MyTarget.GetDistance, MyTarget.Name 

×
×
  • Create New...