From 9f44c02245c7ddf9729703ab4f9a2ab9861a616e Mon Sep 17 00:00:00 2001 From: Badhad <46411657+BadHad@users.noreply.github.com> Date: Mon, 5 Apr 2021 14:04:07 -0400 Subject: [PATCH] Cyclops (WIP) DO NOT PULL YET - 10 tokens to enter the room, if they do not have the tokens then do not let them in and send a message. --- .../content/activity/wguild/cyclopes/CyclopesRoom.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Server/src/main/java/core/game/content/activity/wguild/cyclopes/CyclopesRoom.java b/Server/src/main/java/core/game/content/activity/wguild/cyclopes/CyclopesRoom.java index d48145dcf..106e5fa7b 100644 --- a/Server/src/main/java/core/game/content/activity/wguild/cyclopes/CyclopesRoom.java +++ b/Server/src/main/java/core/game/content/activity/wguild/cyclopes/CyclopesRoom.java @@ -188,8 +188,13 @@ public final class CyclopesRoom extends MapZone implements Plugin { * @param player The player. */ private static void enter(Player player) { - if (!PLAYERS.contains(player)) { + Item tokens = new Item(8851, 10); + if (!PLAYERS.contains(player) && player.getInventory().contains(8851, 10)) { + player.getInventory().remove(tokens); + player.getPacketDispatch().sendMessage("10 of your tokens crumble away as you enter the room."); PLAYERS.add(player); + }else{ + player.getPacketDispatch().sendMessage("You do not have the tokens to enter."); } if (!PULSE.isRunning()) { PULSE.restart();