Package com.l2jfrozen.gameserver.network.serverpackets

Examples of com.l2jfrozen.gameserver.network.serverpackets.ShowBoard


      st = null;
      content = null;
    }
    else
    {
      ShowBoard sb = new ShowBoard("<html><body><br><br><center>the command: " + command + " is not implemented yet</center><br><br></body></html>", "101");
      activeChar.sendPacket(sb);
      sb = null;
      activeChar.sendPacket(new ShowBoard(null, "102"));
      activeChar.sendPacket(new ShowBoard(null, "103"));
    }
  }
View Full Code Here


            text = text.replace("%charId%", String.valueOf(activeChar.getObjectId()));
            BaseBBSManager.separateAndSend(text, activeChar);
          }
          else
          {
            ShowBoard sb = new ShowBoard("<html><body><br><br><br><br></body></html>", "101");
            activeChar.sendPacket(sb);
            sb = null;
            activeChar.sendPacket(new ShowBoard(null, "102"));
            activeChar.sendPacket(new ShowBoard(null, "103"));
          }
         
        }
        else if (command.startsWith("_bbstopics"))
        {
          TopicBBSManager.getInstance().parsecmd(command, activeChar);
        }
        else if (command.startsWith("_bbsposts"))
        {
          PostBBSManager.getInstance().parsecmd(command, activeChar);
        }
        else if (command.startsWith("_bbstop"))
        {
          TopBBSManager.getInstance().parsecmd(command, activeChar);
        }
        else if (command.startsWith("_bbshome"))
        {
          TopBBSManager.getInstance().parsecmd(command, activeChar);
        }
        else if (command.startsWith("_bbsloc"))
        {
          RegionBBSManager.getInstance().parsecmd(command, activeChar);
        }
        else
        {
          ShowBoard sb = new ShowBoard("<html><body><br><br><center>the command: " + command + " is not implemented yet</center><br><br></body></html>", "101");
          activeChar.sendPacket(sb);
          sb = null;
          activeChar.sendPacket(new ShowBoard(null, "102"));
          activeChar.sendPacket(new ShowBoard(null, "103"));
         
        }
      }
     
    }
View Full Code Here

      {
        ClanBBSManager.getInstance().parsewrite(arg1, arg2, arg3, arg4, arg5, activeChar);
      }
      else
      {
        ShowBoard sb = new ShowBoard("<html><body><br><br><center>the command: " + url + " is not implemented yet</center><br><br></body></html>", "101");
        activeChar.sendPacket(sb);
        sb = null;
        activeChar.sendPacket(new ShowBoard(null, "102"));
        activeChar.sendPacket(new ShowBoard(null, "103"));
      }
    }
    else if (Config.COMMUNITY_TYPE.equals("old"))
    {
      RegionBBSManager.getInstance().parsewrite(arg1, arg2, arg3, arg4, arg5, activeChar);
    }
    else
    {
      ShowBoard sb = new ShowBoard("<html><body><br><br><center>The Community board is currently disable</center><br><br></body></html>", "101");
      activeChar.sendPacket(sb);
      sb = null;
      activeChar.sendPacket(new ShowBoard(null, "102"));
      activeChar.sendPacket(new ShowBoard(null, "103"));
    }
   
    activeChar = null;
  }
View Full Code Here

     
      separateAndSend(RankPvpSystemBBSHtm.prepareHtmResponse(activeChar, page), activeChar);
    }
    else
    {
      ShowBoard sb = null;
      if(command.startsWith("_bbsrps:") && !RankPvpSystemConfig.TOP_LIST_ENABLED)
      {
        sb = new ShowBoard("<html><body><br><br><center>Community Board Top List is disabled in config file</center><br><br></body></html>", "101");
      }
      else
      {
        sb = new ShowBoard("<html><body><br><br><center>the command: " + command + " is not implemented yet</center><br><br></body></html>", "101");
      }
     
      activeChar.sendPacket(sb);
      sb = null;
      activeChar.sendPacket(new ShowBoard(null, "102"));
      activeChar.sendPacket(new ShowBoard(null, "103"));
    }
  }
View Full Code Here

      showEditPost(TopicBBSManager.getInstance().getTopicByID(idt), ForumsBBSManager.getInstance().getForumByID(idf), activeChar, idp);
    }
    else
    {
      ShowBoard sb = new ShowBoard("<html><body><br><br><center>the command: " + command + " is not implemented yet</center><br><br></body></html>", "101");
      activeChar.sendPacket(sb);
      sb = null;
      activeChar.sendPacket(new ShowBoard(null, "102"));
      activeChar.sendPacket(new ShowBoard(null, "103"));
    }
  }
View Full Code Here

  private void showEditPost(Topic topic, Forum forum, L2PcInstance activeChar, int idp)
  {
    Post p = getGPosttByTopic(topic);
    if(forum == null || topic == null || p == null)
    {
      ShowBoard sb = new ShowBoard("<html><body><br><br><center>Error, this forum, topic or post does not exit !</center><br><br></body></html>", "101");
      activeChar.sendPacket(sb);
      sb = null;
      activeChar.sendPacket(new ShowBoard(null, "102"));
      activeChar.sendPacket(new ShowBoard(null, "103"));
    }
    else
    {
      showHtmlEditPost(topic, activeChar, forum, p);
    }
View Full Code Here

   */
  private void showPost(Topic topic, Forum forum, L2PcInstance activeChar, int ind)
  {
    if(forum == null || topic == null)
    {
      ShowBoard sb = new ShowBoard("<html><body><br><br><center>Error, this forum is not implemented yet</center><br><br></body></html>", "101");
      activeChar.sendPacket(sb);
      sb = null;
      activeChar.sendPacket(new ShowBoard(null, "102"));
      activeChar.sendPacket(new ShowBoard(null, "103"));
    }
    else if(forum.getType() == Forum.MEMO)
    {
      showMemoPost(topic, activeChar, forum);
    }
    else
    {
      ShowBoard sb = new ShowBoard("<html><body><br><br><center>the forum: " + forum.getName() + " is not implemented yet</center><br><br></body></html>", "101");
      activeChar.sendPacket(sb);
      sb = null;
      activeChar.sendPacket(new ShowBoard(null, "102"));
      activeChar.sendPacket(new ShowBoard(null, "103"));
    }
  }
View Full Code Here

    Forum f = ForumsBBSManager.getInstance().getForumByID(idf);

    if(f == null)
    {
      ShowBoard sb = new ShowBoard("<html><body><br><br><center>the forum: " + idf + " does not exist !</center><br><br></body></html>", "101");
      activeChar.sendPacket(sb);
      sb = null;
      activeChar.sendPacket(new ShowBoard(null, "102"));
      activeChar.sendPacket(new ShowBoard(null, "103"));
    }
    else
    {
      Topic t = f.gettopic(idt);
      if(t == null)
      {
        ShowBoard sb = new ShowBoard("<html><body><br><br><center>the topic: " + idt + " does not exist !</center><br><br></body></html>", "101");
        activeChar.sendPacket(sb);
        sb = null;
        activeChar.sendPacket(new ShowBoard(null, "102"));
        activeChar.sendPacket(new ShowBoard(null, "103"));
      }
      else
      {
        CPost cp = null;
        Post p = getGPosttByTopic(t);
        if(p != null)
        {
          cp = p.getCPost(idp);
        }

        if(cp == null)
        {
          ShowBoard sb = new ShowBoard("<html><body><br><br><center>the post: " + idp + " does not exist !</center><br><br></body></html>", "101");
          activeChar.sendPacket(sb);
          activeChar.sendPacket(new ShowBoard(null, "102"));
          activeChar.sendPacket(new ShowBoard(null, "103"));
        }
        else if(p != null)
        {
          p.getCPost(idp).postTxt = ar4;
          p.updatetxt(idp);
View Full Code Here

      separateAndSend("<html><body><br><br><center>This Page is only an exemple :)<br><br>command=" + command + "</center></body></html>", activeChar);
    }
    else
    {

      ShowBoard sb = new ShowBoard("<html><body><br><br><center>the command: " + command + " is not implemented yet</center><br><br></body></html>", "101");
      activeChar.sendPacket(sb);
      sb = null;
      activeChar.sendPacket(new ShowBoard(null, "102"));
      activeChar.sendPacket(new ShowBoard(null, "103"));
    }

  }
View Full Code Here

      {
        showOldCommunity(activeChar, 1);
      }
      else
      {
        ShowBoard sb = new ShowBoard("<html><body><br><br><center>the command: " + command + " is not implemented yet</center><br><br></body></html>", "101");
        activeChar.sendPacket(sb);
        sb = null;
        activeChar.sendPacket(new ShowBoard(null, "102"));
        activeChar.sendPacket(new ShowBoard(null, "103"));
      }
    }
  }
View Full Code Here

TOP

Related Classes of com.l2jfrozen.gameserver.network.serverpackets.ShowBoard

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.