1package com.runehive.content.skill.impl.hunter.net;
3import com.runehive.Config;
4import com.runehive.content.activity.randomevent.RandomEventHandler;
5import com.runehive.content.skill.impl.hunter.net.impl.Impling;
6import com.runehive.game.action.impl.HunterRespawnTask;
7import com.runehive.game.task.Task;
8import com.runehive.game.world.World;
9import com.runehive.game.world.entity.mob.npc.Npc;
10import com.runehive.game.world.entity.mob.player.Player;
11import com.runehive.game.world.entity.skill.Skill;
12import com.runehive.game.world.items.ItemDefinition;
13import com.runehive.game.world.position.Position;
14import com.runehive.net.packet.out.SendMessage;
15import com.runehive.util.Utility;
26 private final int jar;
33 this.position =
npc.getPosition();
48 if (!
player.equipment.contains(10010) && !canBarehandImpling) {
49 player.send(
new SendMessage(
"You need to be wielding a butterfly net to do this!"));
59 if (
player.inventory.isFull()) {
60 player.message(
"You do not have any free inventory spaces to do this!");
64 return !
player.locking.locked();
71 var anim = !
player.equipment.contains(10010) ? 7171 : 6606;
77 boolean success =
true;
87 player.message(
"You catch the " +
npc.getName() +
" and place it in the jar.");
90 player.playerAssistant.activateSkilling(1);
92 player.message(
"You fail to catch the " +
npc.getName() +
".");
The class that contains setting-related constants for the server.
static final double HUNTER_MODIFICATION
The experience modification for hunter.
static void trigger(Player player)
void onCancel(boolean logout)
A function executed on cancellation.
boolean canSchedule()
A function executed on registration.
Netting(Player player, Npc npc, int experience, int levelRequired, int jar, int reward)
void execute()
A function representing the unit of work that will be carried out.
void onSchedule()
A function executed on registration.
Teleports an entity to another part of the world.
synchronized final void cancel()
Cancels all subsequent executions.
Task(boolean instant, int delay)
Creates a new Task.
Represents the game world.
static void schedule(Task task)
Submits a new event.
Represents a non-player character in the in-game world.
This class represents a character controlled by a player.
Represents a trainable and usable skill.
static final int HUNTER
The hunter skill id.
Represents all of an in-game Item's attributes.
static ItemDefinition get(int id)
Gets an item definition.
String getName()
Gets the item name.
Represents a single tile on the game world.
The OutgoingPacket that sends a message to a Players chatbox in the client.
Handles miscellaneous methods.
static int random(int bound)
static String getAOrAn(String nextWord)
A or an.
Holds all the impling data.
static Optional< Impling > forId(int impling)