Page 1 of 1

check bag is full or not

Posted: Sun Aug 21, 2011 5:47 am
by RooT
Hello Guys =)

Little question. How i can check if the bot got a full bag or not? I want that my bot go the guy where i sell my items only when the bag is full.
sorry for my bad english.

Re: check bag is full or not

Posted: Sun Aug 21, 2011 5:49 am
by cheater

Code: Select all

if inventory:itemTotalCount(0) == 0 then GO AND SELL

Re: check bag is full or not

Posted: Sun Aug 21, 2011 5:52 am
by RooT
Thank you very much, i try it :)

Re: check bag is full or not

Posted: Sun Aug 21, 2011 7:17 am
by RooT
got following error. Hope u can help me.

Re: check bag is full or not

Posted: Sun Aug 21, 2011 7:53 am
by rock5
It's missing the "end" statement for the "if" command.

Re: check bag is full or not

Posted: Sun Aug 21, 2011 8:17 am
by RooT
Thank you!