Code:
public static void dragonSlayer(client c) {
if (c.qStage[3] == 1) {
c.qStage[3] = 2;
npcDiag(c, "Guild Master","So "+c.playerName+", you think you are a brave warrior?","Then boy do I have a challenge for you!","If you think you can handle the challenge,","then find Oziach, in level 1 Edgeville Wild.",198);
}else if (c.qStage[3] == 0) {
npcDiag(c, "Guild Master","I see that you have finished my task!","I feel that I should give you some type of reward.","Ah, I have an idea! I will let you have access to the Champions Guild!","Talk to me whenever you want to go there!",198);
c.toX = 2896;
c.toY = 3511;
c.savegame(true);
}
}
public static void dragonSlayer2(client c) {
long now = System.currentTimeMillis();
if (c.qStage[3] == 2) {
c.qStage[3] = 3;
npcDiag(c, "Oziach","So "+c.playerName+", you still think you are a brave warrior?","If you are up to it, use this key on on the one of the","doors in the Fortress of level 15 Edgeville wilderness","I need you to find a piece of a map for me.",747);
c.addItem(1543,1); //Gives 2 keys incase one is lost
c.savegame(true);
}else if (c.qStage[3] == 3) {
if (c.HasItemAmount(4274,1)) {
c.qStage[3] = 4;
npcDiag(c, "Oziach","Good job brave warrior. I'll take","that piece of map from you, now you only have 2 more","pieces of map to find. The next piece","can be found by killing a demon near some Iron Dragons",747);
c.deleteItem(4274,1);
c.savegame(true);
}else if (!c.HasItemAmount(1543,1)) {
npcDiag(c, "Oziach",""+c.playerName+", get on your way, I need ","that map piece as soon","as possible! Here is an extra key,","because I noticed you are missing yours.",747);
c.addItem(1543,1);
}
}else if (c.qStage[3] == 4) {
if (c.HasItemAmount(4275,1)) {
c.qStage[3] = 5;
npcDiag(c, "Oziach","Good job brave warrior. I'll take","that piece of map from you, now you only have 1 more","piece of map to find. The next piece","can be found by killing the KBD, found east of the Iron Dragons.",747);
c.deleteItem(4275,1);
c.savegame(true);
}else{
npcDiag(c, "Oziach",""+c.playerName+", get on your way, I need ","that map piece as soon","as possible!","",747);
}
}else if (c.qStage[3] == 5) {
if (c.HasItemAmount(4276,1)) {
c.qStage[3] = 6;
npcDiag(c, "Oziach","Good job brave warrior. I'll take","that piece of map from you, now we have","the entire map!","Now talk to Ned the Fisherman, found in Draynor!",747);
c.deleteItem(4276,1);
c.addItem(4277,1);
c.savegame(true);
}else{
npcDiag(c, "Oziach",""+c.playerName+", get on your way, I need ","that map piece as soon","as possible!","",747);
}
}else if (c.qStage[3] == 6) {
if (c.HasItemAmount(3709,1)) {
c.qStage[3] = 7;
npcDiag(c, "Oziach","You truely are amazing "+c.playerName+"!","I congratulate you on a task well done! Take these items","as a reward for accomplishing that which I thought was impossible!","Talk to me again for the rest of your reward!",747);
c.deleteItem(3709,10);
c.addItem(3140,1);
c.savegame(true);
}else{
npcDiag(c, "Oziach",""+c.playerName+", get on your way, The beastly","dragon needs to be slain","as soon as possible!","",747);
}
}else if (c.qStage[3] == 7) {
if (c.HasItemAmount(3140,1)) {
c.addItem(1048,1); //Give 1 White Phat
c.addItem(995,5000000); //Give 5 Million Gold
c.addSkillXP(50000, c.playerStrength); //Give 50,000 Magic Expierence
c.qStage[3] = 0;
rewardMenu(c, 1,"The rare white Party hat!","5 Million gold pieces","250,000 Strength Experience","");
c.savegame(true);
}else{
npcDiag(c, "Oziach",""+c.playerName+", I wish you luck on all of","your future tasks may God be with","throughout your time here on Runeore!","",747);
}
}else if (c.qStage[3] == 0) {
npcDiag(c, "Oziach",""+c.playerName+", I wish you luck on all of","your future tasks may God be with","throughout your time here on Runeore!","",747);
}
}
public static void dragonSlayer3(client c) {
if (c.qStage[3] == 6) {
if (c.HasItemAmount(995,10000) && (c.HasItemAmount(4277,1))) {
c.deleteItem(995,10000);
npcDiag(c, "Ned The Fisherman","So "+c.playerName+", you need a ride to Crandor?","That will cost you 10,000 gold!","Now then, let me see that map","so we can get on our way!",308);
c.toX = 2851;
c.toY = 3238;
c.sM("You arrive on Crandor, but your boat has crashed into the shore!");
}else{
npcDiag(c, "Ned The Fisherman",""+c.playerName+", seem's to me that either you can't ","afford the ride to Crandor or you have forgotten your map.","Please bring back 10,000 Gold and your map to get a ride.","",308);
}
}
}