Package lineage2.gameserver.handler.bbs

Examples of lineage2.gameserver.handler.bbs.ICommunityBoardHandler


  public void onEvtDead(Creature killer)
  {
    final NpcInstance actor = getActor();
    super.onEvtDead(killer);
    actor.deleteMe();
    ThreadPoolManager.getInstance().schedule(new RunnableImpl()
    {
      @Override
      public void runImpl()
      {
        final NpcTemplate template = NpcHolder.getInstance().getTemplate(18602);
View Full Code Here


          getZone("[soi_hos_attack_attackup_5]").setActive(false);
          spawnRoom(6);
        }
      }
      else if(self.getNpcId() == Yehan)
        ThreadPoolManager.getInstance().schedule(new RunnableImpl(){
          @Override
          public void runImpl() throws Exception
          {
            spawnRoom(7);
            setReenterTime(System.currentTimeMillis());
View Full Code Here

   * @param time String
   * @param shutdownMode int
   */
  public void schedule(String time, int shutdownMode)
  {
    SchedulingPattern cronTime;
    try
    {
      cronTime = new SchedulingPattern(time);
    }
    catch (InvalidPatternException e)
    {
      return;
    }
    int seconds = (int) ((cronTime.next(System.currentTimeMillis()) / 1000L) - (System.currentTimeMillis() / 1000L));
    schedule(seconds, shutdownMode);
  }
View Full Code Here

  {
    _instance = this;
    _serverStarted = time();
    _listeners = new GameServerListenerList();
    new File("./log/").mkdir();
    version = new Version(GameServer.class);
    _log.info("=================================================");
    _log.info("Revision: ................ " + version.getRevisionNumber());
    _log.info("Build date: .............. " + version.getBuildDate());
    _log.info("Compiler version: ........ " + version.getBuildJdk());
    _log.info("=================================================");
View Full Code Here

    {
      synchronized (this)
      {
        if (_ai == null)
        {
          _ai = new ClonePlayerAI(this);
        }
      }
    }
    return (ClonePlayerAI) _ai;
  }
View Full Code Here

    }
    catch (Exception e)
    {
      _log.error("Unable to create ai of doorId " + _id, e);
    }
    return new DoorAI(door);
  }
View Full Code Here

    {
      return;
    }
    if (Config.COMMUNITYBOARD_ENABLED)
    {
      ICommunityBoardHandler handler = CommunityBoardManager.getInstance().getCommunityHandler(Config.BBS_DEFAULT);
      if (handler != null)
      {
        handler.onBypassCommand(activeChar, Config.BBS_DEFAULT);
      }
    }
    else
    {
      activeChar.sendPacket(new SystemMessage2(SystemMsg.THE_COMMUNITY_SERVER_IS_CURRENTLY_OFFLINE));
View Full Code Here

    Player activeChar = getClient().getActiveChar();
    if (activeChar == null)
    {
      return;
    }
    ICommunityBoardHandler handler = CommunityBoardManager.getInstance().getCommunityHandler(_url);
    if (handler != null)
    {
      if (!Config.COMMUNITYBOARD_ENABLED)
      {
        activeChar.sendPacket(new SystemMessage2(SystemMsg.THE_COMMUNITY_SERVER_IS_CURRENTLY_OFFLINE));
      }
      else
      {
        handler.onWriteCommand(activeChar, _url, _arg1, _arg2, _arg3, _arg4, _arg5);
      }
    }
  }
View Full Code Here

      StringTokenizer st2 = new StringTokenizer(bypass, ";");
      String[] mBypass = st2.nextToken().split(":");
      String pBypass = st2.hasMoreTokens() ? st2.nextToken() : null;
      if (pBypass != null)
      {
        ICommunityBoardHandler handler = CommunityBoardManager.getInstance().getCommunityHandler(pBypass);
        if (handler != null)
        {
          handler.onBypassCommand(player, pBypass);
        }
      }
      int listId = Integer.parseInt(mBypass[1]);
      MultiSellHolder.getInstance().SeparateAndSend(listId, player, 0);
      return;
    }
    else if (bypass.startsWith("_bbssell"))
    {
      StringTokenizer st2 = new StringTokenizer(bypass, ";");
      st2.nextToken().split(":");
      String pBypass = st2.hasMoreTokens() ? st2.nextToken() : null;
      if (pBypass != null)
      {
        ICommunityBoardHandler handler = CommunityBoardManager.getInstance().getCommunityHandler(pBypass);
        if (handler != null)
        {
          handler.onBypassCommand(player, pBypass);
        }
      }
      player.setIsBBSUse(true);
      NpcTradeList list = BuyListHolder.getInstance().getBuyList(-1);
      player.sendPacket(new ExBuySellList.BuyList(list, player, 0.), new ExBuySellList.SellRefundList(player, false));
      player.sendChanges();
      return;
    }
    else if (bypass.startsWith("_bbsscripts"))
    {
      StringTokenizer st2 = new StringTokenizer(bypass, ";");
      String sBypass = st2.nextToken().substring(12);
      String pBypass = st2.hasMoreTokens() ? st2.nextToken() : null;
      if (pBypass != null)
      {
        ICommunityBoardHandler handler = CommunityBoardManager.getInstance().getCommunityHandler(pBypass);
        if (handler != null)
        {
          handler.onBypassCommand(player, pBypass);
        }
      }
      String[] word = sBypass.split("\\s+");
      String[] args = sBypass.substring(word[0].length()).trim().split("\\s+");
      String[] path = word[0].split(":");
View Full Code Here

    }
    if ((bpType == BypassType.SIMPLE_BBS) && !bypass.startsWith("_bbsscripts"))
    {
      return new DecodedBypass(bypass, true).trim();
    }
    ICommunityBoardHandler handler = CommunityBoardManager.getInstance().getCommunityHandler(bypass);
    if (handler != null)
    {
      return new DecodedBypass(bypass, handler).trim();
    }
    _log.warn("Direct access to bypass: " + bypass + " / Player: " + getName());
View Full Code Here

TOP

Related Classes of lineage2.gameserver.handler.bbs.ICommunityBoardHandler

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.