House maid potions and food
House maid potions and food
We r using bot for collecting so it would be great to use speed and droprate potions of house maid. İ tried to write it as a skill but its not always working right especially when out of pot it gives error and somethimes bot disconnect or wait long after this error. So is there anyother way for it ??
Re: House maid potions and food
Someone on these forums already made a function for housemaid potions and food. I can't seem to find the post in question, so I'll post what I'm using here:
Save this as addon_housemaidPotions.lua and put it in the userfunctions folder.
Code: Select all
-- Examples
-- useHousemaidPotions("speed");
-- useHousemaidPotions("castspeed");
-- useHousemaidPotions("frog");
-- useHousemaidPotions("luck");
-- useHousemaidPotions("MeatsauceBurrito");
-- useHousemaidPotions("caviarSandwich");
-- useHousemaidPotions("saltedFish");
function useHousemaidPotions(_potionName)
-- [Housemaid crafting potions] --
if _potionName == "speed" then
local potID = 207200; -- Unbridled Enthusiasm
local buffName = "Unbridled Enthusiasm";
if not player:hasBuff(buffName) and inventory:itemTotalCount(potID) >= 1 then
inventory:useItem(potID);
inventory:update();
yrest(750);
end
end
if _potionName == "castspeed" then
local potID = 207202; -- Clear Thought
local buffName = "Clear Thought";
if not player:hasBuff(buffName) and inventory:itemTotalCount(potID) >= 1 then
inventory:useItem(potID);
yrest(1000);
inventory:update();
yrest(750);
end
end
if _potionName == "frog" then
local potID = 207201; -- Princely Look
local buffName = "Princely Look";
if not player:hasBuff(buffName) and inventory:itemTotalCount(potID) >= 1 then
inventory:useItem(potID);
yrest(1000);
inventory:update();
yrest(750);
end
end
if _potionName == "luck" then
local potID = 207203; -- Luck Powder Dust
local buffName = "Turn of Luck Powder Dust";
if not player:hasBuff(buffName) and inventory:itemTotalCount(potID) >= 1 then
inventory:useItem(potID);
inventory:update();
yrest(750);
end
end
-- [Housemaid cooking potions] --
if _potionName == "MeatsauceBurrito" then
local potID = 207213; -- Special Spicy Meatsauce Burrito
local buffName = "Spicy Meatsauce Burrito";
if not player:hasBuff(buffName) and inventory:itemTotalCount(potID) >= 1 then
inventory:useItem(potID);
inventory:update();
yrest(750);
end
end
if _potionName == "caviarSandwich" then
local potID = 207211;
local buffName = "Caviar Sandwich";
if not player:hasBuff(buffName) and inventory:itemTotalCount(potID) >= 1 then
inventory:useItem(potID);
inventory:update();
yrest(750);
end
end
if _potionName == "saltedFish" then
local potID = 207209;
local buffName = "Salted Fish with Sauce";
if not player:hasBuff(buffName) and inventory:itemTotalCount(potID) >= 1 then
inventory:useItem(potID);
inventory:update();
yrest(750);
end
end
end
Re: House maid potions and food
and where to load it in the profile.xml?
onload? or after leavecombat?
onload? or after leavecombat?
Re: House maid potions and food
Either would work. Leave combat would probably be better. I have them in my waypoint file, rather than my profile.
Re: House maid potions and food
My latest file for using those potions and foods.
- Attachments
-
- addon_housemaidPotions_V3.lua
- (1.72 KiB) Downloaded 170 times
Re: House maid potions and food
You should post this under addons
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: House maid potions and food
Yes, create a dedicated post for the addon in the addons section. You can even add it to the wiki repo.jduartedj wrote:You should post this under addons
- 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
Who is online
Users browsing this forum: Ahrefs [Bot] and 34 guests