Open Item.java and look for something like:
Code:
int counter = 0;
int c;
try {
FileInputStream dataIn = new FileInputStream(new File("./bin/data/stackable.dat"));
while ((c = dataIn.read()) != -1) {
if (c == 0) {
itemStackable[counter] = false;
} else {
itemStackable[counter] = true;
}
counter++;
}
dataIn.close();
} catch (IOException e) {
System.out.println("Critical error while loading stackabledata! Trace:");
e.printStackTrace();
}
And under the dataIn.close add:
Code:
int[] stackid = {100, 102};
for (int i = 0; i < stackid.length; i++) {
itemStackable[stackid[i]] = true;
}
So it will end up looking something like:
Code:
int counter = 0;
int c;
try {
FileInputStream dataIn = new FileInputStream(new File("./bin/data/stackable.dat"));
while ((c = dataIn.read()) != -1) {
if (c == 0) {
itemStackable[counter] = false;
} else {
itemStackable[counter] = true;
}
counter++;
}
dataIn.close();
int[] stackid = {100, 102};
for (int i = 0; i < stackid.length; i++) {
itemStackable[stackid[i]] = true;
}
} catch (IOException e) {
System.out.println("Critical error while loading stackabledata! Trace:");
e.printStackTrace();
}
And that will make item 100 and item 102 stackable, it's sorta a cheap way to do it though. ;P