Page 1 of 1

[SOLVED] Soul Cry mana gain

Posted: Sun Mar 23, 2014 7:49 pm
by Lanamer
Hi!
I run a Gracia T2.1 server (http://www.l2jserver.com/nightly/index. ... %2FT2.1%2F).
I have a problem with adding this to the Soul Cry Skill:
<add order="0x40" stat="absorbDamMana" val="10" />

I get this error message:
Unknown name 'absorbsDamMana' for enum Basestats

My Soul Cry skill looks like this:
<skill id="1001" levels="10" name="Soul Cry">
<table name="#patk-add"> 4.5 14 33.5 66.5 90.5 141.5 208.5 247.0 310.0 375.5 </table>
<table name="#mpRegen-sub"> 3 6 9 12 15 18 21 24 27 30 </table>
<table name="#mpConsume_Init"> 1 2 3 3 4 5 6 6 7 7 </table>
<set name="mpInitialConsume" val="#mpConsume_Init"/>
<set name="power" val="0.0"/>
<set name="target" val="TARGET_SELF"/>
<set name="skillType" val="CONT"/>
<set name="operateType" val="OP_TOGGLE"/>
<set name="castRange" val="-1"/>
<set name="effectRange" val="-1"/>
<for>
<effect count="0x7fffffff" name="ManaDamOverTime" time="3" val="#mpConsume_Init">
<add order="0x40" stat="pAtk" val="#patk-add"/>
<add order="0x40" stat="absorbDamMana" val="10" />
</effect>
</for>
</skill>

I got that row from the Gracia T2.4 server files, but in T2.1 seems that does not work....
I found this in the forum, but don't know how and where to add it, can anyone help me pls?
http://trac.l2jserver.com/changeset/3193#file0

Thanks for any help!

Re: Soul Cry mana gain

Posted: Sun Mar 23, 2014 7:50 pm
by St3eT
Moved to right section. :evil:

Re: Soul Cry mana gain

Posted: Thu Apr 17, 2014 6:20 am
by Lanamer
I've Managed to open the gameserver jar, but I don't have L2Character.java, only L2Character.class and it looks totally different, so I don't know what to do with it, how to add that function....
Can anyone tell me pls how to do it?

Re: Soul Cry mana gain

Posted: Thu Apr 17, 2014 9:09 am
by jurchiks
I've Managed to open the gameserver jar
You what??
http://www.l2jserver.com/wiki/Setup_Eclipse_and_SVN

Re: Soul Cry mana gain

Posted: Fri Apr 18, 2014 4:32 am
by Lanamer
jurchiks wrote:
I've Managed to open the gameserver jar
You what??
http://www.l2jserver.com/wiki/Setup_Eclipse_and_SVN
I opened it with winrar...
I'm not a programmer, so i don't know how to work with java and stuff, just trying to get the L2Character.java file, but don't know how to get to it...

Re: Soul Cry mana gain

Posted: Fri Apr 18, 2014 4:49 am
by Zoey76
The basic idea is, you can't edit compiled code.

You need to get the source code, from the SVN, use an IDE such as Eclipse, perform modifications on the code and finally compile it and deploy it.

Re: Soul Cry mana gain

Posted: Fri Apr 18, 2014 5:12 am
by Lanamer
Zoey76 wrote:The basic idea is, you can't edit compiled code.

You need to get the source code, from the SVN, use an IDE such as Eclipse, perform modifications on the code and finally compile it and deploy it.
Oh, ok, now I see...

Re: Soul Cry mana gain

Posted: Fri Apr 18, 2014 6:40 am
by Lanamer
Zoey76 wrote:The basic idea is, you can't edit compiled code.

You need to get the source code, from the SVN, use an IDE such as Eclipse, perform modifications on the code and finally compile it and deploy it.
Thank You very much, I've managed to get it work as i wanted. With the eclipse I could add the necessary rows and compiled it afterwards. But needed to change the absorbDamage and maxCanAbsorb to absorbDamageMP and maxCanAbsorbMP from the script I've found, and now it's working properly.
Thanks a lot for the guiding, I'm not a programmer, just trying to change and add a few missing skills and stuff to that build, but basically I'm just doing trial and failure till I get things working :) So Your advice helped a lot!!