Jump to content
  • 0

L2jO 15 days olympiad and weekly siege.


Question

Posted

Hi to all, am new on this and on server developing, am starting my server and it will be high rates, so want to know how to change olympiad cicle from 1 month to 15 days, and set sieges to all weekends, or at least the oly thing.

If you can't help me with giving me the code, just give me some hints how to do it, i will appreciate anyway.

Thanks in advance.

2 answers to this question

Recommended Posts

  • 0
Posted

siege.java

/** Set the date for the next siege. */

    private void setNextSiegeDate()

    {

        while (getCastle().getSiegeDate().getTimeInMillis() < Calendar.getInstance().getTimeInMillis())

        {

            // Set next siege date if siege has passed

            getCastle().getSiegeDate().add(Calendar.DAY_OF_MONTH, 14); // Schedule to happen in 14 days

        }

        _isRegistrationOver = false; // Allow registration for next siege

    }

 

change 14 for 7

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...