Thread: Project Insanity - Evolved v.3 Woodcutting?

Results 1 to 8 of 8
  1. #1 Project Insanity - Evolved v.3 Woodcutting? 
    Registered Member
    Join Date
    Jun 2010
    Posts
    632
    Thanks given
    61
    Thanks received
    22
    Rep Power
    49
    Hey guys,

    I use the best and stablest PI but one problem Woodcutting doesn't work, I already tried to rewrite it but when you click on a tree nothing happens...
    Reply With Quote  
     

  2. #2  
    Working on private projects ~~

    Join Date
    Oct 2012
    Posts
    268
    Thanks given
    17
    Thanks received
    17
    Rep Power
    33
    Make sure your action handler refers to your woodcutting class.
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jun 2010
    Posts
    632
    Thanks given
    61
    Thanks received
    22
    Rep Power
    49
    It does I think so this is in the action handler in firstClickObject:

    c.getWood().checkTree(objectType);
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jun 2010
    Posts
    632
    Thanks given
    61
    Thanks received
    22
    Rep Power
    49
    bump ;(
    Reply With Quote  
     

  5. #5  
    Banned

    Join Date
    Jul 2011
    Age
    27
    Posts
    748
    Thanks given
    2,207
    Thanks received
    451
    Rep Power
    0
    Quote Originally Posted by MarkQ View Post
    It does I think so this is in the action handler in firstClickObject:
    Give us that method, just vm when you have
    Reply With Quote  
     

  6. #6  
    Registered Member
    Join Date
    Jun 2010
    Posts
    632
    Thanks given
    61
    Thanks received
    22
    Rep Power
    49
    ambient could I have your skype or msn? here is my checktree method:

    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;
    }
    }
    Reply With Quote  
     

  7. #7  
    Banned

    Join Date
    Jul 2011
    Age
    27
    Posts
    748
    Thanks given
    2,207
    Thanks received
    451
    Rep Power
    0
    Si the Tree ID included in the switch statement sir?
    Reply With Quote  
     

  8. #8  
    Registered Member
    Join Date
    Jun 2010
    Posts
    632
    Thanks given
    61
    Thanks received
    22
    Rep Power
    49
    yea... but thanks anyway
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. [Last from me] Project Insanity - Evolved v.3
    By Ambient in forum Downloads
    Replies: 317
    Last Post: 02-04-2014, 05:03 AM
  2. Project Insanity - Evolved v.2
    By Ambient in forum Downloads
    Replies: 93
    Last Post: 05-09-2012, 09:48 PM
  3. Replies: 7
    Last Post: 03-07-2012, 12:23 AM
  4. Project Insanity - Evolved v1.0
    By Ambient in forum Downloads
    Replies: 88
    Last Post: 12-28-2011, 10:48 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •