Thread: [Server Enhancement] The Beginning

Results 1 to 7 of 7
  1. #1 [Server Enhancement] The Beginning 
    Registered Member Icepkz's Avatar
    Join Date
    May 2007
    Posts
    219
    Thanks given
    0
    Thanks received
    0
    Rep Power
    24
    This first part is not required for people who already have there own server working, but mainly its just for the new people
    First off you will need to do my how to make a private server tutorial
    or you can skip to the next part

    Layout:

    Requirements
    Installing Java
    Setting Environment Variables
    Downloading WinRar
    Downloading Client
    Downloading Source
    Setting-Up No-Ip and Hamachi
    Getting No-Ip To Work


    1. Requirements


    To get your server working you comply to the following requirements:

    256 MB Ram
    Java Installed - Read Step 2
    A Working Client
    A Source

    2. Installing Java


    The latest version of Java is JDK 6u1
    [Only registered and activated users can see links. ]

    When you click on the link this page will load up:


    Click on Download next to JDK 6u1

    Click accept and it should refresh the page to look like this:


    Tick the box then choose which way you want to download:
    Offline or Online Installation

    Well Done! You have installed the latest version of java!

    3. Setting Environment Variables:

    To allow your computer to run the server you need to set your environment variables

    First open my computer, then right-click on my computer and click properties

    Now click on advanced

    This Is What It Should Look Like:


    Ok near the bottom it says Enviroment Variables

    Click on that, and a new window looking like this should open:


    Under
    System Variables
    Click the New button and a new window opens up.

    For the Variable Name Put: classpath
    For the value put: C:\Program Files\Java\Java\jdk1.6.0_01\bin\

    Now click OK

    Now look for a variable in System Variable called path. Highlighting, by clickin on it once, and click EDIT.

    Rename it: PATH
    Replace the value with this:
    %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\Sy stem32\Wbem;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Java\jdk1.6.0_01\bin
    Click OK then Ok again and that's it

    FOR THIS TO WORK PROPERLY YOU MUST RESTART YOUR COMPUTER


    4. Getting WinRar


    To start off with your private servers you will need Winrar. IT is the base to downloading nearly everything to do with private servers.

    [Only registered and activated users can see links. ]

    5. Download A Client

    To play private servers you need to have a client. Moparscape is the first, and basic client to use. I recommend that you use it, unless you want to use someone else's.

    [Only registered and activated users can see links. ]

    6. Downloading A Source
    To make "YOUR" own private server you need a source to work it. Here are some common sources.
    [Only registered and activated users can see links. ]

    [Only registered and activated users can see links. ]

    [Only registered and activated users can see links. ]

    [Only registered and activated users can see links. ]

    [Only registered and activated users can see links. ]

    [Only registered and activated users can see links. ]

    Download one of the sources above. Open a folder where you want you're server to be and make a new folder and call it - Server
    Using WinRar, extract it to the folder Server

    5. Setting Up No-IP and Hamachi


    Ok ill start off with hamachi, because im not explaining it. For hamachi go to:
    [Only registered and activated users can see links. ] and follow the steps

    No-Ip

    First of all you will need to go to [Only registered and activated users can see links. ]

    Now register an account.

    Ok now go to the home-page and the top you should see downloads.
    Click on it. It should look like this:



    Now click on the tab "Your No-IP" and on the left navigation bar click Add
    For the hostname put your server name, then choose what you want to
    be at the end: e.g. no-ip.info, no-ip.biz, servegame.com

    YOU DO NOT NEED TO FILL IN ANYTHING ELSE!
    At the bottom click create host and you are done!

    Well Done! You Can Now Host Your Server!

    To host it, open no-ip and tick the box, and it should smile looking sorta like
    this

    Now, compile your server, then run it and it should say something like:

    Starting Yourscape Server on 0.0.0.0 : 43594

    NOW PEOPLE CAN LOG INTO YOUR SERVER w0000t!

    Please post your comments!
    Really i think i rushed this a bit
    but here it is, any help just post
    here!

    :::.Hellz.::::

    Now if you already know that part above you can start here, and for those people who did the part above continue here...
    They will begin with:
    [Server Enhancement] (NAME)

    Layout:
    1. Naming Your Server
    2. Changing the player starting point
    3. Changing the player starting equipment
    4. Adding a welcome menu
    5. Choosing between a pk server or non pk server


    1. Naming Your Server

    Most servers will have there name in alot of places on the server, so normally you would like to have your own name. Now find out the name of the server
    Code:
    e.g. "Pimpscape", "Testscape", "Phonescape"
    Open your client.java and press ctrl+h, write these in the appropriate boxes\;
    Code:
    Find What:"ServerName"
    Replace With: "YourChosenServerName"
    Fill in the boxes, doing as stated above.
    Now click:
    Code:
    Replace All
    and it should go through the text document replacing all the names

    Save, compile and proceed to the next part!

    2. Changing The Player Starting Equipment


    Purpose: To change your start location

    Difficulty: 0.5/10

    Assumed Knowledge: x and y cords, search

    Server Base: Pimpscape (WORKS ON ALL)

    Classes Modified: Player.java

    Procedure:
    Step 1: Open player.java and search for

    Code:
    initial x and y coordinates of the player
    Step 2: You will see

    Code:
    // initial x and y coordinates of the player
    heightLevel = 0;
    // the first call to updateThisPlayerMovement() will craft the proper initialization packet
    teleportToX = 3254;//3072;
    teleportToY = 3420;//3312;
    Step 3: change the numbers in teleportToX = 3254; and teleportToY = 3420;

    Step 4: Save and proceed to the next part

    3. Changing the player starting equipment

    Fixing this in a bit....

    4. Adding a welcome menu
    Ok for this tutorial, you are going to add the best possible welcome screen ever! it looks so cool... pic included

    Purpose: Adding a welcome menu [includes how to make it load up when you log in]

    Difficulty: 0.5/10

    Assumed Knowledge: How to copy and paste

    Classes Modified: client.java

    Procedure:

    Step 1: Open client.java and search for:

    Code:
    public void HelpMenu()
    NOTE: IF YOU DON"T HAVE IT ADD THE CODE IN STEP 2!

    Step 2: Replace everything inside it with:
    Code:
    public void HelpMenu()
    {
    String owner = "Hellz";
    String LU = "Put you latest update here";
    sendQuest("Welcome to @[email protected] Name ", 15950);
    sendQuest("", 15960);
    sendQuest("", 15961);
    sendQuest("Server created by: @[email protected]"+owner, 15959);
    sendQuest("Add writing here!", 15951);
    sendQuest("Add writing here", 15952);
    sendQuest("Add writing here", 15953);
    sendQuest("Add writing here", 15954);
    sendQuest("", 15955);
    sendQuest("", 15956);
    sendQuest("", 15957);
    sendQuest("", 15958);
    
    showInterface(15944);
    }
    Step 3: Change the text around to what you want

    Step 4: Ok If you're server did not have the public void helpmenu() do step 5, 6 and 7

    Step 5: Search For
    Code:
    if(GetLastLogin(mutedate) >= 2)
    Step 6: You should see something like this:

    Code:
    if(GetLastLogin(mutedate) >= 2)
    muted = 0;
    else
    muted = 1;
    if(playerRights < 1) {
    sendMessage("Welcome to Hellz Pk");
    sendMessage("Latest Update: Fishing and cooking! can be found");
    sendMessage("at the skilling area.");
    }
    if(playerRights == 1) {
    sendMessage("Welcome to Hellz Pk");
    sendMessage("Latest Update: Fishing and cooking! can be found");
    sendMessage("at the skilling area.");
    }
    if(playerRights >= 2) {
    sendMessage("Latest Update: Fishing and cooking! can be found");
    sendMessage("at the skilling area.");
    }
    Step 7: Replace it with this:

    Code:
    if(GetLastLogin(mutedate) >= 2)
    muted = 0;
    else
    muted = 1;
    if(playerRights < 1) {
    sendMessage("Welcome to Hellz Pk");
    sendMessage("Latest Update: Fishing and cooking! can be found");
    sendMessage("at the skilling area.");
    HelpMenu();
    }
    if(playerRights == 1) {
    sendMessage("Welcome to Hellz Pk");
    sendMessage("Latest Update: Fishing and cooking! can be found");
    sendMessage("at the skilling area.");
    HelpMenu();
    }
    if(playerRights >= 2) {
    sendMessage("Latest Update: Fishing and cooking! can be found");
    sendMessage("at the skilling area.");
    HelpMenu();
    }
    If you need any help/errors with this please post here

    Here is the picture:


    5. Choosing between a pk server or non pk server
    Ok now its before you move on its time to decide whether you want your server to be a pk or non-pk server. Here is a bit of an explanation....

    PK Server - These servers are for people to have fun and kill each other. It means that the training will be easy, you should be able to get money easy, there usually isn't any skills, basically the whole of the area you can fight in (except buildings), and its just made for people to have lots of fun! I will write a special tutorial on how to make your server a cool PK server!

    Non-PK Server - These servers are for people to train there skills, earn money, fight monsters, pk a bit, have FUN, and basically work hard for things. It shouldn't have cheat commands (get lvls quick, item spawn ect.) I will write a special tutorial on how to make your server a non-Pk server!

    Ok, this tutorial is now finished. The next tutorial will be released very soon!

    Credits: The Ace (Enviroment Variables), Sam Server (Log-in menu), Me (For the rest and making the tutorial), Sorry if i have missed anyone
    Thx :::.Hellz.:::

    .::.. 1033 R3p Thx ALL ! ..::.
     

  2. #2  
    ~Kajakas~
    Guest
    not a bad tut rep +
     

  3. #3  
    Furion Pk
    Guest
    Nice tut rep++
     

  4. #4  
    Registered Member Icepkz's Avatar
    Join Date
    May 2007
    Posts
    219
    Thanks given
    0
    Thanks received
    0
    Rep Power
    24
    thx for the replies,
    im going to post the second part when i get back

    .::.. 1033 R3p Thx ALL ! ..::.
     

  5. #5  
    Sam Server
    Guest
    Well, this tutorial is totally ripped, half from my welcome screen tutorial which is twisted slightly and half from the main starting a private server tutorial, i request this to be locked/deleted.
    ~Sam
     

  6. #6  
    Registered Member Icepkz's Avatar
    Join Date
    May 2007
    Posts
    219
    Thanks given
    0
    Thanks received
    0
    Rep Power
    24
    Quote Originally Posted by Sam Server View Post
    Well, this tutorial is totally ripped, half from my welcome screen tutorial which is twisted slightly and half from the main starting a private server tutorial, i request this to be locked/deleted.
    ~Sam
    yeh i know its yours, and this isnt ripped, half of that isnt that tutorial...
    i havent put credits yet anyway

    .::.. 1033 R3p Thx ALL ! ..::.
     

  7. #7  
    purepkownage
    Guest
    whoa thats huge, finally finished reading this one and the other one
    really cool tutorial, hope you keep this thing going !
     


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. Greater Beginning
    By Pixelpwn in forum Showcase
    Replies: 4
    Last Post: 03-11-2011, 11:54 AM
  2. Replies: 28
    Last Post: 12-07-2010, 09:44 AM
  3. Replies: 0
    Last Post: 05-14-2009, 02:45 PM
  4. [Server Enhancement] Non-PK Servers
    By Icepkz in forum Tutorials
    Replies: 8
    Last Post: 10-02-2007, 06: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
  •