May 26, 20241 yr How would I go about checking to see if a small, medium, large pouch for Runecrafting is full or empty? They are the same ID whether they are full or empty. Any help would be appreciated, ty!
May 27, 20241 yr You don't ;o You just couple a check to the filling action. Use get inventory item amount checks and whether your inventory item amount changes when the fill pouch action is performed.
May 27, 20241 yr 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?
May 27, 20241 yr 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
May 27, 20241 yr 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
May 28, 20241 yr Author Thanks for responses I will prob end up setting a boolean like khaleesi mentioned. Ty all!
Create an account or sign in to comment