Jump to content

Recommended Posts

Hey

 

when creating a FightClass there is the option to use a spell when "Me Is Stunned", but as it says it only checks for stuns.

Anyone knows if it is possible to check if a player is rooted (frost nova, entangling roots, etc.)?

http://www.wowwiki.com/API_HasFullControl'>API_HasFullControl works for fear, i can use that to use Berserker Rage to get out of it.

If someone has a solution for roots, would be greatly appreciated :).

 

my profiles work really good with the bot, but i am still trying to improve

Hello,

 

Sample:

 

Detect if you are stunned with this spell http://www.wowhead.com/spell=853 :

Add new spell named: Every Man for Himself

Add Condition: Buff

Name: Hammer of Justice

Need: True

 

Detect if you are stunned:

Add new spell named: Every Man for Himself

Add Condition: Me Is Stunned

Value: True

 

Detect if you are fear with lua:

Add new spell named: Every Man for Himself

Add Condition: Lua script

Lua script: ret = "no"; if HasFullControl() then ret = "yes" end

Return value research: yes

Return value var: ret

Yea I am already using that for Fears. So I Guess I will have to add buff (debuffs) manually for Frost Nova and some other Root effects to trigger something like Freedom or Intervene(safeguard) that removes roots.

Thanks for the quick response!

  • 7 years later...

I did this by memory while i am at work for someone in a discord chat i am part or, hope this helps.

 

function Stun(SpellName, ItemName)
    if HasFullControl == nil then 
        if IsUsableSpell(SpellName) or  GetItemCooldown(ItemName) == 1
        then CastSpellByName(spellname);
        end
    else
        if IsUsableSpell(SpellName) == nil or  GetItemCooldown(ItemName) == 0 then 
            UseItemByName(ItemName)
    end 
    end
end

 

Edited by Smokie

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...