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?
Change Max Level
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
- HappyLDE
- Posts: 123
- Joined: Tue Sep 10, 2013 6:22 pm
- Location: Belgium
- Contact:
Change Max Level
Thank you for making L2JServer happen!
"If you believe you will fail or succeed, in both ways you are right." - Henry Ford
"If you believe you will fail or succeed, in both ways you are right." - Henry Ford
-
- L2j Veteran
- Posts: 855
- Joined: Mon May 03, 2010 8:38 am
- Location: France
Re: Change Max Level
You do have to do that
- Zoey76
- L2j Inner Circle
- Posts: 7005
- Joined: Tue Aug 11, 2009 3:36 am
Re: Change Max Level
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!
Join our Discord!
-
- L2j Veteran
- Posts: 855
- Joined: Mon May 03, 2010 8:38 am
- Location: France
- HappyLDE
- Posts: 123
- Joined: Tue Sep 10, 2013 6:22 pm
- Location: Belgium
- Contact:
Re: Change Max Level
Ok indeed that worked! Actually one more thing had to be done DP side:
- Change charTemplate.xsd's level max there too.
Thanks!
- Change charTemplate.xsd's level max there too.
Thanks!
Thank you for making L2JServer happen!
"If you believe you will fail or succeed, in both ways you are right." - Henry Ford
"If you believe you will fail or succeed, in both ways you are right." - Henry Ford
- HappyLDE
- Posts: 123
- Joined: Tue Sep 10, 2013 6:22 pm
- Location: Belgium
- Contact:
Re: Change Max Level
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):
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!
"If you believe you will fail or succeed, in both ways you are right." - Henry Ford
"If you believe you will fail or succeed, in both ways you are right." - Henry Ford
- HappyLDE
- Posts: 123
- Joined: Tue Sep 10, 2013 6:22 pm
- Location: Belgium
- Contact:
Re: Change Max Level
Ok well it necessitates lots of changes, like Giant's codex masteries, Scrolls of Recovery, fixing karma lost calculations etc etc so rolling back to normal :p
Thank you for making L2JServer happen!
"If you believe you will fail or succeed, in both ways you are right." - Henry Ford
"If you believe you will fail or succeed, in both ways you are right." - Henry Ford
-
- Advanced User
- Posts: 1440
- Joined: Wed Apr 15, 2009 10:07 am
Re: Change Max Level
Theres also issues when you change max level to 80 for example. The server doesnt load and it stops at an error.