oops not in my cache! i mean where do i put that in the coding?
|
I'm trying to get this rainbow partyhat to be equippable but i don't know where to add this in my cache. Can anyone help me? Thanks!
case 16428:
itemDef.modelid = 9001;
itemDef.name = "Rainbow Partyhat";
itemDef.description = "Rainbow Partyhat.";
itemDef.modelZoom = 440;
itemDef.modelRotationX = 1845;
itemDef.modelRotationY = 121;
itemDef.modelOffset1 = 0;
itemDef.modelOffset2 = 1;
itemDef.anInt165 = 9000;
itemDef.anInt200 = 9002;
itemDef.groundActions = new String[5];
itemDef.groundActions[2] = "Take";
itemDef.itemActions = new String[5];
itemDef.itemActions[1] = "Wear";
break;
oops not in my cache! i mean where do i put that in the coding?
The code you posted goes into ItemDef.java (Client), you should see other code just like it around there. If you don't you should see a return statement that return an ItemDef object, in which case you would just use some form of a statement before the return so that its possible to make adjustments like you are. Hope this helped.
cant find it . Thanks for the info though
Quit Coding Now if you dont evem know this..
It should be in itemdef.java if you check a bit in there you will notice some other items in it also. Just add it the same way how it is now. What Jason told you is the way to do it. Maybe you overlooked something.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |