Package net.sf.l2j.gameserver.model.actor.instance

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


      return;
    }

        if (player.isInOlympiadMode() || Olympiad.getInstance().isRegistered(player))
        {
            player.sendMessage("You cant logout in olympiad mode");
            return;
        }

    // Prevent player from logging out if they are a festival participant
    // and it is in progress, otherwise notify party members that the player
View Full Code Here


    // and it is in progress, otherwise notify party members that the player
    // is not longer a participant.
    if (player.isFestivalParticipant()) {
      if (SevenSignsFestival.getInstance().isFestivalInitialized())
      {
        player.sendMessage("You cannot log out while you are a participant in a festival.");
        return;
      }
      L2Party playerParty = player.getParty();

      if (playerParty != null)
View Full Code Here

    L2Clan clan = ClanTable.getInstance().getClanByName(_pledgeName);

    if (clan == null)
    {
      player.sendMessage("No such clan.");
      player.sendPacket(new ActionFailed());
      return;
    }

    if (!playerClan.isAtWarWith(clan.getClanId()))
View Full Code Here

      return;
    }

    if (!playerClan.isAtWarWith(clan.getClanId()))
    {
      player.sendMessage("You aren't at war with this clan.");
      player.sendPacket(new ActionFailed());
      return;
    }

    // Check if player who does the request has the correct rights to do it
View Full Code Here

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

        if ((warehouse instanceof ClanWarehouse) && Config.GM_DISABLE_TRANSACTION && player.getAccessLevel() >= Config.GM_TRANSACTION_MIN && player.getAccessLevel() <= Config.GM_TRANSACTION_MAX)
        {
            player.sendMessage("Transactions are disable for your Access Level");
            return;
        }

        // Alt game - Karma punishment
        if (!Config.ALT_GAME_KARMA_PLAYER_CAN_USE_WAREHOUSE && player.getKarma() > 0) return;
View Full Code Here

        }


        if (Config.GM_DISABLE_TRANSACTION && activeChar.getAccessLevel() >= Config.GM_TRANSACTION_MIN && activeChar.getAccessLevel() <= Config.GM_TRANSACTION_MAX)
        {
            activeChar.sendMessage("Transactions are disable for your Access Level");
            activeChar.sendPacket(new SystemMessage(SystemMessageId.NOTHING_HAPPENED));
            return;
        }

    if (activeChar.isProcessingTransaction() || activeChar.getPrivateStoreType() != 0)
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);
      }
      int[] newCoords = DimensionalRiftManager.getInstance().getRoom((byte) 0, (byte) 0).getTeleportCoords();
View Full Code Here

            return;
        }

        if (player.isInOlympiadMode() || Olympiad.getInstance().isRegistered(player))
        {
            player.sendMessage("You cant logout in olympiad mode");
            return;
        }

        player.getInventory().updateDatabase();
View Full Code Here

        player.getInventory().updateDatabase();

        if (player.getPrivateStoreType() != 0)
        {
            player.sendMessage("Cannot restart while trading");
            return;
        }

        if (player.getActiveRequester() != null)
        {
View Full Code Here

    if (player.getSkillLevel(1315) <= skill.getLevel()-2) //1315 - Fish Expertise
    {//Penalty
      player.sendPacket(new SystemMessage(SystemMessageId.REELING_PUMPING_3_LEVELS_HIGHER_THAN_FISHING_PENALTY));
            pen = 50;
      int penatlydmg = dmg - pen;
      if (player.isGM()) player.sendMessage("Dmg w/o penalty = " +dmg);
      dmg = penatlydmg;
    }
    if (SS > 1)
    {
      weaponInst.setChargedFishshot(false);
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.