Jump to content

Recommended Posts

Posted
Index: TrunK/L2JCannabis_CORE/java/net/sf/l2j/Config.java

===================================================================

--- a/TrunK/L2JCannabis_CORE/java/net/sf/l2j/Config.java

+++ b/TrunK/L2JCannabis_CORE/java/net/sf/l2j/Config.java

@@ -263,43 +263,46 @@

        public static int CLAN_SCORE_SIEGE;

+      public static int DAY_TO_SIEGE;

        public static int GEODATA_MODE;

 

 

 

 

 

 

                                BONUS_CLAN_SCORE_SIEGE = Integer.parseInt(l2ddtSettings.getProperty("BonusClanScoreSiege", "1000"));

+                                DAY_TO_SIEGE = Integer.parseInt(l2ddtSettings.getProperty("DayToSiege", "14"));

                                ONLINE_PLAYERS_AT_STARTUP = Boolean.parseBoolean(l2ddtSettings.getProperty("ShowOnlinePlayers", "true"));

Index: TrunK/L2JCannabis_CORE/java/net/sf/l2j/gameserver/model/entity/Siege.java

===================================================================

--- a/TrunK/L2JCannabis_CORE/java/net/sf/l2j/gameserver/model/entity/Siege.java

+++ b/TrunK/L2JCannabis_CORE/java/net/sf/l2j/gameserver/model/entity/Siege.java

@@ -263,43 +263,46 @@

        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);

+                      getCastle().getSiegeDate().add(Calendar.DAY_OF_MONTH, Config.DAY_TO_SIEGE);

                }

                _isRegistrationOver = false; // Allow registration for next siege

        }

Index: TrunK/L2JCannabis_CORE/java/config/L2JCannabis.ini

===================================================================

--- a/TrunK/L2JCannabis_CORE/java/config/L2JCannabis.ini

+++ b/TrunK/L2JCannabis_CORE/java/config/L2JCannabis.ini

@@ -263,43 +263,46 @@

 

+

+#Number of days between sieges

+DayToSiege = 14

+

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
Reply to this topic...

×   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...