May 29, 201312 yr 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
May 29, 201312 yr 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
May 29, 201312 yr Author 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!
June 25, 20205 yr 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, 20205 yr by Smokie
Create an account or sign in to comment