Page 1 of 1

How to edit the amount of XP needed to up lvl.

Posted: Wed Oct 20, 2010 2:41 pm
by armura
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.

Re: How to edit the amount of XP needed to up lvl.

Posted: Wed Oct 20, 2010 3:50 pm
by jurchiks
com.l2jserver.gameserver.model.base.Experience.java

Re: How to edit the amount of XP needed to up lvl.

Posted: Thu Oct 21, 2010 5:55 pm
by shinomidefuego
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

Re: How to edit the amount of XP needed to up lvl.

Posted: Thu Oct 21, 2010 10:52 pm
by Edelvez
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

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;}
Good luck

Re: How to edit the amount of XP needed to up lvl.

Posted: Fri Oct 22, 2010 4:20 am
by KadeL
but the client supports this? :?:

Re: How to edit the amount of XP needed to up lvl.

Posted: Fri Oct 22, 2010 4:56 am
by Aikimaniac
KadeL wrote:but the client supports this? :?:
no

Re: How to edit the amount of XP needed to up lvl.

Posted: Fri Oct 22, 2010 1:02 pm
by ZaKaX
Wrong. It does :P

Image

Re: How to edit the amount of XP needed to up lvl.

Posted: Fri Oct 22, 2010 2:28 pm
by JMD
looks like they are preparing the client for level 100+....

Re: How to edit the amount of XP needed to up lvl.

Posted: Fri Oct 22, 2010 3:01 pm
by ZaKaX
JMD wrote:looks like they are preparing the client for level 100+....
Nah, it's not textures.

Re: How to edit the amount of XP needed to up lvl.

Posted: Fri Oct 22, 2010 3:52 pm
by Edelvez
is no texture, but in "interlude" to me critical error came when I wanted to pass the 100 level..

Re: How to edit the amount of XP needed to up lvl.

Posted: Fri Oct 22, 2010 4:13 pm
by shinomidefuego
excelent!! thanks for the help!! i will test it right now!!

Re: How to edit the amount of XP needed to up lvl.

Posted: Tue Oct 26, 2010 2:40 pm
by armura
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

Re: How to edit the amount of XP needed to up lvl.

Posted: Tue Oct 26, 2010 4:11 pm
by jurchiks
Well, there are other options. For example, this:

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 
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.