custom mana potion

This is not a Support area! Discuss about the Server here. Non-Server related discussion goes in Off-Topic Discussion.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
razor111
Posts: 8
Joined: Thu May 21, 2009 11:37 pm

custom mana potion

Post by razor111 »

hello how can i make a mana potion whit 500 mana heal and 1000 mana heal ???
User avatar
Tan
L2j Veteran
L2j Veteran
Posts: 873
Joined: Wed Jun 10, 2009 10:31 pm
Location: Poland

Re: custom mana potion

Post by Tan »

<?xml version="1.0" encoding="UTF-8"?>
<list>
<skill id="9007" 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="1000" stackOrder="1.5" stackType="mp_recover"/>
</for>
</skill>
<skill id="9008" 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="500"/>
<set name="skillType" val="MANAHEAL"/>
<set name="target" val="TARGET_SELF"/>
<cond msgId="113" addName="1">
<player flyMounted="False"/>
</cond>
</skill>
</list>
Some people believe in God... i believe in Music... some people pray..... I turn on Winamp
http://www.last.fm/user/L2jTan
razor111
Posts: 8
Joined: Thu May 21, 2009 11:37 pm

Re: custom mana potion

Post by razor111 »

So if you use a mana drug only a "You use . " is showed in the consumables how can i fix this?
User avatar
MELERIX
L2j Veteran
L2j Veteran
Posts: 6667
Joined: Sat Sep 23, 2006 11:31 pm
Location: Chile
Contact:

Re: custom mana potion

Post by MELERIX »

enable they in the configs.
razor111
Posts: 8
Joined: Thu May 21, 2009 11:37 pm

Re: custom mana potion

Post by razor111 »

# ---------------------------------------------------------------------------
# Mana Drugs/Potions
# ---------------------------------------------------------------------------
# This option will enable core support for:
# Mana Drug (item ID 726), using skill ID 9007.
# Mana Potion (item ID 728), using skill ID 9008.
EnableManaPotionSupport = True
DroieX
Posts: 2
Joined: Wed Dec 16, 2009 6:46 pm

Re: custom mana potion

Post by DroieX »

razor111 wrote:So if you use a mana drug only a "You use . " is showed in the consumables how can i fix this?
Same problem here,

Configs:
# ---------------------------------------------------------------------------
# Mana Drugs/Potions
# ---------------------------------------------------------------------------
# This option will enable core support for:
# Mana Drug (item ID 726), using skill ID 9007.
# Mana Potion (item ID 728), using skill ID 9008.
EnableManaPotionSupport = True
lishawj
Posts: 253
Joined: Thu Apr 30, 2009 12:29 am

Re: custom mana potion

Post by lishawj »

razor111 wrote:hello how can i make a mana potion whit 500 mana heal and 1000 mana heal ???
The following changes will create two mana potions that will instantly heal 500 mana and 1000 mana.

Code: Select all

<?xml version="1.0" encoding="UTF-8"?> <skill id="9007" levels="1" name="Custom Mana Drug"><set name="itemConsumeId" val="726"/><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="1000"/> <set name="skillType" val="MANAHEAL"/><set name="target" val="TARGET_SELF"/> <skill id="9008" 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="500"/> <set name="skillType" val="MANAHEAL"/><set name="target" val="TARGET_SELF"/> 
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: custom mana potion

Post by jurchiks »

there is also MANAHEAL_PERCENT, if you don't like static values
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Post Reply