Package lineage2.gameserver.templates

Examples of lineage2.gameserver.templates.OptionDataTemplate


          break;
        case 30:
        case 20:
        case 10:
        case 5:
          Announcements.getInstance().announceToAll(new SystemMessage(SystemMessage.THE_SERVER_WILL_BE_COMING_DOWN_IN_S1_SECONDS__PLEASE_FIND_A_SAFE_PLACE_TO_LOG_OUT).addNumber(shutdownCounter));
          break;
        case 0:
          switch (shutdownMode)
          {
            case SHUTDOWN:
View Full Code Here


            spawnRoom(7);
            setReenterTime(System.currentTimeMillis());
            for(Player p : getPlayers())
            {
              p.sendPacket(new ExSendUIEvent(p, 1, 1, 0, 0));
              p.sendPacket(new SystemMessage(SystemMessage.THIS_DUNGEON_WILL_EXPIRE_IN_S1_MINUTES).addNumber(5));
            }
            startCollapseTimer(5 * 60 * 1000L);
            timeSpent = (int) (System.currentTimeMillis() - _savedTime) / 1000;
          }
        }, 10000L);
View Full Code Here

    {
      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

    {
      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

      ThreadPoolManager.getInstance().schedule(new RestoreOfflineTraders(), 30000L);
    }
    getListeners().onStart();
    if (Config.IS_TELNET_ENABLED)
    {
      statusServer = new TelnetServer();
    }
    else
    {
      _log.info("Telnet server is currently disabled.");
    }
View Full Code Here

      _selectorThreads[i].start();
    }
    LoginServerCommunication.getInstance().start();
    if (Config.SERVICES_OFFLINE_TRADE_RESTORE_AFTER_RESTART)
    {
      ThreadPoolManager.getInstance().schedule(new RestoreOfflineTraders(), 30000L);
    }
    getListeners().onStart();
    if (Config.IS_TELNET_ENABLED)
    {
      statusServer = new TelnetServer();
View Full Code Here

              int val = Integer.parseInt(nextElement.attributeValue("val"));
              int i = 0;
              int[] options = new int[3];
              for (org.dom4j.Element optionElement : nextElement.elements())
              {
                OptionDataTemplate optionData = OptionDataHolder.getInstance().getTemplate(Integer.parseInt(optionElement.attributeValue("id")));
                if (optionData == null)
                {
                  error("Not found option_data for id: " + optionElement.attributeValue("id") + "; item_id: " + set.get("item_id"));
                  continue;
                }
                options[i++] = optionData.getId();
              }
              template.addEnchantOptions(val, options);
            }
          }
        }
View Full Code Here

    }
    Player player = actor.getPlayer();
    boolean needSendInfo = false;
    for (int i : item.getEnchantOptions())
    {
      OptionDataTemplate template = OptionDataHolder.getInstance().getTemplate(i);
      if (template == null)
      {
        continue;
      }
      player.removeStatsOwner(template);
      for (Skill skill : template.getSkills())
      {
        player.removeSkill(skill, false);
        needSendInfo = true;
      }
      for (TriggerInfo triggerInfo : template.getTriggerList())
      {
        player.removeTrigger(triggerInfo);
      }
    }
    if (needSendInfo)
View Full Code Here

    stats[0] = 0x0000FFFF & item.getAugmentationId();
    stats[1] = item.getAugmentationId() >> 16;
    boolean sendList = false;
    for (int i : stats)
    {
      OptionDataTemplate template = OptionDataHolder.getInstance().getTemplate(i);
      if (template == null)
      {
        continue;
      }
      player.removeStatsOwner(template);
      for (Skill skill : template.getSkills())
      {
        sendList = true;
        player.removeSkill(skill);
      }
      player.removeTriggers(template);
View Full Code Here

    stats[1] = item.getAugmentationId() >> 16;
    boolean sendList = false;
    boolean sendReuseList = false;
    for (int i : stats)
    {
      OptionDataTemplate template = OptionDataHolder.getInstance().getTemplate(i);
      if (template == null)
      {
        continue;
      }
      player.addStatFuncs(template.getStatFuncs(template));
      for (Skill skill : template.getSkills())
      {
        sendList = true;
        player.addSkill(skill);
        if (player.isSkillDisabled(skill))
        {
View Full Code Here

TOP

Related Classes of lineage2.gameserver.templates.OptionDataTemplate

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.