Jump to content

How to check Pouches for Runecrafting?


Recommended Posts

2 hours ago, Alakazizam said:

May or may not work the same as the druid pouch, but the druid pouch behaves like a stackable item. inventory.getAmount("Druid pouch") value goes up and down based on how many charges the druid pouch has. Might be worth seeing if the rune pouches work the same way? 

The druid pouch has a different item id plus you can check for item amount regardless of item id

Link to comment
Share on other sites

Either you keep track if you clicked it or not and set a boolean isFull for each pouch 
Or you can make it smarter by by checking how much essence disappeared from bank/inventory when you press fill and keep track of an amount :)
Second one might be slower as it alweays takes 1 tick to fill a pouch so if you have multiple it might be a bit slower

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...