Post: [PI] Custom Quest - Once Upon A Dragon
03-05-2015, 07:35 PM #1
Stunz
Former Staff
(adsbygoogle = window.adsbygoogle || []).push({});
Create a new folder called quests in the location - src/server/model/players/quests

And make a new java file called OnceUponADragon and paste this into it:

    package server.model.players.quests;

import server.model.players.Player;
import server.model.players.PlayerSave;
import server.model.players.Client;

public class OnceUponADragon {

public static void showQuest(Client c) {

for (int i = 8144; i < 8195; i++) {
c.getPA().sendFrame126("", i);
}
c.getPA().sendFrame126("Once Upon A Dragon", 8144);
c.getPA().sendFrame126("", 8145);
if (c.ouad == 0) {
c.getPA().sendFrame126("To start this quest, I must talk to The Guildmaster.", 8147);
c.getPA().sendFrame126("Who is outside of the Varrock Castle", 814Cool Man (aka Tustin);
c.getPA().sendFrame126("I must also have the requirements of:", 8149);
if(c.playerLevel[14] >= 85) {
c.getPA().sendFrame126("@str@85 Mining", 8150);
}else{
c.getPA().sendFrame126("@red@85 Mining", 8150);
}
if(c.playerLevel[13] >= 85) {
c.getPA().sendFrame126("@str@85 Smithing", 8151);
}else{
c.getPA().sendFrame126("@red@85 Smithing", 8151);
}
}

if (c.ouad == 1) {
c.getPA().sendFrame126("To start this quest, I must talk to The Guildmaster.", 8147);
c.getPA().sendFrame126("Who is outside of the Varrock Castle", 814Cool Man (aka Tustin);
c.getPA().sendFrame126("I must also have the requirements of:", 8149);
if(c.playerLevel[14] >= 85) {
c.getPA().sendFrame126("@str@85 Mining", 8150);
}else{
c.getPA().sendFrame126("@red@85 Mining", 8150);
}
if(c.playerLevel[13] >= 85) {
c.getPA().sendFrame126("@str@85 Smithing", 8151);
}else{
c.getPA().sendFrame126("@red@85 Smithing", 8151);
}
c.getPA().sendFrame126("", 8152);
c.getPA().sendFrame126("The Guildmaster told me to go speak with the 4 witnesses.", 8153);
c.getPA().sendFrame126("I must go to them in this exact order:", 8154);
c.getPA().sendFrame126("1) Sir Tiffy Cashien in the Falador Park", 8155);
c.getPA().sendFrame126("2) Ned in Draynor Village", 8156);
c.getPA().sendFrame126("3) Redbeard Frank in Port Sarim", 8157);
c.getPA().sendFrame126("4) The Odd Old Man in Karamja", 815Cool Man (aka Tustin);
}

if (c.ouad == 2) {
c.getPA().sendFrame126("To start this quest, I must talk to The Guildmaster.", 8147);
c.getPA().sendFrame126("Who is outside of the Varrock Castle", 814Cool Man (aka Tustin);
c.getPA().sendFrame126("I must also have the requirements of:", 8149);
if(c.playerLevel[14] >= 85) {
c.getPA().sendFrame126("@str@85 Mining", 8150);
}else{
c.getPA().sendFrame126("@red@85 Mining", 8150);
}
if(c.playerLevel[13] >= 85) {
c.getPA().sendFrame126("@str@85 Smithing", 8151);
}else{
c.getPA().sendFrame126("@red@85 Smithing", 8151);
}
c.getPA().sendFrame126("", 8152);
c.getPA().sendFrame126("The Guildmaster told me to go speak with the 4 witnesses.", 8153);
c.getPA().sendFrame126("I must go to them in this exact order:", 8154);
c.getPA().sendFrame126("@str@1) Sir Tiffy Cashien in the Falador Park", 8155);
c.getPA().sendFrame126("2) Ned in Draynor Village", 8156);
c.getPA().sendFrame126("3) Redbeard Frank in Port Sarim", 8157);
c.getPA().sendFrame126("4) The Odd Old Man in Karamja", 815Cool Man (aka Tustin);
}

if (c.ouad == 3) {
c.getPA().sendFrame126("To start this quest, I must talk to The Guildmaster.", 8147);
c.getPA().sendFrame126("Who is outside of the Varrock Castle", 814Cool Man (aka Tustin);
c.getPA().sendFrame126("I must also have the requirements of:", 8149);
if(c.playerLevel[14] >= 85) {
c.getPA().sendFrame126("@str@85 Mining", 8150);
}else{
c.getPA().sendFrame126("@red@85 Mining", 8150);
}
if(c.playerLevel[13] >= 85) {
c.getPA().sendFrame126("@str@85 Smithing", 8151);
}else{
c.getPA().sendFrame126("@red@85 Smithing", 8151);
}
c.getPA().sendFrame126("", 8152);
c.getPA().sendFrame126("The Guildmaster told me to go speak with the 4 witnesses.", 8153);
c.getPA().sendFrame126("I must go to them in this exact order:", 8154);
c.getPA().sendFrame126("@str@1) Sir Tiffy Cashien in the Falador Park", 8155);
c.getPA().sendFrame126("@str@2) Ned in Draynor Village", 8156);
c.getPA().sendFrame126("3) Redbeard Frank in Port Sarim", 8157);
c.getPA().sendFrame126("4) The Odd Old Man in Karamja", 815Cool Man (aka Tustin);
}

if (c.ouad == 4) {
c.getPA().sendFrame126("To start this quest, I must talk to The Guildmaster.", 8147);
c.getPA().sendFrame126("Who is outside of the Varrock Castle", 814Cool Man (aka Tustin);
c.getPA().sendFrame126("I must also have the requirements of:", 8149);
if(c.playerLevel[14] >= 85) {
c.getPA().sendFrame126("@str@85 Mining", 8150);
}else{
c.getPA().sendFrame126("@red@85 Mining", 8150);
}
if(c.playerLevel[13] >= 85) {
c.getPA().sendFrame126("@str@85 Smithing", 8151);
}else{
c.getPA().sendFrame126("@red@85 Smithing", 8151);
}
c.getPA().sendFrame126("", 8152);
c.getPA().sendFrame126("The Guildmaster told me to go speak with the 4 witnesses.", 8153);
c.getPA().sendFrame126("I must go to them in this exact order:", 8154);
c.getPA().sendFrame126("@str@1) Sir Tiffy Cashien in the Falador Park", 8155);
c.getPA().sendFrame126("@str@2) Ned in Draynor Village", 8156);
c.getPA().sendFrame126("@str@3) Redbeard Frank in Port Sarim", 8157);
c.getPA().sendFrame126("4) The Odd Old Man in Karamja", 815Cool Man (aka Tustin);
}

if (c.ouad == 5) {
c.getPA().sendFrame126("To start this quest, I must talk to The Guildmaster.", 8147);
c.getPA().sendFrame126("Who is outside of the Varrock Castle", 814Cool Man (aka Tustin);
c.getPA().sendFrame126("I must also have the requirements of:", 8149);
if(c.playerLevel[14] >= 85) {
c.getPA().sendFrame126("@str@85 Mining", 8150);
}else{
c.getPA().sendFrame126("@red@85 Mining", 8150);
}
if(c.playerLevel[13] >= 85) {
c.getPA().sendFrame126("@str@85 Smithing", 8151);
}else{
c.getPA().sendFrame126("@red@85 Smithing", 8151);
}
c.getPA().sendFrame126("", 8152);
c.getPA().sendFrame126("The Guildmaster told me to go speak with the 4 witnesses.", 8153);
c.getPA().sendFrame126("I must go to them in this exact order:", 8154);
c.getPA().sendFrame126("@str@1) Sir Tiffy Cashien in the Falador Park", 8155);
c.getPA().sendFrame126("@str@2) Ned in Draynor Village", 8156);
c.getPA().sendFrame126("@str@3) Redbeard Frank in Port Sarim", 8157);
c.getPA().sendFrame126("@str@4) The Odd Old Man in Karamja", 815Cool Man (aka Tustin);
c.getPA().sendFrame126("I have now talked to all of the witnesses.", 8159);
c.getPA().sendFrame126("I should go back to the Guildmaster for further instructions.", 8160);
}

if (c.ouad == 6) {
c.getPA().sendFrame126("To start this quest, I must talk to The Guildmaster.", 8147);
c.getPA().sendFrame126("Who is outside of the Varrock Castle", 814Cool Man (aka Tustin);
c.getPA().sendFrame126("I must also have the requirements of:", 8149);
if(c.playerLevel[14] >= 85) {
c.getPA().sendFrame126("@str@85 Mining", 8150);
}else{
c.getPA().sendFrame126("@red@85 Mining", 8150);
}
if(c.playerLevel[13] >= 85) {
c.getPA().sendFrame126("@str@85 Smithing", 8151);
}else{
c.getPA().sendFrame126("@red@85 Smithing", 8151);
}
c.getPA().sendFrame126("", 8152);
c.getPA().sendFrame126("The Guildmaster told me to go speak with the 4 witnesses.", 8153);
c.getPA().sendFrame126("I must go to them in this exact order:", 8154);
c.getPA().sendFrame126("@str@1) Sir Tiffy Cashien in the Falador Park", 8155);
c.getPA().sendFrame126("@str@2) Ned in Draynor Village", 8156);
c.getPA().sendFrame126("@str@3) Redbeard Frank in Port Sarim", 8157);
c.getPA().sendFrame126("@str@4) The Odd Old Man in Karamja", 815Cool Man (aka Tustin);
c.getPA().sendFrame126("@str@I have now talked to all of the witnesses.", 8159);
c.getPA().sendFrame126("@str@I should go back to the Guildmaster for further instructions.", 8160);
c.getPA().sendFrame126("The Guildmaster said I should go back to Draynor Village", 8161);
c.getPA().sendFrame126("To talk to Ned and he shall give me further instructions", 8162);
}

if (c.ouad == 7) {
c.getPA().sendFrame126("To start this quest, I must talk to The Guildmaster.", 8147);
c.getPA().sendFrame126("Who is outside of the Varrock Castle", 814Cool Man (aka Tustin);
c.getPA().sendFrame126("I must also have the requirements of:", 8149);
if(c.playerLevel[14] >= 85) {
c.getPA().sendFrame126("@str@85 Mining", 8150);
}else{
c.getPA().sendFrame126("@red@85 Mining", 8150);
}
if(c.playerLevel[13] >= 85) {
c.getPA().sendFrame126("@str@85 Smithing", 8151);
}else{
c.getPA().sendFrame126("@red@85 Smithing", 8151);
}
c.getPA().sendFrame126("", 8152);
c.getPA().sendFrame126("The Guildmaster told me to go speak with the 4 witnesses.", 8153);
c.getPA().sendFrame126("I must go to them in this exact order:", 8154);
c.getPA().sendFrame126("@str@1) Sir Tiffy Cashien in the Falador Park", 8155);
c.getPA().sendFrame126("@str@2) Ned in Draynor Village", 8156);
c.getPA().sendFrame126("@str@3) Redbeard Frank in Port Sarim", 8157);
c.getPA().sendFrame126("@str@4) The Odd Old Man in Karamja", 815Cool Man (aka Tustin);
c.getPA().sendFrame126("@str@I have now talked to all of the witnesses.", 8159);
c.getPA().sendFrame126("@str@I should go back to the Guildmaster for further instructions.", 8160);
c.getPA().sendFrame126("@str@The Guildmaster said I should go back to Draynor Village", 8161);
c.getPA().sendFrame126("@str@To talk to Ned and he shall give me further instructions", 8162);
c.getPA().sendFrame126("I went and talked to Ned and he said to find the 3 map pieces.", 8163);
c.getPA().sendFrame126("I must go find them in this exact order:", 8164);
c.getPA().sendFrame126("Map Piece 1: Oziach who is located in Port Sarim jail has it.", 8165);
c.getPA().sendFrame126("Map Piece 2: Oracle on the top of Ice Mountain has it.", 8166);
c.getPA().sendFrame126("Map Piece 3: Aubury in Varrock has it.", 8167);
}

if (c.ouad == Cool Man (aka Tustin) {
c.getPA().sendFrame126("To start this quest, I must talk to The Guildmaster.", 8147);
c.getPA().sendFrame126("Who is outside of the Varrock Castle", 814Cool Man (aka Tustin);
c.getPA().sendFrame126("I must also have the requirements of:", 8149);
if(c.playerLevel[14] >= 85) {
c.getPA().sendFrame126("@str@85 Mining", 8150);
}else{
c.getPA().sendFrame126("@red@85 Mining", 8150);
}
if(c.playerLevel[13] >= 85) {
c.getPA().sendFrame126("@str@85 Smithing", 8151);
}else{
c.getPA().sendFrame126("@red@85 Smithing", 8151);
}
c.getPA().sendFrame126("", 8152);
c.getPA().sendFrame126("The Guildmaster told me to go speak with the 4 witnesses.", 8153);
c.getPA().sendFrame126("I must go to them in this exact order:", 8154);
c.getPA().sendFrame126("@str@1) Sir Tiffy Cashien in the Falador Park", 8155);
c.getPA().sendFrame126("@str@2) Ned in Draynor Village", 8156);
c.getPA().sendFrame126("@str@3) Redbeard Frank in Port Sarim", 8157);
c.getPA().sendFrame126("@str@4) The Odd Old Man in Karamja", 815Cool Man (aka Tustin);
c.getPA().sendFrame126("@str@I have now talked to all of the witnesses.", 8159);
c.getPA().sendFrame126("@str@I should go back to the Guildmaster for further instructions.", 8160);
c.getPA().sendFrame126("@str@The Guildmaster said I should go back to Draynor Village", 8161);
c.getPA().sendFrame126("@str@To talk to Ned and he shall give me further instructions", 8162);
c.getPA().sendFrame126("I went and talked to Ned and he said to find the 3 map pieces.", 8163);
c.getPA().sendFrame126("I must go find them in this exact order:", 8164);
c.getPA().sendFrame126("Map Piece 1: Oziach who is located in Port Sarim jail has it.", 8165);
c.getPA().sendFrame126("I talked to Oziach and he wants:", 8166);
if (c.getItems().playerHasItem(995, 500000)) {
c.getPA().sendFrame126("@str@500K Worth Of GP", 8166);
}else{
c.getPA().sendFrame126("@red@500K Worth Of GP", 8166);
}
c.getPA().sendFrame126("Map Piece 2: Oracle on the top of Ice Mountain has it.", 8167);
c.getPA().sendFrame126("Map Piece 3: Aubury in Varrock has it.", 816Cool Man (aka Tustin);
}

if (c.ouad == 9) {
c.getPA().sendFrame126("To start this quest, I must talk to The Guildmaster.", 8147);
c.getPA().sendFrame126("Who is outside of the Varrock Castle", 814Cool Man (aka Tustin);
c.getPA().sendFrame126("I must also have the requirements of:", 8149);
if(c.playerLevel[14] >= 85) {
c.getPA().sendFrame126("@str@85 Mining", 8150);
}else{
c.getPA().sendFrame126("@red@85 Mining", 8150);
}
if(c.playerLevel[13] >= 85) {
c.getPA().sendFrame126("@str@85 Smithing", 8151);
}else{
c.getPA().sendFrame126("@red@85 Smithing", 8151);
}
c.getPA().sendFrame126("", 8152);
c.getPA().sendFrame126("The Guildmaster told me to go speak with the 4 witnesses.", 8153);
c.getPA().sendFrame126("I must go to them in this exact order:", 8154);
c.getPA().sendFrame126("@str@1) Sir Tiffy Cashien in the Falador Park", 8155);
c.getPA().sendFrame126("@str@2) Ned in Draynor Village", 8156);
c.getPA().sendFrame126("@str@3) Redbeard Frank in Port Sarim", 8157);
c.getPA().sendFrame126("@str@4) The Odd Old Man in Karamja", 815Cool Man (aka Tustin);
c.getPA().sendFrame126("@str@I have now talked to all of the witnesses.", 8159);
c.getPA().sendFrame126("@str@I should go back to the Guildmaster for further instructions.", 8160);
c.getPA().sendFrame126("@str@The Guildmaster said I should go back to Draynor Village", 8161);
c.getPA().sendFrame126("@str@To talk to Ned and he shall give me further instructions", 8162);
c.getPA().sendFrame126("I went and talked to Ned and he said to find the 3 map pieces.", 8163);
c.getPA().sendFrame126("I must go find them in this exact order:", 8164);
c.getPA().sendFrame126("I got the 1st map piece off Oziach.", 8166);
c.getPA().sendFrame126("Map Piece 2: Oracle on the top of Ice Mountain has it.", 8166);
c.getPA().sendFrame126("Map Piece 3: Aubury in Varrock has it.", 8167);
}

if (c.ouad == 10) {
c.getPA().sendFrame126("To start this quest, I must talk to The Guildmaster.", 8147);
c.getPA().sendFrame126("Who is outside of the Varrock Castle", 814Cool Man (aka Tustin);
c.getPA().sendFrame126("I must also have the requirements of:", 8149);
if(c.playerLevel[14] >= 85) {
c.getPA().sendFrame126("@str@85 Mining", 8150);
}else{
c.getPA().sendFrame126("@red@85 Mining", 8150);
}
if(c.playerLevel[13] >= 85) {
c.getPA().sendFrame126("@str@85 Smithing", 8151);
}else{
c.getPA().sendFrame126("@red@85 Smithing", 8151);
}
c.getPA().sendFrame126("", 8152);
c.getPA().sendFrame126("The Guildmaster told me to go speak with the 4 witnesses.", 8153);
c.getPA().sendFrame126("I must go to them in this exact order:", 8154);
c.getPA().sendFrame126("@str@1) Sir Tiffy Cashien in the Falador Park", 8155);
c.getPA().sendFrame126("@str@2) Ned in Draynor Village", 8156);
c.getPA().sendFrame126("@str@3) Redbeard Frank in Port Sarim", 8157);
c.getPA().sendFrame126("@str@4) The Odd Old Man in Karamja", 815Cool Man (aka Tustin);
c.getPA().sendFrame126("@str@I have now talked to all of the witnesses.", 8159);
c.getPA().sendFrame126("@str@I should go back to the Guildmaster for further instructions.", 8160);
c.getPA().sendFrame126("@str@The Guildmaster said I should go back to Draynor Village", 8161);
c.getPA().sendFrame126("@str@To talk to Ned and he shall give me further instructions", 8162);
c.getPA().sendFrame126("I went and talked to Ned and he said to find the 3 map pieces.", 8163);
c.getPA().sendFrame126("I must go find them in this exact order:", 8164);
c.getPA().sendFrame126("I got the 1st map piece off Oziach.", 8165);
c.getPA().sendFrame126("Map Piece 2: Oracle on the top of Ice Mountain has it.", 8166);
c.getPA().sendFrame126("I talked to Oracle she wants:", 8167);
if (c.getItems().playerHasItem(556, 50)) {
c.getPA().sendFrame126("@str@50 Air Runes", 816Cool Man (aka Tustin);
}else{
c.getPA().sendFrame126("@red@50 Air Runes", 816Cool Man (aka Tustin);
}
if (c.getItems().playerHasItem(558, 50)) {
c.getPA().sendFrame126("@str@50 Mind Runes", 8169);
}else{
c.getPA().sendFrame126("@red@50 Mind Runes", 8169);
}
if (c.getItems().playerHasItem(559, 50)) {
c.getPA().sendFrame126("@str@50 Body Runes", 8170);
}else{
c.getPA().sendFrame126("@red@50 Body Runes", 8170);
}
if (c.getItems().playerHasItem(562, 50)) {
c.getPA().sendFrame126("@str@50 Chaos Runes", 8171);
}else{
c.getPA().sendFrame126("@red@50 Chaos Runes", 8171);
}
c.getPA().sendFrame126("Map Piece 3: Aubury in Varrock has it.", 8172);
}

if (c.ouad == 11) {
c.getPA().sendFrame126("To start this quest, I must talk to The Guildmaster.", 8147);
c.getPA().sendFrame126("Who is outside of the Varrock Castle", 814Cool Man (aka Tustin);
c.getPA().sendFrame126("I must also have the requirements of:", 8149);
if(c.playerLevel[14] >= 85) {
c.getPA().sendFrame126("@str@85 Mining", 8150);
}else{
c.getPA().sendFrame126("@red@85 Mining", 8150);
}
if(c.playerLevel[13] >= 85) {
c.getPA().sendFrame126("@str@85 Smithing", 8151);
}else{
c.getPA().sendFrame126("@red@85 Smithing", 8151);
}
c.getPA().sendFrame126("", 8152);
c.getPA().sendFrame126("The Guildmaster told me to go speak with the 4 witnesses.", 8153);
c.getPA().sendFrame126("I must go to them in this exact order:", 8154);
c.getPA().sendFrame126("@str@1) Sir Tiffy Cashien in the Falador Park", 8155);
c.getPA().sendFrame126("@str@2) Ned in Draynor Village", 8156);
c.getPA().sendFrame126("@str@3) Redbeard Frank in Port Sarim", 8157);
c.getPA().sendFrame126("@str@4) The Odd Old Man in Karamja", 815Cool Man (aka Tustin);
c.getPA().sendFrame126("@str@I have now talked to all of the witnesses.", 8159);
c.getPA().sendFrame126("@str@I should go back to the Guildmaster for further instructions.", 8160);
c.getPA().sendFrame126("@str@The Guildmaster said I should go back to Draynor Village", 8161);
c.getPA().sendFrame126("@str@To talk to Ned and he shall give me further instructions", 8162);
c.getPA().sendFrame126("I went and talked to Ned and he said to find the 3 map pieces.", 8163);
c.getPA().sendFrame126("I must go find them in this exact order:", 8164);
c.getPA().sendFrame126("I got the 1st map piece off Oziach.", 8165);
c.getPA().sendFrame126("I got the second map piece off Oracle.", 8166);
c.getPA().sendFrame126("Map Piece 3: Aubury in Varrock has it.", 8167);
}

if (c.ouad == 12) {
c.getPA().sendFrame126("To start this quest, I must talk to The Guildmaster.", 8147);
c.getPA().sendFrame126("Who is outside of the Varrock Castle", 814Cool Man (aka Tustin);
c.getPA().sendFrame126("I must also have the requirements of:", 8149);
if(c.playerLevel[14] >= 85) {
c.getPA().sendFrame126("@str@85 Mining", 8150);
}else{
c.getPA().sendFrame126("@red@85 Mining", 8150);
}
if(c.playerLevel[13] >= 85) {
c.getPA().sendFrame126("@str@85 Smithing", 8151);
}else{
c.getPA().sendFrame126("@red@85 Smithing", 8151);
}
c.getPA().sendFrame126("", 8152);
c.getPA().sendFrame126("The Guildmaster told me to go speak with the 4 witnesses.", 8153);
c.getPA().sendFrame126("I must go to them in this exact order:", 8154);
c.getPA().sendFrame126("@str@1) Sir Tiffy Cashien in the Falador Park", 8155);
c.getPA().sendFrame126("@str@2) Ned in Draynor Village", 8156);
c.getPA().sendFrame126("@str@3) Redbeard Frank in Port Sarim", 8157);
c.getPA().sendFrame126("@str@4) The Odd Old Man in Karamja", 815Cool Man (aka Tustin);
c.getPA().sendFrame126("@str@I have now talked to all of the witnesses.", 8159);
c.getPA().sendFrame126("@str@I should go back to the Guildmaster for further instructions.", 8160);
c.getPA().sendFrame126("@str@The Guildmaster said I should go back to Draynor Village", 8161);
c.getPA().sendFrame126("@str@To talk to Ned and he shall give me further instructions", 8162);
c.getPA().sendFrame126("I went and talked to Ned and he said to find the 3 map pieces.", 8163);
c.getPA().sendFrame126("I must go find them in this exact order:", 8164);
c.getPA().sendFrame126("I got the 1st map piece off Oziach.", 8165);
c.getPA().sendFrame126("I got the second map piece off Oracle.", 8166);
c.getPA().sendFrame126("Map Piece 3: Aubury in Varrock has it.", 8167);
c.getPA().sendFrame126("I talked to Aubury he wants:", 816Cool Man (aka Tustin);
if (c.getItems().playerHasItem(452, 100)) {
c.getPA().sendFrame126("@str@100 Rune Ores (Noted)", 8169);
}else{
c.getPA().sendFrame126("@red@100 Rune Ores (Noted)", 8169);
}
if (c.getItems().playerHasItem(2364, 100)) {
c.getPA().sendFrame126("@str@100 Rune Bars (Noted)", 8170);
}else{
c.getPA().sendFrame126("@red@100 Rune Bars (Noted)", 8170);
}
}

if (c.ouad == 13) {
c.getPA().sendFrame126("To start this quest, I must talk to The Guildmaster.", 8147);
c.getPA().sendFrame126("Who is outside of the Varrock Castle", 814Cool Man (aka Tustin);
c.getPA().sendFrame126("I must also have the requirements of:", 8149);
if(c.playerLevel[14] >= 85) {
c.getPA().sendFrame126("@str@85 Mining", 8150);
}else{
c.getPA().sendFrame126("@red@85 Mining", 8150);
}
if(c.playerLevel[13] >= 85) {
c.getPA().sendFrame126("@str@85 Smithing", 8151);
}else{
c.getPA().sendFrame126("@red@85 Smithing", 8151);
}
c.getPA().sendFrame126("", 8152);
c.getPA().sendFrame126("The Guildmaster told me to go speak with the 4 witnesses.", 8153);
c.getPA().sendFrame126("I must go to them in this exact order:", 8154);
c.getPA().sendFrame126("@str@1) Sir Tiffy Cashien in the Falador Park", 8155);
c.getPA().sendFrame126("@str@2) Ned in Draynor Village", 8156);
c.getPA().sendFrame126("@str@3) Redbeard Frank in Port Sarim", 8157);
c.getPA().sendFrame126("@str@4) The Odd Old Man in Karamja", 815Cool Man (aka Tustin);
c.getPA().sendFrame126("@str@I have now talked to all of the witnesses.", 8159);
c.getPA().sendFrame126("@str@I should go back to the Guildmaster for further instructions.", 8160);
c.getPA().sendFrame126("@str@The Guildmaster said I should go back to Draynor Village", 8161);
c.getPA().sendFrame126("@str@To talk to Ned and he shall give me further instructions", 8162);
c.getPA().sendFrame126("I went and talked to Ned and he said to find the 3 map pieces.", 8163);
c.getPA().sendFrame126("I must go find them in this exact order:", 8164);
c.getPA().sendFrame126("I got the 1st map piece off Oziach.", 8165);
c.getPA().sendFrame126("I got the second map piece off Oracle.", 8166);
c.getPA().sendFrame126("I got the third map piece off Aubury.", 8167);
c.getPA().sendFrame126("I should now go back to Ned with the pieces.", 816Cool Man (aka Tustin);
}

if (c.ouad == 14) {
c.getPA().sendFrame126("To start this quest, I must talk to The Guildmaster.", 8147);
c.getPA().sendFrame126("Who is outside of the Varrock Castle", 814Cool Man (aka Tustin);
c.getPA().sendFrame126("I must also have the requirements of:", 8149);
if(c.playerLevel[14] >= 85) {
c.getPA().sendFrame126("@str@85 Mining", 8150);
}else{
c.getPA().sendFrame126("@red@85 Mining", 8150);
}
if(c.playerLevel[13] >= 85) {
c.getPA().sendFrame126("@str@85 Smithing", 8151);
}else{
c.getPA().sendFrame126("@red@85 Smithing", 8151);
}
c.getPA().sendFrame126("", 8152);
c.getPA().sendFrame126("The Guildmaster told me to go speak with the 4 witnesses.", 8153);
c.getPA().sendFrame126("I must go to them in this exact order:", 8154);
c.getPA().sendFrame126("@str@1) Sir Tiffy Cashien in the Falador Park", 8155);
c.getPA().sendFrame126("@str@2) Ned in Draynor Village", 8156);
c.getPA().sendFrame126("@str@3) Redbeard Frank in Port Sarim", 8157);
c.getPA().sendFrame126("@str@4) The Odd Old Man in Karamja", 815Cool Man (aka Tustin);
c.getPA().sendFrame126("@str@I have now talked to all of the witnesses.", 8159);
c.getPA().sendFrame126("@str@I should go back to the Guildmaster for further instructions.", 8160);
c.getPA().sendFrame126("@str@The Guildmaster said I should go back to Draynor Village", 8161);
c.getPA().sendFrame126("@str@To talk to Ned and he shall give me further instructions", 8162);
c.getPA().sendFrame126("@str@I went and talked to Ned and he said to find the 3 map pieces.", 8163);
c.getPA().sendFrame126("@str@I must go find them in this exact order:", 8164);
c.getPA().sendFrame126("@str@I got the 1st map piece off Oziach.", 8165);
c.getPA().sendFrame126("@str@I got the second map piece off Oracle.", 8166);
c.getPA().sendFrame126("@str@I got the third map piece off Aubury.", 8167);
c.getPA().sendFrame126("@str@I should now go back to Ned with the pieces.", 816Cool Man (aka Tustin);
c.getPA().sendFrame126("I went back to Ned he said to go to Sedridor when I am ready.", 8169);
c.getPA().sendFrame126("I should go to Sedridor in Edgeville when I am ready to fight!", 8170);
c.getPA().sendFrame126("Once I defeat the Dragon I should take the Crimson Charm", 8171);
c.getPA().sendFrame126("it drops back to The Guildmaster for my reward.", 8172);
}

if (c.ouad == 15) {
c.getPA().sendFrame126("To start this quest, I must talk to The Guildmaster.", 8147);
c.getPA().sendFrame126("Who is outside of the Varrock Castle", 814Cool Man (aka Tustin);
c.getPA().sendFrame126("I must also have the requirements of:", 8149);
if(c.playerLevel[14] >= 85) {
c.getPA().sendFrame126("@str@85 Mining", 8150);
}else{
c.getPA().sendFrame126("@red@85 Mining", 8150);
}
if(c.playerLevel[13] >= 85) {
c.getPA().sendFrame126("@str@85 Smithing", 8151);
}else{
c.getPA().sendFrame126("@red@85 Smithing", 8151);
}
c.getPA().sendFrame126("", 8152);
c.getPA().sendFrame126("The Guildmaster told me to go speak with the 4 witnesses.", 8153);
c.getPA().sendFrame126("I must go to them in this exact order:", 8154);
c.getPA().sendFrame126("@str@1) Sir Tiffy Cashien in the Falador Park", 8155);
c.getPA().sendFrame126("@str@2) Ned in Draynor Village", 8156);
c.getPA().sendFrame126("@str@3) Redbeard Frank in Port Sarim", 8157);
c.getPA().sendFrame126("@str@4) The Odd Old Man in Karamja", 815Cool Man (aka Tustin);
c.getPA().sendFrame126("@str@I have now talked to all of the witnesses.", 8159);
c.getPA().sendFrame126("@str@I should go back to the Guildmaster for further instructions.", 8160);
c.getPA().sendFrame126("@str@The Guildmaster said I should go back to Draynor Village", 8161);
c.getPA().sendFrame126("@str@To talk to Ned and he shall give me further instructions", 8162);
c.getPA().sendFrame126("@str@I went and talked to Ned and he said to find the 3 map pieces.", 8163);
c.getPA().sendFrame126("@str@I must go find them in this exact order:", 8164);
c.getPA().sendFrame126("@str@I got the 1st map piece off Oziach.", 8165);
c.getPA().sendFrame126("@str@I got the second map piece off Oracle.", 8166);
c.getPA().sendFrame126("@str@I got the third map piece off Aubury.", 8167);
c.getPA().sendFrame126("@str@I should now go back to Ned with the pieces.", 816Cool Man (aka Tustin);
c.getPA().sendFrame126("@str@I went back to Ned he said to go to Sedridor when I am ready.", 8169);
c.getPA().sendFrame126("@str@I should go to Sedridor in Edgeville when I am ready to fight!", 8170);
c.getPA().sendFrame126("@str@Once I defeat the Dragon I should take the Crimson Charm", 8171);
c.getPA().sendFrame126("@str@it drops back to The Guildmaster for my reward.", 8172);
c.getPA().sendFrame126("I went back to The Guildmaster and got an amazing reward of:", 8173);
c.getPA().sendFrame126("@red@2M Strength Experience", 8174);
c.getPA().sendFrame126("@red@2M Attack Experience", 8175);
c.getPA().sendFrame126("@red@10M GP", 8176);
c.getPA().sendFrame126("@gre@Congratulations, You have completed:", 8177);
c.getPA().sendFrame126("@gre@Once Upon A Dragon!", 817Cool Man (aka Tustin);
}
c.getPA().showInterface(8134);
}
}


Now, Add this into the player class:

    public int ouad;


And then add these into PlayerSave in the correct locations:
    					} else if (token.equals("once-upon-a-dragon")) {
p.ouad = Integer.parseInt(token2);


    			characterfile.write("once-upon-a-dragon = ", 0, 21);
characterfile.write(Integer.toString(p.ouad), 0, Integer.toString(p.ouad).length());
characterfile.newLine();


Now in ActionHandler add these under firstclicknpc: (If you get duplicate errors you must fix it)

                                    //Once Upon A Dragon
case 198:
if (c.ouad == 0) {
c.getDH().sendDialogues(200, npcType);
}else if (c.ouad == 5) {
c.getDH().sendDialogues(213, npcType);
}else if (c.ouad == 15) {
c.getDH().sendDialogues(246, npcType);
}else if (c.ouad == 14 && c.getItems().playerHasItem(18019, 1)) {
c.getDH().sendDialogues(244, npcType);
c.getPA().addSkillXP(2000000,0);
c.getPA().addSkillXP(2000000,1);
c.getItems().addItem(995, 10000000);
c.getItems().deleteItem(18019, 1);
c.ouad = 15;
}else{
c.getDH().sendDialogues(245, npcType);
c.ouad = 13;
break;
}

case 2290:
if (c.ouad == 1) {
c.getDH().sendDialogues(211, npcType);
c.ouad = 2;
}else{
c.sendMessage("This NPC has nothing to say.");
break;
}

case 743:
if (c.ouad == 2) {
c.getDH().sendDialogues(205, npcType);
c.ouad = 3;
}else if (c.ouad > 12) {
c.sendMessage("This NPC has nothing to say.");
}else if (c.ouad == 6) {
c.getDH().sendDialogues(219, npcType);
c.ouad = 7;
}else if (c.ouad == 12 && c.getItems().playerHasItem(1535, 1) && c.getItems().playerHasItem(1536, 1) && c.getItems().playerHasItem(1537, 1)) {
c.getDH().sendDialogues(237, npcType);
c.getItems().removeItem(1535, 1);
c.getItems().removeItem(1536, 1);
c.getItems().removeItem(1537, 1);
c.ouad = 13;
}else{
c.getDH().sendDialogues(239, npcType);
break;
}

case 375:
if (c.ouad == 3) {
c.getDH().sendDialogues(207, npcType);
c.ouad = 4;
}else{
c.sendMessage("This NPC has nothing to say.");
break;
}

case 3670:
if (c.ouad == 4) {
c.getDH().sendDialogues(209, npcType);
c.ouad = 5;
}else{
c.sendMessage("This NPC has nothing to say.");
break;
}

case 747:
if (c.ouad == 7) {
c.getDH().sendDialogues(222, npcType);
c.ouad = 8;
}else if (c.ouad > Cool Man (aka Tustin) {
c.sendMessage("This NPC has nothing to say.");
}else if (c.ouad == 8 && c.getItems().playerHasItem(995, 500000)) {
c.getDH().sendDialogues(225, npcType);
c.getItems().addItem(1535, 1);
c.ouad = 9;
}else{
c.getDH().sendDialogues(226, npcType);
break;
}

case 746:
if (c.ouad == 9) {
c.getDH().sendDialogues(227, npcType);
c.ouad = 10;
}else if (c.ouad > 10) {
c.sendMessage("This NPC has nothing to say.");
}else if (c.ouad == 10 && c.getItems().playerHasItem(556, 50) && c.getItems().playerHasItem(558, 50) && c.getItems().playerHasItem(559, 50) && c.getItems().playerHasItem(562, 50)) {
c.getDH().sendDialogues(230, npcType);
c.getItems().addItem(1536, 1);
c.ouad = 11;
}else{
c.getDH().sendDialogues(231, npcType);
break;
}

case 553:
if (c.ouad == 11) {
c.getDH().sendDialogues(232, npcType);
c.ouad = 12;
}else if (c.ouad > 11) {
c.sendMessage("This NPC has nothing to say.");
}else if (c.ouad == 12 && c.getItems().playerHasItem(452, 100) && c.getItems().playerHasItem(2364, 50)) {
c.getDH().sendDialogues(235, npcType);
c.getItems().addItem(1537, 1);
c.ouad = 13;
}else{
c.getDH().sendDialogues(236, npcType);
break;
}

case 300:
if (c.ouad == 13) {
c.getDH().sendDialogues(240, npcType);
}else{
c.sendMessage("This NPC has nothing to say.");
break;
}
//Once Upon A Dragon End


Now in DialogueHandler add these: (If you get duplicate errors you must fix it)

    		//Once Upon A Dragon
case 200:
sendNpcChat2("Why, Hello there, "+ Misc.optimizeText(c.playerName) +"", "What can I do for you?", c.talkingNpc, "Guildmaster");
c.nextChat = 201;
break;

case 201:
sendOption2("I seek a quest", "Nothing");
c.dialogueAction = 201;
break;

case 202:
sendNpcChat4("Why, I am glad you asked, We have", "a Dragon on the loose that is flying around", "Into different cities to hide then comes back", "to our city and is destroying our property and civilians!", c.talkingNpc, "Guildmaster");
c.nextChat = 203;
break;

case 203:
sendNpcChat4("We have a couple of witnesses who saw", "it flying somewhere, Please go and ask the 4 witnesses,", "on where they saw the dragon and which way they were headed.", "Then come back and report to me!", c.talkingNpc, "Guildmaster");
c.nextChat = 0;
break;

case 204:
sendNpcChat4("Well, I have a quest but you don't have the", "proper requirements come back when you have", "85 Mining and Smithing and I will give you one", "But beware it will be a hard quest!", c.talkingNpc, "Guildmaster");
c.nextChat = 0;
break;

case 205:
sendStatement("You ask Ned if and where he saw the Dragon Flying.");
c.nextChat = 206;
break;

case 206:
sendNpcChat2("Oh how can I forget, my friend?", "I saw him in Port Sarim where I parked my boat!", c.talkingNpc, "Ned");
c.nextChat = 0;
break;

case 207:
sendStatement("You ask Redbeard Frank if and where he saw the Dragon Flying.");
c.nextChat = 208;
break;

case 208:
sendNpcChat2("Arrghh, Ya me heartie, I saw the beast.", "Itsh was right above ush here, Ned alsho saw it!", c.talkingNpc, "RedBeard Frank");
c.nextChat = 0;
break;

case 209:
sendStatement("You ask The Odd Old Man if and where he saw the Dragon Flying.");
c.nextChat = 206;
break;

case 210:
sendNpcChat2("Yes, My friend I saw it coming in my direction.", "It looked like it was coming from Port Sarim!", c.talkingNpc, "Odd Old Man");
c.nextChat = 0;
break;

case 211:
sendStatement("You ask Sir Tiffy Cashien if and where he saw the Dragon Flying.");
c.nextChat = 212;
break;

case 212:
sendNpcChat2("But of course I saw it, It was going in the direction which", "leads to Port Sarim and then probably to Karamja.", c.talkingNpc, "Sir Tiffy Cashien");
c.nextChat = 0;
break;

case 213:
sendNpcChat2("Hey, "+ Misc.optimizeText(c.playerName) +" Did you go and ask", "the witnesses like I asked so?", c.talkingNpc, "Guildmaster");
c.nextChat = 214;
break;

case 214:
sendOption2("Yes", "No");
c.dialogueAction = 214;
break;

case 215:
sendStatement("You tell the Guildmaster about what the witnesses said.");
c.nextChat = 216;
break;

case 216:
sendNpcChat4("Aha, Just as we suspected, We think the dragon", "is camping somewhere in the underground of", "Crandor, and this evidence just proves that our facts", "are near 100 percent, You must go to Ned again.", c.talkingNpc, "Guildmaster");
c.nextChat = 217;
break;

case 217:
sendNpcChat1("He will give further instructions.", c.talkingNpc, "Guildmaster");
c.nextChat = 0;
break;

case 218:
sendNpcChat1("Well go then! What are you waiting for?", c.talkingNpc, "Guildmaster");
c.nextChat = 0;
break;

case 219:
sendNpcChat4("Ahh finally "+ Misc.optimizeText(c.playerName) +", You are here", "The Guildmaster told me you where coming", "Now, If you do not know, I am a sailor", "I can tell you on how to get to Crandor.", c.talkingNpc, "Ned");
c.nextChat = 220;
break;

case 220:
sendNpcChat4("But the problem is I need a map, and there has only", "ever been one map for Crandor and I need you", "to retrieve the map pieces so I can put them together", "to pin point the co-ordinates of Crandor.", c.talkingNpc, "Ned");
c.nextChat = 221;
break;

case 221:
sendNpcChat4("Then our magician Sedrior can teleport you there,", "so you can once and for all defeat the Dragon!", "I have added the locations of the pieces to your quest tab.", "Go to them all and bring the three map pieces back.", c.talkingNpc, "Ned");
c.nextChat = 0;
break;

case 222:
sendNpcChat1("Hello, What do you want?", c.talkingNpc, "Oziach");
c.nextChat = 223;
break;

case 223:
sendStatement("You tell Oziach about the first map piece.");
c.nextChat = 224;
break;

case 224:
sendNpcChat3("Yes, I have it!", "But I shall only give it to you for 500K GP", "Go and get me 500K and I shall give you it!", c.talkingNpc, "Oziach");
c.nextChat = 0;
break;

case 225:
sendNpcChat2("I see you brought the 500K.", "Here is the map piece.", c.talkingNpc, "Oziach");
c.nextChat = 0;
break;

case 226:
sendNpcChat2("You didn't bring the 500K", "Get it or no map piece!", c.talkingNpc, "Oziach");
c.nextChat = 0;
break;

case 227:
sendNpcChat2("Hello, "+ Misc.optimizeText(c.playerName) +"", "What do you want?", c.talkingNpc, "Oracle");
c.nextChat = 228;
break;

case 228:
sendStatement("You tell Oracle about the second map piece");
c.nextChat = 229;
break;

case 229:
sendNpcChat4("I have the second map piece but I shall only", "give it if you bring me 50 each of the", "following runes, Air, Mind, Body, Chaos", "Bring them and I shall happily hand it over.", c.talkingNpc, "Oracle");
c.nextChat = 0;
break;

case 230:
sendNpcChat2("I see you have the items I asked for.", "Thanks and here is the 2nd Map Piece", c.talkingNpc, "Oracle");
c.nextChat = 0;
break;

case 231:
sendNpcChat2("You do not have the items I asked for.", "Get them or no map piece!", c.talkingNpc, "Oracle");
c.nextChat = 0;
break;

case 232:
sendNpcChat2("Why hello, "+ Misc.optimizeText(c.playerName) +"", "What can I do for you?", c.talkingNpc, "Aubury");
c.nextChat = 233;
break;

case 233:
sendStatement("You tell Aubury about the third map piece");
c.nextChat = 234;
break;

case 234:
sendNpcChat3("Why yes, I have the third map piece!", "But I shall only give it to you if you bring", "me, 100 Rune Ores and 100 Rune Bars.", c.talkingNpc, "Aubury");
c.nextChat = 0;
break;

case 235:
sendNpcChat3("Hello, "+ Misc.optimizeText(c.playerName) +", I see you have brought the items", "I asked for, Thanks a bunch!", "Here is the third map piece!", c.talkingNpc, "Aubury");
c.nextChat = 0;
break;

case 236:
sendNpcChat3("Hello, "+ Misc.optimizeText(c.playerName) +", You didn't bring the items", "I asked for please go bring them.", "Then I shall give you the 3rd map piece.", c.talkingNpc, "Aubury");
c.nextChat = 0;
break;

case 237:
sendNpcChat4("Hello, "+ Misc.optimizeText(c.playerName) +"", "I see you have the map pieces.", "A very good job you have done!", "Now I have pinpointed the co-ordinates and sent them to Sedridor.", c.talkingNpc, "Ned");
c.nextChat = 238;
break;

case 238:
sendNpcChat4("Go and gear up and get ready for your big", "battle, another thanks for helping us!", "Go to Sedridor who is in Edgeville when you are ready to fight the dragon.", "Good Luck, "+ Misc.optimizeText(c.playerName)+"!", c.talkingNpc, "Ned");
c.nextChat = 0;
break;

case 239:
sendNpcChat2("You haven't gotten the map pieces yet!", "Go and get them!", c.talkingNpc, "Ned");
c.nextChat = 0;
break;

case 240:
sendNpcChat1("Hello "+ Misc.optimizeText(c.playerName)+", Are you ready to fight the dragon?", c.talkingNpc, "Sedridor");
c.nextChat = 241;
break;

case 241:
sendOption2("Yes, Teleport Me", "No, Not just yet");
c.dialogueAction = 241;
break;

case 242:
sendStatement("Beware, The Dragon has 500 HP and has a max hit of 40!");
c.nextChat = 243;
break;

case 243:
sendStatement("When I kill the Dragon, I should pick up the charm!");
c.nextChat = 0;
break;

case 244:
sendNpcChat4("You killed the Dragon!", "Thanks a lot, I appreciate it so much!", "I shall give you a reward of 2M Experience in", "Strength and Attack and 10M GP, Again Thank You!", c.talkingNpc, "The Guildmaster");
c.nextChat = 0;
break;

case 245:
sendNpcChat2("You have not killed the Dragon!", "Please go and kill it!", c.talkingNpc, "The Guildmaster");
c.nextChat = 0;
break;

case 246:
sendNpcChat2("Hey, "+ Misc.optimizeText(c.playerName)+", Thanks again for killing the Dragon!", "Me and many other people appreciate your hard and noble work!", c.talkingNpc, "The Guildmaster");
c.nextChat = 0;
break;


Now in Clickingbuttons under case 9157 add:

    			if (c.dialogueAction == 201 && c.ouad == 0 && c.playerLevel[14] >= 85 && c.playerLevel[13] >= 85) {
c.getDH().sendDialogues(202, 19Cool Man (aka Tustin);
c.ouad = 1;
return;
}else if (c.dialogueAction == 201 && c.ouad == 0 && c.playerLevel[14] < 85 && c.playerLevel[13] < 85) {
c.getDH().sendDialogues(204, 19Cool Man (aka Tustin);
return;
}

if (c.dialogueAction == 214) {
c.getDH().sendDialogues(215, 19Cool Man (aka Tustin);
c.ouad = 6;
return;
}

if (c.dialogueAction == 241) {
c.getPA().spellTeleport(2849, 9637, 0);
c.getDH().sendDialogues(242, 4673);
return;
}


Now under case 9158 add:

    		                if (c.dialogueAction == 214) {
c.getDH().sendDialogues(218, 19Cool Man (aka Tustin);
return;
}


Now create a new case it may be different for you depending on your ID in playerassistant:

    	case 62162:
OnceUponADragon.showQuest(c);
break;


In PlayerAssistant add these in your quest tab texts and change the id from 16034 to whichever you want.

    		if(c.ouad == 0) {
c.getPA().sendFrame126("@red@Once Upon A Dragon", 16034);
} else if(c.ouad > 0 && c.ouad < 15) {
c.getPA().sendFrame126("@yel@Once Upon A Dragon", 16034);
} else if(c.ouad == 15) {
c.getPA().sendFrame126("@gre@Once Upon A Dragon", 16034);
}



spawn-config for the quest:

    //Once Upon A Dragon
spawn = 300 3216 3424 0 0 0 0 0
spawn = 4674 2854 9637 0 0 0 0 0
spawn = 198 3213 3463 0 0 0 0 0
spawn = 2290 2996 3373 0 0 0 0 0
spawn = 743 3080 3250 0 0 0 0 0
spawn = 375 3053 3247 0 0 0 0 0
spawn = 747 3011 3199 0 0 0 0 0
spawn = 3670 2920 3172 0 0 0 0 0
spawn = 746 3012 3499 0 0 0 0 0

The following user thanked Stunz for this useful post:

ResistThePower
03-06-2015, 05:04 PM #2
Raiden
Banned
Nice post. I loved the idea of making new quests. The best thing about Runescape is the possibilities are endless.

The only quest I made was a Halloween one. where players would have speak to numerous villagers in different towns to track down the exact location, and gather the required items to enter the labyrinth of a dark and dangerous spirit.

Once they defeated him he would drop either Halloween masks, pumpkins or scythes.

Such a great game for capturing peoples imaginations.
03-06-2015, 05:17 PM #3
Stunz
Former Staff
Originally posted by 87 View Post
Nice post. I loved the idea of making new quests. The best thing about Runescape is the possibilities are endless.

The only quest I made was a Halloween one. where players would have speak to numerous villagers in different towns to track down the exact location, and gather the required items to enter the labyrinth of a dark and dangerous spirit.

Once they defeated him he would drop either Halloween masks, pumpkins or scythes.

Such a great game for capturing peoples imaginations.
Sweet bro, it sure is Winky Winky

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo