Page 1 of 11 123 ... LastLast
Results 1 to 10 of 102

Thread: [PYTHON] GHOUL CATCHERS BOT

  1. #1
    Atlas's Avatar
    Joined
    Jun 2013
    Posts
    260
    Userbars
    6
    Thanks
    668
    Thanked
    430/149
    DL/UL
    67/8
    Mentioned
    123 times
    Time Online
    27d 4h 44m
    Avg. Time Online
    9m

    Ghoul Catchers Bot (updated 1/18/16)









    (you need an account to see links)
    (you need an account to see links)


    I can't test the old download anymore (I don't have Windows), so all further updates will be on the beta 2.0 version.

    Please, I'm interested in your suggestions/feedback, as well as any bugs you've discovered.

    Last edited by Atlas; 02-24-2016 at 06:44 PM.

  2. The Following 24 Users Say Thank You to Atlas For This Useful Post:

    Accelerator (01-04-2016),Aura (01-04-2016),bluevitriol (01-14-2016),cibomatto (03-29-2016),Daviid (01-09-2016),derky (01-20-2016),fairydust201 (01-14-2016),GetJinxed (01-25-2016),j03 (01-04-2016),Kyle (02-06-2016),lewlwlere (05-31-2017),Livehardlivewell (04-06-2016),Madotsuki (06-04-2018),Maison (01-04-2016),marlin67 (02-18-2016),Ms M. (04-06-2016),musemfire (07-25-2017),Neal Caffrey (06-04-2018),♥ PrettySarcastic ♥ (02-07-2016),siaospear (05-27-2016),Umbreon (01-12-2016),Vis (01-10-2016),Water (01-04-2016),xerrique (01-27-2016)

  3. #2
    TRENDSETTERASSBAG Maison's Avatar
    Joined
    Oct 2012
    Posts
    1,678
    Userbars
    7
    Thanks
    1,918
    Thanked
    1,140/611
    DL/UL
    12/1
    Mentioned
    320 times
    Time Online
    95d 4h 15m
    Avg. Time Online
    32m
    ONG I LOVE LOOOOVEEEEEEEE LOOVEEEEEEEE THIS!! NICE FIRST PROGRAM !!!!!!! <3 (Lamborghini kimoji)(centurion card kimoji)(dollar stacks kimoji)(stripper kimoji)

    ---------- Post added at 08:10 PM ---------- Previous post was at 07:57 PM ----------

    + FULL REP !!!!!!!!!!

  4. The Following User Says Thank You to Maison For This Useful Post:

    Atlas (01-04-2016)

  5. #3

    Joined
    Jul 2012
    Posts
    1,888
    Thanks
    1,619
    Thanked
    3,297/1,003
    DL/UL
    223/0
    Mentioned
    469 times
    Time Online
    132d 23h 52m
    Avg. Time Online
    45m
    I'll use this daily +rep awesome work.

    I added this to make it stop after X games:

    After screenGrab() definition:
    Code:
    currentGame = 1
    maxGames = 5
    
    print "Will play %s games" % maxGames
    And at the end of replay() (inside):

    Code:
        if 7000 < b < 8000:
            mousePos(replaybutton)
            time.sleep(2)
            click()
            global currentGames
            print "Game Number %s Completed" % currentGames
            currentGames = currentGames + 1
            if currentGames <= maxGames:
                time.sleep(1.5)
                go()
            else:
                print "Played %s games." % maxGames
                sys.exit(0)
        else:
            pass
    I don't know where they are but you should probably increase the times between movements a bit for when sudden combos happen and you cant click the screen (those "supernatural" and "fiendishly clever" things).


    -------------------------

    About an alternative for CTRL+ALT+DEL, that would be signal handlers.

    Code:
    import signal 
    import sys
    def signal_handler(signal, frame):
            print 'Ctrl+C detected'
            sys.exit(0)
    signal.signal(signal.SIGINT, signal_handler)
    print 'Infinite loop, pres CTRL+C to stop program'
    while True:
            continue
    Inside signal_handler() you would close the program cleanly.

    This wont work though, since you lose focus of the python shell. (You would still have to quickly press the shell and then CTRL + C, better than CTRL+ALT+DEL still)
    Last edited by Daviid; 01-09-2016 at 01:38 PM.

  6. The Following 2 Users Say Thank You to Daviid For This Useful Post:

    Atlas (01-09-2016),j03 (01-09-2016)

  7. #4
    Atlas's Avatar
    Joined
    Jun 2013
    Posts
    260
    Userbars
    6
    Thanks
    668
    Thanked
    430/149
    DL/UL
    67/8
    Mentioned
    123 times
    Time Online
    27d 4h 44m
    Avg. Time Online
    9m
    Quote Originally Posted by Daviid View Post
    I'll use this daily +rep awesome work.

    I added this to make it stop after X games:

    After screenGrab() definition:
    Code:
    currentGame = 1
    maxGames = 5
    
    print "Will play %s games" % maxGames
    And at the end of replay() (inside):

    Code:
        if 7000 < b < 8000:
            mousePos(replaybutton)
            time.sleep(2)
            click()
            global currentGames
            print "Game Number %s Completed" % currentGames
            currentGames = currentGames + 1
            if currentGames <= maxGames:
                time.sleep(1.5)
                go()
            else:
                print "Played %s games." % maxGames
                sys.exit(0)
        else:
            pass
    I don't know where they are but you should probably increase the times between movements a bit for when sudden combos happen and you cant click the screen (those "supernatural" and "fiendishly clever" things).


    -------------------------

    About an alternative for CTRL+ALT+DEL, that would be signal handlers.

    Code:
    import signal 
    import sys
    def signal_handler(signal, frame):
            print 'Ctrl+C detected'
            sys.exit(0)
    signal.signal(signal.SIGINT, signal_handler)
    print 'Infinite loop, pres CTRL+C to stop program'
    while True:
            continue
    Inside signal_handler() you would close the program cleanly.

    This wont work though, since you lose focus of the python shell. (You would still have to quickly press the shell and then CTRL + C, better than CTRL+ALT+DEL still)
    AHH!! Thank you so much! You're an angel and a genius. I appreciate this so much. I'll be sure to add it in and update and give you credit too. ^^

  8. The Following User Says Thank You to Atlas For This Useful Post:

    Daviid (01-10-2016)

  9. #5

    Joined
    Jan 2016
    Posts
    4
    Userbars
    0
    Thanks
    0
    Thanked
    0/0
    DL/UL
    1/0
    Mentioned
    4 times
    Time Online
    2d 48m
    Avg. Time Online
    N/A
    Lol way too hard. Downloaded everything and installed except numpy which is just a folder ?

  10. #6
    Atlas's Avatar
    Joined
    Jun 2013
    Posts
    260
    Userbars
    6
    Thanks
    668
    Thanked
    430/149
    DL/UL
    67/8
    Mentioned
    123 times
    Time Online
    27d 4h 44m
    Avg. Time Online
    9m
    Quote Originally Posted by nastasic View Post
    Lol way too hard. Downloaded everything and installed except numpy which is just a folder ?
    I know..that's the hardest step to be honest. Please try watching this video to help you (you need an account to see links)

  11. #7
    Vis's Avatar
    Joined
    Aug 2013
    Posts
    291
    Pronouns
    she/her
    Userbars
    34
    Thanks
    840
    Thanked
    1,268/276
    DL/UL
    18/0
    Mentioned
    93 times
    Time Online
    21d 3h 55m
    Avg. Time Online
    7m
    Guys! Atlas has been so, SO patient and helpful with me!
    I have 0 experience with Python, but now I have 0.1 experience!

    I was having issues installing NumPy and running the bot, so I googled around. And then a couple of hours later, I was starting to get desperate and PM'd him, haha
    The YouTube video he links is REALLY helpful, definitely check it out! That got my NumPy issue sorted. We were still trying to figure out why I couldn't run the bot when I realised I had just made a noob error, so that's sorted, too!

    I am running Windows 8.1 (64-bit), and the following downloads work for me. Hopefully they'll work for anyone else running the same OS!
    You have to be really careful to make sure everything works with the version and bittedness of OS and Python you have.

    Python 2.7 (Atlas explained that he had built it using 2.7. This was not linked in the first post, but it's the official Python site, safe!)
    (you need an account to see links)
    However! I... think you can go up to and including Python 2.7.9, since I read a post somewhere saying that one of the following cannot work with a Python as recent as 2.7.11; only as far as 2.7.9 - I cannot remember where I read it, or which of the below it was talking about, since I went through SO MANY pages yesterday and today, sorry!

    Python Imaging Library (PIL) (this is not the one linked by Atlas in first post; I found this one myself, but I assure you that it is safe and it works!)
    (you need an account to see links)
    It's an executable file, so click and go!
    If you run into an issue where the installer warns you that you lack a .dll file, search it up on (you need an account to see links) and download it. I'm not sure where the proper place to put it is, but I stuck mine in the same file as where I was going to run the bot from, and that seemed to work...?

    Python for Windows Extensions (PyWin) (linked in first post!)
    (you need an account to see links)
    You want the one called "pywin32-220.win-amd64-py2.7.exe"
    Another executable!

    And this is where it's important to watch the video Atlas linked! The speaker's voice is quiet and muffled, but easy enough to interpret if you turn up your volume. It's also not really necessary to listen to him if you watch what he types in command prompt! At this point I also installed the Microsoft Visual C++ Compiler for Python 2.7 that the video had linked: (you need an account to see links). Not entirely sure what it does, but I... guess it's so that you can use cmd.exe to install .whl items?

    Numerical Python (NumPy) (This is also not the one linked in first post, but it's also safe and functional, so don't worry! This is a .whl file, so you can use pip to install it, as shown in the video!)
    (you need an account to see links)
    You want the one that says "numpy-1.10.4+mkl-cp27-none-win_amd64.whl"

    And that's all the prerequisites !

    But then I kept running into an error that told me it couldn't locate ImageGrab, telling me the module didn't exist. That puzzled me and Atlas for ages until I realised I was expecting the bot to find the module in a different drive (directory?!) entirely, derp. So I moved the bot from my Neopets folder in E:\ and shifted it to C:\Python27. Maybe copying files into C:\ willy-nilly is risky (IDK), but now it works fine!!!

    The only time I tried this with Python 3.5.1 was when I made that noob error, so I don't know if it works with that version, although I suppose it should?

    Between yesterday and today, I've installed, uninstalled, then reinstalled everything probably ten times, did a system restore because I was worried maybe the bot couldn't locate the module because I ruined some registry files that affected pathways or something (IDK IDK), but now it's working, WHEW, so I'm going to enjoy the extra neopoints!

    Bonus, I now know by heart how to use command prompt to install and uninstall with pip! Every little counts?!

    Thank you SO MUCH, Atlas! This bot & your patience and willingness to help are truly amazing

  12. The Following 5 Users Say Thank You to Vis For This Useful Post:

    Atlas (01-15-2016),cibomatto (03-29-2016),Daviid (01-15-2016),j03 (01-14-2016),shinamon (01-05-2017)

  13. #8

    Joined
    Jan 2014
    Posts
    320
    Userbars
    6
    Thanks
    353
    Thanked
    145/99
    DL/UL
    50/0
    Mentioned
    46 times
    Time Online
    8d 20h 39m
    Avg. Time Online
    3m
    This is something really helpful and GREAT. I was looking forward to this If the instructions could be made a bit easy it would be AWESOME ))

  14. The Following User Says Thank You to bluevitriol For This Useful Post:

    Atlas (01-15-2016)

  15. #9
    Atlas's Avatar
    Joined
    Jun 2013
    Posts
    260
    Userbars
    6
    Thanks
    668
    Thanked
    430/149
    DL/UL
    67/8
    Mentioned
    123 times
    Time Online
    27d 4h 44m
    Avg. Time Online
    9m
    Quote Originally Posted by bluevitriol View Post
    This is something really helpful and GREAT. I was looking forward to this If the instructions could be made a bit easy it would be AWESOME ))
    Thank you! I'm actually rewriting this one and making the directions A LOT more clearer. Hopefully the update will be ready this weekend.

  16. The Following User Says Thank You to Atlas For This Useful Post:

    Daviid (01-16-2016)

  17. #10

    Joined
    Jul 2012
    Posts
    1,888
    Thanks
    1,619
    Thanked
    3,297/1,003
    DL/UL
    223/0
    Mentioned
    469 times
    Time Online
    132d 23h 52m
    Avg. Time Online
    45m
    In case someone has the same error as me, I had PIL installed beforehand and couldn't use ImageGrab and ImageOps as
    Code:
    import ImageGrab
    import ImageOps
    and had to change it to
    Code:
    from PIL import ImageGrab
    from PIL import ImageOps
    Also Numpy installed on "D:\Python27\Lib\site-packages\numpy-1.10.2-py2.7-win32.egg" but failed on
    Code:
    from numpy import *
    and had to copy the directory "D:\Python27\Lib\site-packages\numpy-1.10.2-py2.7-win32.egg\numpy" to site-packages, so I had "D:\Python27\Lib\site-packages\numpy-1.10.2-py2.7-win32.egg" and "D:\Python27\Lib\site-packages\numpy".

    And then it worked fine.

  18. The Following User Says Thank You to Daviid For This Useful Post:

    Atlas (01-16-2016)

Posting Permissions

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