B00D Posted January 22, 2011 Posted January 22, 2011 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); < Quote
l2phanton Posted January 22, 2011 Posted January 22, 2011 Working in the last revision of l2jserver ? I wait your return Quote
An4rchy Posted January 22, 2011 Posted January 22, 2011 already shared. is it so difficult to make 1 config? search before post. Quote
azartik Posted January 23, 2011 Posted January 23, 2011 not bad not bad, but would make someone better off Olympics) Quote
JoeDaFlow Posted January 23, 2011 Posted January 23, 2011 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? Quote
B00D Posted January 23, 2011 Author Posted January 23, 2011 i made it alone, and it is tested last rev of l2j , l2jteon, l2jfrozen Quote
icshiba Posted January 23, 2011 Posted January 23, 2011 Working in the last revision of l2jserver ? I wait your return LOL? haha and why shouldnt work with new rev? LOL? Quote
Fanky Posted January 23, 2011 Posted January 23, 2011 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. Quote
B00D Posted January 23, 2011 Author Posted January 23, 2011 show me the post and lock it or dont spam.... Quote
tati Posted January 26, 2011 Posted January 26, 2011 B00D, can you make a .diff patch for rev. 4488 core on l2jserver.com ? Quote
CriticalError Posted January 27, 2011 Posted January 27, 2011 thanks a lot for the code man, I get for my collection, is usefull share continue sharing Quote
Drakέ Posted February 4, 2011 Posted February 4, 2011 work fine , not bad , keep sharing thank you ^^ Quote
Recommended Posts
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.