Page 1 of 1

need help

Posted: Thu Nov 15, 2012 11:35 am
by mrphil
Hello, may I know what do I need to write in my profile so that the bot won't drink hp/mp potions during combat?

Re: need help

Posted: Thu Nov 15, 2012 11:45 am
by nightclaw
mrphil wrote:Hello, may I know what do I need to write in my profile so that the bot won't drink hp/mp potions during combat?
at tope your profile you see

Code: Select all

<option name="HP_LOW"				value="85" />
		<option name="MP_LOW_POTION"		value="50" />
		<option name="HP_LOW_POTION"		value="50" />
		<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="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 truen 1s you dont want use to 0

Re: need help

Posted: Fri Nov 16, 2012 12:20 am
by mrphil
Hmm, if I do that, I won't be drinking potions when I'm not in combat.

I just don't want to drink potions when I'm IN combat.

Re: need help

Posted: Fri Nov 16, 2012 12:48 am
by lisa
anything is of course possible, you just have to work it out.

So you want to only use potions (health or mana?) when not in combat, honestly I can't see why that would be good but what ever.

in profile

Code: Select all

<onLeaveCombat><![CDATA[
settings.profile.options.HP_LOW_POTION = 50
settings.profile.options.MP_LOW_POTION = 50
]]></onLeaveCombat>
So when it leaves combat it will change to this % to use potions

Code: Select all

<onSkillCast><![CDATA[
if arg1.Type == STYPE_DAMAGE and settings.profile.options.HP_LOW_POTION ~= 5 then
settings.profile.options.HP_LOW_POTION = 5
settings.profile.options.MP_LOW_POTION = 5
end
]]></onSkillCast>
so when it is using damaging skills (fighting) it will change it to 5% and so won't use any potions unless you are basically dead.