Jump to content

dsadas

Members
  • Posts

    6
  • Joined

  • Last visited

  • Feedback

    0%

Everything posted by dsadas

  1. hmm i think that now they are 500+ right ?
  2. lol this is the first server (international) in which i haven't lag :D nice connection and the server is good ,see ya later in the game !
  3. bumppp
  4. Hello i have one question ,how i must change this code to set next siege date after 2 or 3 days ? I want to have siege every 2-3 days but i don't know what to change , can anyone help me ? private void setNextSiegeDate() { while (getCastle().getSiegeDate().getTimeInMillis() < Calendar.getInstance().getTimeInMillis()) { if (getCastle().getSiegeDate().get(Calendar.DAY_OF_WEEK) != Calendar.SATURDAY && getCastle().getSiegeDate().get(Calendar.DAY_OF_WEEK) != Calendar.SUNDAY) getCastle().getSiegeDate().set(Calendar.DAY_OF_WEEK, Calendar.SATURDAY); // from CT2.3 Castle sieges are on Sunday, but if server admins allow to set day of the siege // than sieges can occur on Saturdays as well if (getCastle().getSiegeDate().get(Calendar.DAY_OF_WEEK) == Calendar.SATURDAY && !Config.CL_SET_SIEGE_TIME_LIST.contains("day")) getCastle().getSiegeDate().set(Calendar.DAY_OF_WEEK, Calendar.SUNDAY); // set the next siege day to the next weekend getCastle().getSiegeDate().add(Calendar.DAY_OF_MONTH, 7); } if (!SevenSigns.getInstance().isDateInSealValidPeriod(getCastle().getSiegeDate())) getCastle().getSiegeDate().add(Calendar.DAY_OF_MONTH, 7); SystemMessage sm = new SystemMessage(SystemMessageId.S1_ANNOUNCED_SIEGE_TIME); sm.addString(getCastle().getName()); Announcements.getInstance().announceToAll(sm); _isRegistrationOver = false; // Allow registration for next siege }
×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..