I need it so that you can't access curses if you're under 30 defence.
Code:
case 411:
if (c.playerLevel[1] <= 29) {
c.sendMessage("You need a defence level of 30 to access curses.");
} else {
if(c.altarPrayed == 0) {
c.altarPrayed = 1;
c.setSidebarInterface(5, 22500);
c.startAnimation(645);
c.sendMessage("You sense a surge of power flow through your body!");
c.getCombat().resetPrayers();
if (c.altarPrayed == 1) {
c.altarPrayed = 0;
c.setSidebarInterface(5, 5608);
c.startAnimation(645);
c.sendMessage("You sense a surge of purity flow through your body!");
c.getCurse().resetCurse();
}
}
}
break;
I've tried a lot of minor changes and none of them have worked...