Shai 11 Posted May 29, 2013 Share Posted May 29, 2013 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 Link to comment Share on other sites More sharing options...
Droidz 2737 Posted May 29, 2013 Share Posted May 29, 2013 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 Link to comment Share on other sites More sharing options...
Shai 11 Posted May 29, 2013 Author Share Posted May 29, 2013 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! Link to comment Share on other sites More sharing options...
TheSmokie 242 Posted June 25, 2020 Share Posted June 25, 2020 (edited) 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 June 25, 2020 by Smokie Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now