[Release] AquaScape Announcement System V1.0

Page 1 of 2 12 LastLast
Results 1 to 15 of 20
  1. #1
    Laravel Core Programmer Jangan is offline
    DeveloperRank
    Jul 2007 Join Date
    Dubai, UAELocation
    2,113Posts

    [Release] AquaScape Announcement System V1.0

    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 Code:
    itemHandler = new ItemHandler(); 
    then add this code right under it
    PHP Code:
     announcement = new announcement(); 
    Then Find
    PHP Code:
    public static ItemHandler itemHandler null

    And add this code right under it

    PHP Code:
    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
    Attached Files Attached Files
    Last edited by Jangan; 06-10-07 at 11:28 PM.


  2. #2
    Laravel Core Programmer Jangan is offline
    DeveloperRank
    Jul 2007 Join Date
    Dubai, UAELocation
    2,113Posts

    Re: [Release] AquaScape Announcement System V1.0

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

    Here is a picture!



    sorry not releasing the source
    well at least not yet =D sorry
    Last edited by Jangan; 30-09-07 at 07:49 PM.

  3. #3
    Account Upgraded | Title Enabled! kedonot1 is offline
    MemberRank
    Jun 2007 Join Date
    BaldwinsvilleLocation
    334Posts

    Re: [Release] AquaScape Announcement System V1.0

    You rock!

  4. #4
    Laravel Core Programmer Jangan is offline
    DeveloperRank
    Jul 2007 Join Date
    Dubai, UAELocation
    2,113Posts

    Re: [Release] AquaScape Announcement System V1.0

    tyvm... glad to help the community out

  5. #5
    Valued Member monster drink4 is offline
    MemberRank
    Feb 2007 Join Date
    134Posts

    Re: [Release] AquaScape Announcement System V1.0

    thx jangan lol :P should check out the latest updates! :D

  6. #6
    Member zamisen is offline
    MemberRank
    Jun 2007 Join Date
    SwedenLocation
    53Posts

    Re: [Release] AquaScape Announcement System V1.0

    what do it does

  7. #7
    The light can't stop me. Steven is offline
    MemberRank
    May 2007 Join Date
    United KingdomLocation
    1,531Posts

    Re: [Release] AquaScape Announcement System V1.0

    Ty:DD

  8. #8
    Laravel Core Programmer Jangan is offline
    DeveloperRank
    Jul 2007 Join Date
    Dubai, UAELocation
    2,113Posts

    Re: [Release] AquaScape Announcement System V1.0

    Quote Originally Posted by zamisen View Post
    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...

  9. #9
    Laravel Core Programmer Jangan is offline
    DeveloperRank
    Jul 2007 Join Date
    Dubai, UAELocation
    2,113Posts

    Re: [Release] AquaScape Announcement System V1.0

    *Update*
    added the source code! have fun!

  10. #10
    Valued Member monster drink4 is offline
    MemberRank
    Feb 2007 Join Date
    134Posts

    Re: [Release] AquaScape Announcement System V1.0

    :D jangan u sweet ass! lol JP! thx for this and ima host this server for all that wish to see some master coded sheit! lol LL jangs

  11. #11
    Apprentice psa72jr is offline
    MemberRank
    Oct 2007 Join Date
    OhioLocation
    11Posts

    Re: [Release] AquaScape Announcement System V1.0

    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.

  12. #12
    Valued Member monster drink4 is offline
    MemberRank
    Feb 2007 Join Date
    134Posts

    Re: [Release] AquaScape Announcement System V1.0

    ya thx for this....

  13. #13
    Laravel Core Programmer Jangan is offline
    DeveloperRank
    Jul 2007 Join Date
    Dubai, UAELocation
    2,113Posts

    Re: [Release] AquaScape Announcement System V1.0

    Quote Originally Posted by psa72jr View Post
    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.

  14. #14
    Apprentice psa72jr is offline
    MemberRank
    Oct 2007 Join Date
    OhioLocation
    11Posts

    Re: [Release] AquaScape Announcement System V1.0

    Quote Originally Posted by Jangan View Post
    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??

  15. #15
    Member Netzo is offline
    MemberRank
    Jan 2007 Join Date
    United KingdomLocation
    803Posts

    Re: [Release] AquaScape Announcement System V1.0

    will be there any more updates of aquascape?



Page 1 of 2 12 LastLast

Advertisement