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

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


      return;
    }

    if(_size > 2176)
    {
      activeChar.sendMessage("The insignia file size is greater than 2176 bytes.");
      return;
    }

    if((activeChar.getClanPrivileges() & L2Clan.CP_CL_REGISTER_CREST) == L2Clan.CP_CL_REGISTER_CREST)
    {
View Full Code Here


    if((activeChar.getClanPrivileges() & L2Clan.CP_CL_REGISTER_CREST) == L2Clan.CP_CL_REGISTER_CREST)
    {
      if(clan.getHasCastle() == 0 && clan.getHasHideout() == 0)
      {
        activeChar.sendMessage("Only a clan that owns a clan hall or a castle can get their emblem displayed on clan related items"); //there is a system message for that but didnt found the id
        return;
      }

      CrestCache crestCache = CrestCache.getInstance();
View Full Code Here

      return;
    }
   
    if (!getClient().getFloodProtectors().getTransaction().tryPerformAction("crystallize"))
    {
      activeChar.sendMessage("You crystallizing too fast.");
      return;
    }
   

    if(_count <= 0)
View Full Code Here

    if (player == null)
      return;

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

    L2PcInstance partner = player.getActiveRequester();
View Full Code Here

    if(player == null)
      return;

    if (!getClient().getFloodProtectors().getTransaction().tryPerformAction("trade"))
    {
      player.sendMessage("You trading too fast.");
      return;
    }
   
   
    TradeList trade = player.getActiveTradeList();
View Full Code Here

        return;
      }

      if(!player.getAccessLevel().allowTransaction())
      {
        player.sendMessage("Unsufficient privileges.");
        player.cancelActiveTrade();
        player.sendPacket(ActionFailed.STATIC_PACKET);
        return;
      }
      trade.confirm();
View Full Code Here

    int z = loc.getZ();

    if(this instanceof L2PcInstance && DimensionalRiftManager.getInstance().checkIfInRiftZone(getX(), getY(), getZ(), true))
    { // true -> ignore waiting room :)
      L2PcInstance player = (L2PcInstance) this;
      player.sendMessage("You have been sent to the waiting room.");

      if(player.isInParty() && player.getParty().isInDimensionalRift())
      {
        player.getParty().getDimensionalRift().usedTeleport(player);
      }
View Full Code Here

            if (i.getEnchantLevel() > Config.MAX_ITEM_ENCHANT_KICK)
            {                       
              //Delete Item Over enchanted
              activeChar.getInventory().destroyItem(null, i, activeChar, null);
              //Message to Player
              activeChar.sendMessage("[Server]: You have over enchanted items you will be kicked from server!");
              activeChar.sendMessage("[Server]: Respect our server rules.");
              //Message with screen
              sendPacket(new ExShowScreenMessage(" You have an over enchanted item, you will be kicked from server! ", 6000));
              //Punishment e log in audit
              Util.handleIllegalPlayerAction(activeChar, "Player " + activeChar.getName() + " has Overenchanted  item! Kicked! ", Config.DEFAULT_PUNISH);                    
View Full Code Here

            {                       
              //Delete Item Over enchanted
              activeChar.getInventory().destroyItem(null, i, activeChar, null);
              //Message to Player
              activeChar.sendMessage("[Server]: You have over enchanted items you will be kicked from server!");
              activeChar.sendMessage("[Server]: Respect our server rules.");
              //Message with screen
              sendPacket(new ExShowScreenMessage(" You have an over enchanted item, you will be kicked from server! ", 6000));
              //Punishment e log in audit
              Util.handleIllegalPlayerAction(activeChar, "Player " + activeChar.getName() + " has Overenchanted  item! Kicked! ", Config.DEFAULT_PUNISH);                    
              //Logger in console
View Full Code Here

     
      if (L2World.getInstance().findObject(cha.getPartnerId()) instanceof L2PcInstance)
        partner = (L2PcInstance) L2World.getInstance().findObject(cha.getPartnerId());
     
      if (partner != null)
        partner.sendMessage("Your partner has logged in");
    }
  }

  /**
   * @param activeChar
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.