Jump to content

Featured Replies

Posted
  • Popular Post
comment_5695

Hey guys,

 

So I saw some people that needed help adding customs to their RSPS so here I am.

 

1) You should have an int (the item's info) and 2 .dat files (those are the models for your item, the drop model and the wear model)

2) Add these two models in your "Raw" folder in your cache:

 

c17d384a04d0417db7251f5d59b9144f.png

Now go to your Client folder.

3) Add the int in your itemdef.java or itemdef_2.java or anything like that. That file is located in you Client folder. Add the int somewhere in the middle of other ints, not at the beginning

96f7fb68f1cb4415b6d1f8abca324385.png

THIS IS AN INT EXAMPLE:


if(i == #) {
	itemdef.name = "##";
	itemdef.description = "###";
	itemdef.modelID = ####; 
	itemdef.anInt165 = #####; 
	itemdef.anInt200 = #####; 
	itemdef.modelZoom = 2100;
	itemdef.modelRotation1 = 336;
	itemdef.modelRotation2 = 336;
	itemdef.modelOffset1 = 1;
	itemdef.modelOffset2 = 17;
	itemdef.groundActions = new String[5]; 
	itemdef.groundActions[2] = "Take"; 
	itemdef.itemActions = new String[5]; 
	itemdef.itemActions[1] = "Wear";
}

Here:

# = The item id when you want to spawn it (eg. ::item 995 1)

## = The item's name

### = The item's description when you right click it

#### = THE DROP MODEL ID

##### = THE WEAR MODEL ID

Those are the only things you will need to change for now unless you know what you're doing.

 

4) Now some owners are smart and they change what the int looks like, for example Dreamscape's ints. You will need to convert them so they fit your client. Once again, if you don't know what you're doing, look for help, it shouldn't take long to convert.

 

5) Compile your client if you're not using Eclipse, which you should ;) 

 

6) Run your client and spawn the item you added using what you put in as # in your int.

 

 

If that doesn't work, comment what's not working.

 

Thanks for reading :)

 

Mathy

Edited by Mathy

  • Replies 103
  • Views 17.4k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

comment_5709

Did that exactly using eclipse, tried running but deathly pvpz doesnt have a run server for eclipse so i have to compile and run using .bats, and i get a bunch of these compiling Javafiles\ItemDef_2.java:2495: error: class, interface, or enum expected
        itemdef.maleModel = 80489;
        ^
Javafiles\ItemDef_2.java:2496: error: class, interface, or enum expected
        itemdef.femaleModel = 80534;
        ^
100 errors

  • Author
comment_5719
2 hours ago, 0117be said:

Did that exactly using eclipse, tried running but deathly pvpz doesnt have a run server for eclipse so i have to compile and run using .bats, and i get a bunch of these compiling Javafiles\ItemDef_2.java:2495: error: class, interface, or enum expected
        itemdef.maleModel = 80489;
        ^
Javafiles\ItemDef_2.java:2496: error: class, interface, or enum expected
        itemdef.femaleModel = 80534;
        ^
100 errors

Use Eclipse!

comment_5722

 but deathly pvpz doesnt have a run server for eclipse so i have to compile and run using .bats

what i am saying is i did everything through eclipse and had no error but the server im usign cant be ran through eclipse therefore i have to use .bats

Create an account or sign in to comment