Jump to content

Featured Replies

Posted
comment_50780

Hello I need help with adding costum items on my rsps (317).

 

I have tried adding "Admin godsword" to the server but it is showing as different item: 

 

http://prntscr.com/rw6zki

 

The costum pack:

if(i == ####){ //Replace #### with desired item id
            class8.aStringArray189 = new String[5];
            class8.aStringArray189[1] = "Wear";
            class8.anIntArray156 = new int[1];
            class8.anIntArray160 = new int[1];
            class8.anInt174 = 5000; //item look
            class8.anInt181 = 1957;
            class8.anInt190 = 498;
            class8.anInt198 = 484;
            class8.anInt204 = 0;
            class8.anInt169 = -1;
            class8.anInt194 = -1;
            class8.anInt165 = 5001;
            class8.anInt200 = 5001;
            class8.anInt175 = -1;
            class8.anInt197 = -1;
            class8.aString170 = "Admin Godsword";
            class8.aByteArray178 = "A Godsword used for the punishment of bad influences on the server.".getBytes();
        }

And this is how I put it in eclipse under itemdef.java:

case 11111:
                            itemDef.actions = new String[5];
                            itemDef.actions[1] = "Wear";
                            itemDef.originalModelColors = new int[1];
                            itemDef.modifiedModelColors = new int[1];
                            itemDef.modelID = 5000;
                            itemDef.modelZoom = 1957;
                            itemDef.modelRotation1 = 498;
                            itemDef.modelRotation2 = 484;
                            itemDef.anInt204 = 0;
                            itemDef.modelOffset1 = -1;
                            itemDef.modelOffset2 = -1;
                            itemDef.maleEquip1 = 5001;
                            itemDef.femaleEquip1 = 5001;
                            itemDef.anInt175 = -1;
                            itemDef.anInt197 = -1;
                            itemDef.name = "Admin Godsword";
                            itemDef.description = "A Godsword used for the punishment of bad influences on the server.".getBytes();
                        break;

 

also I tried adding model ID ingame and it give me this:

 

http://prntscr.com/rw728s

 

 

Thank you for help!

 

Edited by Bananasplit

Create an account or sign in to comment