Eliteofdelete
Member
So, I have used this function countless times and never has it acted in this way. I have a simple item amount check and if it returns true, do something with it. Here is the code
As far as I understand, it should just check to see if you have that amount of item in your inventory and if you do return true, if not return false. Instead, it is trying to craft the drinks, which I do not want. It asks if I want to spend adventures crafting and if I say yes it starts searching for the ingredients and buying stuff and then fails because it couldn't obtain one of the ingredients. Is it suppose to act in this way and I just never noticed?
Code:
if (item_amount($item[prussian cathouse]) == 4);
cli_execute("drink 4 prussian cathouse");
As far as I understand, it should just check to see if you have that amount of item in your inventory and if you do return true, if not return false. Instead, it is trying to craft the drinks, which I do not want. It asks if I want to spend adventures crafting and if I say yes it starts searching for the ingredients and buying stuff and then fails because it couldn't obtain one of the ingredients. Is it suppose to act in this way and I just never noticed?