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.
DISCORD :
utchiha_market
telegram :
https://t.me/utchiha_market
SELLIX STORE :
https://utchihamkt.mysellix.io/
Join our server for more products :
https://discord.gg/hood-services
https://campsite.bio/utchihaamkt
DISCORD :
utchiha_market
telegram :
https://t.me/utchiha_market
SELLIX STORE :
https://utchihamkt.mysellix.io/
Join our server for more products :
https://discord.gg/hood-services
https://campsite.bio/utchihaamkt
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 ?
Link to comment
Share on other sites
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.