1package com.runehive.content.skill.impl.slayer;
3import com.runehive.game.world.entity.mob.player.Player;
4import com.runehive.game.world.items.Item;
5import com.runehive.net.packet.out.*;
6import com.runehive.util.Utility;
8import java.util.Arrays;
70 for (
int index = 0,
string = 46753; index < 5; index++,
string += 3) {
75 for (
int index = 0,
string = 46753; index < player.
slayer.
getBlocked().size(); index++,
string += 3) {
77 player.
send(
new SendTooltip(
"Unblock <col=FF981F>" + name +
"</col>",
string - 1));
87 player.
send(
new SendString(
"Current slayer partner: None!", 46811));
94 player.
send(
new SendTooltip(
"Purchase <col=FF981F>" + unlockable.getName() +
"</col>",
string));
100 player.
send(
new SendString(unlockable.getCost() +
" points",
string));
122 for (
int index = 0; index < 3; index++) {
131 List<SlayerTask> task_list;
132 task_list = Arrays.asList(
SlayerTask.values());
135 for (
int index = 0; index < 35; index++) {
157 player.
send(
new SendString(
"<col=" + (index == 0 ?
"FF981F" :
"ff9933") +
">Main", 46710));
158 player.
send(
new SendString(
"<col=" + (index == 1 ?
"FF981F" :
"ff9933") +
">Duo", 46711));
159 player.
send(
new SendString(
"<col=" + (index == 2 ?
"FF981F" :
"ff9933") +
">Unlocks", 46712));
160 player.
send(
new SendString(
"<col=" + (index == 3 ?
"FF981F" :
"ff9933") +
">Store", 46713));
Handles the slayer skill.
List< SlayerTask > getBlocked()
Set< SlayerUnlockable > getUnlocked()
final GenericAttributes attributes
This class represents a character controlled by a player.
void send(OutgoingPacket encoder)
The container class that represents an item that can be interacted with.
final void setAmount(int amount)
Sets the quantity of this item.
The OutgoingPacket responsible for changing settings on a client.
The OutgoingPacket that sends a string to a Players itemcontainer in the client.
Handles miscellaneous methods.
static String formatDigits(final int amount)
Formats digits for integers.
public< K, E > E get(K key)
Gets a generic attribute.
MAIN
The main itemcontainer - all the general information.
UNLOCK
The unlock itemcontainer - holds all the unlockable perks.
int getIdentification()
Gets the itemcontainer identification.
REWARD
The reward itemcontainer - holds all the rewards for slayer points.
CONFIRM
The confirm itemcontainer - keeps player confirmation on purchase.
SlayerTab(int identification)
Constructs a new SlayerTab.
DUO
The duo itemcontainer - all the duo information.
static void refresh(Player player, SlayerTab tab)
Refreshes the tab itemcontainer.
final int identification
The itemcontainer identification.
static void setFrame(Player player, int index)
Sets the tab frame.
TASK
The tasks itemcontainer - displays all the available task for player.
Holds all the slayer task data.
String getCombatLevel()
Gets the combat level of the npc.
String getName()
Gets the name of the task.
String getLocation()
Gets the teleport string.
Holds all the unlockable slayer rewards and tasks.
String getName()
Gets a the unlockable name.
String getDescription()
Gets the unlockable description.
int getItem()
Gets the unlockable item display.
int getCost()
Gets the unlockable cost.