Advertisement
warc222

Share]Custom Siege Period

Sep 17th, 2015
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. ### Eclipse Workspace Patch 1.0
  2. #P trunk2
  3. Index: gameserver/head-src/com/l2jfrozen/Config.java
  4. ===================================================================
  5. --- gameserver/head-src/com/l2jfrozen/Config.java (revision 936)
  6. +++ gameserver/head-src/com/l2jfrozen/Config.java (working copy)
  7. @@ -2408 +2409 @@
  8. public static boolean NEWBIE_CHAR_BUFF;
  9. +public static int ALT_SIEGE_PERIOD;
  10.  
  11. @@ -2579 +2580 @@
  12. NEWBIE_CHAR_BUFF = Boolean.parseBoolean(L2JFrozenSettings.getProperty("NewbieCharBuff", "False"));
  13. +ALT_SIEGE_PERIOD = Integer.parseInt(L2JFrozenSettings.getProperty("SiegePeriod", "14"));
  14.  
  15. Index: gameserver/config/fuctions/l2jfrozen.properties
  16. ===================================================================
  17. --- gameserver/config/fuctions/l2jfrozen.properties (revision 912)
  18. +++ gameserver/config/fuctions/l2jfrozen.properties (working copy)
  19. # -----------------------------------------------------
  20. # Hero Custom Item Configuration -
  21. # -----------------------------------------------------
  22. # When ActiveChar will use this item will gain Hero Status.
  23. EnableHeroCustomItem = False
  24. # Id Itemn Need's
  25. HeroCustomItemId = 3481
  26. # Hero for X days, 0 forever.
  27. HeroCustomDay = 0
  28.  
  29. +#==============================#
  30. +# Custom Siege Period #
  31. +#==============================#
  32. +# Make Siege Every Week?
  33. +# Default: 14 Is Every 2 Weeks
  34. +SiegePeriod = 14
  35.  
  36. Index: gameserver/head-src/com/l2jfrozen/gameserver/model/enity/siege/Siege.java
  37. ===================================================================
  38. --- gameserver/head-src/com/l2jfrozen/gameserver/model/enity/siege/Siege.java (revision 933)
  39. +++ gameserver/head-src/com/l2jfrozen/gameserver/model/enity/siege/Siege.java (working copy)
  40. @@ -1694 +1694 @@
  41. -getCastle().getSiegeDate().add(Calendar.DAY_OF_MONTH, 14);
  42. +getCastle().getSiegeDate().add(Calendar.DAY_OF_MONTH, Config.ALT_SIEGE_PERIOD); // Schedule to happen in 14 days
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement