Results 1 to 12 of 12

Thread: Neopets Help

  1. #1

    Thread Starter
    Junior Member Cipher's Avatar
    Join Date
    Dec 2004
    Location
    In your closet!
    Posts
    23

    Neopets Help

    I am making a moneytree grabber for nps. I have their permission and I am triying to use the Mid function to get the ID of the items i want to grab.


    Could someone help me
    Go to this site
    http://www.neopets.com/donations.phtml

    I might have to use the len funcition to get the string first could someone please hlp me

    Here is my code so far.:

    Code:
    Private Sub Command1_Click()
    If Text1.Text = "" Then MsgBox " If you want to find a specific item. You must enter the ID"
    Dim IID As String
    IID = Text1.Text
    DPage = Wrapper.PostWrapper("www.neopets.com/takedonation_new.phtml?donation_id=" & IID, "www.neopets.com/donations")
    If Check1.Value = vbChecked Then Log.Text = "Grab Was Successful!(specific)"
    End Sub
    "It is a hard thing to fall, it is even harder to admit to that fall."

    -Darth Treya

    Star Wars: Knights of the Old Republic II

  2. #2
    Addicted Member Piller's Avatar
    Join Date
    Oct 2004
    Location
    california
    Posts
    177

    Re: Neopets Help

    THis is a little off topic but i seriouslt doubt that they gave u permission to go and make a program that does work for u while ur sleeping....
    Are we alive or just breathing?

  3. #3

    Thread Starter
    Junior Member Cipher's Avatar
    Join Date
    Dec 2004
    Location
    In your closet!
    Posts
    23

    Re: Neopets Help

    see it's kinda funny ..... THEY DID GIVE ME FREAKING PERMISSION SO JUST GIVE ME THE CODE...Geez I asked for help and this is what i get.
    "It is a hard thing to fall, it is even harder to admit to that fall."

    -Darth Treya

    Star Wars: Knights of the Old Republic II

  4. #4
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: Neopets Help

    Quote Originally Posted by Cipher
    see it's kinda funny ..... THEY DID GIVE ME FREAKING PERMISSION SO JUST GIVE ME THE CODE...Geez I asked for help and this is what i get.
    Being polite can go a long way...


    Has someone helped you? Then you can Rate their helpful post.

  5. #5
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: Neopets Help

    If they gave you permission and you don't even know how to do the simplest things for them, like getting ID tags on items, and went off on us like that who are trying to help you, then why did they give you permission to begin with?

    Your solution is simple. Especially when all ID tags are the same length, which can easily be done using either the Len() function or if you know the length already (Like for example, 6), then using the Mid() function would be no problem. Just know where the starting position of the ID is in the string for Start and use Len(Length of ID Here) or the length number of the ID you already know for Length.

    PS: Don't go off on us like that, especially me. My girlfriend of three years just broke up with me 2 days before Christmas, told me she was gay, admitted to lieing and cheating on me for the past few months, broke my trust, and as a result, put me through an emotional rollercoaster. I am not in the mood right now for that.

  6. #6
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349

    Re: Neopets Help

    Maybe I should not talk about her anymore. Plus I think I went a little off topic.

  7. #7
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    879

    Re: Neopets Help

    Firs things first:
    Piller, who the hell are you to question what he said. I don't recall you having magical powers that can tell lies from truth. When he said he got permission to create such a program, he never implied that he was hired to create a program FOR THEM. It's a program that he wants to make for himself or his friends. Manavo, don't post useless comments and not help out in the end. I see that Piller has less than 50 posts in this forum, and you're already criticizing and picking on people without being helpful, not that you have that right if you have 12893127301 posts, like Manavo. Who should know, as a moderator, to be a leader and not a follower.

    Second of all:
    Cipher, you can use a method that can grab anything between 2 words/strings. For example: 'THE FOLLOWING TEXT IS THE HTML!'. Let's say you want to get the word 'TEXT'. You'd send the function "THE FOLLOWING" and "IS THE HTML", and it will return "TEXT". Or you can send "FOLLOWING" and "IS", but that is less reliable when searching a huge HTML file. If you want to use such a method, tell me and I'll post some code. It worked for a few programs I made, as long as their html is consistent.
    Visual Basic 6.0
    Visual C++ 5
    Delphi 5


  8. #8
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: Neopets Help

    This is what Viper is refering to : http://www.vbforums.com/showthread.php?t=316663


    Has someone helped you? Then you can Rate their helpful post.

  9. #9

    Thread Starter
    Junior Member Cipher's Avatar
    Join Date
    Dec 2004
    Location
    In your closet!
    Posts
    23

    Re: Neopets Help

    I am sorry I went off like that.....Anyway the ID's are anchors...how do I grab the id's if i don't know where they start in the source code.

    I have the page source but they cannot be grabbed. They are actualy links in the page and they have apperaed under links under "page info" in Mozilla/
    "It is a hard thing to fall, it is even harder to admit to that fall."

    -Darth Treya

    Star Wars: Knights of the Old Republic II

  10. #10
    Fanatic Member
    Join Date
    Aug 2000
    Posts
    879

    Re: Neopets Help

    Well, if they're links, they must have a base address, like http://neopets.com/tree.asp?id=XXXXXX. So you make this code grab what's inbetween http://neopets.com/tree.asp?id= and the ending of the hyperlink tag, which returns XXXXXX, the item ID. I'm really sorry that we can't just give you a method you can use. We don't really know what the HTML is like and if it will always be that way. Maybe if you can upload a few examples of the HTML, i don't have a neopets account !
    Visual Basic 6.0
    Visual C++ 5
    Delphi 5


  11. #11

    Thread Starter
    Junior Member Cipher's Avatar
    Join Date
    Dec 2004
    Location
    In your closet!
    Posts
    23

    Re: Neopets Help

    THis is what I get wehn I RightClick>>Page Source..in Mozilla

    Code:
    <html><head><style>
    A,TD,P,BODY{color:#000099;font-family:verdana,arial,helvetica;font-size:10pt;text-decoration:none}
    TD,P,BODY{color:black}
    A:hover{color:#990000}
    DIV,BODY,IMG{margin:0px;padding:0px;}
    .sf,.smallfont,.tt,.tl{FONT-SIZE:7.5pt}
    .tt{font-weight:bold}
    #ban{width:728px;height:90px;margin:0px; background-color: #FFCE00}
    #nst{width:110px;font-size:8pt;border:1px solid #000000;background-color:#FFFF63;color:#000000;padding:2px;margin:0px}
    #ol{position:absolute;visibility:hidden}
    #m,#n,#mb{background-color:#FFCE00}
    </style>
    <title>Neopets - Donate your Neopoints and Items</title>
    <script language=JavaScript src='http://images.neopets.com/n.js'></script>
    <script language=JavaScript><!--
    var nl='en',nh=9,nm=40,ns=34,na='am',ncl=new Array(0,53,104,137,169,198,231,265,299,335,368,397,427);
    window.setInterval('nc()',1000);
    function sh(i){ol.style.clip="rect("+ncl[i-1]+" 128 "+ncl[i]+" 0)";ol.style.visibility='visible'}
    function mo(){ol.style.visibility='hidden'};
    //-->
    </script></head><body bgcolor=#FFFFFF>
     <map name=a>
    <area shape=rect coords="0,10,130,53" href=/addpet.phtml onmouseover="sh(1)" alt="Create a Neopet">
    <area shape=rect coords="0,53,130,104" href=/petcentral.phtml onmouseover="sh(2)" alt="Pet Central">
    <area shape=rect coords="0,104,130,137" href=/explore.phtml onmouseover="sh(3)" alt="Explore">
    <area shape=rect coords="0,137,130,169" href=/gameroom.phtml onmouseover="sh(4)" alt="Games">
    <area shape=rect coords="0,169,130,198" href=/neomessages.phtml onmouseover="sh(5)" alt="Neomail">
    <area shape=rect coords="0,198,130,231" href=/objects.phtml onmouseover="sh(6)" alt="Shops">
    <area shape=rect coords="0,231,130,265" href=/neoboards/index.phtml onmouseover="sh(7)" alt="Neoboards">
    
    <area shape=rect coords="0,265,130,299" href=/nf.phtml onmouseover="sh(8)" alt="News">
    <area shape=rect coords="0,299,130,335" href=/stuff.phtml onmouseover="sh(9)" alt="Stuff">
    <area shape=rect coords="0,335,130,368" href=/help.phtml onmouseover="sh(10)" alt="Help">
    <area shape=rect coords="0,368,130,397" href=/loginpage.phtml onmouseover="sh(11)" alt="Login">
    <area shape=rect coords="0,397,130,427" href=/logout.phtml onmouseover="sh(12)" alt="Logout"></map>
    <div id=ban><SCRIPT LANGUAGE="JavaScript1.1" SRC="http://network.realmedia.com/RealMedia/ads/adstream_jx.ads/neopets/728x90/ron/enttnstchlifwmnispshp/ss/a@Top1">
    </script>
    <script LANGUAGE="JavaScript">
    <!--
    if (parseFloat(navigator.appVersion) == 0) { document.write('<IFRAME WIDTH=728 HEIGHT=90 MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no BORDERCOLOR="#000000" SRC="http://network.realmedia.com/RealMedia/ads/adstream_sx.ads/neopets/728x90/ron/enttnstchlifwmnispshp/ss/a@Top1"></iframe>');
    }
    // -->
    </SCRIPT>
    <noscript>
    <A HREF="http://network.realmedia.com/RealMedia/ads/click_nx.ads/neopets/728x90/ron/enttnstchlifwmnispshp/ss/a@Top1?x"><IMG SRC="http://network.realmedia.com/RealMedia/ads/adstream_nx.ads/neopets/728x90/ron/enttnstchlifwmnispshp/ss/a@Top1"></a>
    </noscript></div>
    <table cellspacing=0 cellpadding=0 background="http://images.neopets.com/t/hdr.gif" height=44 width=728 border=0>
    <tr><td height=2></td></tr>
    <tr><td width=130><a href=/><div style="height:34px;cursor:hand"></div></a></td>
    <td align="right" valign=middle>
    <table align=right"valign=middle cellpadding=2><tr>
    
    <td class=tt>
    Welcome, <a class=tl href=/randomfriend.phtml?user=cipher1022>cipher1022</a> |
    Pet : <a class=tl href=/quickref.phtml>none</a> |
    NP : <a class=tl href=/neopoints.phtml>0</a></td>
    </tr></table></td>
    <td width=10 />
    </tr>
    <tr><td height=8 /></tr>
    </table>
    <table cellpadding=0 cellspacing=0 border=0><tr><td valign=top>
    <table cellpadding=0 cellspacing=0 border=0>
    
    <tr><td width=128 valign=top>
    <img id=ol onmouseout="mo()" src="http://images.neopets.com/t/m5on.gif" usemap=#a border=0>
    <img id=m src="http://images.neopets.com/t/m5.gif" usemap=#a width=128 height=427 border=0><div>
    <table id=n cellpadding=0 cellspacing=0 width=128>
    <tr><td class=tl align=center><br>
    <span id=nst>9:40:34 am  NST</span><br><br>
    <form action=/search.phtml method=post>Search Neopets:
    <input type=text name=s size=7>
    <input type=submit value=Go! style="font-size:8pt"></form>
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width=120 height=60><param name=movie value="http://images.neopets.com/buttons/tugowar.swf"><param name=menu value=false><param name=scale value=exactfit><embed src="http://images.neopets.com/buttons/tugowar.swf" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" scale=exactfit width=120 height=60></embed></object><br><br>
    <form action="/donations.phtml" method=post>Select language:
    <select name=lang style="font-size:8pt"><option value=en selected>English</option><option value=pt>Português</option><option value=de>Deutsch</option><option value=fr>Français</option><option value=it>Italiano</option><option value=es>Español</option><option value=ch>简体中文</option><option value=zh>繁體中文</option><option value=ja>日本語</option><option value=ko>한국</option></select>
    
    <input type=submit value="Go!" style="font-size:8pt"></form>
    <a href=/linktous.phtml class=tl>link to us</a></td></table>
    </td><td width=2 bgcolor=black></td></tr>
    </table>
    <img id=mb src="http://images.neopets.com/t/1.gif" width=130 height=20></td>
    <script language=JavaScript>var ol = document.getElementById('ol');</script>
    <td style="padding:0px 5px 5px 10px;width:595" onmouseover="mo()" valign=top>
    <table border=0><tr><td width=80>
    </td><td align=right><img src="http://images.neopets.com/new_headers/moneytree.gif" width=480 height=62 alt="Neopets - Donate your Neopoints and Items"></td></tr></table><br><br clear=all>
    <p>
    <center>
    <a href='donations.phtml'>
    <img src='http://images.neopets.com/shopkeepers/moneytree.gif' width=150 height=150 border=0></a><br>
    <b>The Money Tree</b></center>
    
    <p>
    The Money Tree is a place where people donate their Neopoints, and people who are far more needy can come and get them...if you
    wish to make a donation or see if there is anything going for free, then you have found the right place!
    The more items you take per day, the less chance of you picking something up.
    <p>
    Remember...some <a href='evil.phtml'><b>wandering ghosts</b></a> have been known to steal money to put on the tree, and other ghosts will
    steal from the tree itself!
    <p>
    
    <b>Get Free Stuff!</b> - Click on the item to pick it up.  But don't be too greedy!
    <p>
    <table align=center border=0 cellpadding=3 cellspacing=0><tr><td width=120 align=center valign=top><a href='takedonation_new.phtml?donation_id=12006554&xcn=2249309675&location_id=0'><img src='http://images.neopets.com/items/tikimankeyring.gif' width=80 height=80 alt="Just the thing to keep your keys on.  If you dont have any keys, then you can use it as an earring!" border=1></a><br><b>Tiki Tack Keyring</b><br>(donated by sandiesueb)<br><br></td><td width=120 align=center valign=top><a href='takedonation_new.phtml?donation_id=12006555&xcn=2249309675&location_id=0'><img src='http://images.neopets.com/items/potion8.gif' width=80 height=80 alt="This potion can be used to heal your pet, however the bottle cannot be taken into the Battledome as it will easily break." border=1></a><br><b>Healing Potion II</b><br>(donated by sandiesueb)<br><br></td><td width=120 align=center valign=top><a href='takedonation_new.phtml?donation_id=12006556&xcn=2249309675&location_id=0'><img src='http://images.neopets.com/items/tom_driedapricots.gif' width=80 height=80 alt="A tasteless, dry piece of health food." border=1></a><br><b>Dried Apricots</b><br>(donated by archiehutch)<br><br></td><td width=120 align=center valign=top><a href='takedonation_new.phtml?donation_id=12006557&xcn=2249309675&location_id=0'><img src='http://images.neopets.com/images/moneybag.gif' width=80 height=80 border=1></a><br><b>10 NP</b><br>(donated by stewie111)<br><br></td></tr></table><p>
    
    <p>
    <b>Make a Donation</b>
    <p>
    To donate your Neopoints, then please use this page.  If you wish to donate an item then click on 'Your Items,' click on the item
    to bring up the Item Info window, and then select Donate from the list!
    <p>
    
    <form action='process_donation.phtml' method='post'>
    <table align=center cellpadding=3 border=0 cellspacing=0>
    
    <tr><td bgcolor='#ffffcc'>
    <b>Amount (in Neopoints)</b>
    </td><td bgcolor='#ffffcc'>
    <input type=hidden name='location_id' value='0'>
    <input type=text name='donation' size=5 maxlength=10>
    
    </td></tr>
    
    <tr><td align=center colspan=2 bgcolor='#dddd77'>
    <input type='submit' value='Donate!'>
    </td></tr>
    
    
    </table>
    </form>
    
    </td></tr><tr><td>&nbsp;</td><td align=center><br>
    <font class=sf color=#666666>NEOPETS, characters, logos, names and all related indicia<br>
     are trademarks of <a href='/aboutus.phtml'><font class=sf>Neopets, Inc.,</a><font class=sf color=#666666> &copy; 1999-2005.<br>&reg; denotes Reg. US Pat. & TM Office.
    All rights reserved.</font><br><a href='/privacy.phtml' class=sf>PRIVACY POLICY</a> | <a href='/safetytips.phtml' class=sf>Safety Tips</a> | <a href='/contact.phtml' class=sf>Contact Us</a> | <a href='/aboutus.phtml' class=sf>About Us</a> | <a href='/presskit_form.phtml' class=sf>Press Kit</a>
    
    <script language=JavaScript><!--
    if(navigator.appVersion.indexOf("MSIE")>0&&parseInt(navigator.appVersion)>=4){document.write(' | <a href="javascript:window.external.AddFavorite(document.location,document.title)"><font class=sf>Bookmark Us</a>');}
    //-->
    </script><br><font class=sf>Use of this site signifies your acceptance of the <a href=/terms.phtml><font class=sf>Terms and Conditions</a><br clear=all><br><br>
    <!--
     host - www195.neopets.com
    //-->
    
    </tr></table>
    
    
    </body></html>
    "It is a hard thing to fall, it is even harder to admit to that fall."

    -Darth Treya

    Star Wars: Knights of the Old Republic II

  12. #12

    Thread Starter
    Junior Member Cipher's Avatar
    Join Date
    Dec 2004
    Location
    In your closet!
    Posts
    23

    Re: Neopets Help

    Sorry for the dubble post...But There were too many chars to put in the first post.

    These are the links I get when I go to Page Info:

    Code:
    http://www.neopets.com/takedonation_new.phtml?donation_id=12006554&xcn=2249309675&location_id=0
    http://www.neopets.com/takedonation_new.phtml?donation_id=12006555&xcn=2249309675&location_id=0
    http://www.neopets.com/takedonation_new.phtml?donation_id=12006556&xcn=2249309675&location_id=0
    http://www.neopets.com/takedonation_new.phtml?donation_id=12006557&xcn=2249309675&location_id=0
    THese are the links I want to get when my program runs. The above donations like /takedonation_new.phtml?
    "It is a hard thing to fall, it is even harder to admit to that fall."

    -Darth Treya

    Star Wars: Knights of the Old Republic II

Posting Permissions

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



Click Here to Expand Forum to Full Width