1package com.osroyale.content;
3import com.osroyale.content.achievement.AchievementHandler;
4import com.osroyale.game.world.entity.mob.player.Player;
5import com.osroyale.game.world.entity.mob.player.PlayerRight;
6import com.osroyale.game.world.entity.skill.Skill;
7import com.osroyale.net.packet.out.SendMessage;
8import com.osroyale.net.packet.out.SendPlayerIndex;
9import com.osroyale.net.packet.out.SendString;
10import com.osroyale.net.packet.out.SendTooltip;
11import com.osroyale.util.Utility;
13import java.util.Optional;
48 "Created: ", player.created,
51 "Clan:", player.clanChannel ==
null ?
"None" : player.clanChannel.getName(),
53 "Kills/Deaths/KDR",
"" + player.kill +
"/" + player.death +
"/" + player.playerAssistant.
kdr() +
"",
54 "Current KC:",
"" + player.killstreak.streak,
67 player.message(
"You must get closer to that player if you want to view their profile!");
72 player.send(
new SendMessage(
"You can't view profiles whilst in combat!"));
76 for (
int index = 0,
string = 51832; index <
Skill.
SKILL_COUNT; index++,
string += 2) {
77 Skill skill = other.skills.
get(index);
79 player.send(
new SendString(skill.getMaxLevel() +
"<col=" + color +
"></col>/<col=" + color +
">" + skill.getMaxLevel(),
string));
83 for (String context :
string(other)) {
91 player.managing = Optional.of(other);
102 player.send(
new SendMessage(
"You are now viewing " + other.
getName() +
"'s profile."));
103 player.interfaceManager.
open(51800);
static void open(Player player, Player other)
static String[] string(Player player)
static int getTotalCompleted(Player player)
int getPrestigeColor(int skill)
void open(int identification)
Combat< Player > getCombat()
static final int SKILL_COUNT
boolean isWithinDistance(Position other, int radius)
static String formatDigits(final int amount)
static String formatPrice(final long amount)
static String getCrown(Player player)
static boolean isModerator(Player player)