break;
}
case L2Item.SLOT_L_HAND:
{
L2ItemInstance slot = getPaperdollItem(PAPERDOLL_RHAND);
L2Item oldItem = slot == null ? null : slot.getItem();
L2Item newItem = item.getItem();
if(oldItem != null && newItem.getItemType() == EtcItemType.ARROW && oldItem.getItemType() == WeaponType.BOW && oldItem.getCrystalType() != newItem.getCrystalType())
{
return;
}
if(oldItem != null && newItem.getItemType() == EtcItemType.BOLT && oldItem.getItemType() == WeaponType.CROSSBOW && oldItem.getCrystalType() != newItem.getCrystalType())
{
return;
}
if(newItem.getItemType() != EtcItemType.ARROW && newItem.getItemType() != EtcItemType.BOLT && newItem.getItemType() != EtcItemType.BAIT)
{
if(oldItem != null && oldItem.getBodyPart() == L2Item.SLOT_LR_HAND)
{
setPaperdollItem(PAPERDOLL_RHAND, null);
setPaperdollItem(PAPERDOLL_LHAND, null);
}
else
{
setPaperdollItem(PAPERDOLL_LHAND, null);
}
setPaperdollItem(PAPERDOLL_LHAND, item);
}
else if(oldItem != null && (newItem.getItemType() == EtcItemType.ARROW && oldItem.getItemType() == WeaponType.BOW || newItem.getItemType() == EtcItemType.BOLT && oldItem.getItemType() == WeaponType.CROSSBOW || newItem.getItemType() == EtcItemType.BAIT && oldItem.getItemType() == WeaponType.ROD))
{
setPaperdollItem(PAPERDOLL_LHAND, item);
if(newItem.getItemType() == EtcItemType.BAIT && getOwner().isPlayer())
{
L2Player owner = (L2Player) getOwner();
owner.setVar("LastLure", String.valueOf(item.getObjectId()));
}
}