Requierement to use an object
How would I add a requirement to use an object? For example, to use curses you would need 25 kills. You would use the +kc+ I think? (killcount thing)
Heres my altar code:
Code:
case 411:
if (c.playerPrayerBook) {
c.playerPrayerBook = false;
c.startAnimation(645);
c.sendMessage("You sense a surge of purity flow through your body.");
c.setSidebarInterface(5, 5608);
c.getCombat().resetPrayers();
} else {
c.playerPrayerBook = true;
c.startAnimation(645);
c.sendMessage("You sense a surge of power flow through your body!");
c.setSidebarInterface(5, 22500);
c.getCombat().resetPrayers();
}
break;