|
|
@ -137,10 +137,20 @@ public class VendorDialogMsg extends ClientNetMsg { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if(contract.getObjectUUID() == 1502040){ |
|
|
|
if(contract.getObjectUUID() == 1502040){ |
|
|
|
|
|
|
|
if(!playerCharacter.getTimestamps().containsKey("lastBoxChange")) |
|
|
|
|
|
|
|
playerCharacter.getTimestamps().put("lastBoxChange",System.currentTimeMillis() - 1000); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(playerCharacter.getTimeStamp("lastBoxChange") + 30000L > System.currentTimeMillis()) { |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if(playerCharacter.isBoxed == false) { |
|
|
|
if(playerCharacter.isBoxed == false) { |
|
|
|
ChatManager.chatSystemInfo(playerCharacter, "You Are Already The Active Character."); |
|
|
|
ChatManager.chatSystemInfo(playerCharacter, "You Are Already The Active Character."); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
playerCharacter.getTimestamps().put("lastBoxChange",System.currentTimeMillis()); |
|
|
|
|
|
|
|
|
|
|
|
playerCharacter.isBoxed = false; |
|
|
|
playerCharacter.isBoxed = false; |
|
|
|
playerCharacter.removeEffectBySource(Enum.EffectSourceType.DeathShroud,50,true); |
|
|
|
playerCharacter.removeEffectBySource(Enum.EffectSourceType.DeathShroud,50,true); |
|
|
|
ChatManager.chatSystemInfo(playerCharacter, "Promoting To Active Duty"); |
|
|
|
ChatManager.chatSystemInfo(playerCharacter, "Promoting To Active Duty"); |
|
|
|