This is for PI and isnt perfect i wrote it in like 5 minutes but it makes planks.
Open playerassistant.java and put this anywhere.
Spoiler for playerassistant.java:
public void plankMake() {
if (c.playerLevel[6] < 86) {
c.sendMessage("You need a magic level of 86 to cast this spell.");
return;
}
if (c.getItems().playerHasItem(1511,1)) {
if (c.getItems().playerHasItem(9075,3) && c.getItems().playerHasItem(557,15) && c.getItems().playerHasItem(561,1)) {
c.startAnimation(-1);
c.gfx0(-1);
addSkillXP(c.MAGIC_SPELLS[51][7] * Config.MAGIC_EXP_RATE, 6);
refreshSkill(6);
c.getItems().deleteItem(9075,c.getItems().getItemS lot(9075),3);
c.getItems().deleteItem(557,c.getItems().getItemSl ot(557),15);
c.getItems().deleteItem(561,c.getItems().getItemSl ot(561),1);
} else {
c.sendMessage("You do not have the required runes to cast this spell.");
}
} else {
c.sendMessage("You do not have the required logs to cast this spell.");
}
int plankAmountMade = 0;
boolean plankMade = false;
boolean messageGiven = false;
for (int i = 0; i < 28; i++) {
if (c.getItems().playerHasItem(1511,1)) {
plankMade = true;
c.getItems().deleteItem(1511,c.getItems().getItemS lot(1511),1);
c.getItems().addItem(960, 1);
plankAmountMade += 1;
}
}
if (plankMade)
c.sendMessage("You made "+plankAmountMade+" planks.");
}
Then find clickingbuttons.java and put this in there
Spoiler for clickingbuttons.java:
case 118034:
c.getPA().plankMake();
break;
yes i know its not that great you can always add too it but my server doesnt support planks so i dont need it i just wanted to make it.
Nicely done All though.. I see no point in it honestly... what would people use planks for unless they were to add Con... and i doubt anyone will get that full but like i said Nice thx not adding though