Go into your mining.java and search for " You smashed your pickaxe on the rock" and post the Method surrounding it, I'll take a look.
|
With whatever pickaxe in inventory, while trying to open bank or use portals it starts to mine and says : You smashed your pickaxe on the rock.
This happens both when equipped or in inventory.
I really need to fix that, accepting all the help!
Go into your mining.java and search for " You smashed your pickaxe on the rock" and post the Method surrounding it, I'll take a look.
Just make sure it only does mining actions for only mining object IDs?
Could someone help me via teamviewer , I just can't handle it!
Code there, if needed something else, tell me!
private String smashPickAxeOnRock = "You smashed your pickaxe on the rock...";
private int checkPickAxeForAnimation() {
for (int[] equipmentData : pickAxeData) {
if (c.getItems().playerHasItem(equipmentData[0], 1) || c.playerEquipment[c.playerWeapon] == equipmentData[0]) {
currentAnimation = equipmentData[1];
c.sendMessage(smashPickAxeOnRock);
return equipmentData[1];
}
}
return -1;
}
Anyone ?
Make an array with all the rock objectIDs, like so:Then make a for loop in your checkPickAxeForAnimation method:Code:public int[] rocks = {rockId1, rockId2, rockId3};then add a check to see if the object you are clicking on is an object:Code:for (int i = 0; i < rocks.length; i++) {Code:if (i == c.objectId) { c.sendMessage(smashPickAxeOnRock);
Fixed it already, but thanks anyways. Had some lines missing..
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |