1package com.runehive.content.prestige;
3import com.runehive.game.world.World;
4import com.runehive.game.world.entity.mob.player.Player;
5import com.runehive.game.world.entity.skill.Skill;
6import com.runehive.game.world.items.Item;
7import com.runehive.net.packet.out.SendItemOnInterface;
8import com.runehive.net.packet.out.SendMessage;
9import com.runehive.net.packet.out.SendScrollbar;
10import com.runehive.net.packet.out.SendString;
11import com.runehive.util.MessageColor;
13import java.util.Arrays;
14import java.util.HashSet;
17import static com.runehive.game.world.items.containers.bank.VaultCurrency.COINS;
28 private static final String
COLOR =
"<col=354CE6>";
54 player.interfaceManager.open(52000);
66 player.skills.setCombatLevel();
67 player.bankVault.add(COINS, 1_000_000);
76 for (
int i = 0,
string = 37114; i < totalPerks; i++) {
83 player.send(
new SendString(
"<col=000000>This is a list of all the available perks.", 37111));
84 player.send(
new SendString(
"<col=000000>Perks with green names indicate that it is active.", 37112));
90 player.interfaceManager.open(37100);
106 player.inventory.remove(item);
141 return Integer.toHexString(
getColor(tier));
void open()
Opens the prestige panel.
void perkInformation()
Displays all the perk information.
int totalPrestige
The total amount of prestiges.
int[] prestige
The prestiges.
boolean hasPerk(PrestigePerk perk)
int prestigePoint
The prestige points.
final Player player
The player instance.
boolean activatePerk(Item item)
Activates the perk.
void prestige(PrestigeData data)
Handles prestiging the skill.
String getColorInterface(int tier)
Gets the prestige color based on the tier for the itemcontainer.
int getColor(int tier)
Gets the prestige color based on the tier.
Prestige(Player player)
Constructs a new Prestige.
Set< PrestigePerk > activePerks
The set of all the active perks for the player.
static final String COLOR
void setPrestigePoint(int prestigePoint)
int getPrestigeColor(int skill)
Gets the current prestige color of the player.
Represents the game world.
static void sendMessage(String... messages)
Sends a global message.
This class represents a character controlled by a player.
Represents a trainable and usable skill.
static String getName(int skill)
Gets the name for a skill id.
static final int SKILL_COUNT
The amount of available skills.
static final int getExperienceForLevel(int level)
Gets the experience for a given level.
The container class that represents an item that can be interacted with.
final int getId()
Gets the identification of this item.
The OutgoingPacket that sends a message to a Players chatbox in the client.
The OutgoingPacket that sends a string to a Players itemcontainer in the client.
static final PrestigeData[] values
final int skill
The skill identification of the prestige.
Handles the perk rewards from prestiging.
static final PrestigePerk[] values
final String description
The description of the perk.
static PrestigePerk forId(int id)
static PrestigePerk forItem(int item)
final String name
The name of the perk.
Holds an enum of colors for ease.