Skip to content

Mana Potion - Please Help

Featured Replies

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>

its on java,find a code for that and add it..u can't do it on xml

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

Something like that:

 

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

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

and there you change what you want

 

 

 

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.

Thankss....

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.