Intrepid Posted February 6, 2009 Share Posted February 6, 2009 This is a very easy modification for configure the starting lvl of characters. Index: /Trunk/L2_GameServer/java/config/Maxcheaters.properties =================================================================== --- /Trunk/L2_GameServer/java/config/Maxcheaters.properties (revision 37) +++ /Trunk/L2_GameServer/java/config/Maxcheaters.properties (revision 38) @@ -121,2 +121,9 @@ # UseDefaultSystem need to be False! UseCostumSystem = False + +#--------------------------------------------------------------- +# Character settings - +#--------------------------------------------------------------- +# Allow costum starting lvl False by default +# lvl 85 and 100% instantly +CostumStartLvl = False Index: /Trunk/L2_GameServer/java/net/sf/l2j/Config.java =================================================================== --- /Trunk/L2_GameServer/java/net/sf/l2j/Config.java (revision 37) +++ /Trunk/L2_GameServer/java/net/sf/l2j/Config.java (revision 38) @@ -704,4 +704,5 @@ public static boolean DEFAULT_PK_SYSTEM; public static boolean COSTUM_PK_SYSTEM; + public static boolean ALLOW_CREATE_LVL; //-------------------------------------------------- @@ -1383,4 +1384,5 @@ DEFAULT_PK_SYSTEM = Boolean.parseBoolean(maxcheatersSettings.getProperty("UseDefaultSystem", "True")); COSTUM_PK_SYSTEM = Boolean.parseBoolean(maxcheatersSettings.getProperty("UseCostumSystem", "False")); + ALLOW_CREATE_LVL = Boolean.parseBoolean(maxcheatersSettings.getProperty("CostumStartLvl", "False")); } catch (Exception e) Index: /Trunk/L2_GameServer/java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java =================================================================== --- /Trunk/L2_GameServer/java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java (revision 7) +++ /Trunk/L2_GameServer/java/net/sf/l2j/gameserver/network/clientpackets/CharacterCreate.java (revision 38) @@ -67,4 +67,5 @@ private byte _hairColor; private byte _face; + private long _exp; @Override @@ -84,4 +85,5 @@ _hairColor = (byte)readD(); _face = (byte)readD(); + _exp = 25314000000L; } @@ -174,4 +176,9 @@ newChar.setXYZInvisible(template.spawnX, template.spawnY, template.spawnZ); + if(Config.ALLOW_CREATE_LVL) + { + newChar.removeExpAndSp(newChar.getExp(), 0); + newChar.addExpAndSp(_exp, 0); + } newChar.setTitle(""); Credits to VaNeSs11 from l2jfree forum because of the basics of the code and for me for the config option. I'm tired so when i get up i share it with a .diff file. Quote Link to comment Share on other sites More sharing options...
Kràtos Posted February 6, 2009 Share Posted February 6, 2009 woooah i'll give it a shoot !!! :D I was searching about this .... Ty Intrepid :) Gj Mate! p.s:Also added at collection ;) Quote Link to comment Share on other sites More sharing options...
sτrίkε- Posted February 6, 2009 Share Posted February 6, 2009 good job m8... really helpfull! Continue the good work Quote Link to comment Share on other sites More sharing options...
tweety Posted February 7, 2009 Share Posted February 7, 2009 thks man :) i'll use it on my srv:X Quote Link to comment Share on other sites More sharing options...
N1ghtw1sh Posted February 8, 2009 Share Posted February 8, 2009 good :) Quote Link to comment Share on other sites More sharing options...
Gory01 Posted February 8, 2009 Share Posted February 8, 2009 thx Quote Link to comment Share on other sites More sharing options...
LauQ Posted February 18, 2009 Share Posted February 18, 2009 seems good ^^ The .diff file would be nice thanks in advance Quote Link to comment Share on other sites More sharing options...
evilgh0st Posted February 27, 2009 Share Posted February 27, 2009 WoW cool Stuff Quote Link to comment Share on other sites More sharing options...
Stealth Posted February 28, 2009 Share Posted February 28, 2009 Good Job , this is perfect for a pvp server instead of filling the starting areas with mobs! :P Quote Link to comment Share on other sites More sharing options...
*~!ĈħâðيȘ۸μấيŧۼŔ™ Posted February 28, 2009 Share Posted February 28, 2009 Its Great ! I Serch for smt Like This Many Time ! ---| Testing |--- Quote Link to comment Share on other sites More sharing options...
Chandy Posted March 4, 2009 Share Posted March 4, 2009 This only works with eclipse and latest gracia version? Cuz I have server interlude and don't have more versions to compile >.< . Thx. Quote Link to comment Share on other sites More sharing options...
Intrepid Posted March 4, 2009 Author Share Posted March 4, 2009 This only works with eclipse and latest gracia version? Cuz I have server interlude and don't have more versions to compile >.< . Thx. it works on all cronicle i think i work only with the newest chronicle Quote Link to comment Share on other sites More sharing options...
jossoo Posted March 4, 2009 Share Posted March 4, 2009 cool...i will try it...tnx Intrepid Quote Link to comment Share on other sites More sharing options...
kasanostra Posted March 4, 2009 Share Posted March 4, 2009 thx Quote Link to comment Share on other sites More sharing options...
kindas Posted March 5, 2009 Share Posted March 5, 2009 Nice share :) Quote Link to comment Share on other sites More sharing options...
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.