Page 1 of 1

custom mana potion

Posted: Tue Oct 27, 2009 6:36 pm
by razor111
hello how can i make a mana potion whit 500 mana heal and 1000 mana heal ???

Re: custom mana potion

Posted: Tue Oct 27, 2009 6:48 pm
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>

Re: custom mana potion

Posted: Tue Oct 27, 2009 10:08 pm
by razor111
So if you use a mana drug only a "You use . " is showed in the consumables how can i fix this?

Re: custom mana potion

Posted: Tue Oct 27, 2009 11:09 pm
by MELERIX
enable they in the configs.

Re: custom mana potion

Posted: Wed Oct 28, 2009 8:14 pm
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

Re: custom mana potion

Posted: Mon Dec 21, 2009 12:47 pm
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

Re: custom mana potion

Posted: Wed Dec 23, 2009 3:57 pm
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"/> 

Re: custom mana potion

Posted: Wed Dec 23, 2009 7:29 pm
by jurchiks
there is also MANAHEAL_PERCENT, if you don't like static values