- Joined
- Mar 30, 2007
- Messages
- 962
- Reaction score
- 166
Ok first open up your Equipment.java and Find this
below that add this
now find this
now below the
add this...
now find this
under that add
now find the
and add the
for those ones that arent added...
Questions? then leave a comment and they will be answered..
Code:
int cLDefence = getCLDefence(wearId);
Code:
int cLStrength = getCLStrength(wearId);
int cLPrayer = getCLPrayer(wearId);
int cLRunecraft = getCLRunecraft(wearId);
int cLHitpoints = getCLHitpoints(wearId);
int cLAgility = getCLAgility(wearId);
int cLHerblore = getCLHerblore(wearId);
int cLThieving = getCLThieving(wearId);
int cLCrafting = getCLCrafting(wearId);
int cLFletching = getCLFletching(wearId);
int cLSlayer = getCLSlayer(wearId);
int cLConstruction = getCLConstruction(wearId);
int cLMining = getCLMining(wearId);
int cLSmithing = getCLSmithing(wearId);
int cLFishing = getCLFishing(wearId);
int cLCooking = getCLCooking(wearId);
int cLFiremaking = getCLFiremaking(wearId);
int cLWoodcutting = getCLWoodcutting(wearId);
int cLFarming = getCLFarming(wearId);
int cLHunter = getCLHunter(wearId);
int cLSummoning = getCLSummoning(wearId);
int cLMagic = getCLMagic(wearId);
int cLRanged = getCLRanged(wearId);
now find this
Code:
if (cLStrength > p.getLevelForXP(2)) {
now below the
Code:
return;
}
add this...
Code:
if (cLMagic > p.getLevelForXP(6)) {
p.frames.sendMessage(p, "You need " + cLMagic + " Magic to equip this item.");
return;
}
if (cLRanged > p.getLevelForXP(4)) {
p.frames.sendMessage(p, "You need " + cLRanged + " Ranged to equip this item.");
return;
}
if (cLPrayer > p.getLevelForXP(5)) {
p.frames.sendMessage(p, "You need " + cLPrayer + " Prayer to equip this item.");
return;
}
if (cLRunecraft > p.getLevelForXP(20)) {
p.frames.sendMessage(p, "You need " + cLRunecraft + " Runecrafting to equip this item.");
return;
}
if (cLHitpoints > p.getLevelForXP(3)) {
p.frames.sendMessage(p, "You need " + cLHitpoints + " Hitpoints to equip this item.");
return;
}
if (cLAgility > p.getLevelForXP(16)) {
p.frames.sendMessage(p, "You need " + cLAgility + " Agility to equip this item.");
return;
}
if (cLHerblore > p.getLevelForXP(15)) {
p.frames.sendMessage(p, "You need " + cLHerblore + " Herblore to equip this item.");
return;
}
if (cLThieving > p.getLevelForXP(17)) {
p.frames.sendMessage(p, "You need " + cLThieving + " Thieving to equip this item.");
return;
}
if (cLCrafting > p.getLevelForXP(12)) {
p.frames.sendMessage(p, "You need " + cLCrafting + " Crafting to equip this item.");
return;
}
if (cLFletching > p.getLevelForXP(9)) {
p.frames.sendMessage(p, "You need " + cLFletching + " Fletching to equip this item.");
return;
}
if (cLSlayer > p.getLevelForXP(18)) {
p.frames.sendMessage(p, "You need " + cLSlayer + " Slayer to equip this item.");
return;
}
if (cLConstruction > p.getLevelForXP(22)) {
p.frames.sendMessage(p, "You need " + cLConstruction + " Construction to equip this item.");
return;
}
if (cLMining > p.getLevelForXP(14)) {
p.frames.sendMessage(p, "You need " + cLMining + " Mining to equip this item.");
return;
}
if (cLSmithing > p.getLevelForXP(13)) {
p.frames.sendMessage(p, "You need " + cLSmithing + " Smithing to equip this item.");
return;
}
if (cLFishing > p.getLevelForXP(10)) {
p.frames.sendMessage(p, "You need " + cLFishing + " Fishing to equip this item.");
return;
}
if (cLCooking > p.getLevelForXP(7)) {
p.frames.sendMessage(p, "You need " + cLCooking + " Cooking to equip this item.");
return;
}
if (cLFiremaking > p.getLevelForXP(11)) {
p.frames.sendMessage(p, "You need " + cLFiremaking + " Firemaking to equip this item.");
return;
}
if (cLWoodcutting > p.getLevelForXP(8)) {
p.frames.sendMessage(p, "You need " + cLWoodcutting + " Woodcutting to equip this item.");
return;
}
if (cLFarming > p.getLevelForXP(19)) {
p.frames.sendMessage(p, "You need " + cLFarming + " Farming to equip this item.");
return;
}
if (cLHunter > p.getLevelForXP(21)) {
p.frames.sendMessage(p, "You need " + cLHunter + " Hunter to equip this item.");
return;
}
if (cLSummoning > p.getLevelForXP(23)) {
p.frames.sendMessage(p, "You need " + cLSummoning + " Summoning to equip this item.");
return;
}
now find this
Code:
if (itemName.equals("Ancient staff"))
return 50;
return 1;
}
under that add
Code:
/**
* Returns the Prayer level needed to weild ItemID.
* @param ItemID The item id to check.
* @return The Prayer level requirement for the item.
*/
public int getCLPrayer(int ItemID) {
String itemName = Engine.items.getItemName(ItemID);
if (itemName.equals("Prayer cape"))
return 99;
if (itemName.equals("Prayer cape(t)"))
return 99;
if (itemName.equals("Prayer hood"))
return 99;
if (itemName.startsWith("Initiate sallet"))
return 10;
if (itemName.startsWith("Initiate hauberk"))
return 10;
if (itemName.startsWith("Initiate cuisse"))
return 10;
if (itemName.startsWith("Proselyte sallet"))
return 20;
if (itemName.startsWith("Proselyte hauberk"))
return 20;
if (itemName.startsWith("Proselyte cuisse"))
return 20;
return 1;
}
/**
* Returns the Runecraft level needed to weild ItemID.
* @param ItemID The item id to check.
* @return The Runecraft level requirement for the item.
*/
public int getCLRunecraft(int ItemID) {
String itemName = Engine.items.getItemName(ItemID);
if (itemName.equals("Runecraft cape"))
return 99;
if (itemName.equals("Runecraft cape(t)"))
return 99;
if (itemName.equals("Runecrafting hood"))
return 99;
return 1;
}
/**
* Returns the Hitpoints level needed to weild ItemID.
* @param ItemID The item id to check.
* @return The Hitpoints level requirement for the item.
*/
public int getCLHitpoints(int ItemID) {
String itemName = Engine.items.getItemName(ItemID);
if (itemName.equals("Hitpoints cape"))
return 99;
if (itemName.equals("Hitpoints cape(t)"))
return 99;
if (itemName.equals("Hitpoints hood"))
return 99;
return 1;
}
/**
* Returns the Prayer level needed to weild ItemID.
* @param ItemID The item id to check.
* @return The Prayer level requirement for the item.
*/
public int getCLAgility(int ItemID) {
String itemName = Engine.items.getItemName(ItemID);
if (itemName.equals("Agility cape"))
return 99;
if (itemName.equals("Agility cape(t)"))
return 99;
if (itemName.equals("Agility hood"))
return 99;
return 1;
}
/**
* Returns the Prayer level needed to weild ItemID.
* @param ItemID The item id to check.
* @return The Prayer level requirement for the item.
*/
public int getCLHerblore(int ItemID) {
String itemName = Engine.items.getItemName(ItemID);
if (itemName.equals("Herblore cape"))
return 99;
if (itemName.equals("Herblore cape(t)"))
return 99;
if (itemName.equals("Herblore hood"))
return 99;
return 1;
}
/**
* Returns the Prayer level needed to weild ItemID.
* @param ItemID The item id to check.
* @return The Prayer level requirement for the item.
*/
public int getCLThieving(int ItemID) {
String itemName = Engine.items.getItemName(ItemID);
if (itemName.equals("Thieving cape"))
return 99;
if (itemName.equals("Thieving cape(t)"))
return 99;
if (itemName.equals("Thieving hood"))
return 99;
return 1;
}
/**
* Returns the Prayer level needed to weild ItemID.
* @param ItemID The item id to check.
* @return The Prayer level requirement for the item.
*/
public int getCLCrafting(int ItemID) {
String itemName = Engine.items.getItemName(ItemID);
if (itemName.equals("Crafting cape"))
return 99;
if (itemName.equals("Crafting cape(t)"))
return 99;
if (itemName.equals("Crafting hood"))
return 99;
return 1;
}
/**
* Returns the Prayer level needed to weild ItemID.
* @param ItemID The item id to check.
* @return The Prayer level requirement for the item.
*/
public int getCLFletching(int ItemID) {
String itemName = Engine.items.getItemName(ItemID);
if (itemName.equals("Fletching cape"))
return 99;
if (itemName.equals("Fletching cape(t)"))
return 99;
if (itemName.equals("Fletching hood"))
return 99;
return 1;
}
/**
* Returns the Prayer level needed to weild ItemID.
* @param ItemID The item id to check.
* @return The Prayer level requirement for the item.
*/
public int getCLSlayer(int ItemID) {
String itemName = Engine.items.getItemName(ItemID);
if (itemName.equals("Slayer cape"))
return 99;
if (itemName.equals("Slayer cape(t)"))
return 99;
if (itemName.equals("Slayer hood"))
return 99;
return 1;
}
/**
* Returns the Prayer level needed to weild ItemID.
* @param ItemID The item id to check.
* @return The Prayer level requirement for the item.
*/
public int getCLConstruction(int ItemID) {
String itemName = Engine.items.getItemName(ItemID);
if (itemName.equals("Construct. cape"))
return 99;
if (itemName.equals("Construct. cape(t)"))
return 99;
if (itemName.equals("Construct. hood"))
return 99;
return 1;
}
/**
* Returns the Prayer level needed to weild ItemID.
* @param ItemID The item id to check.
* @return The Prayer level requirement for the item.
*/
public int getCLMining(int ItemID) {
String itemName = Engine.items.getItemName(ItemID);
if (itemName.equals("Mining cape"))
return 99;
if (itemName.equals("Mining cape(t)"))
return 99;
if (itemName.equals("Mining hood"))
return 99;
return 1;
}
/**
* Returns the Prayer level needed to weild ItemID.
* @param ItemID The item id to check.
* @return The Prayer level requirement for the item.
*/
public int getCLSmithing(int ItemID) {
String itemName = Engine.items.getItemName(ItemID);
if (itemName.equals("Smithing cape"))
return 99;
if (itemName.equals("Smithing cape(t)"))
return 99;
if (itemName.equals("Smithing hood"))
return 99;
return 1;
}
/**
* Returns the Prayer level needed to weild ItemID.
* @param ItemID The item id to check.
* @return The Prayer level requirement for the item.
*/
public int getCLFishing(int ItemID) {
String itemName = Engine.items.getItemName(ItemID);
if (itemName.equals("Fishing cape"))
return 99;
if (itemName.equals("Fishing cape(t)"))
return 99;
if (itemName.equals("Fishing hood"))
return 99;
return 1;
}
/**
* Returns the Prayer level needed to weild ItemID.
* @param ItemID The item id to check.
* @return The Prayer level requirement for the item.
*/
public int getCLCooking(int ItemID) {
String itemName = Engine.items.getItemName(ItemID);
if (itemName.equals("Cooking cape"))
return 99;
if (itemName.equals("Cooking cape(t)"))
return 99;
if (itemName.equals("Cooking hood"))
return 99;
return 1;
}
/**
* Returns the Prayer level needed to weild ItemID.
* @param ItemID The item id to check.
* @return The Prayer level requirement for the item.
*/
public int getCLFiremaking(int ItemID) {
String itemName = Engine.items.getItemName(ItemID);
if (itemName.equals("Firemaking cape"))
return 99;
if (itemName.equals("Firemaking cape(t)"))
return 99;
if (itemName.equals("Firemaking hood"))
return 99;
return 1;
}
/**
* Returns the Prayer level needed to weild ItemID.
* @param ItemID The item id to check.
* @return The Prayer level requirement for the item.
*/
public int getCLWoodcutting(int ItemID) {
String itemName = Engine.items.getItemName(ItemID);
if (itemName.equals("Woodcutting cape"))
return 99;
if (itemName.equals("Woodcut. cape(t)"))
return 99;
if (itemName.equals("Woodcutting hood"))
return 99;
return 1;
}
/**
* Returns the Prayer level needed to weild ItemID.
* @param ItemID The item id to check.
* @return The Prayer level requirement for the item.
*/
public int getCLFarming(int ItemID) {
String itemName = Engine.items.getItemName(ItemID);
if (itemName.equals("Farming cape"))
return 99;
if (itemName.equals("Farming cape(t)"))
return 99;
if (itemName.equals("Farming hood"))
return 99;
return 1;
}
/**
* Returns the Prayer level needed to weild ItemID.
* @param ItemID The item id to check.
* @return The Prayer level requirement for the item.
*/
public int getCLHunter(int ItemID) {
String itemName = Engine.items.getItemName(ItemID);
if (itemName.equals("Hunter cape"))
return 99;
if (itemName.equals("Hunter cape(t)"))
return 99;
if (itemName.equals("Hunter hood"))
return 99;
return 1;
}
/**
* Returns the Prayer level needed to weild ItemID.
* @param ItemID The item id to check.
* @return The Prayer level requirement for the item.
*/
public int getCLSummoning(int ItemID) {
String itemName = Engine.items.getItemName(ItemID);
if (itemName.equals("Summoning cape"))
return 99;
if (itemName.equals("Summoning skillcape(t)"))
return 99;
if (itemName.equals("Summoning hood"))
return 99;
return 1;
Code:
public int getCLStrength(int ItemID) {
public int getCLAttack(int ItemID) {
public int getCLDefence(int ItemID) {
Code:
if (itemName.equals("SKILLCAPE/HOOD NAME HERE"))
return 99;
Questions? then leave a comment and they will be answered..