Package net.sf.l2j.gameserver.serverpackets

Examples of net.sf.l2j.gameserver.serverpackets.ShowBoard


      int idp = Integer.parseInt(st.nextToken());
      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);
      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);
      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);
      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);
      activeChar.sendPacket(new ShowBoard(null,"102"));
      activeChar.sendPacket(new ShowBoard(null,"103"));
    }
  }
View Full Code Here

    int idp = Integer.parseInt(st.nextToken());

    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);
      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);
        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
        {
          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);
      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);
          activeChar.sendPacket(new ShowBoard(null,"102"));
          activeChar.sendPacket(new ShowBoard(null,"103"));
      }
    }
  }
View Full Code Here

            htmlCode.append("</body></html>");
            separateAndSend(htmlCode.toString(),activeChar);
    }
    else
    {
      ShowBoard sb = new ShowBoard("<html><body><br><br><center>No player with name "+name+"</center><br><br></body></html>","101");
      activeChar.sendPacket(sb);
      activeChar.sendPacket(new ShowBoard(null,"102"));
      activeChar.sendPacket(new ShowBoard(null,"103"));
    }
  }
View Full Code Here

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

  }
View Full Code Here

          {
            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);
          activeChar.sendPacket(new ShowBoard(null,"102"));
          activeChar.sendPacket(new ShowBoard(null,"103"));
          }
        }
        else  if(Config.COMMUNITY_TYPE.equals("old"))
        {
          RegionBBSManager.getInstance().parsecmd(command,activeChar);
View Full Code Here

      } else if (url.equals("Region"))
      {
        RegionBBSManager.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);
        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);
      activeChar.sendPacket(new ShowBoard(null, "102"));
      activeChar.sendPacket(new ShowBoard(null, "103"));
    }
  }
View Full Code Here

TOP

Related Classes of net.sf.l2j.gameserver.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.