1package com.runehive.content.activity.randomevent.impl;
3import com.runehive.net.packet.out.SendMessage;
4import com.runehive.game.Animation;
5import com.runehive.game.world.entity.mob.player.Player;
6import com.runehive.game.world.entity.mob.player.appearance.Gender;
7import com.runehive.content.activity.randomevent.RandomEvent;
8import com.runehive.content.event.impl.NpcInteractionEvent;
9import com.runehive.game.world.items.Item;
37 player.dialogueFactory.sendStatement(
"The mime is no longer interested in you.").execute();
40 if (
event.getOpcode() == 0) {
41 player.dialogueFactory.sendStatement(
"You have been given a reward from the mime.").onAction(() -> {
42 player.dialogueFactory.clear();
46 }
else if (
event.getOpcode() == 1) {
64 "Mr" + (
player.appearance.getGender() ==
Gender.
FEMALE ?
"s" :
"") +
". %name, I have something for you!",
65 "Can you hear me %name? You need to talk to me!",
66 "Listen I don't have all day! Talk to me %name",
67 "That's it! No reward for you %name."
final void finishCooldown()
Sets the cooldown flag to FINISH.
Player player
The player instance.
Npc eventNpc
The event npc.
boolean angered
Flag if the event is angered.
RandomEvent(Player player, int cooldown)
Constructs a new RandomEvent.
int eventNpcIdentification()
The event npc identification.
static MimeEvent create(Player player)
Creates a new Mime event.
boolean clickNpc(Player player, NpcInteractionEvent event)
String[] eventNpcShout()
The event npc shout messages.
MimeEvent(Player player)
Constructs a new MimeEvent.
Class that models a single animation used by an entity.
This class represents a character controlled by a player.
The container class that represents an item that can be interacted with.
The OutgoingPacket that sends a message to a Players chatbox in the client.
Represents a gender for a player character.