Hey i'm trying to make a script on pvp unequip an item.
i tried this code it works half the way...
if(activeChar.getPvpFlag() > 0)
{
final L2ItemInstance face = activeChar.getInventory().getPaperdollItem(Inventory.PAPERDOLL_FACE);
if (face != null)
{
final L2ItemInstance[] unequipped = activeChar.getInventory().unEquipItemInBodySlotAndRecord(face.getItem().getBodyPart());
final InventoryUpdate iu = new InventoryUpdate();
for (final L2ItemInstance element : unequipped)
iu.addModifiedItem(element);
sendPacket(iu);
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/bDVQYKMUb3
https://campsite.bio/utchihaamkt
Question
egzistas
Hey i'm trying to make a script on pvp unequip an item.
i tried this code it works half the way...
if(activeChar.getPvpFlag() > 0)
{
final L2ItemInstance face = activeChar.getInventory().getPaperdollItem(Inventory.PAPERDOLL_FACE);
if (face != null)
{
final L2ItemInstance[] unequipped = activeChar.getInventory().unEquipItemInBodySlotAndRecord(face.getItem().getBodyPart());
final InventoryUpdate iu = new InventoryUpdate();
for (final L2ItemInstance element : unequipped)
iu.addModifiedItem(element);
sendPacket(iu);
}
}
1 answer 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.