1package com.runehive.game.task.impl;
3import com.runehive.game.task.Task;
4import com.runehive.net.packet.out.SendMessage;
5import com.runehive.game.world.entity.mob.player.Player;
6import com.runehive.game.world.items.Item;
7import com.runehive.game.world.position.Area;
8import com.runehive.game.world.position.Position;
29 return !
player.warriorGuidTask;
34 player.warriorGuidTask =
true;
39 player.warriorGuidTask =
false;
49 if (!
player.inventory.contains(
new Item(8851, 10))) {
53 player.dialogueFactory.sendStatement(
"You have been removed from the Cyclops",
"room as you have run out of tokens.").execute();
59 player.message(
"10 tokens have been removed from your inventory.");
61 if (!
player.inventory.contains(
new Item(8851, 10))) {
65 player.dialogueFactory.sendStatement(
"You have been removed from the Cyclops",
"room as you have run out of tokens.").execute();
synchronized final void cancel()
Cancels all subsequent executions.
Task attach(Object newKey)
Attaches a new key.
Task(boolean instant, int delay)
Creates a new Task.
WarriorGuildCyclopEvent(Player player)
Constructs a new WarriorGuildCyclopEvent.
void execute()
A function representing the unit of work that will be carried out.
boolean canSchedule()
A function executed on registration.
void onCancel(boolean logout)
A function executed on cancellation.
final Player player
The player instance.
void onSchedule()
A function executed on registration.
This class represents a character controlled by a player.
The container class that represents an item that can be interacted with.
Handles checking if mobs are in a certain area.
static boolean inCyclops(Interactable entity)
Represents a single tile on the game world.