Thread: [PI] Custom Quest - Once Upon A Dragon

Page 1 of 4 123 ... LastLast
Results 1 to 10 of 32
  1. #1 [PI] Custom Quest - Once Upon A Dragon 
    Registered Member
    Jokerrr's Avatar
    Join Date
    Jun 2012
    Posts
    468
    Thanks given
    56
    Thanks received
    52
    Rep Power
    108
    Hey, I have been working on a custom quest for a few days, I restarted and finally finished it. This is my first time ever making one so please do not hate.

    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:

    Code:
    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", 8148);
    		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", 8148);
    		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", 8158);
                                     }
    
    		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", 8148);
    		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", 8158);
                                     }
    
    		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", 8148);
    		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", 8158);
                                     }
    
    		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", 8148);
    		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", 8158);
                                    }
    
    		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", 8148);
    		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", 8158);
    		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", 8148);
    		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", 8158);
    		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", 8148);
    		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", 8158);
    		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 == 8) {
    		c.getPA().sendFrame126("To start this quest, I must talk to The Guildmaster.", 8147);
    		c.getPA().sendFrame126("Who is outside of the Varrock Castle", 8148);
    		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", 8158);
    		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.", 8168);
                                     }
    
    		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", 8148);
    		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", 8158);
    		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", 8148);
    		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", 8158);
    		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", 8168);
                                    }else{
    		c.getPA().sendFrame126("@red@50 Air Runes", 8168);
    		}
    		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", 8148);
    		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", 8158);
    		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", 8148);
    		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", 8158);
    		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:", 8168);
    		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", 8148);
    		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", 8158);
    		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.", 8168);
                                    }
    
    		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", 8148);
    		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", 8158);
    		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.", 8168);
    		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", 8148);
    		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", 8158);
    		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.", 8168);
    		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!", 8178);
                                    }
    		c.getPA().showInterface(8134);
    	}
    }
    Now, Add this into the player class:

    Code:
    public int ouad;
    And then add these into PlayerSave in the correct locations:
    Code:
    					} else if (token.equals("once-upon-a-dragon")) {
    						p.ouad = Integer.parseInt(token2);
    Code:
    			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)

    Code:
                                    //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 > 8) {
                                    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)

    Code:
    		//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:

    Code:
    			if (c.dialogueAction == 201 && c.ouad == 0 && c.playerLevel[14] >= 85 && c.playerLevel[13] >= 85) {
    		                c.getDH().sendDialogues(202, 198);
                                                    c.ouad = 1;
                                                    return;
                                                    }else if (c.dialogueAction == 201 && c.ouad == 0 && c.playerLevel[14] < 85 && c.playerLevel[13] < 85) {
    		                c.getDH().sendDialogues(204, 198);
                                                    return;
                                                    }
    
    		                if (c.dialogueAction == 214) {
    		                c.getDH().sendDialogues(215, 198);
                                                    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:

    Code:
    		                if (c.dialogueAction == 214) {
    		                c.getDH().sendDialogues(218, 198);
                                                    return;
                             		}
    Now create a new case it may be different for you depending on your ID in playerassistant:

    Code:
    	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.

    Code:
    		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);
    		}
    Like I said this is my first one ever creating one, So please don't hate.

    Thanks, Jokerrr
    AKA RS PS On Mopar

    Forgot spawn-config for the quest:

    Code:
    //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
    Also I kind of based this off the Dragon Slayer storyline.
    Reply With Quote  
     

  2. #2  
    Banned
    Join Date
    Jun 2012
    Posts
    146
    Thanks given
    11
    Thanks received
    0
    Rep Power
    0
    What do we search in playerassistant for quest tab
    Reply With Quote  
     

  3. #3  
    Registered Member
    Jokerrr's Avatar
    Join Date
    Jun 2012
    Posts
    468
    Thanks given
    56
    Thanks received
    52
    Rep Power
    108
    Quote Originally Posted by getsuga121 View Post
    What do we search in playerassistant for quest tab
    You need to find where you quest tab texts are located and then paste the code I gave you and just change 16034 to whichever ID is free in your quest tab.
    Reply With Quote  
     

  4. #4  
    Banned
    Join Date
    Jun 2012
    Posts
    146
    Thanks given
    11
    Thanks received
    0
    Rep Power
    0
    src\server\model\players\ActionHandler.java:2074: error: orphaned case
    case 198:
    ^
    1 error
    -------------------------------------------------------------------------------
    --TrisidiaX Has Completely Finished its Compileing!--
    -------------------------------------------------------------------------------
    Press any key to continue . . .
    Reply With Quote  
     

  5. #5  
    Chemist

    Advocatus's Avatar
    Join Date
    Dec 2009
    Posts
    2,622
    Thanks given
    201
    Thanks received
    813
    Rep Power
    1462
    Sounds pretty cool. Nice job.
    Quote Originally Posted by blakeman8192 View Post
    Quitting is the only true failure.
    Reply With Quote  
     

  6. #6  
    AleroBio Owner

    Join Date
    Feb 2011
    Posts
    362
    Thanks given
    26
    Thanks received
    13
    Rep Power
    0
    Looks good, Nice job.
    Reply With Quote  
     

  7. #7  
    Banned
    Join Date
    Jun 2012
    Posts
    146
    Thanks given
    11
    Thanks received
    0
    Rep Power
    0
    src\server\model\players\Client.java:14: error: package server.model.players.que
    sts does not exist
    import server.model.players.quests.oneuponadragon;
    ^
    src\server\model\players\Client.java:1318: error: cannot find symbol
    if(c.ouad == 0) {
    ^
    symbol: variable c
    location: class Client
    src\server\model\players\Client.java:1319: error: cannot find symbol
    c.getPA().sendFrame126("@red@Once Upon A Dragon", 29181);
    ^
    symbol: variable c
    location: class Client
    src\server\model\players\Client.java:1320: error: cannot find symbol
    } else if(c.ouad > 0 && c.ouad < 15) {
    ^
    symbol: variable c
    location: class Client
    src\server\model\players\Client.java:1320: error: cannot find symbol
    } else if(c.ouad > 0 && c.ouad < 15) {
    ^
    symbol: variable c
    location: class Client
    src\server\model\players\Client.java:1321: error: cannot find symbol
    c.getPA().sendFrame126("@yel@Once Upon A Dragon", 29181);

    ^
    symbol: variable c
    location: class Client
    src\server\model\players\Client.java:1322: error: cannot find symbol
    } else if(c.ouad == 15) {
    ^
    symbol: variable c
    location: class Client
    src\server\model\players\Client.java:1323: error: cannot find symbol
    c.getPA().sendFrame126("@gre@Once Upon A Dragon", 29181);
    ^
    symbol: variable c
    location: class Client
    src\server\model\players\DialogueHandler.java:81: error: cannot find symbol
    sendNpcChat2("Hey, "+ Misc.optimizeText(c.player
    Name) +" Did you go and ask", "the witnesses like I asked so?", c.talkingNpc, "
    Guildmaster");
    ^
    symbol: variable Misc
    location: class DialogueHandler
    src\server\model\players\DialogueHandler.java:101: error: method sendNpcChat1 in
    class DialogueHandler cannot be applied to given types;
    sendNpcChat1("He will give further instructions.
    ", c.talkingNpc, "Guildmaster");
    ^
    required: String
    found: String,int,String
    reason: actual and formal argument lists differ in length
    src\server\model\players\DialogueHandler.java:106: error: method sendNpcChat1 in
    class DialogueHandler cannot be applied to given types;
    sendNpcChat1("Well go then! What are you waiting
    for?", c.talkingNpc, "Guildmaster");
    ^
    required: String
    found: String,int,String
    reason: actual and formal argument lists differ in length
    src\server\model\players\DialogueHandler.java:111: error: cannot find symbol
    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");
    ^
    symbol: variable Misc
    location: class DialogueHandler
    src\server\model\players\DialogueHandler.java:126: error: method sendNpcChat1 in
    class DialogueHandler cannot be applied to given types;
    sendNpcChat1("Hello, What do you want?", c.talki
    ngNpc, "Oziach");
    ^
    required: String
    found: String,int,String
    reason: actual and formal argument lists differ in length
    src\server\model\players\DialogueHandler.java:151: error: cannot find symbol
    sendNpcChat2("Hello, "+ Misc.optimizeText(c.play
    erName) +"", "What do you want?", c.talkingNpc, "Oracle");
    ^
    symbol: variable Misc
    location: class DialogueHandler
    src\server\model\players\DialogueHandler.java:176: error: cannot find symbol
    sendNpcChat2("Why hello, "+ Misc.optimizeText(c.
    playerName) +"", "What can I do for you?", c.talkingNpc, "Aubury");
    ^
    symbol: variable Misc
    location: class DialogueHandler
    src\server\model\players\DialogueHandler.java:191: error: cannot find symbol
    sendNpcChat3("Hello, "+ Misc.optimizeText(c.play
    erName) +", I see you have brought the items", "I asked for, Thanks a bunch!",
    "Here is the third map piece!", c.talkingNpc, "Aubury");
    ^
    symbol: variable Misc
    location: class DialogueHandler
    src\server\model\players\DialogueHandler.java:196: error: cannot find symbol
    sendNpcChat3("Hello, "+ Misc.optimizeText(c.play
    erName) +", 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");
    ^
    symbol: variable Misc
    location: class DialogueHandler
    src\server\model\players\DialogueHandler.java:201: error: cannot find symbol
    sendNpcChat4("Hello, "+ Misc.optimizeText(c.play
    erName) +"", "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.talking
    Npc, "Ned");
    ^
    symbol: variable Misc
    location: class DialogueHandler
    src\server\model\players\DialogueHandler.java:206: error: cannot find symbol
    sendNpcChat4("Go and gear up and get ready for y
    our big", "battle, another thanks for helping us!", "Go to Sedridor who is in Ed
    geville when you are ready to fight the dragon.", "Good Luck, "+ Misc.optimizeTe
    xt(c.playerName)+"!", c.talkingNpc, "Ned");


    ^
    symbol: variable Misc
    location: class DialogueHandler
    src\server\model\players\DialogueHandler.java:216: error: cannot find symbol
    sendNpcChat1("Hello "+ Misc.optimizeText(c.playe
    rName)+", Are you ready to fight the dragon?", c.talkingNpc, "Sedridor");
    ^
    symbol: variable Misc
    location: class DialogueHandler
    src\server\model\players\DialogueHandler.java:246: error: cannot find symbol
    sendNpcChat2("Hey, "+ Misc.optimizeText(c.player
    Name)+", Thanks again for killing the Dragon!", "Me and many other people apprec
    iate your hard and noble work!", c.talkingNpc, "The Guildmaster");
    ^
    symbol: variable Misc
    location: class DialogueHandler
    src\server\model\players\packets\ClickingButtons.j ava:2338: error: cannot find s
    ymbol
    OnceUponADragon.showQuest(c);
    ^
    symbol: variable OnceUponADragon
    location: class ClickingButtons
    Note: Some input files use unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    22 errors
    -------------------------------------------------------------------------------
    --TrisidiaX Has Completely Finished its Compileing!--
    -------------------------------------------------------------------------------
    Press any key to continue . . .

    anyone help?
    Reply With Quote  
     

  8. #8  
    Project-Tenex Developer Uzumaki's Avatar
    Join Date
    Oct 2011
    Posts
    130
    Thanks given
    27
    Thanks received
    6
    Rep Power
    17
    Nice thanks! Might use.
    Quote Originally Posted by Grim Reaper View Post


    I need help with this..... Does anyone know how to fix this.
    You serious..?
    __________________________________________________ __________________________________________________ _________________________________________
    Quote Originally Posted by SeanQB View Post
    Thanks! And the error in your sig shouldn't matter when compiling. I get the same thing all the time and my files still work.
    Quote Originally Posted by SeanQB View Post
    What's so funny?
    Reply With Quote  
     

  9. #9  
    Why are you looking here?


    Join Date
    Jul 2012
    Age
    30
    Posts
    3,214
    Thanks given
    830
    Thanks received
    357
    Rep Power
    559
    Looks nice,thanks
    Reply With Quote  
     

  10. #10  
    Registered Member
    Jokerrr's Avatar
    Join Date
    Jun 2012
    Posts
    468
    Thanks given
    56
    Thanks received
    52
    Rep Power
    108
    Everyone thanks for the nice comment.

    @getsuga@ The import is: import server.model.players.quests.OnceUponADragon;

    And did you make the quests folder?
    Reply With Quote  
     

Page 1 of 4 123 ... LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Quest - Best The Dragon :) With SOUNDS
    By I Am Kacey in forum Show-off
    Replies: 11
    Last Post: 01-31-2012, 04:35 AM
  2. Replies: 91
    Last Post: 08-01-2011, 03:38 AM
  3. | - | Dragon Slayer Quest | - |
    By Soulzz in forum Tutorials
    Replies: 7
    Last Post: 07-01-2009, 09:10 PM
  4. Dragon slayer Quest [508]
    By runepurex123123 in forum Tutorials
    Replies: 29
    Last Post: 03-09-2009, 01:05 AM
  5. Dragon Slayer Quest [Rep++]
    By Thani in forum Requests
    Replies: 0
    Last Post: 02-02-2009, 04:28 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •