Page 1 of 1
Need help: Skill - Elemental Spirit Herb Essence
Posted: Thu Jun 30, 2011 4:04 pm
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).
Re: Need help: Skill - Elemental Spirit Herb Essence
Posted: Thu Jun 30, 2011 7:13 pm
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?
Re: Need help: Skill - Elemental Spirit Herb Essence
Posted: Sat Jul 02, 2011 12:12 pm
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.
Re: Need help: Skill - Elemental Spirit Herb Essence
Posted: Sat Jul 02, 2011 8:54 pm
by lisa
what about do a mana check onleavecombat and use it then?
Re: Need help: Skill - Elemental Spirit Herb Essence
Posted: Sat Jul 02, 2011 9:52 pm
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>