Code:
static {
int counter = 0;
int c;
try {
FileInputStream dataIn = new FileInputStream(new File("sigex/stackable.sig"));
while ((c = dataIn.read()) != -1) {
if (c == 0)
itemStackable[counter] = false;
else
itemStackable[counter] = true;
counter++;
}
dataIn.close();
for(int i = 6568; i < 6800; i++){ itemStackable[i] = false; }
int[] stackID = {6569,6572,6574,6576,6578,6580,6582,6584,6586,6588,6590,6592,6594,6596,6598,6600,6602,6604,6606,6608,6610,6612,6614,6616,6618,6620,6622,6624,6626,6628,6630,6632,6634,6676,6684,6686,6688,6690,6692,6694,6698,6700,6702,6704,6706,6725,6732,6734,6736,6738,6740,6742,6744,6761,6763,6765,6795,6815,6890,6892,6909,6911,6913,6915,6917,6919,6921,6923,6925,6960,6972,6974,6976,6978,6980,6982,6984,7052,7055,7057,7059,7061,7063,7065,7067,7069,7071,7073,7075,7077,7079,7081,7083,7085,7087,7089,7091,7093,7095,7113,7115,7117,7123,7125,7127,7129,7131,7133,7135,7137,7139,7161,7163,7165,7167,7169,7171,7173,7175,7177,7179,7181,7183,7185,7187,7189,7191,7193,7195,7197,7199,7201,7203,7205,7207,7209,7211,7213,7215,7217,7219,7221,7223,7227,7229,7320,7322,7324,7326,7328,7333,7335,7337,7339,7341,7343,7345,7347,7349,7351,7353,7355,7357,7359,7361,7363,7365,7367,7369,7371,7373,7375,7377,7379,7381,7383,7385,7387,7389,7391,7393,7395,7397,7414,7417,7419,7434,7436,7438,7440,7442,7444,7446,7448,7450,7452,7467,7469,7522,7548,7549,7550,7551,7552,7553,7554,7555,7556,7557,7558,7559,7560,7561,7562,7563,7937,};
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();
}
counter = 0;
try {
FileInputStream dataIn = new FileInputStream(new File("sigex/notes.sig"));
while ((c = dataIn.read()) != -1) {
if (c == 0)
itemIsNote[counter] = true;
else
itemIsNote[counter] = false;
counter++;
}
dataIn.close();
int[] noteID = {6569,6572,6574,6576,6578,6580,6582,6584,6586,6588,6590,6592,6594,6596,6598,6600,6602,6604,6606,6608,6610,6612,6614,6616,6618,6620,6622,6624,6626,6628,6630,6632,6634,6676,6684,6686,6688,6690,6692,6694,6698,6700,6702,6704,6706,6725,6732,6734,6736,6738,6740,6742,6744,6761,6763,6765,6795,6815,6890,6892,6909,6911,6913,6915,6917,6919,6921,6923,6925,6960,6972,6974,6976,6978,6980,6982,6984,7052,7055,7057,7059,7061,7063,7065,7067,7069,7071,7073,7075,7077,7079,7081,7083,7085,7087,7089,7091,7093,7095,7113,7115,7117,7123,7125,7127,7129,7131,7133,7135,7137,7139,7161,7163,7165,7167,7169,7171,7173,7175,7177,7179,7181,7183,7185,7187,7189,7191,7193,7195,7197,7199,7201,7203,7205,7207,7209,7211,7213,7215,7217,7219,7221,7223,7227,7229,7320,7322,7324,7326,7328,7333,7335,7337,7339,7341,7343,7345,7347,7349,7351,7353,7355,7357,7359,7361,7363,7365,7367,7369,7371,7373,7375,7377,7379,7381,7383,7385,7387,7389,7391,7393,7395,7397,7414,7417,7419,7434,7436,7438,7440,7442,7444,7446,7448,7450,7452,7467,7469,7522,7549,7551,7553,7555,7557,7559,7561,7563,7567,7569,7571,7937,};
for(int i = 0; i < noteID.length; i++){
itemIsNote[noteID[i]] = true;
}
} catch (IOException e) {
System.out.println("Critical error while loading notedata! Trace:");
e.printStackTrace();
}
counter = 0;
try {
FileInputStream dataIn = new FileInputStream(new File("sigex/twohanded.sig"));
while ((c = dataIn.read()) != -1) {
if (c == 0)
itemTwoHanded[counter] = false;
else
itemTwoHanded[counter] = true;
counter++;
}
dataIn.close();
} catch (IOException e) {
System.out.println("Critical error while loading twohanded! Trace:");
e.printStackTrace();
}
counter = 0;
try {
FileInputStream dataIn = new FileInputStream(new File("sigex/tradeable.sig"));
while ((c = dataIn.read()) != -1) {
if (c == 0)
itemTradeable[counter] = false;
else
itemTradeable[counter] = true;
counter++;
}
dataIn.close();
} catch (IOException e) {
System.out.println("Critical error while loading tradeable! Trace:");
e.printStackTrace();
}
counter = 0;
try {
FileInputStream dataIn = new FileInputStream(new File("sigex/sellable.sig"));
while ((c = dataIn.read()) != -1) {
if (c == 0)
itemSellable[counter] = true;
else
itemSellable[counter] = false;
counter++;
}
dataIn.close();
itemSellable[1543] = false;
itemSellable[1544] = false;
} catch (IOException e) {
System.out.println("Critical error while loading sellable! Trace:");
e.printStackTrace();
}
}
right now in your server folder place this folder in there.. (server folder is the folder with the client.java item.java characters folder ect..)