Question: onSkillCast

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Germangold
Posts: 276
Joined: Thu Oct 22, 2009 3:58 am

Question: onSkillCast

#1 Post by Germangold »

hi folks!

follow problem this is my onSkillCast routine for a bossfight in CL
how do I tell the script not to cast PRIEST_REGENERATE??

like If has buff X dont do it

<onSkillCast>

<![CDATA[

if( arg1.Name == "MAGE_FLAME" ) then
yrest(1000);
player:cast("MAGE_PURGATORY_FIRE");player:cast("MAGE_PURGATORY_FIRE");
end



if(99>player.HP/player.MaxHP*100) then
player:cast("PRIEST_REGENERATE");
if(80>player.HP/player.MaxHP*100) then
player:cast("PRIEST_URGENT_HEAL");
player:cast("PRIEST_URGENT_HEAL");
if(50>player.HP/player.MaxHP*100) then
player:cast("PRIEST_HOLY_AURA");
end
end
end


]]>

</onSkillCast>
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Question: onSkillCast

#2 Post by rock5 »

I assume you mean how to only cast it in the onSkillCast section. Just add autouse="false" to the skill.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Question: onSkillCast

#3 Post by lisa »

from memory it went something like this, in profile

Code: Select all

		<skill name="PRIEST_REGENERATE"    modifier="" hotkey="VK_6" priority="90" autouse="false"  />
.
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