Examples of reduceAdena()


Examples of lineage2.gameserver.model.Player.reduceAdena()

      if ((fee + adenaDeposit) > activeChar.getAdena())
      {
        activeChar.sendPacket(Msg.YOU_LACK_THE_FUNDS_NEEDED_TO_PAY_FOR_THIS_TRANSACTION);
        return;
      }
      if (!activeChar.reduceAdena(fee, true))
      {
        sendPacket(Msg.YOU_DO_NOT_HAVE_ENOUGH_ADENA);
        return;
      }
      for (int i = 0; i < _count; i++)
View Full Code Here

Examples of lineage2.gameserver.model.Player.reduceAdena()

      {
        sendPacket(Msg.YOUR_INVENTORY_IS_FULL);
        activeChar.sendActionFailed();
        return;
      }
      if (!activeChar.reduceAdena(totalPrice))
      {
        activeChar.sendPacket(Msg.YOU_DO_NOT_HAVE_ENOUGH_ADENA);
        activeChar.sendActionFailed();
        return;
      }
View Full Code Here

Examples of lineage2.gameserver.model.Player.reduceAdena()

            sendPacket(Msg.YOU_COULD_NOT_RECEIVE_BECAUSE_YOUR_INVENTORY_IS_FULL);
            return;
          }
          if (mail.getPrice() > 0)
          {
            if (!activeChar.reduceAdena(mail.getPrice(), true))
            {
              activeChar.sendPacket(Msg.YOU_CANNOT_RECEIVE_BECAUSE_YOU_DON_T_HAVE_ENOUGH_ADENA);
              return;
            }
            Player sender = World.getPlayer(mail.getSenderId());
View Full Code Here

Examples of lineage2.gameserver.model.items.PcInventory.reduceAdena()

      {
        player.sendPacket(ExResponseCommissionBuyItem.FAILED);
        return;
      }
      int receiverId = itemInfo.getItem().getOwnerId();
      inventory.reduceAdena(price);
      container.removeItem(itemInfo.getItem());
      inventory.addItem(itemInfo.getItem());
      player.sendPacket(new ExResponseCommissionBuyItem(1, itemInfo.getItem().getItemId(), itemInfo.getItem().getCount()));
      long fee = (long) Math.max(1000, price * SALE_FEE);
      Mail mail = new Mail();
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.reduceAdena()

        activeChar.sendPacket(new ExVariationCancelResult(0));
        return;
    }

    // try to reduce the players adena
    if (!activeChar.reduceAdena("RequestRefineCancel", price, null, true)) return;

    // unequip item
    if (targetItem.isEquipped()) activeChar.disarmWeapons();

    // remove the augmentation
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.reduceAdena()

      sendPacket(new SystemMessage(SystemMessageId.SLOTS_FULL));
      return;
    }

    // Charge buyer and add tax to castle treasury if not owned by npc clan
    if ((subTotal < 0) || !player.reduceAdena("Buy", (int)(subTotal + tax), player.getLastFolkNPC(), false))
    {
      sendPacket(new SystemMessage(SystemMessageId.YOU_NOT_ENOUGH_ADENA));
      return;
    }
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.reduceAdena()

      sendPacket(new SystemMessage(SystemMessageId.SLOTS_FULL));
      return;
    }

    // Charge buyer
    if ((totalPrice < 0) || !player.reduceAdena("Buy", (int) totalPrice, target, false))
    {
      sendPacket(new SystemMessage(SystemMessageId.YOU_NOT_ENOUGH_ADENA));
      return;
    }
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.reduceAdena()

            sendPacket(new SystemMessage(SystemMessageId.YOU_HAVE_EXCEEDED_QUANTITY_THAT_CAN_BE_INPUTTED));
            return;
        }

        // Check if enough adena and charge the fee
        if (currentAdena < fee || !player.reduceAdena("Warehouse", fee, player.getLastFolkNPC(), false))
        {
            sendPacket(new SystemMessage(SystemMessageId.YOU_NOT_ENOUGH_ADENA));
            return;
        }
View Full Code Here

Examples of net.sf.l2j.gameserver.model.actor.instance.L2PcInstance.reduceAdena()

      sendPacket(new SystemMessage(SystemMessageId.SLOTS_FULL));
      return;
    }

    // Charge buyer and add tax to castle treasury if not owned by npc clan because a Try On is not Free
    if ((totalPrice < 0) || !player.reduceAdena("Wear", (int)totalPrice, player.getLastFolkNPC(), false))
    {
      sendPacket(new SystemMessage(SystemMessageId.YOU_NOT_ENOUGH_ADENA));
      return;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.