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.

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