Code:
case 2109: //Clay
if(HasItemAmount(1275, 1) || (HasItemAmount(1273, 1) || (HasItemAmount(1271, 1) || (HasItemAmount(1269, 1) || (HasItemAmount(1267, 1) || (HasItemAmount(1265, 1))))))){
if(playerLevel[14] >= 1) {
if (actionTimer == 0) {
actionAmount++;
addItem(434, 1);
actionTimer = 28;
PickAxeOwns();
addSkillXP((20*playerLevel[14]), 14);
LegendAnn("you swing your pickaxe at the rock and you get some ore!");
}
else if(playerLevel[14] < 1) {
LegendAnn("you need at least 1 Mining to mine Clay!");
}
}
}
break;
case 2091: //copper
if(HasItemAmount(1275, 1) || (HasItemAmount(1273, 1) || (HasItemAmount(1271, 1) || (HasItemAmount(1269, 1) || (HasItemAmount(1267, 1) || (HasItemAmount(1265, 1))))))){
if(playerLevel[14] >= 1) {
if (actionTimer == 0) {
actionAmount++;
addItem(436, 1);
actionTimer = 28;
PickAxeOwns();
addSkillXP((20*playerLevel[14]), 14);
LegendAnn("you swing your pickaxe at the rock and you get some ore!");
}
else if(playerLevel[14] < 1) {
LegendAnn("you need at least 5 Mining to mine Copper!");
}
}
}
break;
case 2095: //Tin
if(HasItemAmount(1275, 1) || (HasItemAmount(1273, 1) || (HasItemAmount(1271, 1) || (HasItemAmount(1269, 1) || (HasItemAmount(1267, 1) || (HasItemAmount(1265, 1))))))){
if(playerLevel[14] >= 1) {
if (actionTimer == 0) {
actionAmount++;
addItem(438, 1);
actionTimer = 28;
PickAxeOwns();
addSkillXP((20*playerLevel[14]), 14);
LegendAnn("you swing your pickaxe at the rock and you get some ore!");
}
else if(playerLevel[14] < 1) {
LegendAnn("you need at least 5 mining to mine Tin!");
}
}
}
break;
case 2093: //Iron
if(HasItemAmount(1275, 1) || (HasItemAmount(1273, 1) || (HasItemAmount(1271, 1) || (HasItemAmount(1269, 1) || (HasItemAmount(1267, 1) || (HasItemAmount(1265, 1))))))){
if(playerLevel[14] >= 15) {
if (actionTimer == 0) {
actionAmount++;
addItem(440, 1);
actionTimer = 28;
PickAxeOwns();
addSkillXP((40*playerLevel[14]), 14);
LegendAnn("you swing your pickaxe at the rock and you get some ore!");
}
else if(playerLevel[14] < 15 && playerEquipment[playerWeapon] == 1275) {
LegendAnn("you need at least 15 Mining to mine Iron!");
}
}
}
break;
case 2101: //Silver
if(HasItemAmount(1275, 1) || (HasItemAmount(1273, 1) || (HasItemAmount(1271, 1) || (HasItemAmount(1269, 1) || (HasItemAmount(1267, 1) || (HasItemAmount(1265, 1))))))){
if(playerLevel[14] >= 20) {
if (actionTimer == 0) {
actionAmount++;
addItem(442, 1);
actionTimer = 28;
PickAxeOwns();
addSkillXP((60*playerLevel[14]), 14);
LegendAnn("you swing your pickaxe at the rock and you get some ore!");
}
else if(playerLevel[14] < 20) {
LegendAnn("you need at least 20 Mining to mine Silver!");
}
}
}
break;
case 2097: //Coal
if(HasItemAmount(1275, 1) || (HasItemAmount(1273, 1) || (HasItemAmount(1271, 1) || (HasItemAmount(1269, 1) || (HasItemAmount(1267, 1) || (HasItemAmount(1265, 1))))))){
if(playerLevel[14] >= 30) {
if (actionTimer == 0) {
actionAmount++;
addItem(453, 1);
actionTimer = 28;
PickAxeOwns();
addSkillXP((80*playerLevel[14]), 14);
LegendAnn("you swing your pickaxe at the rock and you get some ore!");
}
else if(playerLevel[14] < 30) {
LegendAnn("you need at least 30 Mining to mine Coal!");
}
}
}
break;
case 2103: //Mith
if(HasItemAmount(1275, 1) || (HasItemAmount(1273, 1) || (HasItemAmount(1271, 1) || (HasItemAmount(1269, 1) || (HasItemAmount(1267, 1) || (HasItemAmount(1265, 1))))))){
if(playerLevel[14] >= 50) {
if (actionTimer == 0) {
actionAmount++;
addItem(447, 1);
actionTimer = 28;
PickAxeOwns();
addSkillXP((100*playerLevel[14]), 14);
LegendAnn("you swing your pickaxe at the rock and you get some ore!");
}
else if(playerLevel[14] < 50) {
LegendAnn("you need at least 50 Mining to mine Mithril!");
}
}
}
break;
case 2105: //Addy
if(HasItemAmount(1275, 1) || (HasItemAmount(1273, 1) || (HasItemAmount(1271, 1) || (HasItemAmount(1269, 1) || (HasItemAmount(1267, 1) || (HasItemAmount(1265, 1))))))){
if(playerLevel[14] >= 70) {
if (actionTimer == 0) {
actionAmount++;
addItem(449, 1);
actionTimer = 28;
PickAxeOwns();
addSkillXP((120*playerLevel[14]), 14);
LegendAnn("you swing your pickaxe at the rock and you get some ore!");
}
else if(playerLevel[14] < 70) {
LegendAnn("you need at least 70 Mining to mine Adamant!");
}
}
}
break;
case 2107: //Rune
if(HasItemAmount(1275, 1) || (HasItemAmount(1273, 1) || (HasItemAmount(1271, 1) || (HasItemAmount(1269, 1) || (HasItemAmount(1267, 1) || (HasItemAmount(1265, 1))))))){
if(playerLevel[14] >= 90) {
if (actionTimer == 0) {
actionAmount++;
addItem(451, 1);
actionTimer = 28;
PickAxeOwns();
addSkillXP((150*playerLevel[14]), 14);
LegendAnn("you swing your pickaxe at the rock and you get some ore!");
}
else if(playerLevel[14] < 90) {
LegendAnn("you need at least 90 Mining to mine Rune!");
}
}
}
break;