mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-10 10:20:41 -07:00
Implemented news message for achieving max level in all skills
This commit is contained in:
parent
9b484d337c
commit
12daa614bb
1 changed files with 5 additions and 1 deletions
|
|
@ -124,9 +124,13 @@ public final class LevelUp {
|
||||||
player.getSkills().incrementPrayerPoints(1);
|
player.getSkills().incrementPrayerPoints(1);
|
||||||
}
|
}
|
||||||
if (player.getSkills().getStaticLevel(slot) == 99 && !player.isArtificial()) {
|
if (player.getSkills().getStaticLevel(slot) == 99 && !player.isArtificial()) {
|
||||||
Repository.sendNews(player.getUsername() + " has just achieved level 99 " + Skills.SKILL_NAME[slot]);
|
Repository.sendNews(player.getUsername() + " has just achieved level 99 " + Skills.SKILL_NAME[slot] + "!");
|
||||||
Skillcape.trim(player);
|
Skillcape.trim(player);
|
||||||
player.getEmoteManager().unlock(Emotes.SKILLCAPE);
|
player.getEmoteManager().unlock(Emotes.SKILLCAPE);
|
||||||
|
if (player.skills.getTotalLevel() == 2376)
|
||||||
|
{
|
||||||
|
sendNews(player.getUsername() + " has just achieved level 99 in all skills!");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
player.setAttribute("/save:levelup:" + slot, true);
|
player.setAttribute("/save:levelup:" + slot, true);
|
||||||
sendFlashingIcons(player, slot);
|
sendFlashingIcons(player, slot);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue