Thread: Smithing data enum

Page 1 of 4 123 ... LastLast
Results 1 to 10 of 34
  1. #1 Smithing data enum 
    Rune-Server Affiliate

    Join Date
    Oct 2010
    Posts
    2,843
    Thanks given
    1,190
    Thanks received
    1,586
    Rep Power
    5000
    Wanted to add Smithing to my framework and I couldn't find any data anywhere. I downloaded almost 10 sources and they ALL had this shit in them:

    Code:
    public static void showBronzeInterface(Player player) {
    		String fiveb = GetForBars(2349, 5, player);
    		String threeb = GetForBars(2349, 3, player);
    		String twob = GetForBars(2349, 2, player);
    		String oneb = GetForBars(2349, 1, player);
    		player.getPacketSender().sendString(1112, fiveb + "5 Bars" + fiveb);
    		player.getPacketSender().sendString(1109, threeb + "3 Bars" + threeb);
    		player.getPacketSender().sendString(1110, threeb + "3 Bars" + threeb);
    		player.getPacketSender().sendString(1118, threeb + "3 Bars" + threeb);
    		player.getPacketSender().sendString(1111, threeb + "3 Bars" + threeb);
    		player.getPacketSender().sendString(1095, threeb + "3 Bars" + threeb);
    		player.getPacketSender().sendString(1115, threeb + "3 Bars" + threeb);
    		player.getPacketSender().sendString(1090, threeb + "3 Bars" + threeb);
    		player.getPacketSender().sendString(1113, twob + "2 Bars" + twob);
    		player.getPacketSender().sendString(1116, twob + "2 Bars" + twob);
    		player.getPacketSender().sendString(1114, twob + "2 Bars" + twob);
    		player.getPacketSender().sendString(1089, twob + "2 Bars" + twob);
    		player.getPacketSender().sendString(8428, twob + "2 Bars" + twob);
    		player.getPacketSender().sendString(1124, oneb + "1 Bar" + oneb);
    		player.getPacketSender().sendString(1125, oneb + "1 Bar" + oneb);
    		player.getPacketSender().sendString(1126, oneb + "1 Bar" + oneb);
    		player.getPacketSender().sendString(1127, oneb + "1 Bar" + oneb);
    		player.getPacketSender().sendString(1128, oneb + "1 Bar" + oneb);
    		player.getPacketSender().sendString(1129, oneb + "1 Bar" + oneb);
    		player.getPacketSender().sendString(1130, oneb + "1 Bar" + oneb);
    		player.getPacketSender().sendString(1131, oneb + "1 Bar" + oneb);
    		player.getPacketSender().sendString(13357, oneb + "1 Bar" + oneb);
    		player.getPacketSender().sendString(11459, oneb + "1 Bar" + oneb);
    		player.getPacketSender().sendString(1101, GetForlvl(18, player) + "Plate Body" + GetForlvl(18, player));
    		player.getPacketSender().sendString(1099, GetForlvl(16, player) + "Plate Legs" + GetForlvl(16, player));
    		player.getPacketSender().sendString(1100, GetForlvl(16, player) + "Plate Skirt" + GetForlvl(16, player));
    		player.getPacketSender().sendString(1088, GetForlvl(14, player) + "2 Hand Sword" + GetForlvl(14, player));
    		player.getPacketSender().sendString(1105, GetForlvl(12, player) + "Kite Shield" + GetForlvl(12, player));
    		player.getPacketSender().sendString(1098, GetForlvl(11, player) + "Chain Body" + GetForlvl(11, player));
    		player.getPacketSender().sendString(1092, GetForlvl(10, player) + "Battle Axe" + GetForlvl(10, player));
    		player.getPacketSender().sendString(1083, GetForlvl(9, player) + "Warhammer" + GetForlvl(9, player));
    		player.getPacketSender().sendString(1104, GetForlvl(8, player) + "Square Shield" + GetForlvl(8, player));
    		player.getPacketSender().sendString(1103, GetForlvl(7, player) + "Full Helm" + GetForlvl(7, player));
    		player.getPacketSender().sendString(1106, GetForlvl(7, player) + "Throwing Knives" + GetForlvl(7, player));
    		player.getPacketSender().sendString(1086, GetForlvl(6, player) + "Long Sword" + GetForlvl(6, player));
    		player.getPacketSender().sendString(1087, GetForlvl(5, player) + "Scimitar" + GetForlvl(5, player));
    		player.getPacketSender().sendString(1108, GetForlvl(5, player) + "Arrowtips" + GetForlvl(5, player));
    		player.getPacketSender().sendString(1085, GetForlvl(4, player) + "Sword" + GetForlvl(4, player));
    		player.getPacketSender().sendString(1107, GetForlvl(4, player) + "Bolts" + GetForlvl(4, player));
    		player.getPacketSender().sendString(13358, GetForlvl(4, player) + "Nails" + GetForlvl(4, player));
    		player.getPacketSender().sendString(1102, GetForlvl(3, player) + "Medium Helm" + GetForlvl(3, player));
    		player.getPacketSender().sendString(1093, GetForlvl(2, player) + "Mace" + GetForlvl(2, player));
    		player.getPacketSender().sendString(1094, GetForlvl(1, player) + "Dagger" + GetForlvl(1, player));
    		player.getPacketSender().sendString(1091, GetForlvl(1, player) + "Hatchet" + GetForlvl(1, player));
    		player.getPacketSender().sendString(8429, GetForlvl(8, player) + "Claws" + GetForlvl(8, player));
    		player.getPacketSender().sendSmithingData(1205,0,1119,1);
    		player.getPacketSender().sendSmithingData(1351,0,1120,1);
    		player.getPacketSender().sendSmithingData(1103,0,1121,1);
    		player.getPacketSender().sendSmithingData(1139,0,1122,1);
    		player.getPacketSender().sendSmithingData(819,0,1123,10);
    		player.getPacketSender().sendSmithingData(1277,1,1119,1);
    		player.getPacketSender().sendSmithingData(1422,1,1120,1);
    		player.getPacketSender().sendSmithingData(1075,1,1121,1);
    		player.getPacketSender().sendSmithingData(1155,1,1122,1);
    		player.getPacketSender().sendSmithingData(39,1,1123,15);
    		player.getPacketSender().sendSmithingData(1321,2,1119,1);
    		player.getPacketSender().sendSmithingData(1337,2,1120,1);
    		player.getPacketSender().sendSmithingData(1087,2,1121,1);
    		player.getPacketSender().sendSmithingData(1173,2,1122,1);
    		player.getPacketSender().sendSmithingData(864,2,1123,5);
    		player.getPacketSender().sendSmithingData(1291,3,1119,1);
    		player.getPacketSender().sendSmithingData(1375,3,1120,1);
    		player.getPacketSender().sendSmithingData(1117,3,1121,1);
    		player.getPacketSender().sendSmithingData(1189,3,1122,1);
    		player.getPacketSender().sendSmithingData(1307,4,1119,1);
    		player.getPacketSender().sendSmithingData(4819,4,1122,15);
    		player.getPacketSender().sendSmithingData(3095,4,1120, 1);
    		player.getPacketSender().sendSmithingData(-1,3,1123, 1);
    		player.getPacketSender().sendString(1135, "");
    		player.getPacketSender().sendString(1134, "");
    		player.getPacketSender().sendString(11461, "");
    		player.getPacketSender().sendString(11459, "");
    		player.getPacketSender().sendString(1132, "");
    		player.getPacketSender().sendString(1096, "");
    		player.getPacketSender().sendInterface(994);
    	}
    
    	public static void makeIronInterface(Player player) {
    		String fiveb = GetForBars(2351, 5, player);
    		String threeb = GetForBars(2351, 3, player);
    		String twob = GetForBars(2351, 2, player);
    		String oneb = GetForBars(2351, 1, player);
    		player.getPacketSender().sendString(1112, fiveb+"5 Bars"+fiveb);
    		player.getPacketSender().sendString(1109, threeb+"3 Bars"+threeb);
    		player.getPacketSender().sendString(1110, threeb+"3 Bars"+threeb);
    		player.getPacketSender().sendString(1118, threeb+"3 Bars"+threeb);
    		player.getPacketSender().sendString(1111, threeb+"3 Bars"+threeb);
    		player.getPacketSender().sendString(1095, threeb+"3 Bars"+threeb);
    		player.getPacketSender().sendString(1115, threeb+"3 Bars"+threeb);
    		player.getPacketSender().sendString(1090, threeb+"3 Bars"+threeb);
    		player.getPacketSender().sendString(1113, twob+"2 Bars"+twob);
    		player.getPacketSender().sendString(1116, twob+"2 Bars"+twob);
    		player.getPacketSender().sendString(1114, twob+"2 Bars"+twob);
    		player.getPacketSender().sendString(1089, twob+"2 Bars"+twob);
    		player.getPacketSender().sendString(8428, twob+"2 Bars"+twob);
    		player.getPacketSender().sendString(1124, oneb+"1 Bar"+oneb);
    		player.getPacketSender().sendString(1125, oneb+"1 Bar"+oneb);
    		player.getPacketSender().sendString(1126, oneb+"1 Bar"+oneb);
    		player.getPacketSender().sendString(1127, oneb+"1 Bar"+oneb);
    		player.getPacketSender().sendString(1128, oneb+"1 Bar"+oneb);
    		player.getPacketSender().sendString(1129, oneb+"1 Bar"+oneb);
    		player.getPacketSender().sendString(1130, oneb+"1 Bar"+oneb);
    		player.getPacketSender().sendString(1131, oneb+"1 Bar"+oneb);
    		player.getPacketSender().sendString(13357, oneb+"1 Bar"+oneb);
    		player.getPacketSender().sendString(11459, oneb+"1 Bar"+oneb);
    		player.getPacketSender().sendString(1101, GetForlvl(33, player)+"Plate Body"+GetForlvl(18, player));
    		player.getPacketSender().sendString(1099, GetForlvl(31, player)+"Plate Legs"+GetForlvl(16, player));
    		player.getPacketSender().sendString(1100, GetForlvl(31, player)+"Plate Skirt"+GetForlvl(16, player));
    		sendString(player, (GetForlvl(29, player)+"2 Hand Sword"+GetForlvl(14, player)), 1088);
    		sendString(player, (GetForlvl(27, player)+"Kite Shield"+GetForlvl(12, player)), 1105);
    		sendString(player, (GetForlvl(26, player)+"Chain Body"+GetForlvl(11, player)), 1098);
    		sendString(player, (GetForlvl(26, player)+"Oil Lantern Frame"+GetForlvl(11, player)),11461);
    		sendString(player, (GetForlvl(25, player)+"Battle Axe"+GetForlvl(10, player)), 1092);
    		sendString(player, (GetForlvl(24, player)+"Warhammer"+GetForlvl(9, player)), 1083);
    		sendString(player, (GetForlvl(23, player)+"Square Shield"+GetForlvl(8, player)), 1104);
    		sendString(player, (GetForlvl(22, player)+"Full Helm"+GetForlvl(7, player)), 1103);
    		sendString(player, (GetForlvl(21, player)+"Throwing Knives"+GetForlvl(7, player)), 1106);
    		sendString(player, (GetForlvl(21, player)+"Long Sword"+GetForlvl(6, player)), 1086);
    		sendString(player, (GetForlvl(20, player)+"Scimitar"+GetForlvl(5, player)), 1087);
    		sendString(player, (GetForlvl(20, player)+"Arrowtips"+GetForlvl(5, player)), 1108);
    		sendString(player, (GetForlvl(19, player)+"Sword"+GetForlvl(4, player)), 1085);
    		sendString(player, (GetForlvl(19, player)+"Bolts"+GetForlvl(4, player)), 9140);
    		sendString(player, (GetForlvl(19, player)+"Nails"+GetForlvl(4, player)), 13358);
    		sendString(player, (GetForlvl(18, player)+"Medium Helm"+GetForlvl(3, player)), 1102);
    		sendString(player, (GetForlvl(17, player)+"Mace"+GetForlvl(2, player)), 1093);
    		sendString(player, (GetForlvl(15, player)+"Dagger"+GetForlvl(1, player)), 1094);
    		sendString(player, (GetForlvl(16, player)+"Axe"+GetForlvl(1, player)), 1091);
    		player.getPacketSender().sendSmithingData(1203,0,1119,1);
    		player.getPacketSender().sendSmithingData(1349,0,1120,1);
    		player.getPacketSender().sendSmithingData(1101,0,1121,1);
    		player.getPacketSender().sendSmithingData(1137,0,1122,1);
    		player.getPacketSender().sendSmithingData(9140,0,1123,10);
    		player.getPacketSender().sendSmithingData(1279,1,1119,1);
    		player.getPacketSender().sendSmithingData(1420,1,1120,1);
    		player.getPacketSender().sendSmithingData(1067,1,1121,1);
    		player.getPacketSender().sendSmithingData(1153,1,1122,1);
    		player.getPacketSender().sendSmithingData(40,1,1123,15);
    		player.getPacketSender().sendSmithingData(1323,2,1119,1);
    		player.getPacketSender().sendSmithingData(1335,2,1120,1);
    		player.getPacketSender().sendSmithingData(1081,2,1121,1);
    		player.getPacketSender().sendSmithingData(1175,2,1122,1);
    		player.getPacketSender().sendSmithingData(863,2,1123,5);
    		player.getPacketSender().sendSmithingData(1293,3,1119,1);
    		player.getPacketSender().sendSmithingData(1363,3,1120,1);
    		player.getPacketSender().sendSmithingData(1115,3,1121,1);
    		player.getPacketSender().sendSmithingData(1191,3,1122,1);
    		player.getPacketSender().sendSmithingData(1309,4,1119,1);
    		player.getPacketSender().sendSmithingData(4820,4,1122,15);
    		player.getPacketSender().sendSmithingData(4540,4,1121,1);
    		player.getPacketSender().sendSmithingData(3096,4,1120, 1);
    		player.getPacketSender().sendSmithingData(-1,3,1123, 1);
    		sendString(player, "",1135);
    		sendString(player, "",1134);
    		sendString(player, "",1132);
    		sendString(player, "",1096);
    		player.getPacketSender().sendInterface(994);
    	}
    
    	public static void makeSteelInterface(Player player) {
    		String fiveb = GetForBars(2353, 5, player);
    		String threeb = GetForBars(2353, 3, player);
    		String twob = GetForBars(2353, 2, player);
    		String oneb = GetForBars(2353, 1, player);
    		sendString(player, fiveb+"5 Bars"+fiveb, 1112);
    		sendString(player, threeb+"3 Bars"+threeb, 1109);
    		sendString(player, threeb+"3 Bars"+threeb, 1110);
    		sendString(player, threeb+"3 Bars"+threeb, 1118);
    		sendString(player, threeb+"3 Bars"+threeb, 1111);
    		sendString(player, threeb+"3 Bars"+threeb, 1095);
    		sendString(player, threeb+"3 Bars"+threeb, 1115);
    		sendString(player, threeb+"3 Bars"+threeb, 1090);
    		sendString(player, twob+"2 Bars"+twob, 1113);
    		sendString(player, twob+"2 Bars"+twob, 1116);
    		sendString(player, twob+"2 Bars"+twob, 1114);
    		sendString(player, twob+"2 Bars"+twob, 1089);
    		sendString(player, twob+"2 Bars"+twob, 8428);
    		sendString(player, oneb+"1 Bar"+oneb, 1124);
    		sendString(player, oneb+"1 Bar"+oneb, 1125);
    		sendString(player, oneb+"1 Bar"+oneb, 1126);
    		sendString(player, oneb+"1 Bar"+oneb, 1127);
    		sendString(player, oneb+"1 Bar"+oneb, 1128);
    		sendString(player, oneb+"1 Bar"+oneb, 1129);
    		sendString(player, oneb+"1 Bar"+oneb, 1130);
    		sendString(player, oneb+"1 Bar"+oneb, 1131);
    		sendString(player, oneb+"1 Bar"+oneb, 13357);
    		sendString(player, oneb+"1 Bar"+oneb,1132);
    		sendString(player, oneb+"1 Bar"+oneb,1135);
    		sendString(player, "", 11459);
    		sendString(player, GetForlvl(48, player)+"Plate Body"+GetForlvl(18, player), 1101);
    		sendString(player, GetForlvl(46, player)+"Plate Legs"+GetForlvl(16, player), 1099);
    		sendString(player, GetForlvl(46, player)+"Plate Skirt"+GetForlvl(16, player), 1100);
    		sendString(player, GetForlvl(44, player)+"2 Hand Sword"+GetForlvl(14, player), 1088);
    		sendString(player, GetForlvl(42, player)+"Kite Shield"+GetForlvl(12, player), 1105);
    		sendString(player, GetForlvl(41, player)+"Chain Body"+GetForlvl(11, player), 1098);
    		sendString(player, "",11461);
    		sendString(player, GetForlvl(40, player)+"Battle Axe"+GetForlvl(10, player), 1092);
    		sendString(player, GetForlvl(39, player)+"Warhammer"+GetForlvl(9, player), 1083);
    		sendString(player, GetForlvl(38, player)+"Square Shield"+GetForlvl(8, player), 1104);
    		sendString(player, GetForlvl(37, player)+"Full Helm"+GetForlvl(7, player), 1103);
    		sendString(player, GetForlvl(37, player)+"Throwing Knives"+GetForlvl(7, player), 1106);
    		sendString(player, GetForlvl(36, player)+"Long Sword"+GetForlvl(6, player), 1086);
    		sendString(player, GetForlvl(35, player)+"Scimitar"+GetForlvl(5, player), 1087);
    		sendString(player, GetForlvl(35, player)+"Arrowtips"+GetForlvl(5, player), 1108);
    		sendString(player, GetForlvl(34, player)+"Sword"+GetForlvl(4, player), 1085);
    		sendString(player, GetForlvl(34, player)+"Bolts"+GetForlvl(4, player), 9141);
    		sendString(player, GetForlvl(34, player)+"Nails"+GetForlvl(4, player), 13358);
    		sendString(player, GetForlvl(33, player)+"Medium Helm"+GetForlvl(3, player), 1102);
    		sendString(player, GetForlvl(32, player)+"Mace"+GetForlvl(2, player), 1093);
    		sendString(player, GetForlvl(30, player)+"Dagger"+GetForlvl(1, player), 1094);
    		sendString(player, GetForlvl(31, player)+"Axe"+GetForlvl(1, player), 1091);
    		sendString(player, GetForlvl(35, player)+"Cannon Ball"+GetForlvl(35, player),1096);
    		sendString(player, GetForlvl(36, player)+"Studs"+GetForlvl(36, player),1134);
    		player.getPacketSender().sendSmithingData(1207,0,1119,1);
    		player.getPacketSender().sendSmithingData(1353,0,1120,1);
    		player.getPacketSender().sendSmithingData(1105,0,1121,1);
    		player.getPacketSender().sendSmithingData(1141,0,1122,1);
    		player.getPacketSender().sendSmithingData(9141,0,1123,10);
    		player.getPacketSender().sendSmithingData(1281,1,1119,1);
    		player.getPacketSender().sendSmithingData(1424,1,1120,1);
    		player.getPacketSender().sendSmithingData(1069,1,1121,1);
    		player.getPacketSender().sendSmithingData(1157,1,1122,1);
    		player.getPacketSender().sendSmithingData(41,1,1123,15);
    		player.getPacketSender().sendSmithingData(1325,2,1119,1);
    		player.getPacketSender().sendSmithingData(1339,2,1120,1);
    		player.getPacketSender().sendSmithingData(1083,2,1121,1);
    		player.getPacketSender().sendSmithingData(1177,2,1122,1);
    		player.getPacketSender().sendSmithingData(865,2,1123,5);
    		player.getPacketSender().sendSmithingData(1295,3,1119,1);
    		player.getPacketSender().sendSmithingData(1365,3,1120,1);
    		player.getPacketSender().sendSmithingData(1119,3,1121,1);
    		player.getPacketSender().sendSmithingData(1193,3,1122,1); //sec lazoh //ok
    		player.getPacketSender().sendSmithingData(1311,4,1119,1);
    		player.getPacketSender().sendSmithingData(1539,4,1122,15);
    		player.getPacketSender().sendSmithingData(2,3,1123,40);
    		player.getPacketSender().sendSmithingData(2370,4,1123,1);
    		player.getPacketSender().sendSmithingData(3097,4,1120, 1);
    		player.getPacketSender().sendInterface(994);		
    	}
    
    	public static void makeMithInterface(Player player) {
    		String fiveb = GetForBars(2359, 5, player);
    		String threeb = GetForBars(2359, 3, player);
    		String twob = GetForBars(2359, 2, player);
    		String oneb = GetForBars(2359, 1, player);
    		sendString(player, fiveb+"5 Bars"+fiveb, 1112);
    		sendString(player, threeb+"3 Bars"+threeb, 1109);
    		sendString(player, threeb+"3 Bars"+threeb, 1110);
    		sendString(player, threeb+"3 Bars"+threeb, 1118);
    		sendString(player, threeb+"3 Bars"+threeb, 1111);
    		sendString(player, threeb+"3 Bars"+threeb, 1095);
    		sendString(player, threeb+"3 Bars"+threeb, 1115);
    		sendString(player, threeb+"3 Bars"+threeb, 1090);
    		sendString(player, twob+"2 Bars"+twob, 1113);
    		sendString(player, twob+"2 Bars"+twob, 1116);
    		sendString(player, twob+"2 Bars"+twob, 1114);
    		sendString(player, twob+"2 Bars"+twob, 1089);
    		sendString(player, twob+"2 Bars"+twob, 8428);
    		sendString(player, oneb+"1 Bar"+oneb, 1124);
    		sendString(player, oneb+"1 Bar"+oneb, 1125);
    		sendString(player, oneb+"1 Bar"+oneb, 1126);
    		sendString(player, oneb+"1 Bar"+oneb, 1127);
    		sendString(player, oneb+"1 Bar"+oneb, 1128);
    		sendString(player, oneb+"1 Bar"+oneb, 1129);
    		sendString(player, oneb+"1 Bar"+oneb, 1130);
    		sendString(player, oneb+"1 Bar"+oneb, 1131);
    		sendString(player, oneb+"1 Bar"+oneb, 13357);
    		sendString(player, oneb+"1 Bar"+oneb, 11459);
    		sendString(player, GetForlvl(68, player)+"Plate Body"+GetForlvl(18, player), 1101);
    		sendString(player, GetForlvl(66, player)+"Plate Legs"+GetForlvl(16, player), 1099);
    		sendString(player, GetForlvl(66, player)+"Plate Skirt"+GetForlvl(16, player), 1100);
    		sendString(player, GetForlvl(64, player)+"2 Hand Sword"+GetForlvl(14, player), 1088);
    		sendString(player, GetForlvl(62, player)+"Kite Shield"+GetForlvl(12, player), 1105);
    		sendString(player, GetForlvl(61, player)+"Chain Body"+GetForlvl(11, player), 1098);
    		sendString(player, GetForlvl(60, player)+"Battle Axe"+GetForlvl(10, player), 1092);
    		sendString(player, GetForlvl(59, player)+"Warhammer"+GetForlvl(9, player), 1083);
    		sendString(player, GetForlvl(58, player)+"Square Shield"+GetForlvl(8, player), 1104);
    		sendString(player, GetForlvl(57, player)+"Full Helm"+GetForlvl(7, player), 1103);
    		sendString(player, GetForlvl(57, player)+"Throwing Knives"+GetForlvl(7, player), 1106);
    		sendString(player, GetForlvl(56, player)+"Long Sword"+GetForlvl(6, player), 1086);
    		sendString(player, GetForlvl(55, player)+"Scimitar"+GetForlvl(5, player), 1087);
    		sendString(player, GetForlvl(55, player)+"Arrowtips"+GetForlvl(5, player), 1108);
    		sendString(player, GetForlvl(54, player)+"Sword"+GetForlvl(4, player), 1085);
    		sendString(player, GetForlvl(54, player)+"Bolts"+GetForlvl(4, player), 9142);
    		sendString(player, GetForlvl(54, player)+"Nails"+GetForlvl(4, player), 13358);
    		sendString(player, GetForlvl(53, player)+"Medium Helm"+GetForlvl(3, player), 1102);
    		sendString(player, GetForlvl(52, player)+"Mace"+GetForlvl(2, player), 1093);
    		sendString(player, GetForlvl(50, player)+"Dagger"+GetForlvl(1, player), 1094);
    		sendString(player, GetForlvl(51, player)+"Axe"+GetForlvl(1, player), 1091);
    		player.getPacketSender().sendSmithingData(1209,0,1119,1); //dagger
    		player.getPacketSender().sendSmithingData(1355,0,1120,1); //axe
    		player.getPacketSender().sendSmithingData(1109,0,1121,1); //chain body
    		player.getPacketSender().sendSmithingData(1143,0,1122,1); //med helm
    		player.getPacketSender().sendSmithingData(9142,0,1123,10); //Bolts
    		player.getPacketSender().sendSmithingData(1285,1,1119,1); //s-sword
    		player.getPacketSender().sendSmithingData(1428,1,1120,1); //mace
    		player.getPacketSender().sendSmithingData(1071,1,1121,1); //platelegs
    		player.getPacketSender().sendSmithingData(1159,1,1122,1); //full helm
    		player.getPacketSender().sendSmithingData(42,1,1123,15); //arrowtips
    		player.getPacketSender().sendSmithingData(1329,2,1119,1); //scimmy
    		player.getPacketSender().sendSmithingData(1343,2,1120,1); //warhammer
    		player.getPacketSender().sendSmithingData(1085,2,1121,1); //plateskirt
    		player.getPacketSender().sendSmithingData(1181,2,1122,1); //Sq. Shield
    		player.getPacketSender().sendSmithingData(866,2,1123,5); //throwing-knives
    		player.getPacketSender().sendSmithingData(1299,3,1119,1); //longsword
    		player.getPacketSender().sendSmithingData(1369,3,1120,1); //battleaxe
    		player.getPacketSender().sendSmithingData(1121,3,1121,1); //platebody
    		player.getPacketSender().sendSmithingData(1197,3,1122,1); //kiteshield
    		player.getPacketSender().sendSmithingData(1315,4,1119,1); //2h sword
    		player.getPacketSender().sendSmithingData(4822,4,1122,15); //nails
    		player.getPacketSender().sendSmithingData(3099,4,1120, 1);
    		player.getPacketSender().sendSmithingData(-1,3,1123, 1);
    		sendString(player, "",1135);
    		sendString(player, "",1134);
    		sendString(player, "",11461);
    		sendString(player, "",11459);
    		sendString(player, "",1132);
    		sendString(player, "",1096);
    		player.getPacketSender().sendInterface(994);
    	}
    
    	public static void makeAddyInterface(Player player) {
    		String fiveb = GetForBars(2361, 5, player);
    		String threeb = GetForBars(2361, 3, player);
    		String twob = GetForBars(2361, 2, player);
    		String oneb = GetForBars(2361, 1, player);
    		sendString(player, fiveb+"5 Bars"+fiveb, 1112);
    		sendString(player, threeb+"3 Bars"+threeb, 1109);
    		sendString(player, threeb+"3 Bars"+threeb, 1110);
    		sendString(player, threeb+"3 Bars"+threeb, 1118);
    		sendString(player, threeb+"3 Bars"+threeb, 1111);
    		sendString(player, threeb+"3 Bars"+threeb, 1095);
    		sendString(player, threeb+"3 Bars"+threeb, 1115);
    		sendString(player, threeb+"3 Bars"+threeb, 1090);
    		sendString(player, twob+"2 Bars"+twob, 1113);
    		sendString(player, twob+"2 Bars"+twob, 1116);
    		sendString(player, twob+"2 Bars"+twob, 1114);
    		sendString(player, twob+"2 Bars"+twob, 1089);
    		sendString(player, twob+"2 Bars"+twob, 8428);
    		sendString(player, oneb+"1 Bar"+oneb, 1124);
    		sendString(player, oneb+"1 Bar"+oneb, 1125);
    		sendString(player, oneb+"1 Bar"+oneb, 1126);
    		sendString(player, oneb+"1 Bar"+oneb, 1127);
    		sendString(player, oneb+"1 Bar"+oneb, 1128);
    		sendString(player, oneb+"1 Bar"+oneb, 1129);
    		sendString(player, oneb+"1 Bar"+oneb, 1130);
    		sendString(player, oneb+"1 Bar"+oneb, 1131);
    		sendString(player, oneb+"1 Bar"+oneb, 13357);
    		sendString(player, oneb+"1 Bar"+oneb, 11459);
    		sendString(player, GetForlvl(88, player)+"Plate Body"+GetForlvl(18, player), 1101);
    		sendString(player, GetForlvl(86, player)+"Plate Legs"+GetForlvl(16, player), 1099);
    		sendString(player, GetForlvl(86, player)+"Plate Skirt"+GetForlvl(16, player), 1100);
    		sendString(player, GetForlvl(84, player)+"2 Hand Sword"+GetForlvl(14, player), 1088);
    		sendString(player, GetForlvl(82, player)+"Kite Shield"+GetForlvl(12, player), 1105);
    		sendString(player, GetForlvl(81, player)+"Chain Body"+GetForlvl(11, player), 1098);
    		sendString(player, GetForlvl(80, player)+"Battle Axe"+GetForlvl(10, player), 1092);
    		sendString(player, GetForlvl(79, player)+"Warhammer"+GetForlvl(9, player), 1083);
    		sendString(player, GetForlvl(78, player)+"Square Shield"+GetForlvl(8, player), 1104);
    		sendString(player, GetForlvl(77, player)+"Full Helm"+GetForlvl(7, player), 1103);
    		sendString(player, GetForlvl(77, player)+"Throwing Knives"+GetForlvl(7, player), 1106);
    		sendString(player, GetForlvl(76, player)+"Long Sword"+GetForlvl(6, player), 1086);
    		sendString(player, GetForlvl(75, player)+"Scimitar"+GetForlvl(5, player), 1087);
    		sendString(player, GetForlvl(75, player)+"Arrowtips"+GetForlvl(5, player), 1108);
    		sendString(player, GetForlvl(74, player)+"Sword"+GetForlvl(4, player), 1085);
    		sendString(player, GetForlvl(74, player)+"Bolts"+GetForlvl(4, player), 9143);
    		sendString(player, GetForlvl(74, player)+"Nails"+GetForlvl(4, player), 13358);
    		sendString(player, GetForlvl(73, player)+"Medium Helm"+GetForlvl(3, player), 1102);
    		sendString(player, GetForlvl(72, player)+"Mace"+GetForlvl(2, player), 1093);
    		sendString(player, GetForlvl(70, player)+"Dagger"+GetForlvl(1, player), 1094);
    		sendString(player, GetForlvl(71, player)+"Axe"+GetForlvl(1, player), 1091);
    		player.getPacketSender().sendSmithingData(1211,0,1119,1); //dagger
    		player.getPacketSender().sendSmithingData(1357,0,1120,1); //axe
    		player.getPacketSender().sendSmithingData(1111,0,1121,1); //chain body
    		player.getPacketSender().sendSmithingData(1145,0,1122,1); //med helm
    		player.getPacketSender().sendSmithingData(9143,0,1123,10); //Bolts
    		player.getPacketSender().sendSmithingData(1287,1,1119,1); //s-sword
    		player.getPacketSender().sendSmithingData(1430,1,1120,1); //mace
    		player.getPacketSender().sendSmithingData(1073,1,1121,1); //platelegs
    		player.getPacketSender().sendSmithingData(1161,1,1122,1); //full helm
    		player.getPacketSender().sendSmithingData(43,1,1123,15); //arrowtips
    		player.getPacketSender().sendSmithingData(1331,2,1119,1); //scimmy
    		player.getPacketSender().sendSmithingData(1345,2,1120,1); //warhammer
    		player.getPacketSender().sendSmithingData(1091,2,1121,1); //plateskirt
    		player.getPacketSender().sendSmithingData(1183,2,1122,1); //Sq. Shield
    		player.getPacketSender().sendSmithingData(867,2,1123,5); //throwing-knives
    		player.getPacketSender().sendSmithingData(1301,3,1119,1); //longsword
    		player.getPacketSender().sendSmithingData(1371,3,1120,1); //battleaxe
    		player.getPacketSender().sendSmithingData(1123,3,1121,1); //platebody
    		player.getPacketSender().sendSmithingData(1199,3,1122,1); //kiteshield
    		player.getPacketSender().sendSmithingData(1317,4,1119,1); //2h sword
    		player.getPacketSender().sendSmithingData(4823,4,1122,15); //nails
    		player.getPacketSender().sendSmithingData(3100,4,1120, 1); // claws
    		player.getPacketSender().sendSmithingData(-1,3,1123, 1);
    		sendString(player, "",1135);
    		sendString(player, "",1134);
    		sendString(player, "",11461);
    		sendString(player, "",11459);
    		sendString(player, "",1132);
    		sendString(player, "",1096);
    		player.getPacketSender().sendInterface(994);		
    	}
    
    	public static void makeRuneInterface(Player player) {
    		String fiveb = GetForBars(2363, 5, player);
    		String threeb = GetForBars(2363, 3, player);
    		String twob = GetForBars(2363, 2, player);
    		String oneb = GetForBars(2363, 1, player);
    		sendString(player, fiveb+"5 Bars"+fiveb, 1112);
    		sendString(player, threeb+"3 Bars"+threeb, 1109);
    		sendString(player, threeb+"3 Bars"+threeb, 1110);
    		sendString(player, threeb+"3 Bars"+threeb, 1118);
    		sendString(player, threeb+"3 Bars"+threeb, 1111);
    		sendString(player, threeb+"3 Bars"+threeb, 1095);
    		sendString(player, threeb+"3 Bars"+threeb, 1115);
    		sendString(player, threeb+"3 Bars"+threeb, 1090);
    		sendString(player, twob+"2 Bars"+twob, 1113);
    		sendString(player, twob+"2 Bars"+twob, 1116);
    		sendString(player, twob+"2 Bars"+twob, 1114);
    		sendString(player, twob+"2 Bars"+twob, 1089);
    		sendString(player, twob+"2 Bars"+twob, 8428);
    		sendString(player, oneb+"1 Bar"+oneb, 1124);
    		sendString(player, oneb+"1 Bar"+oneb, 1125);
    		sendString(player, oneb+"1 Bar"+oneb, 1126);
    		sendString(player, oneb+"1 Bar"+oneb, 1127);
    		sendString(player, oneb+"1 Bar"+oneb, 1128);
    		sendString(player, oneb+"1 Bar"+oneb, 1129);
    		sendString(player, oneb+"1 Bar"+oneb, 1130);
    		sendString(player, oneb+"1 Bar"+oneb, 1131);
    		sendString(player, oneb+"1 Bar"+oneb, 13357);
    		sendString(player, oneb+"1 Bar"+oneb, 11459);
    		sendString(player, GetForlvl(88, player)+"Plate Body"+GetForlvl(18, player), 1101);
    		sendString(player, GetForlvl(99, player)+"Plate Legs"+GetForlvl(16, player), 1099);
    		sendString(player, GetForlvl(99, player)+"Plate Skirt"+GetForlvl(16, player), 1100);
    		sendString(player, GetForlvl(99, player)+"2 Hand Sword"+GetForlvl(14, player), 1088);
    		sendString(player, GetForlvl(97, player)+"Kite Shield"+GetForlvl(12, player), 1105);
    		sendString(player, GetForlvl(96, player)+"Chain Body"+GetForlvl(11, player), 1098);
    		sendString(player, GetForlvl(95, player)+"Battle Axe"+GetForlvl(10, player), 1092);
    		sendString(player, GetForlvl(94, player)+"Warhammer"+GetForlvl(9, player), 1083);
    		sendString(player, GetForlvl(93, player)+"Square Shield"+GetForlvl(8, player), 1104);
    		sendString(player, GetForlvl(92, player)+"Full Helm"+GetForlvl(7, player), 1103);
    		sendString(player, GetForlvl(92, player)+"Throwing Knives"+GetForlvl(7, player), 1106);
    		sendString(player, GetForlvl(91, player)+"Long Sword"+GetForlvl(6, player), 1086);
    		sendString(player, GetForlvl(90, player)+"Scimitar"+GetForlvl(5, player), 1087);
    		sendString(player, GetForlvl(90, player)+"Arrowtips"+GetForlvl(5, player), 1108);
    		sendString(player, GetForlvl(89, player)+"Sword"+GetForlvl(4, player), 1085);
    		sendString(player, GetForlvl(89, player)+"Bolts"+GetForlvl(4, player), 9144);
    		sendString(player, GetForlvl(89, player)+"Nails"+GetForlvl(4, player), 13358);
    		sendString(player, GetForlvl(88, player)+"Medium Helm"+GetForlvl(3, player), 1102);
    		sendString(player, GetForlvl(87, player)+"Mace"+GetForlvl(2, player), 1093);
    		sendString(player, GetForlvl(85, player)+"Dagger"+GetForlvl(1, player), 1094);
    		sendString(player, GetForlvl(86, player)+"Axe"+GetForlvl(1, player), 1091);
    		player.getPacketSender().sendSmithingData(1213,0,1119,1); //dagger
    		player.getPacketSender().sendSmithingData(1359,0,1120,1); //axe
    		player.getPacketSender().sendSmithingData(1113,0,1121,1); //chain body
    		player.getPacketSender().sendSmithingData(1147,0,1122,1); //med helm
    		player.getPacketSender().sendSmithingData(9144,0,1123,10); //Bolts
    		player.getPacketSender().sendSmithingData(1289,1,1119,1); //s-sword
    		player.getPacketSender().sendSmithingData(1432,1,1120,1); //mace
    		player.getPacketSender().sendSmithingData(1079,1,1121,1); //platelegs
    		player.getPacketSender().sendSmithingData(1163,1,1122,1); //full helm
    		player.getPacketSender().sendSmithingData(44,1,1123,15); //arrowtips
    		player.getPacketSender().sendSmithingData(1333,2,1119,1); //scimmy
    		player.getPacketSender().sendSmithingData(1347,2,1120,1); //warhammer
    		player.getPacketSender().sendSmithingData(1093,2,1121,1); //plateskirt
    		player.getPacketSender().sendSmithingData(1185,2,1122,1); //Sq. Shield
    		player.getPacketSender().sendSmithingData(868,2,1123,5); //throwing-knives
    		player.getPacketSender().sendSmithingData(1303,3,1119,1); //longsword
    		player.getPacketSender().sendSmithingData(1373,3,1120,1); //battleaxe
    		player.getPacketSender().sendSmithingData(1127,3,1121,1); //platebody
    		player.getPacketSender().sendSmithingData(1201,3,1122,1); //kiteshield
    		player.getPacketSender().sendSmithingData(1319,4,1119,1); //2h sword
    		player.getPacketSender().sendSmithingData(4824,4,1122,15); //nails
    		player.getPacketSender().sendSmithingData(-1,3,1123, 1);
    		player.getPacketSender().sendSmithingData(3101,4,1120, 1); // claws
    		sendString(player, "",1135);
    		sendString(player, "",1134);
    		sendString(player, "",11461);
    		sendString(player, "",11459);
    		sendString(player, "",1132);
    		sendString(player, "",1096);
    		player.getPacketSender().sendInterface(994);		
    	}
    
    	public static void sendString(Player player, String s, int i) {
    		player.getPacketSender().sendString(i, s);
    	}
    
    	private static String GetForlvl(int i, Player player) {
    		if (player.getSkillManager().getMaxLevel(Skill.SMITHING) >= i)
    			return "@[email protected]";
    
    		return "@[email protected]";
    	}
    
    	private static String GetForBars(int i, int j, Player player) {
    		if (player.getInventory().getAmount(i) >= j)
    			return "@[email protected]";
    		return "@[email protected]";
    	}
    
    	public static int getItemAmount(Item item) {
    		String name = item.getDefinition().getName().toLowerCase();
    		if(name.contains("cannon")) {
    			return 40;
    		} else if(name.contains("knife")) {
    			return 5;
    		} else if(name.contains("arrowtips") || name.contains("nails")) {
    			return 15;
    		} else if(name.contains("dart tip") || name.contains("bolts")) {
    			return 10;
    		}
    		return 1;
    	}
    
    	public static int getBarAmount(Item item) {
    		String name = item.getDefinition().getName().toLowerCase();
    		if(name.contains("scimitar") || name.contains("claws") || name.contains("longsword") || name.contains("sq shield") || name.contains("full helm")) {
    			return 2;
    		} else if(name.contains("2h sword") || name.contains("warhammer") || name.contains("battleaxe") || name.contains("chainbody") || name.contains("platelegs") || name.contains("plateskirt") || name.contains("kiteshield")) {
    			return 3;
    		} else if(name.contains("platebody")) {
    			return 5;
    		}
    		return 1;
    	}
    
    	public static int getData(Item item, String type) {
    		int xp = 1;
    		int reqLvl = 1;
    		@SuppressWarnings("unused")
    		int amount = getItemAmount(item);
    		switch(item.getId()) {
    		case 1205: //Bronze dagger
    			xp =150;
    			reqLvl = 1;
    			break;
    
    		case 1351: //Bronze Hatchet
    			xp = 190;
    			reqLvl = 1;
    			break;
    
    		case 1422: //Bronze Mace
    			xp = 190;
    			reqLvl = 2;
    			break;
    
    		case 1139: //Bronze Med Helm
    			xp = 190;
    			reqLvl = 3;
    			break;
    
    		case 9375: //Bronze Bolts
    			xp =150;
    			reqLvl = 3;
    			break;
    
    		case 1277: //Bronze Sword
    			xp = 190;
    			reqLvl = 4;
    			break;
    
    		case 4819: //Bronze nails
    			xp =190;
    			reqLvl = 4;
    			break;
    
    		case 1794: //Bronze Wire
    			xp = 190;
    			reqLvl = 4;
    			break;
    
    		case 819: //Bronze Dart Tips
    			xp = 190;
    			reqLvl = 4;
    			break;
    
    		case 39: //Bronze Arrowtips
    			xp =190;
    			reqLvl = 5;
    			break;
    
    		case 1321: //Bronze Scimitar
    			xp = 350;
    			reqLvl = 5;
    			break;
    
    		case 1265: //Bronze Pickaxe
    			xp =350;
    			reqLvl = 5;
    			break;
    
    		case 1291: //Bronze Long Sword
    			xp = 350;
    			reqLvl = 6;
    			break;
    
    		case 9420: //Bronze Limbs
    			xp = 350;
    			reqLvl =6;
    			break;
    
    		case 1155: //Bronze Full Helm
    			xp = 450;
    			reqLvl = 7;
    			break;
    
    		case 864: //Bronze Throwing Knives
    			xp = 45;
    			reqLvl = 7;
    			break;
    
    		case 1173: //Bronze Sq Shield
    			xp =  475;
    			reqLvl = 8;
    			break;
    
    		case 1337: //Bronze Warhammer
    			xp =  475;
    			reqLvl = 9;
    			break;
    
    		case 1375: //Bronze Battleaxe
    			xp =  475;
    			reqLvl = 10;
    			break;
    
    		case 1103: //Bronze Chainbody
    			xp = 500;
    			reqLvl = 11;
    			break;
    
    		case 1189: //Bronze Kiteshield
    			xp = 550;
    			reqLvl = 12;
    			break;
    
    		case 3095: //Bronze claws
    			xp = 530;
    			reqLvl = 13;
    			break;
    
    		case 1307: //Bronze 2h Sword
    			xp =  560;
    			reqLvl = 14;
    			break;
    
    		case 1087: //Bronze Plateskirt
    			xp = 560;
    			reqLvl = 16;
    			break;
    
    		case 1075: //Bronze Platelegs
    			xp =  560;
    			reqLvl = 16;
    			break;
    
    		case 1117: //Bronze Platebody
    			xp = 580;
    			reqLvl = 18;
    			break;
    
    		case 1203: //iron dagger
    			xp =650;
    			reqLvl = 15;
    			break;
    
    		case 15298: //iron Hatchet
    			xp =660;
    			reqLvl = 16;
    			break;
    
    		case 1420: //iron mace
    			xp =680;
    			reqLvl = 17;
    			break;
    
    		case 7225: //iron spit
    			xp =600;
    			reqLvl = 17;
    			break;
    
    		case 1137: //iron med helm
    			xp =625;
    			reqLvl = 18;
    			break;
    
    		case 9140: //iron med Helm
    			xp =625;
    			reqLvl = 18;
    			break;
    
    		case 1279: //iron bolt
    			xp =650;
    			reqLvl = 19;
    			break;
    
    		case 4820: //iron sword
    			xp =680;
    			reqLvl = 19;
    			break;
    
    		case 820: //iron dart Tips
    			xp =715;
    			reqLvl = 20;
    			break;
    
    		case 40: //iron arrowtips
    			xp = 715;
    			reqLvl = 20;
    			break;
    
    		case 1323: //iron Scimitar
    			xp = 725;
    			reqLvl = 20;
    			break;
    
    		case 1267: //iron Pickaxe
    			xp =725;
    			reqLvl = 20;
    			break;
    
    		case 1293: //iron Longsword
    			xp =750;
    			reqLvl = 21;
    			break;
    
    		case 1153: //iron Full Helm
    			xp =780;
    			reqLvl = 22;
    			break;
    
    		case 863: //iron throwing Knives
    			xp =790;
    			reqLvl = 22;
    			break;
    
    		case 1175: //iron sq Shield
    			xp =820;
    			reqLvl = 23;
    			break;
    
    		case 9423: //iron Limbs
    			xp =850;
    			reqLvl = 23;
    			break;
    
    		case 1335: //iron Warhammer
    			xp =850;
    			reqLvl = 24;
    			break;
    
    		case 1363: //iron Battleaxe
    			xp =850;
    			reqLvl = 25;
    			break;
    
    		case 1101: //iron Chainbody
    			xp =860;
    			reqLvl = 26;
    			break;
    
    		case 4540: //iron Oil Latern Frame
    			xp =900;
    			reqLvl = 26;
    			break;
    
    		case 1191: //iron Kiteshield
    			xp =900;
    			reqLvl = 27;
    			break;
    
    		case 3096: //iron Claws
    			xp =925;
    			reqLvl = 28;
    			break;
    
    		case 1309: //iron 2h Sword
    			xp =975;
    			reqLvl = 29;
    			break;
    
    		case 1081: //iron Plateskirt
    			xp =1000;
    			reqLvl = 31;
    			break;
    
    		case 1067: //iron Platelegs
    			xp =1000;
    			reqLvl = 31;
    			break;
    
    		case 1115: //iron platebody
    			xp = 1200;
    			reqLvl = 33;
    			break;
    		case 1207: //steel Dagger
    			xp = 900;
    			reqLvl = 30;
    			break;
    		case 1353: //steel Hatchet
    			xp = 920;
    			reqLvl = 31;
    			break;
    		case 1424: //steel Mace
    			xp = 970;
    			reqLvl = 32;
    			break;
    		case 1141: //steel Med Helm
    			xp = 1005;
    			reqLvl = 33;
    			break;
    		case 9141: //steel bolts
    			xp = 1050;
    			reqLvl = 33;
    			break;
    		case 1539: //steel nails
    			xp = 1050;
    			reqLvl = 34;
    			break;
    		case 1281: //steel sword
    			xp = 1050;
    			reqLvl = 34;
    			break;
    		case 821: //steel dart Tips
    			xp = 1050;
    			reqLvl = 34;
    			break;
    		case 41: //steel Arrowtips
    			xp = 1080;
    			reqLvl = 35;
    			break;
    
    		case 1325: //steel scimitar
    			xp = 1110;
    			reqLvl = 35;
    			break;
    		case 1269: //steel Pickaxe
    			xp = 1110;
    			reqLvl = 35;
    			break;
    		case 1295: //steel Longsword
    			xp = 1130;
    			reqLvl = 36;
    			break;
    		case 2370: //steel studs
    			xp = 1130;
    			reqLvl = 36;
    			break;
    		case 9425: //steel crossbow limbs
    			xp = 1130;
    			reqLvl = 36;
    			break;
    		case 1157: //steel full helm
    			xp = 1160;
    			reqLvl = 37;
    			break;
    		case 865: //steel Knifes
    			xp = 1160;
    			reqLvl = 37;
    			break;
    		case 1177: //steel sq Shield
    			xp = 1190;
    			reqLvl = 38;
    			break;
    		case 1339: //steel Warhammer
    			xp = 1200;
    			reqLvl = 39;
    			break;
    		case 1365: //steel Battleaxe
    			xp = 1215;
    			reqLvl = 40;
    			break;
    		case 1105: //steel Chainbody
    			xp = 1230;
    			reqLvl = 41;
    			break;
    		case 1193: //steel Kiteshield
    			xp = 1240;
    			reqLvl = 42;
    			break;
    		case 2:
    			xp = 955;
    			reqLvl = 35;
    			break;
    		case 3097: //steel Claws
    			xp = 1250;
    			reqLvl = 43;
    			break;
    		case 1311: //steel 2h Sword
    			xp = 1250;
    			reqLvl = 44;
    			break;
    		case 1084: //steel Plateskirt
    			xp = 1282;
    			reqLvl = 46;
    			break;
    		case 1069: //steel Platelegs
    			xp = 1282;
    			reqLvl = 46;
    			break;
    		case 1119: //steel Platebody
    			xp = 1600;
    			reqLvl = 48;
    			break;
    
    
    		case 1209: //Mithril Dagger
    			xp = 1870;
    			reqLvl = 50;
    			break;
    
    		case 1355: //Mithril Hatchet 
    			xp = 1870;
    			reqLvl = 51;
    			break;
    
    		case 1428: //Mithril Mace
    			xp = 1870;
    			reqLvl = 52;
    			break;
    
    		case 1143: //Mithril Med Helm
    			xp = 1870;
    			reqLvl = 53;
    			break;
    
    		case 9142: //Mithril bolts
    			xp = 1870;
    			reqLvl = 53;
    			break;
    
    		case 1285: //Mithril Sword
    			xp = 1870;
    			reqLvl = 54;
    			break;
    
    		case 4822: //Mithril Nails 
    			xp = 1870;
    			reqLvl = 54;
    			break;
    
    		case 822: //Mithril Dart Tips
    			xp = 1770;
    			reqLvl = 54;
    			break;
    
    		case 42: //Mithril Arrowtips
    			xp = 1770;
    			reqLvl = 55;
    			break;
    
    		case 1329: //Mithril Scimitar
    			xp = 1900;
    			reqLvl = 55;
    			break;
    
    		case 1273: //Mithril Pickaxe
    			xp = 2000;
    			reqLvl = 55;
    			break;
    
    		case 1299: //Mithril longsword
    			xp = 2000;
    			reqLvl = 56;
    			break;
    
    		case 9427: //Mithril limbs
    			xp = 1700;
    			reqLvl = 56;
    			break;
    
    		case 1159: //Mithril Full helm
    			xp = 2110;
    			reqLvl = 57;
    			break;
    
    		case 866: //Mithril knifes
    			xp = 1600;
    			reqLvl = 57;
    			break;
    
    		case 1181: //Mithril Sq Shield
    			xp = 2110;
    			reqLvl = 58;
    			break;
    
    		case 1343: //Mithril warhammer
    			xp = 2200;
    			reqLvl = 59;
    			break;
    
    		case 9416: //Mithril grapple Tip
    			xp = 1450;
    			reqLvl = 59;
    			break;
    
    		case 1369: //Mithril Battleaxe
    			xp = 2200;
    			reqLvl = 60;
    			break;
    
    		case 1109: //Mithril chainbody
    			xp = 2200;
    			reqLvl = 61;
    			break;
    
    		case 1197: //Mithril Kiteshield
    			xp = 2200;
    			reqLvl = 62;
    			break;
    
    		case 3099: //Mithril claws
    			xp = 1800;
    			reqLvl = 63;
    			break;
    
    		case 1315: //Mithril 2h sword
    			xp = 2200;
    			reqLvl = 64;
    			break;
    
    		case 1085: //Mithril plateskirt
    			xp = 2200;
    			reqLvl = 66;
    			break;
    
    		case 1071: //Mithril plateleggs
    			xp = 2200;
    			reqLvl = 66;
    			break;
    
    		case 1121: //Mithril Platebody
    			xp = 3000;
    			reqLvl = 68;
    			break;
    
    		case 1211: //Adamant Dagger
    			xp = 2900;
    			reqLvl = 70;
    			break;
    		case 1357: //Adamant Hatchet
    			xp = 2957;
    			reqLvl = 71;
    			break;
    		case 1430: //Adamant Mace
    			xp = 2968;
    			reqLvl = 72;
    			break;
    		case 1145: //Adamant Med Helm
    			xp = 2980;
    			reqLvl = 73;
    			break;
    		case 9143: //Adamant Bolts
    			xp = 3000;
    			reqLvl = 73;
    			break;
    		case 1287: //Adamant Sword
    			xp = 3100;
    			reqLvl = 74;
    			break;
    		case 4823: //Adamant nails
    			xp = 2870;
    			reqLvl = 74;
    			break;
    		case 823: //Adamant dart tips
    			xp = 2870;
    			reqLvl = 74;
    			break;
    		case 43: //Adamant Arrowtips
    			xp = 2870;
    			reqLvl = 75;
    			break;
    		case 1331: //Adamant Scimitar
    			xp = 3100;
    			reqLvl = 75;
    			break;
    		case 1271: //Adamant Pickaxe
    			xp = 3100;
    			reqLvl = 75;
    		case 1301: //Adamant  Longsword
    			xp = 3100;
    			reqLvl = 76;
    			break;
    		case 9429: //Adamant limbs
    			xp = 2870;
    			reqLvl = 76;
    			break;
    		case 1161: //Adamant Full Helm
    			xp = 3100;
    			reqLvl = 77;
    			break;
    		case 867: //Adamant knifes
    			xp = 2870;
    			reqLvl = 77;
    			break;
    		case 1183: //Adamant Sq  Shield
    			xp = 3200;
    			reqLvl = 78;
    			break;
    		case 1345: //Adamant warhammer
    			xp = 3200;
    			reqLvl = 79;
    			break;
    		case 1371: //Adamant Battleaxe
    			xp = 3250;
    			reqLvl = 80;
    			break;
    		case 1111: //Adamant Chainbody
    			xp = 3250;
    			reqLvl = 81;
    			break;
    		case 1199: //Adamant  Kiteshield
    			xp = 3300;
    			reqLvl = 82;
    			break;
    		case 3100: //Adamant Claws
    			xp = 3100;
    			reqLvl = 83;
    			break;
    		case 1317: //Adamant 2h sword
    			xp = 3350;
    			reqLvl = 84;
    			break;
    		case 1091: //Adamant Plateskirt
    			xp = 3360;
    			reqLvl = 86;
    			break;
    		case 1073: //Adamant Platelegs
    			xp = 3370;
    			reqLvl = 86;
    			break;
    		case 1123: //Adamant Platebody
    			xp = 3600;
    			reqLvl = 88;
    			break;
    		case 1213: //Rune Dagger
    			xp = 5870;
    			reqLvl = 51;
    			break;
    		case 1359: //Rune Axe
    			xp = 6000;
    			reqLvl = 85;
    			break;
    		case 1432: //Rune Mace
    			xp = 6000;
    			reqLvl = 86;
    			break;
    		case 1147: //Rune Med Helm
    			xp = 6000;
    			reqLvl = 87;
    			break;
    		case 9144: //Rune Bolts
    			xp = 6000;
    			reqLvl = 88;
    			break;
    		case 1289: //Rune Sword
    			xp = 6400;
    			reqLvl = 89;
    			break;
    		case 4824: //Rune Nails
    			xp = 5270;
    			reqLvl = 89;
    			break;
    		case 824: //Rune Dart Tips
    			xp = 6800;
    			reqLvl = 90;
    			break;
    		case 44: //Rune Arrowtips
    			xp = 2300;
    			reqLvl = 90;
    			break;
    		case 1333: //Rune Scimitar
    			xp = 7220;
    			reqLvl = 90;
    			break;
    		case 1275: //Rune Pickaxe
    			xp = 7220;
    			reqLvl = 91;
    			break;
    		case 1303: //Rune Longsword
    			xp = 7220;
    			reqLvl = 91;
    			break;
    		case 9431: //Rune Limbs
    			xp = 7270;
    			reqLvl = 91;
    			break;
    		case 1163: //Rune Full helm
    			xp = 7800;
    			reqLvl = 92;
    			break;
    		case 868: //Rune Knifes
    			xp = 5900;
    			reqLvl = 92;
    			break;
    		case 1185: //Rune Sq shield
    			xp = 7400;
    			reqLvl = 93;
    			break;
    		case 1347: //Rune Warhammer 
    			xp = 7400;
    			reqLvl = 94;
    			break;
    		case 1373: //Rune Battleaxe
    			xp = 7800;
    			reqLvl = 95;
    			break;
    		case 1113: //Rune Chainbody
    			xp = 7800;
    			reqLvl = 96;
    			break;
    		case 1201: //Rune Kiteshield
    			xp = 7800;
    			reqLvl = 97;
    			break;
    		case 3101: //Rune Claws
    			xp = 8200;
    			reqLvl = 98;
    			break;
    		case 1319: //Rune 2h sword
    			xp = 8600;
    			reqLvl = 99;
    			break;
    		case 1093: //Rune Plateskirt
    			xp = 8600;
    			reqLvl = 99;
    			break;
    		case 1079: //Rune Plateleggs
    			xp = 8600;
    			reqLvl = 99;
    			break;
    		case 1127: //Rune Platebody
    			xp = 12000;
    			reqLvl = 99;
    			break;
    
    		}
    		return type.equalsIgnoreCase("xp") ? xp : reqLvl;
    	}
    Just wow.. I decided to put together an enum containing all of the data. I left out the experience though, add that yourself.
    Keep in mind this took almost 4 hours, lol.

    Code:
    /**
    	 * An emurated type containing data about all the
    	 * equipment which can be created using the Smithing skill
    	 * in the game.
    	 * 
    	 * @author Professor Oak
    	 */
    	public enum SmithableEquipment {
    		BRONZE_DAGGER("Dagger", 2349, 1205, 1, 1119, 0, 1094, 1, 1, 1125),
    		BRONZE_AXE("Axe", 2349, 1351, 1, 1120, 0, 1091, 1, 1, 1126),
    		BRONZE_MACE("Mace", 2349, 1422, 1, 1120, 1, 1093,  2, 1, 1129),
    		BRONZE_MED_HELM("Med helm", 2349, 1139, 1, 1122, 0, 1102, 3, 1, 1127),
    		BRONZE_DART_TIPS("Dart tips", 2349, 819, 10, 1123, 0, 1107, 4, 1, 1128),
    		BRONZE_SWORD("Sword", 2349, 1277, 1, 1119, 1, 1085, 4, 1, 1124),
    		BRONZE_ARROWTIPS("Arrowtips", 2349, 39, 15, 1123, 1, 1108, 5, 1, 1130),
    		BRONZE_SCIMITAR("Scimitar", 2349, 1321, 1, 1119, 2, 1087, 5, 2, 1116),
    		BRONZE_LONG_SWORD("Long sword", 2349, 1291, 1, 1119, 3, 1086, 6, 2, 1089),
    		BRONZE_THROWING_KNIVES("Throwing knives", 2349, 864, 5, 1123, 2, 1106, 7, 1, 1131),
    		BRONZE_FULL_HELM("Full helm", 2349, 1155, 1, 1122, 1, 1103, 7, 2, 1113),
    		BRONZE_SQUARE_SHIELD("Square shield", 2349, 1173, 1, 1122, 2, 1104, 8, 2, 1114),
    		BRONZE_WARHAMMER("Warhammer", 2349, 1337, 1, 1120, 2, 1083, 9, 3, 1118),
    		BRONZE_BATTLE_AXE("Battle axe", 2349, 1375, 1, 1120, 3, 1092, 10, 3, 1095),
    		BRONZE_CHAINBODY("Chainbody", 2349, 1103, 1, 1121, 0, 1098, 11, 3, 1109),
    		BRONZE_KITE_SHIELD("Kite shield", 2349, 1189, 1, 1122, 3, 1105, 12, 3, 1115),
    		BRONZE_CLAWS("Claws", 2349, 3095, 1, 1120, 4, 8429, 13, 2, 8428),
    		BRONZE_2_HAND_SWORD("2 hand sword", 2349, 1307, 1, 1119, 4, 1088, 14, 3, 1090),
    		BRONZE_PLATESKIRT("Plate skirt", 2349, 1087, 1, 1121, 2, 1100, 16, 3, 1111),
    		BRONZE_PLATELEGS("Plate legs", 2349, 1075, 1, 1121, 1, 1099, 16, 3, 1110),
    		BRONZE_PLATEBODY("Plate body", 2349, 1117, 1, 1121, 3, 1101, 18, 5, 1112),
    		BRONZE_NAILS("Nails", 2349, 4819, 15, 1122, 4, 13358, 4, 1, 13357),
    		BRONZE_UNF_BOLTS("Bolts (unf)", 2349, 9375, 10, 1121, 4, 11461, 3, 1, 11459),
    
    		IRON_DAGGER("Dagger", 2351, 1203, 1, 1119, 0, 1094, 15, 1, 1125),
    		IRON_AXE("Axe", 2351, 1349, 1, 1120, 0, 1091, 16, 1, 1126),
    		IRON_MACE("Mace", 2351, 1420, 1, 1120, 1, 1093, 17, 1, 1129),
    		IRON_MED_HELM("Med helm", 2351, 1137, 1, 1122, 0, 1102, 18, 1, 1127),
    		IRON_DART_TIPS("Dart tips", 2351, 820, 10, 1123, 0, 1107, 19, 1, 1128),
    		IRON_SWORD("Sword", 2351, 1279, 1, 1119, 1, 1085, 19, 1, 1124),
    		IRON_ARROWTIPS("Arrowtips", 2351, 40, 15, 1123, 1, 1108, 20, 1, 1130),
    		IRON_SCIMITAR("Scimitar", 2351, 1323, 1, 1119, 2, 1087, 20, 2, 1116),
    		IRON_LONG_SWORD("Long sword", 2351, 1293, 1, 1119, 3, 1086, 21, 2, 1089),
    		IRON_THROWING_KNIVES("Throwing knives", 2351, 863, 5, 1123, 2, 1106, 22, 1, 1131),
    		IRON_FULL_HELM("Full helm", 2351, 1153, 1, 1122, 1, 1103, 22, 2, 1113),
    		IRON_SQUARE_SHIELD("Square shield", 2351, 1175, 1, 1122, 2, 1104, 23, 2, 1114),
    		IRON_WARHAMMER("Warhammer", 2351, 1335, 1, 1120, 2, 1083, 24, 3, 1118),
    		IRON_BATTLE_AXE("Battle axe", 2351, 1363, 1, 1120, 3, 1092, 25, 3, 1095),
    		IRON_CHAINBODY("Chainbody", 2351, 1101, 1, 1121, 0, 1098, 26, 3, 1109),
    		IRON_KITE_SHIELD("Kite shield", 2351, 1191, 1, 1122, 3, 1105, 27, 3, 1115),
    		IRON_CLAWS("Claws", 2351, 3096, 1, 1120, 4, 8429, 28, 2, 8428),
    		IRON_2_HAND_SWORD("2 hand sword", 2351, 1309, 1, 1119, 4, 1088, 29, 3, 1090),
    		IRON_PLATESKIRT("Plate skirt", 2351, 1081, 1, 1121, 2, 1100, 31, 3, 1111),
    		IRON_PLATELEGS("Plate legs", 2351, 1067, 1, 1121, 1, 1099, 31, 3, 1110),
    		IRON_PLATEBODY("Plate body", 2351, 1115, 1, 1121, 3, 1101, 33, 5, 1112),
    		IRON_NAILS("Nails", 2351, 4820, 15, 1122, 4, 13358, 19, 1, 13357),
    		IRON_UNF_BOLTS("Bolts (unf)", 2351, 9377, 10, 1121, 4, 11461, 19, 1, 11459),
    
    		STEEL_DAGGER("Dagger", 2353, 1207, 1, 1119, 0, 1094, 30, 1, 1125),
    		STEEL_AXE("Axe", 2353, 1353, 1, 1120, 0, 1091, 31, 1, 1126),
    		STEEL_MACE("Mace", 2353, 1424, 1, 1120, 1, 1093, 32, 1, 1129),
    		STEEL_MED_HELM("Med helm", 2353, 1141, 1, 1122, 0, 1102, 33, 1, 1127),
    		STEEL_DART_TIPS("Dart tips", 2353, 821, 10, 1123, 0, 1107, 34, 1, 1128),
    		STEEL_SWORD("Sword", 2353, 1281, 1, 1119, 1, 1085, 34, 1, 1124),
    		STEEL_ARROWTIPS("Arrowtips", 2353, 41, 15, 1123, 1, 1108, 35, 1, 1130),
    		STEEL_SCIMITAR("Scimitar", 2353, 1325, 1, 1119, 2, 1087, 35, 2, 1116),
    		STEEL_LONG_SWORD("Long sword", 2353, 1295, 1, 1119, 3, 1086, 36, 2, 1089),
    		STEEL_THROWING_KNIVES("Throwing knives", 2353, 865, 5, 1123, 2, 1106, 37, 1, 1131),
    		STEEL_FULL_HELM("Full helm", 2353, 1157, 1, 1122, 1, 1103, 37, 2, 1113),
    		STEEL_SQUARE_SHIELD("Square shield", 2353, 1177, 1, 1122, 2, 1104, 38, 2, 1114),
    		STEEL_WARHAMMER("Warhammer", 2353, 1339, 1, 1120, 2, 1083, 39, 3, 1118),
    		STEEL_BATTLE_AXE("Battle axe", 2353, 1365, 1, 1120, 3, 1092, 40, 3, 1095),
    		STEEL_CHAINBODY("Chainbody", 2353, 1105, 1, 1121, 0, 1098, 41, 3, 1109),
    		STEEL_KITE_SHIELD("Kite shield", 2353, 1193, 1, 1122, 3, 1105, 42, 3, 1115),
    		STEEL_CLAWS("Claws", 2353, 3097, 1, 1120, 4, 8429, 43, 2, 8428),
    		STEEL_2_HAND_SWORD("2 hand sword", 2353, 1311, 1, 1119, 4, 1088, 44, 3, 1090),
    		STEEL_PLATESKIRT("Plate skirt", 2353, 1083, 1, 1121, 2, 1100, 46, 3, 1111),
    		STEEL_PLATELEGS("Plate legs", 2353, 1069, 1, 1121, 1, 1099, 46, 3, 1110),
    		STEEL_PLATEBODY("Plate body", 2353, 1119, 1, 1121, 3, 1101, 48, 5, 1112),
    		STEEL_NAILS("Nails", 2353, 1539, 15, 1122, 4, 13358, 34, 1, 13357),
    		STEEL_UNF_BOLTS("Bolts (unf)", 2353, 9378, 10, 1121, 4, 11461, 33, 1, 11459),
    		CANNONBALL("Cannon ball", 2353, 2, 4, 1123, 3, 1096, 35, 1, 1132),
    		STEEL_STUDS("Studs", 2353, 2370, 1, 1123, 4, 1134, 36, 1, 1135),
    
    		MITHRIL_DAGGER("Dagger", 2359, 1209, 1, 1119, 0, 1094, 50, 1, 1125),
    		MITHRIL_AXE("Axe", 2359, 1355, 1, 1120, 0, 1091, 51, 1, 1126),
    		MITHRIL_MACE("Mace", 2359, 1428, 1, 1120, 1, 1093, 52, 1, 1129),
    		MITHRIL_MED_HELM("Med helm", 2359, 1143, 1, 1122, 0, 1102, 53, 1, 1127),
    		MITHRIL_DART_TIPS("Dart tips", 2359, 822, 10, 1123, 0, 1107, 54, 1, 1128),
    		MITHRIL_SWORD("Sword", 2359, 1285, 1, 1119, 1, 1085, 54, 1, 1124),
    		MITHRIL_ARROWTIPS("Arrowtips", 2359, 42, 15, 1123, 1, 1108, 55, 1, 1130),
    		MITHRIL_SCIMITAR("Scimitar", 2359, 1329, 1, 1119, 2, 1087, 55, 2, 1116),
    		MITHRIL_LONG_SWORD("Long sword", 2359, 1299, 1, 1119, 3, 1086, 56, 2, 1089),
    		MITHRIL_THROWING_KNIVES("Throwing knives", 2359, 866, 5, 1123, 2, 1106, 57, 1, 1131),
    		MITHRIL_FULL_HELM("Full helm", 2359, 1159, 1, 1122, 1, 1103, 57, 2, 1113),
    		MITHRIL_SQUARE_SHIELD("Square shield", 2359, 1181, 1, 1122, 2, 1104, 58, 2, 1114),
    		MITHRIL_WARHAMMER("Warhammer", 2359, 1343, 1, 1120, 2, 1083, 59, 3, 1118),
    		MITHRIL_BATTLE_AXE("Battle axe", 2359, 1369, 1, 1120, 3, 1092, 60, 3, 1095),
    		MITHRIL_CHAINBODY("Chainbody", 2359, 1109, 1, 1121, 0, 1098, 61, 3, 1109),
    		MITHRIL_KITE_SHIELD("Kite shield", 2359, 1197, 1, 1122, 3, 1105, 62, 3, 1115),
    		MITHRIL_CLAWS("Claws", 2359, 3099, 1, 1120, 4, 8429, 63, 2, 8428),
    		MITHRIL_2_HAND_SWORD("2 hand sword", 2359, 1315, 1, 1119, 4, 1088, 64, 3, 1090),
    		MITHRIL_PLATESKIRT("Plate skirt", 2359, 1085, 1, 1121, 2, 1100, 66, 3, 1111),
    		MITHRIL_PLATELEGS("Plate legs", 2359, 1071, 1, 1121, 1, 1099, 66, 3, 1110),
    		MITHRIL_PLATEBODY("Plate body", 2359, 1121, 1, 1121, 3, 1101, 68, 5, 1112),
    		MITHRIL_NAILS("Nails", 2359, 4822, 15, 1122, 4, 13358, 54, 1, 13357),
    		MITHRIL_UNF_BOLTS("Bolts (unf)", 2359, 9379, 10, 1121, 4, 11461, 53, 1, 11459),
    
    		ADAMANT_DAGGER("Dagger", 2361, 1211, 1, 1119, 0, 1094, 70, 1, 1125),
    		ADAMANT_AXE("Axe", 2361, 1357, 1, 1120, 0, 1091, 71, 1, 1126),
    		ADAMANT_MACE("Mace", 2361, 1430, 1, 1120, 1, 1093, 72, 1, 1129),
    		ADAMANT_MED_HELM("Med helm", 2361, 1145, 1, 1122, 0, 1102, 73, 1, 1127),
    		ADAMANT_DART_TIPS("Dart tips", 2361, 823, 10, 1123, 0, 1107, 74, 1, 1128),
    		ADAMANT_SWORD("Sword", 2361, 1287, 1, 1119, 1, 1085, 74, 1, 1124),
    		ADAMANT_ARROWTIPS("Arrowtips", 2361, 43, 15, 1123, 1, 1108, 75, 1, 1130),
    		ADAMANT_SCIMITAR("Scimitar", 2361, 1331, 1, 1119, 2, 1087, 75, 2, 1116),
    		ADAMANT_LONG_SWORD("Long sword", 2361, 1301, 1, 1119, 3, 1086, 76, 2, 1089),
    		ADAMANT_THROWING_KNIVES("Throwing knives", 2361, 867, 5, 1123, 2, 1106, 77, 1, 1131),
    		ADAMANT_FULL_HELM("Full helm", 2361, 1161, 1, 1122, 1, 1103, 77, 2, 1113),
    		ADAMANT_SQUARE_SHIELD("Square shield", 2361, 1183, 1, 1122, 2, 1104, 78, 2, 1114),
    		ADAMANT_WARHAMMER("Warhammer", 2361, 1345, 1, 1120, 2, 1083, 79, 3, 1118),
    		ADAMANT_BATTLE_AXE("Battle axe", 2361, 1371, 1, 1120, 3, 1092, 80, 3, 1095),
    		ADAMANT_CHAINBODY("Chainbody", 2361, 1111, 1, 1121, 0, 1098, 81, 3, 1109),
    		ADAMANT_KITE_SHIELD("Kite shield", 2361, 1199, 1, 1122, 3, 1105, 82, 3, 1115),
    		ADAMANT_CLAWS("Claws", 2361, 3100, 1, 1120, 4, 8429, 83, 2, 8428),
    		ADAMANT_2_HAND_SWORD("2 hand sword", 2361, 1317, 1, 1119, 4, 1088, 84, 3, 1090),
    		ADAMANT_PLATESKIRT("Plate skirt", 2361, 1091, 1, 1121, 2, 1100, 86, 3, 1111),
    		ADAMANT_PLATELEGS("Plate legs", 2361, 1073, 1, 1121, 1, 1099, 86, 3, 1110),
    		ADAMANT_PLATEBODY("Plate body", 2361, 1123, 1, 1121, 3, 1101, 88, 5, 1112),
    		ADAMANT_NAILS("Nails", 2361, 4823, 15, 1122, 4, 13358, 74, 1, 13357),
    		ADAMANT_UNF_BOLTS("Bolts (unf)", 2361, 9380, 10, 1121, 4, 11461, 73, 1, 11459),
    
    		RUNE_DAGGER("Dagger", 2363, 1213, 1, 1119, 0, 1094, 85, 1, 1125),
    		RUNE_AXE("Axe", 2363, 1359, 1, 1120, 0, 1091, 86, 1, 1126),
    		RUNE_MACE("Mace", 2363, 1432, 1, 1120, 1, 1093, 87, 1, 1129),
    		RUNE_MED_HELM("Med helm", 2363, 1147, 1, 1122, 0, 1102, 88, 1, 1127),
    		RUNE_DART_TIPS("Dart tips", 2363, 824, 10, 1123, 0, 1107, 89, 1, 1128),
    		RUNE_SWORD("Sword", 2363, 1289, 1, 1119, 1, 1085, 89, 1, 1124),
    		RUNE_ARROWTIPS("Arrowtips", 2363, 44, 15, 1123, 1, 1108, 90, 1, 1130),
    		RUNE_SCIMITAR("Scimitar", 2363, 1333, 1, 1119, 2, 1087, 90, 2, 1116),
    		RUNE_LONG_SWORD("Long sword", 2363, 1303, 1, 1119, 3, 1086, 91, 2, 1089),
    		RUNE_THROWING_KNIVES("Throwing knives", 2363, 868, 5, 1123, 2, 1106, 92, 1, 1131),
    		RUNE_FULL_HELM("Full helm", 2363, 1163, 1, 1122, 1, 1103, 92, 2, 1113),
    		RUNE_SQUARE_SHIELD("Square shield", 2363, 1185, 1, 1122, 2, 1104, 93, 2, 1114),
    		RUNE_WARHAMMER("Warhammer", 2363, 1347, 1, 1120, 2, 1083, 94, 3, 1118),
    		RUNE_BATTLE_AXE("Battle axe", 2363, 1373, 1, 1120, 3, 1092, 95, 3, 1095),
    		RUNE_CHAINBODY("Chainbody", 2363, 1113, 1, 1121, 0, 1098, 96, 3, 1109),
    		RUNE_KITE_SHIELD("Kite shield", 2363, 1201, 1, 1122, 3, 1105, 97, 3, 1115),
    		RUNE_CLAWS("Claws", 2363, 3101, 1, 1120, 4, 8429, 98, 2, 8428),
    		RUNE_2_HAND_SWORD("2 hand sword", 2363, 1319, 1, 1119, 4, 1088, 99, 3, 1090),
    		RUNE_PLATESKIRT("Plate skirt", 2363, 1093, 1, 1121, 2, 1100, 99, 3, 1111),
    		RUNE_PLATELEGS("Plate legs", 2363, 1079, 1, 1121, 1, 1099, 99, 3, 1110),
    		RUNE_PLATEBODY("Plate body", 2363, 1127, 1, 1121, 3, 1101, 99, 5, 1112),
    		RUNE_NAILS("Nails", 2363, 4824, 15, 1122, 4, 13358, 89, 1, 13357),
    		RUNE_UNF_BOLTS("Bolts (unf)", 2363, 9381, 10, 1121, 4, 11461, 88, 1, 11459),
    		;
    
    		private final String name;
    		private final int barId;
    		private final int itemId;
    		private final int amount;
    		private final int itemFrame;
    		private final int itemSlot;
    		private final int nameFrame;
    		private final int requiredLevel;
    		private final int barsRequired;
    		private final int barFrame;
    
    		SmithableEquipment(String name, int barId, int itemId, int amount, int itemFrame, int itemSlot, int nameFrame, int requiredLevel, int barsRequired, int barFrame) {
    			this.name = name;
    			this.barId = barId;
    			this.itemId = itemId;
    			this.amount = amount;
    			this.itemFrame = itemFrame;
    			this.itemSlot = itemSlot;
    			this.nameFrame = nameFrame;
    			this.requiredLevel = requiredLevel;
    			this.barsRequired = barsRequired;
    			this.barFrame = barFrame;
    		}
    
    		public static final ImmutableSet<SmithableEquipment> RUNE_ITEMS = Sets.immutableEnumSet(RUNE_DAGGER, RUNE_AXE, RUNE_MACE, RUNE_MED_HELM, RUNE_DART_TIPS, RUNE_SWORD, RUNE_ARROWTIPS, RUNE_SCIMITAR, RUNE_LONG_SWORD,
    				RUNE_THROWING_KNIVES, RUNE_FULL_HELM, RUNE_SQUARE_SHIELD, RUNE_WARHAMMER, RUNE_BATTLE_AXE, RUNE_CHAINBODY, RUNE_KITE_SHIELD,
    				RUNE_CLAWS, RUNE_2_HAND_SWORD, RUNE_PLATESKIRT, RUNE_PLATELEGS, RUNE_PLATEBODY, RUNE_NAILS, RUNE_UNF_BOLTS);
    
    		public static final ImmutableSet<SmithableEquipment> ADAMANT_ITEMS = Sets.immutableEnumSet(ADAMANT_DAGGER, ADAMANT_AXE, ADAMANT_MACE, ADAMANT_MED_HELM, ADAMANT_DART_TIPS, ADAMANT_SWORD, ADAMANT_ARROWTIPS, ADAMANT_SCIMITAR, ADAMANT_LONG_SWORD,
    				ADAMANT_THROWING_KNIVES, ADAMANT_FULL_HELM, ADAMANT_SQUARE_SHIELD, ADAMANT_WARHAMMER, ADAMANT_BATTLE_AXE, ADAMANT_CHAINBODY, ADAMANT_KITE_SHIELD,
    				ADAMANT_CLAWS, ADAMANT_2_HAND_SWORD, ADAMANT_PLATESKIRT, ADAMANT_PLATELEGS, ADAMANT_PLATEBODY, ADAMANT_NAILS, ADAMANT_UNF_BOLTS);
    
    		public static final ImmutableSet<SmithableEquipment> MITHRIL_ITEMS = Sets.immutableEnumSet(MITHRIL_DAGGER, MITHRIL_AXE, MITHRIL_MACE, MITHRIL_MED_HELM, MITHRIL_DART_TIPS, MITHRIL_SWORD, MITHRIL_ARROWTIPS, MITHRIL_SCIMITAR, MITHRIL_LONG_SWORD,
    				MITHRIL_THROWING_KNIVES, MITHRIL_FULL_HELM, MITHRIL_SQUARE_SHIELD, MITHRIL_WARHAMMER, MITHRIL_BATTLE_AXE, MITHRIL_CHAINBODY, MITHRIL_KITE_SHIELD,
    				MITHRIL_CLAWS, MITHRIL_2_HAND_SWORD, MITHRIL_PLATESKIRT, MITHRIL_PLATELEGS, MITHRIL_PLATEBODY, MITHRIL_NAILS, MITHRIL_UNF_BOLTS);
    
    		public static final ImmutableSet<SmithableEquipment> STEEL_ITEMS = Sets.immutableEnumSet(STEEL_DAGGER, STEEL_AXE, STEEL_MACE, STEEL_MED_HELM, STEEL_DART_TIPS, STEEL_SWORD, STEEL_ARROWTIPS, STEEL_SCIMITAR, STEEL_LONG_SWORD,
    				STEEL_THROWING_KNIVES, STEEL_FULL_HELM, STEEL_SQUARE_SHIELD, STEEL_WARHAMMER, STEEL_BATTLE_AXE, STEEL_CHAINBODY, STEEL_KITE_SHIELD,
    				STEEL_CLAWS, STEEL_2_HAND_SWORD, STEEL_PLATESKIRT, STEEL_PLATELEGS, STEEL_PLATEBODY, STEEL_NAILS, STEEL_UNF_BOLTS, STEEL_STUDS, CANNONBALL);
    
    		public static final ImmutableSet<SmithableEquipment> IRON_ITEMS = Sets.immutableEnumSet(IRON_DAGGER, IRON_AXE, IRON_MACE, IRON_MED_HELM, IRON_DART_TIPS, IRON_SWORD, IRON_ARROWTIPS, IRON_SCIMITAR, IRON_LONG_SWORD,
    				IRON_THROWING_KNIVES, IRON_FULL_HELM, IRON_SQUARE_SHIELD, IRON_WARHAMMER, IRON_BATTLE_AXE, IRON_CHAINBODY, IRON_KITE_SHIELD,
    				IRON_CLAWS, IRON_2_HAND_SWORD, IRON_PLATESKIRT, IRON_PLATELEGS, IRON_PLATEBODY, IRON_NAILS, IRON_UNF_BOLTS);
    
    		public static final ImmutableSet<SmithableEquipment> BRONZE_ITEMS = Sets.immutableEnumSet(BRONZE_DAGGER, BRONZE_AXE, BRONZE_MACE, BRONZE_MED_HELM, BRONZE_DART_TIPS, BRONZE_SWORD, BRONZE_ARROWTIPS, BRONZE_SCIMITAR, BRONZE_LONG_SWORD,
    				BRONZE_THROWING_KNIVES, BRONZE_FULL_HELM, BRONZE_SQUARE_SHIELD, BRONZE_WARHAMMER, BRONZE_BATTLE_AXE, BRONZE_CHAINBODY, BRONZE_KITE_SHIELD,
    				BRONZE_CLAWS, BRONZE_2_HAND_SWORD, BRONZE_PLATESKIRT, BRONZE_PLATELEGS, BRONZE_PLATEBODY, BRONZE_NAILS, BRONZE_UNF_BOLTS);
    
    		public int getItemId() {
    			return itemId;
    		}
    
    		public int getAmount() {
    			return amount;
    		}
    
    		public int getItemFrame() {
    			return itemFrame;
    		}
    
    		public int getItemSlot() {
    			return itemSlot;
    		}
    
    		public int getNameFrame() {
    			return nameFrame;
    		}
    
    		public int getRequiredLevel() {
    			return requiredLevel;
    		}
    
    		public int getBarsRequired() {
    			return barsRequired;
    		}
    
    		public int getBarFrame() {
    			return barFrame;
    		}
    
    		public int getBarId() {
    			return barId;
    		}
    
    		public String getName() {
    			return name;
    		}
    	}
    Usage example:
    Loop through the ImmutableSet of items you wanna draw and do this for each:
    Code:
    					player.getPacketSender().sendSmithingData(b.getItemId(), b.getItemSlot(), b.getItemFrame(), b.getAmount());
    					String barColor = "@[email protected]";
    					String itemColor = "@[email protected]";
    					if(player.getInventory().getAmount(b.getBarId()) >= b.getBarsRequired()) {
    						barColor = "@[email protected]";
    					}
    					if(player.getSkillManager().getCurrentLevel(Skill.SMITHING) >= b.getRequiredLevel()) {
    						itemColor = "@[email protected]";
    					}
    					player.getPacketSender().sendString(b.getBarFrame(), barColor + Integer.toString(b.getBarsRequired()) + " " + (b.getBarsRequired() > 1 ? "bars" : "bar"));
    					player.getPacketSender().sendString(b.getNameFrame(), itemColor + b.getName());
    Result:

    [Today 01:29 AM] RSTrials: Nice 0.97 Win/Loss Ratio luke. That's pretty bad.
    [Today 01:30 AM] Luke132: Ok u fucking moron i forgot i could influence misc.random
    [Only registered and activated users can see links. ]
    Reply With Quote  
     


  2. #2  
    Registered Member

    Join Date
    Nov 2015
    Age
    22
    Posts
    619
    Thanks given
    91
    Thanks received
    133
    Rep Power
    406
    It really triggers me how OSRS do their smithing, why isn't "plate body" "platebody" etc? Thanks for this, John. I'm sure many will appreciate it.
    Reply With Quote  
     

  3. Thankful users:


  4. #3  
    \_(ツ)_/


    Join Date
    Sep 2014
    Age
    21
    Posts
    2,512
    Thanks given
    1,461
    Thanks received
    1,418
    Rep Power
    5000
    Nice share, the 'standard' smithing code mostly used in PIs makes me heave each time I see it.

    Dawntained - Autumn '19

    "There is no such entity as a 'PI client' " - Albert Einstein

    Quote Originally Posted by soccerchamp149 View Post
    whats eclipse lol
    Reply With Quote  
     

  5. Thankful users:


  6. #4  
    Rune-Server Affiliate

    Join Date
    Oct 2010
    Posts
    2,843
    Thanks given
    1,190
    Thanks received
    1,586
    Rep Power
    5000
    Quote Originally Posted by Tommy View Post
    It really triggers me how OSRS do their smithing, why isn't "plate body" "platebody" etc? Thanks for this, John. I'm sure many will appreciate it.
    Was thinking about that too when I made this, but didn't wanna change it because people are used to it
    [Today 01:29 AM] RSTrials: Nice 0.97 Win/Loss Ratio luke. That's pretty bad.
    [Today 01:30 AM] Luke132: Ok u fucking moron i forgot i could influence misc.random
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  7. Thankful user:


  8. #5  
    Donator
    Midgars's Avatar
    Join Date
    Sep 2014
    Posts
    129
    Thanks given
    15
    Thanks received
    18
    Rep Power
    11
    Thoughtful of you to post this, could help lots of people out. Good contribution.
    Reply With Quote  
     

  9. #6  
    Rune-Server Affiliate

    Join Date
    Oct 2010
    Posts
    2,843
    Thanks given
    1,190
    Thanks received
    1,586
    Rep Power
    5000
    You can do something similar to this to make sure they aren't trying to use cheat engine on the interface.
    Very simple yet very effective!
    Code:
    				boolean found = false;
    				for(SmithableEquipment s : SmithableEquipment.values()) {
    					if(s.getItemId() == itemId && s.getItemFrame() == interfaceId 
    							&& s.getItemSlot() == slot) {
    						found = true;
    						break;
    					}
    				}
    				/** We failed to find the item the player is trying to create **/
    				/** They must be using a cheat engine. **/
    				if(!found) {
    					Server.getLogger().warning("Player "+player.getUsername()+" is trying to use a cheatengine on Smithing equipment making.");
    					return false;
    				}
    PI way of doing it:
    Code:
    	private void checkIron(Player c, int level, int amounttomake, String type) {
    		c.smithremove = 2351;
    		if (type.equals("1349") && level >= 16) // Axe
    		{
    			c.smithxp = 25;
    			c.smithitem = 1349;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1203") && level >= 15) // Dagger
    		{
    			c.smithxp = 25;
    			c.smithitem = 1203;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1420") && level >= 17) // Mace
    		{
    			c.smithxp = 25;
    			c.smithitem = 1420;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1137") && level >= 18) // Med helm
    		{
    			c.smithxp = 25;
    			c.smithitem = 1137;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("820") && level >= 19) // Dart tips
    		{
    			c.smithxp = 25;
    			c.smithitem = 820;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1279") && level >= 19) // Sword (s)
    		{
    			c.smithxp = 25;
    			c.smithitem = 1279;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("4820") && level >= 19) // Nails
    		{
    			c.smithxp = 25;
    			c.smithitem = 4820;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("40") && level >= 20) // Arrow tips
    		{
    			c.smithxp = 25;
    			c.smithitem = 40;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1323") && level >= 20)// Scim
    		{
    			c.smithxp = 50;
    			c.smithitem = 1323;
    			c.smithremoveamount = 2;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1293") && level >= 21) // Longsword
    		{
    			c.smithxp = 50;
    			c.smithitem = 1293;
    			c.smithremoveamount = 2;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("863") && level >= 22) // Knives
    		{
    			c.smithxp = 25;
    			c.smithitem = 863;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1153") && level >= 22) // Full Helm
    		{
    			c.smithxp = 50;
    			c.smithitem = 1153;
    			c.smithremoveamount = 2;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1175") && level >= 23) // Square shield
    		{
    			c.smithxp = 50;
    			c.smithitem = 1175;
    			c.smithremoveamount = 2;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1335") && level >= 24) // Warhammer
    		{
    			c.smithxp = 38;
    			c.smithitem = 1335;
    			c.smithremoveamount = 3;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1363") && level >= 25) // Battle axe
    		{
    			c.smithxp = 75;
    			c.smithitem = 1363;
    			c.smithremoveamount = 3;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1101") && level >= 26) // Chain
    		{
    			c.smithxp = 75;
    			c.smithitem = 1101;
    			c.smithremoveamount = 3;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1191") && level >= 27) // Kite
    		{
    			c.smithxp = 75;
    			c.smithitem = 1191;
    			c.smithremoveamount = 3;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("3096") && level >= 28) // Claws
    		{
    			c.smithxp = 50;
    			c.smithitem = 3096;
    			c.smithremoveamount = 2;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1309") && level >= 29) // 2h Sword
    		{
    			c.smithxp = 75;
    			c.smithitem = 1309;
    			c.smithremoveamount = 3;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1067") && level >= 31) // Platelegs
    		{
    			c.smithxp = 75;
    			c.smithitem = 1067;
    			c.smithremoveamount = 3;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1081") && level >= 31) // PlateSkirt
    		{
    			c.smithxp = 75;
    			c.smithitem = 1081;
    			c.smithremoveamount = 3;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1115") && level >= 33) // Platebody
    		{
    			c.smithxp = 100;
    			c.smithitem = 1115;
    			c.smithremoveamount = 5;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("9377") && level >= 18) // bolts
    		{
    			c.smithxp = 15;
    			c.smithitem = 9377;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else {
    			c.getActionSender().sendMessage("You don't have a high enough level to make this Item!");
    			return;
    		}
    		doAction(c, c.smithitem, c.smithremove, c.smithremoveamount, c.smithmaketimes, c.smithxp);
    	}
    
    	private void checkSteelCannonBalls(Player c, int level, int amounttomake, String type) {
    		c.smithremove = 2353;
    		if (type.equals("2") && level >= 31) // cannonballs
    		{
    			c.smithxp = 15;
    			c.smithitem = 2;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		}
    		doAction(c, c.smithitem, c.smithremove, c.smithremoveamount, c.smithmaketimes, c.smithxp);
    	}
    
    	private void checkSteel(Player c, int level, int amounttomake, String type) {
    		c.smithremove = 2353;
    		if (type.equals("1353") && level >= 31) // Axe
    		{
    			c.smithxp = 38;
    			c.smithitem = 1353;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1207") && level >= 30) // Dagger
    		{
    			c.smithxp = 50;
    			c.smithitem = 1207;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1424") && level >= 32) // Mace
    		{
    			c.smithxp = 50;
    			c.smithitem = 1424;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1141") && level >= 33) // Med helm
    		{
    			c.smithxp = 50;
    			c.smithitem = 1141;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("821") && level >= 34) // Dart tips
    		{
    			c.smithxp = 50;
    			c.smithitem = 821;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1281") && level >= 34) // Sword (s)
    		{
    			c.smithxp = 50;
    			c.smithitem = 1281;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1539") && level >= 34) // Nails
    		{
    			c.smithxp = 50;
    			c.smithitem = 1539;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("41") && level >= 35) // Arrow tips
    		{
    			c.smithxp = 50;
    			c.smithitem = 41;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1325") && level >= 35)// Scim
    		{
    			c.smithxp = 75;
    			c.smithitem = 1325;
    			c.smithremoveamount = 2;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1295") && level >= 36) // Longsword
    		{
    			c.smithxp = 75;
    			c.smithitem = 1295;
    			c.smithremoveamount = 2;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("865") && level >= 37) // Knives
    		{
    			c.smithxp = 50;
    			c.smithitem = 865;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1157") && level >= 37) // Full Helm
    		{
    			c.smithxp = 75;
    			c.smithitem = 1157;
    			c.smithremoveamount = 2;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1177") && level >= 38) // Square shield
    		{
    			c.smithxp = 75;
    			c.smithitem = 1177;
    			c.smithremoveamount = 2;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1339") && level >= 39) // Warhammer
    		{
    			c.smithxp = 113;
    			c.smithitem = 1339;
    			c.smithremoveamount = 3;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1365") && level >= 40) // Battle axe
    		{
    			c.smithxp = 113;
    			c.smithitem = 1365;
    			c.smithremoveamount = 3;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1105") && level >= 41) // Chain
    		{
    			c.smithxp = 113;
    			c.smithitem = 1105;
    			c.smithremoveamount = 3;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1193") && level >= 42) // Kite
    		{
    			c.smithxp = 113;
    			c.smithitem = 1193;
    			c.smithremoveamount = 3;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("3097") && level >= 43) // Claws
    		{
    			c.smithxp = 75;
    			c.smithitem = 3097;
    			c.smithremoveamount = 2;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1311") && level >= 44) // 2h Sword
    		{
    			c.smithxp = 113;
    			c.smithitem = 1311;
    			c.smithremoveamount = 3;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1069") && level >= 46) // Platelegs
    		{
    			c.smithxp = 113;
    			c.smithitem = 1069;
    			c.smithremoveamount = 3;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1083") && level >= 46) // PlateSkirt
    		{
    			c.smithxp = 113;
    			c.smithitem = 1083;
    			c.smithremoveamount = 3;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1119") && level >= 48) // Platebody
    		{
    			c.smithxp = 188;
    			c.smithitem = 1119;
    			c.smithremoveamount = 5;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("9378") && level >= 33) // bolts
    		{
    			c.smithxp = 38;
    			c.smithitem = 9378;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else {
    			c.getActionSender().sendMessage("You don't have a high enough level to make this Item!");
    			return;
    		}
    		doAction(c, c.smithitem, c.smithremove, c.smithremoveamount, c.smithmaketimes, c.smithxp);
    	}
    
    	private void checkMith(Player c, int level, int amounttomake, String type) {
    		c.smithremove = 2359;
    		if (type.equals("2") && level >= 31) // cannonballs
    		{
    			c.smithxp = 15;
    			c.smithitem = 2;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		}
    		if (type.equals("1355") && level >= 51) // Axe
    		{
    			c.smithxp = 50;
    			c.smithitem = 1355;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1209") && level >= 50) // Dagger
    		{
    			c.smithxp = 50;
    			c.smithitem = 1209;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1428") && level >= 52) // Mace
    		{
    			c.smithxp = 50;
    			c.smithitem = 1428;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1143") && level >= 53) // Med helm
    		{
    			c.smithxp = 50;
    			c.smithitem = 1143;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("822") && level >= 54) // Dart tips
    		{
    			c.smithxp = 50;
    			c.smithitem = 822;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1285") && level >= 54) // Sword (s)
    		{
    			c.smithxp = 50;
    			c.smithitem = 1285;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("4822") && level >= 54) // Nails
    		{
    			c.smithxp = 50;
    			c.smithitem = 4822;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("42") && level >= 55) // Arrow tips
    		{
    			c.smithxp = 50;
    			c.smithitem = 42;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1329") && level >= 55)// Scim
    		{
    			c.smithxp = 100;
    			c.smithitem = 1329;
    			c.smithremoveamount = 2;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1299") && level >= 56) // Longsword
    		{
    			c.smithxp = 100;
    			c.smithitem = 1299;
    			c.smithremoveamount = 2;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("866") && level >= 57) // Knives
    		{
    			c.smithxp = 50;
    			c.smithitem = 866;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1159") && level >= 57) // Full Helm
    		{
    			c.smithxp = 100;
    			c.smithitem = 1159;
    			c.smithremoveamount = 2;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1181") && level >= 58) // Square shield
    		{
    			c.smithxp = 100;
    			c.smithitem = 1181;
    			c.smithremoveamount = 2;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1343") && level >= 59) // Warhammer
    		{
    			c.smithxp = 150;
    			c.smithitem = 1343;
    			c.smithremoveamount = 3;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1369") && level >= 60) // Battle axe
    		{
    			c.smithxp = 150;
    			c.smithitem = 1369;
    			c.smithremoveamount = 3;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1109") && level >= 61) // Chain
    		{
    			c.smithxp = 150;
    			c.smithitem = 1109;
    			c.smithremoveamount = 3;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1197") && level >= 62) // Kite
    		{
    			c.smithxp = 150;
    			c.smithitem = 1197;
    			c.smithremoveamount = 3;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("3099") && level >= 63) // Claws
    		{
    			c.smithxp = 100;
    			c.smithitem = 3099;
    			c.smithremoveamount = 2;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1315") && level >= 64) // 2h Sword
    		{
    			c.smithxp = 150;
    			c.smithitem = 1315;
    			c.smithremoveamount = 3;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1071") && level >= 66) // Platelegs
    		{
    			c.smithxp = 150;
    			c.smithitem = 1071;
    			c.smithremoveamount = 3;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1085") && level >= 66) // PlateSkirt
    		{
    			c.smithxp = 150;
    			c.smithitem = 1085;
    			c.smithremoveamount = 3;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1121") && level >= 68) // Platebody
    		{
    			c.smithxp = 250;
    			c.smithitem = 1121;
    			c.smithremoveamount = 5;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("9379") && level >= 53) // bolts
    		{
    			c.smithxp = 50;
    			c.smithitem = 9379;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else {
    			c.getActionSender().sendMessage("You don't have a high enough level to make this Item!");
    			return;
    		}
    		doAction(c, c.smithitem, c.smithremove, c.smithremoveamount, c.smithmaketimes, c.smithxp);
    	}
    
    	private void checkRune(Player c, int level, int amounttomake, String type) {
    		c.smithremove = 2363;
    		if (type.equals("2") && level >= 31) // cannonballs
    		{
    			c.smithxp = 15;
    			c.smithitem = 2;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		}
    		if (type.equals("1359") && level >= 86) // Axe
    		{
    			c.smithxp = 75;
    			c.smithitem = 1359;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1213") && level >= 85) // Dagger
    		{
    			c.smithxp = 75;
    			c.smithitem = 1213;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1432") && level >= 87) // Mace
    		{
    			c.smithxp = 75;
    			c.smithitem = 1432;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1147") && level >= 88) // Med helm
    		{
    			c.smithxp = 75;
    			c.smithitem = 1147;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("824") && level >= 89) // Dart tips
    		{
    			c.smithxp = 75;
    			c.smithitem = 824;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1289") && level >= 89) // Sword (s)
    		{
    			c.smithxp = 75;
    			c.smithitem = 1289;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("4824") && level >= 89) // Nails
    		{
    			c.smithxp = 75;
    			c.smithitem = 4824;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("44") && level >= 90) // Arrow tips
    		{
    			c.smithxp = 75;
    			c.smithitem = 44;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1333") && level >= 90)// Scim
    		{
    			c.smithxp = 150;
    			c.smithitem = 1333;
    			c.smithremoveamount = 2;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1303") && level >= 91) // Longsword
    		{
    			c.smithxp = 150;
    			c.smithitem = 1303;
    			c.smithremoveamount = 2;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("868") && level >= 92) // Knives
    		{
    			c.smithxp = 75;
    			c.smithitem = 868;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1163") && level >= 92) // Full Helm
    		{
    			c.smithxp = 150;
    			c.smithitem = 1163;
    			c.smithremoveamount = 2;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1185") && level >= 93) // Square shield
    		{
    			c.smithxp = 150;
    			c.smithitem = 1185;
    			c.smithremoveamount = 2;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1347") && level >= 94) // Warhammer
    		{
    			c.smithxp = 225;
    			c.smithitem = 1347;
    			c.smithremoveamount = 3;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1373") && level >= 95) // Battle axe
    		{
    			c.smithxp = 225;
    			c.smithitem = 1373;
    			c.smithremoveamount = 3;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1113") && level >= 96) // Chain
    		{
    			c.smithxp = 225;
    			c.smithitem = 1113;
    			c.smithremoveamount = 3;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1201") && level >= 97) // Kite
    		{
    			c.smithxp = 225;
    			c.smithitem = 1201;
    			c.smithremoveamount = 3;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("3101") && level >= 98) // Claws
    		{
    			c.smithxp = 150;
    			c.smithitem = 3101;
    			c.smithremoveamount = 2;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1319") && level >= 99) // 2h Sword
    		{
    			c.smithxp = 225;
    			c.smithitem = 1319;
    			c.smithremoveamount = 3;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1079") && level >= 99) // Platelegs
    		{
    			c.smithxp = 225;
    			c.smithitem = 1079;
    			c.smithremoveamount = 3;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1093") && level >= 99) // PlateSkirt
    		{
    			c.smithxp = 225;
    			c.smithitem = 1093;
    			c.smithremoveamount = 3;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1127") && level >= 99) // Platebody
    		{
    			c.smithxp = 313;
    			c.smithitem = 1127;
    			c.smithremoveamount = 5;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("9381") && level >= 88) // bolts
    		{
    			c.smithxp = 75;
    			c.smithitem = 9381;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else {
    			c.getActionSender().sendMessage("You don't have a high enough level to make this Item!");
    			return;
    		}
    		doAction(c, c.smithitem, c.smithremove, c.smithremoveamount, c.smithmaketimes, c.smithxp);
    	}
    
    	private void checkAddy(Player c, int level, int amounttomake, String type) {
    		c.smithremove = 2361;
    		if (type.equals("2") && level >= 31) // cannonballs
    		{
    			c.smithxp = 15;
    			c.smithitem = 2;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		}
    		if (type.equals("1357") && level >= 71) // Axe
    		{
    			c.smithxp = 70;
    			c.smithitem = 1357;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1211") && level >= 70) // Dagger
    		{
    			c.smithxp = 63;
    			c.smithitem = 1211;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1430") && level >= 72) // Mace
    		{
    			c.smithxp = 70;
    			c.smithitem = 1430;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1145") && level >= 73) // Med helm
    		{
    			c.smithxp = 70;
    			c.smithitem = 1145;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("823") && level >= 74) // Dart tips
    		{
    			c.smithxp = 70;
    			c.smithitem = 823;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1287") && level >= 74) // Sword (s)
    		{
    			c.smithxp = 70;
    			c.smithitem = 1287;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("4823") && level >= 74) // Nails
    		{
    			c.smithxp = 70;
    			c.smithitem = 4823;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("43") && level >= 75) // Arrow tips
    		{
    			c.smithxp = 70;
    			c.smithitem = 43;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1331") && level >= 75)// Scim
    		{
    			c.smithxp = 135;
    			c.smithitem = 1331;
    			c.smithremoveamount = 2;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1301") && level >= 76) // Longsword
    		{
    			c.smithxp = 135;
    			c.smithitem = 1301;
    			c.smithremoveamount = 2;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("867") && level >= 77) // Knives
    		{
    			c.smithxp = 70;
    			c.smithitem = 867;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1161") && level >= 77) // Full Helm
    		{
    			c.smithxp = 135;
    			c.smithitem = 1161;
    			c.smithremoveamount = 2;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1183") && level >= 78) // Square shield
    		{
    			c.smithxp = 135;
    			c.smithitem = 1183;
    			c.smithremoveamount = 2;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1345") && level >= 79) // Warhammer
    		{
    			c.smithxp = 200;
    			c.smithitem = 1345;
    			c.smithremoveamount = 3;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1371") && level >= 80) // Battle axe
    		{
    			c.smithxp = 200;
    			c.smithitem = 1371;
    			c.smithremoveamount = 3;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1111") && level >= 81) // Chain
    		{
    			c.smithxp = 200;
    			c.smithitem = 1111;
    			c.smithremoveamount = 3;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1199") && level >= 82) // Kite
    		{
    			c.smithxp = 200;
    			c.smithitem = 1199;
    			c.smithremoveamount = 3;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("3100") && level >= 83) // Claws
    		{
    			c.smithxp = 135;
    			c.smithitem = 3100;
    			c.smithremoveamount = 2;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1317") && level >= 84) // 2h Sword
    		{
    			c.smithxp = 198;
    			c.smithitem = 1317;
    			c.smithremoveamount = 3;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1073") && level >= 86) // Platelegs
    		{
    			c.smithxp = 198;
    			c.smithitem = 1073;
    			c.smithremoveamount = 3;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1091") && level >= 86) // PlateSkirt
    		{
    			c.smithxp = 198;
    			c.smithitem = 1091;
    			c.smithremoveamount = 3;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1123") && level >= 88) // Platebody
    		{
    			c.smithxp = 325;
    			c.smithitem = 1123;
    			c.smithremoveamount = 5;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("9380") && level >= 73) // bolts
    		{
    			c.smithxp = 63;
    			c.smithitem = 9380;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else {
    			c.getActionSender().sendMessage("You don't have a high enough level to make this Item!");
    			return;
    		}
    		doAction(c, c.smithitem, c.smithremove, c.smithremoveamount, c.smithmaketimes, c.smithxp);
    	}
    
    	private void checkBronze(Player c, int level, int amounttomake, String type) {
    		if (type.equals("2") && level >= 31) // cannonballs
    		{
    			c.smithxp = 15;
    			c.smithitem = 2;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		}
    		if (type.equals("1351") && level >= 1) {
    			c.smithxp = 13;
    			c.smithitem = 1351;
    			c.smithremove = 2349;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1205") && level >= 1) {
    			c.smithxp = 13;
    			c.smithitem = 1205;
    			c.smithremove = 2349;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1422") && level >= 2) {
    			c.smithxp = 13;
    			c.smithitem = 1422;
    			c.smithremove = 2349;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1139") && level >= 3) {
    			c.smithxp = 13;
    			c.smithitem = 1139;
    			c.smithremove = 2349;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("819") && level >= 4) {
    			c.smithxp = 13;
    			c.smithitem = 819;
    			c.smithremove = 2349;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1277") && level >= 4) {
    			c.smithxp = 13;
    			c.smithitem = 1277;
    			c.smithremove = 2349;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("4819") && level >= 4) {
    			c.smithxp = 13;
    			c.smithitem = 4819;
    			c.smithremove = 2349;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("39") && level >= 5) {
    			c.smithxp = 13;
    			c.smithitem = 39;
    			c.smithremove = 2349;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1321") && level >= 5) {
    			c.smithxp = 25;
    			c.smithitem = 1321;
    			c.smithremove = 2349;
    			c.smithremoveamount = 2;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1291") && level >= 6) {
    			c.smithxp = 25;
    			c.smithitem = 1291;
    			c.smithremove = 2349;
    			c.smithremoveamount = 2;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("864") && level >= 7) {
    			c.smithxp = 25;
    			c.smithitem = 864;
    			c.smithremove = 2349;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1155") && level >= 7) {
    			c.smithxp = 25;
    			c.smithitem = 1155;
    			c.smithremove = 2349;
    			c.smithremoveamount = 2;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1173") && level >= 8) {
    			c.smithxp = 25;
    			c.smithitem = 1173;
    			c.smithremove = 2349;
    			c.smithremoveamount = 2;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1337") && level >= 9) {
    			c.smithxp = 38;
    			c.smithitem = 1337;
    			c.smithremove = 2349;
    			c.smithremoveamount = 3;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1375") && level >= 10) {
    			c.smithxp = 38;
    			c.smithitem = 1375;
    			c.smithremove = 2349;
    			c.smithremoveamount = 3;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1103") && level >= 11) {
    			c.smithxp = 38;
    			c.smithitem = 1103;
    			c.smithremove = 2349;
    			c.smithremoveamount = 3;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1189") && level >= 12) {
    			c.smithxp = 38;
    			c.smithitem = 1189;
    			c.smithremove = 2349;
    			c.smithremoveamount = 3;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("3095") && level >= 13) {
    			c.smithxp = 25;
    			c.smithitem = 3095;
    			c.smithremove = 2349;
    			c.smithremoveamount = 2;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1307") && level >= 14) {
    			c.smithxp = 38;
    			c.smithitem = 1307;
    			c.smithremove = 2349;
    			c.smithremoveamount = 3;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1075") && level >= 16) {
    			c.smithxp = 38;
    			c.smithitem = 1075;
    			c.smithremove = 2349;
    			c.smithremoveamount = 3;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1087") && level >= 16) {
    			c.smithxp = 38;
    			c.smithitem = 1087;
    			c.smithremove = 2349;
    			c.smithremoveamount = 3;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("1117") && level >= 18) {
    			c.smithxp = 63;
    			c.smithitem = 1117;
    			c.smithremove = 2349;
    			c.smithremoveamount = 5;
    			c.smithmaketimes = amounttomake;
    		} else if (type.equals("9375") && level >= 3) // bolts
    		{
    			c.smithxp = 12;
    			c.smithitem = 9375;
    			c.smithremove = 2349;
    			c.smithremoveamount = 1;
    			c.smithmaketimes = amounttomake;
    		} else {
    			c.getActionSender().sendMessage("You don't have a high enough level to make this Item!");
    			return;
    		}
    		doAction(c, c.smithitem, c.smithremove, c.smithremoveamount, c.smithmaketimes, amounttomake);
    	}
    [Today 01:29 AM] RSTrials: Nice 0.97 Win/Loss Ratio luke. That's pretty bad.
    [Today 01:30 AM] Luke132: Ok u fucking moron i forgot i could influence misc.random
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  10. #7  
    Wut can u say when theres nothin to tell

    Tyrant's Avatar
    Join Date
    Jul 2013
    Age
    19
    Posts
    1,509
    Thanks given
    626
    Thanks received
    379
    Rep Power
    905
    Thanks for the contribution.

    offtopic; not sure what sources you looked at.. probably some very old PI's




    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  11. #8  
    \_(ツ)_/


    Join Date
    Sep 2014
    Age
    21
    Posts
    2,512
    Thanks given
    1,461
    Thanks received
    1,418
    Rep Power
    5000
    Quote Originally Posted by Tyrant View Post
    Thanks for the contribution.

    offtopic; not sure what sources you looked at.. probably some very old PI's
    You'd be surprised how many 'modern' releases still contain code like this lol.

    Dawntained - Autumn '19

    "There is no such entity as a 'PI client' " - Albert Einstein

    Quote Originally Posted by soccerchamp149 View Post
    whats eclipse lol
    Reply With Quote  
     

  12. #9  
    Owner of DemonX MickeySco's Avatar
    Join Date
    Jul 2017
    Posts
    9
    Thanks given
    0
    Thanks received
    2
    Rep Power
    0
    Something a lot of people over look. Thanks for your contribution, will be using this haha!
    Reply With Quote  
     

  13. #10  
    Registered Member
    Greg's Avatar
    Join Date
    Jun 2010
    Posts
    1,017
    Thanks given
    167
    Thanks received
    483
    Rep Power
    787
    Damn that sucks, I did something similar with my enum but you can remove a lot of that data as it's consistent through the naming of items.
    Code:
    public static int getItemAmount(Item item) {
    		String name = item.getDefinition().getName().toLowerCase();
    		if(name.contains("cannon")) {
    			return 40;
    		} else if(name.contains("knife")) {
    			return 5;
    		} else if(name.contains("arrowtips") || name.contains("nails")) {
    			return 15;
    		} else if(name.contains("dart tip") || name.contains("bolts")) {
    			return 10;
    		}
    		return 1;
    	}
    
    	public static int getBarAmount(Item item) {
    		String name = item.getDefinition().getName().toLowerCase();
    		if(name.contains("scimitar") || name.contains("claws") || name.contains("longsword") || name.contains("sq shield") || name.contains("full helm")) {
    			return 2;
    		} else if(name.contains("2h sword") || name.contains("warhammer") || name.contains("battleaxe") || name.contains("chainbody") || name.contains("platelegs") || name.contains("plateskirt") || name.contains("kiteshield")) {
    			return 3;
    		} else if(name.contains("platebody")) {
    			return 5;
    		}
    		return 1;
    	}
    
    	public enum SmithData {
    		BRONZE_DAGGER(1205, 12.5, 1),
    		BRONZE_HATCHET(1351, 12.5, 1),
    		BRONZE_MACE(1422, 12.5, 2),
    		BRONZE_MED_HELM(1139, 12.5, 3),
    		BRONZE_BOLTS_UNF(9375, 12.5, 3),
    		BRONZE_SWORD(1277, 12.5, 4),
    		BRONZE_NAILS(4819, 12.5, 4),
    		BRONZE_WIRE(1794,12.5,4),
    		BRONZE_DART_TIPS(819, 12.5, 4),
    		BRONZE_ARROW_TIPS(39,12.5,5),
    		BRONZE_SCIMITAR(1321,25,5),
    		BRONZE_PICKAXE(1265,25,5),
    		BRONZE_LONGSWORD(1291,12.5,6),
    		BRONZE_LIMBS(9420,12.5,6),
    		BRONZE_FULL_HELM(1155,25,7),
    		BRONZE_THROWING_KNIVES(864,12.5,7),
    		BRONZE_SQUARE_SHIELD(1173,25,8),
    		BRONZE_WARHAMMER(1337,37.5,9),
    		BRONZE_BATTLEAXE(1375,37.5,10),
    		BRONZE_CHAINBODY(1103,37.5,11),
    		BRONZE_KITESHIELD(1189,37.5,12),
    		BRONZE_CLAWS(3095,25,13),
    		BRONZE_2H_SWORD(1307,37.5,14),
    		BRONZE_PLATESKIRT(1087,37.5,16),
    		BRONZE_PLATELEGS(1075,37.5,16),
    		BRONZE_PLATEBODY(1117,37.5,18),
    		IRON_DAGGER(1203,25,15),
    		IRON_HATCHET(1349,25,16),
    		IRON_MACE(1420,25,17),
    		IRON_SPIT(7225,25,17),
    		IRON_MED_HELM(1137,25,18),
    		IRON_BOLTS_UNF(9377,25,18),
    		IRON_SWORD(1279,25,19),
    		IRON_NAILS(4820,25,19),
    		IRON_DART_TIPS(820,25,20),
    		IRON_ARROW_TIPS(40,25,20),
    		IRON_SCIMITAR(1323,50,20),
    		IRON_PACKAXE(1267,50,20),
    		IRON_LONGSWORD(1293,50,21),
    		IRON_FULLHELM(1153,50,22),
    		IRON_THROWING_KNIVES(863,25,22),
    		IRON_SQUARE_SHIELD(1175,50,23),
    		IRON_LIMBS(9423,25,23),
    		IRON_WARHAMMER(1335,75,24),
    		IRON_BATTLEAXE(1363,75,25),
    		IRON_CHAINBODY(1101,75,26),
    		IRON_OIL_lATERN_FRAME(4540,25,26),
    		IRON_KITESHIELD(1191,75,27),
    		IRON_CLAWS(3096,50,28),
    		IRON_2H_SWORD(1309,75,29),
    		IRON_PLATESKIRT(1081,75,31),
    		IRON_PLATELEGS(1067,75,31),
    		IRON_PLATE_BODY(1115,125,33),
    		STEEL_DAGGER(1207,37.5,30),
    		STEEL_HATCHET(1353,37.5,31),
    		STEEL_MACE(1424,37.5,32),
    		STEEL_MED_HELM(1141,37.5,33),
    		STEEL_BOLTS_UNF(9378,37.5,33),
    		STEEL_NAILS(1539,37.5,34),
    		STEEL_SWORD(1281,37.5,34),
    		STEEL_DART_TIPS(821,37.5,34),
    		STEEL_ARROW_TIPS(41,37.5,35),
    		STEEL_SCIMITAR(1325,75,35),
    		STEEL_PICKAXE(1269,75,35),
    		STEEL_LONGSWORD(1295,75,36),
    		STEEL_STUDS(2370,37.5,36),
    		STEEL_CROSSBOW_LIMBS(9425,37.5,36),
    		STEEL_FULL_HELM(1157,75,37),
    		STEEL_KNIFES(865,37.5,37),
    		STEEL_SQUARE_SHIELD(1177,75,38),
    		STEEL_WARHAMMER(1339,112.5,39),
    		STEEL_BATTLEAXE(1365,112.5,40),
    		STEEL_CHAIN_BODY(1105,112.5,41),
    		STEEL_KITESHIELD(1193,112.5,42),
    		CANNON_BALL(2,25.6,35),
    		STEEL_CLAWS(3097,75,43),
    		STEEL_2H_SWORD(1311,112.5,44),
    		STEEL_PLATESKIRT(1084,112.5,46),
    		STEEL_PLATELEGS(1069,112.5,46),
    		STEEL_PLATEBODY(1119,187.5,48),
    		MITHRIL_DAGGER(1209,50,50),
    		MITHRIL_HATCHET(1355,50,51),
    		MITHRIL_MACE(1428,50,52),
    		MITHRIL_MED_HELM(1143,50,53),
    		MITHRIL_BOLTS_UNF(9379,50,53),
    		MITHRIL_SWORD(1285,50,54),
    		MITHRIL_NAILS(4822,50,54),
    		MITHRIL_DART_TIPS(822,50,54),
    		MITHRIL_ARROW_TIPS(42,50,55),
    		MITHRIL_SCIMITAR(1329,100,55),
    		MITHRIL_PICKAXE(1273,100,55),
    		MITHRIL_LONGSWORD(1299,100,56),
    		MITHRIL_LIMBS(9427,50,56),
    		MITHRIL_FULLHELM(1159,100,57),
    		MITHRIL_KNIVES(866,50,57),
    		MITHRIL_SQUARE_SHIELD(1181,100,58),
    		MITHRIL_WAR_HAMMER(1343,150,59),
    		MITHRIL_GRAPPLE_TIP(9416,50,59),
    		MITHRIL_BATTLEAXE(1369,150,60),
    		MITHRIL_CHAIN_BODY(1109,150,61),
    		MITHRIL_KITE_SHIELD(1197,150,62),
    		MITHRIL_CLAWS(3099,100,63),
    		MITHRIL_2H_SWORD(1315,150,64),
    		MITHRIL_PLATESKIRT(1085,150,66),
    		MITHRIL_PLATELEGS(1071,150,66),
    		MITHRIL_PLATEBODY(1121,250,68),
    		ADAMANT_DAGGER(1211,62.5,70),
    		ADAMANT_HATCHET(1357,62.5,71),
    		ADAMANT_MACE(1430,62.5,72),
    		ADAMANT_MED_HELM(1145,62.5,73),
    		ADAMANT_BOLTS_UNF(9380,62.5,73),
    		ADAMANT_SWORD(1287,62.5,74),
    		ADAMANT_NAILS(4823,62.5,74),
    		ADAMANT_DART_TIPS(823,62.5,74),
    		ADAMANT_ARROW_TIPS(43,62.5,75),
    		ADAMANT_SCIMITAR(1331,125,75),
    		ADAMANT_PICKAXE(1271,125,75),
    		ADAMANT_LONGSWORD(1301,125,76),
    		ADAMANT_LIMBS(9429,62.5,76),
    		ADAMANT_FULL_HELM(1161,125,77),
    		ADAMANT_KNIVES(867,62.5,77),
    		ADAMANT_SQUARE_SHIELD(1183,125,78),
    		ADAMANT_WAR_HAMMER(1345,187.5,79),
    		ADAMANT_BATTLEAXE(1371,187.5,80),
    		ADAMANT_CHAINBODY(1111,187.5,81),
    		ADAMANT_KITESHIELD(1199,187.5,82),
    		ADAMANT_CLAWS(3100,125,83),
    		ADAMANT_2H_SWORD(1317,187.5,84),
    		ADAMANT_PLATESKIRT(1091,187.5,86),
    		ADAMANT_PLATELEGS(1073,187.5,86),
    		ADAMANT_PLATEBODY(1123,312.5,88),
    		RUNE_DAGGER(1213,75,51),
    		RUNE_AXE(1359,75,85),
    		RUNE_MACE(1432,75,86),
    		RUNE_MED_HELM(1147,75,87),
    		RUNE_BOLTS_UNF(9381,75,88),
    		RUNE_SWORD(1289,75,89),
    		RUNE_NAILS(4824,75,89),
    		RUNE_DART_TIPS(824,75,90),
    		RUNE_ARROW_TIPS(44,75,90),
    		RUNE_SCIMITAR(1333,150,90),
    		RUNE_PICKAXE(1275,150,91),
    		RUNE_LONGSWORD(1303,150,91),
    		RUNE_LIMBS(9431,75,91),
    		RUNE_FULL_HELM(1163,150,92),
    		RUNE_RUNE_KNIVES(868,75,92),
    		RUNE_SQUARE_SHIELD(1185,150,93),
    		RUNE_WARHAMMER(1347,225,94),
    		RUNE_BATTLEAXE(1373,225,95),
    		RUNE_CHAINBODY(1113,225,96),
    		RUNE_KITESHIELD(1201,225,97),
    		RUNE_CLAWS(3101,150,98),
    		RUNE_2H_SWORD(1319,225,99),
    		RUNE_PLATESKIRT(1093,225,99),
    		RUNE_PLATELEGS(1079,225,99),
    		RUNE_PLATEBODY(1127,375,99);
    		
    		SmithData(int id, double experience, int levelReq) {
    			this.id = id;
    			this.experience = experience;
    			this.levelReq = levelReq;
    		}
    		
    		private int id, levelReq;
    		private double experience;
    		
    		public int getId() {
    			return this.id;
    		}
    		public int getLevelReq() {
    			return this.levelReq;
    		}
    		public double getExperience() {
    			return experience;
    		}
    		public static SmithData forId(Item item) {
    			return forId(item.getId());
    		}
    		public static SmithData forId(int id) {
    			for(SmithData data : SmithData.values()) {
    				if(data.getId() == id) {
    					return data;
    				}
    			}
    			return null;
    		}
    	}
    Reply With Quote  
     

Page 1 of 4 123 ... LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 11
    Last Post: 12-04-2015, 12:29 PM
  2. Selling ALL Music data (enum)
    By MrClassic in forum Selling
    Replies: 19
    Last Post: 08-02-2014, 03:03 PM
  3. Smithing data
    By Cadillac in forum Requests
    Replies: 1
    Last Post: 07-29-2014, 09:13 PM
  4. Removing Unneeded Data in Enum
    By Scott Perretta in forum Snippets
    Replies: 23
    Last Post: 12-20-2012, 06:48 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •