Yes, I know there is a tutorial on how to set a server up. But I will also be showing people how to spawn npc's, objects, and more for I will be updating it.
Purpose: I'm really bored and honestly don't know what to do. I know Delta is gross but its basic and simple and ok to start on. Please don't flame i'm simply just making this for the beginners that want to code. And need to post my tutorial somewhere actually legitimate. Thanks and please give feedback.
Difficulty:1 (This is very very very basic)
Credits?(never done a tutorial before): Apocalypse Pk for the client and his source, me for modifying it slightly for this tut
How to make a 317 server and a client:
Getting the server running:
First your going to want JDK and JRE
Now your gonna need WinRar
once you have finished downloading and installing those, you'll need a server source.
Xell Scape Server: Xell scape.rar
Information on server here: Terms Of Service
Now extract your server to your desktop.
Next, open up the folder.
click on Compile.bat let the server compile, once done, exit out. If you get any errors, post in reply or PM me.
Now you need to get your no-ip host.Get it here: No-IP
Create an account.
Login and select "Add a host"
Now pick a name for your server. In this guide, well make it "Cool Scape"
so fill out whatever your sever name is in the box. For example:
Now that that is created, download the No-Ip Duc
Open up the DUC and login.
Check off your host you created, and minimize the window down.
WERE ALMOST DONE WITH THE SERVER SIDE!
Now open up your files.
hit ctrl + H
and replace xell scape with your name, but in this example, ill use "cool scape"
hit save and exit out.
Now click Compile.bat
Now click Runserver.bat And leave the window minimized! your servers now running.
Now your halfway Done!
Getting your client set up:
First, download my edited client here (background is a lightning bolt, nothing much):
Client download: Divine Valor.rar
Now extract it to your desktop.
Rename the folder after your server.
Go into the files.
Open up GUI.java
and hit ctrl + f
hit save and exit.
go into client.java and hit ctrl + H
Do the same thing in the server's client .java; replace Xell scape with "YOURSERVERNAME"
hit file > Save.
now hit Compile.bat
hit play now, and your up and running!
How To Add Objects!
Go into your server folder and open up "client.java"
Now hit ctrl + f and search for
your results should look somewhat like this( after you scroll down a bit) :
Now to add an Item
This is the layout of the MakeGlobalObject void:
makeGlobalObject(int x, int y, int typeID, int orientation, int tileObjectType)
first you need to find out the items ID that you want to add in. For example,
Say I wanted to add in a crate in one spot. The ID would be "1".
So say we wanted to add in a crate, we would make a new line at the bottom of the "makeGobalObject" stuff. And add in
makeGlobalObject(2312, 3686, 1, 0, 10);
2312 is the X-COORD, 3686 is the Y-COORD, 1 IS THE CRATES ID, 0 is the way it faces (usually not needed for crates, more for banks and altars)and leave the 10 alone, you probably don't need it.
So it would look like this.
now click file > Save. And Exit out of the notepad.
Run your Compile.bat Once its finished, restart your server and the item should be added!
HOW TO ADD NPCS COMING REALLY SOON