Xtra Smileys
[Open]

Default Skins: Default | Black | Red | Green | Brown | Lavender

Techno Skins: Black | Blue | Brown | Green | Orange | Pink | Purple | Red | Turquoise

Light Skins: Blue | Brown | Golden | Lilac | Navy | Olive | Red | Rose | Silver | Turqouise | Violet

Other Skins: Helios Blue | Helios Green | Helios Purple | Helios Red | Blue Mousse | Camo | Chronicles | Red Fire | Rusted | Grey and Blue | Grey and Green | igOH Mimic | Vista Mimic
Linux Scape
May 22, 2025, 07:33:30 am
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome Mod angel To our Forums! I hope you enjoy this!

We also got a new arcade Game(s)!
 
  Home Help Search Arcade Staff List Login Register  

How to Make a RuneScape Private Server {Full!}

Pages: [1]
  Print  
Author Topic: How to Make a RuneScape Private Server {Full!}  (Read 176 times)
Mod Base
Global Moderator
Newbie
*
Posts: 7


View Profile
« on: September 05, 2008, 10:33:20 am »

Credits: Kalphiter 48%, God of Ikilli 50%, Mod Base 2% (for posting)

How to Make a RuneScape Private Server Tutorial



1. Getting JDK
Download JDK 6 update 7 and download the first thing you see.
Then click "accept" and click where it says:

Click and download!



2. Downloading and Installing No-IP
Go to No-ip.com do the following. It will say "Windows,Mac, or Linux / BSD / Unix." Click and download the download that corresponds to your computer type. Then when it's downloaded, you will have a button on your desktop (when you log onto your computer, this is the beginning screen) to run it. Run it and your No-IP will open.
It will look like this:

It will appear in the tray, or this:


On the bottom you see I made one part a little bit red with a low opacity.
Click the 'Here' on the software to add a new IP:

Let the page load and you will see this button somewhere.

Click on it to add an IP.
This page will have 2 fields.

(ignore the email field)

At the first text field fill in your server name(as in MeglioScape.no-ip.org). Click on the "hostname field" to view the list of domains you can choose, or if your already on that real page you can see it also. The IP address part will auto change to your IP, so do not change it.
Once you're done click 'Create Host' at the bottom and click the 'Refresh' at the No-IP Menu on your computer.



3. Getting a client
First of all there are two clients you can get. One, has a lot of advanced items that can be up-to-date in RuneScape. The other client is the official MoparScape client. The advanced client called a Silab client. The other client is the official MoparScape client, and can be downloaded or used on the web.
You will need winRAR for the clients and the server. Now you can get the clients to load to your computer which are:

Signatures:


Code:
[url=http://www.moparscape.org][img]http://www.moparscape.org/pics/moparscapeuserbar.png[/img][/url]

(Made by Kalphiter and Mod Base)
Code:
[url=http://client.silabsoft.org][img]http://img255.imageshack.us/img255/5079/abcty7.png[/img][/url]



4. Opening a port
Open Network & Internet Connections in he control panel. Right click on the connection you're using to connect to the internet and click properties. Open the Advanced tab and click on firewall settings. Open the Exceptions tab and at the bottom you should see a button "Add Port". Click on it, and add your server name or whatever you want it to be at the name field. At the Port number fill in 43594, and make sure the TCP box has been checked. If port 43594 doesn't work, try port 5555.



5. Port forwarding (if you dont have wireless skip this)
You don't use linksys? Find your router at Portforward.com and follow the tutorial.
Open your cmd by going to Start > Run > cmd.
Type in `ipconfig´
It will say your default gateway.
Open a web browser like Internet Explorer, Webscape, Firefox, or Safari et cetera. Enter the gateway in the address bar of your browser. In the picture above the address bar has the definite link of a page. For expample, it might be filled in with "http://www.google.com". Just replace all of that with the ip address of your router (by default the ip address should be set to 192.168.1.1). You should see a box prompting you for your username and password. Enter your username and password now. By default the username is blank, and the password is admin. Click the Ok button to log in to your router.
Click the Applications & Gaming link near the top of the page.
The menu under that should change. In this new menu, click Port Range Forwarding.
When you're finished, click Save Settings near the bottom of the screen to save your changes.

Example:
Application Name: MeglioScape
Start - End Port: 43594-43594(Change to which ports to want to enable)
Protocol: Both
To IP Address: Your IP at Start > Run > Cmd > ipconfig
Enabled: Checked/Yes



6. Getting a source
Here is a list of commonly used sources:
If you want any other source, you can click here, and click on 'server' and not 'client'.



7. Fixing errors
Open up "My Computer".
Click "View System information"
Click "Advanced".
Click "Environment Variables".
Under "User Variables" click "New".
Name it "CLASSPATH" and for the "Variable Value" (only if you have JDK 6u1) put this in: CLASSPATH=C:\Program Files\Java\jdk1.6.0_01\bin;%CLASSPATH%; If you have JDK 6u3 you must enter CLASSPATH=C:\Program Files\Java\jdk1.6.0_03bin;%CLASSPATH%; for the variable value.
Under "User Variables" click "New".
Name it "PATH" and for the "Variable Value" (only if you have JDK 6u1) put this in: C:\Program Files\Java\jdk1.6.0_01\bin If you have JDK 6u2, you must enter C:\Program Files\Java\jdk1.6.0_02\bin for the variable value.
Click "OK".
Click "OK".
Your computer now reconizes JAVA



8. Editing your server
Notepad has a few commands that do some stuff:
Ctrl+F= Find a specific 'phrase'
Ctrl+G= Jump to line
Ctrl+H= Find and replace

Making yourself an admin. This should work on most sources like Testscape and Many other sources
Go into client.java.

Press Ctrl + F.
And fill in this.

Code:
//start of moderator/admin list, 1 = mod, 2 = staff, 3 = admin
Under that you will see something like this for example:
Code:
if (playerName.equalsIgnoreCase("admin"))
{
playerRights = 3;
}
Another example can be this:
Code:
//start of moderator/admin list, 1 = mod, 2 = staff, 3 = admin

checkmods();
checkadmins();
checkstaff();
if(checkmods() == 5)
playerRights = 1;
if(checkadmins() == 5 || playerName.equalsIgnoreCase("nameofmod") || playerName.equalsIgnoreCase("nameofmod") || playerName.equalsIgnoreCase("nameofmod"))
playerRights = 2;
if(checkstaff() == 5 || playerName.equalsIgnoreCase("nameofadmin") || playerName.equalsIgnoreCase("nameofadmin""))
playerRights = 2;
Its just like 'If the name of the player is: admin give him playerRights 3 (Owner rights).

Player Rights 3 = Server owner
Player Rights 2 = Server admin
Player Rights 1 = Server player moderator

NOTE: In some basic sources like TestScape the server owner can't see their own crown.
Don't be affraid, other people can see it! There is a simple process to fix this, and is at follows:

Find this line in client.java(ctrl+f)
Code:
out.write(playerRights);
Replace the line* with this:
Code:
if (playerRights == 3) {
out.write(2);      //Crown fixup
} else {
out.write(playerRights); // mod level
}
*This includes the 'tabbed' spaces before it.

Explanation:
If the playerrights are three, out write their rights as 2.
If they aren't, than write out their rights where they normally should be.(else is also referred to as a default)


In PimpScape based servers you can just open the datafolder and admins/administrators/staff.txt and add a new player to it.
I don't know the file name really since many Jorsa/Pimpscape based sources are changing the file name.


Adding NPC's to add NPC's you work in autospawn.cfg:

Open it and you will see many things looking like each other.
Now add this somewhere

Code:
spawn = NpcID CoordX CoordY 0 0 0 0 0 2 (Description)
Seperation these numbers can be done by pressing tab.
The numbers/phrases will mean this in order: npcID, coordX, coordY, height, rangeX1, rangeY1, rangeX2, rangeY2, walk type, descrption.

If you don't know how to get the coords press F4 (MoparScape client).

Compiling
After every update in the .java files you have to compile it.
Compiling will make .class files and they contain Java bytecode, in which the JVM(Java virtual machine) will read.
If your server already has a compiler with it, you can replace it with this:

Code:
@echo off
if exist "C:\Program Files (x86)\Java\" set programfiles=C:\Program Files (x86)
set pr=%programfiles%\Java\
:co1
set b=0
set t=7
goto co2
:co2
color %b%%t%
:menu
cls
title The Perfect Compiler version 1.9
echo Please choose an option below to do that function.
echo Keep posted on the Moparscape Tutorials section for
echo any updates that I post.
echo.
echo c - Compile your server.
echo r - To Run your server.
echo e - To exit out of the program.
echo jar - It will create your server into an executable Jar archive.
echo color - Change the Text and Backround colors of this compiler.
echo reset - Resets your Compiler Logs.
echo.
echo.
set /p c=Option:
if %c%==c goto c
if %c%==C goto c
if %c%==r goto r
if %c%==R goto r
if %c%==jar goto jar
if %c%==Jar goto jar
if %c%==JAR goto jar
if %c%==color goto color
if %c%==Color goto color
if %c%==COLOR goto color
if %c%==reset goto reset
if %c%==Reset goto reset
if %c%==RESET goto reset
if %c%==e goto e
if %c%==E goto e
if %c%==* goto er
goto er
:jar
title Jar Creator
cls
echo What will be the name of the Jar file?
echo.
set /p name=Name:
if exist *.class (del *.class)
set pro=%pr%jdk1.5.0
set pro2=%pr%jdk1.6.0
set jav=bin\javac.exe
set go=jar2
goto cj
:jar2
%java% -cp . *java
echo Manifest-Version: 1.0 >> manifest
echo Created-By: 1.5.0_04 (Sun Microsystems Inc.) >> manifest
echo Main-Class: server >> manifest
set pro=%pr%jdk1.5.0
set pro2=%pr%jdk1.6.0
set jav=bin\jar.exe
set go=jar3
goto cj
:jar3
if not exist *.class (goto jre)
%java% -cvfm %name%.jar manifest *.class
del runserver.bat
del manifest
del *.class
goto jl
:jar4
set pro=%pr%jre1.5.0
set pro2=%pr%jre1.6.0
set jav=bin\java.exe
set go=jar5
goto cj
:jar5
echo @echo off  >> runserver.bat
echo title %name% >> runserver.bat
echo %java% -cp .;%name%.jar server >> runserver.bat
echo pause >> runserver.bat
cls
echo %name% Jar file successfully made. The runserver.bat will
echo now load the Jar file. If you have any errors while runnning
echo the Jar file, please post about it in Mod Taharok's 'Perfect
echo Compiler' topic on MoparScape.
pause
goto menu
set
:color
cls
echo Would you like to change the backround color, change
echo the text color, or reset it to default?
echo.
echo back - Change the backround color.
echo text - Change the text color.
echo def - Change all colors back to default.
echo.
echo.
set /p color=Option:
if %color%==back goto back
if %color%==BACK goto back
if %color%==text goto text
if %color%==TEXT goto text
if %color%==def goto co1
if %color%==DEF goto co1
if %color%==* goto er
goto er
:back
cls
echo Please select a color to change the backround to:
echo.
echo black
echo white
echo red
echo yellow
echo green
echo blue
echo purple
echo.
echo.
set /p back=Color:
if %back%== black (set b=0)
if %back%== white (set b=7)
if %back%== red (set b=4)
if %back%== yellow (set b=6)
if %back%== green (set b=2)
if %back%== blue (set b=1)
if %back%== purple (set b=5)
goto co2
:text
cls
echo Please select a color to change the text to:
echo.
echo black
echo white
echo red
echo yellow
echo green
echo blue
echo purple
echo.
echo.
set /p back=Color:
if %back%== black (set t=0)
if %back%== white (set t=7)
if %back%== red (set t=4)
if %back%== yellow (set t=6)
if %back%== green (set t=2)
if %back%== blue (set t=1)
if %back%== purple (set t=5)
goto co2
:c
cls
title Compiler
set pro=%pr%jdk1.5.0
set pro2=%pr%jdk1.6.0
set jav=bin\javac.exe
set go=c2
goto cj
:c2
if exist src (goto cl) else (goto c3)
:c3
if exist *.java (goto cl2) else (goto ce)
:c4
%java% -cp . *.java
echo Files Compiled Successfully!
pause
cls
goto menu
:c5
%java% -cp . .\src\*.java
echo Files Compiled Successfully!
pause
move .\src\*.class .\classes\
cls
goto menu
:ce
cls
echo You must have Java files for this Compiler to Compile.
pause
cls
goto menu
:r
cls
title Runserver
set pro=%pr%jre1.5.0
set pro2=%pr%jre1.6.0
set jav=bin\java.exe
set go=r2
goto cj
:r2
set rjava=%java% -Xmx1024m -cp .;./jython.jar;./MySql/mysql-connector-java-3.0.17-ga-bin.jar server
cls
goto r3
:r3
if exist .\classes\HelloJava.class (goto sl2) else (goto r4)
:r4
if exist .\server.class (goto sl) else (goto se)
:r5
%rjava%
pause
cls
goto menu
:r6
set rjava=
set rjava=%java% -cp .;./classes; Server
%rjava%
pause
cls
goto menu
:se
cls
title Error
echo You do not have a Server.class. Make sure that you have used the
echo compiler with your server BEFORE you try runing it.
pause
cls
goto menu
:er
cls
title Error
echo Invalid command. Please make sure the commands you type
echo in are correct.
pause
cls
goto menu
:e
cls
exit
:cj
if exist "%pro2%_01\%jav%" (goto sj)
if exist "%pro2%\%jav%" (goto sj2)
if exist "%pro%_10\%jav%" (goto sj3)
if exist "%pro%_09\%jav%" (goto sj4)
if exist "%pro%_08\%jav%" (goto sj5)
if exist "%pro%_07\%jav%" (goto sj6)
if exist "%pro%_06\%jav%" (goto sj7)
if exist "%pro%_05\%jav%" (goto sj8)
if exist "%pro%_04\%jav%" (goto sj9)
if exist "%pro%_03\%jav%" (goto sj10)
if exist "%pro%_02\%jav%" (goto sj11)
if exist "%pro%_01\%jav%" (goto sj12)
if exist "%pro%\%jav%" (goto sj13) else (goto je)
:sj
set java="%pro2%_01\%jav%"
goto %go%
:sj2
set java="%pro2%\%jav%"
goto %go%
:sj3
set java="%pro%_10\%jav%"
goto %go%
:sj4
set java="%pro%_09\%jav%"
goto %go%
:sj5
set java="%pro%_08\%jav%"
goto %go%
:sj6
set java="%pro%_07\%jav%"
goto %go%
:sj7
set java="%pro%_06\%jav%"
goto %go%
:sj8
set java="%pro%_05\%jav%"
goto %go%
:sj9
set java="%pro%_04\%jav%"
goto %go%
:sj10
set java="%pro%_03\%jav%"
goto %go%
:sj11
set java="%pro%_02\%jav%"
goto %go%
:sj12
set java="%pro%_01\%jav%"
goto %go%
:sj13
set java="%pro%\%jav%"
goto %go%
:je
cls
title Error
echo You do not have JDK 5.0 or JDK 6.0 or any JDK 5.0 and 6.0 updates.
echo Go to Mod Taharok's tutorial on the Moparscape Tuturoials section
echo for step-by-step instructions to download the newest JDK Update.
pause
cls
goto menu
:sl
cls
echo Ran Server at %time% and on %date%. >> "Compile Logs.txt"
echo Server was run using %java%. >> "Compile Logs.txt"
echo Thank you for using Mod Taharok's 'Perfect' Compiler! >> "Compile Logs.txt"
echo. >> "Compile Logs.txt"
goto r5
:sl2
cls
echo Ran Server at %time% and on %date%. >> "Compile Logs.txt"
echo Server was run using %java%. >> "Compile Logs.txt"
echo Thank you for using Mod Taharok's 'Perfect' Compiler! >> "Compile Logs.txt"
echo. >> "Compile Logs.txt"
goto r6
:cl
cls
echo Compiled Java files at %time% and on %date%. >> "Compile Logs.txt"
echo Java files were compiled using %java%. >> "Compile Logs.txt"
echo Thank you for using Mod Taharok's 'Perfect' Compiler! >> "Compile Logs.txt"
echo. >> "Compile Logs.txt"
goto c5
:cl2
cls
echo Compiled Java files at %time% and on %date%. >> "Compile Logs.txt"
echo Java files were compiled using %java%. >> "Compile Logs.txt"
echo Thank you for using Mod Taharok's 'Perfect' Compiler! >> "Compile Logs.txt"
echo. >> "Compile Logs.txt"
goto c4
:jl
cls
echo %name% Jar file created at %time% and on %date%. >> "Compile Logs.txt"
echo Jar file was created using %java%. >> "Compile Logs.txt"
echo Thank you for using Mod Taharok's 'Perfect' Compiler! >> "Compile Logs.txt"
echo. >> "Compile Logs.txt"
goto jar4
:reset
cls
echo Resetting the Compiler's Logs...
pause
del "Compile Logs.txt"
goto menu

Otherwise, make a new text document and put this into it:
Code:
@echo off
title Server Compiler
"C:\Program Files\Java\jdk1.5.0_06\bin\javac.exe" -cp . *.java
pause
Click Save as...
And change file type to 'All Files' and name it compile.bat

Now when running the compile.bat you will compile your server.



9. Running your server
For every source, there is something like "run.bat". Open up run.bat(can also be named other things, such as runserver.bat), as shown here:

This will bring a screen, which will tell you to type in something. Follow the instructions for running your server.

To log into your server, open up either client. Then, while having your runserver open, type a username and password(preferably the account you made an administrator), and either using " " as your IP or "127.0.0.1" as your IP. That's it, congratulations!

========================================================
Congratulations! Now go have fun in your "server"! Technically it is a server!
========================================================
« Last Edit: September 11, 2008, 11:08:02 am by Mod Base » Report Spam   Logged

Share on Bluesky Share on Facebook

Kalphiter
Global Moderator
Newbie
*
Posts: 7


View Profile
« Reply #1 on: September 07, 2008, 11:03:03 am »

Yeah um....

Please don't remove the credits.

MeglioScape is my dead server:
« Last Edit: September 07, 2008, 04:56:57 pm by Kalphiter » Report Spam   Logged
Mod Base
Global Moderator
Newbie
*
Posts: 7


View Profile
« Reply #2 on: September 08, 2008, 12:19:39 pm »

Oops, don't worry, I've re-added it. And you're from my Forums.  Grin
Report Spam   Logged
Kalphiter
Global Moderator
Newbie
*
Posts: 7


View Profile
« Reply #3 on: September 08, 2008, 03:03:31 pm »

Oops, don't worry, I've re-added it. And you're from my Forums.  Grin
You did not contribute to this guide at all.
Report Spam   Logged
Pages: [1]
  Print  
 
Jump to:  

Xtra Smileys
[Open]
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum
Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy