[Release] AquaScape Announcement System V1.0

Joined
Jul 18, 2007
Messages
1,057
Reaction score
1,044
Here it is since people asked for it, here it is

AquaScape Announcement System V1.0


Tutorial:

Step 1:

Download The "announcement.rar" in the attachment it includes
- Announcement.class
- Announcement Folder

And add them to your server files =D were client, server etc are!
--------------------------------------------------------------

Step 2:

Open [Server.java] and find
PHP:
itemHandler = new ItemHandler();
then add this code right under it
PHP:
 announcement = new announcement();
Then Find
PHP:
public static ItemHandler itemHandler = null;

And add this code right under it

PHP:
public static announcement announcement = null;

--------------------------------------------------------------

Step 3:

Compile and run the server


Well now your done, just please make sure to share anything that you find useful for others =D remmeber, the more you share the more help you contribute to the community =D


Anyways i dont think it gets easier than this, if you get any error please tell me, although im not sure if its possible to get errors lol
 

Attachments

Last edited:
im pretty sure chevelleScape will be the first to use this program by tomorrow lol XD

Here is a picture!
Jangan - [Release] AquaScape Announcement System V1.0 - RaGEZONE Forums



sorry not releasing the source
well at least not yet =D sorry
 
Last edited:
what do it does

Its a system that allows you to write announcements threw an announcment program..

its easier than sitting there for an hour trying to type
::yell *Announcement* i am going to restart the svr

and really no one cares and no one listens since they dont know who you are.. so this system allows you to copy and paste, and it even saves the cookies from what you typed..

So now you can type "i am going to restart the svr" multi times, around 100 tiems in a row and it will look on the svr as

[Announcement] I am going to restart the svr
[Announcement] I am going to restart the svr
[Announcement] I am going to restart the svr
[Announcement] I am going to restart the svr
[Announcement] I am going to restart the svr
[Announcement] I am going to restart the svr
[Announcement] I am going to restart the svr
[Announcement] I am going to restart the svr

etc =) and people will read it of course since its written too many times in a row, in other words it makes your life easier..


*BTW* im willing to give special liecens to people! so instead of it saying "AquaScape Announcement System" it will say "ChvelleScape Announcement System" etc =)

im such a nice person, and note im willing to release the source to people who are willing to upgrade the system and help contribute more...
 
NOTE: if you wanted the .java file also just put this in announcement.java

Code:
import java.awt.Color;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.*;
import java.text.SimpleDateFormat;
import java.util.Date;
import javax.swing.*;
import javax.swing.text.Document;

public class announcement
    implements ActionListener
{

    protected JScrollPane scrollPane;
    protected JTextArea textArea;
    protected JTextField textField;
    public JFrame frame;
    public boolean started;
    private PlayerHandler c;
    private static final String newline = "\n";
    private static final String announcement = "[Announcement]: ";
    public String date;
    public String time;

    public static void main()
    {
        new announcement();
    }

    public announcement()
    {
        started = true;
        date = (new SimpleDateFormat("MM/dd/yyyy")).format(new Date());
        time = (new SimpleDateFormat("hh:mm:ss")).format(new Date());
        try
        {
            gui(true);
            textArea.append("AquaScape Announcement System Online\n");
            textArea.append("Make sure to share it with others =)\n");
        }
        catch(Exception exception)
        {
            gui(false);
            textArea.append("AquaScape Announcement System Failed To Start\n");
        }
    }

    public void gui(boolean flag)
    {
        JFrame.setDefaultLookAndFeelDecorated(true);
        char c1 = '\u0258';
        char c2 = '\u0190';
        frame = new JFrame("AquaScape Announcement System");
        textArea = new JTextArea();
        textField = new JTextField();
        frame.add(textArea, "North");
        frame.add(textField, "South");
        JScrollPane jscrollpane = new JScrollPane();
        jscrollpane.setVerticalScrollBarPolicy(22);
        jscrollpane.setAutoscrolls(false);
        jscrollpane.setViewportView(textArea);
        frame.add(jscrollpane);
        frame.setBounds(100, 200, c1, c2);
        frame.setResizable(false);
        frame.setDefaultCloseOperation(1);
        frame.setVisible(flag);
        textArea();
        textField();
    }

    public void textArea()
    {
        color(textArea, Color.black, Color.white);
        Font font = new Font("Arial", 0, 12);
        textArea.setFont(font);
        byte byte0 = 5;
        byte byte1 = 5;
        textArea.setEditable(false);
    }

    public void scrollpane()
    {
        scrollPane.setVerticalScrollBarPolicy(22);
        scrollPane.setAutoscrolls(false);
        scrollPane.setViewportView(textArea);
    }

    public void textField()
    {
        byte byte0 = 10;
        byte byte1 = 10;
        textField.addActionListener(this);
    }

    public void actionPerformed(ActionEvent actionevent)
    {
        String s = textField.getText();
        textArea.append((new StringBuilder()).append("[Announcement]: ").append(s).append("\n").toString());
        logs(s, "AnnouncementLogs");
        PlayerHandler _tmp = c;
        PlayerHandler.messageToAll = (new StringBuilder()).append("[Announcement]: ").append(s).toString();
        textField.selectAll();
        textArea.setCaretPosition(textArea.getDocument().getLength());
    }

    public void color(JTextArea jtextarea, Color color1, Color color2)
    {
        jtextarea.setForeground(color1);
        jtextarea.setBackground(color2);
    }

    public void logs(String s, String s1)
    {
        Object obj = null;
        String s2 = (new StringBuilder()).append("./Announcement/").append(s1).append(".txt").toString();
        try
        {
            File file = new File(s2);
            BufferedWriter bufferedwriter = new BufferedWriter(new FileWriter(s2, true));
            bufferedwriter.write((new StringBuilder()).append("On ").append(date).append(" At ").append(time).toString());
            bufferedwriter.newLine();
            bufferedwriter.write((new StringBuilder()).append("[Announcement]: ").append(s).toString());
            bufferedwriter.newLine();
            bufferedwriter.newLine();
            bufferedwriter.flush();
        }
        catch(IOException ioexception)
        {
            announcementlogs();
        }
    }

    public void announcementlogs()
    {
        Object obj = null;
        String s = "./Announcement/AnnouncementLogs.txt";
        try
        {
            File file = new File(s);
            BufferedWriter bufferedwriter = new BufferedWriter(new FileWriter(s, true));
            bufferedwriter.write((new StringBuilder()).append("On ").append(date).append(" At ").append(time).append(" Error with public void logs(String,String)").toString());
            bufferedwriter.newLine();
            bufferedwriter.flush();
        }
        catch(IOException ioexception)
        {
            textArea.append(" Error to save Announcement()");
        }
    }
}
btw, if you dont want it to say [announcement]: you can open the announcement.java and change [announcement] to whatever you want such as [server] [(your server name)] etc...

BTW, you didnt write that code.
 
BTW, you didnt write that code.

hmm check again kid, i never said i made it or gave credits to myself, on this forum, we dont accuse others before we check, if your used to that on your old forum i dont see a reason not to go back..

learn this: we are a family community, we support each other as much as we can, unlike all the other forums.
 
hmm check again kid, i never said i made it or gave credits to myself, on this forum, we dont accuse others before we check, if your used to that on your old forum i dont see a reason not to go back..

learn this: we are a family community, we support each other as much as we can, unlike all the other forums.

i never said you leeched it, i just said it wasnt ur code, and why not include the .java files??
 
Here it is since people asked for it, here it is

AquaScape Announcement System V1.0


Tutorial:

Step 1:

Download The "announcement.rar" in the attachment it includes
- Announcement.class
- Announcement Folder

And add them to your server files =D were client, server etc are!
--------------------------------------------------------------

Step 2:

Open [Server.java] and find
PHP:
itemHandler = new ItemHandler();
then add this code right under it
PHP:
 announcement = new announcement();
Then Find
PHP:
public static ItemHandler itemHandler = null;

And add this code right under it

PHP:
public static announcement announcement = null;

--------------------------------------------------------------

Step 3:

Compile and run the server


Well now your done, just please make sure to share anything that you find useful for others =D remmeber, the more you share the more help you contribute to the community =D

your dealing with a old server m8:technolog
 
09-30-2007

Your posting a year after the thread started to say that its old? hmmm. very shitty start for your first post.

Back then when i released it only 2 servers in runescape private server in the world had a program like this.. It was a wonderful release and tons of people used it and big servers still use it till this day.

Peace
 
Back