Models for PI itemDef.java NOT LOADING CORRECTLY

I was adding a slayer helm, and this is the code for the class8, but I have itemDef.java. I was wondering if anybody was able to convert this code so i can use it, i don’t know much about preloading models. :confused:

if(i == 13263) { class8.aString170 = "Slayer helmet"; class8.aStringArray189 = new String[5]; class8.aStringArray189[1] = "Wear"; class8.anInt174 = 34411; class8.anInt165 = 6775; class8.anInt188 = -1; class8.aBoolean176 = false; class8.anInt198 = 1743; class8.anInt181 = 789; class8.anInt155 = 650; class8.anInt200 = 14112; class8.anInt164 = -1; class8.anInt169 = -4; class8.anInt194 = -3; class8.anInt179 = -1; class8.anInt190 = 69; class8.aByteArray178 = "It's a Slayer helmet.".getBytes(); }

FOUND A SOURCE, AFTER CONVERTING CLASS8 TO ITEMDEF I GOT THIS. IS THIS CORRECT?

case 13263: itemDef.actions = new String[5]; itemDef.actions[1] = "Wield"; itemDef.modelID = 34411; itemDef.modelZoom = 810; itemDef.modelRotation1 = 69; itemDef.modelRotation2 = 1743; itemDef.modelOffset1 = 0; itemDef.modelOffset2 = 0; itemDef.maleEquip1 = 6775; //male wield model itemDef.femaleEquip1 = 14112; //femArmModel itemDef.name = "Slayer helmet"; itemDef.description = "Slayer full helm for slayer.".getBytes();//examine. break;

This is what happened when i loaded the model -.- HELP PLEASE!

models are wrong

Your code looks fine.

You forgot to put the new models into your cache, though.

34411, 6775, 14112, are the model ids you need to place into your cache.