Code:
case 10284:
if (c.BarrowskillCount >= 6) {
c.BarrowskillCount = 0;
c.getBarrows().Verac = false;
c.getBarrows().Torag = false;
c.getBarrows().Ahrim = false;
c.getBarrows().Dharok = false;
c.getBarrows().Guthan = false;
int[] items = { 7462, 7462, 7462, 4708, 4710, 4712, 4714, 4716, 4718, 4720, 4722, 4724, 4726, 4728, 4730, 4732, 4734, 4736, 4738, 4745, 4747, 4749, 4751, 4753, 4755, 4757, 4759, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1 };
int r = (int) (Math.random() * items.length);
if (items[r] != -1)
c.getItems().addItem(items[r], 1);
c.getItems().addItem(565, Misc.random(100));
c.getItems().addItem(558, Misc.random(800));
c.getItems().addItem(560, Misc.random(200));
c.getItems().addItem(562, Misc.random(300));
c.getItems().addItem(4740, Misc.random(80));
c.getItems().addItem(995, Misc.random(4000));
c.saveGame();
}
break;
this is the code for drop but can't handle it, gives error