Page 1 of 1

Custom Mana Drug/Potion does not work.

Posted: Mon Jan 03, 2011 12:35 pm
by armura
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision 4467:
L2JDP Revision 7727:

Greetings!
When I try use 'Custom Mana Drug (726)' or 'Custom Mana Potion(728)', the system message write in the game window: 'Mana Drug has disappeared' or 'Mana Potion has disappeared', but nothing is happening.

Yes, I set 'True' in the l2jmods.properties
EnableManaPotionSupport = True

I make two changes in amount of MP restore in 10000-10099.xml:

Code: Select all

 <list>    <skill id="10000" levels="1" name="         <set name="itemConsumeCount" val="1" />        <set name="buffDuration" val="15000" />        <set name="isPotion" val="true" />        <set name="magicLvl" val="1" />        <set name="operateType" val="OP_ACTIVE" />        <set name="skillType" val="MPHOT" />        <set name="target" val="TARGET_SELF" />        <cond msgId="113" addName="1">            <player flyMounted="False" />        </cond>        <for>            <effect count="15" name="ManaHealOverTime" time="1" val="25" stackOrder="1.5" stackType="mp_recover" />        </for>    </skill>    <skill id="10001" levels="1" name="         <set name="itemConsumeCount" val="1" />        <set name="isPotion" val="true" />        <set name="magicLvl" val="1" />        <set name="operateType" val="OP_ACTIVE" />        <set name="power" val="480" />        <set name="skillType" val="MANAHEAL" />        <set name="target" val="TARGET_SELF" />        <cond msgId="113" addName="1">            <player flyMounted="False" />        </cond>    </skill>
In the Freya #1, the custom mana drug work fine with the same changes... Now does not work.

Exist another config to fix it?

Thanks.

I search anithing about 'mana' in the forum in the last month, but without result...

Re: Custom Mana Drug/Potion does not work.

Posted: Mon Jan 03, 2011 12:57 pm
by SolidSnake

Code: Select all

    <skill id="10000" levels="1" name="Custom Mana Drug">        <set name="itemConsumeId" val="726" />        <set name="itemConsumeCount" val="1" />        <set name="buffDuration" val="15000" />        <set name="isPotion" val="true" />        <set name="magicLvl" val="1" />        <set name="operateType" val="OP_ACTIVE" />        <set name="skillType" val="MPHOT" />        <set name="target" val="TARGET_SELF" />        <cond msgId="113" addName="1">            <player flyMounted="False" />        </cond>        <for>-            <effect count="3" name="ManaHealOverTime" time="5" val="1.5" stackOrder="1.5" stackType="mp_recover" />+            <effect count="3" name="ManaHealOverTime" time="5" val="yourValue" stackOrder="1.5" stackType="mp_recover" />        </for>    </skill>    <skill id="10001" levels="1" name="Custom Mana Potion">        <set name="itemConsumeId" val="728" />        <set name="itemConsumeCount" val="1" />        <set name="isPotion" val="true" />        <set name="magicLvl" val="1" />        <set name="operateType" val="OP_ACTIVE" />-       <set name="power" val="100" />+       <set name="power" val="yourValue" />        <set name="skillType" val="MANAHEAL" />        <set name="target" val="TARGET_SELF" />        <cond msgId="113" addName="1">            <player flyMounted="False" />        </cond>    </skill>

Re: Custom Mana Drug/Potion does not work.

Posted: Mon Jan 03, 2011 1:45 pm
by armura
Thanks for your answer SolidSnake, I still dont know how to change the color of lines to explicit my changes in to the

Code: Select all

 tags.  :? Sorry...

I have changed the values but without effects.

Re: Custom Mana Drug/Potion does not work.

Posted: Mon Jan 03, 2011 2:48 pm
by Zoey76
armura wrote:Thanks for your answer SolidSnake, I still dont know how to change the color of lines to explicit my changes in to the

Code: Select all

 tags.  :? Sorry...

I have changed the values but without effects.[/quote]

[quote="Zoey76"]Eclipse allow you to compile the new code, this new compiled version will reflect the changes you've made to it.

The changes in the code are shared in the form of [u]patches[/u], a patch or a diff file is a file that contains the code that could be removed and the code that could be added, the lines where the changes will be done are set in the header of the patches and the lines that should be removed are marked with - and the new lines are marked with +.

[u]Eclipse also allow you to apply patches[/u], without guessing anything.

It's important that you read about Java if you want to learn something about programming and [i]how new things you are adding to your server will work[/i].

It'd be good if you check this:
http://www.l2jserver.com/wiki/index.php/Setup_Eclipse_and_SVN

http://www.l2jserver.com/wiki/index.php/How_to_Apply_a_Patch

In forum use the following tags [b][code=diff][code][/b] to post a formatted patch/diff.[/quote]

Re: Custom Mana Drug/Potion does not work.

Posted: Wed Jan 05, 2011 1:09 pm
by armura
Hello!

After two days seeking the wrong, I cant find it, but...

My actual problems is:
The Custom Mana Drug (726) and Custom Mana Potion (728) not work. You click in the item, the system message notify you about use, but does not happening...

If you use a any skill heal does not work too.

When I use a intact gameserver + gamedb + game configs, everything works fine.

I use my old DB + gameserver (datapack + gameserver clean) works fine.

I use my old DB + gameserver + myfiles.properties the problems is starting...

The problem for me is any change anything in some file.properties (gameserver\config\*.properties).

I hunt this config.

Sorry my english, I am try clear.

Re: Custom Mana Drug/Potion does not work.

Posted: Wed Jan 05, 2011 1:28 pm
by Keira
compare your and default properties files with a file compare tool and see what's different
Or, start again with fresh property files

Re: Custom Mana Drug/Potion does not work.

Posted: Wed Jan 05, 2011 2:44 pm
by armura
Can you suggest to me a compare tool?

Thanks.

Re: Custom Mana Drug/Potion does not work.

Posted: Wed Jan 05, 2011 3:04 pm
by jurchiks
Eclipse... select 2 files>compare to>each other.
if you need an external tool and you're using Windows, then try WinMerge.

Re: Custom Mana Drug/Potion does not work.

Posted: Fri Jan 07, 2011 4:25 pm
by blackhaos
armura wrote:Hello!

After two days seeking the wrong, I cant find it, but...

My actual problems is:
The Custom Mana Drug (726) and Custom Mana Potion (728) not work. You click in the item, the system message notify you about use, but does not happening...

If you use a any skill heal does not work too.
did you test them with gm char ? if yes turn to mortal and try again because it happends to me but when i change to mortal everything work fine.