RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
PrestigeDialogue.java
1package com.osroyale.content.dialogue.impl;
2
3import com.osroyale.game.world.entity.mob.player.Player;
4import com.osroyale.content.dialogue.Dialogue;
5import com.osroyale.content.dialogue.DialogueFactory;
6import com.osroyale.content.dialogue.Expression;
7
37
38public class PrestigeDialogue extends Dialogue {
39
41 private static final int POLLY = 345;
42
43 @Override
44 public void sendDialogues(DialogueFactory factory) {
45 Player player = factory.getPlayer();
46 factory.sendNpcChat(POLLY, Expression.HAPPY, "Hello #username, my friend.", "How may I help you today?");
47 factory.sendOption("How do prestiges work?", () -> explainPrestige(factory), "How do perks work?", () -> explainPerks(factory), "Open prestige panel", player.prestige::open, "Nevermind", factory::clear);
48 factory.execute();
49 }
50
51 private void explainPrestige(DialogueFactory factory) {
52 factory.sendNpcChat(POLLY, Expression.HAPPY, "The concept of prestiges is very simple!", "Once you have achieved 200m experience in any non-combat", "skill, you will be permitted to prestige that skill.");
53 factory.sendNpcChat(POLLY, Expression.HAPPY, "Upon prestiging that skill, it will be reset back to 1 and you ", " will receive 1,000,000 coins and 1 prestige point.", "Players are only allowed to prestige each skill up to 5 times.");
54 factory.sendNpcChat(POLLY, Expression.HAPPY, "Each prestige has a different color. You have the ability", "to toggle the colors to display in your skill tab.");
55 }
56
57 private void explainPerks(DialogueFactory factory) {
58 factory.sendNpcChat(POLLY, Expression.HAPPY, "Perks are very simple to use. Once you have accumulated", "prestige points you can access my shop. Within my shops", "are different perks which all have different effects.");
59 factory.sendNpcChat(POLLY, Expression.HAPPY, "You can talk to me if you would like to see all the", "perks and their ability. All perks stack!");
60 }
61}
final DialogueFactory sendOption(String option1, Runnable action1, String option2, Runnable action2)
final DialogueFactory sendNpcChat(int id, String... lines)