Results 1 to 9 of 9

Thread: [C#] Kad feeder

  1. #1
    Josh's Avatar
    Joined
    Dec 2011
    Posts
    415
    Userbars
    2
    Thanks
    25
    Thanked
    378/143
    DL/UL
    82/6
    Mentioned
    120 times
    Time Online
    17d 9h 48m
    Avg. Time Online
    5m

    [C#] Kad feeder

    Code:
            public void feeder()
            {
    
                while (kadstart == true)
                {
                   
    
                    //Start Get kad info. Remove ignore items
                    clearvalues();
                    lblkadstat.Text = "Refreshing...";
                    strhtml = g("http://www.neopets.com/games/kadoatery/");
                    
                    if(strhtml.Contains("href=\"/login/index.phtml\">Sign up</a>")){
                       
                  strhtml = strhtml = p("http://www.neopets.com/login.phtml", "destination=%252Findex.phtml&username=" + neou.Text + "&password=" + neop.Text, "http://www.neopets.com/index.phtml");
                  strhtml = w.ResponseBody; 
                        g("http://www.neopets.com/games/kadoatery/");
                        strhtml = w.ResponseBody;
                    }
                    if (strhtml.Contains("is very sad."))
                    {
                        
                    gba(strhtml, "is very sad.", "/strong>", lsttemp);
                  
                        for (int b = lstignore.Items.Count - 1; b >= 0; --b)
                    {
                        string removelistitem = lstignore.Items[b].ToString();
    
                        for (int i = lsttemp.Items.Count - 1; i >= 0; --i)
                        {
                            if (lsttemp.Items[i].ToString().Contains(removelistitem))
                            {
                                if (lsttemp.Items.Count > i) { 
                                lsttemp.Items.RemoveAt(i);
                                }
                            }
                        }
                    }
    
    
                    for (int i = lsttemp.Items.Count - 1; i >= 0; --i)
                    {
                        lstitems.Items.Add(ExtractString(lsttemp.Items[i].ToString() + "meep", "<strong>", "<meep"));
    
                        lstids.Items.Add(ExtractString(lsttemp.Items[i].ToString(), "kad_id=", "\"><img"));
    
                    }
    
                  
                    //End get kad info.
    
                    //Start Buy item
    
                    if (lstids.Items.Count > 0) {
                        lblkadstat.Text = "Found kad. Buying item";
                       
                    buyitem = randomnum(0, lstitems.Items.Count - 1);
                    strhtml = strhtml = p("http://www.neopets.com/market.phtml", "type=process_wizard&feedset=0&shopwizard=" + lstitems.Items[buyitem].ToString() + "&table=shop&criteria=exact&min_price=0&max_price=" + txtspend.Text, "http://www.neopets.com/market.phtml?type=wizard");
                    strhtml = w.ResponseBody;
                    if (!strhtml.Contains("I did not find anything.  :(  Please try again and I will search elsewhere!"))
                    {
                    
                        strtemp = ExtractString(strhtml, "bgcolor=\"#F6F6F6\"><a href=\"", "\"><b>");
                        strhtml = g("http://www.neopets.com" + strtemp);
                        strhtml = w.ResponseBody;
    
                        strhtml = g("http://www.neopets.com/buy_item.phtml?" + ExtractString(strhtml, "buy_item.phtml?", "\" onClick="), "http://www.neopets.com" + strtemp);
                        strhtml = w.ResponseBody;
                        strhtml = g("http://www.neopets.com/games/kadoatery/feed_kadoatie.phtml?kad_id=" + lstids.Items[buyitem].ToString(), "http://www.neopets.com/games/kadoatery/");
                        strhtml = w.ResponseBody;
                        //End Buy item
    
                        //Feed kad
                        if (strhtml.Contains("a very happy Kadoatie"))
                        {
                            lstlog.Items.Add("Fed kad " + lstitems.Items[buyitem].ToString());
                            lstlog.Items.Add("Waiting " +txtpause.Text + " minutes");
                            Thread.Sleep(Convert.ToInt32(txtpause.Text) * 60000);
                           
                        }
    
                    }
                    else
                    {
    
                        
    
                        lstignore.Items.Add(lstitems.Items[buyitem].ToString());
                        lstlog.Items.Add("Added " + lstitems.Items[buyitem].ToString() + "  to ignore list");
    
                    }
                    lblkadstat.Text = "Pausing...";
                   
                    Thread.Sleep(randomnum(Convert.ToInt32(txtmin.Text) * 1000, Convert.ToInt32(txtmax.Text) * 1000));
    
                }
                    
                    }
                    
                }
               
            }

  2. #2
    Leah's Avatar
    Joined
    Apr 2013
    Posts
    181
    Pronouns
    she/her
    Userbars
    4
    Thanks
    285
    Thanked
    124/91
    DL/UL
    11/0
    Mentioned
    64 times
    Time Online
    9d 8h 53m
    Avg. Time Online
    3m
    Your Kad feeder is the best thing ever.

  3. #3
    Saiyan Race
    j03's Avatar
    Joined
    Dec 2011
    Posts
    13,722
    Userbars
    166
    Thanks
    5,906
    Thanked
    33,078/6,609
    DL/UL
    23/36
    Mentioned
    3,867 times
    Time Online
    563d 5h 25m
    Avg. Time Online
    3h 13m
    @(you need an account to see links) you should randomize the kads after you extract them and then search for the items, that way you look like a legitimate feeder

    @(you need an account to see links) it could be better
    (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.
    ------------------------


  4. #4
    Zachafer's Avatar
    Joined
    Dec 2011
    Posts
    1,235
    Userbars
    11
    Thanks
    769
    Thanked
    1,466/678
    DL/UL
    98/0
    Mentioned
    512 times
    Time Online
    24d 13h 9m
    Avg. Time Online
    8m
    Code:
    for (int i = lsttemp.Items.Count - 1; i >= 0; --i)
                        {
                            if (lsttemp.Items[i].ToString().Contains(removelistitem))
                            {
                                if (lsttemp.Items.Count > i) { 
                                lsttemp.Items.RemoveAt(i);
                                }
                            }
                        }
    The second if statement is redundant. lsttemp.Items.Count will always be > i since your for loop starts: int i = lsttemp.Items.Count - 1 and decrements from there.

  5. #5
    Josh's Avatar
    Joined
    Dec 2011
    Posts
    415
    Userbars
    2
    Thanks
    25
    Thanked
    378/143
    DL/UL
    82/6
    Mentioned
    120 times
    Time Online
    17d 9h 48m
    Avg. Time Online
    5m
    Quote Originally Posted by Infamous Joe View Post
    @(you need an account to see links) you should randomize the kads after you extract them and then search for the items, that way you look like a legitimate feeder
    :p Already did.
    Code:
     buyitem = randomnum(0, lstitems.Items.Count - 1);
    Quote Originally Posted by Zachafer View Post
    Code:
    for (int i = lsttemp.Items.Count - 1; i >= 0; --i)
                        {
                            if (lsttemp.Items[i].ToString().Contains(removelistitem))
                            {
                                if (lsttemp.Items.Count > i) { 
                                lsttemp.Items.RemoveAt(i);
                                }
                            }
                        }
    The second if statement is redundant. lsttemp.Items.Count will always be > i since your for loop starts: int i = lsttemp.Items.Count - 1 and decrements from there.
    o.o Oops. Lol.

  6. #6
    Saiyan Race
    j03's Avatar
    Joined
    Dec 2011
    Posts
    13,722
    Userbars
    166
    Thanks
    5,906
    Thanked
    33,078/6,609
    DL/UL
    23/36
    Mentioned
    3,867 times
    Time Online
    563d 5h 25m
    Avg. Time Online
    3h 13m
    Quote Originally Posted by Josh21227 View Post
    :p Already did.
    Code:
     buyitem = randomnum(0, lstitems.Items.Count - 1);
    You should randomize the array before you get to the buy item part. That way if it fails, it won't have a chance at trying to buy the same failed item again.
    (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.
    ------------------------


  7. #7
    Zachafer's Avatar
    Joined
    Dec 2011
    Posts
    1,235
    Userbars
    11
    Thanks
    769
    Thanked
    1,466/678
    DL/UL
    98/0
    Mentioned
    512 times
    Time Online
    24d 13h 9m
    Avg. Time Online
    8m
    .NET 3.5 (LINQ):

    Code:
    string[] randItems = arrItems.OrderBy(x => rnd.Next()).ToArray();
    Where rnd is a System.Random() object

  8. #8
    kandikid's Avatar
    Joined
    Jan 2013
    Posts
    7
    Userbars
    0
    Thanks
    1
    Thanked
    2/2
    DL/UL
    12/0
    Mentioned
    Never
    Time Online
    3h 3m
    Avg. Time Online
    N/A
    How do you download this kad feeder I wanna try

  9. #9

    Joined
    Jan 2012
    Posts
    1,286
    Thanks
    1,292
    Thanked
    302/209
    DL/UL
    1096/0
    Mentioned
    213 times
    Time Online
    59d 13h 45m
    Avg. Time Online
    20m
    Quote Originally Posted by kandikid View Post
    How do you download this kad feeder I wanna try

    (you need an account to see links)

    click on download it's open to the public

    the top is just a code . he's making a new one i beleave .

  10. The Following User Says Thank You to fairydust201 For This Useful Post:

    Zachafer (01-09-2014)

Posting Permissions

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