Page 1 of 1

using food and potions

Posted: Mon Jun 07, 2010 11:29 pm
by oblivion2004
I want to know if their is any way to use food or potions on regular intervals. I don't really know which potions I want to use but I just want to know if you can tell the bot to scan for a certain item and use it on a regular basis?

thank you

Re: using food and potions

Posted: Tue Jun 08, 2010 7:31 am
by rock5
What do you mean by "regular intervals"? Do you want it time based or do you mean event triggered like onLeaveCombat for example?

Re: using food and potions

Posted: Tue Jun 08, 2010 9:11 am
by oblivion2004
i want in regular time intervals. like every fifteen min or so

Re: using food and potions

Posted: Tue Jun 08, 2010 10:01 am
by rock5
I think I've read that others have set up a macro in an action bar button then created a fake "skill" in skills.xml then adding it to the character profile. Should work for potions too.

So, for instance, you could add something like this to skills.xml;

Code: Select all

	<skill name="MAGE_USEITEM" mana="1" cooldown="900" type="buff" target="self" />
Then add;

Code: Select all

	<skill name="MAGE_USEITEM"   hotkey="VK_5" priority="60" />
to your profile so it should use whatever potion or item that's in action bar 5 every 15 minutes.

Of course sometimes rombot fails to caste skills and doesn't realize it's failed. So if it doesn't drink the potion, it won't try again until another 15 minutes has passed.

Another idea is using buffs, assuming the potions you are talking about are for buffs.

You could, instead, check for the buff and if it isn't present then use the item. For that I think it would have to be event driven. If the buff is for battle, maybe before each skill caste.

Re: using food and potions

Posted: Tue Jun 08, 2010 4:23 pm
by oblivion2004
thanks. it worked well