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

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


        }
        requestor.getParty().getCommandChannel().addParty(player.getParty());
      }
      else
          {
        requestor.sendMessage("The player declined to join your Command Channel.");
      }

      player.setActiveRequester(null);
      requestor.onTransactionResponse();
        }
View Full Code Here


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

        L2TradeList list = null;
View Full Code Here

                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 (skill == null || skill.getId() != _skillId)
        {
            //_log.warning("enchant skill id " + _skillID + " level " + _skillLvl
            //    + " is undefined. aquireEnchantSkillInfo failed.");
          activeChar.sendMessage("This skill doesn't yet have enchant info in Datapack");
            return;
        }

        if (!trainer.getTemplate().canTeach(activeChar.getClassId()))
          return; // cheater
View Full Code Here

    L2Summon activeSummon = activeChar.getPet();

    if (activeChar.getPrivateStoreType() != 0)
    {
      activeChar.sendMessage("Cannot use skills while trading");
      return;
    }

    if (activeSummon != null && !activeChar.isBetrayed())
    {
View Full Code Here

        if(member == null)
          return;
        if(member.getPledgeType() == L2Clan.SUBUNIT_ACADEMY)
        {
          // also checked from client side
          activeChar.sendMessage("You cannot change academy member grade");
          return;
        }
        member.setPowerGrade(_powerGrade);
        clan.broadcastClanStatus();
    }
View Full Code Here

            flag.spawnMe(player.getX(), player.getY(), player.getZ() + 50);
            castle.getSiege().getFlag(player.getClan()).add(flag);
        }
        catch (Exception e)
        {
            player.sendMessage("Error placing flag:" + e);
        }
    }

    @Override
  public SkillType[] getSkillIds()
View Full Code Here

    if (item == null) return;

    if (activeChar.getLevel() < 46)
    {
      activeChar.sendMessage("You have to be level 46 in order to augment an item");
      return;
    }

    // check if the item is augmentable
    int itemGrade = item.getItem().getItemGrade();
View Full Code Here

    // Prevent player from unequipping items in special conditions
         if (activeChar.isStunned() || activeChar.isSleeping()
             || activeChar.isParalyzed() || activeChar.isAlikeDead())
        {
            activeChar.sendMessage("Your status does not allow you to do that.");
            return;
        }
        if (activeChar.isAttackingNow() || activeChar.isCastingNow())
          return;
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");
            return;
        }

        TradeList tradeList = player.getSellList();
        tradeList.clear();
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.