Skip to content

Olympiad Heroes Config

Featured Replies

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); <

Working in the last revision of l2jserver ?

 

I wait your return

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

not bad not bad, but would make someone better off Olympics)

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

Yes, It's difficult for me, This topic helped me a lot.

Do you have anythin' against it?

  • Author

i made it alone, and it is tested last rev of l2j , l2jteon, l2jfrozen

Working in the last revision of l2jserver ?

 

I wait your return

LOL? haha and why shouldnt work with new rev? LOL?

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.

  • Author

show me the post and lock it or dont spam....

B00D, can you make a .diff patch for rev. 4488 core on l2jserver.com ?

  • Author

Does it work?

ofc

work fine ,  not bad , keep sharing thank you ^^

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.