Need help: Skill - Elemental Spirit Herb Essence

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
User avatar
MiesterMan
Posts: 543
Joined: Tue Jul 06, 2010 9:15 pm
Location: Between the Second and Third Circles of Hell

Need help: Skill - Elemental Spirit Herb Essence

#1 Post by MiesterMan »

So I wanted to add this to my bot to reduce the number of potions he's downing and speed up his ability to recover.

Problem is I don't know how to write it into the database.

Copying what I have for spirit herb essence:

Code: Select all

	<skill name="ALL_ELEMENTAL_SPIRIT_STONE_ESSENCE" aslevel="51" casttime="3" type="heal" target="self" inbattle="false"/>
But obviously that won't work. For now I've modded useGoodie to use it when leaving combat but I also want to be able to use it in combat with my bubble up (so many mage skills chew up mana now).
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Need help: Skill - Elemental Spirit Herb Essence

#2 Post by lisa »

This is the skill set you get from dalanis mem items?
restores around 1500 mana from memory?

Simplest solution I have right now is to just do an onskillcast check on mana and use it as required by just using a hotkey for it and a keypress.
Or perhaps do a check for when you use bubble and also cast this skill using a keypress after the bubble or would you only use bubble to be able to use the mana skill?
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
User avatar
MiesterMan
Posts: 543
Joined: Tue Jul 06, 2010 9:15 pm
Location: Between the Second and Third Circles of Hell

Re: Need help: Skill - Elemental Spirit Herb Essence

#3 Post by MiesterMan »

lisa wrote:This is the skill set you get from dalanis mem items?
restores around 1500 mana from memory?

Simplest solution I have right now is to just do an onskillcast check on mana and use it as required by just using a hotkey for it and a keypress.
Or perhaps do a check for when you use bubble and also cast this skill using a keypress after the bubble or would you only use bubble to be able to use the mana skill?

The reason for using it after bubble is because it's an interruptable skill, so it will fail casting if hit. This restores a lot more mana than the respective potion for incombat use. Generally I'd use it out of combat like I do with spirit herb essence but there's no check for "onWalkingAround" or "whileResting" so it won't use it more than once after going into rest mode or moving to the next waypoint.
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Need help: Skill - Elemental Spirit Herb Essence

#4 Post by lisa »

what about do a mana check onleavecombat and use it then?
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
User avatar
Administrator
Site Admin
Posts: 5344
Joined: Sat Jan 05, 2008 4:21 pm

Re: Need help: Skill - Elemental Spirit Herb Essence

#5 Post by Administrator »

You can use the onSkillCast event.

Code: Select all

<onSkillCast><![CDATA[
  if( arg1.Name == "SKILL_NAME_GOES_HERE" ) then
    if( player.Mana < 1234 ) then
      keyboardPress(key.VK_5); -- Use the item
    end
  end
]]></onSkillCast>
Post Reply