Thread: Dirty fix for my Mining Tut.

Results 1 to 7 of 7
  1. #1 Dirty fix for my Mining Tut. 
    ~Legend Rene
    Guest
    Purpose : to fix my last mining tut (the bad way) But works.

    Difficulty : dumb = 5 brainess = 10

    Classes modified : Client

    Credits : err.. me?

    WARNING : BACKUP YOUR OLDER MINING IN CASE YOU CANNOT SEEM TO GET THIS WORKING OR IT DOESNT WORK PROPERLY(It should)

    Step 1:
    Under public class client extends player implemented blabla {
    Add this ****ty method:
    Code:
    public void PickAxeOwns() {
    if (playerEquipment[playerWeapon] == 1275) {
    setAnimation(629);
    } else {
    if (playerEquipment[playerWeapon] == 1271) {
    setAnimation(628);
    } else {
    if (playerEquipment[playerWeapon] == 1273) {
    setAnimation(627);
    } else {
    if (playerEquipment[playerWeapon] == 1269) {
    setAnimation(626);
    } else {
    if (playerEquipment[playerWeapon] == 1267) {
    setAnimation(625);
    } else {
    if (playerEquipment[playerWeapon] == 1265) {
    setAnimation(624);
    }
    } 
    }
    } 
    }
    } 
    }

    Step 2: Add this between object click1 cases
    :
    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;

    Now .. It should work properly and not give you any errors , if you left your old mining you might get errors such as : Duplicate case label.
    Then either undo this.
    Or backup your old mining and remove it.
    ~Java 4.5gz
     

  2. #2  
    ~Kajakas~
    Guest
    java...wth is legendann we have sendmessage?
     

  3. #3  
    ~Legend Rene
    Guest
    Ye well I dont got sendmessage , just press ctrl + h and replace LegendAnn with sendMessage.
     

  4. #4  
    Registered Member

    Join Date
    Sep 2006
    Age
    31
    Posts
    623
    Thanks given
    2
    Thanks received
    2
    Rep Power
    156
    Or you could use my Mining
    I'm back
     

  5. #5  
    ~Legend Rene
    Guest
    Yup choice is up to them.
    Yours better though , but didnt work for me
     

  6. #6  
    Registered Member

    Join Date
    Sep 2006
    Age
    31
    Posts
    623
    Thanks given
    2
    Thanks received
    2
    Rep Power
    156
    What was wrong with it? What happend to make it not working? lol
    I'm back
     

  7. #7  
    ~Legend Rene
    Guest
    Dont really remember , but I think its a few antileeches ( im way to lazy tbh )
    And im going for a nice cup of coffee
     


Thread Information
Users Browsing this Thread

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


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •