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

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
User avatar
armura
Posts: 40
Joined: Sat Sep 04, 2010 9:08 pm

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

Post 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.
User avatar
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.

Post by jurchiks »

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

Post 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
Image
MMMMMmmmmmMMMMM
Edelvez
Posts: 173
Joined: Fri Nov 06, 2009 6:32 am
Location: Argentina

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

Post 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
Someone once told me: "The easiest way of doing things, making them the hard way" ;)
KadeL
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.

Post by KadeL »

but the client supports this? :?:
Sorry everyone for my very bad English, I speak Spanish
User avatar
Aikimaniac
L2j Inner Circle
L2j Inner Circle
Posts: 3048
Joined: Sun Aug 07, 2005 11:42 pm
Location: Slovakia

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

Post by Aikimaniac »

KadeL wrote:but the client supports this? :?:
no
Image
User avatar
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.

Post by ZaKaX »

Wrong. It does :P

Image
¿ Que dice los cojones de la nina ?
JMD
Advanced User
Advanced User
Posts: 1440
Joined: Wed Apr 15, 2009 10:07 am

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

Post by JMD »

looks like they are preparing the client for level 100+....
User avatar
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.

Post by ZaKaX »

JMD wrote:looks like they are preparing the client for level 100+....
Nah, it's not textures.
¿ Que dice los cojones de la nina ?
Edelvez
Posts: 173
Joined: Fri Nov 06, 2009 6:32 am
Location: Argentina

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

Post by Edelvez »

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" ;)
User avatar
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.

Post by shinomidefuego »

excelent!! thanks for the help!! i will test it right now!!
Image
MMMMMmmmmmMMMMM
User avatar
armura
Posts: 40
Joined: Sat Sep 04, 2010 9:08 pm

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

Post 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
User avatar
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.

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