This userfunction was created to use housemaids potions and foods. It first checks if we have that potion / food on inventory and after that it will check if we have buff on and if buff is on then it won't use that item. Otherwise it will use item.
My original userfunction was combined with Jduartedj and now this should be able to use any consumable. I will continue to support this project for now. This one should support clients with other languages than English. Buff names was changed to buff id's.
Just for reference i will link these links to those two threads where can be found info regarding to this one.
UseFood + useHousemaidPotions = useGoodie !!!
housemaid potions and foods
Troubleshooting:
- Default folder for userfunctions is micromacro\scripts\rom\userfunctions
- Delete or move previous versions of useGoodie userfunctions away from userfunctions folder
- If bot is using items everytime it uses function then the buff ID is wrong. Userfunction checks first if we have potions on inventory then it will check if we have buff from that item. If those are true then it will use item.
Available commands
To use housemaid items you need to write these as they are here. These can be placed for example in onLeaveCombat, onSkillCast, onPreSkillCast or in waypoint file.
Code: Select all
useGoodie("giant"); -- Fullness
useGoodie("speed"); -- Unbridled Enthusiasm
useGoodie("frog"); -- Princely Look
useGoodie("casting"); -- Clear Thought
useGoodie("luck"); --Turn of Luck Powder Dust
useGoodie("riding"); --Galloping Gale
useGoodie("jump"); --crazy breakout
useGoodie("defense"); --Scarlet Love
useGoodie("agro"); --Pungent Vileness
useGoodie("godspeed"); --Godspeed
useGoodie("pdmg"); -- Housekeeper Special Salted Fish with Sauce
useGoodie("mdmg"); -- Housekeeper Special Smoked Bacon with Herbs
useGoodie("critp"); -- Housekeeper Special Caviar Sandwich
useGoodie("matt"); -- Housekeeper Special Deluxe Seafood
useGoodie("patt2"); -- Housekeeper Special Spicy Meatsauce Burrito
useGoodie("mdmg2"); -- Housekeeper Special Delicious Swamp Mix
useGoodie("patt3"); -- Housekeeper Special Unimaginable Salad
useGoodie("matt3"); -- Housekeeper Special Cheese Fishcake
Code: Select all
useGoodie("item"); --if the item has the same buffname as the itemname
useGoodie("item","buff"); --only if you have an item with a buff diferent from its own name.
useGoodie(120556); -- Can cast by consumable ID.
useGoodie("Infinite Herb") --Uses Infinite herb.
useGoodie("Infinite Herb", "Infinite Herb") --This also gives buff so this works also
Examples
Code: Select all
<onLeaveCombat>
useGoodie("speed");
useGoodie("luck");
useGoodie("patt3");
</onLeaveCombat>
Code: Select all
<!-- # 1 --><waypoint x="3431" z="2695" y="47">
useGoodie("defense");
useGoodie("patt3");
</waypoint>
http://www.solarstrike.net/phpBB3/viewt ... 952#p21952