Quantcast

Jump to content


Photo

sljMoneyTree (Money Tree Grabber)


  • This topic is locked This topic is locked
116 replies to this topic

#51 Hydrogen

Hydrogen
  • Neocodex Co-Founder

  • 22213 posts


Users Awards

Posted 17 July 2008 - 11:21 AM

QUOTE (ShadowLink64 @ Jul 17 2008, 11:20 AM) <{POST_SNAPBACK}>
Now, if only I knew how to make regular expressions.... tongue.gif

This might be of help: http://www.regular-e....info/java.html

Raui uses it in his CNL wink.gif. You can ask him for help too tongue.gif.

#52 curly

curly
  • 31 posts

Posted 17 July 2008 - 01:53 PM

im still unclear on how to make an item list do i do it in word or wat

#53 Hydrogen

Hydrogen
  • Neocodex Co-Founder

  • 22213 posts


Users Awards

Posted 17 July 2008 - 01:55 PM

QUOTE (curly @ Jul 17 2008, 02:53 PM) <{POST_SNAPBACK}>
im still unclear on how to make an item list do i do it in word or wat

Try notepad smile.gif. Word will not make a simple text file but notepad will smile.gif.

#54 Just Another User

Just Another User
  • 1586 posts

Posted 17 July 2008 - 02:06 PM

I used regex in my auto pricer to parse the pages, here is an example that should work for you:

CODE
import java.util.regex.Pattern;
import java.util.regex.Matcher;

private static final String WILDCARD_REGEX = "([\\w\\s]+)";
private Pattern REGEX_PATTERN;
private Matcher REGEX_MATCHER;
private String ITEM_NAME = "Bottled * Faerie";
private ArrayList<String> ItemNamesFound = new ArrayList<String>;

public String str_replace (String oldStr, String newStr, String subject)
{
    return subject.substring(0,subject.indexOf(oldStr))+newStr+subject.substring(subject.indexOf(oldStr)+oldStr.length());
}

public void doStuff ()
{
    REGEX_PATTERN = REGEX_PATTERN.compile("<b>"+str_replace("*", REGEX_PATTERN, ITEM_NAME)+"</b>"); // SCREW AROUND WITH THIS I JUST MADE IT UP, YOU PROBABLY JUST NEED TO ADD SOME SLIGHTLY MORE DETAILED HTML TO EITHER SIDE WHERE THE BOLD TAGS ARE!
    // String NEOPETS_HTML = wrapper.request.................
    REGEX_MATCHER = REGEX_PATTERN.matcher(NEOPETS_HTML);
    while(REGEX_MATCHER.find())
    {
        itemNamesFound.add(REGEX_MATCHER.group(1)); // NOT NECESSARILY GROUP 1 IF YOU MATCH MULTIPLE THINGS IN ONE REGEX GRAB EG ITEM ID    
    }
}


Right, this should give you an idea... i think you're smart enough to figure the rest out. Phew that took a while...

#55 curly

curly
  • 31 posts

Posted 17 July 2008 - 03:52 PM

QUOTE (justanotheruser @ Jul 17 2008, 02:06 PM) <{POST_SNAPBACK}>
I used regex in my auto pricer to parse the pages, here is an example that should work for you:

CODE
import java.util.regex.Pattern;
import java.util.regex.Matcher;

private static final String WILDCARD_REGEX = "([\\w\\s]+)";
private Pattern REGEX_PATTERN;
private Matcher REGEX_MATCHER;
private String ITEM_NAME = "Bottled * Faerie";
private ArrayList<String> ItemNamesFound = new ArrayList<String>;

public String str_replace (String oldStr, String newStr, String subject)
{
     return subject.substring(0,subject.indexOf(oldStr))+newStr+subject.substring(subject.indexOf(oldStr)+oldStr.length());
}

public void doStuff ()
{
     REGEX_PATTERN = REGEX_PATTERN.compile("<b>"+str_replace("*", REGEX_PATTERN, ITEM_NAME)+"</b>"); // SCREW AROUND WITH THIS I JUST MADE IT UP, YOU PROBABLY JUST NEED TO ADD SOME SLIGHTLY MORE DETAILED HTML TO EITHER SIDE WHERE THE BOLD TAGS ARE!
     // String NEOPETS_HTML = wrapper.request.................
     REGEX_MATCHER = REGEX_PATTERN.matcher(NEOPETS_HTML);
     while(REGEX_MATCHER.find())
     {
         itemNamesFound.add(REGEX_MATCHER.group(1)); // NOT NECESSARILY GROUP 1 IF YOU MATCH MULTIPLE THINGS IN ONE REGEX GRAB EG ITEM ID    
     }
}


Right, this should give you an idea... i think you're smart enough to figure the rest out. Phew that took a while...


im not very good with comp programming mainly i just take them apart and put em back together so do i copy that and then repace the bottled * faerie with wat i want???

#56 Just Another User

Just Another User
  • 1586 posts

Posted 17 July 2008 - 04:25 PM

QUOTE (curly @ Jul 18 2008, 12:52 AM) <{POST_SNAPBACK}>
im not very good with comp programming mainly i just take them apart and put em back together so do i copy that and then repace the bottled * faerie with wat i want???


blink.gif thats for shadow to add to the program lol

#57 curly

curly
  • 31 posts

Posted 17 July 2008 - 05:00 PM

QUOTE (justanotheruser @ Jul 17 2008, 05:25 PM) <{POST_SNAPBACK}>
blink.gif thats for shadow to add to the program lol


oh i feel retarded now 6751ov8.png

#58 ShadowLink64

ShadowLink64
  • 16735 posts


Users Awards

Posted 17 July 2008 - 10:30 PM

Thanks for the regex!

QUOTE (curly @ Jul 17 2008, 08:00 PM) <{POST_SNAPBACK}>
oh i feel retarded now 6751ov8.png

Hehe.

To make a list, just open notepad or any text editor. Seperate items by a line break, and only add asterisks at the beginning or end of an item name. Save the text file anywhere, and make sure you check off the box saying "Use Item Grabbing" or whatever I named it, and navigate to where you saved the text file.

So.. this is a valid item list:
CODE
Vo Codestone
Mau Codestone
Eo Codestone
Good Nerkmid


This is also valid:
CODE
* Codestone
* Nerkmid


or..
CODE
Faerie *


or..

(you get the idea... the asterisk is meant to be a wildcard... anything can take that space)
====================================================================
There are numerous bugs that I will need to fix in the next release:

- Program gets logged out sometimes and there is no handler for this.
- The 999 NP thing.
- Unable to process login bug.

.. and the stuff I said I would add too.

#59 curly

curly
  • 31 posts

Posted 17 July 2008 - 10:57 PM

QUOTE (ShadowLink64 @ Jul 17 2008, 11:30 PM) <{POST_SNAPBACK}>
Thanks for the regex!


Hehe.

To make a list, just open notepad or any text editor. Seperate items by a line break, and only add asterisks at the beginning or end of an item name. Save the text file anywhere, and make sure you check off the box saying "Use Item Grabbing" or whatever I named it, and navigate to where you saved the text file.

So.. this is a valid item list:
CODE
Vo Codestone
Mau Codestone
Eo Codestone
Good Nerkmid


This is also valid:
CODE
* Codestone
* Nerkmid


or..
CODE
Faerie *


or..

(you get the idea... the asterisk is meant to be a wildcard... anything can take that space)
====================================================================
There are numerous bugs that I will need to fix in the next release:

- Program gets logged out sometimes and there is no handler for this.
- The 999 NP thing.
- Unable to process login bug.

.. and the stuff I said I would add too.


ok now that makes sense thanks shadowlink just 4 the record say i was searching for a bottled faerie of any kind would it be * faerie or could i put bottled * faerie

#60 Corry

Corry
  • 166 posts

Posted 18 July 2008 - 12:26 AM

Whats the chance of getting frozen, and how long do you suggest using?

#61 ShadowLink64

ShadowLink64
  • 16735 posts


Users Awards

Posted 18 July 2008 - 10:17 AM

QUOTE (curly @ Jul 18 2008, 01:57 AM) <{POST_SNAPBACK}>
ok now that makes sense thanks shadowlink just 4 the record say i was searching for a bottled faerie of any kind would it be * faerie or could i put bottled * faerie

Not yet. tongue.gif I still have to add support for wildcards in the middle of the item name, 1we8.gif

#62 Evo

Evo
  • 10 posts

Posted 21 July 2008 - 12:13 AM

When I try to open this it says "Could not find the main class, program will exit".

#63 kingdomm

kingdomm
  • 2 posts

Posted 23 July 2008 - 05:09 PM

I feel stupid haa I don't know how to do ANY of this stuff....I'm trying to get MakeMeRich and MoneyTreeGrabber work on my computer.....but it's kinda not going well....someone....who knows what they are doing....can you please help me 1we8.gif Message me cause I've been waiting to find a site like this and now I don't know how to use it x/

#64 Oaken

Oaken
  • 7298 posts


Users Awards

Posted 23 July 2008 - 09:50 PM

Try going here and following the instructions carefully.

http://www.neocodex....ownload-47.html

Feel free to pm me if that doesn't work.

#65 blue_mew_3000

blue_mew_3000
  • 2 posts

Posted 28 July 2008 - 10:44 AM

Great biggrin.gif I love it xD *runs it*

#66 Just Another User

Just Another User
  • 1586 posts

Posted 29 July 2008 - 05:34 PM

I have an idea why it doesn't work for 1k+ SL, perhaps the account has to be 4month+ or so?

#67 Breus

Breus
  • 3 posts

Posted 09 August 2008 - 06:10 AM

Hi! Im new over here.

I'm trying it on a 4+ months account and still im getting the error.
About a few hours ago, i was getting some np, but now i can't get nothing. Any thoughs?
And the txt doesn't work, at least for me, with something like this.

CODE
* Codestone
Bottled * Faerie
* Plushie
* Boot


I've put the "* Boot" to see if it works and it doesn't seem to grab anything.

Ah! The other thing, the program used to go to the 'Idle' state from time to time. Why is that?

#68 Oaken

Oaken
  • 7298 posts


Users Awards

Posted 09 August 2008 - 06:13 AM

Have you already grabbed some items? I think there is a ten item limit each day.

#69 Breus

Breus
  • 3 posts

Posted 09 August 2008 - 06:44 AM

Neopoints count?

#70 Oaken

Oaken
  • 7298 posts


Users Awards

Posted 09 August 2008 - 06:49 AM

QUOTE (Breus @ Aug 9 2008, 03:44 PM) <{POST_SNAPBACK}>
Neopoints count?


I would think so.

#71 shulacu

shulacu
  • 1 posts

Posted 13 August 2008 - 12:50 AM

wont let me log in.. anyone know why?

Edited by shulacu, 13 August 2008 - 12:54 AM.


#72 h4ckz3r

h4ckz3r
  • 21 posts

Posted 16 August 2008 - 11:42 PM

*removed*
It really works..!

in 15 Minutes...I grab 2201 NP...
Good Work!

#73 Just Another User

Just Another User
  • 1586 posts

Posted 19 August 2008 - 04:43 PM

QUOTE (h4ckz3r @ Aug 17 2008, 08:42 AM) <{POST_SNAPBACK}>
It really works..!

in 15 Minutes...I grab 2201 NP...
Good Work!


Of course it works tongue.gif All programs here should work, unless they've not been updated in a while thumbsup.gif

Edited by Just Another User, 19 August 2008 - 04:57 PM.


#74 Oaken

Oaken
  • 7298 posts


Users Awards

Posted 19 August 2008 - 04:47 PM

He left his username in the screenshot rolleyes.gif .

#75 Just Another User

Just Another User
  • 1586 posts

Posted 19 August 2008 - 04:57 PM

QUOTE (Oaken @ Aug 20 2008, 01:47 AM) <{POST_SNAPBACK}>
He left his username in the screenshot rolleyes.gif .


Haha didn't notice that, i reported it for him so a mod can remove it.


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users