Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int myHolder = -1;
- public int myInt = -1;
- public void method123()
- {
- int i1;
- int i2;
- int j;
- int n;
- int i;
- int k;
- int m;
- if (System.currentTimeMillis() - this.aLong1267 > 50L)
- {
- i = 0;
- if ((this.anInt1175 != 0) && (this.anInt1162 == 0))
- this.anInt1162 = 1;
- if (this.anInt1162 > 0)
- {
- j = this.anInt31 - (anInt1291 - (anInt1291 / 2 + 234));
- k = this.anInt32 - (anInt1292 / 2 - 139);
- if ((j >= 0) && (k >= 0) && (j < 468) && (k < 262))
- {
- if ((j > 216) && (k > 30) && (j < 462) && (k < 235))
- {
- m = (j - 217) / 49 + (k - 31) / 34 * 5;
- if ((m >= 0) && (m < this.anInt979))
- {
- n = 0;
- i1 = 0;
- i2 = this.anIntArray980[m];
- drawInputOffer();
- if (Class3.method236(i2).aBoolean807)
- {
- if (i == 0)
- super.method121(Class13.method344(12186), 3, 0);
- i = 1;
- }
- int i3;
- if (i == 0)
- for (i3 = 0; i3 < this.anInt1243; i3++)
- {
- if (this.anIntArray1244[i3] != i2)
- continue;
- if (Class3.method236(i2).method304()) //if item is stackable
- for (int i4 = 0; i4 < this.anInt1162; i4++)
- {
- if (this.anIntArray1245[i3] < this.anIntArray981[m])
- {
- this.anIntArray1245[i3] += this.myInt;
- }
- if (this.anIntArray1245[i3] > this.anIntArray981[m])
- {
- }
- n = 1;
- }
- else
- i1++;
- }
- if ((i == 0) && (super.method58(i2) <= i1))
- n = 1;
- if ((i == 0) && (n == 0) && (this.anInt1243 < 12))
- {
- this.anIntArray1244[this.anInt1243] = i2;
- this.anIntArray1245[this.anInt1243] = this.myInt;
- this.anInt1243 += 1;
- n = 1;
- }
- if ((i == 0) && (n != 0))
- {
- this.aLong1267 = System.currentTimeMillis();
- this.aClass33_Sub1_767.method558(42);
- this.aClass33_Sub1_767.method542(this.anInt1243);
- for (i3 = 0; i3 < this.anInt1243; i3++)
- {
- this.aClass33_Sub1_767.method546(this.anIntArray1244[i3]);
- this.aClass33_Sub1_767.method544(this.anIntArray1245[i3]);
- }
- this.aClass33_Sub1_767.method541();
- this.aBoolean997 = false;
- this.aBoolean998 = false;
- }
- }
- }
- if ((i == 0) && (j > 8) && (k > 30) && (j < 205) && (k < 133))
- {
- m = (j - 9) / 49 + (k - 31) / 34 * 4;
- if ((m >= 0) && (m < this.anInt1243))
- {
- n = this.anIntArray1244[m];
- for (i1 = 0; i1 < this.anInt1162; i1++)
- if ((Class3.method236(n).method304()) && (this.anIntArray1245[m] > 1))
- {
- drawInputRemove();
- this.anIntArray1245[m] -= this.myInt;
- }
- else
- {
- this.anInt1243 -= 1;
- this.anInt1161 = 0;
- for (i2 = m; i2 < this.anInt1243; i2++)
- {
- this.anIntArray1244[i2] = this.anIntArray1244[(i2 + 1)];
- this.anIntArray1245[i2] = this.anIntArray1245[(i2 + 1)];
- }
- break;
- }
- this.aLong1267 = System.currentTimeMillis();
- this.aClass33_Sub1_767.method558(42);
- this.aClass33_Sub1_767.method542(this.anInt1243);
- for (i1 = 0; i1 < this.anInt1243; i1++)
- {
- this.aClass33_Sub1_767.method546(this.anIntArray1244[i1]);
- this.aClass33_Sub1_767.method544(this.anIntArray1245[i1]);
- }
- this.aClass33_Sub1_767.method541();
- this.aBoolean997 = false;
- this.aBoolean998 = false;
- }
- }
- if ((j >= 217) && (k >= 238) && (j <= 286) && (k <= 259))
- {
- this.aLong1267 = System.currentTimeMillis();
- this.aBoolean998 = true;
- this.aClass33_Sub1_767.method558(39);
- this.aClass33_Sub1_767.method541();
- }
- if ((j >= 394) && (k >= 238) && (j < 463) && (k < 259))
- {
- this.aBoolean1236 = false;
- this.aClass33_Sub1_767.method558(41);
- this.aClass33_Sub1_767.method541();
- }
- }
- else if (this.anInt1175 != 0)
- {
- this.aBoolean1236 = false;
- this.aClass33_Sub1_767.method558(41);
- this.aClass33_Sub1_767.method541();
- }
- this.anInt1175 = 0;
- this.anInt1162 = 0;
- }
- }
- if (!this.aBoolean1236)
- return;
- i = anInt1291 / 2 - 234;
- j = anInt1292 / 2 - 140;
- this.aClass26_Sub1_1195.method428(i, j, 468, 12, 192);
- k = 10000536;
- super.method76(i, j + 12, 468, 18, k, 160);
- super.method76(i, j + 30, 8, 248, k, 160);
- super.method76(i + 205, j + 30, 11, 248, k, 160);
- super.method76(i + 462, j + 30, 6, 248, k, 160);
- super.method76(i + 8, j + 133, 197, 22, k, 160);
- super.method76(i + 8, j + 258, 197, 20, k, 160);
- super.method76(i + 216, j + 235, 246, 43, k, 160);
- m = 13684944;
- super.method76(i + 8, j + 30, 197, 103, m, 160);
- super.method76(i + 8, j + 155, 197, 103, m, 160);
- super.method76(i + 216, j + 30, 246, 205, m, 160);
- for (n = 0; n < 4; n++)
- super.method77(i + 8, j + 30 + n * 34, 197, 0);
- for (n = 0; n < 4; n++)
- super.method77(i + 8, j + 155 + n * 34, 197, 0);
- for (n = 0; n < 7; n++)
- super.method77(i + 216, j + 30 + n * 34, 246, 0);
- for (n = 0; n < 6; n++)
- {
- if (n < 5)
- super.method78(i + 8 + n * 49, j + 30, 103, 0);
- if (n < 5)
- super.method78(i + 8 + n * 49, j + 155, 103, 0);
- super.method78(i + 216 + n * 49, j + 30, 205, 0);
- }
- super.method80(Class13.method344(12760) + this.aString1254, i + 1, j + 10, 1, 16777215);
- super.method80(Class13.method344(12775), i + 9, j + 27, 4, 16777215);
- super.method80(Class13.method344(12786), i + 9, j + 152, 4, 16777215);
- super.method80(Class13.method344(12286), i + 216, j + 27, 4, 16777215);
- if (!this.aBoolean998)
- this.aClass26_Sub1_1195.method438(i + 217, j + 238, 2025);
- this.aClass26_Sub1_1195.method438(i + 394, j + 238, 2026);
- if (this.aBoolean997)
- {
- super.method79(Class13.method344(12345), i + 341, j + 246, 1, 16777215);
- super.method79(Class13.method344(12358), i + 341, j + 256, 1, 16777215);
- }
- if (this.aBoolean998)
- {
- super.method79(Class13.method344(12371), i + 217 + 35, j + 246, 1, 16777215);
- super.method79(Class13.method344(12383), i + 217 + 35, j + 256, 1, 16777215);
- }
- for (n = 0; n < this.anInt979; n++)
- {
- i1 = 217 + i + n % 5 * 49;
- i2 = 31 + j + n / 5 * 34;
- this.aClass26_Sub1_1195.method452(i1, i2, 48, 32, 2150 + Class3.method236(this.anIntArray980[n]).method302(), Class3.method236(this.anIntArray980[n]).method306(), 0, 0, false);
- if (!Class3.method236(this.anIntArray980[n]).method304())
- continue;
- super.method80(super.method69(String.valueOf(this.anIntArray981[n])), i1 + 1, i2 + 10, 1, 16776960);
- }
- for (n = 0; n < this.anInt1243; n++)
- {
- i1 = 9 + i + n % 4 * 49;
- i2 = 31 + j + n / 4 * 34;
- this.aClass26_Sub1_1195.method452(i1, i2, 48, 32, 2150 + Class3.method236(this.anIntArray1244[n]).method302(), Class3.method236(this.anIntArray1244[n]).method306(), 0, 0, false);
- if (Class3.method236(this.anIntArray1244[n]).method304())
- super.method80(super.method69("" + String.valueOf(this.anIntArray1245[n])), i1 + 1, i2 + 10, 1, 16776960);
- if ((this.anInt31 <= i1) || (this.anInt31 >= i1 + 48) || (this.anInt32 <= i2) || (this.anInt32 >= i2 + 32))
- continue;
- super.method80(Class3.method236(this.anIntArray1244[n]).method292() + Class13.method344(9152) + Class3.method236(this.anIntArray1244[n]).method293(), i + 8, j + 273, 1, 16776960);
- }
- for (n = 0; n < this.anInt1183; n++)
- {
- i1 = 9 + i + n % 4 * 49;
- i2 = 156 + j + n / 4 * 34;
- this.aClass26_Sub1_1195.method452(i1, i2, 48, 32, 2150 + Class3.method236(this.anIntArray1184[n]).method302(), Class3.method236(this.anIntArray1184[n]).method306(), 0, 0, false);
- if (Class3.method236(this.anIntArray1184[n]).method304())
- super.method80(super.method69("" + String.valueOf(this.anIntArray1185[n])), i1 + 1, i2 + 10, 1, 16776960);
- if ((this.anInt31 <= i1) || (this.anInt31 >= i1 + 48) || (this.anInt32 <= i2) || (this.anInt32 >= i2 + 32))
- continue;
- super.method80(Class3.method236(this.anIntArray1184[n]).method292() + Class13.method344(9152) + Class3.method236(this.anIntArray1184[n]).method293(), i + 8, j + 273, 1, 16776960);
- }
- }
- public void drawInputRemove() {
- {
- String s = "Please enter the number of items to remove";
- this.myInt = askuserInt(s);
- }
- }
- public void drawInputOffer() {
- {
- String s = "Please enter the number of items to offer";
- this.myInt = askuserInt(s);
- }
- }
Add Comment
Please, Sign In to add comment