Change Max Level

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
HappyLDE
Posts: 123
Joined: Tue Sep 10, 2013 6:22 pm
Location: Belgium
Contact:

Change Max Level

Post by HappyLDE »

L2JServer Rev: 6652
DP Revision: 10449

I want to increase max character level. What i did so far:
- Changed experience.xml's maxLevel value and added rows for more levels.
- Changed experience.xsd's maxLevel value.

Now i can set my level higher than 85. Everything works great except hp, mp and cp! They get down to 700 or something!

Please don't tell me i have to change all files in data\stats\chars\baseStats.

Any idea?
Thank you for making L2JServer happen! :D
"If you believe you will fail or succeed, in both ways you are right." - Henry Ford
Sdw
L2j Veteran
L2j Veteran
Posts: 855
Joined: Mon May 03, 2010 8:38 am
Location: France

Re: Change Max Level

Post by Sdw »

You do have to do that :D
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7005
Joined: Tue Aug 11, 2009 3:36 am

Re: Change Max Level

Post by Zoey76 »

Not only that, but it requires core changes I guess.
Powered by Eclipse 4.30 🌌 | Eclipse Temurin 21 ☕ | MariaDB 11.3.2 🗃️ | L2J Server 2.6.3.0 - High Five 🚀

🔗 Join our Discord! 🎮💬
Sdw
L2j Veteran
L2j Veteran
Posts: 855
Joined: Mon May 03, 2010 8:38 am
Location: France

Re: Change Max Level

Post by Sdw »

Nop
User avatar
HappyLDE
Posts: 123
Joined: Tue Sep 10, 2013 6:22 pm
Location: Belgium
Contact:

Re: Change Max Level

Post by HappyLDE »

Ok indeed that worked! Actually one more thing had to be done DP side:
- Change charTemplate.xsd's level max there too.

Thanks!
Thank you for making L2JServer happen! :D
"If you believe you will fail or succeed, in both ways you are right." - Henry Ford
User avatar
HappyLDE
Posts: 123
Joined: Tue Sep 10, 2013 6:22 pm
Location: Belgium
Contact:

Re: Change Max Level

Post by HappyLDE »

Ofcourse i had to create a small php script to update all those 103 files and each of their respective hp, mp, cp increases after lv85!

In case someone needs (uses phpQuery):

Code: Select all

$files = new DirectoryIterator('temp/baseStatsOld');         foreach($files as $file)        {            if($file->isDot()) continue;             phpQuery::newDocumentXML( file_get_contents("temp/baseStatsOld/".$file->getFilename()) );             $xml = '<?xml version="1.0" encoding="UTF-8"?>                    <list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../xsd/charTemplate.xsd">                        <classId>'.pq('classId')->text().'</classId>'.PHP_EOL;             $xml .= pq('staticData').PHP_EOL;             $xml .= '<lvlUpgainData>'.PHP_EOL;             foreach ( pq('lvlUpgainData level') as $level )            {                $lvl = pq($level)->attr('val');                 if ($lvl <= 85)                {                    $hp = pq($level)->find('hp:first')->text();                    $mp = pq($level)->find('mp:first')->text();                    $cp = pq($level)->find('cp:first')->text();                    $hpRegen = pq($level)->find('hpRegen:first')->text();                    $mpRegen = pq($level)->find('mpRegen:first')->text();                    $cpRegen = pq($level)->find('cpRegen:first')->text();                }                else                {                    $hp += 50;                    $mp += 20;                    $cp += 50;                }                 $xml .= '<level val="'.$lvl.'">'.PHP_EOL;                    $xml .= '<hp>'.$hp.'</hp>'.PHP_EOL;                    $xml .= '<mp>'.$mp.'</mp>'.PHP_EOL;                    $xml .= '<cp>'.$cp.'</cp>'.PHP_EOL;                    $xml .= '<hpRegen>'.$hpRegen.'</hpRegen>'.PHP_EOL;                    $xml .= '<mpRegen>'.$mpRegen.'</mpRegen>'.PHP_EOL;                    $xml .= '<cpRegen>'.$cpRegen.'</cpRegen>'.PHP_EOL;                $xml .= '</level>'.PHP_EOL;            }             $xml .= '</lvlUpgainData>'.PHP_EOL;            $xml .= '</list>';             // Now let's output a well indented and formatted xml            $doc = new DOMDocument();            $doc->preserveWhiteSpace = false;            $doc->formatOutput = true;            $doc->loadXML($xml);            $doc->save("temp/baseStats/".$file->getFilename());        }
Thank you for making L2JServer happen! :D
"If you believe you will fail or succeed, in both ways you are right." - Henry Ford
User avatar
HappyLDE
Posts: 123
Joined: Tue Sep 10, 2013 6:22 pm
Location: Belgium
Contact:

Re: Change Max Level

Post by HappyLDE »

Ok well it necessitates lots of changes, like Giant's codex masteries, Scrolls of Recovery, fixing karma lost calculations etc etc :P so rolling back to normal :p
Thank you for making L2JServer happen! :D
"If you believe you will fail or succeed, in both ways you are right." - Henry Ford
JMD
Advanced User
Advanced User
Posts: 1440
Joined: Wed Apr 15, 2009 10:07 am

Re: Change Max Level

Post by JMD »

Theres also issues when you change max level to 80 for example. The server doesnt load and it stops at an error.
Post Reply