itemTable ={ [1] = {optionName = "speed", potID = 207200, buffName = "Unbridled Enthusiasm", castTime = 0}, [2] = {optionName = "frog", potID = 207201, buffName = "Princely Look", castTime = 1000}, [3] = {optionName = "luck", potID = 207203, buffName = "Turn of Luck Powder Dust", castTime = 0}, [4] = {optionName = "clearThought", potID = 207202, buffName = "Clear Thought", castTime = 0}, [5] = {optionName = "crazyBreakout", potID = 207205, buffName = "", castTime = 1000}, [6] = {optionName = "fullness", potID = 207199, buffName = "Fullness", castTime = 0}, [7] = {optionName = "gallopingGale", potID = 207204, buffName = "Galloping Gale", castTime = 0}, [8] = {optionName = "MeatsauceBurrito", potID = 207213, buffName = "Spicy Meatsauce Burrito", castTime = 0}, [9] = {optionName = "caviarSandwich", potID = 207211, buffName = "Caviar Sandwich", castTime = 0}, [10] = {optionName = "saltedFish", potID = 207209, buffName = "Salted Fish with Sauce", castTime = 0}, [11] = {optionName = "deliciousSwampMix", potID = 207214, buffName = "Delicious Swamp Mix", castTime = 0}, [12] = {optionName = "unimaginableSalad", potID = 207215, buffName = "Unimaginable Salad", castTime = 0}, [13] = {optionName = "cheeseFishcake", potID = 207215, buffName = "Cheese Fishcake", castTime = 0} } function useHousemaidPotions(_potionName) for __, option in pairs(itemTable) do if _potionName == option.optionName then if not player:hasBuff(option.buffName) and inventory:itemTotalCount(option.potID) >= 1 then inventory:useItem(option.potID); if option.castTime > 0 then yrest(option.castTime); end inventory:update(); yrest(750); end end end end