Drwolftech 25 Posted September 29, 2016 Share Posted September 29, 2016 Sidewinders (mm hunter) have 2 stacks, and i need the condition to dont let reach 2 stacks, always cast when reach 2 stacks. or even better, cast it when is about to reach 2 stacks. Link to comment https://wrobot.eu/forums/topic/3970-how-cast-sidewinders-before-reach-2-stacks/ Share on other sites More sharing options...
Droidz 2742 Posted September 29, 2016 Share Posted September 29, 2016 http://wrobot.eu/forums/topic/3951-sidewinders/?do=findComment&comment=18488 or use spell id http://wrobot.eu/forums/topic/3573-snippets-c-codes-for-fight-classes/?do=findComment&comment=16509 Link to comment https://wrobot.eu/forums/topic/3970-how-cast-sidewinders-before-reach-2-stacks/#findComment-18489 Share on other sites More sharing options...
Drwolftech 25 Posted September 29, 2016 Author Share Posted September 29, 2016 2 hours ago, Droidz said: http://wrobot.eu/forums/topic/3951-sidewinders/?do=findComment&comment=18488 or use spell id http://wrobot.eu/forums/topic/3573-snippets-c-codes-for-fight-classes/?do=findComment&comment=16509 Dont work, because it checks the buff on your character, not the stack of the skill on your skill bar. Link to comment https://wrobot.eu/forums/topic/3970-how-cast-sidewinders-before-reach-2-stacks/#findComment-18496 Share on other sites More sharing options...
Bugreporter 93 Posted September 29, 2016 Share Posted September 29, 2016 GetSpellCharges do, what you want. Its not difficult to check if there are 2 charges. But it could very difficult to check, if you used one before (and want now used the second one). With my Sub-Rogue i can check a buff (31223) which exist 5 sec's longer then shadowdance (185313). (but only if a special talent used) local spellname=GetSpellInfo(36554) --[[ Shadowstep ]] if UnitExists("target") and not UnitIsFriend("player", "target") and (IsSpellInRange(spellname,"target")==1) and (UnitHealth("target")>1) then local currentCharges, maxCharges, cooldownStart, cooldownDuration = GetSpellCharges(185313) local now=GetTime(); if (currentCharges>=2) or ((UnitBuff("player",GetSpellInfo(31223))~=nil) and (currentCharges~=0)) then result=true --[[ Stealth, Shadow Dance or Subterfuge ]] if IsStealthed() or (UnitBuff("player",GetSpellInfo(185313))~=nil) or (UnitBuff("player",GetSpellInfo(108208))~=nil) then result=false end end end Drwolftech 1 Link to comment https://wrobot.eu/forums/topic/3970-how-cast-sidewinders-before-reach-2-stacks/#findComment-18499 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