Package lineage2.gameserver.templates

Examples of lineage2.gameserver.templates.Henna


    {
      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

    Player player = getClient().getActiveChar();
    if (player == null)
    {
      return;
    }
    Henna henna = HennaHolder.getInstance().getHenna(_symbolId);
    if (henna != null)
    {
      player.sendPacket(new HennaUnequipInfo(henna, player));
    }
  }
View Full Code Here

  {
    List<Henna> list = new ArrayList<>();
    for (TIntObjectIterator<Henna> iterator = _hennas.iterator(); iterator.hasNext();)
    {
      iterator.advance();
      Henna h = iterator.value();
      if (h.isForThisClass(player))
      {
        list.add(h);
      }
    }
    return list;
View Full Code Here

      for (Iterator<Element> classIterator = hennaElement.elementIterator("class"); classIterator.hasNext();)
      {
        Element classElement = classIterator.next();
        list.add(Integer.parseInt(classElement.attributeValue("id")));
      }
      Henna henna = new Henna(symbolId, dyeId, price, drawCount, wit, _int, con, str, dex, men, skillId, list);
      getHolder().addHenna(henna);
    }
  }
View Full Code Here

    {
      return;
    }
    for (int i = 1; i <= 3; i++)
    {
      Henna henna = player.getHenna(i);
      if (henna == null)
      {
        continue;
      }
      if (henna.getSymbolId() == _symbolId)
      {
        long price = henna.getPrice() / 5;
        if (player.getAdena() < price)
        {
          player.sendPacket(SystemMsg.YOU_DO_NOT_HAVE_ENOUGH_ADENA);
          break;
        }
View Full Code Here

    Player player = getClient().getActiveChar();
    if (player == null)
    {
      return;
    }
    Henna henna = HennaHolder.getInstance().getHenna(_symbolId);
    if (henna != null)
    {
      player.sendPacket(new HennaItemInfo(henna, player));
    }
  }
View Full Code Here

    _men = cha.getHennaStatMEN();

    int j = 0;
    for (int i = 0; i < 3; i++)
    {
      Henna h = cha.getHenna(i + 1);
      if (h != null)
        _hennas[j++] = h;
    }
    _count = j;
  }
View Full Code Here

TOP

Related Classes of lineage2.gameserver.templates.Henna

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.