[Java] Runescape private servers - basic essentials [Java]

Discussion in 'RuneScape Miscellaneous' started by Denial, Nov 5, 2008.

Thread Status:
Not open for further replies.
[Java] Runescape private servers - basic essentials [Java]
  1. Unread #1 - Nov 5, 2008 at 8:13 AM
  2. Denial
    Referrals:
    2

    Denial Guest
    $25 USD Donor New

    [Java] Runescape private servers - basic essentials [Java]

    [[[Tutorial one]]]
    =Java - Runescape Prv Servers - Basic essentials=
    In this tutorials, i'll be teaching the the bare essentials of making your own Runescape Private server.
    First off:
    REAL MEN CODE IN NOTEPAD.
    It's actually really easy.
    You'll need a good base server, i chose testscape. it's a rather popular server and good fun for beginners.
    I had trouble finding it, but you can download it here: http://kuka007scape.mylivepage.com/file/258/636
    Ok, so you've got your base server, let's get started.

    [Contents]
    1. Adding Item and Monster spawns
    2. Adding and stocking shops
    3. Editing item names and stat bonuses


    -=[1]=-
    Adding item and NPC spawns

    Part 1 - Item spawns.
    This is a pretty simple process, start by opening Drops.cfg. you should see something like this:
    Code:
    //-----ItemID---CoordX--CoordY--Amount--Height--Type--Description
    drop = 1923	3208	3214	1	0	2	Lumbridge Castle Bowl
    Lets go through this. most of it is self explanatory, but i just want to go through it to give a full understanding.


    ItemID - The ID number of the item you want spawned, you can find Item ID's in 'Item.cfg'.
    CoordX - The X co=ordinate of where you want your item to be spawned.
    CoordY - The Y co=ordinate of where you want your item to be spawned.
    Amount - The amount of the item you want to spawn, Amount 3 would spawn 3 of that item.
    Height - This is a bit tricky, height is like the level you want it to appear. height is when you use something such as stairs, go up a pair of stairs and your height increases by 1.
    Type - I'm not entirely sure as to what this does, although i don't think it makes much difference.
    Description - Not neccesary, just a description of the item for anyone else who will use your server.

    Now then, some servers (including testscape) have your current co-ordinates in the menu containing the run button.
    Find the itemID of the item you want to spawn, the coordinates of where you want to spawn it, and add a line to drops.cfg like so:

    Code:
    drop = ItemID	Xcord	Ycord	1	0	1	Item description

    Replace Xcord and Ycord with your chosen Coords, and ItemID with the item you wish.


    Part 2 - NPC spawns.

    Open your Autospawn.cfg, you will see this:


    Code:
    //------NpcID---CoordX--CoordY--Height--RangeX1-RangeY1-RangeX2-RangeY2-WalkType-Descrption
    spawn = 23	2660	3304	0	2662	3306	2658	3302	2	Knight Of Adrougne
    Up to Rangex1, this exactly the same as adding item spawns, except using NPCIDs.
    Range** - Using these 4 inputs, you must effectively create a 'box' for a npc to walk in, using chosen coords.
    Walktype - Again, not sure what this does, or what difference it makes.

    Please note that i have NEVER been able to get NPC walking working, just by using Autospawn.cfg, but that's how it's supposed to be done. It might just be my server.

    When spacing between co-ordinates, item ID's etc in CFG files, always use tab. it's neater, and i don't think [Space] works correctly.
    -=[2]=-
    Adding and stocking shops

    Part 1 - Client.java

    Open your Client.java and search for 'WanneShop = 1' without the ''.
    you should see alot of lines like this:

    Code:
    } else if (NPCID == 530) { 
    					PutNPCCoords = true;
    					WanneShop = 41;
    At the end of all this (after the last 'WanneShop = **'), add the following:

    Code:
    				} else if (NPCID == NPC-ID) { 
    					PutNPCCoords = true;
    					WanneShop = SHOPNUMBER;
    Replace NPC-ID with The ID number of your chosen Shopkeeper
    and replace SHOPNUMBER with the the next number possible. for example, in my server the last server is 'WanneShop = 41' so i would add:

    Code:
    				} else if (NPCID == NPC-ID) { 
    					PutNPCCoords = true;
    					WanneShop = 42;
    [IMPORTANT] The NPCID must be the ID of a shopkeeper, like varrock general store shopkeeper, or you wn't be able to trade. also, make sure the NPCID isn't already in use with another shop.

    Part 2 - Shops.cfg

    Code:
    //-----ShopID---ShopName----------------------------------------Sell----Buy-----Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount--Item----Amount
    shop = 1	Varrock_General_Store				1	1	1931	5	1935	2	1735	2	1925	3	1923	2	1887	2	590	2	1755	2	2347	5	550	5	2552	20
    Wait, aren't i going to start with a brief explanation? pfft.
    This is mainly self explanatory, but i'll go through it.

    ShopID - The number of the shop (this is where 'wanneshop = **' in client.java comes into play).
    ShopName- Name your shop
    Sell - This is were it's a tad of a trick, by typing either 1 or 0, you'll enable the shop to either sell items it's already got stocked, or any items a player previously sold to the store.
    Buy - Same as above. 1 is to allow shops to buy/sell any items, 0 is to make it so shops can only buy/sell what they're originally stocked with.
    Item - ID of an item to sell.
    Amount - How much to sell the previous ItemID for.

    if you run out of Amount/item lines to add items, don't stress, just press tab and keep on adding.

    -=[3]=-
    Editing item names and stat bonuses

    Open up your Item.cfg

    Code:
    //-----ItemID---ItemName----------Itemdescription-----------------------------------------------------------------------------------------------------------------------
    item = 1	Tool_kit	These_could_be_handy.	1	1	1	0	0	0	0	0	0	0	0	0	0	0	0
    ItemID - The ID of the following item.
    ItemName - The name of the Item, when editing make sure to use underscores as spaces.
    Itemdescription - What you will see after examining the item.

    For the benefit of learning, i've edited it a little:

    Code:
    //-----ItemID---ItemName----------Itemdescription-----------------------------------------------------------------------------------------------------------------------
    item = 1	Tool_kit	These_could_be_handy.	30000	30000	30000	1	2	3	4	5	6	7	8	9	10	11	12
    These are the stat bonuses, and prices.

    the 30000's are genral prices, for low alch high alch etc. not sure what order they are in.

    the rest are bonuses;
    The bonuses are as follows:

    Code:
    1-5 Are Attack 6-10 are Defence
    1  - Stab Bonus
    2  - Slash Bonus
    3  - Crush Bonus
    4  - Magic Bonus
    5  - Range Bonus
    6  - Stab Defence Bonus
    7  - Slash Defence Bonus
    8  - Crush Defence Bonus
    9  - Magic Defence Bonus
    10 - Range Defence Bonus
    11 - Strength Bonus
    12 - Prayer Bonus
    That's it for this tutorial, in the next tutorial, i'll explain some more complicated features, including NPC drops, custom spells and more.

    I hope this tutorial helped ;)

    If there's anything wrong or any mistakes, don't hesitate to let me know
    ~Denial
     
  3. Unread #2 - Nov 5, 2008 at 10:23 AM
  4. Rawr
    Joined:
    Jul 18, 2008
    Posts:
    2,442
    Referrals:
    10
    Sythe Gold:
    13
    Pokémon Trainer

    Rawr Addict.
    Retired Sectional Moderator $100 USD Donor

    [Java] Runescape private servers - basic essentials [Java]

    You have a good thought on what to put in hear, but in my mind... it's hard to follow. Try to bold some words to separate the different parts, and when writing code, try using the
    Code:
    
    
    tags to make it easier to read/understand. Overall, it's a nice start 7/10.
     
  5. Unread #3 - Nov 5, 2008 at 12:26 PM
  6. Python
    Joined:
    Jun 23, 2005
    Posts:
    297
    Referrals:
    0
    Sythe Gold:
    0

    Python ♥ The Snake Boy ♥/ Darren's Bitch ♥
    Banned

    [Java] Runescape private servers - basic essentials [Java]

    It gets all the information across. That is great. But I think this should belong in the RunescapePrivate Server Section, I am not sure.

    Anyways, I suggest you work on format and maybe pictures? A picture can be worth 1,000 words as you know.
     
  7. Unread #4 - Nov 6, 2008 at 12:00 AM
  8. Denial
    Referrals:
    2

    Denial Guest
    $25 USD Donor New

    [Java] Runescape private servers - basic essentials [Java]

    I'll improve the layout of the tutorial tonight, if it helps.
     
  9. Unread #5 - Nov 6, 2008 at 4:35 AM
  10. Denial
    Referrals:
    2

    Denial Guest
    $25 USD Donor New

    [Java] Runescape private servers - basic essentials [Java]

    This tutorial is not about runescape, it is about java programming, used to make runescape private servers. i think that quote is directed to posted guiddes about mking money/good pures in real rs.
     
  11. Unread #6 - Nov 6, 2008 at 4:46 AM
  12. venom
    Joined:
    Sep 8, 2007
    Posts:
    2,499
    Referrals:
    1
    Sythe Gold:
    2

    venom Half psychotic sick Hypnotic
    Retired Sectional Moderator

    [Java] Runescape private servers - basic essentials [Java]

    Point taken, I have removed my last post! ;)

    Quite a well detailed guide you have made here, although I wouldn't recommended it for beginners. You should bold the sub headings so it it chops up the guide and makes it a bit easier to follow/understand.

    Overall a well written guide.
     
  13. Unread #7 - Nov 6, 2008 at 4:56 AM
  14. Omg Crumpets
    Joined:
    Oct 7, 2008
    Posts:
    185
    Referrals:
    0
    Sythe Gold:
    0

    Omg Crumpets Active Member
    Banned

    [Java] Runescape private servers - basic essentials [Java]

    I like it's detail. That's what interested me. But the way you formatted the coding made it really hard and confusing to read.

    Try reformatting it, and possibly adding some pictures. But other than that, it's pretty nice. 7/10
     
  15. Unread #8 - Nov 6, 2008 at 5:34 AM
  16. Denial
    Referrals:
    2

    Denial Guest
    $25 USD Donor New

    [Java] Runescape private servers - basic essentials [Java]

    Like i said, i plan to neaten it up a little, check back soon

    EDIT: Btw, as a result of you removing the post, i double posted D:
     
  17. Unread #9 - Nov 6, 2008 at 7:05 AM
  18. MatthewGor123
    Joined:
    Dec 17, 2005
    Posts:
    1,213
    Referrals:
    0
    Sythe Gold:
    0

    MatthewGor123 Guru
    Do Not Trade

    [Java] Runescape private servers - basic essentials [Java]

    Yeah, I couldn't read through the whole guide. Nothing stood out; it was a bit too monotonous for a guide, especially on a generally pretty boring topic.

    A few pictures couldn't hurt, nor would bolding some parts, or varying the color...

    What I did read looked quite detailed, but I didn't even want to get to the end :S
     
  19. Unread #10 - Jul 7, 2009 at 5:56 PM
  20. Skw33ky 6
    Joined:
    Jul 5, 2009
    Posts:
    5
    Referrals:
    0
    Sythe Gold:
    0

    Skw33ky 6 Newcomer

    [Java] Runescape private servers - basic essentials [Java]

    Have you made the second part of the tut yet? i look forward to reading it
     
  21. Unread #11 - Nov 4, 2009 at 12:28 PM
  22. zigmaster3
    Joined:
    Sep 13, 2009
    Posts:
    1
    Referrals:
    0
    Sythe Gold:
    0

    zigmaster3 Newcomer

    [Java] Runescape private servers - basic essentials [Java]

    ^^^
    @Owner-You're a faggot who wasted over a hundred dollars on an online gaming community so you could have a little graphic next to your name.
    ROFL


    ~~~~~~
    I love the tut m8 and it helped alot.
    Good job.
     
< Help - Starting The Client | Problem with NUll items >

Users viewing this thread
1 guest
Thread Status:
Not open for further replies.


 
 
Adblock breaks this site