Originally Posted by
g0d 0f war
ok im making a spawn pk server and i was woundering how to make curses only used when you have 5k pkpoints here's my case
case 411:
if(c.pkPoints == 0) {
c.sendMessage("You must have 5k pkPoints to activate 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();
} else {
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;
Code:
case 411:
if(c.pkPoints < 5000){
c.sendMessage("You must have 5k pkPoints to activate 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();
}else{
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;
The only reason this wasn't done properly is due to laziness otherwise you could have done it without help ...