Thread: Item Reqs not working

Results 1 to 5 of 5
  1. #1 Item Reqs not working 
    Registered Member
    Join Date
    Apr 2016
    Posts
    103
    Thanks given
    2
    Thanks received
    3
    Rep Power
    11
    Code:
    	public void getRequirements(String itemName, int itemId) {
    		c.attackLevelReq = c.defenceLevelReq = c.strengthLevelReq = c.rangeLevelReq = c.magicLevelReq = 0;
    		if(itemName.contains("mystic") || itemName.contains("nchanted")) {
    			if(itemName.contains("staff")) {
    				c.magicLevelReq = 20;
    				c.attackLevelReq = 40;
    			} else {
    				c.magicLevelReq = 20;
    				c.defenceLevelReq = 20;
    			}
    		}
    		if (itemName.contains("chaotic")) {
    			c.attackLevelReq = 80;
    		}
    		if (itemName.contains("lime")) {
    			c.attackLevelReq = 99;
    			c.strengthLevelReq = 70;		
    
    		}
    		if (itemName.contains("lava")) {
    			c.attackLevelReq = 70;
    			c.strengthLevelReq = 70;		
    
    		}
    		if (itemName.contains("claws")) {
    			c.attackLevelReq = 60;		
    		}
    		if (itemName.contains("zuriel")) {
    			c.defenceLevelReq = 70;
    			c.magicLevelReq = 70;		
    		}
    		if (itemName.contains("morrigan")) {
    			c.defenceLevelReq = 75;
    			c.rangeLevelReq = 75;		
    		}
    		if (itemName.contains("statius")) {
    			c.defenceLevelReq = 75;
    			c.strengthLevelReq = 75;		
    		}
    		if (itemName.contains("vesta")) {
    			c.defenceLevelReq = 75;
    			c.strengthLevelReq = 77;		
    		}
    		if (itemName.contains("spirit")) {
    			if (itemName.contains("serpentine")) {
    			c.defenceLevelReq = 75;		
    		}
    		if (itemName.contains("infinity")) {
    			c.magicLevelReq = 50;
    			c.defenceLevelReq = 20;		
    		}
    		if(itemName.contains("splitbark")) {
    			c.magicLevelReq = 40;
    			c.defenceLevelReq = 40;
    		}
    		if (itemName.contains("rune c'bow")) {
    			c.rangeLevelReq = 61;
    		}
    		if(itemName.contains("rune platelegs") || itemName.contains("rune platebody") || itemName.contains("rune plate")) {
    			c.defenceLevelReq = 40;
    		}
    		if (itemName.contains("black d'hide")) {
    			c.rangeLevelReq = 70;
    		}
    		if (itemName.contains("dragonfire")) {
    			c.defenceLevelReq = 70;
    		}
    		if (itemName.contains("granite")) {
    			c.defenceLevelReq = 50;
    		}
    		if (itemName.contains("armadyl")) {
    			c.defenceLevelReq = 70;
    		}
    		if (itemName.contains("tzhaar-ket-om")) {
    			c.strengthLevelReq = 60;
    		}
    		if (itemName.contains("red d'hide")) {
    			c.rangeLevelReq = 60;
    		}
    		if (itemName.contains("blue d'hide")) {
    			c.rangeLevelReq = 50;
    		}
    		if (itemName.contains("green d'hide")) {
    			c.rangeLevelReq = 40;
    		}
    		if (itemName.contains("initiate")) {
    			c.defenceLevelReq = 20;
    		}
    		if(itemName.contains("bronze")) {
    			if(!itemName.contains("knife") && !itemName.contains("dart") && !itemName.contains("javelin") && !itemName.contains("thrownaxe")) {
    				c.rangeLevelReq = 1;
    			}
    			return;
    		}
    		if(itemName.contains("iron")) {
    			if(!itemName.contains("knife") && !itemName.contains("dart") && !itemName.contains("javelin") && !itemName.contains("thrownaxe")) {
    				c.rangeLevelReq = 1;
    			}	
    			return;
    		}
    		if(itemName.contains("steel")) {	
    			if(!itemName.contains("knife") && !itemName.contains("dart") && !itemName.contains("javelin") && !itemName.contains("thrownaxe")) {
    				c.rangeLevelReq = 5;
    			}
    			return;
    		}
    		if(itemName.contains("black")) {
    			if(!itemName.contains("knife") && !itemName.contains("dart") && !itemName.contains("javelin") && !itemName.contains("thrownaxe") && !itemName.contains("vamb") && !itemName.contains("chap")) {
    				c.rangeLevelReq = 10;
    			}
    			return;
    		}
    		if(itemName.contains("mithril")) {
    			if(!itemName.contains("knife") && !itemName.contains("dart") && !itemName.contains("javelin") && !itemName.contains("thrownaxe")) {
    				c.attackLevelReq = 20;
    			}
    			return;
    		}
    		if(itemName.contains("adamant")) {
    			if(!itemName.contains("knife") && !itemName.contains("dart") && !itemName.contains("javelin") && !itemName.contains("thrownaxe")) {
    				c.attackLevelReq = 30;
    			}
    			return;
    		}
    		if(itemName.contains("rune")) {
    			if(!itemName.contains("knife") && !itemName.contains("dart") && !itemName.contains("javelin") && !itemName.contains("thrownaxe") && !itemName.contains("'bow")) {
    				c.attackLevelReq = 40;
    			}
    			return;
    		}
    		if(itemName.contains("dragon")) {
    			if (!itemName.contains("nti-") && !itemName.contains("fire")) {
    				c.attackLevelReq = 60;
    			return;
    			}
    		}
    		if(itemName.contains("crystal")) {
    			if(itemName.contains("shield")) {	
    				c.defenceLevelReq = 1;
    			} else {
    				c.rangeLevelReq = 70;
    			}
    			return;
    		}
    		if(itemName.contains("ahrim")) {
    			if(itemName.contains("staff")) {
    				c.magicLevelReq = 70;
    				c.attackLevelReq = 70;
    			} else {
    				c.magicLevelReq = 70;
    				c.defenceLevelReq = 70;
    			}
    		}
    		if(itemName.contains("karil")) {
    			if(itemName.contains("crossbow")) {
    				c.rangeLevelReq = 70;
    			} else {
    				c.rangeLevelReq = 70;
    				c.defenceLevelReq = 1;
    			}
    		}
    		if(itemName.contains("godsword")) {
    			c.attackLevelReq = 75;
    		}
    		if (itemName.contains("3rd age") && !itemName.contains("amulet")) {
    			c.defenceLevelReq = 60;
    		}
    		if(itemName.contains("verac") || itemName.contains("guthan") || itemName.contains("dharok") || itemName.contains("torag")) {
    
    			if(itemName.contains("hammers")) {
    				c.attackLevelReq = 70;
    				c.strengthLevelReq = 70;
    			} else if(itemName.contains("axe")) {
    				c.attackLevelReq = 70;
    				c.strengthLevelReq = 70;
    			} else if(itemName.contains("warspear")) {
    				c.attackLevelReq = 70;
    				c.strengthLevelReq = 70;
    			} else if(itemName.contains("flail")) {
    				c.attackLevelReq = 70;
    				c.strengthLevelReq = 70;
    			} else {
    				c.defenceLevelReq = 1;
    			}
    		}
    			
    		switch(itemId) {
    		
    			case 8839:
    			case 8840:
    			case 8842:
    			case 11663:
    			case 11664:
    			case 11665:
    			c.attackLevelReq = 40;
    			c.rangeLevelReq = 40;
    			c.strengthLevelReq = 40;
    			c.magicLevelReq = 40;
    			c.defenceLevelReq = 40;
    			return;
    			case 10551:
    			case 2503:
    			case 2501:
    			case 2499:
    			case 1135:
    			c.defenceLevelReq = 20;
    			return;
    			case 11235:
    			case 6522:
    			c.rangeLevelReq = 60;
    			break;
    			case 6524:
    			case 11732: //Dboots
    			c.defenceLevelReq = 60;
    			break;
    			case 11284:
    			c.defenceLevelReq = 75;
    			return;
    			case 861:
    			c.rangeLevelReq = 50;
    			break;
    			case 10828:
    			c.defenceLevelReq = 55;
    			break;
    			case 11724:
    			case 11726:
    			case 11728:
    				c.defenceLevelReq = 65;
    			break;
    			case 3751:
    			case 3749:
    			case 3755:
    			c.defenceLevelReq = 20;
    			break;
    			
    			case 7462:
    			case 7461:
    			c.defenceLevelReq = 20;
    			break;
    			case 8846:
    			c.defenceLevelReq = 5;
    			break;
    			case 8847:
    			c.defenceLevelReq = 10;
    			break;
    			case 8848:
    			c.defenceLevelReq = 20;
    			break;
    			case 8849:
    			c.defenceLevelReq = 30;
    			break;
    			case 8850:
    			c.defenceLevelReq = 40;
    			break;
    			case 20072:
    			c.defenceLevelReq = 60;
    			break;
    			
    			
    			case 7460:
    			c.defenceLevelReq = 20;
    			break;
    			
    			case 4716: //Dharok
    			case 4718:
    			case 4720:
    			case 4722:
    			case 4745: //Torag
    			case 4747:
    			case 4749:
    			case 4551:
    			case 4753: //Verac
    			case 4755:
    			case 4757:
    			case 4759:
    			case 4724: //Guthans
    			case 4726:
    			case 4728:
    			case 4730:
    			c.defenceLevelReq = 70;
    			c.attackLevelReq = 70;
    			c.strengthLevelReq = 70;
    			break;
    			case 4708: //Ahrim
    			case 4710:
    			case 4712:
    			case 4714:
    				c.magicLevelReq = 70;
    				c.defenceLevelReq = 70;
    				break;
    			case 4732: //Karil
    			case 4734:
    			case 4736:
    			case 4738:
    				c.rangeLevelReq = 70;
    				c.defenceLevelReq = 70;
    				break;
    			case 5698:
    			c.attackLevelReq = 60;
    			break;
    			
    			case 3748://Fremmy helm
    			c.defenceLevelReq = 45;
    			break;
    			
    			case 11730:
    			case 16000:
    			case 16002:
    			case 16004:
    			case 16006:	
    			case 16008:
    			case 16010:
    			case 16012:
    			case 16014:
    			c.attackLevelReq = 70;
    break;
    			case 16016:
    			case 16018:
    			case 16022:
    			c.attackLevelReq = 70;
    			c.strengthLevelReq = 70;
    			break;
    			case 1599:
    			c.attackLevelReq = 75;
    			break;
    			
    			case 837:
    			c.rangeLevelReq = 61;
    			break;
    			
    			case 4151: // if you don't want to use names 
    			c.attackLevelReq = 70;
    			return;
    			case 15999: //abby Tent
    			case 13272:
    			c.attackLevelReq = 75;
    			return;
    			case 4087: //dragon legs
    			case 4085: //d skirt
    			c.defenceLevelReq = 60;
    			return;
    			case 13263: //slayer
    				c.defenceLevelReq = 60;
    				break;
    				
    			case 15001: // if you don't want to use names 
    			c.magicLevelReq = 75;
    			return;
    			
    			case 15000: // if you don't want to use names 
    			c.magicLevelReq = 75;
    			return;
    
    			case 13742: // if you don't want to use names 
    			c.magicLevelReq = 70;
    			return;
    
    
    			case 13736: // ss
    			c.magicLevelReq = 70;
    			return;
    
    
    			case 13734: // if you don't want to use names 
    			c.magicLevelReq = 70;
    			return;
    
    
    			case 13740: // if you don't want to use names 
    			c.magicLevelReq = 70;
    			return;
    
    
    			case 13744: // if you don't want to use names 
    			c.magicLevelReq = 75;
    			return;
    
    
    			case 13748: // if you don't want to use names 
    			c.magicLevelReq = 75;
    			return;
    
    			case 6724: // seercull
    			c.rangeLevelReq = 60; // idk if that is correct
    			return;
    			case 4153:
    			c.attackLevelReq = 50;
    			c.strengthLevelReq = 50;
    			return;
    		}
    		}
    	}
    Code:
    	public static final boolean itemRequirements = true;
    Even tested this
    Code:
    public void getRequirements(String itemName, int itemId) {
    		c.attackLevelReq = c.defenceLevelReq = c.strengthLevelReq = c.hitpointsLevelReq = c.rangeLevelReq = c.prayerLevelReq = c.magicLevelReq = c.cookingLevelReq = c.wcLevelReq = c.fletchingLevelReq = c.fishingLevelReq = c.fmLevelReq = c.craftingLevelReq = c.smithingLevelReq = c.miningLevelReq = c.herbloreLevelReq = c.agilityLevelReq = c.thievingLevelReq = c.slayerLevelReq = c.farmingLevelReq = c.rcLevelReq = 0;
    			switch(itemId) {
    		
    	// ---------------- Basic --------------- //	
    		
    			/**
    			*Donator stuff
    			**/
    			case 13738: // spirit sheild
    			case 13740: // spirit sheild
    			case 13742: // spirit sheild
    			case 13744: // spirit sheild
    			c.defenceLevelReq = 65;
    			break;
    			case 13899: // statius hammer
    			case 13902: // vesta long
    			c.attackLevelReq = 70;
    			break;
    			case 15038: //chaotic longsword
    			case 15037: //chaotic rapier
    			c.attackLevelReq = 80;
    			break;
    			case 15040: //chaotic staff
    			c.magicLevelReq = 80;
    			break;
    			case 15285: // water cape
    			case 15284: // dragon cape
    			break;
    //rc pouchs
    			case 4213: //crystal bow new
    			c.rangeLevelReq = 70;
    			c.agilityLevelReq = 50;
    			break;
    			case 5510://med
    			c.rcLevelReq = 25;
    			break;
    			case 5512://large
    			c.rcLevelReq = 50;
    			break;
    			case 5514://med
    			c.rcLevelReq = 75;
    			break;
    			/**
    			*Steel armor
    			**/
    			
    			// Steel armor
    			case 1069: // Steel platelegs
    			case 1083: // Steel plateskirt
    			case 1105: // Steel chainbody
    			case 1119: // Steel pladebody
    			case 1141: // Steel med helm
    			case 1157: // Steel full helm
    			case 1177: // Steel sq shield
    			case 1193: // Steel kiteshield
    			case 4123: // Steel boots
    			case 8846: // Steel defender
    			c.defenceLevelReq = 5;
    			break;
    			// Steel weapons
    			case 1207: // Steel dagger
    			case 1241: // Steel spear
    			case 1269: // Steel pickaxe
    			case 1281: // Steel sword
    			case 1295: // Steel longsword
    			case 1311: // Steel 2h sword
    			case 1325: // Steel scimitar
    			case 1339: // Steel warhammer
    			case 1353: // Steel axe
    			case 1365: // Steel battleaxe
    			case 1424: // Steel mace
    			case 3097: // Steel claws
    			case 3194: // Steel halberd
    			c.attackLevelReq = 5;
    			break;
    			
    			/**
    			*Black / White armor
    			**/
    			
    			// Black armor
    			case 1077: // Black platelegs
    			case 2585: // Black platelegs (t)
    			case 2593: // Black platelegs (g)
    			case 1089: // Black plateskirt
    			case 3472: // Black plateskirt (t)
    			case 3473: // Black plateskirt (g)
    			case 1107: // Black chainbody
    			case 1125: // Black pladebody
    			case 2583: // Black pladebody (t)
    			case 2591: // Black pladebody (g)
    			case 1151: // Black med helm
    			case 1165: // Black full helm
    			case 2587: // Black full helm (t)
    			case 2595: // Black full helm (g)
    			case 1179: // Black sq shield
    			case 1195: // Black kiteshield
    			case 2589: // Black kiteshield (t)
    			case 2597: // Black kiteshield (g)
    			case 4125: // Black boots
    			case 8847: // Black defender
    			c.defenceLevelReq = 10;
    			break;
    			// Black weapons
    			case 1217: // Black dagger
    			case 4580: // Black spear
    			//case : // Black pickaxe
    			case 1283: // Black sword
    			case 1297: // Black longsword
    			case 1313: // Black 2h sword
    			case 1327: // Black scimitar
    			case 1341: // Black warhammer
    			case 1361: // Black axe
    			case 1367: // Black battleaxe
    			case 1426: // Black mace
    			case 3098: // Black claws
    			case 3196: // Black halberd
    			c.attackLevelReq = 10;
    			break;			
    
    			// White armor
    			case 6625: // White platelegs
    			case 6627: // White plateskirt
    			case 6615: // White chainbody
    			case 6617: // White pladebody
    			case 6621: // White med helm
    			case 6623: // White full helm
    			case 6631: // White sq shield
    			case 6633: // White kiteshield
    			case 6619: // White boots
    			case 6629: // White gloves
    			c.defenceLevelReq = 10;
    			break;
    			// White weapons
    			case 6591: // White dagger
    			case 6605: // White sword
    			case 6607: // White longsword
    			case 6609: // White 2h sword
    			case 6611: // White scimitar
    			case 6613: // White warhammer
    			case 6589: // White battleaxe
    			case 6601: // White mace
    			case 6587: // White claws
    			case 6599: // White halberd
    			c.attackLevelReq = 10;
    			break;
    			case 6603: // White magic staff
    			c.attackLevelReq = 10;
    			c.magicLevelReq = 10;
    			break;	
    			
    			/**
    			*Mithril armor
    			**/	
    		
    			// Mithril armor
    			case 1071: // Mithril platelegs
    			case 1085: // Mithril plateskirt
    			case 1109: // Mithril chainbody
    			case 1121: // Mithril pladebody
    			case 1143: // Mithril med helm
    			case 1159: // Mithril full helm
    			case 1181: // Mithril sq shield
    			case 1197: // Mithril kiteshield
    			case 4127: // Mithril boots
    			case 8848: // Mithril defender
    			c.defenceLevelReq = 20;
    			break;
    			// Mithril weapons
    			case 1209: // Mithril dagger
    			case 1243: // Mithril spear
    			case 1273: // Mithril pickaxe
    			case 1285: // Mithril sword
    			case 1299: // Mithril longsword
    			case 1315: // Mithril 2h sword
    			case 1329: // Mithril scimitar
    			case 1343: // Mithril warhammer
    			case 1355: // Mithril axe
    			case 1369: // Mithril battleaxe
    			case 1428: // Mithril mace
    			case 3099: // Mithril claws
    			case 3198: // Mithril halberd
    			c.attackLevelReq = 20;
    			break;		
    			
    			/**
    			*Adamant armor
    			**/				
    			
    			// Adamant armor
    			case 1073: // Adamant platelegs
    			case 2601: // Adamant platelegs (t)
    			case 2609: // Adamant platelegs (g)
    			case 1091: // Adamant plateskirt
    			case 3474: // Adamant plateskirt (t)
    			case 3475: // Adamant plateskirt (g)
    			case 1111: // Adamant chainbody
    			case 1123: // Adamant pladebody
    			case 2599: // Adamant pladebody (t)
    			case 2607: // Adamant pladebody (g)
    			case 1145: // Adamant med helm
    			case 1161: // Adamant full helm
    			case 2605: // Adamant full helm (t)
    			case 2613: // Adamant full helm (g)
    			case 1183: // Adamant sq shield
    			case 1199: // Adamant kiteshield
    			case 2603: // Adamant kiteshield (t)
    			case 2611: // Adamant kiteshield (g)
    			case 4129: // Adamant boots
    			case 8849: // Adamant defender
    			c.defenceLevelReq = 30;
    			break;
    			// Adamant weapons
    			case 1211: // Adamant dagger
    			case 1245: // Adamant spear
    			case 1271: // Adamant pickaxe
    			case 1287: // Adamant sword
    			case 1301: // Adamant longsword
    			case 1317: // Adamant 2h sword
    			case 1331: // Adamant scimitar
    			case 1345: // Adamant warhammer
    			case 1357: // Adamant axe
    			case 1371: // Adamant battleaxe
    			case 1430: // Adamant mace
    			case 3100: // Adamant claws
    			case 3200: // Adamant halberd
    			c.attackLevelReq = 30;
    			break;			
    			
    			/**
    			*Rune armor
    			**/			
    			
    			// Rune armor
    			case 1079: // Rune platelegs
    			case 2625: // Rune platelegs (t)
    			case 2617: // Rune platelegs (g)		
    			case 3483: // Gilded platelegs
    			case 2655: // Zamorak platelegs
    			case 2671: // Guthix platelegs
    			case 2663: // Saradomin platelegs			
    			case 1093: // Rune plateskirt
    			case 3477: // Rune plateskirt (t)
    			case 3476: // Rune plateskirt (g)
    			case 3485: // Gilded plateskirt
    			case 3478: // Zamorak plateskirt
    			case 3480: // Guthix plateskirt
    			case 3479: // Saradomin plateskirt	
    			case 1113: // Rune chainbody
    			case 1127: // Rune pladebody
    			case 2623: // Rune pladebody (t)
    			case 2615: // Rune pladebody (g)
    			case 3481: // Gilded platebody
    			case 2653: // Zamorak platebody
    			case 2669: // Guthix platebody
    			case 2661: // Saradomin platebody
    			case 1147: // Rune med helm
    			case 1163: // Rune full helm
    			case 2627: // Rune full helm (t)
    			case 2619: // Rune full helm (g)
    			case 3486: // Gilded full helm
    			case 2657: // Zamorak full helm
    			case 2673: // Guthix full helm
    			case 2665: // Saradomin full helm
    			case 1185: // Rune sq shield
    			case 1201: // Rune kiteshield
    			case 2629: // Rune kiteshield (t)
    			case 2621: // Rune kiteshield (g)
    			case 3488: // Gilded kiteshield
    			case 2659: // Zamorak kiteshield
    			case 2675: // Guthix kiteshield
    			case 2667: // Saradomin kiteshield
    			case 4131: // Rune boots
    			case 8850: // Rune defender
    			c.defenceLevelReq = 40;
    			break;
    			// Rune weapons
    			case 1213: // Rune dagger
    			case 1247: // Rune spear
    			case 1275: // Rune pickaxe
    			case 1289: // Rune sword
    			case 1303: // Rune longsword
    			case 1319: // Rune 2h sword
    			case 1333: // Rune scimitar
    			case 1347: // Rune warhammer
    			case 1359: // Rune axe
    			case 1373: // Rune battleaxe
    			case 1432: // Rune mace
    			case 3101: // Rune claws
    			case 3202: // Rune halberd
    			c.attackLevelReq = 40;
    			break;	
    			
    			/**
    			*Dragon armor
    			**/	
    
    			// Dragon armor
    			case 4087: // Dragon platelegs
    			case 4585: // Dragon plateskirt
    			case 3140: // Dragon chainbody
    			case 1149: // Dragon med helm
    			case 11335: // Dragon full helm
    			case 1187: // Dragon sq shield
    			case 11732: // Dragon boots
    			case 14479: //dragon plate
    			c.defenceLevelReq = 60;
    			break;
    			// Dragon weapons
    			case 15312: //dragon pick
    			case 1215: // Dragon dagger
    			case 5698: // Dragon dagger (p++)
    			case 1249: // Dragon spear
    			case 5730: // Dragon spear (p++)
    			case 1305: // Dragon longsword
    			case 7158: // Dragon 2h sword
    			case 4587: // Dragon scimitar
    			case 6739: // Dragon axe
    			case 1377: // Dragon battleaxe
    			case 1434: // Dragon mace
    				
    			case 13664: // Dragon claws
    			case 3204: // Dragon halberd'
    			case 14484: //dragon claw
    			c.attackLevelReq = 60;
    			break;	
    			
    	//------------ Ranging ----------//
    	
    			/**
    			*Bows / crossbows
    			**/		
    			case 853: // Maple shortbow
    			break;
    			case 857: // Yew shortbow
    				c.rangeLevelReq = 40;
    			break;
    			case 861: // Magic shortbow
    				c.rangeLevelReq = 50;
    			break;
    			case 11235: // Dark bow
    				c.rangeLevelReq = 60;
    			break;
    			case 11685: // twisted bow
    				c.rangeLevelReq = 75;
    			break;
    			case 4734: // Karil's crossbow
    				c.rangeLevelReq = 70;
    			break;
    			
    			case 9179: // Steel c'bow
    				c.rangeLevelReq = 26;
    			break;	
    			case 9181: // Mithril c'bow
    				c.rangeLevelReq = 36;
    			break;	
    			case 9183: // Adamant c'bow
    				c.rangeLevelReq = 46;
    			break;	
    			case 9185: // Rune c'bow
    				c.rangeLevelReq = 61;
    			break;		
    			
    			/**
    			*Arrows / bolts
    			**/		
    
    			case 886: // Steel arrows
    				c.rangeLevelReq = 10;
    			break;
    			case 888: // Mithril arrows
    				c.rangeLevelReq = 20;
    			break;
    			case 890: // Adamant arrows
    				c.rangeLevelReq = 30;
    			break;
    			case 892: // Rune arrows
    				c.rangeLevelReq = 40;
    			break;			
    			case 11212: // Dragon arrows
    				c.rangeLevelReq = 60;
    			break;			
    	
    			case 9141: // Steel bolts
    				c.rangeLevelReq = 26;
    			break;	
    			case 9142: // Mithril bolts
    			case 9338: // Emerald bolts
    			case 9241: // Emerald bolts (e)
    				c.rangeLevelReq = 36;
    			break;	
    			case 9143: // Adamant bolts
    			case 9339: // Ruby bolts
    			case 9242: // Ruby bolts (e)
    			case 9340: // Diamond bolts
    			case 9243: // Diamond bolts (e)
    				c.rangeLevelReq = 46;
    			break;	
    			case 9144: // Rune bolts
    			case 9341: // Dragon bolts
    			case 9244: // Dragon bolts (e)
    			case 9342: // Onyx bolts
    			case 9245: // Onyx bolts (e)
    				c.rangeLevelReq = 61;
    			break;				
    
    			/**
    			*Ranging equipment / armor
    			**/				
    			
    			case 2577: // Ranger boots
    			case 2581: // Robin hood hat
    				c.rangeLevelReq = 40;
    			break;
    			
    			/**
    			*Dragonhide armor
    			**/				
    			
    			// Green d'hide //
    			
    			case 1099: // Green d'hide chaps
    			case 7378: // Green d'hide chaps (g)
    			case 7380: // Green d'hide chaps (t)
    			case 1065: // Green d'hide vambs			
    			case 10079: // Green spiky vambs	
    				c.rangeLevelReq = 40;
    			break;
    			case 1135: // Green d'Hide body
    			case 7370: // Green d'Hide body (g)
    			case 7372: // Green d'Hide body (t)
    				c.rangeLevelReq = 40;
    				c.defenceLevelReq = 40;
    			break;
    			
    			// Blue d'hide //
    			
    			case 2493: // Blue d'hide chaps
    			case 7382: // Blue d'hide chaps (g)
    			case 7384: // Blue d'hide chaps (t)
    			case 2487: // Blue d'hide vambs			
    			case 10081: // Blue spiky vambs	
    				c.rangeLevelReq = 50;
    			break;
    			case 2499: // Blue d'Hide body
    			case 7374: // Blue d'Hide body (g)
    			case 7376: // Blue d'Hide body (t)
    				c.rangeLevelReq = 50;
    				c.defenceLevelReq = 40;
    			break;			
    			
    			// Red d'hide //
    			
    			case 2495: // Red d'hide chaps
    			case 2489: // Red d'hide vambs			
    			case 10083: // Red spiky vambs	
    				c.rangeLevelReq = 60;
    			break;
    			case 2501: // Red d'Hide body
    				c.rangeLevelReq = 60;
    				c.defenceLevelReq = 40;
    			break;	
    
    			// Black d'hide //
    			
    			case 2491: // Black d'hide vambs			
    			case 2497: // Black d'hide chaps
    			case 10368: // Zamorak vambs				
    			case 10372: // Zamorak chaps
    			case 10376: // Guthix vambs	
    			case 10380: // Guthix chaps
    			case 10384: // Saradomin vambs	
    			case 10388: // Saradomin chaps		
    			case 10085: // Black spiky vambs
    				c.rangeLevelReq = 70;
    			break;
    			
    			case 2503: // Black d'hide body
    			case 10370: // Zamorak d'hide body				
    			case 10374: // Zamorak coif
    			case 10378: // Guthix d'hide body	
    			case 10382: // Guthix coif
    			case 10386: // Saradomin d'hide body	
    			case 10390: // Saradomin coif
    				c.rangeLevelReq = 70;
    				c.defenceLevelReq = 40;
    			break;	
    			
    			/**
    			*Knives / javelins / darts
    			**/			
    			
    			case 865: // Steel throwing knives
    			case 827: // Steel javelins
    			case 808: // Steel darts
    			case 802: // Steel thrownaxe
    				c.rangeLevelReq = 5;
    			break;
    
    			case 869: // Black throwing knives
    				c.rangeLevelReq = 10;
    			break;
    			
    			case 866: // Mithril throwing knives
    			case 828: // Mithril javelins
    			case 809: // Mithril darts
    			case 803: // Mithril thrownaxe
    				c.rangeLevelReq = 20;
    			break;			
    			
    			case 867: // Adamant throwing knives
    			case 829: // Adamant javelins
    			case 810: // Adamant darts
    			case 804: // Adamant thrownaxe
    				c.rangeLevelReq = 30;
    			break;			
    								
    			case 868: // Rune throwing knives
    			case 830: // Rune javelins
    			case 811: // Rune darts
    			case 805: // Rune thrownaxe
    				c.rangeLevelReq = 40;
    			break;	
    			
    			case 12926: // bp
    
    				c.rangeLevelReq = 75;
    			break;			
    					
    					
    			case 11230: // Dragon darts
    				c.rangeLevelReq = 60;
    			break;	
    		
    			/**
    			*Miscellanious // Armor
    			**/		
    	
    			case 6522: // Obby rings
    				c.rangeLevelReq = 60;
    			break;
    	
    			case 6149: // Spined gloves
    			case 6143: // Spined boots
    			case 6135: // Spined chaps
    			case 6133: // Spined body
    			case 6131: // Spined helm
    				c.rangeLevelReq = 40;
    				c.defenceLevelReq = 40;
    			break;					
    			
    			case 1097: // Studded chaps
    			case 7366: // Studded chaps (g)
    			case 7368: // Studded chaps (t)
    				c.rangeLevelReq = 20;
    			break;
    			
    			case 1133: // Studded body
    			case 7362: // Studded body (g)
    			case 7364: // Studded body (t)
    				c.rangeLevelReq = 20;
    				c.defenceLevelReq = 20;
    			break;			
    				
    			case 6326: // Snakeskin bandana
    			case 6322: // Snakeskin body
    			case 6324: // Snakeskin chaps
    			case 6328: // Snakeskin boots
    			case 6330: // Snakeskin vambraces
    				c.rangeLevelReq = 30;
    				c.defenceLevelReq = 30;
    			break;		
    				
    			case 11718: // Armadyl helm
    			case 11720: // Armadyl chestplate
    			case 11722: // Armadyl plateskirt
    			case 4732: // Karil's coif
    			case 4736: // Karil's leathertop
    			case 4738: // Karil's leatherskirt
    				c.rangeLevelReq = 70;
    				c.defenceLevelReq = 70;
    			break;
    			
    	//------------ Magic ----------//	
    
    			/**
    			*Magic equipment
    			**/	
    			case 6889: // Mages' book
    				c.magicLevelReq = 60;
    			break;
    			case 2579: // Wizard boots
    				c.magicLevelReq = 20;
    			break;
    			case 2412: // Saradomin cape
    			case 2413: // Guthix cape
    			case 2414: // Zamorak cape
    			case 2415: // Saradomin staff
    			case 2416: // Guthix staff
    			case 2417: // Zamorak staff
    				c.magicLevelReq = 60;
    		    	
    			/**
    			*Staves
    			**/	
    	
    			case 6526: // Obby staff
    				c.attackLevelReq = 60;
    				c.magicLevelReq = 60;			
    			break;
    	
    			case 1391: // Battlestaff
    				c.attackLevelReq = 20;
    				c.magicLevelReq = 20;			
    			break;
    			
    			case 1393: // Fire battlestaff
    			case 1395: // Water battlestaff
    			case 1397: // Air battlestaff
    			case 1399: // Earth battlestaff
    			case 6562: // Mud battlestaff
    			case 3053: // Lava battlestaff
    				c.attackLevelReq = 30;
    				c.magicLevelReq = 30;
    			break;
    
    			case 1401: // Mystic fire staff
    			case 1403: // Mystic water staff
    			case 1405: // Mystic air staff
    			case 1407: // Mystic earth staff
    			case 6563: // Mystic mud staff
    			case 3054: // Mystic lava staff
    				c.attackLevelReq = 40;
    				c.magicLevelReq = 40;
    			break;
    			
    			case 6908: // Beginner wand
    				c.magicLevelReq = 45;
    			break;
    			case 6910: // Apprentice wand
    				c.magicLevelReq = 50;
    			break;
    			case 4675: // Ancient staff
    				c.attackLevelReq = 50;
    				c.magicLevelReq = 50;
    			break;
    			case 6912: // Teacher wand
    				c.magicLevelReq = 55;
    			break;
    			case 6914: // Master wand
    				c.magicLevelReq = 60;
    			break;			
    			case 4710: // Ahrim's staff
    				c.attackLevelReq = 70;
    				c.magicLevelReq = 70;
    			break;				
    			
    			/**
    			*Mage armor
    			**/	
    			
    			case 6153: // skeletal gloves
    			case 6147: // skeletal boots
    			case 6141: // skeletal bottom
    			case 6139: // skeletal top
    			case 6137: // skeletal helm
    				c.magicLevelReq = 40;
    				c.defenceLevelReq = 40;
    			break;		
    
    			case 6916: // Infinity top
    			case 6918: // Infinity hat
    			case 6920: // Infinity boots
    			case 6922: // Infinity gloves
    			case 6924: // Infinity bottom
    				c.magicLevelReq = 50;
    				c.defenceLevelReq = 25;
    			break;			
    			
    			case 3385: // Splitbark helm
    			case 3387: // Splitbark body
    			case 3389: // Splitbark legs
    			case 3391: // Splitbark gauntlets
    			case 3393: // Splitbark boots
    				c.magicLevelReq = 40;
    				c.defenceLevelReq = 40;				
    			break;
    
    			case 7399: // Enchanted top
    			case 7398: // Enchanted bottom
    			case 7400: // Enchanted hat
    			case 4089: // Mystic hat (blue)
    			case 4091: // Mystic top (blue)
    			case 4093: // Mystic bottom (blue)
    			case 4095: // Mystic gloves (blue)
    			case 4097: // Mystic boots (blue)		
    			case 4099: // Mystic hat (gold)
    			case 4101: // Mystic top (gold)
    			case 4103: // Mystic bottom (gold)
    			case 4105: // Mystic gloves (gold)
    			case 4107: // Mystic boots (gold)
    			case 4109: // Mystic hat (black)
    			case 4111: // Mystic top (black)
    			case 4113: // Mystic bottom (black)
    			case 4115: // Mystic gloves (black)
    			case 4117: // Mystic boots (black)
    				c.magicLevelReq = 40;
    				c.defenceLevelReq = 20;				
    			break;
    			
    			case 4708: // Ahrim's hood
    			case 4712: // Ahrim's robetop
    			case 4714: // Ahrim's robeskirt
    				c.magicLevelReq = 70;
    				c.defenceLevelReq = 70;				
    			break;				
    					
    			/**
    			*Others
    			**/	
    
    	//------------ Melee ----------//	
    
    			/**
    			*Weapons
    			**/	
    
    			case 6527: // Obby mace
    			case 6523: // Obby sword
    			case 6525: // Obby knife
    				c.attackLevelReq = 60;
    			break;	
    
    			case 15313: // chaotic maul
    				c.attackLevelReq = 80;
    			break;
    			
    			case 12928: // elder maul
    				c.attackLevelReq = 75;
    			break;
    
    			case 4153: // Granite maul
    				c.attackLevelReq = 50;
    				c.strengthLevelReq = 50;
    			break;		
    			case 10887: // Barrelchest anchor
    			case 13271:
    			case 13047:
    				c.attackLevelReq = 60;
    				c.strengthLevelReq = 40;
    			break;				
    			case 11694: // Armadyl godsword
    				c.attackLevelReq = 75;
    			break;
    			case 11696: // Bandos godsword
    				c.attackLevelReq = 75;
    			break;
    			case 11698: // Saradomin godsword
    				c.attackLevelReq = 75;
    			break;
    			case 13263:
    			case 11700: // Zamorak godsword
    				c.attackLevelReq = 75;
    			break;
    			case 11730: // Saradomin sword
    				c.attackLevelReq = 70;
    			break;
    			case 15298:
    			case 15299:
    			case 15300:
    			case 15301:
    			case 15315:
    			case 15501:
    			case 4151: // Abyssal whip
    				c.attackLevelReq = 70;
    			break;
    			case 4718: // Dharok's greataxe
    			case 4747: // Torag's hammers
    				c.attackLevelReq = 70;
    				c.strengthLevelReq = 70;
    			break;
    			case 4726: // Guthan's warspear
    			case 4755: // Verac's flail
    				c.attackLevelReq = 70;
    			break;
    			
    			
    			
    			case 6528: // Tzhaar-ket-om (obsidian maul / obby maul)
    				c.strengthLevelReq = 60;
    			break;	
    			
    			/**
    			*Neitiznot // Fremmenik
    			**/		
    			
    			case 10828: // Helm of neitiznot
    				c.defenceLevelReq = 55;
    			break;
    			case 14615:
    			case 14616:
    			case 14617:
    				c.defenceLevelReq = 75;
    				break;
    			
    			case 3749: // Archer helm
    			case 3755: // Farseer helm
    			case 3753: // Warrior helm
    			case 3751: // Berserker helm
    				c.defenceLevelReq = 45;
    			break;
    
    			/**
    			*Armor
    			**/
    			
    			case 5574: // Initiate sallet
    			case 5575: // Initiate hauberk
    			case 5576: // Initiate cuisse
    				c.defenceLevelReq = 20;
    			break;
    		
    			case 9672: // Proselyte sallet
    			case 9674: // Proselyte hauberk
    			case 9676: // Proselyte cuisse
    			case 9678: // Proselyte tasset
    				c.defenceLevelReq = 30;
    			break;
    			
    			case 11724: // Bandos chestplate
    			case 11726: // Bandos tassets
    			case 11728: // Bandos boots
    				c.defenceLevelReq = 65;
    			break;
    			
    			case 6151: // Rock shell gloves
    			case 6145: // Rock shell boots
    			case 6130: // Rock shell legs
    			case 6129: // Rock shell body
    			case 6128: // Rock shell helm
    				c.defenceLevelReq = 40;
    			break;				
    			
    			case 10589: // Granite helm
    			case 10564: // Granite body
    			case 6809: // Granite legs
    			case 3122: // Granite shield
    				c.defenceLevelReq = 50;
    			break;			
    
    			case 4716: // Dharok's helm
    			case 4720: // Dharok's platebody
    			case 4722: // Dharok's platelegs
    			case 4724: // Guthan's helm
    			case 4728: // Guthan's platebody
    			case 4730: // Guthan's chainskirt
    			case 4745: // Torag's helm
    			case 4749: // Torag's platebody
    			case 4751: // Torag's platelegs
    			case 4753: // Verac's helm
    			case 4757: // Verac's brassard
    			case 4759: // Verac's plateskirt
    				c.defenceLevelReq = 70;
    			break;
    			
    			case 13893: // vesta's plateskirt
    			case 13887: // Vesta's chainbody
    			case 13884: // Statiu's platebody
    			case 13890: // Statiu's platelegs
    			case 13896: // Statiu's fullhelm
    			c.defenceLevelReq = 78;
    			
    			break;
    			case 13870: // Morrigan's leather body
    			case 13873: // Morrigan's leather chaps
    			case 13876: // Morrigan's coif
    			c.defenceLevelReq = 78;	
    			c.rangeLevelReq = 78;
    			
    			break;
    			case 13858: // Zuriel's robe top
    			case 13861: // Zuriel's robe bottom
    			case 13864: // Zuriel's hood
    				c.defenceLevelReq = 78;
    				c.magicLevelReq = 78;
    			break;				
    			
    			/**
    			*Shields
    			**/
    
    			case 13000: // Arcane spirit shield
    			case 13001: // Spectral spirit shield
    				c.defenceLevelReq = 75;
    				c.magicLevelReq = 65;
    				c.prayerLevelReq = 70;
    			break;
    			case 13003: // Divine spirit shield
    			case 13004: // Elysian spirit shield
    				c.defenceLevelReq = 75;
    				c.prayerLevelReq = 75;
    			break;
    			case 13005: // Normal spirit shield
    				c.defenceLevelReq = 40;
    				c.prayerLevelReq = 55;
    			break;
    			case 13006: // Blessed spirit shield
    				c.defenceLevelReq = 70;
    				c.prayerLevelReq = 60;
    			break;	
    			
    			case 11283: // Dragonfire shield
    			case 11284: // Dragonfire shield
    				c.defenceLevelReq = 75;
    			break;				
    
    			case 6524: // Obby shield / Toktz ket xil
    				c.defenceLevelReq = 60;
    			break;	
    
    			
    			/**
    			*Others
    			**/
    			case 8901: // Black mask (10)
    			case 8903: // Black mask (9)
    			case 8905: // Black mask (8)
    			case 8907: // Black mask (7)
    			case 8909: // Black mask (6)
    			case 8911: // Black mask (5)
    			case 8913: // Black mask (4)
    			case 8915: // Black mask (3)
    			case 8917: // Black mask (2)
    			case 8919: // Black mask (1)
    			case 8921: // Black mask
    				c.defenceLevelReq = 10;
    				c.strengthLevelReq = 20;
    			break;
    			case 1131: // Hardleather body
    				c.defenceLevelReq = 10;
    			break;
    			case 10551: // Fighter torso
    				c.defenceLevelReq = 40;
    			return;
    			case 10547: // Healer hat
    			case 10548: // Fighter hat
    			case 10549: // Runner hat
    			case 10550: // Ranger hat
    				c.defenceLevelReq = 45;
    			return;
    			
    	//------------ Others ----------//	
    
    			/**
    			*Void / Misc
    			**/
    			case 11663:
    			case 11664:
    			case 8840:
    			case 8839:
    			case 8841: //Third age range // 3rd age
    				c.rangeLevelReq = 42;
    				c.defenceLevelReq = 42;
    				c.magicLevelReq = 42;
    				c.attackLevelReq = 42;
    			break;
    
    			/**
    			*Third age / 3rd age
    			**/
    			
    			case 10330:
    			case 10332:
    			case 10334:
    			case 10336: //Third age range // 3rd age
    				c.rangeLevelReq = 65;
    				c.defenceLevelReq = 45;
    			break;
    			case 10338:
    			case 10340:
    			case 10342:
    			case 10344:	//Third age mage // 3rd age
    				c.magicLevelReq = 65;
    				c.defenceLevelReq = 30;
    			break;
    			case 10346:
    			case 10348:
    			case 10350:
    			case 10352: //Third age melee // 3rd age
    				c.defenceLevelReq = 65;
    			break;	
    
    			
    			
    			/**
    			*Skillcapes
    			**/
    			case 9747: // Attack cape
    			case 9748: // Attack cape (t)
    			case 9749: // Attack hood
    				c.attackLevelReq = 99;
    			break;
    			case 9750: // Strength cape
    			case 9751: // Strength cape (t)
    			case 9752: // Strength hood
    				c.strengthLevelReq = 99;
    			break;
    			case 9753: // Defence cape
    			case 9754: // Defence cape (t)
    			case 9755: // Defence hood
    				c.defenceLevelReq = 99;
    			break;
    			case 9756: // Range cape
    			case 9757: // Range cape (t)
    			case 9758: // Range hood
    				c.rangeLevelReq = 99;
    			break;
    			case 9759: // Prayer cape
    			case 9760: // Prayer cape (t)
    			case 9761: // Prayer hood
    				c.prayerLevelReq = 99;
    			break;
    			case 9762: // Magic cape
    			case 9763: // Magic cape (t)
    			case 9764: // Magic hood
    				c.magicLevelReq = 99;
    			break;
    			case 9765: // Runecrafting cape
    			case 9766: // Runecrafting cape (t)
    			case 9767: // Runecrafting hood
    				c.rcLevelReq = 99;
    			break;
    			case 9768: // Hitpoints cape
    			case 9769: // Hitpoints cape (t)
    			case 9770: // Hitpoints hood
    				c.hitpointsLevelReq = 99;
    			break;
    			case 9771: // Agility cape
    			case 9772: // Agility cape (t)
    			case 9773: // Agility hood
    				c.agilityLevelReq = 99;
    			break;
    			case 9774: // Herblore cape
    			case 9775: // Herblore cape (t)
    			case 9776: // Herblore hood
    				c.herbloreLevelReq = 99;
    			break;
    			case 9777: // Thieving cape
    			case 9778: // Thieving cape (t)
    			case 9779: // Thieving hood
    				c.thievingLevelReq = 99;
    			break;
    			case 9780: // Crafting cape
    			case 9781: // Crafting cape (t)
    			case 9782: // Crafting hood
    				c.craftingLevelReq = 99;
    			break;
    			case 9783: // Fletching cape
    			case 9784: // Fletching cape (t)
    			case 9785: // Fletching hood
    				c.fletchingLevelReq = 99;
    			break;
    			case 9786: // Slayer cape
    			case 9787: // Slayer cape (t)
    			case 9788: // Slayer hood
    				c.slayerLevelReq = 99;
    			break;
    			case 9792: // Mining cape
    			case 9793: // Mining cape (t)
    			case 9794: // Mining hood
    				c.miningLevelReq = 99;
    			break;
    			case 9795: // Smithing cape
    			case 9796: // Smithing cape (t)
    			case 9797: // Smithing hood
    				c.smithingLevelReq = 99;
    			break;
    			case 9798: // Fishing cape
    			case 9799: // Fishing cape (t)
    			case 9800: // Fishing hood
    				c.fishingLevelReq = 99;
    			break;
    			case 9801: // Cooking cape
    			case 9802: // Cooking cape (t)
    			case 9803: // Cooking hood
    				c.cookingLevelReq = 99;
    			break;
    			case 9804: // Firemaking cape
    			case 9805: // Firemaking cape (t)
    			case 9806: // Firemaking hood
    				c.fmLevelReq = 99;
    			break;
    			case 9807: // Woodcutting cape
    			case 9808: // Woodcutting cape (t)
    			case 9809: // Woodcutting hood
    				c.wcLevelReq = 99;
    			break;
    			case 9810: // Farming cape
    			case 9811: // Farming cape (t)
    			case 9812: // Farming hood
    				c.farmingLevelReq = 99;
    			break;
    			case 9813: // quest
    			case 9814: // quest
    				c.miningLevelReq = 99;
    				c.smithingLevelReq = 99;
    				c.wcLevelReq = 99;
    				c.fmLevelReq = 99;
    				c.cookingLevelReq = 99;
    				c.fletchingLevelReq = 99;
    				c.craftingLevelReq = 99;
    				c.thievingLevelReq = 99;
    				c.herbloreLevelReq = 99;
    				c.rcLevelReq = 99;
    			break;
    			
    			/**
    			*RFD gloves / recipe for disaster
    			**/
    			
    			case 7460: // Rune gloves
    				c.defenceLevelReq = 20;
    			break;
    			case 7461: // Dragon gloves
    				c.defenceLevelReq = 45;
    			break;
    			case 7462: // Barrow gloves
    				c.defenceLevelReq = 45;
    			break;			
    			
    			/**
    			*Void
    			case 8839: // Void knight top
    			case 8840: // Void knight bottom
    			case 8842: // Void knight gloves
    			case 11663: // Void mage helm
    			case 11664: // Void range helm
    			case 11665: // Void melee helm
    				c.attackLevelReq = 42;
    				c.strengthLevelReq = 42;
    				c.rangeLevelReq = 42;
    				c.defenceLevelReq = 42;
    				c.magicLevelReq = 42;
    			break;
    			**/			
    
    					
    			/**
    			*Others
    			**/
    			// God robes
    			case 10458: // Saradomin robe top
    			case 10460: // Zamorak robe top
    			case 10462: // Guthix robe top			
    			case 10464: // Saradomin robe bottom
    			case 10466: // Zamorak robe bottom
    			case 10468: // Guthix robe bottom			
    				c.prayerLevelReq = 20;
    			break;			
    			case 10446: // Saradomin cloak
    			case 10448: // Guthix cloak
    			case 10450: // Zamorak cloak			
    				c.prayerLevelReq = 40;
    			break;					
    			case 10452: // Saradomin mitre
    			case 10454: // Guthix mitre
    			case 10456: // Zamorak mitre			
    				c.prayerLevelReq = 40;
    				c.magicLevelReq = 40;
    			break;	
    			case 10470: // Saradomin stole
    			case 10472: // Guthix stole
    			case 10474: // Zamorak stole			
    				c.prayerLevelReq = 60;
    			break;			
    
    			// Crystal
    			case 4214: // Crystal bow full
    			case 4215: // Crystal bow 9/10
    			case 4216: // Crystal bow 8/10
    			case 4217: // Crystal bow 7/10
    			case 4218: // Crystal bow 6/10
    			case 4219: // Crystal bow 5/10
    			case 4220: // Crystal bow 4/10
    			case 4221: // Crystal bow 3/10
    			case 4222: // Crystal bow 2/10
    			case 4223: // Crystal bow 1/10
    				c.rangeLevelReq = 70;
    				c.agilityLevelReq = 50;			
    			break;
    			case 4225: // Crystal shield full
    			case 4226: // Crystal shield 9/10
    			case 4227: // Crystal shield 8/10
    			case 4228: // Crystal shield 7/10
    			case 4229: // Crystal shield 6/10
    			case 4230: // Crystal shield 5/10
    			case 4231: // Crystal shield 4/10
    			case 4232: // Crystal shield 3/10
    			case 4233: // Crystal shield 2/10
    			case 4234: // Crystal shield 1/10
    				c.defenceLevelReq = 70;
    				c.agilityLevelReq = 50;			
    			break;			
    			
    		}
    		if(itemName.contains("spear") || itemName.contains("dagger")) {
    			if(itemName.contains("Steel")) {
    				c.attackLevelReq = 5;
    			}
    			if(itemName.contains("Black")) {
    				c.attackLevelReq = 10;
    			}
    			if(itemName.contains("Mithril")) {
    				c.attackLevelReq = 20;
    			}
    			if(itemName.contains("Adam")) {
    				c.attackLevelReq = 30;
    			}
    			if(itemName.contains("Rune")) {
    				c.attackLevelReq = 40;
    			}
    			if(itemName.contains("Dragon")) {
    				c.attackLevelReq = 60;
    			}
    		}
    	}
    Reply With Quote  
     

  2. #2  
    no


    Join Date
    Aug 2016
    Posts
    595
    Thanks given
    102
    Thanks received
    84
    Discord
    Goody#1937
    Rep Power
    242
    I mean is getRequirements(String itemName, int itemId) even being called somewhere? And if it is, does your attackLevelReq variable even do anything? If you use Eclipse you should use call heirarchy (right click option) on those variables and see if they're actually being used somewhere. Your method seems to work fine I guess and since you're not getting any errors, then most likely you have a method or variables that aren't being utilized or just unfinished code. You would definitely have to post more than what you've posted here if you want more help though. That method you posted only assigns an integer value to a variable. It doesn't say if that variable actually does anything
    Best excuse for scamming i've gotten yet



    [Only registered and activated users can see links. ]

    [Only registered and activated users can see links. ]

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

  3. #3  
    Registered Member
    Join Date
    Apr 2016
    Posts
    103
    Thanks given
    2
    Thanks received
    3
    Rep Power
    11
    Quote Originally Posted by Goody View Post
    I mean is getRequirements(String itemName, int itemId) even being called somewhere? And if it is, does your attackLevelReq variable even do anything? If you use Eclipse you should use call heirarchy (right click option) on those variables and see if they're actually being used somewhere. Your method seems to work fine I guess and since you're not getting any errors, then most likely you have a method or variables that aren't being utilized or just unfinished code. You would definitely have to post more than what you've posted here if you want more help though. That method you posted only assigns an integer value to a variable. It doesn't say if that variable actually does anything
    Thanks for your reply

    getRequirements being called here
    Code:
    	public boolean wearItem(int wearID, int slot) {
    		synchronized(c) {
    			int targetSlot=0;
    			boolean canWearItem = true;
    			if(c.playerItems[slot] == (wearID+1)) {				
    				getRequirements(getItemName(wearID).toLowerCase(), wearID);	
    				targetSlot = Item.targetSlots[wearID];
    
    				if(itemType(wearID).equalsIgnoreCase("cape")) {
    					targetSlot=1;
    				} else if(itemType(wearID).equalsIgnoreCase("hat")) {
    					targetSlot=0;
    				} else if(itemType(wearID).equalsIgnoreCase("amulet")) {
    					targetSlot=2;
    				} else if(itemType(wearID).equalsIgnoreCase("arrows")) {
    					targetSlot=13;
    				} else if(itemType(wearID).equalsIgnoreCase("body")) {
    					targetSlot=4;
    				} else if(itemType(wearID).equalsIgnoreCase("shield")) {
    					targetSlot=5;
    				} else if(itemType(wearID).equalsIgnoreCase("legs")) {
    					targetSlot=7;
    				} else if(itemType(wearID).equalsIgnoreCase("gloves")) {
    					targetSlot=9;
    				} else if(itemType(wearID).equalsIgnoreCase("boots")) {
    					targetSlot=10;	
    				} else if(itemType(wearID).equalsIgnoreCase("ring")) {
    					targetSlot=12;
    				} else {
    					targetSlot = 3;
    				}
    
    				switch (wearID) {
    Let's just use defeceLevelReq as an example even tho non work,
    it is being called
    Code:
    	if(Config.itemRequirements) {
    					if(targetSlot == 1 || targetSlot == 0) {
    						if(c.attackLevelReq > 0) { // Attack
    							if(c.getPA().getLevelForXP(c.playerXP[0]) < c.attackLevelReq) {
    								c.sendMessage("You need an attack level of "+c.attackLevelReq+" to wear this item.");
    								canWearItem = false;
    							}
    						}	
    						if(c.defenceLevelReq > 0) { // Defence
    							if(c.getPA().getLevelForXP(c.playerXP[1]) < c.defenceLevelReq) {
    								c.sendMessage("You need a defence level of "+c.defenceLevelReq+" to wear this item.");
    								canWearItem = false;
    							}
    						}
    						if(c.strengthLevelReq > 0) { // Strength
    							if(c.getPA().getLevelForXP(c.playerXP[2]) < c.strengthLevelReq) {
    								c.sendMessage("You need a strength level of "+c.strengthLevelReq+" to wear this item.");
    								canWearItem = false;
    							}
    						}
    						if(c.hitpointsLevelReq > 0) { // Hitpoints
    							if(c.getPA().getLevelForXP(c.playerXP[3]) < c.hitpointsLevelReq) {
    								c.sendMessage("You need a hitpoints level of "+c.hitpointsLevelReq+" to wear this item.");
    								canWearItem = false;
    							}
    						}
    						if(c.rangeLevelReq > 0) { // ranged
    							if(c.getPA().getLevelForXP(c.playerXP[4]) < c.rangeLevelReq) {
    								c.sendMessage("You need a ranged level of "+c.rangeLevelReq+" to wear this item.");
    								canWearItem = false;
    							}
    						}
    						if(c.prayerLevelReq > 0) { // prayer
    							if(c.getPA().getLevelForXP(c.playerXP[5]) < c.prayerLevelReq) {
    								c.sendMessage("You need a prayer level of "+c.prayerLevelReq+" to wear this item.");
    								canWearItem = false;
    							}
    						}
    						if(c.magicLevelReq > 0) { // magic
    							if(c.getPA().getLevelForXP(c.playerXP[6]) < c.magicLevelReq) {
    								c.sendMessage("You need a magic level of "+c.magicLevelReq+" to wear this item.");
    								canWearItem = false;
    							}
    						}
    						if(c.cookingLevelReq > 0) { // cooking
    							if(c.getPA().getLevelForXP(c.playerXP[7]) < c.cookingLevelReq) {
    								c.sendMessage("You need a cooking level of "+c.cookingLevelReq+" to wear this item.");
    								canWearItem = false;
    							}
    						}
    						if(c.wcLevelReq > 0) { // wc
    							if(c.getPA().getLevelForXP(c.playerXP[8]) < c.wcLevelReq) {
    								c.sendMessage("You need a woodcutting level of "+c.wcLevelReq+" to wear this item.");
    								canWearItem = false;
    							}
    						}
    						if(c.fletchingLevelReq > 0) { // fletching
    							if(c.getPA().getLevelForXP(c.playerXP[9]) < c.fletchingLevelReq) {
    								c.sendMessage("You need a fletching level of "+c.fletchingLevelReq+" to wear this item.");
    								canWearItem = false;
    							}
    						}
    						if(c.fishingLevelReq > 0) { // fishing
    							if(c.getPA().getLevelForXP(c.playerXP[10]) < c.fishingLevelReq) {
    								c.sendMessage("You need a fishing level of "+c.fishingLevelReq+" to wear this item.");
    								canWearItem = false;
    							}
    						}
    						if(c.fmLevelReq > 0) { // fm
    							if(c.getPA().getLevelForXP(c.playerXP[11]) < c.fmLevelReq) {
    								c.sendMessage("You need a firemaking level of "+c.fmLevelReq+" to wear this item.");
    								canWearItem = false;
    							}
    						}
    						if(c.craftingLevelReq > 0) { // crafting
    							if(c.getPA().getLevelForXP(c.playerXP[12]) < c.craftingLevelReq) {
    								c.sendMessage("You need a crafting level of "+c.craftingLevelReq+" to wear this item.");
    								canWearItem = false;
    							}
    						}
    						if(c.smithingLevelReq > 0) { // smithing
    							if(c.getPA().getLevelForXP(c.playerXP[13]) < c.smithingLevelReq) {
    								c.sendMessage("You need a smithing level of "+c.smithingLevelReq+" to wear this item.");
    								canWearItem = false;
    							}
    						}
    						if(c.miningLevelReq > 0) { // mining
    							if(c.getPA().getLevelForXP(c.playerXP[14]) < c.miningLevelReq) {
    								c.sendMessage("You need a mining level of "+c.miningLevelReq+" to wear this item.");
    								canWearItem = false;
    							}
    						}
    						if(c.herbloreLevelReq > 0) { // herblore
    							if(c.getPA().getLevelForXP(c.playerXP[15]) < c.herbloreLevelReq) {
    								c.sendMessage("You need a herblore level of "+c.herbloreLevelReq+" to wear this item.");
    								canWearItem = false;
    							}
    						}
    						if(c.agilityLevelReq > 0) { // agility
    							if(c.getPA().getLevelForXP(c.playerXP[16]) < c.agilityLevelReq) {
    								c.sendMessage("You need an agility level of "+c.agilityLevelReq+" to wear this item.");
    								canWearItem = false;
    							}
    						}
    						if(c.thievingLevelReq > 0) { // thieving
    							if(c.getPA().getLevelForXP(c.playerXP[17]) < c.thievingLevelReq) {
    								c.sendMessage("You need a thieving level of "+c.thievingLevelReq+" to wear this item.");
    								canWearItem = false;
    							}
    						}
    						if(c.slayerLevelReq > 0) { // slayer
    							if(c.getPA().getLevelForXP(c.playerXP[18]) < c.slayerLevelReq) {
    								c.sendMessage("You need a slayer level of "+c.slayerLevelReq+" to wear this item.");
    								canWearItem = false;
    							}
    						}
    						if(c.farmingLevelReq > 0) { // farming
    							if(c.getPA().getLevelForXP(c.playerXP[19]) < c.farmingLevelReq) {
    								c.sendMessage("You need a farming level of "+c.farmingLevelReq+" to wear this item.");
    								canWearItem = false;
    							}
    						}
    						if(c.rcLevelReq > 0) { // rc
    							if(c.getPA().getLevelForXP(c.playerXP[20]) < c.rcLevelReq) {
    								c.sendMessage("You need a runecrafting level of "+c.rcLevelReq+" to wear this item.");
    								canWearItem = false;
    							}
    						}
    					}
    				}
    
    				if(!canWearItem) {
    					return false;
    				}
    Code:
    attackLevelReq, 
    	defenceLevelReq, 
    	strengthLevelReq, 
    	hitpointsLevelReq, 
    	rangeLevelReq, 
    	prayerLevelReq,
    	magicLevelReq,
    	cookingLevelReq,
    	wcLevelReq,
    	fletchingLevelReq,
    	fishingLevelReq,
    	fmLevelReq,
    	craftingLevelReq,
    	smithingLevelReq,
    	miningLevelReq,
    	herbloreLevelReq,
    	agilityLevelReq,
    	thievingLevelReq,
    	slayerLevelReq,
    	farmingLevelReq,
    	rcLevelReq,
    Reply With Quote  
     

  4. #4  
    no


    Join Date
    Aug 2016
    Posts
    595
    Thanks given
    102
    Thanks received
    84
    Discord
    Goody#1937
    Rep Power
    242
    Besides that looking realllllllllllly disappointing this part stands out to me

    Code:
    if(Config.itemRequirements) {
    Make sure in your Config class itemRequirements is set to true and not false

    I'd imagine you're not getting to this part because it's set to false and you're immediately skipping over the entire if statement

    Code:
    if(targetSlot == 1 || targetSlot == 0) {
    		if(c.attackLevelReq > 0) { // Attack
    			if(c.getPA().getLevelForXP(c.playerXP[0]) < c.attackLevelReq) {
     				c.sendMessage("You need an attack level of "+c.attackLevelReq+" to wear this item.");
    				canWearItem = false;
    			}
    		}
    Best excuse for scamming i've gotten yet



    [Only registered and activated users can see links. ]

    [Only registered and activated users can see links. ]

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

  5. #5  
    Im an albatraoz
    Nand0's Avatar
    Join Date
    Feb 2010
    Age
    27
    Posts
    774
    Thanks given
    163
    Thanks received
    109
    Rep Power
    71
    Quote Originally Posted by TheRealGenesis View Post
    Thanks for your reply

    getRequirements being called here
    Code:
    	public boolean wearItem(int wearID, int slot) {
    		synchronized(c) {
    			int targetSlot=0;
    			boolean canWearItem = true;
    			if(c.playerItems[slot] == (wearID+1)) {				
    				getRequirements(getItemName(wearID).toLowerCase(), wearID);	
    				targetSlot = Item.targetSlots[wearID];
    
    				if(itemType(wearID).equalsIgnoreCase("cape")) {
    					targetSlot=1;
    				} else if(itemType(wearID).equalsIgnoreCase("hat")) {
    					targetSlot=0;
    				} else if(itemType(wearID).equalsIgnoreCase("amulet")) {
    					targetSlot=2;
    				} else if(itemType(wearID).equalsIgnoreCase("arrows")) {
    					targetSlot=13;
    				} else if(itemType(wearID).equalsIgnoreCase("body")) {
    					targetSlot=4;
    				} else if(itemType(wearID).equalsIgnoreCase("shield")) {
    					targetSlot=5;
    				} else if(itemType(wearID).equalsIgnoreCase("legs")) {
    					targetSlot=7;
    				} else if(itemType(wearID).equalsIgnoreCase("gloves")) {
    					targetSlot=9;
    				} else if(itemType(wearID).equalsIgnoreCase("boots")) {
    					targetSlot=10;	
    				} else if(itemType(wearID).equalsIgnoreCase("ring")) {
    					targetSlot=12;
    				} else {
    					targetSlot = 3;
    				}
    
    				switch (wearID) {
    Let's just use defeceLevelReq as an example even tho non work,
    it is being called
    Code:
    	if(Config.itemRequirements) {
    					if(targetSlot == 1 || targetSlot == 0) {
    						if(c.attackLevelReq > 0) { // Attack
    							if(c.getPA().getLevelForXP(c.playerXP[0]) < c.attackLevelReq) {
    								c.sendMessage("You need an attack level of "+c.attackLevelReq+" to wear this item.");
    								canWearItem = false;
    							}
    						}	
    						if(c.defenceLevelReq > 0) { // Defence
    							if(c.getPA().getLevelForXP(c.playerXP[1]) < c.defenceLevelReq) {
    								c.sendMessage("You need a defence level of "+c.defenceLevelReq+" to wear this item.");
    								canWearItem = false;
    							}
    						}
    						if(c.strengthLevelReq > 0) { // Strength
    							if(c.getPA().getLevelForXP(c.playerXP[2]) < c.strengthLevelReq) {
    								c.sendMessage("You need a strength level of "+c.strengthLevelReq+" to wear this item.");
    								canWearItem = false;
    							}
    						}
    						if(c.hitpointsLevelReq > 0) { // Hitpoints
    							if(c.getPA().getLevelForXP(c.playerXP[3]) < c.hitpointsLevelReq) {
    								c.sendMessage("You need a hitpoints level of "+c.hitpointsLevelReq+" to wear this item.");
    								canWearItem = false;
    							}
    						}
    						if(c.rangeLevelReq > 0) { // ranged
    							if(c.getPA().getLevelForXP(c.playerXP[4]) < c.rangeLevelReq) {
    								c.sendMessage("You need a ranged level of "+c.rangeLevelReq+" to wear this item.");
    								canWearItem = false;
    							}
    						}
    						if(c.prayerLevelReq > 0) { // prayer
    							if(c.getPA().getLevelForXP(c.playerXP[5]) < c.prayerLevelReq) {
    								c.sendMessage("You need a prayer level of "+c.prayerLevelReq+" to wear this item.");
    								canWearItem = false;
    							}
    						}
    						if(c.magicLevelReq > 0) { // magic
    							if(c.getPA().getLevelForXP(c.playerXP[6]) < c.magicLevelReq) {
    								c.sendMessage("You need a magic level of "+c.magicLevelReq+" to wear this item.");
    								canWearItem = false;
    							}
    						}
    						if(c.cookingLevelReq > 0) { // cooking
    							if(c.getPA().getLevelForXP(c.playerXP[7]) < c.cookingLevelReq) {
    								c.sendMessage("You need a cooking level of "+c.cookingLevelReq+" to wear this item.");
    								canWearItem = false;
    							}
    						}
    						if(c.wcLevelReq > 0) { // wc
    							if(c.getPA().getLevelForXP(c.playerXP[8]) < c.wcLevelReq) {
    								c.sendMessage("You need a woodcutting level of "+c.wcLevelReq+" to wear this item.");
    								canWearItem = false;
    							}
    						}
    						if(c.fletchingLevelReq > 0) { // fletching
    							if(c.getPA().getLevelForXP(c.playerXP[9]) < c.fletchingLevelReq) {
    								c.sendMessage("You need a fletching level of "+c.fletchingLevelReq+" to wear this item.");
    								canWearItem = false;
    							}
    						}
    						if(c.fishingLevelReq > 0) { // fishing
    							if(c.getPA().getLevelForXP(c.playerXP[10]) < c.fishingLevelReq) {
    								c.sendMessage("You need a fishing level of "+c.fishingLevelReq+" to wear this item.");
    								canWearItem = false;
    							}
    						}
    						if(c.fmLevelReq > 0) { // fm
    							if(c.getPA().getLevelForXP(c.playerXP[11]) < c.fmLevelReq) {
    								c.sendMessage("You need a firemaking level of "+c.fmLevelReq+" to wear this item.");
    								canWearItem = false;
    							}
    						}
    						if(c.craftingLevelReq > 0) { // crafting
    							if(c.getPA().getLevelForXP(c.playerXP[12]) < c.craftingLevelReq) {
    								c.sendMessage("You need a crafting level of "+c.craftingLevelReq+" to wear this item.");
    								canWearItem = false;
    							}
    						}
    						if(c.smithingLevelReq > 0) { // smithing
    							if(c.getPA().getLevelForXP(c.playerXP[13]) < c.smithingLevelReq) {
    								c.sendMessage("You need a smithing level of "+c.smithingLevelReq+" to wear this item.");
    								canWearItem = false;
    							}
    						}
    						if(c.miningLevelReq > 0) { // mining
    							if(c.getPA().getLevelForXP(c.playerXP[14]) < c.miningLevelReq) {
    								c.sendMessage("You need a mining level of "+c.miningLevelReq+" to wear this item.");
    								canWearItem = false;
    							}
    						}
    						if(c.herbloreLevelReq > 0) { // herblore
    							if(c.getPA().getLevelForXP(c.playerXP[15]) < c.herbloreLevelReq) {
    								c.sendMessage("You need a herblore level of "+c.herbloreLevelReq+" to wear this item.");
    								canWearItem = false;
    							}
    						}
    						if(c.agilityLevelReq > 0) { // agility
    							if(c.getPA().getLevelForXP(c.playerXP[16]) < c.agilityLevelReq) {
    								c.sendMessage("You need an agility level of "+c.agilityLevelReq+" to wear this item.");
    								canWearItem = false;
    							}
    						}
    						if(c.thievingLevelReq > 0) { // thieving
    							if(c.getPA().getLevelForXP(c.playerXP[17]) < c.thievingLevelReq) {
    								c.sendMessage("You need a thieving level of "+c.thievingLevelReq+" to wear this item.");
    								canWearItem = false;
    							}
    						}
    						if(c.slayerLevelReq > 0) { // slayer
    							if(c.getPA().getLevelForXP(c.playerXP[18]) < c.slayerLevelReq) {
    								c.sendMessage("You need a slayer level of "+c.slayerLevelReq+" to wear this item.");
    								canWearItem = false;
    							}
    						}
    						if(c.farmingLevelReq > 0) { // farming
    							if(c.getPA().getLevelForXP(c.playerXP[19]) < c.farmingLevelReq) {
    								c.sendMessage("You need a farming level of "+c.farmingLevelReq+" to wear this item.");
    								canWearItem = false;
    							}
    						}
    						if(c.rcLevelReq > 0) { // rc
    							if(c.getPA().getLevelForXP(c.playerXP[20]) < c.rcLevelReq) {
    								c.sendMessage("You need a runecrafting level of "+c.rcLevelReq+" to wear this item.");
    								canWearItem = false;
    							}
    						}
    					}
    				}
    
    				if(!canWearItem) {
    					return false;
    				}
    Code:
    attackLevelReq, 
    	defenceLevelReq, 
    	strengthLevelReq, 
    	hitpointsLevelReq, 
    	rangeLevelReq, 
    	prayerLevelReq,
    	magicLevelReq,
    	cookingLevelReq,
    	wcLevelReq,
    	fletchingLevelReq,
    	fishingLevelReq,
    	fmLevelReq,
    	craftingLevelReq,
    	smithingLevelReq,
    	miningLevelReq,
    	herbloreLevelReq,
    	agilityLevelReq,
    	thievingLevelReq,
    	slayerLevelReq,
    	farmingLevelReq,
    	rcLevelReq,
    Uhmmmm you might want to try a differnt source mate. if you seriously try to load everything in a class file with over 15k items gl with it lol
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. Replies: 0
    Last Post: 03-22-2012, 01:08 AM
  2. Help with getting items to not work in wild
    By bigerman123 in forum Help
    Replies: 2
    Last Post: 03-14-2012, 07:49 AM
  3. Item noting not working :(
    By Mikey in forum Help
    Replies: 4
    Last Post: 06-13-2011, 06:32 PM
  4. [562] Server Item Bonuses not working!
    By 0wned2death1 in forum Help
    Replies: 0
    Last Post: 07-26-2010, 01:38 PM
  5. [Dodian] Item Req (Not your avg req settings)
    By Roger in forum Tutorials
    Replies: 1
    Last Post: 08-11-2008, 07:10 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •