Thread: Requesting Help with woodcutting.

Results 1 to 5 of 5
  1. #1 Requesting Help with woodcutting. 
    Donator

    Join Date
    Jul 2014
    Age
    28
    Posts
    95
    Thanks given
    7
    Thanks received
    6
    Rep Power
    11
    Okay, if you could help me with:
    I got woodcutting working at global map, but when i add the tree to spawn at globalobjects, it spawns but i cannot cut the tree, 0 action. If you are to kind, maybe you could help me. 317 pi
    I took the ids of object from global map trees.
    Reply With Quote  
     

  2. #2  
    Author of the first public OSRSPS

    Shadowy's Avatar
    Join Date
    Sep 2009
    Age
    28
    Posts
    1,499
    Thanks given
    490
    Thanks received
    241
    Rep Power
    307
    Quote Originally Posted by Rune-Energy View Post
    Okay, if you could help me with:
    I got woodcutting working at global map, but when i add the tree to spawn at globalobjects, it spawns but i cannot cut the tree, 0 action. If you are to kind, maybe you could help me. 317 pi
    I took the ids of object from global map trees.
    id suggest looking at the click object code, find where woodcutting code is handled to see why it doesnt cut
    Owner of OS-RSPS, the first Oldschool RuneScape Server (2014)
    Reply With Quote  
     

  3. #3  
    Donator

    Join Date
    Jul 2014
    Age
    28
    Posts
    95
    Thanks given
    7
    Thanks received
    6
    Rep Power
    11
    The only thing i can find about woodcutting @ Click objects is
    case 1276:
    case 1278://trees
    case 1281: //oak
    case 1308: //willow
    case 1307: //maple
    case 1309: //yew
    case 1306: //magic
    c.objectDistance = 3;
    break;
    and this from actionhandler:
    case 1276:
    case 1278:
    case 1281:
    case 1308:
    case 1307:
    case 1309:
    case 1306:
    c.getWoodcutting().cutWood(objectType);
    break;
    Reply With Quote  
     

  4. #4  
    Registered Member Rs Owner 126's Avatar
    Join Date
    Jul 2015
    Posts
    70
    Thanks given
    41
    Thanks received
    13
    Rep Power
    25
    Try To Replace Your ActionHandler Code:
    Code:
    case 1276:
    case 1278:
    case 1281:
    case 1308:
    case 1307:
    case 1309:
    case 1306:
    c.getWoodcutting().cutWood(objectType);
    break;
    With This Code:
    Code:
    case 1276:
                case 1278:
                    //trees
                    if (c.getItems().freeSlots() <= 0) {
                        c.getPA().sendStatement("Your inventory is full");
                    } else {
                        c.woodcut[0] = 1511;
                        c.woodcut[1] = 1;
                        c.woodcut[2] = 25;
                        c.woodcut[3] = obX;
                        c.woodcut[4] = obY;
                        c.woodcut[5] = 8;
                        c.woodcut[6] = objectType;
                        c.getWoodcutting().startWoodcutting(c.woodcut[0], c.woodcut[1], c.woodcut[2], c.woodcut[3], c.woodcut[4], c.woodcut[5], c.woodcut[6]);
                    }
                    break;
                case 1281:
                    //oak
                    if (c.getItems().freeSlots() <= 0) {
                        c.getPA().sendStatement("Your inventory is full");
                    } else {
                        c.woodcut[0] = 1521;
                        c.woodcut[1] = 15;
                        c.woodcut[2] = 37;
                        c.woodcut[3] = obX;
                        c.woodcut[4] = obY;
                        c.woodcut[5] = 9;
                        c.woodcut[6] = objectType;
                        c.getWoodcutting().startWoodcutting(c.woodcut[0], c.woodcut[1], c.woodcut[2], c.woodcut[3], c.woodcut[4], c.woodcut[5], c.woodcut[6]);
                    }
                    break;
    
                case 1308:
                    //willow
                    if (c.getItems().freeSlots() <= 0) {
                        c.getPA().sendStatement("Your inventory is full");
                    } else {
                        c.woodcut[0] = 1519;
                        c.woodcut[1] = 30;
                        c.woodcut[2] = 68;
                        c.woodcut[3] = obX;
                        c.woodcut[4] = obY;
                        c.woodcut[5] = 10;
                        c.woodcut[6] = objectType;
                        c.getWoodcutting().startWoodcutting(c.woodcut[0], c.woodcut[1], c.woodcut[2], c.woodcut[3], c.woodcut[4], c.woodcut[5], c.woodcut[6]);
                    }
                    break;
    
                case 1307:
                    //maple
                    if (c.getItems().freeSlots() <= 0) {
                        c.getPA().sendStatement("Your inventory is full");
                    } else {
                        c.woodcut[0] = 1517;
                        c.woodcut[1] = 45;
                        c.woodcut[2] = 100;
                        c.woodcut[3] = obX;
                        c.woodcut[4] = obY;
                        c.woodcut[5] = 11;
                        c.woodcut[6] = objectType;
                        c.getWoodcutting().startWoodcutting(c.woodcut[0], c.woodcut[1], c.woodcut[2], c.woodcut[3], c.woodcut[4], c.woodcut[5], c.woodcut[6]);
                    }
                    break;
    
                case 1309:
                    //yew
                    if (c.getItems().freeSlots() <= 0) {
                        c.getPA().sendStatement("Your inventory is full");
                    } else {
                        c.woodcut[0] = 1515;
                        c.woodcut[1] = 60;
                        c.woodcut[2] = 175;
                        c.woodcut[3] = obX;
                        c.woodcut[4] = obY;
                        c.woodcut[5] = 12;
                        c.woodcut[6] = objectType;
                        c.getWoodcutting().startWoodcutting(c.woodcut[0], c.woodcut[1], c.woodcut[2], c.woodcut[3], c.woodcut[4], c.woodcut[5], c.woodcut[6]);
                    }
                    break;
    
                case 1306:
                    // magic
                    if (c.getItems().freeSlots() <= 0) {
                        c.getPA().sendStatement("Your inventory is full");
                    } else {
                        c.woodcut[0] = 1513;
                        c.woodcut[1] = 75;
                        c.woodcut[2] = 250;
                        c.woodcut[3] = obX;
                        c.woodcut[4] = obY;
                        c.woodcut[5] = 13;
                        c.woodcut[6] = objectType;
                        c.getWoodcutting().startWoodcutting(c.woodcut[0], c.woodcut[1], c.woodcut[2], c.woodcut[3], c.woodcut[4], c.woodcut[5], c.woodcut[6]);
                    }
                    break;
    Reply With Quote  
     

  5. #5  
    Donator

    Join Date
    Jul 2014
    Age
    28
    Posts
    95
    Thanks given
    7
    Thanks received
    6
    Rep Power
    11
    No, thisone did not help me.
    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. Replies: 1
    Last Post: 08-07-2011, 04:04 AM
  2. Requesting help with
    By lukas265 in forum Requests
    Replies: 0
    Last Post: 03-31-2011, 04:20 PM
  3. Replies: 3
    Last Post: 08-02-2009, 10:00 PM
  4. Requesting help with VPS
    By Pointzero in forum Help
    Replies: 7
    Last Post: 04-16-2009, 03:45 PM
  5. requesting help with models
    By werder in forum Help
    Replies: 0
    Last Post: 03-19-2009, 09:17 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •