Implemented split combat levels

A split combat level (e.g. 50+5) will be displayed for a player when the player is on a PvP world and does not have a summoning pouch or a familiar summoned.
A split combat level will also be shown if the player is on a world with wilderness PvP enabled, the player is in the wilderness, and does not have a summoning pouch or a familiar summoned.
If the world is a PvP world, display other players' combat levels in white if they are outside of combat range, or shades of green/yellow/orange/red if they are within combat range.
If the world is not a PvP world, always display other players' combat levels in shades of green/yellow/orange/red.
This commit is contained in:
zsrv
2023-07-09 03:54:31 +00:00
committed by Ryan
parent a6d5961226
commit 417db14d5c
5 changed files with 33 additions and 13 deletions
@@ -607,9 +607,7 @@ public abstract class Familiar extends NPC implements Plugin<Object> {
setVarp(owner, 1176, 0);
setVarp(owner, 1175, 182986);
setVarp(owner, 1174, -1);
if (owner.getSkullManager().isWilderness()) {
owner.getAppearance().sync();
}
owner.getAppearance().sync();
owner.getInterfaceManager().setViewedTab(3);
}
@@ -178,9 +178,7 @@ public final class FamiliarManager {
} else {
familiar.refreshTimer();
}
if (player.getSkullManager().isWilderness()) {
player.getAppearance().sync();
}
player.getAppearance().sync();
}
/**