All you need to know about servers!
HomeHome  ­PortalPortal  ­CalendarCalendar  ­FAQFAQ  ­SearchSearch  ­MemberlistMemberlist  ­UsergroupsUsergroups  ­RegisterRegister  ­Log inLog in  
Share | 
 

 Runescape 2 Private Server: Code/guide 1 - Creating a wilderness training zone.

View previous topic View next topic Go down 

Did you like this guide?
Yes
100%
 100% [ 3 ]
no?
0%
 0% [ 0 ]
Didnt work!
0%
 0% [ 0 ]
Total Votes : 3
 

AuthorMessage
Skillcape 09
Site Admin
Site Admin


Posts: 14
Join date: 2009-02-08

PostSubject: Runescape 2 Private Server: Code/guide 1 - Creating a wilderness training zone.   Mon Feb 09, 2009 5:34 pm

Purpose: To make a cool training area in the wild.

Difficulty: 1-3

Classes Modified:Client.java, shop.cfg, autospawn.cfg, npchandler, item2.java, shop.cfg

Assumed Knowledge: Copy/paste, basic knowledge of cases, and how to search.

REQUIREMENTS: Make sure that your server can use herblore, mining, woodcutting, theiving, and prayer. You must also have fedexer's global objects code.

Other This is my first tutorial, so please give me comments, I hope everyone likes (I used pimpscape/phonescape as server base)

Step one

Open up client.java, search for case 409, if you don't have it refer to 1a just below, if you do, replace it with this:

Code:
case 409:
case 10638:
if(actionTimer == 0) {
sendMessage("You start praying..");
addSkillXP((7000*playerLevel[5]), 5);
addItem(4832, 1);
setAnimation(1979);
actionTimer = 15;
sendMessage("The gods hear you and reward you!");


note: I did not make this code, just make sure its there, then change the 7000, to any exp you wish for a player to get when prayer at the altar

1a. if you don't have it, search for

Code:
case 2643:


add it after that.

Step two

Search for

Code:
public void OBJECTS()


(still in client.java)
you should see something like this:

Code:
Addaobject(3255,3431,2213,2,10,0);// something


after the last one of those add this

Code:
Addaobject(3151,3673,2213,-3,10,0);// Bank booth wild
                Addaobject(3151,3674,2213,-3,10,0);// Bank booth wild
                Addaobject(3151,3675,2213,-3,10,0);// Bank booth wild
                Addaobject(3151,3676,2213,-3,10,0);// Bank booth wild
                Addaobject(3151,3677,2213,-3,10,0);// Bank booth wild
                Addaobject(3151,3678,2213,-3,10,0);// Bank booth wild
        Addaobject(3157,3666,409,0,10,0);// Prayer Altar = EXP
        Addaobject(3139,3675,2106,0,10,0);// Rune Rocks
        Addaobject(3142,3671,2106,0,10,0);// Rune Rocks
        Addaobject(3139,3678,2106,0,10,0);// Rune Rocks
        Addaobject(3146,3667,2106,0,10,0);// Rune Rocks
        Addaobject(3146,3673,2105,0,10,0);// Addy rocks
        Addaobject(3145,3676,2105,0,10,0);// Addy rocks
        Addaobject(3143,3679,2105,0,10,0);// Addy rocks
        Addaobject(3141,3677,2105,0,10,0);// Addy rocks
        Addaobject(3139,3678,2105,0,10,0);// Addy rocks
        Addaobject(3143,3667,2103,0,10,0);// Mith Rocks
        Addaobject(3141,3667,2103,0,10,0);// Mith Rocks
        Addaobject(3143,3664,2103,0,10,0);// Mith Rocks
        Addaobject(3146,3669,2103,0,10,0);// Mith Rocks
        Addaobject(3148,3672,2103,0,10,0);// Mith Rocks
        Addaobject(3140,3671,2096,0,10,0);// Coal
        Addaobject(3145,3678,2096,0,10,0);// Coal
        Addaobject(3145,3675,2096,0,10,0);// Coal
        Addaobject(3145,3673,2096,0,10,0);// Coal
        Addaobject(3145,3671,2096,0,10,0);// Coal
        Addaobject(3142,3673,2096,0,10,0);// Coal
        Addaobject(3143,3676,2096,0,10,0);// Coal
        Addaobject(3144,3675,2096,0,10,0);// Coal
        Addaobject(3143,3673,2096,0,10,0);// Coal
        Addaobject(3143,3674,2096,0,10,0);// Coal
        Addaobject(3166,3673,1306,0,10,0);// Magic Tree
        Addaobject(3171,3662,1306,0,10,0);// Magic Tree
        Addaobject(3179,3669,1306,0,10,0);// Magic Tree
        Addaobject(3179,3679,1306,0,10,0);// Magic Tree
        Addaobject(3151,3684,2562,0,10,0);// Gem Stall
        Addaobject(3155,3673,2562,0,10,0);// Portal 1
        Addaobject(3157,3673,2467,0,10,0);// Portal 2
        Addaobject(3159,3673,2562,0,10,0);// Portal 3
        Addaobject(3159,3666,859,0,10,0);// Skull on post
        Addaobject(3156,3666,859,0,10,0);// skull on post


REMEMBER PORTAL 1 2 3

Step three

Open up autospawn.cfg



at the bottom add this:
Code:
//Wild training camp//
spawn = 557    3171    3664    0    3171    3664    3171    3664    1    Herblore Shop
spawn = 542    3179    3681    0    3179    3681    3179    3681    1    Wildy Rogue Shop
spawn = 559    3149    3668    0    3149    3668    3149    3668    1    Mining shop
spawn = 1615    3158    3678    0    3158    3678    3158    3678    2    Abyssal Demon - 87
spawn = 1615    3172    3686    0    3172    3686    3172    3686    2    Abyssal Demon - 88
spawn = 1615    3161    3683    0    3161    3683    3161    3683    2    Abyssal Demon - 89
spawn = 1615    3177    3665    0    3047    10343    3047    10343    2    Abyssal Demon - 90
spawn = 1615    3175    3660    0    3046    10341    3046    10341    2    Abyssal Demon - 91


Step four

Open up shops.cfg
add these shops:

Code:
shop = 19    Mining_Shop                        2    2    1265    100    1267    100    1269    100    1273    100    1271    100    1275    1    5013    100   
shop = 17    Herb_Shop                    2    2    257    100    251    100    231    100    255    100    199    100    249    100    233    100    233    100    227    1000
shop = 27    Wilderness_Rogue_shop              2    2    5553    10    5554    10    5555    10    5556    10    5557    10    1712    100


Step 6

Heres the final step. This step will add drops to the abyssal demons

FIRST

open up NPChandler.java

search for Abyssal, if you do not have it already add this:

Code:
}
if(npcs[NPCID].npcType == 1615) {
ItemHandler.addItem(Item2.randomAbyssal(), npcs[NPCID].absX, npcs[NPCID].absY, 1, GetNpcKiller(NPCID), false);
}


NEXt open up item2.java, search for this

public static int abyssal

if you don't have it, then add it (go down more)

if you do have it, delete it.

So now you shouldn't have it.

Add this in place of it:

Code:
public static int abyssal[] = {995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995
,995,995,995,995,995,995,995,995,995
,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995,995
,995,995,995,995,995,995,995,995,995,995,995,995,3140,3140,3140
,3140,4131,4131,4131,4131,4131,4131,4131,4131,4151,4151,4151,4151,4151,4151,4151
,4151,4151,4151,4151,4151,4151,4151,4151,4151,4151,4151,4151,
4151,4151,4151,4151,4151,4151,4151,4151,4151,4151,4151,4151,4151,4088,4088,4088,
4088,4088,4088,4088,4088,4088,4088,4088,4088,4088};

    public static int randomAbyssal()
    {
        return abyssal[(int)(Math.random()*abyssal.length)];
    }
Back to top Go down
View user profile http://ultimate-rsps.2morpg.net
caution
Global mod!
Global mod!


Posts: 1
Join date: 2009-02-10
Age: 13
Location: hollywood,fl

PostSubject: Re: Runescape 2 Private Server: Code/guide 1 - Creating a wilderness training zone.   Tue Feb 10, 2009 11:28 pm

im still confsed king
Back to top Go down
View user profile
Skillcape 09
Site Admin
Site Admin


Posts: 14
Join date: 2009-02-08

PostSubject: Re: Runescape 2 Private Server: Code/guide 1 - Creating a wilderness training zone.   Wed Feb 11, 2009 11:26 am

Lol when you make a server you will know :S
Back to top Go down
View user profile http://ultimate-rsps.2morpg.net
 

Runescape 2 Private Server: Code/guide 1 - Creating a wilderness training zone.

View previous topic View next topic Back to top 
Page 1 of 1

Permissions of this forum:You cannot reply to topics in this forum
Ultimate RSPS :: Beginers :: Codes-