RuneHive-Game
Loading...
Searching...
No Matches
com.runehive.content.dialogue.impl.NieveDialogue Class Reference
Inheritance diagram for com.runehive.content.dialogue.impl.NieveDialogue:
Collaboration diagram for com.runehive.content.dialogue.impl.NieveDialogue:

Public Member Functions

void sendDialogues (DialogueFactory factory)
 Sends a player a dialogue.

Private Member Functions

void sell (DialogueFactory factory)

Additional Inherited Members

Static Public Member Functions inherited from com.runehive.content.dialogue.Dialogue
static final boolean isDialogueButton (int button)
 Checks if the button triggered is an optional dialogue button.
Static Public Attributes inherited from com.runehive.content.dialogue.Dialogue
static final ImmutableList< Integer > DIALOGUE_BUTTONS = ImmutableList.of(2461, 2471, 2482, 2462, 2472, 2483, 2473, 2484, 2485, 2494, 2495, 2496, 2497, 2498)
 The action buttons responsible for dialogues.

Detailed Description

Definition at line 10 of file NieveDialogue.java.

Member Function Documentation

◆ sell()

void com.runehive.content.dialogue.impl.NieveDialogue.sell ( DialogueFactory factory)
private

Definition at line 21 of file NieveDialogue.java.

21 {
22 factory.sendOption("What do I get for my offerings?", () -> {
23 factory.sendNpcChat(6797, "You will get slayer experience and points!");
24 }, "What items can be offered?", () -> {
25 factory.sendStatement("Ensouled heads", "Ancient shards & Dark Totem pieces");
26 }, "Offer all items", () -> {
27 factory.onAction(() -> SlayerOfferings.offer(factory.getPlayer()));
28 }, "Nevermind", factory::clear);
29 }

References com.runehive.content.dialogue.DialogueFactory.getPlayer(), com.runehive.content.skill.impl.slayer.SlayerOfferings.offer(), com.runehive.content.dialogue.DialogueFactory.onAction(), com.runehive.content.dialogue.DialogueFactory.sendNpcChat(), com.runehive.content.dialogue.DialogueFactory.sendOption(), and com.runehive.content.dialogue.DialogueFactory.sendStatement().

Referenced by sendDialogues().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sendDialogues()

void com.runehive.content.dialogue.impl.NieveDialogue.sendDialogues ( DialogueFactory factory)

Sends a player a dialogue.

Parameters
factoryThe factory for this dialogue.

Reimplemented from com.runehive.content.dialogue.Dialogue.

Definition at line 14 of file NieveDialogue.java.

14 {
15 Player player = factory.getPlayer();
16
17 factory.sendNpcChat(6797, Expression.HAPPY, "Hello adventurer, how may I help you?").sendOption("Offer slayer items", () -> sell(factory), "Open slayer manager", () -> factory.onAction(() -> player.slayer.open(SlayerTab.MAIN)), "Nevermind", () -> factory.onAction(player.interfaceManager::close));
18 factory.execute();
19 }

References com.runehive.content.dialogue.DialogueFactory.execute(), com.runehive.content.dialogue.DialogueFactory.getPlayer(), com.runehive.content.dialogue.Expression.HAPPY, com.runehive.content.skill.impl.slayer.SlayerTab.MAIN, com.runehive.content.dialogue.DialogueFactory.onAction(), com.runehive.content.skill.impl.slayer.Slayer.open(), sell(), com.runehive.content.dialogue.DialogueFactory.sendNpcChat(), com.runehive.content.dialogue.DialogueFactory.sendOption(), and com.runehive.game.world.entity.mob.player.Player.slayer.

Here is the call graph for this function:

The documentation for this class was generated from the following file: