Page 1 of 1
Potion command
Posted: Sun Jan 24, 2010 6:13 pm
by danzar
I wanting to know the command to use a potion for the profile function. If it has one. I did a few search to see if there is somethign about it.
Re: Potion command
Posted: Sun Jan 24, 2010 8:38 pm
by InadequateCoder
First, I'd recommend using the default profile and modifying it to your character's needs then saving it as the name of your character. This prevent you from missing items like this.
Second, in the default profile you'll see the hp options near the top:
Code: Select all
<option name="HP_LOW" value="85" />
<option name="MP_LOW_POTION" value="50" />
<option name="HP_LOW_POTION" value="40" />
<option name="USE_HP_POTION" value="best" /> <!-- potion select strategy: best|minstack -->
<option name="USE_MANA_POTION" value="best" /> <!-- potion select strategy: best|minstack -->
<option name="HP_REST" value="15" />
<option name="MP_REST" value="15" />
These are all the options regarding potions and hp/mp managment you really need. They're explained in the RoM Bot
wiki -> Configuration -> Charcter profiles section. If there's any confusion, the numbers represent the percentages desired before potions/rest will be used.
I hope this helps and Good Luck!

Re: Potion command
Posted: Sun Jan 24, 2010 10:08 pm
by danzar
I was more refering ot a function for it such to use in the <onSkillCast> event
if(50 > player.HP) then
player:use("HP_Potion");
end;
Re: Potion command
Posted: Sun Jan 24, 2010 11:19 pm
by Administrator
danzar wrote:I was more refering ot a function for it such to use in the <onSkillCast> event
if(50 > player.HP) then
player:use("HP_Potion");
end;
Re: Potion command
Posted: Sun Jan 24, 2010 11:22 pm
by InadequateCoder
Ah, beat me to it XD