Examples of CustomMessage


Examples of l2p.extensions.multilang.CustomMessage

    L2Player plyr = L2World.getPlayer(actor);
    ThreadConnection con = null;
    FiltredPreparedStatement statement = null;
    if(plyr != null)
    {
      plyr.sendMessage(new CustomMessage("l2p.Util.AutoBan.ChatBan", actor).addString(GM).addNumber(period));
      plyr.updateNoChannel(NoChannel);
    }
    else
    {
      try
View Full Code Here

Examples of l2p.extensions.multilang.CustomMessage

    }
    ThreadConnection con = null;
    FiltredPreparedStatement statement = null;
    if(plyr != null)
    {
      plyr.sendMessage(new CustomMessage("l2p.Util.AutoBan.ChatUnBan", actor).addString(GM));
      plyr.updateNoChannel(0);
    }
    else
    {
      try
View Full Code Here

Examples of l2p.extensions.multilang.CustomMessage

    Log.LogBug(actor, isBug > 1 ? Log.BugUse : Log.IllegalAction, etc_str1, etc_str2, "", punishment, 0);
    switch(punishment)
    {
      case 0:
        msgb.append(" punish: none");
        actor.sendMessage(new CustomMessage("l2p.Util.IllegalAction.case0", actor));
        return;
      case 1:
        actor.sendMessage(new CustomMessage("l2p.Util.IllegalAction.case1", actor));
        try
        {
          Thread.sleep(1000);
        }
        catch(InterruptedException e)
        {
          e.printStackTrace();
        }
        actor.logout(false, false, true, false);
        msgb.append(" punish: kicked");
        break;
      case 2:
        actor.sendMessage(new CustomMessage("l2p.Util.IllegalAction.case2", actor));
        actor.setAccessLevel(-100);
        actor.setAccountAccesslevel(-100, "Autoban: " + etc_str2 + " in " + etc_str1, -1);
        try
        {
          Thread.sleep(1000);
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.components.CustomMessage

    {
      return;
    }
    if (!Config.ALT_ALLOW_SHADOW_WEAPONS)
    {
      show(new CustomMessage("common.Disabled", player), player);
      return;
    }
    if ((player.getLevel() > 19) || (player.getClassLevel() > 1))
    {
      show("Your level is too high!", player);
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.components.CustomMessage

    {
      return;
    }
    if (!Config.ALT_ALLOW_SHADOW_WEAPONS)
    {
      show(new CustomMessage("common.Disabled", player), player);
      return;
    }
    if ((player.getLevel() > 39) || (player.getClassLevel() > 2))
    {
      show("Your level is too high!", player);
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.components.CustomMessage

      }
      if (cha.getLevel() > zone.getParams().getInteger("levelLimit"))
      {
        if (cha.isPlayer())
        {
          cha.getPlayer().sendMessage(new CustomMessage("scripts.zones.epic.banishMsg", (Player) cha));
        }
        cha.teleToLocation(Location.parseLoc(zone.getParams().getString("tele")));
      }
    }
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.components.CustomMessage

      player.sendActionFailed();
      return;
    }
    if (player.isInObserverMode())
    {
      player.sendMessage(new CustomMessage("lineage2.gameserver.model.L2Playable.OutOfControl.ObserverNoAttack", player));
      return;
    }
    if (!checkTarget(target))
    {
      getAI().setIntention(CtrlIntention.AI_INTENTION_ACTIVE, null, null);
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.components.CustomMessage

    {
      return false;
    }
    if ((activeChar.getTeleMode() != 0) || !activeChar.getPlayerAccess().UseTeleport)
    {
      activeChar.sendMessage(new CustomMessage("common.TryLater", activeChar));
      return false;
    }
    if (activeChar.isTerritoryFlagEquipped())
    {
      activeChar.sendPacket(Msg.YOU_CANNOT_TELEPORT_WHILE_IN_POSSESSION_OF_A_WARD);
      return false;
    }
    if (activeChar.isInDuel() || (activeChar.getTeam() != TeamType.NONE))
    {
      activeChar.sendMessage(new CustomMessage("common.RecallInDuel", activeChar));
      return false;
    }
    activeChar.abortAttack(true, true);
    activeChar.abortCast(true, true);
    activeChar.stopMove();
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.components.CustomMessage

      case Party.ITEM_RANDOM_SPOIL:
        activeChar.sendPacket(Msg.LOOTING_METHOD_RANDOM_INCLUDING_SPOIL);
        break;
    }
    activeChar.sendPacket(new SystemMessage(SystemMessage.PARTY_LEADER_S1).addString(partyLeader.getName()));
    activeChar.sendMessage(new CustomMessage("scripts.commands.user.PartyInfo.Members", activeChar).addNumber(memberCount));
    activeChar.sendPacket(Msg.__DASHES__);
    return true;
  }
View Full Code Here

Examples of lineage2.gameserver.network.serverpackets.components.CustomMessage

    }
    sm.addString(df.format(h)).addString(df.format(m));
    activeChar.sendPacket(sm);
    if (Config.ALT_SHOW_SERVER_TIME)
    {
      activeChar.sendMessage(new CustomMessage("usercommandhandlers.Time.ServerTime", activeChar, sf.format(new Date(System.currentTimeMillis()))));
    }
    return true;
  }
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.