Jump to content

Recommended Posts

Posted

Hello mxc members, i made a code for my server. You can edit by config when heroes form and i want to share with you, nothing special

 

net.sf.l2.Config

 

/** Champion Mob reward quantity. */
public static int CHAMPION_REWARD_QTY;
+
+	//Olympiad Heroes
+	public static int OLYMPIAD_HEROES;

TITLE_COLOR_FOR_PK_AMOUNT4 = Integer.decode("0x" + L2JMods.getProperty("TitleForAmount4", "00FF00"));
TITLE_COLOR_FOR_PK_AMOUNT5 = Integer.decode("0x" + L2JMods.getProperty("TitleForAmount5", "00FF00"));

+                    //Olympiad heroes
+                    OLYMPIAD_HEROES = +Integer.parseInt(L2JTeonCustom.getProperty("OlympiadHeroes", "7"));

 

net.sf.l2j.model.olympiad

 

-		currentTime.add(Calendar.MONTH, 1);
-		currentTime.set(Calendar.DAY_OF_MONTH, 1);
+        currentTime.add(Calendar.HOUR, Config.OLYMPIAD_HEROES*24);
+        currentTime.set(Calendar.DAY_OF_WEEK, Calendar.SUNDAY);

 

config.l2jmods

+#=============================================================
+#				Olympiad Days Heroes					       	  
+#	Ex. : 7 for 1 week, 14 for 2 weeks						          
+#=============================================================
OlympiadHeroes = 7

P.S. : If you want to change date : >Calendar.SUNDAY); <

Posted

Working in the last revision of l2jserver ?

 

I wait your return

Obviously

already shared. is it so difficult to make 1 config? search before post.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..