Welcome, guest! Please login or register.

    * Shoutbox

    RefreshHistory
    • ASDss: where do u download source and clients now
      August 18, 2017, 10:39:31 PM
    • ASDss: yo
      August 18, 2017, 10:39:20 PM
    • dan v jad: click me 4 da fun ;)[link]
      August 18, 2017, 04:39:58 PM
    • stCky: Palidinho is your OpenGL (was it OpenGL?) stuff open source anywhere?
      August 16, 2017, 09:07:22 PM
    • Travas:BUILD THE WALL
      August 15, 2017, 09:28:49 PM
    • Travas: i have ass cancer
      August 15, 2017, 09:23:29 PM
    • stCky: what are the fudge are you tryna ask?
      August 15, 2017, 08:21:35 PM
    • bader: what are the rsps community alive ?
      August 15, 2017, 05:46:16 PM
    • bader: yo guys
      August 15, 2017, 05:46:08 PM
    • Spacehost:[link] Updated our thread :)
      August 15, 2017, 09:40:34 AM
    • Adaro: The client is in Download section at Homepage
      August 15, 2017, 01:09:20 AM
    • FaTe_Of_GoDs: where do i get the client?????????????
      August 14, 2017, 05:23:14 PM
    • stCky: can anyone help me? I cant login to the shoutbox
      August 13, 2017, 05:45:15 PM
    • drubrkletern: appeal denied
      August 13, 2017, 02:35:27 PM
    • King_Trout:[link]
      August 13, 2017, 11:17:12 AM
    • Cole1497: no sorry
      August 13, 2017, 10:27:14 AM
    • ayz: yo can anyone explain something to me
      August 13, 2017, 08:08:51 AM
    • coolking12: Hi
      August 13, 2017, 04:16:06 AM
    • stCky: n+1
      August 11, 2017, 06:09:24 PM
    • PalidinoDH: How many more pages are going to show errors before this dude gets on and fixes shit
      August 11, 2017, 04:57:00 PM

    Author Topic: [Tutorial] Editing EasyRSC  (Read 61925 times)

    0 Members and 1 Guest are viewing this topic.

    Offlineyong min

    • Member
    • ****
    • Posts: 1,788
    • Thanks: +0/-0
      • View Profile
    [Tutorial] Editing EasyRSC
    « on: April 21, 2009, 03:01:23 PM »
    I am basically posting this to try and prevent some of the self explanatory questions that generally appear daily on the forums. People don't like searching, so if the basic things can be thrown in 1 topic, it may be quicker for them to find, and prevent the hideously basic questions on a daily basis.

    If you edit a JAVA file, then COMPILE!

    If you edit a XML file, then COMPRESS!

    If you edit a RSCD file, DESCOMPRESS, EDIT and then COMPRESS!

    Required Programs:

    EasyRSC Source 1: https://forum.moparscape.org/index.php/topic,340170.0.html/

    If the above download links do not work for you, then click this link:

    EasyRSC Source 2:

    Compression Tool:

    7-zip: http://www.7-zip.org/download.html

    Sprite Editor, Packer/Unpacker:

    Editing Items

    Go into your server folder. Once in your server folder, go into:

    Conf -- Server -- Defs

    Once in the Defs folder, find and open your ItemsDef.xml file.

    Code: [Select]
    <name>ITEM NAME</name>

    This will change the name of the Item.

    Code: [Select]
    <description>DESCRIPTION WHEN EXAMINE IS CLICKED</description>

    This will change the description of the item, when the player right clicks it and clicks on the examine option.

    Code: [Select]
    <command></command>

    This is if you want the item to have a command. For example: If you item was a book and you wanted an option to read the book, you would use:

    Code: [Select]
    <command>Read</command>

    Code: [Select]
    <sprite>SPRITE IMAGE ID</sprite>

    This determines what the inventory image will be.

    Code: [Select]
    <basePrice>1000</basePrice>

    The baseprice determines how much the shops will sell the item for. If you're selling the item to the shop, you will get half of the baseprice. For example: If the shop sells an item for 1,000 coins, you will only be able to sell that item to the shop for 500 coins.

    Code: [Select]
    <stackable>false</stackable>

    This makes the item not stackable. This means that the items will take up more than 1 space in your inventory. Such as armour or weapons.

    Code: [Select]
    <stackable>true</stackable>

    This WILL make the item stackable. This means that the item will only take up 1 space in your inventory. Such as runes or certificates.

    Code: [Select]
    <wieldable>false</wieldable>

    This makes the item NOT wieldable.

    Code: [Select]
    <wieldable>true</wieldable>

    This will make the item wieldable. However, to actually wield the item, you need to add it into the ItemWieldableDef.xml file.

    Code: [Select]
    <pictureMask>65535</pictureMask>

    This will determine what the colour of the item is when displayed in your inventory. If you don't want to change the colour of the item and just use the exact colour from the image in the sprites, just use the picture mask as "0".

    Editing NPCs

    Go into your server folder. Once in your server folder, go into:

    Conf -- Server -- Defs

    Once in the Defs folder, find and open your NPCDef.xml file.

    Code: [Select]
    <name>NPC NAME</name>

    This will determine the name of the NPC.

    Code: [Select]
    <description>NPC DESCRIPTION</description>

    This will be displayed to describe the NPC when you right click and examine it.

    Code: [Select]
    <attack>ATTACK LEVEL</attack>
    <strength>STRENGTH LEVEL</strength>
    <hits>HIT POINTS</hits>
    <defense>DEFENSE LEVEL</defense>

    This will determine the stats of the NPC. The NPCs combat level will be automatically calculated depending what the NPCs stats are.

    Code: [Select]
    <attackable>true</attackable>

    This will make it so that you CAN attack the NPC. If you want the NPC NOT to be attackable, use:

    Code: [Select]
    <attackable>false</attackable>

    Code: [Select]
    <aggressive>true</aggressive>

    This will make the NPC aggressive. This means that if a player walks near that NPC, the NPC will automatically attack that player. To make it so that the NPC doesn't automatically attack, use:

    Code: [Select]
    <aggressive>false</aggressive>

    Code: [Select]
    <respawnTime>500</respawnTime>

    This will determine the length of time for an NPC to respawn. The lower the number, the quicker the NPC will respawn.

    Code: [Select]
        <drops>
          <ItemDropDef>
            <id>ITEM ID</id>
            <amount>AMOUNT TO DROP</amount>
            <weight>0</weight>
          </ItemDropDef>
        </drops>

    This part determines what items the NPC will drop. The weight determines the drop rate. It can be quite tricky to get drop rates PERFECTLY, so work with it and test them out. If the weight is "0", that will be a 100% drop rate.

    Editing wieldable Items

    Go into your server folder. Once in your server folder, go into:

    Conf -- Server -- Defs -- Extras

    Once in the Defs folder, find and open your ItemWieldableDef.xml file.

    Code: [Select]
    <int>0</int>
    [code]

    This corresponds to the item ID. For example: If you're looking for the Rune 2-handed Sword, search for:

    [code]
    <int>81</int>

    Code: [Select]
    <sprite>SPRITE NUMBER</sprite>

    This will determine what sprite is used for what item.

    Code: [Select]
    <type>ITEM TYPE</type>

    This will determine what type the item is.

    Code: [Select]
    <wieldPos>WIELD POSITION</wieldPos>

    This will determine where abouts on your player the item will be made wieldable to.

    Code: [Select]
    <armourPoints>0</armourPoints>
    <weaponAimPoints>0</weaponAimPoints>
    <weaponPowerPoints>0</weaponPowerPoints>
    <magicPoints>0</magicPoints>
    <prayerPoints>0</prayerPoints>
    <rangePoints>0</rangePoints>

    These determine the amount of bonus to be added to the item.

    Code: [Select]
    <requiredStats>
    <entry>
    <int>STAT ID</int>
    <int>REQUIRED LEVEL</int>
    </entry>
    </requiredStats>

    This will determine if the item requires any specific stats to wield it.

    Here is a list of the stat IDs:

    0 = Attack
    1 = Defense
    2 = Strength
    3 = Hits
    4 = Ranged
    5 = Prayer
    6 = Magic
    7 = Cooking
    8 = Woodcut
    9 = Fletching
    10 = Fishing
    11 = Firemaking
    12 = Crafting
    13 = Smithing
    14 = Mining
    15 = Herblaw
    16 = Agility
    17 = Thieving

    Code: [Select]
    <femaleOnly>false</femaleOnly>

    This will determine what gender character can wear that item. If this is false, this means that both male and female characters can use this item. To make it so that only females are able to use the item, use:

    Code: [Select]
    <femaleOnly>true</femaleOnly>

    Changing the location of an NPC

    Go into your server folder. Once in your server folder, go into:

    Conf -- Server -- Locs

    Once in the Locs folder, find and open your NpcLoc.xml file.

    Code: [Select]
    <id>NPC ID</id>

    This is where you add the ID for the NPC.

    Code: [Select]
    <startX>START X COORD</startX>
    <startY>START Y COORD</startY>

    This will determine the coordinates of where you want your NPC to start from.

    Code: [Select]
    <minX>MINIMUM X COORD</minX>
    <maxX>MAXIMUM X COORD</maxX>

    This will determine the minimum and maximum  X coordinate that your NPC can move to.

    Code: [Select]
    <minY>MINIMUM Y COORD</minY>
    <maxY>MAXIMUM Y COORD</maxY>

    This will determine the minimum and maximum Y coordinate that your NPC can move to.

    Changing the item Locations

    Go into your server folder. Once in your server folder, go into:

    Conf -- Server -- Locs

    Once in the Locs folder, find and open your ItemLoc.xml file.

    In this file, this basically determines what items are spawned across the world.

    Code: [Select]
    <id>81</id>

    This will be the ID of the item you want to place at set coordinates.

    Code: [Select]
    <x>X COORD</x>
    <y>Y COORD</y>

    This will be the coordinate location of the item spawn.

    Code: [Select]
    <amount>1</amount>

    This will determine how many of a specific item to spawn at the set coordinates.

    Code: [Select]
    <respawnTime>60</respawnTime>

    This determines the length of time it takes for the item to respawn after it's been picked up.

    Changing the object Locations

    Go into your server folder. Once in your server folder, go into:

    Conf -- Server -- Locs

    Once in the Locs folder, find and open your GameObjectLoc.xml file.

    In this file, this basically determines what objects are spawned across the world.

    Code: [Select]
    <id>OBJECT ID</id>

    This will be the ID of the object you want to place.

    Code: [Select]
    <x>X COORD</x>
    <y>Y COORD</y>

    This will determine the location of the object on the world.

    Code: [Select]
    <direction>0</direction>

    This will determine the direction of the object.

    Please note: Anything changed in the .xml files will need to be compressed using either the Compression Tool or 7-zip. You will also need to edit files client side in order for the edits to work correctly.

    Below shows which files server side corresponds to which file client side.

    Code: [Select]
    ItemsDef.xml (server side)
    Items.rscd (client side)

    Code: [Select]
    GameObjectDef.xml (server side)
    Objects.rscd (client side)

    Code: [Select]
    NpcDef.xml (server side)
    NPCs.rscd (client side)

    Code: [Select]
    PrayerDef.xml (server side)
    Prayers.rscd (client side)

    Code: [Select]
    SpellDef.xml (server side)
    Spells.rscd (client side)

    Changing the death Location

    To change the death location, go into the Server folder. Once in the server folder, go to:

    Src -- Org -- Rscdaemon -- Server -- Model

    Once in the model folder, right click and open the Player.java file with any text editing program. Once open, find:

    Code: [Select]
    setLocation(Point.location(122, 647), true);

    Change the X and Y coordinates to the new spawn location.

    X coordinate = 122
    Y coordinate = 647

    Changing the welcome Messages (when logging in)

    Go into the Client folder. Once in the client folder, go to:

    Src -- Org -- Rscdaemon -- Client

    Once in the client folder, right click and open the mudclient.java file with any text editing programs, such as notepad or wordpad. Once open, search for:

    Code: [Select]
    gameGraphics.drawText("Welcome to [color=blue]RSCDaemon[/color] " + currentUser, 256, j, 4, 0xffff00);

    Change the blue highlighted text to your server name.

    Changing the welcome Messages (on the login screem)

    Go into the Client folder. Once in the client folder, go to:

    Src -- Org -- Rscdaemon -- Client

    Once in the client folder, right click and open the mudclient.java file with any text editing programs, such as notepad or wordpad. Once open, search for:

    Code: [Select]
    menuWelcome.drawText(256, 200 + i, "Welcome to RSCDaemon", 4, true);
    menuWelcome.drawText(256, 215 + i, "For support please visit www.rscdaemon.org", 4, true);

    Change the "RSCDaemon" text to your server name. Also, change the "www.rscdaemon.org" text to the URL of your servers forums/site.



    Adding information to the Client

    Go into the Client folder. Once in the client folder, go to:

    Src -- Org -- Rscdaemon -- Client

    Once in the client folder, right click and open the mudclient.java file with any text editing programs, such as notepad or wordpad. Once open, search for:

    Code: [Select]
    gameGraphics.drawText("System update in: " + j8 + ":" + i6, 256, windowHeight - 7, 1, 0xffff00);
    }

    Directly under that, add:

    Code: [Select]
    gameGraphics.drawString("@[email protected]: @whi@" + ourPlayer.name + "", 5, 130 + 10, 1, 0xffffff);
    gameGraphics.drawString("@[email protected] Level: @whi@" + ourPlayer.level + "", 5, 143 + 10, 1, 0xffffff);
    gameGraphics.drawString("@[email protected]: (X: @whi@" + (sectionX + areaX) + "@gre@, Y: @whi@" + (sectionY + areaY) + "@gre@)", 5, 156 + 10, 1, 0xffffff);
    gameGraphics.drawString("@[email protected]: @whi@" + playerStatCurrent[5] + "@gre@[email protected]@" + playerStatBase[5] + "", 5, 169 + 10, 1, 0xffffff);
    gameGraphics.drawString("@[email protected]: @whi@" + fatigue + "@gre@%", 5, 182 + 10, 1, 0xffffff);

    Here is what it will look like:



    Buying Commands

    Go into your server folder. Once in there, go to:

    Src -- Org -- Rscdaemon -- Server -- Packethandler -- Client

    Once in the client folder, right click and open the CommandHandler.java file with a text editing program.

    Here is how every command will start off:

    Code: [Select]
    if(cmd.equals("NAME OF COMMAND")) {

    Now, for the name of command, that will be the name that you want in order to execute the command. For example:

    Code: [Select]
    if(cmd.equals("pots")) {

    In order to execute that command, you would type:- ::pots

    Now if you want to check the players inventory when you execute the command for a specific item and amount, then use:

    Code: [Select]
    if(player.getInventory().countId(ITEM ID) < AMOUNT) {

    An example for you:

    Code: [Select]
    if(player.getInventory().countId(10) < 5000) {

    The code above will basically check if the player has 5,000 coins or more in his/her inventory.

    Now, if the player doesn't have the required amount, let's make it send a message telling them they don't have enough.

    Code: [Select]
    if(player.getInventory().countId(10) < 5000) {
    player.getActionSender().sendMessage("You need 5,000 coins to use this command!");
    }

    Now, once it's check if the player has the required amount of coins, you want to tell it to actually do something if they do have required amount. You also want it to remove the required item and the amount, so add:

    Code: [Select]
    else {
    player.getInventory().remove(ITEM ID, AMOUNT);

    Under that, you will basically write what you want it to do. For example: Adding a item to a persons inventory.

    Code: [Select]
    player.getInventory().add(new InvItem(ITEM ID, AMOUNT));

    Once you've told it what item and the amount to add, you need to actually send the inventory:

    Code: [Select]
    player.getActionSender().sendInventory();
    }

    After that, add the return:

    Code: [Select]
    return;

    So using the "pots" as an example, this would be used to buy a superset for 30,000 coins:

    Code: [Select]
    if(cmd.equals("pots")) {
    if(player.getInventory().countId(10) < 30000) {
    player.getActionSender().sendMessage("You need 30,000 coins to use this command");
    }
    else {
    player.getInventory().remove(10, 30000);
    player.getInventory().add(new InvItem(486, 1));
    player.getInventory().add(new InvItem(492, 1));
    player.getInventory().add(new InvItem(495, 1));
    player.getActionSender().sendMessage("The super set have been added to your inventory");
    player.getActionSender().sendInventory();
    }
    return;
    }

    Teleporting Commands

    To teleport a player by command, use:

    Code: [Select]
    player.teleport(X COORD, Y COORD, true);

    Clearing Bank Items

    Code: [Select]
    player.getBank().getItems().clear();

    For example:

    Code: [Select]
    if(cmd.equals("clearbank")) {
    player.getBank().getItems().clear();
    player.getActionSender().sendMessage("Your bank has been cleared.");
    return;
    }

    Sending Messages

    Code: [Select]
    player.getActionSender().sendMessage("MESSAGE GOES HERE");

    This can be useful when creating a command such as ::help

    Setting Stats

    When setting stats, you want to do a few things, not just set the stat. You need to:

    1. Set the current stat. This will be the number on the left side of the stat menu. Such as: "1/99".
    2. Set the max stat. This will be the number on the right side of the stat menu. Such as: "1/99".
    3. Set the EXP for the stat. This is so it will actually keep the stat when you log out.
    4. Send the stat.

    Code: [Select]
    player.setCurStat(STAT ID, LEVEL);

    Code: [Select]
    player.setMaxStat(STAT ID, LEVEL);

    Code: [Select]
    player.setEXP(STAT ID, AMOUNT);

    Code: [Select]
    player.getActionSender().sendStats();

    Code: [Select]
    player.getActionSender().sendStat(STAT ID);

    Making NPC Talk

    In order to make the NPCs talk, you must firstly have a java file containing the java for what you want the corresponding NPC to do. To find these, go into your server folder, and then:

    Src -- Org -- Rscdaemon -- Server -- Npchandler

    Once in the Npchandler folder, there will be the java files for your NPCs. This is where you will add any new NPC java files. Once you have the java file in there, make note of the name of that java file.

    Now, let's add that name in our npchandlers.xml file. Without this addition, the NPC will not work.

    Go into your server folder, and then:

    Conf -- Server

    Once in the server folder, right click and open NpcHandlers.xml.

    This is the basic code for adding an NPC in this file:

    Code: [Select]
    <NpcHandler>
    <ids>
    <int>NPC ID</int>
    </ids>
    <className>org.rscdaemon.server.npchandler.FILE NAME</className>
    </NpcHandler>

    Where I have wrote "file name", that MUST be the EXACT name of your java file in the npchandlers folder. For example: Adventurer.java (in the npchandlers folder) would be added by using:

    Code: [Select]
    <NpcHandler>
    <ids>
    <int>208</int>
    </ids>
    <className>org.rscdaemon.server.npchandler.Adventurer</className>
    </NpcHandler>

    Changing the max Level

    Go into your server folder, and then go in to:

    Src -- Org -- Rscdaemon -- Server -- Util

    Once in the util folder, right click the Formulae.java file and open it with notepad or wordpad.

    Find where it strings the experience.

    Code: [Select]
    public static final int[] experienceArray
    And look at:

    Code: [Select]
    public static final int[] eArray
    That is where you will add the experience for the new caps.

    Now once you've added the experience, look for:

    Code: [Select]
    public static int experienceToLevel(int exp) {
    for(int level = 0; level < 98; level++) {
    if(exp >= experienceArray[level]) {
    continue;
    }
    return (level + 1);
    }
    return 99;
    }

    Once you find that, you will need to edit the "98" and the "99". For example: If you have added experience to have a max cap of 115, change it to:

    Code: [Select]
    public static int experienceToLevel(int exp) {
    for(int level = 0; level < 114; level++) {
    if(exp >= experienceArray[level]) {
    continue;
    }
    return (level + 1);
    }
    return 115;
    }



    Changing the login Screen

    First of all, if you do not have one, download the sprite editor, packer and unpacker from the link provided above in the required programs section. Once you have downloaded and extracted, open up the folder and double click on the Run Editor.bat file.

    Once the editor has loaded, click on the load image button at the top and find the location of your new login image. Once you have found it, open it up into the editor.



    Once open, click the save sprite button at the top of the editor and save your image as 3150.spr into the sprites folder.



    Once you have saved your image as 3150.spr in the sprites folder, double click on the Run Packer.bat file. When it pops up, locate your Sprites.rscd file (client side) and open it up to pack it. If done correctly, you should see:



    After that, load your client with the new login screen ^^



    More coming soon.

    Regards,

    Yong-Min[/code][/code]
    « Last Edit: April 22, 2009, 07:16:28 AM by yong min »
    Skype : yongminkor
    Website : www.rsc-development.com
    Brutal Pkers 2018 Project

    Offlineadu

    • Member
    • ****
    • Posts: 1,078
    • Thanks: +0/-0
      • View Profile
    Re: [Tutorial] Editing EasyRSC
    « Reply #1 on: April 21, 2009, 03:05:13 PM »
    First Post!! Very nice.


    Offlineyong min

    • Member
    • ****
    • Posts: 1,788
    • Thanks: +0/-0
      • View Profile
    Re: [Tutorial] Editing EasyRSC
    « Reply #2 on: April 21, 2009, 03:06:41 PM »
    Thank you.

    Hopefully it will stop some of the self explanatory questions. I am going to be expanding this too. ^^
    Skype : yongminkor
    Website : www.rsc-development.com
    Brutal Pkers 2018 Project

    Offlinebengina

    • Member
    • ***
    • Posts: 233
    • Thanks: +0/-0
      • View Profile
    Re: [Tutorial] Editing EasyRSC
    « Reply #3 on: April 21, 2009, 03:26:48 PM »
    OMG I TRYED TO FIND THE NPCS BUT I CANT FIND THEM IVE LOOKED THROUGH EVERY FOLDER AND CANT FIND THEM!!!     HELP ME PLZZZZZZ!!!!!!

    Lol very nice yong!! :D

    Offlineyong min

    • Member
    • ****
    • Posts: 1,788
    • Thanks: +0/-0
      • View Profile
    Re: [Tutorial] Editing EasyRSC
    « Reply #4 on: April 21, 2009, 03:36:03 PM »
    [Updated] Added some information about commands.

    @bengina: Thanks ^^
    Skype : yongminkor
    Website : www.rsc-development.com
    Brutal Pkers 2018 Project

    Offlineyong min

    • Member
    • ****
    • Posts: 1,788
    • Thanks: +0/-0
      • View Profile
    Re: [Tutorial] Editing EasyRSC
    « Reply #5 on: April 21, 2009, 03:59:25 PM »
    [Updated] Added how to make an NPC talk.

    @pork: Ah, thanks ^^

    I did actually write it up twice, this was the second outcome. The first time, I spent hours writing it, and the darn thing crashed. Therefore I had to reboot and re-write everything again.

    Posted on: April 21, 2009, 03:10:03 pm
    [Updated] Added how to change the max stat.
    Skype : yongminkor
    Website : www.rsc-development.com
    Brutal Pkers 2018 Project

    Offlineyong min

    • Member
    • ****
    • Posts: 1,788
    • Thanks: +0/-0
      • View Profile
    Re: [Tutorial] Editing EasyRSC
    « Reply #6 on: April 21, 2009, 04:12:57 PM »
    ok, i'll read through this again to see if anything else to be added.

    oh, perhaps you should add a tutorial for custom client screens.

    STICKY THIS PLZ

    I have added that ^^

    Scroll up until you see:

    Adding information to the Client

    I will also be updating this topic frequently (when I have time) to try and keep the questions away :P
    « Last Edit: April 21, 2009, 04:14:39 PM by yong min »
    Skype : yongminkor
    Website : www.rsc-development.com
    Brutal Pkers 2018 Project

    Offlineyong min

    • Member
    • ****
    • Posts: 1,788
    • Thanks: +0/-0
      • View Profile
    Re: [Tutorial] Editing EasyRSC
    « Reply #7 on: April 21, 2009, 04:25:45 PM »
    no, i meant adding a custom client screen, as in, replacing the original rscd screen with another screen.

    You mean the login image?
    Skype : yongminkor
    Website : www.rsc-development.com
    Brutal Pkers 2018 Project

    Offline~ttfn2004~

    • Member
    • **
    • Posts: 8
    • Thanks: +0/-0
      • View Profile
    Re: [Tutorial] Editing EasyRSC
    « Reply #8 on: April 21, 2009, 05:03:40 PM »
    hey yong how do fix the client when it says ANT is set incorrectly or could not be located please set ant home ??? what do i do?

    OfflineKozy

    • Member
    • ****
    • Posts: 483
    • Thanks: +0/-0
      • View Profile
    Re: [Tutorial] Editing EasyRSC
    « Reply #9 on: April 21, 2009, 05:10:58 PM »
    Nice =p.
    Looks like alot of booooring typing went into this.

    -Kozy
    I'm hot.

    Offlineyong min

    • Member
    • ****
    • Posts: 1,788
    • Thanks: +0/-0
      • View Profile
    Re: [Tutorial] Editing EasyRSC
    « Reply #10 on: April 21, 2009, 05:12:30 PM »
    [Updated] Added how to change the login screen.

    @pork. Changing the loading screen isn't something i've done/or looked in to. As soon as I have looked in to it, i'll surely add it to the tutorial :)

    Posted on: April 21, 2009, 04:14:24 pm
    hey yong how do fix the client when it says ANT is set incorrectly or could not be located please set ant home ??? what do i do?

    Please follow this link: https://forum.moparscape.org/index.php/topic,312509.0.html/

    Posted on: April 21, 2009, 04:16:31 pm
    Nice =p.
    Looks like alot of booooring typing went into this.

    -Kozy

    Thank you, Kozy.

    It sure is boring to write all this up, however, it's more boring coming back daily to answer the same questions over and over :P
    Skype : yongminkor
    Website : www.rsc-development.com
    Brutal Pkers 2018 Project

    Offline~ttfn2004~

    • Member
    • **
    • Posts: 8
    • Thanks: +0/-0
      • View Profile
    Re: [Tutorial] Editing EasyRSC
    « Reply #11 on: April 21, 2009, 06:03:34 PM »
    yong now it say's bad command or file name bad command or file name now what do i do lol

    Offlineyong min

    • Member
    • ****
    • Posts: 1,788
    • Thanks: +0/-0
      • View Profile
    Re: [Tutorial] Editing EasyRSC
    « Reply #12 on: April 21, 2009, 06:12:14 PM »
    yong now it say's bad command or file name bad command or file name now what do i do lol

    Go look at the last 2 posts on the link provided:

    And you're not using a EasyRSC source, so let's stick to the topic -_-;
    Skype : yongminkor
    Website : www.rsc-development.com
    Brutal Pkers 2018 Project

    Offline~ttfn2004~

    • Member
    • **
    • Posts: 8
    • Thanks: +0/-0
      • View Profile
    Re: [Tutorial] Editing EasyRSC
    « Reply #13 on: April 21, 2009, 06:18:01 PM »
    im trying to get tons of servers to work i have iKeptAdvertisingThisSiteSoNowItsCensored source but this is about easyrsc v1.1 it keeps saying that and how do i run the server so i can be admin on it on iKeptAdvertisingThisSiteSoNowItsCensored source?

    Posted on: April 21, 2009, 05:26:04 pm
    also i have windows millenium edition because i cant use the vista to dl anything because my dad is gay can i still run it with windows ME?

    Offlineyong min

    • Member
    • ****
    • Posts: 1,788
    • Thanks: +0/-0
      • View Profile
    Re: [Tutorial] Editing EasyRSC
    « Reply #14 on: April 21, 2009, 07:04:02 PM »
    Length of the first post has exceeded. I will continue in this one. :P

    Changing the bone Experience

    Go into the server folder, and then go into:

    Src -- Org -- Rscdaemon -- Server -- Packethandler -- Client

    Once you're in the client folder, right click and open the InvActionHandler.java with a text editing program, such as notepad or wordpad.

    Once open, find:

    Code: [Select]
    case 20: // Bones

    To change the exp you get for normal bones and bat bones, change:

    Code: [Select]
    owner.incExp(5, 150, true, true);

    Change the "150" to what ever exp you want the normal/bat bones to give.

    To change the exp you get for big bones, change:

    Code: [Select]
    owner.incExp(5, 300, true, true);

    Change the "300" to what ever exp you want the big bones to give.

    To change the exp you get for dragon bones, change:

    Code: [Select]
    owner.incExp(5, 600, true, true);

    Change the "600" to what ever exp you want the dragon bones to give.

    Making new herbs Cleanable

    Looking through the item list, I came across a few herbs that was implemented into the game, however you couldn't clean them. Here are the herbs and their ID.

    Code: [Select]
    Muddy Torstol - 933
    Muddy Snake Weed - 815
    Muddy Sito Foil - 819
    Muddy Volencia Moss - 821
    Muddy Rogues Purse - 823
    Clean Torstol - 934
    Clean Snake Weed - 816
    Clean Sito Foil - 820
    Clean Volencia Moss - 822
    Clean Rogues Purse - 824

    Now, go into your server folder, and then go to:

    Conf -- Server -- Defs -- Extras

    When in the extras folder, right click and open the ItemUnIdentHerbDef.xml file with notepad or wordpad.

    Once open, add:

    Code: [Select]
    <entry>
    <int>933</int>
    <ItemUnIdentHerbDef>
    <requiredLvl>LEVEL TO CLEAN</requiredLvl>
    <newId>934</newId>
    <exp>EXP FROM CLEANING</exp>
    </ItemUnIdentHerbDef>
    </entry>
    <entry>
    <int>815</int>
    <ItemUnIdentHerbDef>
    <requiredLvl>LEVEL TO CLEAN</requiredLvl>
    <newId>816</newId>
    <exp>EXP FROM CLEANING</exp>
    </ItemUnIdentHerbDef>
    </entry>
    <entry>
    <int>819</int>
    <ItemUnIdentHerbDef>
    <requiredLvl>LEVEL TO CLEAN</requiredLvl>
    <newId>820</newId>
    <exp>EXP FROM CLEANING</exp>
    </ItemUnIdentHerbDef>
    </entry>
    <entry>
    <int>821</int>
    <ItemUnIdentHerbDef>
    <requiredLvl>LEVEL TO CLEAN</requiredLvl>
    <newId>822</newId>
    <exp>EXP FROM CLEANING</exp>
    </ItemUnIdentHerbDef>
    </entry>
    <entry>
    <int>823</int>
    <ItemUnIdentHerbDef>
    <requiredLvl>LEVEL TO CLEAN</requiredLvl>
    <newId>824</newId>
    <exp>EXP FROM CLEANING</exp>
    </ItemUnIdentHerbDef>
    </entry>

    All you have to do is change the required level and the amount of EXP you'll recieve from cleaning the herb.



    Half shield exchange with Klank

    This will make it so that you can exchange both half shields & 1,000,000 coins with Klank for a full dragon square shield.

    First of all, download the Klank.java file provided below:

    Klank.java FIXED:

    Once you've downloaded the java file, go into your server folder, and then into:

    Src -- Org -- Rscdaemon -- Server -- Npchandler

    Once in your npchandler folder, make sure this is where your Klank.java file is. Now you've placed the Klank.java file in your npchandler folder, go back into your server folder, and go to:

    Conf -- Server

    Once in the server folder, right click on the NpcHandlers.xml file and open it with wordpad or notepad. Once open, add:

    Code: [Select]
    <NpcHandler>
    <ids>
    <int>648</int>
    </ids>
    <className>org.rscdaemon.server.npchandler.Klank</className>
    </NpcHandler>

    Now, if you want to change the amount of coins it requires to perform this exchange, open up the Klank.java file, and find:

    Code: [Select]
    if(owner.getInventory().countId(10) < 1000000) {

    Change the "1000000" to any amount you want. Also change the message:

    Code: [Select]
    player.informOfNpcMessage(new ChatMessage(npc, "I can do it for a small fee of 1 million coins.", player));

    And also change the amount for it to remove:

    Code: [Select]
    owner.getInventory().remove(10, 1000000);

    Creating Herblaw Minigame/Quest

    This will make it so that you must complete a small minigame/quest in order to use the Herblaw skill.

    First of all, download the Kaqemeex.java file provided below:

    Kaqemeex.java:

    Once you've downloaded the java file, go into your server folder, and then into:

    Src -- Org -- Rscdaemon -- Server -- Npchandler

    Once in your npchandler folder, make sure this is where your Kaqemeex.java file is. Now you've placed the Kaqemeex.java file in your npchandler folder, go back into your server folder, and go to:

    Conf -- Server

    Once in the server folder, right click on the NpcHandlers.xml file and open it with wordpad or notepad. Once open, add:

    Code: [Select]
    <NpcHandler>
    <ids>
    <int>204</int>
    </ids>
    <className>org.rscdaemon.server.npchandler.Kaqemeex</className>
    </NpcHandler>

    Now you've done that, go into your server folder, and then into:

    Conf -- Server -- Defs -- Extras

    Once in the extras folder, right click and open the ItemUnIdentHerbDef.xml file with notepad or wordpad.

    Once open, find:

    Code: [Select]
    <entry>
    <int>165</int>
    <ItemUnIdentHerbDef>
    <requiredLvl>1</requiredLvl>
    <newId>444</newId>
    <exp>60</exp>
    </ItemUnIdentHerbDef>
    </entry>

    And replace with:

    Code: [Select]
    <entry>
    <int>165</int>
    <ItemUnIdentHerbDef>
    <requiredLvl>3</requiredLvl>
    <newId>444</newId>
    <exp>60</exp>
    </ItemUnIdentHerbDef>
    </entry>







    And if you've already completed:



    Altering Woodcutting Experience

    Go into your server folder, then go into:

    Conf -- Server -- Defs -- Extras

    Once in the extras folder, right click and open the ObjectWoodcutting.xml file with notepad or wordpad.

    Code: [Select]
    <entry>
    <int>0</int>
    <ObjectWoodcuttingDef>
    <requiredLvl>1</requiredLvl>
    <logId>14</logId>
    <exp>750</exp>
    <fell>100</fell>
    <respawnTime>30</respawnTime>
    </ObjectWoodcuttingDef>
    </entry>

    The "<int>" is the object ID of the tree. The other stuff is rather self explanatory. The "<fell>" will determine if the tree will disappear and go to a stump or not.

    Altering Firemaking Experience

    Go into your server folder, then go into:

    Conf -- Server -- Defs -- Extras

    Once in the extras folder, right click and open the FiremakingDef.xml file with notepad or wordpad.

    Code: [Select]
    <entry>
    <int>14</int>
    <FiremakingDef>
    <level>1</level>
    <exp>750</exp>
    <length>90</length>
    </FiremakingDef>
    </entry>

    The "<int>" is the log ID that you want to burn. The length is how long the fire will burn for. The level is what level is required to burn that log, and the exp is how much experience you will recieve from lighting it.

    Changing Adventurer Locations

    Go into your server folder, and then into:

    Src -- Org -- Rscdaemon -- Server -- Npchandler

    Once in npchandler, right click and open Adventurer.java with notepad or wordpad.

    Find:

    Code: [Select]
    private static final String[] destinationNames = {

    Under that is where you will add the name of the teleport, such as:

    Code: [Select]
    private static final String[] destinationNames = {
    "OPTION 1", "OPTION 2", "OPTION 3", "OPTION 4"
    };

    Now find:

    Code: [Select]
    private static final Point[] destinationCoords = {

    Under there is where you will add the coordinates to teleport to.

    Such as:

    Code: [Select]
    private static final Point[] destinationCoords = {
    Point.location(X, Y), Point.location(X, Y), Point.location(X, Y), Point.location(X, Y)
    };

    More coming soon.

    Regards,

    Yong-Min
    « Last Edit: April 25, 2009, 09:25:18 AM by yong min »
    Skype : yongminkor
    Website : www.rsc-development.com
    Brutal Pkers 2018 Project

    Offlineyong min

    • Member
    • ****
    • Posts: 1,788
    • Thanks: +0/-0
      • View Profile
    Re: [Tutorial] Editing EasyRSC
    « Reply #15 on: April 21, 2009, 07:26:19 PM »
    keep up the good work, yongy! :P

    STICKY THIS PLZ

    I will surely be keeping up to this, adding things that may be useful :P
    Skype : yongminkor
    Website : www.rsc-development.com
    Brutal Pkers 2018 Project

    Offline~ttfn2004~

    • Member
    • **
    • Posts: 8
    • Thanks: +0/-0
      • View Profile
    Re: [Tutorial] Editing EasyRSC
    « Reply #16 on: April 21, 2009, 07:37:45 PM »
    hey yong you never answered my question lol it was that if i can run iKeptAdvertisingThisSiteSoNowItsCensored source with windows ME i can get the client to run but it says sorry unable to connect check your internet setting even though i have the server running what do i have to do?

    Offlinebengina

    • Member
    • ***
    • Posts: 233
    • Thanks: +0/-0
      • View Profile
    Re: [Tutorial] Editing EasyRSC
    « Reply #17 on: April 21, 2009, 08:31:28 PM »
    hey yong you never answered my question lol it was that if i can run iKeptAdvertisingThisSiteSoNowItsCensored source with windows ME i can get the client to run but it says sorry unable to connect check your internet setting even though i have the server running what do i have to do?

    use this
    https://forum.moparscape.org/search/;advanced

    :D

    OfflineKozy

    • Member
    • ****
    • Posts: 483
    • Thanks: +0/-0
      • View Profile
    Re: [Tutorial] Editing EasyRSC
    « Reply #18 on: April 21, 2009, 08:50:58 PM »
    Yong r gud Nub =p.

    Just wondering, why would you do EasyRSC, I would have it as Divine, for more gud pk serv's.

    -Kozy
    I'm hot.

    OfflineKozy

    • Member
    • ****
    • Posts: 483
    • Thanks: +0/-0
      • View Profile
    Re: [Tutorial] Editing EasyRSC
    « Reply #19 on: April 21, 2009, 09:20:29 PM »
    Ahh, I r stuipedz.

    -Kozy
    I'm hot.

     

    Copyright © 2017 MoparScape. All rights reserved.
    Powered by SMFPacks SEO Pro Mod |
    SimplePortal 2.3.5 © 2008-2012, SimplePortal