mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-07 16:49:07 +00:00
Add Shield of Arrav (#120)
* change it up * eh * Add Shield of Arrav quest * Add comment
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package redone.game.content.quests;
|
||||
|
||||
import redone.game.content.quests.impl.KnightsSword;
|
||||
import redone.game.content.quests.impl.ShieldArrav;
|
||||
import redone.game.players.Client;
|
||||
|
||||
/**
|
||||
@@ -10,7 +11,7 @@ import redone.game.players.Client;
|
||||
|
||||
public class QuestAssistant {
|
||||
|
||||
public static final int MAXIMUM_QUESTPOINTS = 22;
|
||||
public static final int MAXIMUM_QUESTPOINTS = 23;
|
||||
|
||||
public static void sendStages(Client client) {
|
||||
client.getPlayerAssistant().sendFrame126("QP: " + client.questPoints + " ", 3985);
|
||||
@@ -112,6 +113,13 @@ public class QuestAssistant {
|
||||
} else {
|
||||
client.getPlayerAssistant().sendFrame126("@yel@Black Knights' Fortress", 7332);
|
||||
}
|
||||
if (client.shieldArrav == 0) {
|
||||
client.getPlayerAssistant().sendFrame126("Shield of Arrav", 7345);
|
||||
} else if (client.shieldArrav == 8) {
|
||||
client.getPlayerAssistant().sendFrame126("@gre@Shield of Arrav", 7345);
|
||||
} else {
|
||||
client.getPlayerAssistant().sendFrame126("@yel@Shield of Arrav", 7345);
|
||||
}
|
||||
}
|
||||
|
||||
public enum Quests {
|
||||
@@ -130,7 +138,7 @@ public class QuestAssistant {
|
||||
ROMEO_JULIET(28175, 7343, "Romeo Juliet", false),
|
||||
RUNE_MYSTERIES(28167, 7335, "Rune Mysteries", true),
|
||||
SHEEP_SHEARER(28176, 7344, "Sheep Shearer", true),
|
||||
SHIELD_OF_ARRAV(28177, 7345, "Shield of Arrav", false),
|
||||
SHIELD_OF_ARRAV(28177, 7345, "Shield of Arrav", true),
|
||||
VAMPYRE_SLAYER(28179, 7347, "Vampyre Slayer", true),
|
||||
WITCHS_POTION(28180, 7348, "Witchs Potion", true),
|
||||
BETWEEN_A_ROCK(49228, 12772, "Between A Rock", false),
|
||||
@@ -284,6 +292,9 @@ public class QuestAssistant {
|
||||
case 28176:
|
||||
client.getSheepShearer().showInformation();
|
||||
break;
|
||||
case 28177:
|
||||
ShieldArrav.showInformation(client);
|
||||
break;
|
||||
case 28178:
|
||||
KnightsSword.showInformation(client);
|
||||
break;
|
||||
|
||||
@@ -39,7 +39,7 @@ public class QuestRewards {
|
||||
}
|
||||
|
||||
public static void gertFinish(Client client) {
|
||||
QuestReward(client, "Gertrude's Cat", "1 Quest Point", "1,525 Cooking XP", "A kitten!", "Ability to raise cats", "A choclate cake", "A bowl of stew", 1897);
|
||||
QuestReward(client, "Gertrude's Cat", "1 Quest Point", "1,525 Cooking XP", "A kitten!", "Ability to raise cats", "A chocolate cake", "A bowl of stew", 1897);
|
||||
QUEST_NAME = "Gertrude's Cat";
|
||||
client.getPlayerAssistant().sendFrame126("@gre@" + QUEST_NAME + "", 7360);
|
||||
client.getItemAssistant().addItem(1897, 1);
|
||||
@@ -95,7 +95,7 @@ public class QuestRewards {
|
||||
}
|
||||
|
||||
public static void runeFinish(Client client) {
|
||||
QuestReward(client, "Rune Mysteries", "1 Quest Points", "Air Talisman", "", "", "", "", 1438);
|
||||
QuestReward(client, "Rune Mysteries", "1 Quest Point", "Air Talisman", "", "", "", "", 1438);
|
||||
QUEST_NAME = "Rune Mysteries";
|
||||
client.getPlayerAssistant().sendFrame126("@gre@" + QUEST_NAME + "", 7335);
|
||||
client.getItemAssistant().addItem(1438, 1);
|
||||
@@ -142,12 +142,22 @@ public class QuestRewards {
|
||||
client.questPoints++;
|
||||
client.cookAss = 3;
|
||||
}
|
||||
|
||||
public static void blackKnightReward(Client client) {
|
||||
QuestReward(client, "Black Knights' Fortress", "3 Quest Point", "2500 Coins", "", "", "", "", 0);
|
||||
QuestReward(client, "Black Knights' Fortress", "3 Quest Points", "2,500 Coins", "", "", "", "", 0);
|
||||
QUEST_NAME = "Black Knights' Fortress";
|
||||
client.getPlayerAssistant().sendFrame126("@gre@" + QUEST_NAME + "", 7332);
|
||||
client.getItemAssistant().addItem(995, 2500);
|
||||
client.questPoints += 3;
|
||||
client.blackKnight = 3;
|
||||
}
|
||||
|
||||
public static void shieldArravReward(Client client) {
|
||||
QuestReward(client, "Shield of Arrav", "1 Quest Point", "1,200 Coins", "", "", "", "", 767);
|
||||
QUEST_NAME = "Shield of Arrav";
|
||||
client.getPlayerAssistant().sendFrame126("@gre@" + QUEST_NAME + "", 7345);
|
||||
client.getItemAssistant().addItem(995, 1200);
|
||||
client.questPoints++;
|
||||
client.shieldArrav = 8;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ public class PiratesTreasure {
|
||||
"@str@I went to falador and killed the gardener", 8150);
|
||||
client.getPlayerAssistant().sendFrame126("@str@I found the casket ",
|
||||
8181);
|
||||
client.getPlayerAssistant().sendFrame126("@red@ QUEST COMPLETE",
|
||||
client.getPlayerAssistant().sendFrame126("@red@QUEST COMPLETE",
|
||||
8152);
|
||||
client.getPlayerAssistant().sendFrame126(
|
||||
"As a reward, I gained a casket.", 8153);
|
||||
|
||||
@@ -0,0 +1,113 @@
|
||||
package redone.game.content.quests.impl;
|
||||
|
||||
import redone.game.players.Client;
|
||||
|
||||
/**
|
||||
* Shield of Arrav
|
||||
* @author RedSparr0w
|
||||
*/
|
||||
|
||||
public class ShieldArrav {
|
||||
|
||||
Client client;
|
||||
|
||||
private static String[] lines = new String[]{};
|
||||
|
||||
public ShieldArrav(Client client) {
|
||||
this.client = client;
|
||||
}
|
||||
|
||||
public static void showInformation(Client client) {
|
||||
// Clear all lines
|
||||
for (int i = 8144; i < 8195; i++) client.getPlayerAssistant().sendFrame126("", i);
|
||||
// Set the title
|
||||
client.getPlayerAssistant().sendFrame126("Shield of Arrav", 8144);
|
||||
// Add content
|
||||
if (client.shieldArrav == 0) {
|
||||
lines = new String[]{
|
||||
"I can start this quest by speaking to @red@Reldo @bla@in @red@Varrock's",
|
||||
"@red@Palace Library@bla@, or by speaking to @red@Charlie the Tramp @bla@near",
|
||||
"the @red@Blue Moon Inn @bla@in @red@Varrock.",
|
||||
"I will need a friend to help me and some combat experience",
|
||||
"may be an advantage.",
|
||||
};
|
||||
} else if (client.shieldArrav == 1) {
|
||||
lines = new String[]{
|
||||
"I need to find @red@'The Shield of Arrav' @bla@book",
|
||||
"in @red@Varrock's Palace Library",
|
||||
};
|
||||
} else if (client.shieldArrav == 2) {
|
||||
lines = new String[]{
|
||||
"@str@I found 'The Shield of Arrav' book",
|
||||
"I should speak to @red@Reldo",
|
||||
};
|
||||
} else if (client.shieldArrav == 3) {
|
||||
lines = new String[]{
|
||||
"@str@I found 'The Shield of Arrav' book",
|
||||
"@str@I've spoken with Raldo",
|
||||
"Lets go speak with @red@Baraek",
|
||||
};
|
||||
} else if (client.shieldArrav == 4) {
|
||||
lines = new String[]{
|
||||
"@str@I found 'The Shield of Arrav' book",
|
||||
"@str@I've spoken with Raldo",
|
||||
"@str@I've spoken with Baraek",
|
||||
"He told me where I can find the Phoenix Gang hideout,",
|
||||
"He said it was located in the South Eastern side of Varrock,",
|
||||
"I should check it out.",
|
||||
};
|
||||
} else if (client.shieldArrav == 5) {
|
||||
lines = new String[]{
|
||||
"@str@I found 'The Shield of Arrav' book",
|
||||
"@str@I've spoken with Raldo",
|
||||
"@str@I've spoken with Baraek",
|
||||
"@str@I found the hideout",
|
||||
"I need to goto the @red@Blue Moon Inn",
|
||||
"and obtain the intelligence report.",
|
||||
};
|
||||
} else if (client.shieldArrav == 6) {
|
||||
lines = new String[]{
|
||||
"@str@I found 'The Shield of Arrav' book",
|
||||
"@str@I've spoken with Raldo",
|
||||
"@str@I've spoken with Baraek",
|
||||
"@str@I found the hideout",
|
||||
"@str@I obtained the intelligence report",
|
||||
"I need to find the Shield",
|
||||
"and take it to @red@Curator Haig Halen",
|
||||
"he should be at @red@Varrock Museum"
|
||||
};
|
||||
} else if (client.shieldArrav == 7) {
|
||||
lines = new String[]{
|
||||
"@str@I found 'The Shield of Arrav' book",
|
||||
"@str@I've spoken with Raldo",
|
||||
"@str@I've spoken with Baraek",
|
||||
"@str@I found the hideout",
|
||||
"@str@I obtained the intelligence report",
|
||||
"@str@I turned in the shield",
|
||||
"I need to take this certificate",
|
||||
"to @red@King Roald @bla@for my reward",
|
||||
};
|
||||
} else if (client.shieldArrav == 8) {
|
||||
lines = new String[]{
|
||||
"@str@I found 'The Shield of Arrav' book",
|
||||
"@str@I've spoken with Raldo",
|
||||
"@str@I've spoken with Baraek",
|
||||
"@str@I found the hideout",
|
||||
"@str@I obtained the intelligence report",
|
||||
"@str@I turned in the shield",
|
||||
"@str@I got a certificate and",
|
||||
"@str@turned it in for my reward",
|
||||
"",
|
||||
"@red@QUEST COMPLETE",
|
||||
"",
|
||||
"REWARDS:",
|
||||
"1,200 coins",
|
||||
"1 Quest Point",
|
||||
};
|
||||
}
|
||||
// Send the lines to the client
|
||||
int lineNumber = 8147;
|
||||
for (String line : lines) client.getPlayerAssistant().sendFrame126(line, lineNumber++);
|
||||
client.getPlayerAssistant().showInterface(8134);
|
||||
}
|
||||
}
|
||||
@@ -11,59 +11,65 @@ public class VampyreSlayer {
|
||||
|
||||
Client client;
|
||||
|
||||
public String[] lines = new String[]{};
|
||||
|
||||
public VampyreSlayer(Client client) {
|
||||
this.client = client;
|
||||
}
|
||||
|
||||
public void showInformation() {
|
||||
for (int i = 8144; i < 8195; i++) {
|
||||
client.getPlayerAssistant().sendFrame126("", i);
|
||||
}
|
||||
client.getPlayerAssistant().sendFrame126("@dre@Vampyre Slayer", 8144);
|
||||
client.getPlayerAssistant().sendFrame126("", 8145);
|
||||
// Clear all lines
|
||||
for (int i = 8144; i < 8195; i++) client.getPlayerAssistant().sendFrame126("", i);
|
||||
// Set the title
|
||||
client.getPlayerAssistant().sendFrame126("Vampyre Slayer", 8144);
|
||||
// Add content
|
||||
if (client.vampSlayer == 0) {
|
||||
client.getPlayerAssistant().sendFrame126("Vampyre Slayer", 8144);
|
||||
client.getPlayerAssistant().sendFrame126("I can start this quest by speaking to Morgan in", 8147);
|
||||
client.getPlayerAssistant().sendFrame126("Draynor Village.", 8148);
|
||||
client.getPlayerAssistant().sendFrame126("Minimum Requirments:", 8149);
|
||||
client.getPlayerAssistant().sendFrame126("Be able to kill a level 37 monster.", 8150);
|
||||
lines = new String[]{
|
||||
"I can start this quest by speaking to Morgan in",
|
||||
"Draynor Village.",
|
||||
"Minimum Requirements:",
|
||||
"Be able to kill a level 37 monster.",
|
||||
};
|
||||
} else if (client.vampSlayer == 1) {
|
||||
client.getPlayerAssistant().sendFrame126("Vampyre Slayer", 8144);
|
||||
client.getPlayerAssistant().sendFrame126("@str@I've talked to the Morgan", 8147);
|
||||
client.getPlayerAssistant().sendFrame126("I should speak to Doctor Harlow", 8148);
|
||||
lines = new String[]{
|
||||
"@str@I've talked to Morgan",
|
||||
"I should speak to Doctor Harlow",
|
||||
};
|
||||
} else if (client.vampSlayer == 2) {
|
||||
client.getPlayerAssistant().sendFrame126("Vampyre Slayer", 8144);
|
||||
client.getPlayerAssistant().sendFrame126("@str@I've talked to Doctor Harlow", 8147);
|
||||
client.getPlayerAssistant().sendFrame126("I need to him a beer.", 8148);
|
||||
client.getPlayerAssistant().sendFrame126("I should speak to the bartender", 8149);
|
||||
lines = new String[]{
|
||||
"@str@I've talked to Doctor Harlow",
|
||||
"I need to bring him a beer.",
|
||||
"I should speak to the bartender",
|
||||
};
|
||||
} else if (client.vampSlayer == 3) {
|
||||
client.getPlayerAssistant().sendFrame126("Vampyre Slayer", 8144);
|
||||
client.getPlayerAssistant().sendFrame126(
|
||||
"@str@I've talked to the bartender", 8147);
|
||||
client.getPlayerAssistant().sendFrame126(
|
||||
"@str@I gave Doctor Harlow the beer", 8148);
|
||||
client.getPlayerAssistant().sendFrame126(
|
||||
"@str@Doctor Harlow talked to me and", 8149);
|
||||
client.getPlayerAssistant().sendFrame126(
|
||||
"@str@Gave me a stake and hammer.", 8150);
|
||||
client.getPlayerAssistant().sendFrame126("Get everything you need and go to Draynor Village.", 8151);
|
||||
client.getPlayerAssistant().sendFrame126("Begin your battle.", 8152);
|
||||
lines = new String[]{
|
||||
"@str@I've talked to the bartender",
|
||||
"@str@I gave Doctor Harlow the beer",
|
||||
"@str@Doctor Harlow talked to me and",
|
||||
"@str@Gave me a stake and hammer.",
|
||||
"Get everything you need and go to Draynor Village.",
|
||||
"Begin your battle.",
|
||||
};
|
||||
} else if (client.vampSlayer == 4) {
|
||||
client.getPlayerAssistant().sendFrame126("Vampyre Slayer", 8144);
|
||||
client.getPlayerAssistant().sendFrame126("@str@I've killed the Vampire", 8147);
|
||||
client.getPlayerAssistant().sendFrame126("I need to talk to Morgan to complete the quest.", 8148);
|
||||
lines = new String[]{
|
||||
"@str@I've killed the Vampire",
|
||||
"I need to talk to Morgan to complete the quest.",
|
||||
};
|
||||
} else if (client.vampSlayer == 5) {
|
||||
client.getPlayerAssistant().sendFrame126("Vampyre Slayer", 8144);
|
||||
client.getPlayerAssistant().sendFrame126(
|
||||
"@str@I've Talked to Morgan", 8148);
|
||||
client.getPlayerAssistant().sendFrame126("@red@ QUEST COMPLETE",
|
||||
8150);
|
||||
client.getPlayerAssistant().sendFrame126(
|
||||
"As a reward, I gained 4825 Attack Exp.", 8151);
|
||||
client.getPlayerAssistant().sendFrame126("And 1 Quest Point", 8152);
|
||||
client.getPlayerAssistant().sendFrame126("", 8152);
|
||||
lines = new String[]{
|
||||
"@str@I've killed the Vampire",
|
||||
"@str@I've Talked to Morgan",
|
||||
"",
|
||||
"@red@QUEST COMPLETE",
|
||||
"",
|
||||
"REWARDS:",
|
||||
"4,825 Attack Exp.",
|
||||
"1 Quest Point",
|
||||
};
|
||||
}
|
||||
// Send the lines to the client
|
||||
int lineNumber = 8147;
|
||||
for (String line : lines) client.getPlayerAssistant().sendFrame126(line, lineNumber++);
|
||||
client.getPlayerAssistant().showInterface(8134);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user