cyta5 Posted November 4, 2019 Posted November 4, 2019 (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 November 4, 2019 by cyta5 Quote
Question
cyta5
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 ?
0 answers to this question
Recommended Posts
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.