Results 1 to 6 of 6

Thread: Need help with Money Tree Grabber...it's grabbing everything including trash!

  1. #1

    Joined
    Aug 2017
    Posts
    3
    Userbars
    0
    Thanks
    0
    Thanked
    0/0
    Mentioned
    Never
    Time Online
    16m
    Avg. Time Online
    N/A

    Need help with Money Tree Grabber...it's grabbing everything including trash!

    Before you tell me to "uncheck the grab everything box", I have no idea where these boxes are or how to do that. When I click "settings" there are no settings like this. I'm using Tapermonkey on Opera to run this program if that helps.

  2. #2
    Saiyan Race
    j03's Avatar
    Joined
    Dec 2011
    Posts
    13,720
    Userbars
    166
    Thanks
    5,906
    Thanked
    33,076/6,608
    DL/UL
    23/36
    Mentioned
    3,867 times
    Time Online
    563d 4h 55m
    Avg. Time Online
    3h 13m
    It would help if you posted the script code here so we can take a look at it or maybe post the URL to the download.
    (you need an account to see links)
    (you need an account to see links)(you need an account to see links)

    ------------------------
    [02/24/2013] Stealth CORE is made into the first standalone Neopets auto-player.
    ------------------------


  3. #3

    Joined
    Aug 2017
    Posts
    3
    Userbars
    0
    Thanks
    0
    Thanked
    0/0
    Mentioned
    Never
    Time Online
    16m
    Avg. Time Online
    N/A
    Oh yes, sorry!

    Link: (you need an account to see links)

    Script:
    // ==UserScript==
    // @name Money Tree Grabber
    // @namespace Synesthesia Labs
    // @include (you need an account to see links)
    // @version 1.1
    // @grant none
    // @description Grabs stuff from money tree.
    // ==/UserScript==
    searches = ["morphing potion", "paint brush", "transmogrification", "generous", "codestone", "np", "map", "codestone"];


    function clicklink(element)
    {
    var event = document.createEvent("MouseEvents");
    event.initMouseEvent("click", true, true, document.defaultView, 1, 0, 0, 0, 0, false, false, false, false, 0, null);
    element.dispatchEvent(event);
    return;
    };
    document.body.innerHTML = document.getElementById('mt-content').innerHTML;

    if ( ! new RegExp(searches.join("|")).test(document.body.inne rHTML.toLowerCase())) {
    setTimeout("location.reload()",800);

    }
    else{

    var items = document.getElementsByClassName('donated');
    for (index = 0; index < items.length; ++index) {


    if (new RegExp(searches.join("|")).test(items[index].innerHTML.toLowerCase())) {


    match = items[index].getElementsByTagName('a')[0];

    }

    }
    clicklink(match);

    }

  4. #4
    Stocking Anarchy's Avatar
    Joined
    May 2016
    Posts
    1,371
    Userbars
    11
    Thanks
    929
    Thanked
    1,627/650
    DL/UL
    182/0
    Mentioned
    145 times
    Time Online
    47d 8h 56m
    Avg. Time Online
    23m
    You have to edit the code to specify what items you want. The script is limited in that it grabs every item that has the same name. So if you have the word codestone then it will grab every item with the word codestone like codestone plushies.

    The word generous makes the bot grab any item that is an NC item, NP the script will grab any np amount, so basically you need to edit

    Code:
    searches = ["morphing potion", "paint brush", "transmogrification", "generous", "codestone", "np", "map", "codestone"];
    so that the words aren't so general.







  5. #5

    Joined
    Aug 2017
    Posts
    3
    Userbars
    0
    Thanks
    0
    Thanked
    0/0
    Mentioned
    Never
    Time Online
    16m
    Avg. Time Online
    N/A
    Thanks for the response. Unfortunately my problem is that it's grabbing things like soggy boxes and rotten shoes which have none of the set terms.

  6. #6
    Stocking Anarchy's Avatar
    Joined
    May 2016
    Posts
    1,371
    Userbars
    11
    Thanks
    929
    Thanked
    1,627/650
    DL/UL
    182/0
    Mentioned
    145 times
    Time Online
    47d 8h 56m
    Avg. Time Online
    23m
    Quote Originally Posted by stinkyrats View Post
    Thanks for the response. Unfortunately my problem is that it's grabbing things like soggy boxes and rotten shoes which have none of the set terms.
    are there spaces between the comma and the new "? maybe try getting rid of those.

    This is my script but I haven't used it in a while.

    Oh and if you upgraded past firefox 54 some userscripts are starting to act funky. So try downgrading firefox as well.

    Code:
    // ==UserScript==
    // @(you need an account to see links)        Money Tree Grabber
    // @(you need an account to see links)space   Synesthesia Labs
    // @include     (you need an account to see links)
    // @version     1.1
    // @grant       none
    // @(you need an account to see links)cription Grabs stuff from money tree.
    // ==/UserScript==
    searches = ["draik egg","morphing potion","paint brush","transmogrification potion","secret laboratory map","icetravaganza scratchcard","dark secret background","mutating millions scratchcard","pustravaganza scratchcard","bagguss bonanza scratchcard","sandtravaganza scratchcard","brightvale job coupon","golden nerkmid","platinum nerkmid","copper nerkmid","ultimate nerkmid","super nerkmid","ultra nerkmid","average nerkmid","tcg","generous"];
    
    
    
    
    
    
    
      
    
       
    
    function clicklink(element)
    {
        var event = document.createEvent("MouseEvents");
        event.initMouseEvent("click", true, true, document.defaultView, 1, 0, 0, 0, 0, false, false, false, false, 0, null);
        element.dispatchEvent(event);
        return;
    };
    document.body.innerHTML = document.getElementById('mt-content').innerHTML;
    
           if ( ! new RegExp(searches.join("|")).test(document.body.innerHTML.toLowerCase())) {
            setTimeout("location.reload()",800);
           
    }
    else{
        
        var items = document.getElementsByClassName('donated');
    for (index = 0; index < items.length; ++index) {
        
        
      if (new RegExp(searches.join("|")).test(items[index].innerHTML.toLowerCase())) {    
     
         
            match = items[index].getElementsByTagName('a')[0];
            
        }
    
    }
        clicklink(match);
        
    }







Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •