the file is at userfunctions and its called: userfunction_useGoodie
inside the file i have text like this
function useMaidPots()
if( not player:hasBuff("Unbridled Enthusiasm") and inventory:itemTotalCount(207200) > 0 ) then
inventory:useItem(207200)
inventory:update()
yrest(500)
end
if( not player:hasBuff("Clear Thought") and inventory:itemTotalCount(207202) > 0 ) then
inventory:useItem(207202)
inventory:update()
yrest(500)
end
if( not player:hasBuff("Turn of Luck Powder Dust") and inventory:itemTotalCount(207203) > 0 ) then
inventory:useItem(207203)
inventory:update()
yrest(500)
end
end
can someone help me out why bot doesnt use them
or could someone give me working text and correct name for the file so i can get it work ?