# = Whatever id your altar is.Code:case #: if(c.playerMagicBook != 0 && c.playerLevel[1] >= 1) { //c.playerMagicBook = 2; c.startAnimation(645); c.setSidebarInterface(6, 29999); c.sendMessage("Lunar spells activated!"); c.getPA().resetAutocast(); } else { c.startAnimation(645); c.setSidebarInterface(6, 1151); //modern c.playerMagicBook = 0; c.sendMessage("You feel a strange drain upon your memory..."); c.autocastId = -1; c.getPA().resetAutocast(); }