Mana Potion

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
GentleJesus
Posts: 62
Joined: Thu Feb 27, 2014 1:04 am

Mana Potion

Post 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.
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7008
Joined: Tue Aug 11, 2009 3:36 am

Re: Mana Potion

Post by Zoey76 »

Did you enabled Mana Potions?
Powered by Eclipse 4.34 🌌 | Eclipse Temurin 21 ☕ | MariaDB 11.3.2 🗃️ | L2J Server 2.6.3.0 - High Five 🚀

🔗 Join our Discord! 🎮💬
GentleJesus
Posts: 62
Joined: Thu Feb 27, 2014 1:04 am

Re: Mana Potion

Post by GentleJesus »

Zoey76 wrote:Did you enabled Mana Potions?
No I did not, how embarrassing :oops:
aerolance
Posts: 46
Joined: Wed Dec 07, 2011 10:51 pm

Re: Mana Potion

Post 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.
canislupus
Posts: 66
Joined: Tue Dec 24, 2013 1:30 am

Re: Mana Potion

Post 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!
So you want a L2J Server? Check out my guide viewtopic.php?f=81&t=30556&p=182721#p182721
Post Reply