RuneScape Classic > RSC Server Development / Discussion
[Tutorial] Editing EasyRSC
<<< (3/81) >>>
yong min:
[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
--- Quote from: ~ttfn2004~ 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?

--- End quote ---

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

Posted on: April 21, 2009, 04:16:31 pm
--- Quote from: Kozy on April 21, 2009, 05:10:58 PM ---Nice =p.
Looks like alot of booooring typing went into this.

-Kozy

--- End quote ---

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
~ttfn2004~:
yong now it say's bad command or file name bad command or file name now what do i do lol
yong min:

--- Quote from: ~ttfn2004~ 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

--- End quote ---

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 -_-;
~ttfn2004~:
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 pmalso 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?
yong min:
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: ---case 20: // Bones

--- End code ---

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


--- Code: ---owner.incExp(5, 150, true, true);

--- End code ---

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: ---owner.incExp(5, 300, true, true);

--- End code ---

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: ---owner.incExp(5, 600, true, true);

--- End code ---

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: ---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

--- End code ---

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: ---<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>

--- End code ---

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: --- <NpcHandler>
<ids>
<int>648</int>
</ids>
<className>org.rscdaemon.server.npchandler.Klank</className>
</NpcHandler>

--- End code ---

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: ---if(owner.getInventory().countId(10) < 1000000) {

--- End code ---

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


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

--- End code ---

And also change the amount for it to remove:


--- Code: ---owner.getInventory().remove(10, 1000000);

--- End code ---

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: --- <NpcHandler>
<ids>
<int>204</int>
</ids>
<className>org.rscdaemon.server.npchandler.Kaqemeex</className>
</NpcHandler>

--- End code ---

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: ---<entry>
<int>165</int>
<ItemUnIdentHerbDef>
<requiredLvl>1</requiredLvl>
<newId>444</newId>
<exp>60</exp>
</ItemUnIdentHerbDef>
</entry>

--- End code ---

And replace with:


--- Code: ---<entry>
<int>165</int>
<ItemUnIdentHerbDef>
<requiredLvl>3</requiredLvl>
<newId>444</newId>
<exp>60</exp>
</ItemUnIdentHerbDef>
</entry>

--- End code ---







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: ---<entry>
<int>0</int>
<ObjectWoodcuttingDef>
<requiredLvl>1</requiredLvl>
<logId>14</logId>
<exp>750</exp>
<fell>100</fell>
<respawnTime>30</respawnTime>
</ObjectWoodcuttingDef>
</entry>

--- End code ---

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: ---<entry>
<int>14</int>
<FiremakingDef>
<level>1</level>
<exp>750</exp>
<length>90</length>
</FiremakingDef>
</entry>

--- End code ---

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: ---private static final String[] destinationNames = {

--- End code ---

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


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

--- End code ---

Now find:


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

--- End code ---

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

Such as:


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

--- End code ---

More coming soon.

Regards,

Yong-Min
Navigation
Message Index
Next page
Previous page

Go to full version
Powered by SMFPacks SEO Pro Mod |