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); <
l2phanton Posted January 22, 2011 Posted January 22, 2011 Working in the last revision of l2jserver ? I wait your return
An4rchy Posted January 22, 2011 Posted January 22, 2011 already shared. is it so difficult to make 1 config? search before post.
azartik Posted January 23, 2011 Posted January 23, 2011 not bad not bad, but would make someone better off Olympics)
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?
B00D Posted January 23, 2011 Author Posted January 23, 2011 i made it alone, and it is tested last rev of l2j , l2jteon, l2jfrozen
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?
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.
B00D Posted January 23, 2011 Author Posted January 23, 2011 show me the post and lock it or dont spam....
tati Posted January 26, 2011 Posted January 26, 2011 B00D, can you make a .diff patch for rev. 4488 core on l2jserver.com ?
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
Drakέ Posted February 4, 2011 Posted February 4, 2011 work fine , not bad , keep sharing thank you ^^
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now