Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Senior Member
    aiolos is offline

    Posts
    145

    Botting in Python: Example 2 [PUZZLE PIRATES]

    Ok, this was ready last night, but I was too busy to make a thread. This here is my seconds example release for my Python botting progression. This is a log-in bot for Puzzle Pirates, it may not be helpful at all to anyone, but I am showing you guys my progression in automated processes. This simply types in your username and password and hits enter, it also checks to make sure your puzzle pirates window is open, and gives a nice message box at the end.

    MAKE SURE YOU READ EVERYTHING THAT APPEARS ON THE COMMAND PROMPT!!!

    Downloads:
    Read this thread, here and get the downloads here
    Download this: SendKeys

    Make a new text file and paste this in:

    Code:
    '''
    ---------------------------------
    | Python Puzzle Pirates Botting |
    ---------------------------------
    |#|  By Aiolos at BuyPoe.com  |#|
    ---------------------------------
    '''
    
    #!/usr/bin/env python
    
    #####################################
    import time
    from time import localtime, strftime
    import win32gui
    import SendKeys
    import Tkinter
    from Tkinter import *
    root = Tk()
    #####################################
    
    #####################################
    print "Please load Puzzle Pirates"
    #####################################
    
    #####################################
    while True:
        winTitle = win32gui.GetWindowText(win32gui.GetForegroundWindow())
        if winTitle == "Puzzle Pirates":
            print "Puzzle Pirates Window Found at:"
            print strftime("%H:%M:%S", localtime())
            visable = True
            time.sleep(1)
            break
        else:
            print "Puzzle Pirates Window Not Found!"
            time.sleep(1)
    #####################################
    
    #####################################
    pirate = str(raw_input("What is your Username? Inclue Caps!: "))
    password = str(raw_input("What is your Password? Include Caps!: "))
    #ocean = str(raw_input("What Ocean is your Pirate on?: "))
    #####################################
    
    #####################################
    print "You have 3 seconds to switch to the Puzzle Pirates Window"
    print "3"
    time.sleep(1)
    print "2"
    time.sleep(1)
    print "1"
    time.sleep(1)
    #####################################
    
    #####################################
    while visable == True:
        SendKeys.SendKeys("""
        {TAB}
        ^a
        {(*)(*)}
        """)
        time.sleep(1)
        SendKeys.SendKeys(pirate)
        time.sleep(1)
        SendKeys.SendKeys("""
        {TAB}
        """)
        SendKeys.SendKeys(password)
        SendKeys.SendKeys("""
        {ENTER}
        """)
        break
    time.sleep(5)
    root.title('Successful')
    Message(root, text="You have been successfully logged in!", bg='grey',
            fg='black', relief=GROOVE).pack(padx=30, pady=30)
    root.mainloop()
    #####################################
    Then save it as login.py
    Double Click it to run!

    ***For best results, start with Puzzle Pirates Closed***

    Similar Threads:



  2. #2
    Retired
    startover4 is offline

    Posts
    3,858
    Its good that your making some progress with this, as long as you dont give up you may be making some nice bots in no time! Also maybe check out iceevils bots and try to fix em up as a little project? Im sure it would be educational and fun!

    MSN: Halo2newbie@hotmail.com
    [size=2][b]I
    Quote Originally Posted by Face View Post
    prolonged torture is NOT reccomended unless you have the setup.
    Y!PP Bots:
    Sexy Puzzle Pirates Bots!
    Earn Money Searching Online:
    Get Paid to Search!
    RS E-mail List:
    Easily 100,000+ of emails registered to RS accounts

  3. #3
    Senior Member
    aiolos is offline

    Posts
    145
    Quote Originally Posted by startover4 View Post
    Its good that your making some progress with this, as long as you dont give up you may be making some nice bots in no time! Also maybe check out iceevils bots and try to fix em up as a little project? Im sure it would be educational and fun!
    Thanks. I can defiantly translate them to Python, do you have the link to the gunning one possibly? Scar to Python shouldn't be too hard.


  4. #4
    Retired
    startover4 is offline

    Posts
    3,858
    Oh ya they are written in scar :/ anyways i only have them as a sharecash dl link but if anyone else has them you could as them to upload for you?

    MSN: Halo2newbie@hotmail.com
    [size=2][b]I
    Quote Originally Posted by Face View Post
    prolonged torture is NOT reccomended unless you have the setup.
    Y!PP Bots:
    Sexy Puzzle Pirates Bots!
    Earn Money Searching Online:
    Get Paid to Search!
    RS E-mail List:
    Easily 100,000+ of emails registered to RS accounts

  5. #5
    Senior Member
    aiolos is offline

    Posts
    145
    Quote Originally Posted by startover4 View Post
    Oh ya they are written in scar :/ anyways i only have them as a sharecash dl link but if anyone else has them you could as them to upload for you?
    I'll just take the SC download, I have a premium account.


  6. #6

    Posts
    5,774
    Just a suggestion, if it is a guide have more of a instructional tutorial rather then a download this copy and paste that.

    This is good too though






    If you cannot add me to MSN, or if I am not online sending me a PM or a vistor message is the best way to get an answer from me, or we can try to set up an MSN meeting, or talk on skype etc etc.

  7. #7
    VIP Status
    wastedbro is offline

    Posts
    2,898
    this auto-login is nice, but you really need to be thinking about, and forming and algorithm for a puzzle bot (if your making one), because doing projects like this won't help you much for puzzle bots.


  8. #8
    Senior Member
    aiolos is offline

    Posts
    145
    Quote Originally Posted by wastedbro View Post
    this auto-login is nice, but you really need to be thinking about, and forming and algorithm for a puzzle bot (if your making one), because doing projects like this won't help you much for puzzle bots.
    Already working on a gunning bot, It may not be needed, because we have PuzSol, but so far I have it making the loop in the middle of the board, I should have it loading a cannon tomorrow morning. It also makes sure that you have the puzzle board open.


  9. #9
    VIP Status
    wastedbro is offline

    Posts
    2,898
    Quote Originally Posted by aiolos View Post
    Already working on a gunning bot, It may not be needed, because we have PuzSol, but so far I have it making the loop in the middle of the board, I should have it loading a cannon tomorrow morning. It also makes sure that you have the puzzle board open.
    Well PuzSol only has one way to load guns. Maybe make the algorithm better. Make the bot adapt to being in a battle. Maybe make it auto-detect dirty, and wrongly filled guns AS its gunning. Making that script better would be an excellent project, not to mention extremely helpful.


  10. #10
    Senior Member
    aiolos is offline

    Posts
    145
    Quote Originally Posted by wastedbro View Post
    Well PuzSol only has one way to load guns. Maybe make the algorithm better. Make the bot adapt to being in a battle. Maybe make it auto-detect dirty, and wrongly filled guns AS its gunning. Making that script better would be an excellent project, not to mention extremely helpful.
    It's a completely different language though, I would have to translate it to Python, but I don't even have the code for PuzSol, so I have to start from scratch. Getting it to load one cannon is step one, all four in the navy, step 2, and getting it to clean cannons is gonna be a hard task.


Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright © 2009-2012 BuyPoe.com All Rights Reserved.

Design Sites:
vBulletin Mods
Facebook Covers
| Free Facebook Covers
Google Covers | Google Plus Covers

Game Sites:
MMORPG
| MW3