Alright well I dont code so dont talk shit if this is wrong.....
In NPCDrops.java search for
Code:
public void loadDrops() {
a few lines down you should find something similar to replace that int wiff
Code:
int[][][] npcDrops = new int [12000][][];
So I'll paste my loadDrops for you... In case my shitty "coding" doesnt work.. and this is a stab in the dark, I'd suggest making a backup file
Code:
public void loadDrops() {
try {
int[][][] npcDrops = new int [12000][][];
int[][][] rareDrops2 = new int [12000][][];
int[] itemRarity = new int [12000];
File f = new File("./Data/cfg/NPCDrops.TSM");
Scanner s = new Scanner(f);
while (s.hasNextLine()) {
String line = s.nextLine();
if (line.startsWith("#"))
continue;
StringTokenizer normalTok = new StringTokenizer(line, "\t");
line = s.nextLine();
if (line.startsWith("#"))
continue;
StringTokenizer rareTok = new StringTokenizer(line, "\t");
String[] information = normalTok.nextToken().split(":");
int npcId = Integer.parseInt(information[0]);
itemRarity[npcId] = Integer.parseInt(information[1])-1;
npcDrops[npcId] = new int[normalTok.countTokens()][2];
rareDrops2[npcId] = new int[rareTok.countTokens()][2];
int count = 0;
while (normalTok.hasMoreTokens()) {
String[] temp = normalTok.nextToken().split(":");
npcDrops[npcId][count][0] = Integer.parseInt(temp[0]);
npcDrops[npcId][count][1] = Integer.parseInt(temp[1]);
count++;
}
count = 0;
while (rareTok.hasMoreTokens()) {
String[] temp = rareTok.nextToken().split(":");
rareDrops2[npcId][count][0] = Integer.parseInt(temp[0]);
//System.out.println("Raredrop: " + count + " " + rareDrops2[npcId][count][0]);
rareDrops2[npcId][count][1] = Integer.parseInt(temp[1]);
//System.out.println("Raredrop: " + count + " " + rareDrops2[npcId][count][1]);
count++;
}
normalDrops.put(npcId, npcDrops[npcId]);
rareDrops.put(npcId, rareDrops2[npcId]);
dropRarity.put(npcId, itemRarity[npcId]);
}
loadConstants();
} catch (Exception e) {
e.printStackTrace();
}
}