Page 1 of 1

Cast Slash only if rage > 25

Posted: Sat Nov 06, 2010 9:46 am
by Mushroomstamp
Is there a way to get it to check for rage before attempting to use rage-based attacks?

Re: Cast Slash only if rage > 25

Posted: Sat Nov 06, 2010 10:16 am
by jduartedj
Mushroomstamp wrote:Is there a way to get it to check for rage before attempting to use rage-based attacks?

I'm not sure about this one, i think using

Code: Select all

player.Mana
works either if your using mana, focus or rage. although i'm not sure how does rom-bot handle char with 2 types of "mana", Like a Mage/Rogue.

Also I thought That player.MP and Player MP2 was used for that but i found only player.Mana but no player.Mana2.

I would also appreciate some clarifying on this subject by the admin or rock5.
Isn't there some documentation on the classes' properties & methods?

Re: Cast Slash only if rage > 25

Posted: Sat Nov 06, 2010 8:25 pm
by rock5
Mushroomstamp wrote:Is there a way to get it to check for rage before attempting to use rage-based attacks?
It should already do that. If it is trying to cast a rage based skill when you don't have enough rage maybe the entry for that skill is not set up properly in skill.lua.

Re: Cast Slash only if rage > 25

Posted: Sun Nov 07, 2010 1:01 pm
by Mushroomstamp
Well shit... I must be getting the "skill requirement error" from something else then. So in skills, rage="25", serves as a check for 25 rage... didn't realize that. Thanks rock