IF YOU DON'T HAVE JDK... DOWNLOAD IT.
Hey, I'm Mr Silent, just started on Rune-Server, there are probably alot of these out there, but i just thought i'd give it my best shot
I am going to go into HIGH detail in this as i want to aim it at beginners.
Right...
FILES NEEDED: Autospawn.cfg
1. Open up your Server Folder
When you have your server folder open, search for a folder called 'Config' or 'CFG' or if you already know your way around your source, search for your CFG files.
In your Config/CFG folder, you should now see a file named 'Autospawn.cfg'
Now you have that sorted, Open Up Your Autospawn.cfg
If you are not an experienced coder, this will make no sense to you...
But that's what tutorials are for, to teach you beginners
Mine will be different but it SHOULD LOOK SOMETHING LIKE THIS
To add an NPC you need to add a ' Spawn =..... '
For Example...
Code:
spawn = 1267 2680 3730 0 2684 3734 2638 3726 1 Rock Crab
The 1st Part... '1267' is the NPC ID.
You can find those in a long list HERE.
This is what monster it will be, in my case 1267 is a rock crab.
The 2nd Part '2680 3730' is the X&Y coordinates of the place where you want the NPCS to be.
The 3rd Part '0' is the height level of the monster, you should keep this at 0.
The 4th Part ' 2684 3734 2638 3726' is the Range of where you would like the NPC to go.
If that made no sense, then basically, if you want your NPC to move get the Coords what you would like it to move you, in the case you have to make a sort of box, like... The 'X' is there it is allowed to move up to, and the 'NPC' is where it starts off which is the First set of coords.
X ------------------ X
| |
| |
| NPC |
| |
| |
X ------------------ X
And Finally, the '1' should always stay as it is.
The Last part is the description of the monster, just mainly for coding reasons.
Save your work.
Compile It.
AND THERE YOU HAVE IT!
AN NPC!
If you're source has a compiler that does not work.
Example....
Make sure that it gets the Javac from your version of JDK.
To check this go into 'My Computer'
Go into 'C' or wherever you installed it to.
Go to 'Program Files'
Go to 'Java'
And then it should say JDK_....
That is your JDK version, change the compiling jdk version into yours.
OR...
Use this compiler
Code:
@echo off
@TITLE SilentX Compiler
if exist "%programfiles%\Java" (call :compile "%programfiles%\Java\") else (goto error)
:compile
for /D %%x in ("%~1jdk*") do (set p="%%~x\bin\javac.exe")
if defined p (%p% -cp . *.java)
if defined p (goto end)
:error
echo You do not have Java installed. Please download it at the site that is about to load.
:end
echo Finished!
pause
exit
Thankyou for using/reading my tutorial. I am now making one for beginners on how to get an NPC to talk, or do other actions.
Thankyou!!!
Mr Silent.
Whoever Rep'ed me.
Thanks Alot
Thanks-VM
Mr Silent.