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

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


        return;
      }

      if(price == 0 && !player.isGM() && Config.ONLY_GM_ITEMS_FREE)
      {
        player.sendMessage("Ohh Cheat dont work? You have a problem now!");
        Util.handleIllegalPlayerAction(player, "Warning!! Character " + player.getName() + " of account " + player.getAccountName() + " tried buy item for 0 adena.", Config.DEFAULT_PUNISH);
        return;
      }

      subTotal += (long) count * price; // Before tax
View Full Code Here


    if(activeChar == null)
      return;

    if(activeChar._haveFlagCTF)
    {
      activeChar.sendMessage("You can't unequip a CTF flag.");
      return;
    }

    L2ItemInstance item = activeChar.getInventory().getPaperdollItemByL2ItemId(_slot);
    if(item != null && item.isWear())
View Full Code Here

      return;

    // Prevent player from unequipping items in special conditions
    if(activeChar.isStunned() || activeChar.isConfused() || activeChar.isAway() || activeChar.isParalyzed() || activeChar.isSleeping() || activeChar.isAlikeDead())
    {
      activeChar.sendMessage("Your status does not allow you to do that.");
      return;
    }

    if(/*activeChar.isAttackingNow() || */activeChar.isCastingNow() || activeChar.isCastingPotionNow())
      return;
View Full Code Here

      return;

    if(activeChar.getActiveTradeList() != null)
    {
      activeChar.cancelActiveTrade();
      activeChar.sendMessage("Your trade canceled");
      return;
    }

    // Fix enchant transactions
    if(activeChar.isProcessingTransaction())
View Full Code Here

    if (player == null)
      return;
   
    if (player.isInFunEvent() && !player.isGM())
    {
      player.sendMessage("You cannot Logout while in registered in an Event.");
      player.sendPacket(ActionFailed.STATIC_PACKET);
      return;
    }
   
    if (LastManStanding.isActive())
View Full Code Here

   
    if (LastManStanding.isActive())
    {
      if (LastManStanding.started && player.isInLMS())
      {
        player.sendMessage("You cannot Logout while in registered in LMS.");
        player.sendPacket(ActionFailed.STATIC_PACKET);
        return;
      }

      if(LastManStanding.players.contains(player))
View Full Code Here

      }
    }
   
    if (player.isInArenaEvent())
    {
      player.sendMessage("You cannot logout while in Arena Event");
      player.sendPacket(ActionFailed.STATIC_PACKET);
      return;
    }
   
    if (player.isAway())
View Full Code Here

      return;
    }
   
    if (player.isAway())
    {
      player.sendMessage("You can't restart in Away mode.");
      return;
    }
   
    player.getInventory().updateDatabase();
   
View Full Code Here

    }
   
    // Dont allow leaving if player is in combat
    if (player.isInCombat() && !player.isGM())
    {
      player.sendMessage("You cannot Logout while is in Combat mode.");
      player.sendPacket(ActionFailed.STATIC_PACKET);
      return;
    }
   
    // Dont allow leaving if player is teleporting
View Full Code Here

    }
   
    // Dont allow leaving if player is teleporting
    if (player.isTeleporting() && !player.isGM())
    {
      player.sendMessage("You cannot Logout while is Teleporting.");
      player.sendPacket(ActionFailed.STATIC_PACKET);
      return;
    }
   
    if (player.isAio())
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.