1package com.runehive.content.activity.randomevent.impl;
4import com.runehive.net.packet.out.SendMessage;
5import com.runehive.game.Animation;
6import com.runehive.game.world.entity.mob.player.Player;
7import com.runehive.content.activity.randomevent.RandomEvent;
8import com.runehive.content.event.impl.NpcInteractionEvent;
9import com.runehive.game.world.items.Item;
40 if (
event.getOpcode() == 0) {
42 player.dialogueFactory.sendNpcChat(
id,
"Take this lamp as a token of appreciation for playing",
"osroyale.").onAction(() -> {
43 player.dialogueFactory.clear();
47 }
else if (
event.getOpcode() == 1) {
60 "Hello %name, I'm here to grant you a wish!",
61 "Are you there %name? I have something for you!",
62 "C'mon %name, I don't have all day!",
63 "I guess you didn't want a free wish! Had your chance!"
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.
static GenieEvent create(Player player)
Creates a new Genie event.
String[] eventNpcShout()
The event npc shout messages.
GenieEvent(Player player)
Constructs a new GenieEvent.
int eventNpcIdentification()
The event npc identification.
boolean clickNpc(Player player, NpcInteractionEvent event)
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.