Mathy 344 Posted October 24, 2016 Popular Post Report Share Posted October 24, 2016 (edited) 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: 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 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 May 5, 2020 by Mathy 8 Link to comment Share on other sites More sharing options...
leclerc 112 Posted October 24, 2016 Report Share Posted October 24, 2016 nice little tut for those wishing to have custom items on their server/clients. Link to comment Share on other sites More sharing options...
Mathy 344 Posted October 24, 2016 Author Report Share Posted October 24, 2016 4 hours ago, leclerc said: nice little tut for those wishing to have custom items on their server/clients. Thanks Leclerc Link to comment Share on other sites More sharing options...
Daniel0576 12 Posted October 24, 2016 Report Share Posted October 24, 2016 Great tut Link to comment Share on other sites More sharing options...
0117be 66 Posted October 24, 2016 Report Share Posted October 24, 2016 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 Link to comment Share on other sites More sharing options...
Satdown 4 Posted October 24, 2016 Report Share Posted October 24, 2016 Thanks for sharing! Link to comment Share on other sites More sharing options...
0117be 66 Posted October 24, 2016 Report Share Posted October 24, 2016 Is there a better server i should be using rather then deathlypvpz? Link to comment Share on other sites More sharing options...
0117be 66 Posted October 24, 2016 Report Share Posted October 24, 2016 or am i just doing something wrong Link to comment Share on other sites More sharing options...
Mathy 344 Posted October 24, 2016 Author Report Share Posted October 24, 2016 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! Link to comment Share on other sites More sharing options...
0117be 66 Posted October 24, 2016 Report Share Posted October 24, 2016 6 minutes ago, Mathy said: Did that exactly using eclipse Link to comment Share on other sites More sharing options...
Mathy 344 Posted October 24, 2016 Author Report Share Posted October 24, 2016 1 minute ago, 0117be said: Then click on the Problems' tab and see what's the problem is and do what it tells you to do Link to comment Share on other sites More sharing options...
0117be 66 Posted October 24, 2016 Report Share Posted October 24, 2016 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 Link to comment Share on other sites More sharing options...
0117be 66 Posted October 24, 2016 Report Share Posted October 24, 2016 there are no problems / errors in eclipse only when i compile using the .bat Link to comment Share on other sites More sharing options...
0117be 66 Posted October 24, 2016 Report Share Posted October 24, 2016 Can i ask what server/client i should use? Link to comment Share on other sites More sharing options...
Mathy 344 Posted October 24, 2016 Author Report Share Posted October 24, 2016 Just now, Mathy said: Then click on the Problems' tab and see what's the problem is and do what it tells you to do Deathlypvpz can be ran on Eclipse, did it before Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now