1package com.osroyale.content.bloodmoney;
3import com.osroyale.content.puzzle.PuzzleType;
4import com.osroyale.game.world.World;
5import com.osroyale.game.world.entity.mob.npc.Npc;
6import com.osroyale.game.world.entity.mob.player.Player;
7import com.osroyale.game.world.items.Item;
8import com.osroyale.game.world.object.CustomGameObject;
9import com.osroyale.net.discord.DiscordPlugin;
10import com.osroyale.util.Stopwatch;
11import com.osroyale.util.Utility;
57 private static Player viewer;
80 guardian.boundaries =
Utility.getInnerBoundaries(
data.position, 5, 5);
81 guardian.walkingRadius = 3;
87 DiscordPlugin.sendSimpleMessage(
"Blood money chest has spawned at " +
data.name +
"!");
91 public static void finish(
boolean unlocked) {
100 World.
sendMessage(
"<icon=0><col=FF0000> Blood money chest was unlocked by " + viewer.getName() +
"!");
101 DiscordPlugin.sendSimpleMessage(
"Blood money chest has been unlocked by " + viewer.getName() +
"!");
102 viewer.inventory.addOrDrop(
new Item(20608));
105 viewer.interfaceManager.close(4543);
119 if (viewer !=
null) {
120 if (!viewer.interfaceManager.isInterfaceOpen(4543)) {
123 player.dialogueFactory.
sendStatement(
"There is already someone unlocking the chest!").
execute();
static BloodMoneyPosition data
static void open(Player player)
static CustomGameObject chest
static String getInformation()
static void finish(boolean unlocked)
static final Stopwatch stopwatch
final DialogueFactory sendStatement(String... lines)
final DialogueFactory execute()
void open(PuzzleType puzzleType)
static void sendMessage(String... messages)
static< T > T randomElement(Collection< T > collection)