mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-06 16:49:07 +00:00
My development (#58)
* Black Knights Fortress (not complete) * another Black knight * dialogue fix + added comment
This commit is contained in:
committed by
Daniel Ginovker
parent
ea50d4065a
commit
0d728d8af0
@@ -100,6 +100,13 @@ public class QuestAssistant {
|
||||
} else if (client.cookAss > 0 && client.cookAss < 3) {
|
||||
client.getPlayerAssistant().sendFrame126("@yel@Cook's Assistant", 7333);
|
||||
}
|
||||
if (client.blackKnight == 0) {
|
||||
client.getPlayerAssistant().sendFrame126("Black Knights' Fortress", 7344);
|
||||
} else if (client.blackKnight == 3) {
|
||||
client.getPlayerAssistant().sendFrame126("@gre@Black Knights' Fortress", 7344);
|
||||
} else {
|
||||
client.getPlayerAssistant().sendFrame126("@yel@Black Knights' Fortress", 7344);
|
||||
}
|
||||
}
|
||||
|
||||
public enum Quests {
|
||||
@@ -235,6 +242,7 @@ public class QuestAssistant {
|
||||
|
||||
public static void questButtons(Client client, int buttonId) {
|
||||
switch (buttonId) {
|
||||
|
||||
case 28165:
|
||||
client.getCooksAssistant().showInformation();
|
||||
break;
|
||||
@@ -271,6 +279,10 @@ public class QuestAssistant {
|
||||
case 28192:
|
||||
client.getGertrudesCat().showInformation();
|
||||
break;
|
||||
case 28164:
|
||||
client.getBlackKnightsFortress().showInformation();
|
||||
break;
|
||||
|
||||
default:
|
||||
if (Quests.forButton(buttonId) != null) {
|
||||
client.getActionSender().sendMessage("The quest " + Quests.forButton(buttonId).getName() + " is currently disabled.");
|
||||
|
||||
@@ -143,4 +143,13 @@ public class QuestRewards {
|
||||
client.getPlayerAssistant().sendFrame126("@gre@" + QUEST_NAME + "", 7333);
|
||||
client.cookAss = 3;
|
||||
}
|
||||
public static void blackKnightReward(Client client) {
|
||||
QuestReward(client, "Black Knights' Fortress", "6 Quest Point", "5000 Coins", "10k Attack XP", "", "", "", 326);
|
||||
QUEST_NAME = "Black Knights' Fortress";
|
||||
client.getItemAssistant().addItem(995, 5000);
|
||||
client.getPlayerAssistant().addNormalExperienceRate(10000, client.playerAttack);
|
||||
client.questPoints++;
|
||||
client.getPlayerAssistant().sendFrame126("@gre@" + QUEST_NAME + "", 7333);
|
||||
client.blackKnight = 3;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,59 @@
|
||||
package redone.game.content.quests.impl;
|
||||
|
||||
import redone.game.players.Client;
|
||||
|
||||
/**
|
||||
* @author Andrew (I'm A Boss on Rune-Server, Mr Extremez on Moparscape & Runelocus)
|
||||
* Cooks Assistant
|
||||
*/
|
||||
|
||||
public class BlackKnightsFortress {
|
||||
|
||||
Client client;
|
||||
|
||||
public BlackKnightsFortress(Client client) {
|
||||
this.client = client;
|
||||
}
|
||||
|
||||
private static final int NOTES = 291;
|
||||
|
||||
public void showInformation() {
|
||||
for (int i = 8144; i < 8195; i++) {
|
||||
client.getPlayerAssistant().sendFrame126("", i);
|
||||
}
|
||||
client.getPlayerAssistant().sendFrame126("@dre@Black Knights' Fortress", 8144);
|
||||
client.getPlayerAssistant().sendFrame126("", 8145);
|
||||
if (client.blackKnight == 0) {
|
||||
client.getPlayerAssistant().sendFrame126("Black Knights' Fortress", 8144);
|
||||
client.getPlayerAssistant().sendFrame126("I can start this quest by speaking to Sir Amik Varze in", 8147);
|
||||
client.getPlayerAssistant().sendFrame126("Falador Castle.", 8148);
|
||||
client.getPlayerAssistant().sendFrame126("", 8149);
|
||||
client.getPlayerAssistant().sendFrame126("QUEST REQUIREMENTS:", 8150);
|
||||
client.getPlayerAssistant().sendFrame126("??12 Quest Points??", 8151);
|
||||
} else if (client.blackKnight == 1) {
|
||||
client.getPlayerAssistant().sendFrame126("Black Knights' Fortress", 8144);
|
||||
client.getPlayerAssistant().sendFrame126("@str@I've Talked with Sir Amik Varze", 8147);
|
||||
client.getPlayerAssistant().sendFrame126("He wants me to kill 30 Black Knights and", 8148);
|
||||
client.getPlayerAssistant().sendFrame126("collect their notes.", 8149);
|
||||
if (client.getItemAssistant().playerHasItem(NOTES, 30)) {
|
||||
client.getPlayerAssistant().sendFrame126("@str@30 Black Knight notes", 8150);
|
||||
} else {
|
||||
client.getPlayerAssistant().sendFrame126("@red@30 Black Knight notes", 8150);
|
||||
}
|
||||
|
||||
} else if (client.blackKnight == 2) {
|
||||
client.getPlayerAssistant().sendFrame126("Black Knights' Fortress", 8144);
|
||||
client.getPlayerAssistant().sendFrame126("@str@I talked to Sir Amik Varze.", 8147);
|
||||
client.getPlayerAssistant().sendFrame126("@str@I gave Sir Amik Varze his items.", 8148);
|
||||
client.getPlayerAssistant().sendFrame126("I should go speak to Sir Amik Varze.", 8149);
|
||||
} else if (client.blackKnight == 3) {
|
||||
client.getPlayerAssistant().sendFrame126("Black Knights' Fortress", 8144);
|
||||
client.getPlayerAssistant().sendFrame126("@str@I talked to Sir Amik Varze.", 8147);
|
||||
client.getPlayerAssistant().sendFrame126("@str@I gave him his items.", 8148);
|
||||
client.getPlayerAssistant().sendFrame126("@red@ QUEST COMPLETE", 8150);
|
||||
client.getPlayerAssistant().sendFrame126("As a reward, 10k attack xp and 5k coins.", 8151);
|
||||
}
|
||||
client.getPlayerAssistant().showInterface(8134);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user