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

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


        case 6:activeChar.sendMessage("This Mercenary Ticket can only be used in Heine.");return;
        case 7:activeChar.sendMessage("This Mercenary Ticket can only be used in Goddard.");return;
        case 8:activeChar.sendMessage("This Mercenary Ticket can only be used in Rune.");return;
        case 9:activeChar.sendMessage("This Mercenary Ticket can only be used in Schuttgart.");return;
        // player is not in a castle
        default: activeChar.sendMessage("Mercenary Tickets can only be used in a castle.");return;
        }
      }

        if (!activeChar.isCastleLord(castleId))
        {
View Full Code Here


        }
      }

        if (!activeChar.isCastleLord(castleId))
        {
          activeChar.sendMessage("You are not the lord of this castle!");
            return;
        }

        if (castle.getSiege().getIsInProgress())
        {
View Full Code Here

            return;
        }

        if (castle.getSiege().getIsInProgress())
        {
            activeChar.sendMessage("You cannot hire mercenary while siege is in progress!");
            return;
        }

        if(MercTicketManager.getInstance().isAtCasleLimit(item.getItemId()))
        {
View Full Code Here

            return;
        }

        if(MercTicketManager.getInstance().isAtCasleLimit(item.getItemId()))
        {
            activeChar.sendMessage("You cannot hire any more mercenaries");
            return;
        }
        if(MercTicketManager.getInstance().isAtTypeLimit(item.getItemId()))
        {
            activeChar.sendMessage("You cannot hire any more mercenaries of this type.  You may still hire other types of mercenaries");
View Full Code Here

            activeChar.sendMessage("You cannot hire any more mercenaries");
            return;
        }
        if(MercTicketManager.getInstance().isAtTypeLimit(item.getItemId()))
        {
            activeChar.sendMessage("You cannot hire any more mercenaries of this type.  You may still hire other types of mercenaries");
            return;
        }

        int npcId = MercTicketManager.getInstance().addTicket(item.getItemId(), activeChar, MESSAGES);
        activeChar.destroyItem("Consume", item.getObjectId(), 1, null, false); // Remove item from char's inventory
View Full Code Here

            return;
        }

        int npcId = MercTicketManager.getInstance().addTicket(item.getItemId(), activeChar, MESSAGES);
        activeChar.destroyItem("Consume", item.getObjectId(), 1, null, false); // Remove item from char's inventory
        activeChar.sendMessage("Hired mercenary ("+itemId+","+npcId+") at coords:" + activeChar.getX() + "," + activeChar.getY() + "," + activeChar.getZ() + " heading:" + activeChar.getHeading());
    }

    // left in here for backward compatibility
    @Override
  public int[] getItemIds()
View Full Code Here

        if (partner != null)
        {
            partner.setPartnerId(0);
            if(partner.isMarried())
                partner.sendMessage("Your spouse has decided to divorce you.");
            else
                partner.sendMessage("Your fiance has decided to break the engagement with you.");

            // give adena
            if(AdenaAmount>0)
View Full Code Here

        {
            partner.setPartnerId(0);
            if(partner.isMarried())
                partner.sendMessage("Your spouse has decided to divorce you.");
            else
                partner.sendMessage("Your fiance has decided to break the engagement with you.");

            // give adena
            if(AdenaAmount>0)
                partner.addAdena("WEDDING", AdenaAmount, null, false);
        }
View Full Code Here

    L2PcInstance player = getClient().getActiveChar();
        if (player == null) return;

        if (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");
            sendPacket(new ActionFailed());
            return;
        }

View Full Code Here

          if (Config.GM_DISABLE_TRANSACTION && player.getAccessLevel() >= Config.GM_TRANSACTION_MIN
              && player.getAccessLevel() <= Config.GM_TRANSACTION_MAX)
          {
              player.cancelActiveTrade();
              player.sendMessage("Transactions are disable for your Access Level");
              return;
          }
          trade.confirm();
    }
    else player.cancelActiveTrade();
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.