I have search the forum and the wiki and can't find any info on how to set up the bot to use/eat food for buffs...?
Any help on this would be appreciated.
Ho to get bot to eat food?
Re: Ho to get bot to eat food?
The bot it set up only to use regular consumables for hp and mp. If you want to use other food you have to use it yourself. eg. inventory:useItem(itemNameOrId). If you want to know if the buff is already applied or not you can use player:hasBuff(buffname). So it would look something like this.sinkadus wrote:I have search the forum and the wiki and can't find any info on how to set up the bot to use/eat food for buffs...?
Any help on this would be appreciated.
Code: Select all
if not player:hasBuff(buffname) then
inventory:useItem(itemNameOrId)
end- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: Ho to get bot to eat food?
There is no official implementation for that specific purpose, There is the inventory's useitem that allows you to use a food but for you I'll post something I had done for my own.
USAGE: UseFood(_foodname[,_buffname]) _foodname is the nameof the name and _buffname is to use when the buff hasn't got the same name as the food (e.g. house maid foods), note that this works for anything else
you need to use and produces a buff.
Anyway somewhere along the forum you'll also find a housemaid specific food scripts, though it hasn't been included in addons forum yet
(note: rock5 please move this to the addon scripts forum)
EDIT: apparently rock5 JUST beat me to it xD anyway Ignore the above line rock5 I'll create a new thread.
USAGE: UseFood(_foodname[,_buffname]) _foodname is the nameof the name and _buffname is to use when the buff hasn't got the same name as the food (e.g. house maid foods), note that this works for anything else
you need to use and produces a buff.
Anyway somewhere along the forum you'll also find a housemaid specific food scripts, though it hasn't been included in addons forum yet
(note: rock5 please move this to the addon scripts forum)
EDIT: apparently rock5 JUST beat me to it xD anyway Ignore the above line rock5 I'll create a new thread.
Thanks for reading! 
Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates
Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates
Re: Ho to get bot to eat food?
Wasn't me. Must have been Administrator.jduartedj wrote:(note: rock5 please move this to the addon scripts forum)
EDIT: apparently rock5 JUST beat me to it xD anyway Ignore the above line rock5 I'll create a new thread.
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: Ho to get bot to eat food?
What you quoted was ALL me! I just edited my post after.rock5 wrote:Wasn't me. Must have been Administrator.jduartedj wrote:(note: rock5 please move this to the addon scripts forum)
EDIT: apparently rock5 JUST beat me to it xD anyway Ignore the above line rock5 I'll create a new thread.
Thanks for reading! 
Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates
Some of you might find this useful: RoM-bot Wiki
User Functions Repository (and other useful files): Addon Repo
Latest SVN updates: SVN updates
Re: Ho to get bot to eat food?
Thank you for letting me know 