public void checkTree(int i) {
switch(i) {
case 1276:
case 1277:
case 1278:
case 1279:
case 1280:
case 1330:
case 1332:
case 3033:
case 3034:
case 3035:
case 3036:
case 3879:
case 3881:
case 3882:
case 3883:
// Normal Tree
case 1315:
case 1316:
case 1318:
case 1319:
// Evergreen
case 1282:
case 1283:
case 1284:
case 1285:
case 1286:
case 1287:
case 1289:
case 1290:
case 1291:
case 1365:
case 1383:
case 1384:
case 5902:
case 5903:
case 5904:
// Dead Tree
c.woodcutting[0] = 1;
c.woodcutting[1] = 1;
c.woodcutting[2] = 25 * Config.WOODCUTTING_EXPERIENCE;
c.woodcutting[4] = 1511;
if(WCCheckAxe() <= 0) {
c.sendMessage("You need an axe to chop down this tree.");
resetWoodcutting();
return;
}
break;
case 2023:
// Achery Tree
if(WCCheckAxe() <= 0) {
c.sendMessage("You need an axe to cut down this tree.");
return;
}
c.woodcutting[0] = 2;
c.woodcutting[1] = 1;
c.woodcutting[2] = 25;
c.woodcutting[4] = 2862;
break;
case 1281:
case 3037:
// Oak Tree
if(WCCheckAxe() == 0) {
c.sendMessage("You need an axe to cut down this tree.");
return;
}
c.woodcutting[0] = 3;
c.woodcutting[1] = 15;
c.woodcutting[2] = 38 * Config.WOODCUTTING_EXPERIENCE;
c.woodcutting[4] = 1521;
if(WCCheckAxe() <= 0) {
c.sendMessage("You need an axe to chop down this tree.");
resetWoodcutting();
return;
}
if (c.playerLevel[c.playerWoodcutting] < c.woodcutting[1]) {
c.sendMessage("You need a woodcutting level of "+ c.woodcutting[1] +" to cut this tree.");
resetWoodcutting();
return;
}
break;
case 1308:
case 5551:
case 5552:
case 5553:
// Willow Tree
c.woodcutting[0] = 4;
c.woodcutting[1] = 30;
c.woodcutting[2] = 68 * Config.WOODCUTTING_EXPERIENCE;
c.woodcutting[4] = 1519;
if(WCCheckAxe() <= 0) {
c.sendMessage("You need an axe to chop down this tree.");
resetWoodcutting();
return;
}
if (c.playerLevel[c.playerWoodcutting] < c.woodcutting[1]) {
c.sendMessage("You need a woodcutting level of "+ c.woodcutting[1] +" to cut this tree.");
resetWoodcutting();
return;
}
break;
case 1292:
// Dramen Tree
c.woodcutting[0] = 5;
c.woodcutting[1] = 36;
c.woodcutting[2] = 0;
c.woodcutting[4] = 771;
if(WCCheckAxe() <= 0) {
c.sendMessage("You need an axe to chop down this tree.");
resetWoodcutting();
return;
}
if (c.playerLevel[c.playerWoodcutting] < c.woodcutting[1]) {
c.sendMessage("You need a woodcutting level of "+ c.woodcutting[1] +" to cut this tree.");
resetWoodcutting();
return;
}
break;
case 1307:
case 4674:
// Maple Tree
c.woodcutting[0] = 6;
c.woodcutting[1] = 45;
c.woodcutting[2] = 100 * Config.WOODCUTTING_EXPERIENCE;
c.woodcutting[4] = 1517;
if(WCCheckAxe() <= 0) {
c.sendMessage("You need an axe to chop down this tree.");
resetWoodcutting();
return;
}
if (c.playerLevel[c.playerWoodcutting] < c.woodcutting[1]) {
c.sendMessage("You need a woodcutting level of "+ c.woodcutting[1] +" to cut this tree.");
resetWoodcutting();
return;
}
break;
case 2289:
case 4060:
// Hollow Tree
c.playerStandIndex = 0x284;
c.appearanceUpdateRequired = true;
c.woodcutting[0] = 7;
c.woodcutting[1] = 45;
if (Misc.random(2) == 1) {
c.woodcutting[2] = 82;
} else {
c.woodcutting[2] = 83;
}
c.woodcutting[4] = 3239;
if(WCCheckAxe() <= 0) {
c.sendMessage("You need an axe to chop down this tree.");
resetWoodcutting();
return;
}
if (c.playerLevel[c.playerWoodcutting] < c.woodcutting[1]) {
c.sendMessage("You need a woodcutting level of "+ c.woodcutting[1] +" to cut this tree.");
resetWoodcutting();
return;
}
break;
case 1309:
// Yew Tree
c.playerStandIndex = 0x284;
c.appearanceUpdateRequired = true;
c.woodcutting[0] = 9;
c.woodcutting[1] = 60;
c.woodcutting[2] = 175 * Config.WOODCUTTING_EXPERIENCE;
c.woodcutting[4] = 1515;
c.woodcutting[5] = 3;
if(WCCheckAxe() <= 0) {
c.sendMessage("You need an axe to chop down this tree.");
resetWoodcutting();
return;
}
if (c.playerLevel[c.playerWoodcutting] < c.woodcutting[1]) {
c.sendMessage("You need a woodcutting level of "+ c.woodcutting[1] +" to cut this tree.");
resetWoodcutting();
return;
}
break;
case 1306:
// Magic Tree
c.playerStandIndex = 0x284;
c.appearanceUpdateRequired = true;
c.woodcutting[0] = 10;
c.woodcutting[1] = 75;
c.woodcutting[2] = 250 * Config.WOODCUTTING_EXPERIENCE;
c.woodcutting[4] = 1513;
if(WCCheckAxe() <= 0) {
c.sendMessage("You need an axe to chop down this tree.");
resetWoodcutting();
return;
}
if (c.playerLevel[c.playerWoodcutting] < c.woodcutting[1]) {
c.sendMessage("You need a woodcutting level of "+ c.woodcutting[1] +" to cut this tree.");
resetWoodcutting();
return;
}
break;
}
}