cluescrolls: Add X Marks The Spot quest solutions
This commit is contained in:
@@ -316,11 +316,22 @@ public class ClueScrollPlugin extends Plugin
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (event.getMenuOption().equals("Read"))
|
||||
|
||||
final boolean itemClicked = event.getMenuAction() == MenuAction.ITEM_FIRST_OPTION
|
||||
|| event.getMenuAction() == MenuAction.ITEM_SECOND_OPTION
|
||||
|| event.getMenuAction() == MenuAction.ITEM_THIRD_OPTION
|
||||
|| event.getMenuAction() == MenuAction.ITEM_FOURTH_OPTION
|
||||
|| event.getMenuAction() == MenuAction.ITEM_FIFTH_OPTION;
|
||||
final boolean isXMarksTheSpotOrb = event.getId() == ItemID.MYSTERIOUS_ORB_23069;
|
||||
|
||||
if (itemClicked && (isXMarksTheSpotOrb || event.getMenuOption().equals("Read")))
|
||||
{
|
||||
final ItemComposition itemComposition = itemManager.getItemComposition(event.getId());
|
||||
|
||||
if (itemComposition != null && (itemComposition.getName().startsWith("Clue scroll") || itemComposition.getName().startsWith("Challenge scroll")))
|
||||
if (isXMarksTheSpotOrb
|
||||
|| itemComposition.getName().startsWith("Clue scroll")
|
||||
|| itemComposition.getName().startsWith("Challenge scroll")
|
||||
|| itemComposition.getName().startsWith("Treasure scroll"))
|
||||
{
|
||||
clueItemId = itemComposition.getId();
|
||||
updateClue(MapClue.forItemId(clueItemId));
|
||||
|
||||
@@ -58,17 +58,29 @@ public class CipherClue extends ClueScroll implements TextClueScroll, NpcClueScr
|
||||
new CipherClue("GBJSZ RVFFO", "Fairy Queen", new WorldPoint(2347, 4435, 0), "Fairy Resistance Hideout"),
|
||||
new CipherClue("QSPGFTTPS HSBDLMFCPOF", "Professor Gracklebone", new WorldPoint(1625, 3802, 0), "Ground floor of Arceuus Library", "How many round tables can be found on this floor of the library?", "9"),
|
||||
new CipherClue("IWPPLQTP", "Gunnjorn", new WorldPoint(2541, 3548, 0), "Barbarian Outpost Agility course"),
|
||||
new CipherClue("BSOPME MZETQPS", "Arnold Lydspor", new WorldPoint(2329, 3689, 0), "Piscatoris Fishing Colony general store/bank")
|
||||
new CipherClue("BSOPME MZETQPS", "Arnold Lydspor", new WorldPoint(2329, 3689, 0), "Piscatoris Fishing Colony general store/bank"),
|
||||
new CipherClue("ESBZOPS QJH QFO", new WorldPoint(3077, 3260, 0), "Inside of Martin the Master Gardener's pig pen in Draynor Village.")
|
||||
);
|
||||
|
||||
private String text;
|
||||
private String npc;
|
||||
private WorldPoint location;
|
||||
private String area;
|
||||
private final String text;
|
||||
@Nullable
|
||||
private String question;
|
||||
private final String npc;
|
||||
private final WorldPoint location;
|
||||
private final String area;
|
||||
@Nullable
|
||||
private String answer;
|
||||
private final String question;
|
||||
@Nullable
|
||||
private final String answer;
|
||||
|
||||
private CipherClue(String text, WorldPoint location, String area)
|
||||
{
|
||||
this.text = "The cipher reveals where to dig next: " + text;
|
||||
this.npc = null;
|
||||
this.location = location;
|
||||
this.area = area;
|
||||
this.question = null;
|
||||
this.answer = null;
|
||||
}
|
||||
|
||||
private CipherClue(String text, String npc, WorldPoint location, String area)
|
||||
{
|
||||
@@ -89,11 +101,16 @@ public class CipherClue extends ClueScroll implements TextClueScroll, NpcClueScr
|
||||
public void makeOverlayHint(PanelComponent panelComponent, ClueScrollPlugin plugin)
|
||||
{
|
||||
panelComponent.getChildren().add(TitleComponent.builder().text("Cipher Clue").build());
|
||||
panelComponent.getChildren().add(LineComponent.builder().left("NPC:").build());
|
||||
panelComponent.getChildren().add(LineComponent.builder()
|
||||
.left(getNpc())
|
||||
.leftColor(TITLED_CONTENT_COLOR)
|
||||
.build());
|
||||
|
||||
final String clueNpc = getNpc();
|
||||
if (clueNpc != null)
|
||||
{
|
||||
panelComponent.getChildren().add(LineComponent.builder().left("NPC:").build());
|
||||
panelComponent.getChildren().add(LineComponent.builder()
|
||||
.left(clueNpc)
|
||||
.leftColor(TITLED_CONTENT_COLOR)
|
||||
.build());
|
||||
}
|
||||
|
||||
panelComponent.getChildren().add(LineComponent.builder().left("Location:").build());
|
||||
panelComponent.getChildren().add(LineComponent.builder()
|
||||
|
||||
@@ -325,7 +325,8 @@ public class CrypticClue extends ClueScroll implements TextClueScroll, NpcClueSc
|
||||
new CrypticClue("Search the crates in the fruit store just east of the Hosidius town centre.", CRATES_27533, new WorldPoint(1799, 3613, 0), "Search the crates in the back room of the Hosidius fruit store."),
|
||||
new CrypticClue("A graceful man of many colours, his crates must be full of many delights.", "Hill Giant", CRATE_42067, new WorldPoint(1506, 3590, 2), "Kill any Hill Giant for a medium key. Then search the crate on the top floor of Osten's clothing shop in Shayzien."),
|
||||
new CrypticClue("Search the basket of apples in an orchard, south of the unknown grave surrounded by white roses.", APPLE_BASKET, new WorldPoint(1718, 3626, 0), "Search the middle apple basket in the apple orchard north of Hosidius."),
|
||||
new CrypticClue("Dig in the lair of red wings, within the temple of the Sun and Moon.", new WorldPoint(1820, 9935, 0), "Forthos Dungeon. In the center of the red dragons.")
|
||||
new CrypticClue("Dig in the lair of red wings, within the temple of the Sun and Moon.", new WorldPoint(1820, 9935, 0), "Forthos Dungeon. In the center of the red dragons."),
|
||||
new CrypticClue("Within the town of Lumbridge lives a man named Bob. He walks out of his door and takes 1 step east, 7 steps north, 5 steps west and 1 step south. Once he arrives, he digs a hole and buries his treasure.", new WorldPoint(3230, 3209, 0), "Just west of the bush outside Bob's axe shop in Lumbridge.")
|
||||
);
|
||||
|
||||
private final String text;
|
||||
|
||||
@@ -89,7 +89,9 @@ public class MapClue extends ClueScroll implements ObjectClueScroll
|
||||
new MapClue(CLUE_SCROLL_ELITE_19783, new WorldPoint(2202, 3062, 0), "Zul-Andra. Fairy ring BJS"),
|
||||
new MapClue(CLUE_SCROLL_ELITE_19784, new WorldPoint(1815, 3852, 0), "At the Soul Altar, north-east of the Arceuus essence mine."),
|
||||
new MapClue(CLUE_SCROLL_ELITE_19785, new WorldPoint(3538, 3208, 0), "East of Burgh de Rott."),
|
||||
new MapClue(CLUE_SCROLL_ELITE_19786, new WorldPoint(2703, 2716, 0), CRATE_6616, "The crate in south-western Ape Atoll")
|
||||
new MapClue(CLUE_SCROLL_ELITE_19786, new WorldPoint(2703, 2716, 0), CRATE_6616, "The crate in south-western Ape Atoll"),
|
||||
new MapClue(TREASURE_SCROLL_23068, new WorldPoint(3203, 3213, 0), "Behind Lumbridge Castle, just outside the kitchen door"),
|
||||
new MapClue(MYSTERIOUS_ORB_23069, new WorldPoint(3108, 3262, 0), "South-west of the wheat field east of Draynor Village.")
|
||||
);
|
||||
|
||||
private final int itemId;
|
||||
|
||||
Reference in New Issue
Block a user