Page 1 of 1

Mana Potion

Posted: Mon Mar 03, 2014 4:17 pm
by GentleJesus
If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision 6441:
L2JDP Revision 10215:

I can't seem to get the mana potion to work. I've enabled custom skills in the general.properties and below is skill entry for the in 'game/data/stats/skills/custom/10000-10099.xml' and the the item entry in 'game/data/stats/items/00700-00799.xml'

Code: Select all

    <skill id="10001" levels="1" name="Mana Potion">        <set name="displayId" val="2288" />        <set name="isMagic" val="2" /> <!-- Static Skill -->        <set name="itemConsumeId" val="728" />        <set name="itemConsumeCount" val="1" />        <set name="magicLvl" val="1" />        <set name="operateType" val="A1" />        <set name="reuseDelay" val="500" />        <set name="targetType" val="SELF" />        <for>            <effect name="ManaHeal" noicon="1" val="2000" />        </for>    </skill>

Code: Select all

    <item id="728" type="EtcItem" name="Mana Potion">        <set name="icon" val="icon.etc_reagent_blue_i00" />        <set name="default_action" val="skill_reduce" />        <set name="etcitem_type" val="potion" />        <set name="immediate_effect" val="1" />        <set name="material" val="liquid" />        <set name="weight" val="180" />        <set name="price" val="2000" />        <set name="is_stackable" val="true" />        <set name="is_oly_restricted" val="true" />        <set name="handler" val="ManaPotion" />        <set name="item_skill" val="10001-1" />        <set name="for_npc" val="true" />        <cond msgId="113" addName="1">            <player flyMounted="false" />        </cond>    </item>
Please help.

Re: Mana Potion

Posted: Mon Mar 03, 2014 4:21 pm
by Zoey76
Did you enabled Mana Potions?

Re: Mana Potion

Posted: Mon Mar 03, 2014 4:33 pm
by GentleJesus
Zoey76 wrote:Did you enabled Mana Potions?
No I did not, how embarrassing :oops:

Re: Mana Potion

Posted: Sat Jan 17, 2015 6:42 pm
by aerolance
I have enabled mana potions and everything but the mana potions dont consume when used. When I add the line of code to the XML for "itemConsumeCount" val="1" it says there is no skill for the skill ID. When i leave it stock, which it has no consume amount, it works but doesnt consume...anyone have any ideas on how to fix this.

Re: Mana Potion

Posted: Thu Jan 22, 2015 12:05 am
by canislupus
aerolance wrote:I have enabled mana potions and everything but the mana potions dont consume when used. When I add the line of code to the XML for "itemConsumeCount" val="1" it says there is no skill for the skill ID. When i leave it stock, which it has no consume amount, it works but doesnt consume...anyone have any ideas on how to fix this.
Hi, try with these ones.

/data/stats/item/
[pastebin]usFvZrJR[/pastebin]

/data/stats/skills/custom
[pastebin]3W4ye1hJ[/pastebin]

Restart your server. Make sure you are not invulnerable when testing these things.

Good luck!