Package l2p.extensions.multilang

Examples of l2p.extensions.multilang.CustomMessage


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


        activeChar.sendPacket(msg);
        return false;
      }
      if(activeChar.isAlikeDead())
      {
        activeChar.sendMessage(new CustomMessage("scripts.commands.voiced.Relocate.Dead", activeChar));
        return false;
      }
      L2Player[] clan = activeChar.getClan().getOnlineMembers(activeChar.getObjectId());
      for(L2Player pl : clan)
      {
View Full Code Here

    }
    switch(id)
    {
      case 92: //channelcreate
        // "Используйте команду /channelinvite"
        activeChar.sendMessage(new CustomMessage("scripts.commands.user.CommandChannel", activeChar));
        break;
      case 93: //channeldelete
        if(!activeChar.isInParty() || !activeChar.getParty().isInCommandChannel())
        {
          return true;
View Full Code Here

    {
      return;
    }
    String append = "!Rename";
    append += "<br>";
    append += "<font color=\"LEVEL\">" + new CustomMessage("scripts.services.Rename.RenameFor", getSelf()).addString(Util.formatAdena(Config.SERVICES_CHANGE_NICK_PRICE)).addItemName(Config.SERVICES_CHANGE_NICK_ITEM) + "</font>";
    append += "<table>";
    append += "<tr><td>" + new CustomMessage("scripts.services.Rename.NewName", getSelf()) + " <edit var=\"new_name\" width=80></td></tr>";
    append += "<tr><td></td></tr>";
    append += "<tr><td><button value=\"" + new CustomMessage("scripts.services.Rename.RenameButton", getSelf()) + "\" action=\"bypass -h scripts_services.Rename:rename $new_name\" width=80 height=15 back=\"L2UI_CT1.Button_DF_Down\" fore=\"L2UI_CT1.Button_DF\"></td></tr>";
    append += "</table>";
    show(append, player);
  }
View Full Code Here

      show("You must be in peace zone to use this service.", player);
      return;
    }
    String append = "Sex changing";
    append += "<br>";
    append += "<font color=\"LEVEL\">" + new CustomMessage("scripts.services.SexChange.SexChangeFor", player).addString(Util.formatAdena(Config.SERVICES_CHANGE_SEX_PRICE)).addItemName(Config.SERVICES_CHANGE_SEX_ITEM) + "</font>";
    append += "<table>";
    append += "<tr><td><button value=\"" + new CustomMessage("scripts.services.SexChange.Button", player) + "\" action=\"bypass -h scripts_services.Rename:changesex\" width=80 height=15 back=\"L2UI_CT1.Button_DF_Down\" fore=\"L2UI_CT1.Button_DF\"></td></tr>";
    append += "</table>";
    show(append, player);
  }
View Full Code Here

      show("You must have at least 75 level.", player);
      return;
    }
    String append = "Subclass separation";
    append += "<br>";
    append += "<font color=\"LEVEL\">" + new CustomMessage("scripts.services.Separate.Price", player).addString(Util.formatAdena(Config.SERVICES_SEPARATE_SUB_PRICE)).addItemName(Config.SERVICES_SEPARATE_SUB_ITEM) + "</font>&nbsp;";
    append += "<edit var=\"name\" width=80 height=15 /><br>";
    append += "<table>";
    for(L2SubClass s : player.getSubClasses().values())
    {
      if(!s.isBase() && s.getClassId() != ClassId.inspector.getId() && s.getClassId() != ClassId.judicator.getId())
      {
        append += "<tr><td><button value=\"" + new CustomMessage("scripts.services.Separate.Button", player).addString(ClassId.values()[s.getClassId()].toString()) + "\" action=\"bypass -h scripts_services.Rename:separate " + s.getClassId() + " $name\" width=200 height=15 back=\"L2UI_CT1.Button_DF_Down\" fore=\"L2UI_CT1.Button_DF\"></td></tr>";
      }
    }
    append += "</table>";
    show(append, player);
  }
View Full Code Here

      sendMessage("Not available for heroes.", player);
      return;
    }
    String append = "Base class changing";
    append += "<br>";
    append += "<font color=\"LEVEL\">" + new CustomMessage("scripts.services.BaseChange.Price", player).addString(Util.formatAdena(Config.SERVICES_CHANGE_BASE_PRICE)).addItemName(Config.SERVICES_CHANGE_BASE_ITEM) + "</font>";
    append += "<table>";
    GArray<L2SubClass> possible = new GArray<L2SubClass>();
    if(player.getActiveClass().isBase())
    {
      possible.addAll(player.getSubClasses().values());
      possible.remove(player.getSubClasses().get(player.getBaseClassId()));
      for(L2SubClass s : player.getSubClasses().values())
      {
        for(L2SubClass s2 : player.getSubClasses().values())
        {
          if(s != s2 && !PlayerClass.areClassesComportable(PlayerClass.values()[s.getClassId()], PlayerClass.values()[s2.getClassId()]) || s2.getLevel() < 75)
          {
            possible.remove(s2);
          }
        }
      }
    }
    if(possible.isEmpty())
    {
      append += "<tr><td width=300>" + new CustomMessage("scripts.services.BaseChange.NotPossible", player) + "</td></tr>";
    }
    else
    {
      for(L2SubClass s : possible)
      {
        append += "<tr><td><button value=\"" + new CustomMessage("scripts.services.BaseChange.Button", player).addString(ClassId.values()[s.getClassId()].toString()) + "\" action=\"bypass -h scripts_services.Rename:changebase " + s.getClassId() + "\" width=200 height=15 back=\"L2UI_CT1.Button_DF_Down\" fore=\"L2UI_CT1.Button_DF\"></td></tr>";
      }
    }
    append += "</table>";
    show(append, player);
  }
View Full Code Here

    {
      return;
    }
    if(args.length != 1)
    {
      show(new CustomMessage("scripts.services.Rename.incorrectinput", player), player);
      return;
    }
    if(player.getSiegeState() != 0)
    {
      show(new CustomMessage("scripts.services.Rename.SiegeNow", player), player);
      return;
    }
    String name = args[0];
    if(!Util.isMatchingRegexp(name, Config.CNAME_TEMPLATE))
    {
      show(new CustomMessage("scripts.services.Rename.incorrectinput", player), player);
      return;
    }
    if(getItemCount(player, Config.SERVICES_CHANGE_NICK_ITEM) < Config.SERVICES_CHANGE_NICK_PRICE)
    {
      if(Config.SERVICES_CHANGE_NICK_ITEM == 57)
      {
        player.sendPacket(Msg.YOU_DO_NOT_HAVE_ENOUGH_ADENA);
      }
      else
      {
        player.sendPacket(Msg.INCORRECT_ITEM_COUNT);
      }
      return;
    }
    if(!Util.isCharNameAvail(name))
    {
      show(new CustomMessage("scripts.services.Rename.Thisnamealreadyexists", player), player);
      return;
    }
    removeItem(player, Config.SERVICES_CHANGE_NICK_ITEM, Config.SERVICES_CHANGE_NICK_PRICE);
    String oldName = player.getName();
    player.reName(name, true);
    Log.add("Character " + oldName + " renamed to " + name, "renames");
    show(new CustomMessage("scripts.services.Rename.changedname", player).addString(oldName).addString(name), player);
  }
View Full Code Here

      offline.executeUpdate();
    }
    catch(Exception e)
    {
      e.printStackTrace();
      show(new CustomMessage("common.Error", player), player);
      return;
    }
    finally
    {
      DatabaseUtils.closeDatabaseCS(con, offline);
View Full Code Here

      {
        st.nextToken();
        short classId = Short.parseShort(st.nextToken());
        if(!player.addSubClass(classId, true))
        {
          activeChar.sendMessage(new CustomMessage("l2p.gameserver.model.instances.L2VillageMasterInstance.SubclassCouldNotBeAdded", activeChar));
          return false;
        }
        player.sendPacket(Msg.CONGRATULATIONS_YOU_HAVE_TRANSFERRED_TO_A_NEW_CLASS); // Transfer to new class.
      }
      else
View Full Code Here

TOP

Related Classes of l2p.extensions.multilang.CustomMessage

Copyright © 2018 www.massapicom. 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.