Example #1
0
  @Override
  public boolean useItem(L2Playable playable, L2ItemInstance item, boolean forceUse) {
    if (!playable.isPlayer()) {
      playable.sendPacket(SystemMessageId.YOUR_PET_CANNOT_CARRY_THIS_ITEM);
      return false;
    }

    playable.sendPacket(new ExRequestChangeNicknameColor(item.getObjectId()));
    return true;
  }
 @Override
 public boolean useItem(L2Playable playable, L2ItemInstance item, boolean forceUse) {
   if (!Config.L2JMOD_ENABLE_MANA_POTIONS_SUPPORT) {
     playable.sendPacket(SystemMessageId.NOTHING_HAPPENED);
     return false;
   }
   return super.useItem(playable, item, forceUse);
 }
 public void useItem(L2Playable playable, L2ItemInstance item) {
   if (!(playable instanceof L2PcInstance)) return;
   playable.sendPacket(new ExRequestChangeNicknameColor(item.getObjectId()));
 }