Browse Source

new box flag system

lakebane
FatBoy-DOTC 2 weeks ago
parent
commit
5ba476e5a5
  1. 29
      src/engine/objects/PlayerCharacter.java

29
src/engine/objects/PlayerCharacter.java

@ -5202,33 +5202,12 @@ public class PlayerCharacter extends AbstractCharacter { @@ -5202,33 +5202,12 @@ public class PlayerCharacter extends AbstractCharacter {
this.safeZone = this.isInSafeZone();
if(this.isActive && this.enteredWorld) {
if (!this.timestamps.containsKey("nextBoxCheck"))
this.timestamps.put("nextBoxCheck", System.currentTimeMillis() + 10000);
// if (!this.timestamps.containsKey("nextBoxCheck"))
// this.timestamps.put("nextBoxCheck", System.currentTimeMillis() + 1000);
// if (!this.isBoxed && this.timestamps.get("nextBoxCheck") < System.currentTimeMillis()) {
// this.isBoxed = checkIfBoxed(this);
// this.timestamps.put("nextBoxCheck", System.currentTimeMillis() + 10000);
//}
if(this.timestamps.get("nextBoxCheck") < System.currentTimeMillis()) {
//if(this.timestamps.get("nextBoxCheck") < System.currentTimeMillis()) {
updateBoxStatus(checkIfBoxed(this));
this.timestamps.put("nextBoxCheck", System.currentTimeMillis() + 10000);
}
//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);
// }
// this.timestamps.put("nextBoxCheck", System.currentTimeMillis() + 1000);
//}
if (this.level < 10 && this.enteredWorld) {

Loading…
Cancel
Save