Potion command

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
danzar
Posts: 4
Joined: Thu Jan 21, 2010 2:08 pm

Potion command

#1 Post by danzar » Sun Jan 24, 2010 6:13 pm

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.

InadequateCoder
Posts: 33
Joined: Fri Jan 22, 2010 1:23 am

Re: Potion command

#2 Post by InadequateCoder » Sun Jan 24, 2010 8:38 pm

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! :D

danzar
Posts: 4
Joined: Thu Jan 21, 2010 2:08 pm

Re: Potion command

#3 Post by danzar » Sun Jan 24, 2010 10:08 pm

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;

User avatar
Administrator
Site Admin
Posts: 5329
Joined: Sat Jan 05, 2008 4:21 pm

Re: Potion command

#4 Post by Administrator » Sun Jan 24, 2010 11:19 pm

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();

InadequateCoder
Posts: 33
Joined: Fri Jan 22, 2010 1:23 am

Re: Potion command

#5 Post by InadequateCoder » Sun Jan 24, 2010 11:22 pm

Ah, beat me to it XD

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests