Jump to content
  • 0

Don't Consume Healing and Mana


Question

Posted (edited)

Hello guys  i want a little help, i want to make hp & mp potion to dont consume ...  mpId = 728 / hpId = 1539

with that check mp potion does not consume, the same with hp id.

final L2ItemInstance item = activeChar.getInventory().getItemByItemId(potion);
final int itemId = item.getItemId();
if (itemId != 728)
{
    activeChar.destroyItem("Consume", item.getObjectId(), 1, null, false);
}

but when i used mp and hp potion together it doesn't work and consume them, i'm confused why happened that ?

final L2ItemInstance item = activeChar.getInventory().getItemByItemId(potion);
final int itemId = item.getItemId();
if (itemId != 728 || itemId != 1539)
{
    activeChar.destroyItem("Consume", item.getObjectId(), 1, null, false);
}

and maybe someone can tell me what is this ?

<set name="itemConsumeIdOT" val="2131"/>
<set name="itemConsumeCountOT" val="70"/>

 

Edited by cyta5

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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