Base: Palidino, bulby the second one for Codeusa
Place this code in objectoption1.java
u can change the altar id
Btw u still need to add the global object ofc.
case 6552: //Ancients altar
p.requestAnim(6299, 0);
p.requestGFX(1062, 0);
if (p.spellbook == 0) {
p.frames.setTab(p, 79, 193); //Ancients
p.spellbook = 1;
p.frames.sendMessage(p, "You feel a strange wisdom fill your mind...");
} else if (p.spellbook == 1) {
p.frames.setTab(p, 79, 192); //Modern
p.spellbook = 0;
p.frames.sendMessage(p, "You feel a strange wisdom empty your mind...");
} else {
p.frames.sendMessage(p, "You must be on Modern or Ancient magicks to switch your spellbook at this altar.");
}
break;
case 28698: //Lunars altar
if (p.spellbook == 0) {
p.frames.setTab(p, 79, 430); //Lunar
p.spellbook = 2;
p.frames.sendMessage(p, "You feel a strange wisdom fill your mind...");
p.requestAnim(6299, 0);
p.requestGFX(1062, 0);
} else if (p.spellbook == 2) {
p.frames.setTab(p, 79, 192); //Modern
p.spellbook = 0;
p.frames.sendMessage(p, "You feel a strange wisdom empty your mind...");
p.requestAnim(6299, 0);
p.requestGFX(1062, 0);
} else {
p.frames.sendMessage(p, "You must be on Modern or Lunar magicks to switch your spellbook at this altar.");
}
break;
Codeusa one
Only got Ancient atm il make lunar later:
case 6552:
if (p.spellbook == 430 || p.spellbook == 193) {
p.questStage = 3;
p.message("You convert to Normal Magics.");
p.requestAnim(6299, 0);
p.requestGFX(1062, 0);
p.spellbook = 192;
p.getActionSender().setTab(p, 79, p.spellbook);
} else {
if (p.getLevelForXP(6) < 50) {
p.message("You need 50 magic to convert to Ancients Magicks.");
return;
}
p.spellbook = 193;
p.requestAnim(6299, 0);
p.requestGFX(1062, 0);
p.getActionSender().setTab(p, 79, p.spellbook);
p.message("You convert to Ancients Magic.");
}
break;
Save, compile