1package com.osroyale.game.task.impl;
3import com.osroyale.game.task.Task;
4import com.osroyale.net.packet.out.SendMessage;
5import com.osroyale.game.world.entity.mob.player.Player;
6import com.osroyale.game.world.items.Item;
7import com.osroyale.game.world.position.Area;
8import com.osroyale.game.world.position.Position;
45 private final Player player;
56 return !player.warriorGuidTask;
61 player.warriorGuidTask =
true;
66 player.warriorGuidTask =
false;
71 if (player.isDead() || !player.isValid() || !player.inActivity() || !
Area.inCyclops(player)) {
76 if (!player.inventory.contains(
new Item(8851, 10))) {
77 if (
Area.inCyclops(player)) {
78 player.move(
new Position(2846, 3540, 2));
80 player.dialogueFactory.sendStatement(
"You have been removed from the Cyclops",
"room as you have run out of tokens.").execute();
85 player.inventory.remove(
new Item(8851, 10));
86 player.message(
"10 tokens have been removed from your inventory.");
88 if (!player.inventory.contains(
new Item(8851, 10))) {
89 if (
Area.inCyclops(player)) {
90 player.move(
new Position(2846, 3540, 2));
92 player.dialogueFactory.sendStatement(
"You have been removed from the Cyclops",
"room as you have run out of tokens.").execute();
synchronized final void cancel()
Task attach(Object newKey)
Task(boolean instant, int delay)
void onCancel(boolean logout)
WarriorGuildCyclopEvent(Player player)