Jump to content
  • 0

Mana Potion - Please Help


Question

Posted

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>

9 answers to this question

Recommended Posts

  • 0
Posted

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).

  • 0
Posted

Something like that:

 

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

  • 0
Posted

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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock