Here you go
Code:
public void ClickonChest() {
if (this.c.barrowsKillCount < 5) {
this.c.sendMessage("You haven't killed all the brothers");
}
if ((this.c.barrowsKillCount == 5)
&& (this.c.barrowsNpcs[this.c.randomCoffin][1] == 1)) {
this.c.sendMessage("I have already summoned this npc.");
}
if ((this.c.barrowsNpcs[this.c.randomCoffin][1] == 0)
&& (this.c.barrowsKillCount >= 5)) {
Server.npcHandler.spawnNpc(this.c,
this.c.barrowsNpcs[this.c.randomCoffin][0], 3551, 9694 - 1,
0, 0, 120, 30, 200, 200, true, true);
this.c.barrowsNpcs[this.c.randomCoffin][1] = 1;
}
if (((this.c.barrowsKillCount > 5) || (this.c.barrowsNpcs[this.c.randomCoffin][1] == 2))
&& (this.c.getItems().freeSlots() >= 2)) {
this.c.getPA().resetBarrows();
this.c.getItems().addItem(this.c.getPA().randomRunes(),
Misc.random(130) + 100);
this.c.earthquake();
if (Misc.random(2) == 1) {
this.c.getItems().addItem(this.c.getPA().randomBarrows(), 1);
}
this.c.getPA().startTeleport(3564, 3288, 0, "modern");
this.c.resetCamera();
} else if ((this.c.barrowsKillCount > 5)
&& (this.c.getItems().freeSlots() <= 1)) {
this.c.sendMessage("You need at least 2 inventory slot opened.");
}
}