Package l2p.extensions.multilang

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


    }
    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

    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

    }
    if(attacker.getLevel() > max_attacker_level)
    {
      if(max_attacker_level > 0)
      {
        attacker.sendMessage(new CustomMessage("l2p.gameserver.model.L2Character.ParalizeOnAttack", attacker).addCharName(this).addNumber(max_attacker_level));
      }
      return true;
    }
    return false;
  }
View Full Code Here

            L2Spawn spawn = RaidBossSpawnManager.getInstance().getSpawnTable().get(bossId);
            // Убираем и ставим флажок на карте и стрелку на компасе
            player.sendPacket(new RadarControl(2, 2, spawn.getLoc()), new RadarControl(0, 1, spawn.getLoc()));
            break;
          case UNDEFINED:
            player.sendMessage(new CustomMessage("l2p.gameserver.model.instances.L2AdventurerInstance.BossNotInGame", player).addNumber(bossId));
            break;
        }
      }
      catch(NumberFormatException e)
      {
View Full Code Here

            targets.add(target);
          }
        }
      }
      _skill.useSkill(this, targets);
      target.sendMessage(new CustomMessage("common.Trap", target));
      destroy();
    }
  }
View Full Code Here

        case 4: // Join a Cabal - SevenSigns 4 [0]1 x
          int newSeal = Integer.parseInt(command.substring(15));
          int oldCabal = SevenSigns.getInstance().getPlayerCabal(player);
          if(oldCabal != SevenSigns.CABAL_NULL)
          {
            player.sendMessage(new CustomMessage("l2p.gameserver.model.instances.L2SignsPriestInstance.AlreadyMember", player).addString(SevenSigns.getCabalName(cabal)));
            return;
          }
          if(player.getClassId().level() == 0)
          {
            player.sendMessage(new CustomMessage("l2p.gameserver.model.instances.L2SignsPriestInstance.YouAreNewbie", player));
            break;
          }
          else if(player.getClassId().level() >= 2)
          {
            if(Config.ALT_GAME_REQUIRE_CASTLE_DAWN)
            {
              if(getPlayerAllyHasCastle(player))
              {
                if(cabal == SevenSigns.CABAL_DUSK)
                {
                  player.sendMessage(new CustomMessage("l2p.gameserver.model.instances.L2SignsPriestInstance.CastleOwning", player));
                  return;
                }
              }
              else
                /*
                               * If the player is trying to join the Lords of Dawn, check if they are
                               * carrying a Lord's certificate.
                               *
                               * If not then try to take the required amount of adena instead.
                               */
                if(cabal == SevenSigns.CABAL_DAWN)
                {
                  boolean allowJoinDawn = false;
                  if(Functions.getItemCount(player, SevenSigns.CERTIFICATE_OF_APPROVAL_ID) > 0)
                  {
                    Functions.removeItem(player, SevenSigns.CERTIFICATE_OF_APPROVAL_ID, 1);
                    allowJoinDawn = true;
                  }
                  else if(Config.ALT_GAME_ALLOW_ADENA_DAWN && player.getAdena() >= SevenSigns.ADENA_JOIN_DAWN_COST)
                  {
                    player.reduceAdena(SevenSigns.ADENA_JOIN_DAWN_COST, true);
                    allowJoinDawn = true;
                  }
                  if(!allowJoinDawn)
                  {
                    if(Config.ALT_GAME_ALLOW_ADENA_DAWN)
                    {
                      player.sendMessage(new CustomMessage("l2p.gameserver.model.instances.L2SignsPriestInstance.CastleOwningCertificate", player));
                    }
                    else
                    {
                      player.sendMessage(new CustomMessage("l2p.gameserver.model.instances.L2SignsPriestInstance.CastleOwningCertificate2", player));
                    }
                    return;
                  }
                }
            }
          }
          SevenSigns.getInstance().setPlayerInfo(player.getObjectId(), cabal, newSeal);
          if(cabal == SevenSigns.CABAL_DAWN)
          {
            player.sendPacket(Msg.YOU_WILL_PARTICIPATE_IN_THE_SEVEN_SIGNS_AS_A_MEMBER_OF_THE_LORDS_OF_DAWN); // Joined Dawn
          }
          else
          {
            player.sendPacket(Msg.YOU_WILL_PARTICIPATE_IN_THE_SEVEN_SIGNS_AS_A_MEMBER_OF_THE_REVOLUTIONARIES_OF_DUSK);
          } // Joined Dusk
          //Show a confirmation message to the user, indicating which seal they chose.
          switch(newSeal)
          {
            case SevenSigns.SEAL_AVARICE:
              player.sendPacket(Msg.YOUVE_CHOSEN_TO_FIGHT_FOR_THE_SEAL_OF_AVARICE_DURING_THIS_QUEST_EVENT_PERIOD);
              break;
            case SevenSigns.SEAL_GNOSIS:
              player.sendPacket(Msg.YOUVE_CHOSEN_TO_FIGHT_FOR_THE_SEAL_OF_GNOSIS_DURING_THIS_QUEST_EVENT_PERIOD);
              break;
            case SevenSigns.SEAL_STRIFE:
              player.sendPacket(Msg.YOUVE_CHOSEN_TO_FIGHT_FOR_THE_SEAL_OF_STRIFE_DURING_THIS_QUEST_EVENT_PERIOD);
              break;
          }
          showChatWindow(player, 4, SevenSigns.getCabalShortName(cabal), false);
          break;
        case 6: // Contribute Seal Stones - SevenSigns 6 x
          stoneType = Integer.parseInt(command.substring(13));
          L2ItemInstance redStones = player.getInventory().getItemByItemId(SevenSigns.SEAL_STONE_RED_ID);
          long redStoneCount = redStones == null ? 0 : redStones.getCount();
          L2ItemInstance greenStones = player.getInventory().getItemByItemId(SevenSigns.SEAL_STONE_GREEN_ID);
          long greenStoneCount = greenStones == null ? 0 : greenStones.getCount();
          L2ItemInstance blueStones = player.getInventory().getItemByItemId(SevenSigns.SEAL_STONE_BLUE_ID);
          long blueStoneCount = blueStones == null ? 0 : blueStones.getCount();
          long contribScore = SevenSigns.getInstance().getPlayerContribScore(player);
          boolean stonesFound = false;
          if(contribScore == SevenSigns.MAXIMUM_PLAYER_CONTRIB)
          {
            player.sendPacket(Msg.CONTRIBUTION_LEVEL_HAS_EXCEEDED_THE_LIMIT_YOU_MAY_NOT_CONTINUE);
          }
          else
          {
            long redContribCount = 0;
            long greenContribCount = 0;
            long blueContribCount = 0;
            switch(stoneType)
            {
              case 1:
                blueContribCount = (SevenSigns.MAXIMUM_PLAYER_CONTRIB - contribScore) / SevenSigns.BLUE_CONTRIB_POINTS;
                if(blueContribCount > blueStoneCount)
                {
                  blueContribCount = blueStoneCount;
                }
                break;
              case 2:
                greenContribCount = (SevenSigns.MAXIMUM_PLAYER_CONTRIB - contribScore) / SevenSigns.GREEN_CONTRIB_POINTS;
                if(greenContribCount > greenStoneCount)
                {
                  greenContribCount = greenStoneCount;
                }
                break;
              case 3:
                redContribCount = (SevenSigns.MAXIMUM_PLAYER_CONTRIB - contribScore) / SevenSigns.RED_CONTRIB_POINTS;
                if(redContribCount > redStoneCount)
                {
                  redContribCount = redStoneCount;
                }
                break;
              case 4:
                long tempContribScore = contribScore;
                redContribCount = (SevenSigns.MAXIMUM_PLAYER_CONTRIB - tempContribScore) / SevenSigns.RED_CONTRIB_POINTS;
                if(redContribCount > redStoneCount)
                {
                  redContribCount = redStoneCount;
                }
                tempContribScore += redContribCount * SevenSigns.RED_CONTRIB_POINTS;
                greenContribCount = (SevenSigns.MAXIMUM_PLAYER_CONTRIB - tempContribScore) / SevenSigns.GREEN_CONTRIB_POINTS;
                if(greenContribCount > greenStoneCount)
                {
                  greenContribCount = greenStoneCount;
                }
                tempContribScore += greenContribCount * SevenSigns.GREEN_CONTRIB_POINTS;
                blueContribCount = (SevenSigns.MAXIMUM_PLAYER_CONTRIB - tempContribScore) / SevenSigns.BLUE_CONTRIB_POINTS;
                if(blueContribCount > blueStoneCount)
                {
                  blueContribCount = blueStoneCount;
                }
                break;
            }
            if(redContribCount > 0)
            {
              L2ItemInstance temp = player.getInventory().getItemByItemId(SevenSigns.SEAL_STONE_RED_ID);
              if(temp != null && temp.getCount() >= redContribCount)
              {
                player.getInventory().destroyItemByItemId(SevenSigns.SEAL_STONE_RED_ID, (int) redContribCount, true);
                stonesFound = true;
              }
            }
            if(greenContribCount > 0)
            {
              L2ItemInstance temp = player.getInventory().getItemByItemId(SevenSigns.SEAL_STONE_GREEN_ID);
              if(temp != null && temp.getCount() >= greenContribCount)
              {
                player.getInventory().destroyItemByItemId(SevenSigns.SEAL_STONE_GREEN_ID, (int) greenContribCount, true);
                stonesFound = true;
              }
            }
            if(blueContribCount > 0)
            {
              L2ItemInstance temp = player.getInventory().getItemByItemId(SevenSigns.SEAL_STONE_BLUE_ID);
              if(temp != null && temp.getCount() >= blueContribCount)
              {
                player.getInventory().destroyItemByItemId(SevenSigns.SEAL_STONE_BLUE_ID, (int) blueContribCount, true);
                stonesFound = true;
              }
            }
            if(!stonesFound)
            {
              player.sendMessage(new CustomMessage("l2p.gameserver.model.instances.L2SignsPriestInstance.DontHaveAnySSType", player));
              return;
            }
            contribScore = SevenSigns.getInstance().addPlayerStoneContrib(player, blueContribCount, greenContribCount, redContribCount);
            sm = new SystemMessage(SystemMessage.YOUR_CONTRIBUTION_SCORE_IS_INCREASED_BY_S1);
            sm.addNumber(contribScore);
            player.sendPacket(sm);
            showChatWindow(player, 6, null, false);
          }
          break;
        case 7: // Exchange Ancient Adena for Adena - SevenSigns 7 xxxxxxx
          long ancientAdenaConvert = 0;
          try
          {
            ancientAdenaConvert = Long.parseLong(command.substring(13).trim());
          }
          catch(NumberFormatException e)
          {
            player.sendMessage(new CustomMessage("common.IntegerAmount", player));
            return;
          }
          catch(StringIndexOutOfBoundsException e)
          {
            player.sendMessage(new CustomMessage("common.IntegerAmount", player));
            return;
          }
          if(ancientAdenaAmount < ancientAdenaConvert || ancientAdenaConvert < 1)
          {
            player.sendPacket(Msg.YOU_DO_NOT_HAVE_ENOUGH_ADENA);
            return;
          }
          InventoryUpdate iu = new InventoryUpdate();
          iu.addItem(player.addAdena(ancientAdenaConvert));
          iu.addItem(player.getInventory().destroyItemByItemId(SevenSigns.ANCIENT_ADENA_ID, ancientAdenaConvert, true));
          player.sendPacket(iu);
          player.sendPacket(SystemMessage.removeItems(5575, ancientAdenaConvert));
          player.sendPacket(SystemMessage.obtainItems(57, ancientAdenaConvert, 0));
          break;
        case 9: // Receive Contribution Rewards
          int playerCabal = SevenSigns.getInstance().getPlayerCabal(player);
          int winningCabal = SevenSigns.getInstance().getCabalHighestScore();
          if(SevenSigns.getInstance().isSealValidationPeriod() && playerCabal == winningCabal)
          {
            int ancientAdenaReward = SevenSigns.getInstance().getAncientAdenaReward(player, true);
            if(ancientAdenaReward < 3)
            {
              showChatWindow(player, 9, "b", false);
              return;
            }
            ancientAdena = ItemTable.getInstance().createItem(SevenSigns.ANCIENT_ADENA_ID);
            ancientAdena.setCount(ancientAdenaReward);
            player.getInventory().addItem(ancientAdena);
            player.sendPacket(SystemMessage.obtainItems(SevenSigns.ANCIENT_ADENA_ID, ancientAdenaReward, 0));
            showChatWindow(player, 9, "a", false);
          }
          break;
        case 11: // Teleport to Hunting Grounds - deprecated, instead use scripts_Util:QuestGatekeeper x y x 5575 price
          try
          {
            String portInfo = command.substring(14).trim();
            StringTokenizer st = new StringTokenizer(portInfo);
            int x = Integer.parseInt(st.nextToken());
            int y = Integer.parseInt(st.nextToken());
            int z = Integer.parseInt(st.nextToken());
            long ancientAdenaCost = Long.parseLong(st.nextToken());
            if(ancientAdenaCost > 0)
            {
              L2ItemInstance temp = player.getInventory().getItemByItemId(SevenSigns.ANCIENT_ADENA_ID);
              if(temp == null || ancientAdenaCost > temp.getCount())
              {
                player.sendPacket(Msg.YOU_DO_NOT_HAVE_ENOUGH_ADENA);
                return;
              }
              player.getInventory().destroyItemByItemId(SevenSigns.ANCIENT_ADENA_ID, ancientAdenaCost, true);
            }
            player.teleToLocation(x, y, z);
          }
          catch(Exception e)
          {
            _log.warning("SevenSigns: Error occurred while teleporting player: " + e);
          }
          break;
        case 17: // Exchange Seal Stones for Ancient Adena (Type Choice) - SevenSigns 17 x
          stoneType = Integer.parseInt(command.substring(14));
          int stoneId = 0;
          long stoneCount = 0;
          int stoneValue = 0;
          String stoneColor = null;
          String content;
          if(stoneType == 4)
          {
            L2ItemInstance BlueStoneInstance = player.getInventory().getItemByItemId(SevenSigns.SEAL_STONE_BLUE_ID);
            long bcount = BlueStoneInstance != null ? BlueStoneInstance.getCount() : 0;
            L2ItemInstance GreenStoneInstance = player.getInventory().getItemByItemId(SevenSigns.SEAL_STONE_GREEN_ID);
            long gcount = GreenStoneInstance != null ? GreenStoneInstance.getCount() : 0;
            L2ItemInstance RedStoneInstance = player.getInventory().getItemByItemId(SevenSigns.SEAL_STONE_RED_ID);
            long rcount = RedStoneInstance != null ? RedStoneInstance.getCount() : 0;
            long ancientAdenaReward = SevenSigns.calcAncientAdenaReward(bcount, gcount, rcount);
            if(ancientAdenaReward > 0)
            {
              if(BlueStoneInstance != null)
              {
                player.getInventory().destroyItem(BlueStoneInstance, bcount, true);
                player.sendPacket(SystemMessage.removeItems(SevenSigns.SEAL_STONE_BLUE_ID, bcount));
              }
              if(GreenStoneInstance != null)
              {
                player.getInventory().destroyItem(GreenStoneInstance, gcount, true);
                player.sendPacket(SystemMessage.removeItems(SevenSigns.SEAL_STONE_GREEN_ID, gcount));
              }
              if(RedStoneInstance != null)
              {
                player.getInventory().destroyItem(RedStoneInstance, rcount, true);
                player.sendPacket(SystemMessage.removeItems(SevenSigns.SEAL_STONE_RED_ID, rcount));
              }
              ancientAdena = ItemTable.getInstance().createItem(SevenSigns.ANCIENT_ADENA_ID);
              ancientAdena.setCount(ancientAdenaReward);
              player.getInventory().addItem(ancientAdena);
              player.sendPacket(SystemMessage.obtainItems(SevenSigns.ANCIENT_ADENA_ID, ancientAdenaReward, 0));
            }
            else
            {
              player.sendMessage(new CustomMessage("l2p.gameserver.model.instances.L2SignsPriestInstance.DontHaveAnySS", player));
            }
            break;
          }
          switch(stoneType)
          {
            case 1:
              stoneColor = "blue";
              stoneId = SevenSigns.SEAL_STONE_BLUE_ID;
              stoneValue = SevenSigns.SEAL_STONE_BLUE_VALUE;
              break;
            case 2:
              stoneColor = "green";
              stoneId = SevenSigns.SEAL_STONE_GREEN_ID;
              stoneValue = SevenSigns.SEAL_STONE_GREEN_VALUE;
              break;
            case 3:
              stoneColor = "red";
              stoneId = SevenSigns.SEAL_STONE_RED_ID;
              stoneValue = SevenSigns.SEAL_STONE_RED_VALUE;
              break;
          }
          L2ItemInstance stoneInstance = player.getInventory().getItemByItemId(stoneId);
          if(stoneInstance != null)
          {
            stoneCount = stoneInstance.getCount();
          }
          path = SevenSigns.SEVEN_SIGNS_HTML_PATH + "signs_17.htm";
          content = Files.read(path, player);
          if(content != null)
          {
            content = content.replaceAll("%stoneColor%", stoneColor);
            content = content.replaceAll("%stoneValue%", String.valueOf(stoneValue));
            content = content.replaceAll("%stoneCount%", String.valueOf(stoneCount));
            content = content.replaceAll("%stoneItemId%", String.valueOf(stoneId));
            NpcHtmlMessage html = new NpcHtmlMessage(player, this);
            html.setHtml(content);
            player.sendPacket(html);
          }
          else
          {
            _log.warning("Problem with HTML text " + SevenSigns.SEVEN_SIGNS_HTML_PATH + "signs_17.htm: " + path);
          }
          break;
        case 18: // Exchange Seal Stones for Ancient Adena - SevenSigns 18 xxxx xxxxxx
          int convertStoneId = Integer.parseInt(command.substring(14, 18));
          long convertCount = 0;
          try
          {
            convertCount = Long.parseLong(command.substring(19).trim());
          }
          catch(Exception NumberFormatException)
          {
            player.sendMessage(new CustomMessage("common.IntegerAmount", player));
            break;
          }
          L2ItemInstance convertItem = player.getInventory().getItemByItemId(convertStoneId);
          if(convertItem == null)
          {
            player.sendMessage(new CustomMessage("l2p.gameserver.model.instances.L2SignsPriestInstance.DontHaveAnySSType", player));
            break;
          }
          long totalCount = convertItem.getCount();
          long ancientAdenaReward = 0;
          if(convertCount <= totalCount && convertCount > 0)
          {
            switch(convertStoneId)
            {
              case SevenSigns.SEAL_STONE_BLUE_ID:
                ancientAdenaReward = SevenSigns.calcAncientAdenaReward(convertCount, 0, 0);
                break;
              case SevenSigns.SEAL_STONE_GREEN_ID:
                ancientAdenaReward = SevenSigns.calcAncientAdenaReward(0, convertCount, 0);
                break;
              case SevenSigns.SEAL_STONE_RED_ID:
                ancientAdenaReward = SevenSigns.calcAncientAdenaReward(0, 0, convertCount);
                break;
            }
            L2ItemInstance temp = player.getInventory().getItemByItemId(convertStoneId);
            if(temp != null && temp.getCount() >= convertCount)
            {
              player.getInventory().destroyItemByItemId(convertStoneId, convertCount, true);
              ancientAdena = ItemTable.getInstance().createItem(SevenSigns.ANCIENT_ADENA_ID);
              ancientAdena.setCount(ancientAdenaReward);
              player.getInventory().addItem(ancientAdena);
              player.sendPacket(SystemMessage.removeItems(convertStoneId, convertCount), SystemMessage.obtainItems(SevenSigns.ANCIENT_ADENA_ID, ancientAdenaReward, 0));
            }
          }
          else
          {
            player.sendMessage(new CustomMessage("l2p.gameserver.model.instances.L2SignsPriestInstance.DontHaveSSAmount", player));
          }
          break;
        case 19: // Seal Information (for when joining a cabal)
          int chosenSeal = Integer.parseInt(command.substring(16));
          String fileSuffix = SevenSigns.getSealName(chosenSeal, true) + "_" + SevenSigns.getCabalShortName(cabal);
View Full Code Here

      player.sendPacket(Msg.SYSTEM_ERROR);
      return;
    }
    if(Config.ALT_KAMALOKA_NIGHTMARES_PREMIUM_ONLY && player.getBonus().RATE_XP <= 1)
    {
      player.sendMessage(new CustomMessage("common.PremiumOnly", player));
      return;
    }
    InstancedZoneManager izm = InstancedZoneManager.getInstance();
    FastMap<Integer, InstancedZone> izs = InstancedZoneManager.getInstance().getById(Integer.parseInt(param[0]));
    if(izs == null)
View Full Code Here

      if(Config.AUTO_LOOT)
      {
        if(activeChar.isAutoLootEnabled())
        {
          bt = cfg_button.sprintf(new Object[] {100, "autoloot false",
            new CustomMessage("scripts.commands.voiced.Lang.Disable", activeChar).toString()});
        }
        else
        {
          bt = cfg_button.sprintf(new Object[] {100, "autoloot true",
            new CustomMessage("scripts.commands.voiced.Lang.Enable", activeChar).toString()});
        }
        additional += cfg_row.sprintf(new Object[] {"Auto-loot", bt});
      }
      if(Config.AUTO_LOOT_HERBS)
      {
        if(activeChar.isAutoLootHerbsEnabled())
        {
          bt = cfg_button.sprintf(new Object[] {100, "autolooth false",
            new CustomMessage("scripts.commands.voiced.Lang.Disable", activeChar).toString()});
        }
        else
        {
          bt = cfg_button.sprintf(new Object[] {100, "autolooth true",
            new CustomMessage("scripts.commands.voiced.Lang.Enable", activeChar).toString()});
        }
        additional += cfg_row.sprintf(new Object[] {"Auto-loot herbs", bt});
      }
    }
    dialog = dialog.replaceFirst("%additional%", additional);
View Full Code Here

      activeChar.sendActionFailed();
      return false;
    }
    if(activeChar.getLevel() < Config.SERVICES_OFFLINE_TRADE_MIN_LEVEL)
    {
      show(new CustomMessage("scripts.commands.user.offline.LowLevel", activeChar).addNumber(Config.SERVICES_OFFLINE_TRADE_MIN_LEVEL), activeChar);
      return false;
    }
    if(!activeChar.isInStoreMode())
    {
      show(new CustomMessage("scripts.commands.user.offline.IncorrectUse", activeChar), activeChar);
      return false;
    }
    if(activeChar.getNoChannelRemained() > 0)
    {
      show(new CustomMessage("scripts.commands.user.offline.BanChat", activeChar), activeChar);
      return false;
    }
    if(activeChar.isActionBlocked(L2Zone.BLOCKED_ACTION_PRIVATE_STORE))
    {
      activeChar.sendMessage(new CustomMessage("trade.OfflineNoTradeZone", activeChar));
      return false;
    }
    if(Config.SERVICES_OFFLINE_TRADE_PRICE > 0 && Config.SERVICES_OFFLINE_TRADE_PRICE_ITEM > 0)
    {
      if(getItemCount(activeChar, Config.SERVICES_OFFLINE_TRADE_PRICE_ITEM) < Config.SERVICES_OFFLINE_TRADE_PRICE)
      {
        show(new CustomMessage("scripts.commands.user.offline.NotEnough", activeChar).addItemName(Config.SERVICES_OFFLINE_TRADE_PRICE_ITEM).addNumber(Config.SERVICES_OFFLINE_TRADE_PRICE), activeChar);
        return false;
      }
      removeItem(activeChar, Config.SERVICES_OFFLINE_TRADE_PRICE_ITEM, Config.SERVICES_OFFLINE_TRADE_PRICE);
    }
    L2TradeList.validateList(activeChar);
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.