Page 1 of 1

Cast only when a skill can not be used

Posted: Wed Nov 02, 2011 5:53 am
by emmanuel04
I would love to turn this ingame macro into something my bot could use or a way to only use
("Power of the Wood Spirit") only when ("Joint Blow") can not be cast.


Code: Select all

/script if UnitSkill("player") < 15 then CastSpellByName("Power of the Wood Spirit") else 
CastSpellByName("Joint Blow");
 end
I would welcome any help and

{ThankYou}

Re: Cast only when a skill can not be used

Posted: Wed Nov 02, 2011 7:28 am
by lisa
Ok so we are talking Wd/S
join blow uses 15 focus and has no cooldown, I am not aware of any other reasons for joint blow to not work.

So basically if focus is less then 15 you want to use Power of the Wood Spirit.

in profile something like this might work.

Code: Select all

	<onPreSkillCast><![CDATA[
		if arg1.Name == "WARDEN_POWER_OF_THE_WOOD_SPIRIT"  then
			if 15 > player.MP2 then
				return true
			else
				return false
			end
		end

	]]></onPreSkillCast>
So make your WARDEN_POWER_OF_THE_WOOD_SPIRIT priority high and when the focus is less then 15 it should use that skill. (should)