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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock