Thread: [317] - Beginners Tutorial - How to add NPC's into your Server

Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1  
    Web Developer
    Connor's Avatar
    Join Date
    Jul 2010
    Posts
    203
    Thanks given
    21
    Thanks received
    2
    Rep Power
    47
    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....
    Code:
    jdk6_0_15
    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.

    Kind Regards,
    Connor
    Reply With Quote  
     

  2. #2  
    Banned

    Join Date
    Jun 2010
    Age
    36
    Posts
    4,335
    Thanks given
    4
    Thanks received
    274
    Rep Power
    0
    Lol nice guide ;D
    Keep it up
    Reply With Quote  
     

  3. #3 mm 
    Registered Member Defiled's Avatar
    Join Date
    Jul 2010
    Age
    30
    Posts
    352
    Thanks given
    9
    Thanks received
    4
    Rep Power
    56
    bump
    Reply With Quote  
     

  4. #4  
    Registered Member Defiled's Avatar
    Join Date
    Jul 2010
    Age
    30
    Posts
    352
    Thanks given
    9
    Thanks received
    4
    Rep Power
    56
    meow!
    Reply With Quote  
     

  5. #5  
    Web Developer
    Sadboys's Avatar
    Join Date
    Jan 2010
    Posts
    81
    Thanks given
    18
    Thanks received
    10
    Rep Power
    2
    Nice Guide Bro

    5 Star!!

    Nice, really helped me out!
    Reply With Quote  
     

  6. #6  
    Endeavor

    Mikey`'s Avatar
    Join Date
    Dec 2007
    Posts
    4,434
    Thanks given
    715
    Thanks received
    1,435
    Rep Power
    1202
    Your don't need to compile if you just edited your NPC spawn.
    Reply With Quote  
     

  7. #7  
    Web Developer
    Connor's Avatar
    Join Date
    Jul 2010
    Posts
    203
    Thanks given
    21
    Thanks received
    2
    Rep Power
    47
    Thanks alot Guys
    Oh and...

    @defiled

    To delete your character...

    You need to open your server/source folder.

    Click on characters,

    Search for your username, and just simply delete the file.

    Thanks-VM

    Mr Silent

    Kind Regards,
    Connor
    Reply With Quote  
     

  8. #8  
    Web Developer
    Connor's Avatar
    Join Date
    Jul 2010
    Posts
    203
    Thanks given
    21
    Thanks received
    2
    Rep Power
    47
    @Mikey

    Thanks Buddy, learn something new everyday eh?

    Oh and Mikey,

    I really like you, Been viewing your threads all day.
    Keep up the good work

    Can you Rep please

    Tried your MySQL Tut, and it fucked up my source so it took me an hour to try to fix it and it still never worked so i just searched a deleted it

    My Source is kind of retarded... It's delta with SRC/BIN...

    :@

    Thanks-VM

    Mr Silent

    Kind Regards,
    Connor
    Reply With Quote  
     

  9. #9  
    Endeavor

    Mikey`'s Avatar
    Join Date
    Dec 2007
    Posts
    4,434
    Thanks given
    715
    Thanks received
    1,435
    Rep Power
    1202
    Quote Originally Posted by Mr Silent View Post
    @Mikey

    Thanks Buddy, learn something new everyday eh?

    Oh and Mikey,

    I really like you, Been viewing your threads all day.
    Keep up the good work

    Can you Rep please

    Tried your MySQL Tut, and it fucked up my source so it took me an hour to try to fix it and it still never worked so i just searched a deleted it

    My Source is kind of retarded... It's delta with SRC/BIN...

    :@

    Thanks-VM

    Mr Silent

    I can't tell if you are mocking me or complimenting me. And I never had a MySQL tutorial. Always back up your server files before a major update, though.
    Reply With Quote  
     

  10. #10  
    Banned

    Join Date
    Sep 2009
    Posts
    3,245
    Thanks given
    195
    Thanks received
    255
    Rep Power
    0
    You use a compiler to convert java text files that windows can't read to a .class file in a format which windows can read, .cfg files are configuration files that only need a restart to become active.
    Reply With Quote  
     

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

Tags for this Thread

View Tag Cloud

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •