Cast only when a skill can not be used

Additional botting resources. Addons may be either for the game itself or for the RoM bot.
Forum rules
Only post additional bot resources here. Please do not ask unrelated questions.
Post Reply
Message
Author
emmanuel04
Posts: 30
Joined: Wed Jun 01, 2011 6:07 am

Cast only when a skill can not be used

#1 Post by emmanuel04 » Wed Nov 02, 2011 5:53 am

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}

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Cast only when a skill can not be used

#2 Post by lisa » Wed Nov 02, 2011 7:28 am

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)
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests