Package com.l2jfrozen.gameserver.model.actor.instance

Examples of com.l2jfrozen.gameserver.model.actor.instance.L2PcInstance.sendMessage()


      return;
    }
   
    if (!getClient().getFloodProtectors().getTransaction().tryPerformAction("destroy"))
    {
      activeChar.sendMessage("You destroying items too fast.");
      return;
    }
   
    int count = _count;
   
View Full Code Here


      return;
    }

    if(!activeChar.getAccessLevel().allowTransaction())
    {
      activeChar.sendMessage("Unsufficient privileges.");
      activeChar.sendPacket(ActionFailed.STATIC_PACKET);
      return;
    }

    if(activeChar.isProcessingTransaction() || activeChar.getPrivateStoreType() != 0)
View Full Code Here

    if(player == null)
      return;

    if (!getClient().getFloodProtectors().getTransaction().tryPerformAction("withdraw"))
    {
      player.sendMessage("You withdrawing items too fast.");
      return;
    }
   
    // Like L2OFF you can't confirm a withdraw when you are in trade.
    if(player.getActiveTradeList() != null)
View Full Code Here

    }
   
    // Like L2OFF you can't confirm a withdraw when you are in trade.
    if(player.getActiveTradeList() != null)
    {
      player.sendMessage("You can't withdraw items when you are trading.");
      player.sendPacket(ActionFailed.STATIC_PACKET);
      return;
    }

    ItemContainer warehouse = player.getActiveWarehouse();
View Full Code Here

    if((manager == null || !player.isInsideRadius(manager, L2NpcInstance.INTERACTION_DISTANCE, false, false)) && !player.isGM())
      return;

    if(warehouse instanceof ClanWarehouse && !player.getAccessLevel().allowTransaction())
    {
      player.sendMessage("Unsufficient privileges.");
      player.sendPacket(ActionFailed.STATIC_PACKET);
      return;
    }

View Full Code Here

      int count = _items[i * 2 + 1];

      L2ItemInstance oldItem = warehouse.getItemByObjectId(objectId);
      if(oldItem == null || oldItem.getCount() < count)
      {
        player.sendMessage("Can't withdraw requested item" + (count > 1 ? "s" : ""));
      }
      L2ItemInstance newItem = warehouse.transferItem("Warehouse", objectId, count, player.getInventory(), player, player.getLastFolkNPC());
      if(newItem == null)
      {
        _log.warning("Error withdrawing a warehouse object for char " + player.getName());
View Full Code Here

    if (activeChar == null)
      return;
   
    if (activeChar.isInRaidEvent()) 
    { 
      activeChar.sendMessage("You will be revived any second.")
      return
    }
   
    if (activeChar.isFakeDeath())
    {
View Full Code Here

    {
      if (activeChar.getClan() != null && castle.getSiege().checkIsAttacker(activeChar.getClan()))
      {
        // Schedule respawn delay for attacker
        ThreadPoolManager.getInstance().scheduleGeneral(new DeathTask(activeChar), castle.getSiege().getAttackerRespawnDelay());
        activeChar.sendMessage("You will be re-spawned in " + castle.getSiege().getAttackerRespawnDelay() / 1000 + " seconds");
        return;
      }
    }
    // run immediately (no need to schedule)
    new DeathTask(activeChar).run();
View Full Code Here

    if(player == null)
      return;

    if (!getClient().getFloodProtectors().getTransaction().tryPerformAction("buy"))
    {
      player.sendMessage("You buying too fast.");
      return;
    }
   
    // Alt game - Karma punishment
    if(!Config.ALT_GAME_KARMA_PLAYER_CAN_SHOP && player.getKarma() > 0)
View Full Code Here

    {
      merchant = (L2NpcInstance) target;
    }
    else if(!ok && !player.isGM())
    {
      player.sendMessage("Invalid Target: Seller must be targetted");
      return;
    }

    L2TradeList list = null;
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.