Jump to content

problem with getInventory.getAmount()


Recommended Posts

Posted

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 :) 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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