Jump to content

Elmegaard

Members
  • Posts

    14
  • Joined

  • Last visited

Posts posted by Elmegaard

  1. I have made a fight class for my affliction warlock. It works really well, but to maximize it's dps, I want to change the behavior of when it stops channeling Drain Soul to re-dot the enemy. 

    I have made it so, if my dots are about to expire on the enemy it stops the Drain Soul channeling and that works perfectly. But I want to make sure it does not do this right before it's about to damage the enemy. Is there any way to find out how long time passed since the last time Drain Soul did damage? It's fine if I can just find out every time it does damage so I can add a DateTime to a variable and check it before stopping the cast.

    EDIT:
    I found this: https://wow.gamepedia.com/API_UnitChannelInfo which in part can help me, but in case I get hit by an enemy, I am not sure it will work correctly anymore. I would rather want a "TimeSinceLastTick" or "OnTickEvent", that would be the most reliable.

  2. I see. Thank you. Is there any way to pass data to wrobot from in game? I just want to toggle a couple of variables using macros instead of having to stop the bot, switch a variable and start it again. It would also be fine if I could draw a gui using wrobot or something similar to switch a variable directly there.

    Also, has this behavior changed? I remember this working a couple of years ago. There are also references to this exact thing around the forums.

  3. I have a Macro: 

    /run if EnableAoe == "1" or EnableAoe == nil then EnableAoe = "0"; print("Disabled AoE") else EnableAoe = "1" print("Enabled AoE") end

    And a LUA script condition:

    print(EnableAoe)

    When I run this it works fine, but as soon as the "EnableAoe" variable is set, the fight class stop working until I reload the ui. The variable is printed just fine though and it doesn't matter if it is a print or not, as soon as I have any reference to that variable that is hit, this happens. Meaning, if I put it in an "if 1 == 2", the issue is not there. Even if I put the spell with the condition as the lowest priority so it is never hit it is a problem. Even if I set the variable to null again, it is a problem. The only thing that fixes it is a reload of the UI.

    The error I get in game is this: 

    A macro script has been blocked from an action only available to the Blizzard UI.

    I have tried both with and without addons. I have tried looking in the taint.log file, and it is spammed hard by wrobot, so it is a bit hard for me to figure what is wrong.

    EDIT:
    It seems like the problem only occurs after the first time the variable has been accessed. If I put the spell with the Lua Script to the bottom, it works until that spell has been called. If I remove the spell or the condition, the problem persists until the ui has been reloaded.

  4. I have created a Fight Class for my Demonology Warlock and it works great. Now I have a problem though. Since my Life Tap now gives me a buff called Life Tap, it will not cast Life Tap on low mana when that buff is active. I cannot find a way to disable the check for if the buff is already active.

    I tried setting "Is Buff" to false, but no luck. I also tried making a second spell and set it to only cast when the buff is on, but that does not work either.

×
×
  • Create New...