How to edit the amount of XP needed to up lvl.
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- armura
- Posts: 40
- Joined: Sat Sep 04, 2010 9:08 pm
How to edit the amount of XP needed to up lvl.
L2J Revision 4419:
L2JDP Revision 7668:
Greetings,
I need change the amount xp needed to up a level.
Like this...
If...
lvl 1, need 200XP to up a lvl 2.
lvl 2, need 300XP to up a lvl 3.
lvl 80, need 200.000xp to up a lvl 81.
My idea is, low lvl, do not change the rate, do not change the XP of mobs...
My idea is, reduce the amount of xp of high lvls...
Before...
lvl 80, need 200.000xp to up a lvl 81.
After change...
lvl 80, need 180.000xp to up a lvl 81.
Question:
Its is possible edit the amount of XP for each lvl?
Where change this values?
Thanks.
OBS: I try use search to find this... but, my english is not good... I have no idea how to find it in english... sorry.
L2JDP Revision 7668:
Greetings,
I need change the amount xp needed to up a level.
Like this...
If...
lvl 1, need 200XP to up a lvl 2.
lvl 2, need 300XP to up a lvl 3.
lvl 80, need 200.000xp to up a lvl 81.
My idea is, low lvl, do not change the rate, do not change the XP of mobs...
My idea is, reduce the amount of xp of high lvls...
Before...
lvl 80, need 200.000xp to up a lvl 81.
After change...
lvl 80, need 180.000xp to up a lvl 81.
Question:
Its is possible edit the amount of XP for each lvl?
Where change this values?
Thanks.
OBS: I try use search to find this... but, my english is not good... I have no idea how to find it in english... sorry.
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: How to edit the amount of XP needed to up lvl.
com.l2jserver.gameserver.model.base.Experience.java
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
- shinomidefuego
- Posts: 122
- Joined: Thu Jun 28, 2007 5:37 pm
- Location: Venezuela
- Contact:
Re: How to edit the amount of XP needed to up lvl.
it is posible to make a character to level up to 90 or 100 lvl changing the code, adding some lines?
sorry just start to learn java is dificult but not impossible
sorry just start to learn java is dificult but not impossible

MMMMMmmmmmMMMMM
-
- Posts: 173
- Joined: Fri Nov 06, 2009 6:32 am
- Location: Argentina
Re: How to edit the amount of XP needed to up lvl.
If possible, you have to add some additional lines and define their experience.
Edit: Here I let you add lines.
com/l2jserver/gameserver/model/base/Experience.Java
Good luck
Edit: Here I let you add lines.
com/l2jserver/gameserver/model/base/Experience.Java
Code: Select all
11844000000L, //level 83 15472800000L, //level 84 19827360000L, //level 85 25314000000L++ 18899894999L,+ 20999894999L,+ 23099894999L,+ 25199894999L, //level 90+ 27299894999L,+ 29399894999L,+ 31499894999L,+ 33599894999L,+ 35699894999L, //level 95+ 37799894999L,+ 39899894999L,+ 41999894999L,+ 44099894999L, //level 99+ 44099895000L+ //46199894999L, //level 100, displays only in stats (alt+t) window! (level 0 in normal disp)+ //46199895000L }; /** * This is the first UNREACHABLE level.<BR> * ex: If you want a max at 85 & 100.00%, you have to put 86.<BR><BR> */- public final static byte MAX_LEVEL = 86;+ public final static byte MAX_LEVEL = 100; public final static byte MIN_NEWBIE_LEVEL = 6; public final static byte MAX_NEWBIE_LEVEL = 39;}
Someone once told me: "The easiest way of doing things, making them the hard way" 

-
- Posts: 142
- Joined: Sat Mar 15, 2008 11:04 pm
- Location: Argentina
- Contact:
Re: How to edit the amount of XP needed to up lvl.
but the client supports this? 

Sorry everyone for my very bad English, I speak Spanish
- Aikimaniac
- L2j Inner Circle
- Posts: 3048
- Joined: Sun Aug 07, 2005 11:42 pm
- Location: Slovakia
- ZaKaX
- Posts: 357
- Joined: Thu Nov 22, 2007 6:28 am
- Location: Somewhere in Asia.
Re: How to edit the amount of XP needed to up lvl.
Wrong. It does 



¿ Que dice los cojones de la nina ?
-
- Advanced User
- Posts: 1440
- Joined: Wed Apr 15, 2009 10:07 am
Re: How to edit the amount of XP needed to up lvl.
looks like they are preparing the client for level 100+....
- ZaKaX
- Posts: 357
- Joined: Thu Nov 22, 2007 6:28 am
- Location: Somewhere in Asia.
Re: How to edit the amount of XP needed to up lvl.
Nah, it's not textures.JMD wrote:looks like they are preparing the client for level 100+....
¿ Que dice los cojones de la nina ?
-
- Posts: 173
- Joined: Fri Nov 06, 2009 6:32 am
- Location: Argentina
Re: How to edit the amount of XP needed to up lvl.
is no texture, but in "interlude" to me critical error came when I wanted to pass the 100 level..
Someone once told me: "The easiest way of doing things, making them the hard way" 

- shinomidefuego
- Posts: 122
- Joined: Thu Jun 28, 2007 5:37 pm
- Location: Venezuela
- Contact:
Re: How to edit the amount of XP needed to up lvl.
excelent!! thanks for the help!! i will test it right now!!

MMMMMmmmmmMMMMM
- armura
- Posts: 40
- Joined: Sat Sep 04, 2010 9:08 pm
Re: How to edit the amount of XP needed to up lvl.
I work with values of 'amount xp', and is here...
My original idea is modify the amount XP lvl by lvl.
Like this...
From the lvl 1 at lvl 40, all the lvl is with rate 20x.
From the lvl 41 to 86, the rate is gradually increased to rate 40x.
But, is hard work increment the XP from all the mobs (its crazy).
So... why not reduce the 'amount xp' needed to up next lvl?
+------------------------------------------------------
| lvl | ..OLD XP.. | ..NEW XP. | NEW RATE |
|36 | 09.850.111 | 09.850.111 | _____20,00 |
|37 | 11.066.012 | 11.066.012 | _____20,00 |
|38 | 12.395.149 | 12.395.149 | _____20,00 |
|39 | 13.844.879 | 13.844.879 | _____20,00 | This is last rate 20x.
|40 | 15.422.851 | 15.101.542 | _____20,43 | This is first lvl with increment xp.
|41 | 17.137.002 | 16.437.533 | _____20,85 | Line by line, the xp is increased by the reduce of 'amount xp'.
|42 | 18.995.573 | 17.855.839 | _____21,28 |
|43 | 21.007.103 | 19.359.487 | _____21,70 |
|44 | 23.180.442 | 20.951.553 | _____22,13 |
|45 | 25.524.751 | 22.635.157 | _____22,55 |
|46 | 28.049.509 | 24.413.462 | _____22,98 |
|47 | 30.764.519 | 26.289.680 | _____23,40 |
|48 | 33.679.907 | 28.267.065 | _____23,83 |
|49 | 36.806.133 | 30.348.917 | _____24,26 |
|50 | 40.153.995 | 32.538.582 | _____24,68 |
+------------------------------------------------------
In fact, my idea is not increment the xp of all the mobs by the lvl.
The idea is reduce the 'amount xp', lvl by lvl, from a intial rate to finish rate.
A server with idea is capable this:
Low lvl with low rate xp and high lvl with high rate xp.
In my server, is a bad idea a high rate server, no one knows to play lineage.
The best option is a low rate server.
I am not still aplly the new values in the java. Maybe soon... 8D
Thanks to jurchiks and others in the post viewtopic.php?f=81&t=19286
My original idea is modify the amount XP lvl by lvl.
Like this...
From the lvl 1 at lvl 40, all the lvl is with rate 20x.
From the lvl 41 to 86, the rate is gradually increased to rate 40x.
But, is hard work increment the XP from all the mobs (its crazy).
So... why not reduce the 'amount xp' needed to up next lvl?
+------------------------------------------------------
| lvl | ..OLD XP.. | ..NEW XP. | NEW RATE |
|36 | 09.850.111 | 09.850.111 | _____20,00 |
|37 | 11.066.012 | 11.066.012 | _____20,00 |
|38 | 12.395.149 | 12.395.149 | _____20,00 |
|39 | 13.844.879 | 13.844.879 | _____20,00 | This is last rate 20x.
|40 | 15.422.851 | 15.101.542 | _____20,43 | This is first lvl with increment xp.
|41 | 17.137.002 | 16.437.533 | _____20,85 | Line by line, the xp is increased by the reduce of 'amount xp'.
|42 | 18.995.573 | 17.855.839 | _____21,28 |
|43 | 21.007.103 | 19.359.487 | _____21,70 |
|44 | 23.180.442 | 20.951.553 | _____22,13 |
|45 | 25.524.751 | 22.635.157 | _____22,55 |
|46 | 28.049.509 | 24.413.462 | _____22,98 |
|47 | 30.764.519 | 26.289.680 | _____23,40 |
|48 | 33.679.907 | 28.267.065 | _____23,83 |
|49 | 36.806.133 | 30.348.917 | _____24,26 |
|50 | 40.153.995 | 32.538.582 | _____24,68 |
+------------------------------------------------------
In fact, my idea is not increment the xp of all the mobs by the lvl.
The idea is reduce the 'amount xp', lvl by lvl, from a intial rate to finish rate.
A server with idea is capable this:
Low lvl with low rate xp and high lvl with high rate xp.
In my server, is a bad idea a high rate server, no one knows to play lineage.
The best option is a low rate server.
I am not still aplly the new values in the java. Maybe soon... 8D
Thanks to jurchiks and others in the post viewtopic.php?f=81&t=19286
- jurchiks
- Posts: 6769
- Joined: Sat Sep 19, 2009 4:16 pm
- Location: Eastern Europe
Re: How to edit the amount of XP needed to up lvl.
Well, there are other options. For example, this:
Of course, you could make the level requirement and multiplier configurable if you want.
P.S. this multiplication couldn't be added in the original method which gets the npc template's exp because there is no reference to the killer.
Code: Select all
Index: java/com/l2jserver/gameserver/model/actor/L2Attackable.java===================================================================--- java/com/l2jserver/gameserver/model/actor/L2Attackable.java (revision 4420)+++ java/com/l2jserver/gameserver/model/actor/L2Attackable.java (working copy)@@ -690,6 +690,8 @@ player.sendPacket(new SystemMessage(SystemMessageId.OVER_HIT)); exp += calculateOverhitExp(exp); }+ if (player.getLevel() > 40)+ exp *= 0.05 * (player.getLevel() - 40); // 5% bonus for every level above 40 } // Distribute the Exp and SP between the L2PcInstance and its L2Summon
P.S. this multiplication couldn't be added in the original method which gets the npc template's exp because there is no reference to the killer.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.