Browse Source

error popup when trying to flag unboxed too frequently

lakebane-new
FatBoy-DOTC 6 months ago
parent
commit
f27a4f174b
  1. 1
      src/engine/InterestManagement/InterestManager.java
  2. 10
      src/engine/net/client/msg/VendorDialogMsg.java

1
src/engine/InterestManagement/InterestManager.java

@ -521,6 +521,7 @@ public enum InterestManager implements Runnable {
// Update loaded upbjects lists // Update loaded upbjects lists
player.isBoxed = PlayerCharacter.checkIfBoxed(player);
player.setDirtyLoad(true); player.setDirtyLoad(true);
updateStaticList(player, origin); updateStaticList(player, origin);
updateMobileList(player, origin); updateMobileList(player, origin);

10
src/engine/net/client/msg/VendorDialogMsg.java

@ -98,15 +98,7 @@ public class VendorDialogMsg extends ClientNetMsg {
if(npc.contractUUID == 1502040){ //enrollment officer if(npc.contractUUID == 1502040){ //enrollment officer
if(!playerCharacter.getTimestamps().containsKey("lastBoxFlag")) PlayerCharacter.unboxPlayer(playerCharacter);
playerCharacter.getTimestamps().put("lastBoxFlag",System.currentTimeMillis() - 1000);
if(playerCharacter.getTimestamps().get("lastBoxFlag") + 10000 > System.currentTimeMillis()) {
PlayerCharacter.unboxPlayer(playerCharacter);
}else{
ErrorPopupMsg.sendErrorPopup(playerCharacter, 49);
return;
}
} }
// Restrict disc trainers to only characters who have // Restrict disc trainers to only characters who have

Loading…
Cancel
Save