Could anyone help me fix this:
Code:
String[] information = normalTok.nextToken().split(":");
int npcId = Integer.parseInt(information[0]);
itemRarity[npcId] = Integer.parseInt(information[1])-1;
itemVRarity[npcId] = Integer.parseInt(information[2])-1;
itemERarity[npcId] = Integer.parseInt(information[3])-1;
npcDrops[npcId] = new int[normalTok.countTokens()][2];
rareDrops2[npcId] = new int[rareTok.countTokens()][2];
rareDrops3[npcId] = new int[vRareTok.countTokens()][2];
rareDrops4[npcId] = new int[eRareTok.countTokens()][2];
basically this is how i want the drops to actually do:
Code:
#Abyssal Demon
1615:20:30:2 1283:1 1361:1 1365:1 249:1 251:1 253:1 556:50 565:7 562:10 995:30 995:44 995:132 995:220 995:460 379:1 7937:60
1197:1 1113:1 1147:1 255:1 257:1 259:1 261:1 263:1 563:1
265:1 267:1 1462:1
4151:1
The error is that
Code:
1615:20:30:2
1615:20:30:2 1283:1 1361:1 1365:1 249:1 251:1 253:1 556:50 565:7 562:10 995:30 995:44 995:132 995:220 995:460 379:1 7937:60
1197:1 1113:1 1147:1 255:1 257:1 259:1 261:1 263:1 563:1
265:1 267:1 1462:1
4151:1
the 4151 uses the red part, but i want it to use the green part, if yuo need my npcdrops then ask