Jump to content

Recommended Posts

Posted

Config.java

  
@@ -497,6 +497,7 @@
public static boolean ALT_OLY_ANNOUNCE_GAMES;
public static List<Integer> LIST_OLY_RESTRICTED_ITEMS = new FastList<Integer>();
public static int ALT_OLY_ENCHANT_LIMIT;
+ public static byte ALT_OLY_WAIT_TIME;
public static int ALT_MANOR_REFRESH_TIME;
public static int ALT_MANOR_REFRESH_MIN;
public static int ALT_MANOR_APPROVE_TIME;
@@ -2259,6 +2260,8 @@
LIST_OLY_RESTRICTED_ITEMS.add(Integer.parseInt(id));
}
ALT_OLY_ENCHANT_LIMIT = Integer.parseInt(olympiad.getProperty("AltOlyEnchantLimit","-1"));
+ ALT_OLY_WAIT_TIME = Byte.parseByte(olympiad.getProperty("AltOlyWaitTime","120"));
+ if (ALT_OLY_WAIT_TIME != 120 && ALT_OLY_WAIT_TIME != 60 && ALT_OLY_WAIT_TIME != 30 && ALT_OLY_WAIT_TIME != 15 && ALT_OLY_WAIT_TIME != 5) ALT_OLY_WAIT_TIME = 120;
}
catch (Exception e)
{

 

OlympiadGame.java

  
@@ -1218,7 +1218,7 @@
SystemMessage sm;
// Waiting for teleport to arena
byte step = 60;
- for (byte i = 120; i > 0; i -= step)
+ for (byte i = Config.ALT_OLY_WAIT_TIME; i > 0; i -= step)
{
sm = new SystemMessage(SystemMessageId.YOU_WILL_ENTER_THE_OLYMPIAD_STADIUM_IN_S1_SECOND_S);
sm.addNumber(i);

 

olympiad.properties

  
-110,3 +110,9 @@
# Log all Olympiad fights and outcome to olympiad.csv file.
# Default: False
AlyOlyLogFights = False
+
+# Time to wait before teleported to arena.
+# Possible choices are: 120, 60, 30, 15, or 5.
+# If any other number is entered, the time will be set to 120 seconds.
+# Default: 120
+AltOlyWaitTime = 120

 

Credit : l2jserver

Posted

i dont really think l2jserver would of made smth like this

if (ALT_OLY_WAIT_TIME != 120 && ALT_OLY_WAIT_TIME != 60 && ALT_OLY_WAIT_TIME != 30 && ALT_OLY_WAIT_TIME != 15 && ALT_OLY_WAIT_TIME != 5) ALT_OLY_WAIT_TIME = 120;

Thats kinda of stupid :P

 

Posted

i dont really think l2jserver would of made smth like this

if (ALT_OLY_WAIT_TIME != 120 && ALT_OLY_WAIT_TIME != 60 && ALT_OLY_WAIT_TIME != 30 && ALT_OLY_WAIT_TIME != 15 && ALT_OLY_WAIT_TIME != 5) ALT_OLY_WAIT_TIME = 120;

Thats kinda of stupid :P

 

yes, it is custom... l2j follow officialy values

 

 

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