Activating Mana Potions

Results 1 to 4 of 4
  1. #1
    Enthusiast alehawk is offline
    MemberRank
    Sep 2009 Join Date
    32Posts

    Activating Mana Potions

    Hi!
    I want to activate the mana potions so I added this to the 9000-9099.xml skill list:
    PHP Code:
    <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"/>
    <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"/>
    </
    skill
    And I also added this to the mod properties:
    # ---------------------------------------------------------------------------
    # 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
    # Mp recovery for mana potion (ID 728)
    # Lvl1 - 100MP, lvl2 - 250MP
    # Lvl3 - 500MP, lvl4 - 750MP
    # Lvl5 - 1000MP
    # Default: 1
    ManaPotionLevel = 5

    the thing is that nothing happens, I got th epots using the gm shop,. i dont know how to spawn itam 728 in my inventory to check it but with this setting nothing works. I also replaced the xml with the healinf potion xml and didnt work either.
    Does anyone knows what am I doing wrong?
    Thank you!


  2. #2
    ~ksemer~ DaRkAnGeL is offline
    MemberRank
    Oct 2006 Join Date
    Java_HomeLocation
    5,115Posts

    Re: Activating Mana Potions

    you need to add the java side too. these are only the dp/config changes.

    you must add the config.java and potion.java too

  3. #3
    Enthusiast alehawk is offline
    MemberRank
    Sep 2009 Join Date
    32Posts

    Re: Activating Mana Potions

    Quote Originally Posted by DaRkAnGeL View Post
    you need to add the java side too. these are only the dp/config changes.

    you must add the config.java and potion.java too
    Do you know where can I found those?
    Tnx!

  4. #4
    ~ksemer~ DaRkAnGeL is offline
    MemberRank
    Oct 2006 Join Date
    Java_HomeLocation
    5,115Posts

    Re: Activating Mana Potions

    download the source from l2j and you will find them inside. open config.java check how the congif for mana called and then search with eclipse for it



Advertisement