Jump to content

problem with getInventory.getAmount()


Michal Ziak

Recommended Posts

Hi guys,

I am doing some questing scripts and I am stuck on one thing.

inventory.getAmount sometimes returns 0 and inventory.contains("Ïtem") sometimes returns false, even if have that item in inventory, which will end with infinite shearing of sheeps, picking up buckets, etc. What are the conditions to actually show the proper amount? Do I need to have my inventory opened while doing this checks? 

Thank you for answer :) 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...