Thread: Server Rating

Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1 Server Rating 
    Newb 2341
    Guest
    Purpose: Want people to rate your server without having to post? Help is here!

    Difficulty: However hard YOU make it for YOURSELF.

    Assumed Knowledge: Basic server CODING

    Server Base: Any.

    Classes Modified: client.java, serverratingyes.java, serverratingno.java

    Procedure
    Step 1: First, search for
    Code:
    public void appendToBanned
    in your client.

    Step 2: When you find that void, press enter after the last } - there's a lot - and paste this
    Code:
    public void serverRatingYes (String player) {
    
          BufferedWriter bw = null;
    
          try {
             bw = new BufferedWriter(new FileWriter("serverratingyes.txt", true));
    	 bw.write(player);
    	 bw.newLine();
    	 bw.flush();
          } catch (IOException ioe) {
    	 ioe.printStackTrace();
          } finally {
    	 if (bw != null) try {
    	    bw.close();
    	 } catch (IOException ioe2) {
    	    sendMessage("Error logging rating - good!");
    	 }
          }
    
       }
    
    public void serverRatingNo (String player) {
    
          BufferedWriter bw = null;
    
          try {
             bw = new BufferedWriter(new FileWriter("serverratingno.txt", true));
    	 bw.write(player);
    	 bw.newLine();
    	 bw.flush();
          } catch (IOException ioe) {
    	 ioe.printStackTrace();
          } finally {
    	 if (bw != null) try {
    	    bw.close();
    	 } catch (IOException ioe2) {
    	    sendMessage("Error logging rating - bad!");
    	 }
          }
    
       }
    Step 3: Search for
    Code:
    case 169:
    and you'll see
    Code:
    case 169:	//train tele			
    if(emotes == 0)
    				{
    				teleportToX = 2813;
    		                teleportToY = 3681;
    				}
    				else
    				{
    					emotes = 0;
    					pEmote = playerSE;
    					updateRequired = true; appearanceUpdateRequired = true;
    				}
    				break;
    or something like it - press enter twice after the break and paste this
    Code:
    case 150:	//server rating - yes - by Newb 2341			
    if(emotes == 0)
    				{
    				serverRatingYes(playerName);
    				}
    				break;
    
    
    case 151:	//server rating - no - by Newb 2341			
    if(emotes == 0)
    				{
    				serverRatingNo(playerName);
    				}
    				break;
    Step 4: Search for
    Code:
    		handler.updatePlayer(this, outStream);
    		handler.updateNPC(this, outStream);
    		resetItems(3214);
    		resetBank();
    and you'll see some frames - press enter after the end of one and past these
    Code:
    sendFrame126("@[email protected]", 156);//Off
    sendFrame126("@[email protected]", 157);//On
    Step 5: Now make these two text documents in your server file
    one named: serverratingyes
    one named: serverratingno

    Step 6: Open the serverratingyes file and paste this in it
    Code:
    Likes The Server
    ~~~~~~~~~~~~~~~~
    Step 7: Open the other file, serverratingno, and paste this in
    Code:
    Doesn't Like The Server
    ~~~~~~~~~~~~~~~~~~~~~~~
    Step 8: Save, compile and run! Yay!

    RUNDOWN
    [i]Players open the emote tab (running guy) and see two tabs - one Good and one Bad. They click one once and it records the response - their name - in the file they chose, good or bad.

    Credits: Newb 2341
     

  2. #2  
    Froto
    Guest
    also a helpful tut. altough a feedback ability would also be nice.
     

  3. #3  
    UrbanKnight1
    Guest
    gj mate

    although, players might just press no cuz they dont kno what it means
     

  4. #4  
    The King Of Beasts
    Eleclion's Avatar
    Join Date
    Nov 2006
    Posts
    633
    Thanks given
    0
    Thanks received
    0
    Rep Power
    96
    Nice tut, newb.
     

  5. #5  
    Newb 2341
    Guest
    Thanks Eleclion.
     

  6. #6  
    JustBlaze
    Guest
    how do u make them vote....
     

  7. #7  
    Registered Member
    Join Date
    Mar 2007
    Age
    28
    Posts
    145
    Thanks given
    6
    Thanks received
    4
    Rep Power
    41
    Nice tut....i added
     

  8. #8  
    Banned

    Join Date
    Oct 2006
    Age
    28
    Posts
    777
    Thanks given
    24
    Thanks received
    95
    Rep Power
    0
    therew would be a easiar way to do this using ints.. have them put a number (1-5) and it adds to the overall number..
     

  9. #9  
    Newb 2341
    Guest
    I guess Bullhorn, but that wasn't very constructive.
     

  10. #10  
    Banned

    Join Date
    Oct 2006
    Age
    28
    Posts
    777
    Thanks given
    24
    Thanks received
    95
    Rep Power
    0
    No... but it sure blows this out of the water.... WAIT i have a idea for this!!!!!!


    Think abut it... make the bannedusers file read the file that says the server sucks this is gonna be great...
     

Page 1 of 2 12 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Pk Rating for Delta.
    By Ivo in forum Tutorials
    Replies: 27
    Last Post: 02-13-2009, 06:15 PM
  2. pk rating
    By imukaszz in forum Help
    Replies: 2
    Last Post: 01-10-2009, 02:00 AM
  3. Rating Threads
    By Nima304 in forum Suggestions
    Replies: 2
    Last Post: 11-27-2008, 12:40 AM
  4. need rating
    By pureownage in forum Showcase
    Replies: 0
    Last Post: 10-29-2007, 01:15 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •