Posted October 24, 20168 yr 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: 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, 20205 yr by Mathy
October 24, 20168 yr comment_5698 nice little tut for those wishing to have custom items on their server/clients.
October 24, 20168 yr Author comment_5702 4 hours ago, leclerc said: nice little tut for those wishing to have custom items on their server/clients. Thanks Leclerc
October 24, 20168 yr 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
October 24, 20168 yr comment_5716 Is there a better server i should be using rather then deathlypvpz?
October 24, 20168 yr 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!
October 24, 20168 yr Author comment_5721 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
October 24, 20168 yr 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
October 24, 20168 yr comment_5723 there are no problems / errors in eclipse only when i compile using the .bat
October 24, 20168 yr Author comment_5731 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
Create an account or sign in to comment