Page 1 of 1

how to make use special water Phirius?? in profile

Posted: Tue Feb 12, 2013 1:41 pm
by alf90
regards

Please Rock.
I would like you to tell me how to make the bot use especial water.
when you low life.
I have many potions and I want the use
thanks

Re: how to make use special water Phirius?? in profile

Posted: Tue Feb 12, 2013 2:42 pm
by rock5
In the "onSkillCast" section add

Code: Select all

if 50 > player.HP/player.MaxHP*100 then 
    inventory:useItem("Phirius Elixir")
end
Change the '50' to the percent at which you want to use the item and change 'Phirius Elixir' to the name of the potion you want to use.

This is untested and I'm not sure if cooldown is going to be an issue. If it is we could add a cooldown check.

Re: how to make use special water Phirius?? in profile

Posted: Tue Feb 12, 2013 3:38 pm
by alf90
I will try thanks

Re: how to make use special water Phirius?? in profile

Posted: Tue Feb 12, 2013 4:36 pm
by alf90
regards

use the name of the potion, in my language and in English but does not work

Re: how to make use special water Phirius?? in profile

Posted: Tue Feb 12, 2013 6:12 pm
by lisa
The bot will use them automatically if you set it to in your profile.

Code: Select all

		<option name="USE_PHIRIUS_POTION"	value="false" /> 		<!-- false | true if you want to use the Phirus Potions -->
		<option name="PHIRIUS_MP_LOW"		value="40" />
		<option name="PHIRIUS_HP_LOW"		value="40" />
Just change those options.

Re: how to make use special water Phirius?? in profile

Posted: Wed Feb 13, 2013 11:24 am
by alf90
this type of potions I mean. type A,B,C,D, or E

http://www.runesdatabase.com/item/203493

Re: how to make use special water Phirius?? in profile

Posted: Wed Feb 13, 2013 9:01 pm
by lisa
did you even change the profile options??

It will use these potions

Code: Select all

	<!-- Phirius Potions -->
	<potion type="phirusboth" 		id="203489" name="Phirius Special Water - Type A" potency="20" /> 	<!-- 20% -->
	<potion type="phirusboth" 		id="203490" name="Phirius Special Water - Type B" potency="30" /> 	<!-- 30% -->
	<potion type="phirusboth" 		id="203491" name="Phirius Special Water - Type C" potency="40" /> 	<!-- 40% -->
	<potion type="phirusboth" 		id="203492" name="Phirius Special Water - Type D" potency="50" /> 	<!-- 50% -->
	<potion type="phirusboth" 		id="203493" name="Phirius Special Water - Type E" potency="60" /> 	<!-- 60% -->

	<potion type="phirushealing" 	id="203494" name="Phirius Potion - Type A" potency="20" />			<!-- 20% -->
	<potion type="phirushealing" 	id="203495" name="Phirius Potion - Type B" potency="30" />			<!-- 30% -->
	<potion type="phirushealing" 	id="203496" name="Phirius Potion - Type C" potency="40" />			<!-- 40% -->
	<potion type="phirushealing" 	id="203497" name="Phirius Potion - Type D" potency="50" />			<!-- 50% -->
	<potion type="phirushealing" 	id="203498" name="Phirius Potion - Type E" potency="60" />			<!-- 60% -->

	<potion type="phirusmana" 		id="203499" name="Phirius Elixir - Type A" potency="20" />			<!-- 20% -->
	<potion type="phirusmana" 		id="203500" name="Phirius Elixir - Type B" potency="30" />			<!-- 30% -->
	<potion type="phirusmana" 		id="203501" name="Phirius Elixir - Type C" potency="40" />			<!-- 40% -->
	<potion type="phirusmana" 		id="203502" name="Phirius Elixir - Type D" potency="50" />			<!-- 50% -->
	<potion type="phirusmana" 		id="203503" name="Phirius Elixir - Type E" potency="60" />			<!-- 60% -->

the link you posted is for

Code: Select all

	<potion type="phirusboth" 		id="203493" name="Phirius Special Water - Type E" potency="60" /> 	<!-- 60% -->
So yes if you did what I said it would automatically use the potion, as I said.

Re: how to make use special water Phirius?? in profile

Posted: Thu Feb 14, 2013 3:05 pm
by abron1
so we can add this to our profile? and just use them on true and it will use the pots at those % and not just the best one?