Tfi 4 life
Posts : 2 Money : 4 Rep : 0 Join date : 2009-12-13
| Subject: How to add a item to an RSPS Sun Dec 13, 2009 7:58 pm | |
| Ok im going to show you how to add models to your RSPS, Im going to use owners cape for this TUT. STEP 1 - Go to the models folder which looks like this. Drag your models into there. STEP 2 - Go to class8.java, Should look like this Get your ints (mine is for owners cape like i sed earlyer.) They should be like this. - Code:
-
if(i == 13679) { class8.aStringArray189 = new String[5]; class8.aStringArray189[1] = "Wear"; class8.anInt174 = 14129; //Inv & Ground class8.anInt181 = 2000; //Zoom class8.anInt190 = 572; class8.anInt198 = 0; class8.anInt204 = 0; class8.anInt169 = 0; class8.anInt194 = 1; class8.anInt165 = 14130; //Male class8.anInt200 = 14130; //Female class8.anInt175 = -1; class8.anInt197 = -1; class8.anInt199 = -1;//noteable class8.aString170 = "Owner cape"; class8.aByteArray178 = "Its an owner cape made by Lakey".getBytes(); } Ill get a code from jcscape v4 client's folder to show you how to put it, This is the top of the models list in Jcscape's class8.java folder, - Code:
-
if(i == 14539) { class8.aStringArray189 = new String[5]; class8.aStringArray189[1] = "Wield"; class8.anIntArray156 = new int[6]; class8.anIntArray160 = new int[6]; class8.anIntArray156[0] = 22168; class8.anIntArray160[0] = -21846; class8.anIntArray156[1] = 8070; class8.anIntArray160[1] = -24771; class8.anIntArray156[2] = 24082; class8.anIntArray160[2] = -24046; class8.anIntArray156[3] = 22156; class8.anIntArray160[3] = -21876; class8.anIntArray156[4] = 920; class8.anIntArray160[4] = -25788; class8.anIntArray156[5] = 912; class8.anIntArray160[5] = -27983; class8.anInt174 = 10119; class8.anInt169 = -1; class8.anInt181 = 1827; class8.anInt190 = 444; class8.anInt198 = 1259; class8.anInt194 = -1; class8.anInt204 = 2047; class8.anInt165 = 10120; class8.anInt200 = 10121; class8.anInt164 = -1; class8.anInt188 = -1; class8.aBoolean176 = false; class8.aString170 = "Black ele' legs"; class8.aByteArray178 = "A well made elegant bottom.".getBytes(); } <------------------------------ NOTE: You after put it after the '}' sign where i have made an arrow on the bottom like this <-------- it should look like this in all - Code:
-
if(i == 14539) { class8.aStringArray189 = new String[5]; class8.aStringArray189[1] = "Wield"; class8.anIntArray156 = new int[6]; class8.anIntArray160 = new int[6]; class8.anIntArray156[0] = 22168; class8.anIntArray160[0] = -21846; class8.anIntArray156[1] = 8070; class8.anIntArray160[1] = -24771; class8.anIntArray156[2] = 24082; class8.anIntArray160[2] = -24046; class8.anIntArray156[3] = 22156; class8.anIntArray160[3] = -21876; class8.anIntArray156[4] = 920; class8.anIntArray160[4] = -25788; class8.anIntArray156[5] = 912; class8.anIntArray160[5] = -27983; class8.anInt174 = 10119; class8.anInt169 = -1; class8.anInt181 = 1827; class8.anInt190 = 444; class8.anInt198 = 1259; class8.anInt194 = -1; class8.anInt204 = 2047; class8.anInt165 = 10120; class8.anInt200 = 10121; class8.anInt164 = -1; class8.anInt188 = -1; class8.aBoolean176 = false; class8.aString170 = "Black ele' legs"; class8.aByteArray178 = "A well made elegant bottom.".getBytes(); } if(i == 13679) { class8.aStringArray189 = new String[5]; class8.aStringArray189[1] = "Wear"; class8.anInt174 = 14129; //Inv & Ground class8.anInt181 = 2000; //Zoom class8.anInt190 = 572; class8.anInt198 = 0; class8.anInt204 = 0; class8.anInt169 = 0; class8.anInt194 = 1; class8.anInt165 = 14130; //Male class8.anInt200 = 14130; //Female class8.anInt175 = -1; class8.anInt197 = -1; class8.anInt199 = -1;//noteable class8.aString170 = "Owner cape"; class8.aByteArray178 = "Its an owner cape made by Lakey".getBytes(); } STEP 3 - Go to your source folder and find your item.cfg folder and put this into it - Code:
-
item = 13679 Owner_Cape Its_an_owner_cape_made_by_Lakey 750 750 100 200 200 200 200 200 50 50 50 50 50 300 200 These are easy to make and i will tell you how they work... The 'item = 13964' stands for the item number and it needs to corrospong with the class8.java int you put in on step 2. The 'Owner_cape' is the name it comes up with in the shops when you press value make sure in the item.cfg folder and spaces are shown by a _ that is why it is writen as Owner_cape The 'Cape_Fit_For_An_Owner' bit is the examine information it should corrospond with class8.java in the client folder I am not sure what the '750 750 100' is but it doesn't matter. After them first 3 numbers it is the thing which changes the stats given for this item so if you put every number to 500 it would add 500 stats on to every stat which would make it a good cape STEP 4 - Open up your item.java in the source folder and it is laid out a little like this - Code:
-
// a collection of item methods import java.io.File; import java.io.FileInputStream; import java.io.IOException;
public class Item {
public static int amulets[] = {15119,15120,4035,6577, 10519, 10413, 11204, 11205, 1120611146, 11147, 11148, 11149, 11150, 11151, 11152, 11141, 6857, 6859, 6861, 6863, 1724, 1718, 6585, 86, 774, 87, 295, 421, 552, 589, 1478, 1692, 1694, 1696, 1698, 1700, 1702, 1704, 1706, 1708, 1710, 1712, 1725, 1727, 1729, 1731, 4021, 4081, 4250, 4677, 6040, 6041, 6208, 11274, 11275, 11276, 11273, 11941 }; public static int arrows[] = { 11774, 11775, 11776, 11777, 11778, 11779, 78, 598, 877, 878, 879, 880, 881, 882, 883, 884, 885, 886, 887, 888, 889, 890, 891, 892, 893, 942, 2532, 2533, 2534, 2535, 2536, 2537, 2538, 2539, 2540, 2541, 2866, 4160, 4172, 4173, 4174, 4175, 4740, 5616, 5617, 5618, 5619, 5620, 5621, 5622, 5623, 5624, 5625, 5626, 5627, 6061, 6062 }; public static int body[] = {16041,15089,15043,16037,16040,9698,17000,9000,16010,16007,11323,2571,577,2896,2906,2916,2926,2936,2520, 638 , 640,642, 430, 10300, 11154, 11471, 10625, 10628, 10930, 10933, 10935, 10937, 10939, 10941, 10927, 11998, 11997, 11281, 10222, 11268, 10408, 11977, 11975, 11198, 11199, 11200, 11173, 11175, 11177, 11179, 11181, 11183, 11185, 11187, 11171, 11169, 11162, 11158, 11143, 11138, 11134, 5032, 5028, 6065, 1844, 5034, 6788, 7134, 7128, 7110, 7122, 6750, 6615, 6617, 5575, 7592, 6129, 6322, 6139, 6133, 129, 6916, 6654, 7390, 7392, 7362, 7364, 7399, 7374, 7376, 7372, 7370, 1035, 540, 5553, 4757, 1833, 6388, 6384, 2501, 2499, 4111, 4101, 4091, 6186, 6184, 6180, 3058, 4509, 4504, 4069, 4728, 4736, 4712, 6107, 2661, 3140, 1101, 1103, 1105, 1107, 1109, 1111, 1113, 1115, 1117, 1119, 1121, 1123, 1125, 1127, 1129, 1131, 1133, 1135, 2499, 2503, 2583, 2591, 2599, 2607, 2615, 2623, 2653, 2669, 3481, 4712, 4720, 4728, 4749, 4892, 4893, 4894, 4895, 4916, 4917, 4918, 4919, 4964, 4965, 4966, 4967, 6107, 6133, 6322, 426, 7633, 7642, 7661, 7660, 7667, 7669, 7684, 7689, 7698, 3387, 7695, 544, 546, 75, 13665, 7608, 13654, 14517 }; public static int boots[] = {15084,15122,2755,3393, 10627, 10630, 11269, 10411, 11981, 11979, 7159, 7114, 6619, 6666, 7596, 6920, 6061, 6106, 88, 89, 626, 628, 630, 632, 634, 1061, 1837, 1846, 2577, 2579, 2894, 2904, 2914, 2924, 2934, 3061, 3105, 3107, 3791, 4097, 4107, 4117, 4119, 4121, 4123, 4125, 4127, 4129, 4131, 4310, 5064, 5345, 5557, 6069, 6106, 6143, 6145, 6147, 6328, 7664, 7666, 7700, }; // Few item types for equipping public static int capes[] = { 17171,17172,13677,13678,13679,16655,18000,18001,15118,7777,2753,2677,2680,2683,2686,2689,2692,2695,2698,2701,2704,2710,2713,2716,2719,2722,2725,2728,2731,2734,2737,10943, 10944, 10945, 10946, 10865, 10866, 11371, 11372, 10412, 10704, 10705, 10707, 10708, 10710, 10711, 10713, 10714, 10716, 10717, 10719, 10720, 10722, 10723, 10725, 10726, 10728, 10729, 10731, 10732, 10734, 10735, 10737, 10738, 10740, 10741, 10743, 10744, 10746, 10747, 10749, 10750, 10752, 10753, 10755, 10756, 10758, 10759, 10761, 10762, 10764, 10765, 10767, 10768, 10770, 11192, 11193, 11194, 7535, 6111, 6570, 6568, 1007, 1019, 1021, 1023, 1027, 1029, 1031, 1052, 2412, 2413, 2414, 4304, 4315, 4317, 4319, 4321, 4323, 4325, 4327, 4329, 4331, 4333, 4335, 4337, 4339, 4341, 4343, 4345, 4347, 4349, 4351, 4353, 4355, 4357, 4359, 4361, 4363, 4365, 4367, 4369, 4371, 4373, 4375, 4377, 4379, 4381, 4383, 4385, 4387, 4389, 4391, 4393, 4395, 4397, 4399, 4401, 4403, 4405, 4407, 4409, 4411, 4413, 4514, 4516, 6070, 6568, 6570, 3777, 3790, 3783, 2413, 3789, 3781, 3763, 3765, 3787, 3785, 4304, 3779, 3759,3761, 762, 7623, 7626, 7630, 7632, 7634, 7636, 7638, 7640, 7648, 7628, 750, 7653, 7655, 7650, 7657, 7672, 7674, 7676, 7678, 7680, 7682, 7685, 2743, 2742, 2740, 8703, 2707, 9004, 12345, 13966, 13965, 13964}; That is a little cutoff from my source Basically this puts the item into the weapon,cape,shield,helm,arrow,ring,boots,legs,torso and gloves slot So for me im looking for the cape section and that is why i cut off this speciffically - Code:
-
public static int capes[] = { 17171,17172,13677,13678,13679,16655,18000,18001,15118,7777,2753,2677,2680,2683,2686,2689,2692,2695,2698,2701,2704,2710,2713,2716,2719,2722,2725,2728,2731,2734,2737,10943, 10944, 10945, 10946, 10865, 10866, 11371, 11372, 10412, 10704, 10705, 10707, 10708, 10710, 10711, 10713, 10714, 10716, 10717, 10719, 10720, 10722, 10723, 10725, 10726, 10728, 10729, 10731, 10732, 10734, 10735, 10737, 10738, 10740, 10741, 10743, 10744, 10746, 10747, 10749, 10750, 10752, 10753, 10755, 10756, 10758, 10759, 10761, 10762, 10764, 10765, 10767, 10768, 10770, 11192, 11193, 11194, 7535, 6111, 6570, 6568, 1007, 1019, 1021, 1023, 1027, 1029, 1031, 1052, 2412, 2413, 2414, 4304, 4315, 4317, 4319, 4321, 4323, 4325, 4327, 4329, 4331, 4333, 4335, 4337, 4339, 4341, 4343, 4345, 4347, 4349, 4351, 4353, 4355, 4357, 4359, 4361, 4363, 4365, 4367, 4369, 4371, 4373, 4375, 4377, 4379, 4381, 4383, 4385, 4387, 4389, 4391, 4393, 4395, 4397, 4399, 4401, 4403, 4405, 4407, 4409, 4411, 4413, 4514, 4516, 6070, 6568, 6570, 3777, 3790, 3783, 2413, 3789, 3781, 3763, 3765, 3787, 3785, 4304, 3779, 3759,3761, 762, 7623, 7626, 7630, 7632, 7634, 7636, 7638, 7640, 7648, 7628, 750, 7653, 7655, 7650, 7657, 7672, 7674, 7676, 7678, 7680, 7682, 7685, 2743, 2742, 2740, 8703, 2707, 9004, 12345, 13966, 13965, 13964}; Every number in there is an item so you have to remember the item number you put in the item.cfg and the class8.java which for me is 13679 so after i added it; it would look like this, - Code:
-
public static int capes[] = { ---------->13679<----------,17171,17172,13677,13678,13679,16655,18000,18001,15118,7777,2753,2677,2680,2683,2686,2689,2692,2695,2698,2701,2704,2710,2713,2716,2719,2722,2725,2728,2731,2734,2737,10943, 10944, 10945, 10946, 10865, 10866, 11371, 11372, 10412, 10704, 10705, 10707, 10708, 10710, 10711, 10713, 10714, 10716, 10717, 10719, 10720, 10722, 10723, 10725, 10726, 10728, 10729, 10731, 10732, 10734, 10735, 10737, 10738, 10740, 10741, 10743, 10744, 10746, 10747, 10749, 10750, 10752, 10753, 10755, 10756, 10758, 10759, 10761, 10762, 10764, 10765, 10767, 10768, 10770, 11192, 11193, 11194, 7535, 6111, 6570, 6568, 1007, 1019, 1021, 1023, 1027, 1029, 1031, 1052, 2412, 2413, 2414, 4304, 4315, 4317, 4319, 4321, 4323, 4325, 4327, 4329, 4331, 4333, 4335, 4337, 4339, 4341, 4343, 4345, 4347, 4349, 4351, 4353, 4355, 4357, 4359, 4361, 4363, 4365, 4367, 4369, 4371, 4373, 4375, 4377, 4379, 4381, 4383, 4385, 4387, 4389, 4391, 4393, 4395, 4397, 4399, 4401, 4403, 4405, 4407, 4409, 4411, 4413, 4514, 4516, 6070, 6568, 6570, 3777, 3790, 3783, 2413, 3789, 3781, 3763, 3765, 3787, 3785, 4304, 3779, 3759,3761, 762, 7623, 7626, 7630, 7632, 7634, 7636, 7638, 7640, 7648, 7628, 750, 7653, 7655, 7650, 7657, 7672, 7674, 7676, 7678, 7680, 7682, 7685, 2743, 2742, 2740, 8703, 2707, 9004, 12345, 13966, 13965, 13964}; That is it but obviously you don't add the arrows that is just to show to you what i did lol. STEP 5 - Compile your source and client and enjoy! | |
|