32 SMALL_POUCH(5509, 1, 3, -1) {
36 player.message(
"Your small pouch is already filled to it's capacity!");
45 if (player.smallPouch + amount >
capacity)
46 amount =
capacity - player.smallPouch;
48 return player.smallPouch += amount;
53 if (player.smallPouch == 0) {
54 player.message(
"You have no rune essences store in your small pouch!");
57 if (player.inventory.
getFreeSlots() < player.smallPouch){
58 player.message(
"Please free up some inventory spaces before doing this!");
61 int amount = player.smallPouch;
68 player.smallPouch = 0;
71 MEDIUM_POUCH(5510, 25, 6, 9) {
73 if (player.mediumPouch >=
capacity) {
74 player.message(
"Your medium pouch is already filled to it's capacity!");
83 if (player.mediumPouch + amount >
capacity)
84 amount =
capacity - player.mediumPouch;
86 return player.mediumPouch += amount;
91 if (player.mediumPouch == 0) {
92 player.message(
"You have no rune essences store in your medium pouch!");
95 if (player.inventory.
getFreeSlots() < player.mediumPouch){
96 player.message(
"Please free up some inventory spaces before doing this!");
99 int amount = player.mediumPouch;
106 player.mediumPouch = 0;
109 LARGE_POUCH(5512, 50, 9, 18) {
111 if (player.largePouch >=
capacity) {
112 player.message(
"Your large pouch is already filled to it's capacity!");
118 if (amount > essence)
121 if (player.largePouch + amount >
capacity)
122 amount =
capacity - player.largePouch;
124 return player.largePouch += amount;
129 if (player.largePouch == 0) {
130 player.message(
"You have no rune essences store in your large pouch!");
133 if (player.inventory.
getFreeSlots() < player.largePouch){
134 player.message(
"Please free up some inventory spaces before doing this!");
137 int amount = player.largePouch;
144 player.largePouch = 0;
147 GIANT_POUCH(5514, 75, 12, 50) {
149 if (player.giantPouch >=
capacity) {
150 player.message(
"Your giant pouch is already filled to it's capacity!");
156 if (amount > essence)
159 if (player.giantPouch + amount >
capacity)
160 amount =
capacity - player.giantPouch;
162 return player.giantPouch += amount;
167 if (player.giantPouch == 0) {
168 player.message(
"You have no rune essences store in your giant pouch!");
171 if (player.inventory.
getFreeSlots() < player.giantPouch){
172 player.message(
"Please free up some inventory spaces before doing this!");
175 int amount = player.giantPouch;
182 player.giantPouch = 0;
218 if (pouch.item ==
item)
abstract int withdraw(Player player)
abstract int deposit(Player player, int amount)
abstract void empty(Player player)
static RunecraftPouchData forItem(int item)
RunecraftPouchData(int item, int level, int capacity, int decay)