mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-04 16:49:04 +00:00
Added NPC kill counts with message display (#644)
* Added kill counts with message display * Fixed barrows chest count * Preserve insertion order of NPC IDs for Constants * Added KC command and interfaces * Added more robustness to KC command * Added alias and documentation to new commands * Added more aliases for new commands * Merged slayer KC interface names * Preserve slayerkc nameToKills insertion order and formatting fix * Updated comment * Added missing boss NPC id * Moved giant mole up in set * Emptied out quest interface properly for kc * Fixed whitespace * Fixed formatting * Hide boss KC messages by default
This commit is contained in:
@@ -144,6 +144,24 @@ public abstract class Player {
|
||||
private GateHandler gateHandler = new GateHandler();
|
||||
private SingleGates singleGates = new SingleGates();
|
||||
private DoubleGates doubleGates = new DoubleGates();
|
||||
|
||||
private Map<Integer, Integer> npcKillCounts = new HashMap<>();
|
||||
public boolean displayBossKcMessages = false;
|
||||
public boolean displaySlayerKcMessages = false;
|
||||
public boolean displayRegularKcMessages = false;
|
||||
|
||||
public int getNpcKillCount(int npcId) {
|
||||
return npcKillCounts.getOrDefault(npcId, 0);
|
||||
}
|
||||
|
||||
public Map<Integer, Integer> getNpcKillCounts() {
|
||||
return npcKillCounts;
|
||||
}
|
||||
|
||||
public void incrementNpcKillCount(int npcId, int count) {
|
||||
npcKillCounts.put(npcId, npcKillCounts.getOrDefault(npcId, 0) + count);
|
||||
}
|
||||
|
||||
public int lastMainFrameInterface = -1; //Possibly used in future to prevent packet exploits
|
||||
|
||||
public int getXPRate() { return xpRate; }
|
||||
|
||||
Reference in New Issue
Block a user