Jump to content

The RuneLocus forum has been archived and does not accept new registrations.
Click here for more information, and click here to join the community on Discord.

Basic Tutorial for 718 Coders


Danielxx
 Share

Recommended Posts

Hello everyone, this is a basic tutorial for new coders learning how to get started when coding 718 Server.

This is simply a Tutorial on how to get yourself going when Coding your own 718.
I will Make sections in this tutorial you can jump to instead of reading threw all of it.
I will be covering the Following Areas

-Downloading Jdk and jre7
-Finding a Source to begin with
-Making yourself Admin/Owner
-Setting up a new Home/Xp Rates/Name and so on
-Changing locations of Npc's/Adding items to Shops/Editing prices.
-Making Custom Titles
-Creating New Ranks
- How To Add Bonus XP To Donator Ranks

Downloading Jdk and Jre7:

 


Now assuming you don't allready have Jdk and jre7, you will need these to be able to make a RSPS.
Go to the Following link provided http://www.oracle.com/technetwork/java/javase/downloads/index.html?ssSourceSiteId=otnjp
once you are there, simply click on Java platform jdk download.
1P4hVwo.png

once you have done that click I accept. and download your jdk version,
either windows x86 or x64.

i1C7AGR.png 

 

Finding a Source to Begin with:

 


Now to get started your going to need a source, client & Cache
you can find these at -http://www.runelocus.com/forums/forumdisplay.php?61-RSPS-Downloads

Deciding what Source you would like to go with can be annoying, every source is different in it's own way, some may come with the source no client and no cache, you will just need to search for a 718 client and a 742/lower cache.
once you have found a suitable source that you are happy with, Simple Download it, then extract to your desktop.

 

I've seen a large amount of new Members ask, "how do i make myself owner?" it's probably the easiest thing to do when you start a Server, so il cover it for you.

Firstly- some Servers require you to edit player.java and some don't. double check it allways anyway just to be safe, and same deal as the bellow- there could be a few different layouts but search for


 

 

if (username.equalsIgnoreCase[/CODE] and change the name to yours once again.


    Secondly- You wil want to go to Commands.java once you are there scroll down threw the commands you will see some commands as this -

if (cmd[0].equalsIgnoreCase("killall") && player.getUsername().equalsIgnoreCase("daniel")) {[/CODE] and some like this - [CODE]if (cmd[0].equalsIgnoreCase("donorshop")) {[/CODE]


    now basically what these mean is that because the 1st code has a name attached to the command only that person can perform that command which is very handy for ;;god and such. the 2nd command i have shown has no name attached so any admin can perform that command. go threw each command and change "Daniel" to your name or if you want all admins to use it just remove the : [CODE] && player.getUsername().equalsIgnoreCase("daniel"[/CODE]

    Allways hit save and compile. then run and you wil have admin rights in game. i no for a few such as " Lost Realm and a few others" you wil need to type ;;admin. and wil set you admin in game. [/Spoiler]

    Setting up a new Home/Xp Rates/Name and so on

    [B]Changing Server name & Home-[/B] This is pretty simple basic stuff, Firstly go to [B]Settings.java[/B] and you will see this

    [CODE]public static final String SERVER_NAME = "TEXT";[/CODE] after that change "TEXT" to the name you have selected for your rsps. simple and done.


    Scroll down to - [CODE]public static final WorldTile START_PLAYER_LOCATION = new WorldTile[/CODE] when you see that you wil see coords for the current home simply change the coords to which location you want to be home, to do so find the location you want and type ;;coords or ;;mypos ingame then press ` and it wil open the Developers Console and wil tell you, your current coords.

    then simply change the rest of the locations to the new one you have chosen.


    You wil also see Skilling xp rate, that is the xp rate your players wil recieve, you can lower or raise it to your liking.

    if you are making a Eco based Server i do Recommend the Skilling xp to be rather low. [/Spoiler]


    Changing locations of Npc's/Adding items to Shops/Editing prices.

    [B]Changing Npc's Location-[/B] now this can be a Drag Different for each server.. for most it wil be [B]npcspawning.java[/B] same as changing home you will want to find the coords for the new locations you want your npc's to be at, once you got coords id suggest writing them down so when you go to change there all there ready to change. simply just change the location to the coords as such - [CODE]World.spawnNPC(494, new WorldTile(2724, 3486, 0), -1, true, true);[/CODE]


    For me its completely different i go to [B]unpackedspawnlist.txt[/B] scroll down should find something like this - [CODE]//home shops[/CODE] under that will be Npc's Id's and coords simply edit the coords to the ones you written down so that npc wil be moved to the location you choose. once done hit save, ( Now always remeber once you pack npc's you need to search for "PackedSpawns" folder delete the folder, hit compile save your work and run, now you have moved home and your npc's.


    [B]Editing items within shops-[/B] This is allways a fun one to do, basically you are editing what items you want in a shop, go to [B]unpackedshops.txt[/B] you will see several rows containing - [CODE]1 995 true - Herb Store - 199 50000 201 500000 203 500000 [/CODE]


    pretty basic stuff

    995 = You can only buy with gp.

    Herb Store = Store name

    199-50000 = the id of the item and how many

    and just Repeat.


    [B]Editing Shop Prices[/B] - Allways a hassle to do.. but needs to be covered, Shops.java is were all of the Prices will be for your items in any shop, Basically you need to open up [B]Shop.java[/B] once you are there, you will need to scroll down or search the following photo : [IMG=http://i.imgur.com/J3GxOCQ.png]


    So basically "GetbuyPrice" anything under that is the Buy price. so if you added the following Code : [CODE]case 1739://cowhide

    item.getDefinitions().setValue(10000);

    break;[/CODE]


    Case 1739 = the item id and //Cowhide is obviously the name of the item. Now as for .setValue(10000); the 10000 is how much you want that item to buy for, and as always break; to end it.


    As for Selling prices Same deal except you are going to want to add it all under [IMG=http://i.imgur.com/Yw5ZMmd.png]

    Pretty simple but can be confusing to some people. 

 Making Custom Titles


    I have allready Explained in Detail on how to Make Custom titles, please follow the link Provided for more information.

    [URL="http://www.runelocus.com/forums/showthread.php?91729-Custom-Titles-amp-Colours"]http://www.runelocus.com/forums/showthread.php?91729-Custom-Titles-amp-Colours[/URL]


  


Creating new Ranks


    I have allready made a Detail Tutorial on how to create a new Rank please use the Following link for more Information

    [URL="http://www.runelocus.com/forums/showthread.php?94171-New-Ranks-In-Depth"]http://www.runelocus.com/forums/showthread.php?94171-New-Ranks-In-Depth[/URL]

   
How To Add Bonus XP To Donator Ranks

    Hello,


    This is a quick tutorial on how to add bonus XP to Different donator ranks, such as ( Donators, Extreme Donators, and Vip Donators.


    It's fairly simple process, I will explain how to do it, and what it all means.


    Firstly Go to Skills.java, you can find this by going to, src-com-rs-game-player then scroll down to the bottom and it will be there.


    Now search for this line of code [IMG=http://i.imgur.com/QcmoS0O.png]


    once you are there you should see something like this:


    [IMG=http://i.imgur.com/RlDtDpJ.png]


    If you don't have this, then your donators wont receive bonus XP , so add this piece of code in underneath


    [CODE]if (skill != ATTACK && skill != DEFENCE && skill != STRENGTH && skill != MAGIC && skill != RANGE && skill != HITPOINTS)

    exp *= [B][COLOR="#000000"]player.isDonator[/COLOR][/B]() ? Settings.SKILLING_XP_RATE + 1 : Settings.SKILLING_XP_RATE;

    else

    exp *= player.isDonator() ? Settings.COMBAT_XP_RATE + 3 : Settings.COMBAT_XP_RATE;[/CODE]


    Basically, it will operate from your skilling XP rate in settings.java, then for donators you add your Bonus XP such as the ( +1 ) and it's the same for combat XP rate, this will only work for [B][COLOR="#000000"]Donators[/COLOR][/B] since we have made it as [B][COLOR="#000000"]player.isDonator[/COLOR][/B].


    If you want to add more XP or lower XP for different ranks such as Extreme donators for example you would add the same line of code such as :


    [CODE]if (skill != ATTACK && skill != DEFENCE && skill != STRENGTH && skill != MAGIC && skill != RANGE && skill != HITPOINTS)

    exp *= player.isDonator() ? Settings.SKILLING_XP_RATE + 5 : Settings.SKILLING_XP_RATE;

    else

    exp *= player.is[B][COLOR="#000000"]ExtremeDonato[/COLOR][/B]r() ? Settings.COMBAT_XP_RATE + 3 : Settings.COMBAT_XP_RATE;[/CODE]


    Be sure to make it as Extreme Donators and not Donators, you can do this for every rank you desire, you can increase XP and Combat XP, or Decrease XP and higher Combat XP, there are a few Different ways of doing this, this is one of the most efficient ways to do this.


    If you have any questions feel free to let us know in the comments below!


 


    If you have any questions or any issues feel free to Contact me, or Make a help thread, Hopefully this updated Tutorial will help more people out when starting a 718 Server. If you would like another Tutorial on how to do something feel free to contact me and ill make a detail guide on it.


    Cheers
 

Link to comment
Share on other sites

  • Replies 78
  • Created
  • Last Reply

Top Posters In This Topic

Nice tutorial. What you could also do is split it up in several threads. Parts of the tutorial where you can go more in depth while keeping the information good. If I was a newcomer, I don't think I would take the time to read everything. I'd search for what I need help with. The title of this would mean that there is so much more information than I need. Therefore you could split it up to prevent such a thing.

Very nice though. You maybe want to include what revision this is for? Some codes might be different.

EDIT: correct me if there is something I overlooked.
Link to comment
Share on other sites

[quote name='Arix']Nice tutorial. What you could also do is split it up in several threads. Parts of the tutorial where you can go more in depth while keeping the information good. If I was a newcomer, I don't think I would take the time to read everything. I'd search for what I need help with. The title of this would mean that there is so much more information than I need. Therefore you could split it up to prevent such a thing.

Very nice though. You maybe want to include what revision this is for? Some codes might be different.

EDIT: correct me if there is something I overlooked.[/QUOTE]

sure i can do that if you think it wil be easier for others to understand and read.
thankyou.
Link to comment
Share on other sites

[quote name='Arix']Nice tutorial. What you could also do is split it up in several threads. Parts of the tutorial where you can go more in depth while keeping the information good. If I was a newcomer, I don't think I would take the time to read everything. I'd search for what I need help with. The title of this would mean that there is so much more information than I need. Therefore you could split it up to prevent such a thing.

Very nice though. You maybe want to include what revision this is for? Some codes might be different.

EDIT: correct me if there is something I overlooked.[/QUOTE]

Agree with Arix, would also make it more accessible for people who search for one particular subject :P
Link to comment
Share on other sites

  • Cart unpinned this topic
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...