Potion command
Potion command
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.
-
- Posts: 33
- Joined: Fri Jan 22, 2010 1:23 am
Re: Potion command
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:
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!
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" />
I hope this helps and Good Luck!

Re: Potion command
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;
if(50 > player.HP) then
player:use("HP_Potion");
end;
- Administrator
- Site Admin
- Posts: 5329
- Joined: Sat Jan 05, 2008 4:21 pm
Re: Potion command
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;
Code: Select all
player:checkPotions();
-
- Posts: 33
- Joined: Fri Jan 22, 2010 1:23 am
Re: Potion command
Ah, beat me to it XD
Who is online
Users browsing this forum: No registered users and 1 guest