Jump to content

[Share] L2Brick High Five project [Updated]


Recommended Posts

I've tested this project and it's ok, but i dont know how to configure it to work for all players. I dont know how to open ports in my TPLINK TL-WR340G/TL-WR340GD router and what ips i must use in loginserver.config and server.config. Can anyone help me?

Link to comment
Share on other sites

how to change olympiad period auto every 2 week? or 1 week?

 

Freya is in config (config\InGameEvents)

# Olympiad End Period Date - day(s) of month
# (e.g. 1 would mean oly period ends every 1st day of month)
# (e.g. 1,15 would mean oly period ends every 1st and 15th day of month)
# <b><font color=red>CAUTION: You should set the AltOlyWPeriod and AltOlyVPeriod according to the changes done here!</font></b>
# Default: 1
AltOlyEndDate = 1

# Olympiad End Period Time - in format hh:mm:ss (24 hours format)
# Default: 12:00:00
AltOlyEndHour = 12:00:00

 

 

Hi5 use this patch:

 

Index: Hi5_Unstable/L2Brick_Server/java/l2/brick/gameserver/model/olympiad/Olympiad.java
===================================================================
--- Hi5_Unstable/L2Brick_Server/java/l2/brick/gameserver/model/olympiad/Olympiad.java	(revision 1149)
+++ Hi5_Unstable/L2Brick_Server/java/l2/brick/gameserver/model/olympiad/Olympiad.java	(working copy)
@@ -578,8 +578,13 @@
		Announcements.getInstance().announceToAll(sm);

		Calendar currentTime = Calendar.getInstance();
-		currentTime.add(Calendar.MONTH, 1);
-		currentTime.set(Calendar.DAY_OF_MONTH, 1);
+		/////////////SETTINGS/////////////
+		//14(days) x 24(hours) = 336
+		//336 = 2 Weeks
+		//168 = 1 Week
+		currentTime.add(Calendar.HOUR, 336);
+		/////////////SETTINGS/////////////
+		currentTime.set(Calendar.DAY_OF_WEEK, Calendar.SUNDAY);
		currentTime.set(Calendar.AM_PM, Calendar.AM);
		currentTime.set(Calendar.HOUR, 12);
		currentTime.set(Calendar.MINUTE, 0);

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.



×
×
  • Create New...