|
|
@ -5202,33 +5202,12 @@ public class PlayerCharacter extends AbstractCharacter { |
|
|
|
this.safeZone = this.isInSafeZone(); |
|
|
|
this.safeZone = this.isInSafeZone(); |
|
|
|
|
|
|
|
|
|
|
|
if(this.isActive && this.enteredWorld) { |
|
|
|
if(this.isActive && this.enteredWorld) { |
|
|
|
if (!this.timestamps.containsKey("nextBoxCheck")) |
|
|
|
// if (!this.timestamps.containsKey("nextBoxCheck"))
|
|
|
|
this.timestamps.put("nextBoxCheck", System.currentTimeMillis() + 10000); |
|
|
|
// this.timestamps.put("nextBoxCheck", System.currentTimeMillis() + 1000);
|
|
|
|
|
|
|
|
|
|
|
|
// if (!this.isBoxed && this.timestamps.get("nextBoxCheck") < System.currentTimeMillis()) {
|
|
|
|
//if(this.timestamps.get("nextBoxCheck") < System.currentTimeMillis()) {
|
|
|
|
// this.isBoxed = checkIfBoxed(this);
|
|
|
|
|
|
|
|
// this.timestamps.put("nextBoxCheck", System.currentTimeMillis() + 10000);
|
|
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(this.timestamps.get("nextBoxCheck") < System.currentTimeMillis()) { |
|
|
|
|
|
|
|
updateBoxStatus(checkIfBoxed(this)); |
|
|
|
updateBoxStatus(checkIfBoxed(this)); |
|
|
|
this.timestamps.put("nextBoxCheck", System.currentTimeMillis() + 10000); |
|
|
|
// this.timestamps.put("nextBoxCheck", System.currentTimeMillis() + 1000);
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//if (this.isBoxed){
|
|
|
|
|
|
|
|
//if(!this.title.equals(CharacterTitle.PVE)){
|
|
|
|
|
|
|
|
// this.title = CharacterTitle.PVE;
|
|
|
|
|
|
|
|
// InterestManager.setObjectDirty(this);
|
|
|
|
|
|
|
|
// InterestManager.reloadCharacter(this, false);
|
|
|
|
|
|
|
|
// this.setDirtyLoad(true);
|
|
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
//}else {
|
|
|
|
|
|
|
|
// if (!this.title.equals(CharacterTitle.NONE)) {
|
|
|
|
|
|
|
|
// this.title = CharacterTitle.NONE;
|
|
|
|
|
|
|
|
// InterestManager.setObjectDirty(this);
|
|
|
|
|
|
|
|
// InterestManager.reloadCharacter(this, false);
|
|
|
|
|
|
|
|
// this.setDirtyLoad(true);
|
|
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
//}
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
if (this.level < 10 && this.enteredWorld) { |
|
|
|
if (this.level < 10 && this.enteredWorld) { |
|
|
|