Jump to content

[SHARE] Configurable Olympiad Countdown


Recommended Posts

Hello guys...I found this on l2jserver and i want to share it with all of you!!Its for Gracia Epilogue!

 

 

  1. Index: java/com/l2jserver/Config.java

  2. ===================================================================

  3. --- java/com/l2jserver/Config.java (revision 3945)

  4. +++ java/com/l2jserver/Config.java (working copy)

  5. @@ -497,6 +497,7 @@

  6. public static boolean ALT_OLY_ANNOUNCE_GAMES;

  7. public static List<Integer> LIST_OLY_RESTRICTED_ITEMS = new FastList<Integer>();

  8. public static int ALT_OLY_ENCHANT_LIMIT;

  9. + public static byte ALT_OLY_WAIT_TIME;

  10. public static int ALT_MANOR_REFRESH_TIME;

  11. public static int ALT_MANOR_REFRESH_MIN;

  12. public static int ALT_MANOR_APPROVE_TIME;

  13. @@ -2259,6 +2260,8 @@

  14. LIST_OLY_RESTRICTED_ITEMS.add(Integer.parseInt(id));

  15. }

  16. ALT_OLY_ENCHANT_LIMIT = Integer.parseInt(olympiad.getProperty("AltOlyEnchantLimit","-1"));

  17. + ALT_OLY_WAIT_TIME = Byte.parseByte(olympiad.getProperty("AltOlyWaitTime","120"));

  18. + 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;

  19. }

  20. catch (Exception e)

  21. {

  22. Index: java/com/l2jserver/gameserver/model/olympiad/OlympiadGame.java

  23. ===================================================================

  24. --- java/com/l2jserver/gameserver/model/olympiad/OlympiadGame.java (revision 3942)

  25. +++ java/com/l2jserver/gameserver/model/olympiad/OlympiadGame.java (working copy)

  26. @@ -1218,7 +1218,7 @@

  27. SystemMessage sm;

  28. // Waiting for teleport to arena

  29. byte step = 60;

  30. - for (byte i = 120; i > 0; i -= step)

  31. + for (byte i = Config.ALT_OLY_WAIT_TIME; i > 0; i -= step)

  32. {

  33. sm = new SystemMessage(SystemMessageId.YOU_WILL_ENTER_THE_OLYMPIAD_STADIUM_IN_S1_SECOND_S);

  34. sm.addNumber(i);

  35. Index: java/config/olympiad.properties

  36. ===================================================================

  37. --- java/config/olympiad.properties (revision 3857)

  38. +++ java/config/olympiad.properties (working copy)

  39. @@ -110,3 +110,9 @@

  40. # Log all Olympiad fights and outcome to olympiad.csv file.

  41. # Default: False

  42. AlyOlyLogFights = False

  43. +

  44. +# Time to wait before teleported to arena.

  45. +# Possible choices are: 120, 60, 30, 15, or 5.

  46. +# If any other number is entered, the time will be set to 120 seconds.

  47. +# Default: 120

  48. +AltOlyWaitTime = 120

  49. \ No newline at end of file

 

 

Link to comment
Share on other sites

do you read my post? if someone dont know java then dont make server, we have to many lol servers, java isnt so hard and al who want start server need know minimum base java

Dont talk it to me so ^^

 

PL//

Mi tego mówić nie musisz - mam swój server, ma się dobrze, robię mody i java to żaden wielki problem, więc nie zgrywaj guru ;]

Link to comment
Share on other sites

Dont talk it to me so ^^

 

PL//

Mi tego mówić nie musisz - mam swój server, ma się dobrze, robię mody i java to żaden wielki problem, więc nie zgrywaj guru ;]

hmm, i am not guru like you say, and i dont know wher you read that, i just dont want more noob servers with corrupt admins etc then plz dont offend me

Link to comment
Share on other sites

He can keep hes opinion for him..Here he should answer only for it!

do you know what is the forum? ppl write here self opinion o.O

 

hmm sey my vip can look on someone else profil? if yes try find in my post spam like "ty keep working"

 

but no everyone know java and half of it is copy paste ;) good share

i just answear for post, then plz dont joke...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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

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