[Quest Release] Between A Rock [Quest Release]
okay so im not finished with the second half but heres this for now, please stay updated....
Code:
server.model.players.
package server.model.players.quests;
import server.model.players.Client;
/*
* Made by Flaborgasted
* Known Bugs - Fixed Rewards
*/
public class betweenquest {
Client c;
public betweenquest(Client c) {
this.c = c;
}
public void showInformation() {
for(int i = 8144; i < 8195; i++) {
c.getPA().sendFrame126("", i);
}
c.getPA().sendFrame126("@[email protected] A Rock", 8144);
c.getPA().sendFrame126("", 8145);
if(c.betweenA == 0) {
c.getPA().sendFrame126("Between A Rock", 8144);
c.getPA().sendFrame126("I can start this quest by speaking to Dondakan", 8147);
c.getPA().sendFrame126("He's located in the Keldagrim Mines, Northeast.", 8148);
c.getPA().sendFrame126("", 8149);
c.getPA().sendFrame126("Reccomeneded Combat level of 99+", 8150);
} else if(c.betweenA == 1) {
c.getPA().sendFrame126("Between A Rock", 8144);
c.getPA().sendFrame126("@[email protected]'ve spoken to Dondakin", 8147);
c.getPA().sendFrame126("And He wants me to gather some information on a rock on the wall", 8148);
c.getPA().sendFrame126("Maybe i should look around for some items...", 8149);
if(c.getItems().playerHasItem(292, 1)) {
c.getPA().sendFrame126("@[email protected] Book of baxitorian", 8149);
} else {
if(c.getItems().playerHasItem(784, 1)) {
c.getPA().sendFrame126("@[email protected] Translation Book", 8149);
}
} else if(c.betweenRock == 2) {
c.getPA().sendFrame126("Between A Rock", 8144);
c.getPA().sendFrame126("@[email protected] Gave Dondakin his items...", 8147);
c.getPA().sendFrame126("@[email protected] have to speak to him again", 8148);
c.getPA().sendFrame126("and maybe he'll give me more information..", 8149);
} else if(c.betweenRock == 3) {
c.getPA().sendFrame126("Between A Rock", 8144);
c.getPA().sendFrame126("@[email protected] Wants me to defeat this avatar...", 8147);
c.getPA().sendFrame126("@[email protected] Loaned me this weapon...", 8148);
c.getPA().sendFrame126("@[email protected] I Should Go to the creapy house next door to see whats going on...", 8150);
c.getPA().sendFrame126("", 8151);
} else if(c.betweenRock == 4) {
if(c.getItems().playerHasItem(8087, 1)) {
c.getPA().sendFrame126("@[email protected] Head", 8149);
}
c.getPA().sendFrame126("Between A Rock", 8144);
c.getPA().sendFrame126("Defeated The Avatar And looted his head.", 8145);
c.getPA().sendFrame126("Rewards: 100,000 Exp In 3 Skills of your choice!", 8146);
}
c.getPA().showInterface(8134);
}
}