Jump to content
  • 0

Mana Potion - Please Help


xLeGaTuSx

Question

i need change mana potion stats,

please tell me  how to make that in the combat  they couldn't use mana potion?

 

current stats

  <etcitem id="728" name="Mana Potion">
    <set name="class" value="CONSUMABLE"/>
    <set name="crystal_type" value="NONE"/>
    <set name="icon" value="icon.etc_reagent_blue_i00"/>
    <set name="price" value="2000"/>
<set name="reuse_delay" value="15000"/>
    <set name="stackable" value="true"/>
    <set name="type" value="POTION"/>
    <set name="weight" value="180"/>
    <skills>
      <skill id="90001" level="1"/>
    </skills>
    <cond msgId="1508">
      <not>
        <player olympiad="true"/>
      </not>
    </cond>
  </etcitem>

Link to comment
Share on other sites

9 answers to this question

Recommended Posts

  • 0

You need to add the proper checks on potions item handler.

There is normally a mana potion itemhandler in DP side, find it and add the check you need. If you haven't that itemhandler, do as An4rchy said, with a check on itemId aswell (if mana potion id, then if in combat mode).

Link to comment
Share on other sites

  • 0

Something like that:

 

int skillId = skill.getId();
if (activeChar.getPvpFlag() != 0 && skillId == 728)
{
activeChar.sendMessage("you can't bla bla");
return;
}

Link to comment
Share on other sites

  • 0

go to gameserver/data/stats/skills/90000-90099.xml open with notepad

and there you change what you want

 

 

 

 

This has nothing to do with flag, read what he said.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...