Code:
case 10284:
//c.shakeScreen(3, 2, 3, 2);
if(c.barrowsKillCount < 5) {
c.sendMessage("You must kill all the brothers to receive a reward!");
}
if(c.barrowsKillCount == 5 && c.barrowsNpcs[c.randomCoffin][1] == 1) {
c.sendMessage("I have already awakened this brother.");
}
if(c.barrowsNpcs[c.randomCoffin][1] == 0 && c.barrowsKillCount >= 5) {
Server.npcHandler.spawnNpc(c, c.barrowsNpcs[c.randomCoffin][0], 3551, 9694-1, 0, 0, 120, 30, 200, 200, true, true);
c.barrowsNpcs[c.randomCoffin][1] = 1;
}
if((c.barrowsKillCount > 5 || c.barrowsNpcs[c.randomCoffin][1] == 2) && c.getItems().freeSlots() >= 2) {
c.resetShaking();
c.getPA().resetBarrows();
c.getItems().addItem(c.getPA().randomRunes(), Misc.random(150) + 100);
if (Misc.random(2) == 1)
c.getItems().addItem(c.getPA().randomBarrows(), 1);
c.getPA().startTeleport(3564, 3288, 0, "modern");
} else if(c.barrowsKillCount > 5 && c.getItems().freeSlots() <= 1) {
c.sendMessage("You need two empty slots in your inventory to receive the reward.");
}
break;
How would I alter the drop rate of Barrows so that barrows isn't given 100% of the time?