Bot Writing your own bot with Python!

Discussion in 'MapleStory M Hacks, Cheats & Bots' started by yaonatanz, Sep 18, 2018.

  1. yaonatanz

    yaonatanz Israel The New Guy

    Post Count:
    12
    Likes Received:
    23
    Stats
    Im looking for a way to do it. but keep in mind you can use multiple desktop in windows 10 :)
     
    Pepe Perez and sedm4615 like this.

    Mr. Ad Advertisement

     
  2. SkyKix

    SkyKix United States Lurker

    Post Count:
    5
    Likes Received:
    0
    Stats
    With gangar slowly breaking, I might need to try this out. (With 0% experience in coding that is...)
    Also this part I'm stuck on " Do also the Enviroment variables part." What is that? xd
     
    Last edited: Oct 2, 2018
  3. s2339956

    s2339956 Taiwan Lurker

    Post Count:
    2
    Likes Received:
    0
    Stats
    This is a good idea
     
  4. ZachieBoi

    ZachieBoi Singapore Lurker

    Post Count:
    1
    Likes Received:
    0
    Stats
    Facing the same problem, I am using another variable [onMission] to identify whether my char is currently auto-questing.
    [onMission] is set to 1 when "Accept" picture found, and set to 0 when "Claim Reward" picture found.

    But there is a limitation as in my script won't work if the char is in the middle of a quest.
     
  5. xGodly

    xGodly Netherlands Banned banned

    Post Count:
    18
    Likes Received:
    6
    Stats
    will pictures be found by the script when the window is not currently visible?
     
  6. TravelPeter

    TravelPeter Singapore Lurker

    Post Count:
    1
    Likes Received:
    0
    Stats
    have you found the solution?
     
  7. SkyKix

    SkyKix United States Lurker

    Post Count:
    5
    Likes Received:
    0
    Stats
    How do you insert an image into the python just like example 2?
     
  8. nooffence94

    nooffence94 Singapore Lurker

    Post Count:
    1
    Likes Received:
    0
    Stats
    does it work on python 3.6?
     
  9. LalaBeng

    LalaBeng Germany Lurker

    Post Count:
    2
    Likes Received:
    0
    Stats
    Hi, is anyone tested phyton for auto attacking in SF?
     
  10. kuhaku

    kuhaku United States The New Guy

    Post Count:
    22
    Likes Received:
    2
    Stats
    is there a way to locate an image that's behind another screen? Like can i use this to locate ("X") with a web broser in the foreground and MSM in the background?
     
  11. tysonlim

    tysonlim Malaysia Veteran Hacker

    Post Count:
    115
    Likes Received:
    1,311
    Stats
    Code:
      
    pyautogui.press("v")
        accept = pyautogui.locateOnScreen(r'img\accept.png')
        if accept is not None:
            pyautogui.press('ctrl')
        else:
            trock = pyautogui.locateOnScreen(r'img\trock.png')
            if trock is None:
                pyautogui.press("z")
            else:
                pyautogui.press("t")
    
    If I would like to do a loop is that possible? Example after line 2, If "accept.png" not found. I would like to go back to the 1st line. Thank you.
     
  12. JaykieMg

    JaykieMg Malaysia Lurker

    Post Count:
    4
    Likes Received:
    0
    Stats
    may i conclude that this method was only one way communication where it keeps scanning the image changes?
     
  13. gamenewbie

    gamenewbie Malaysia Lurker

    Post Count:
    1
    Likes Received:
    0
    Stats
    I just started learning today based on your guide and managed to create 2 automated scripts (which is similar to Gangar)
    1. Automate Daily Hunt
    2. Automate Questing with Teleport Rocks

    Thanks yaonatanz!
     
  14. ShinGouki

    ShinGouki United States Prominent Hacker

    Post Count:
    514
    Likes Received:
    28
    Stats
    Guys,

    With all due respect, why do y'all use 2.7 when Python 3 can be used? It's eventually going to get to that point that 2.7 will be obsolete.
     
    hackbotmaple and Terheji like this.
  15. KLNRPZ

    KLNRPZ France Veteran Hacker

    Post Count:
    138
    Likes Received:
    16
    Stats
    Can't make it work with python37.. wasn't able to install pip with 2.7 so i've got to use 3.7. I had to edit the text because print function isn't the same, i have to add ( ) to the print function. Sadly it does not work, maybe it is the image or the print function on 37 that isn't the one i need to use to search for an image/text on the screen. any idea ? (first time python user)
     
  16. kuz404

    kuz404 Indonesia Lurker

    Post Count:
    1
    Likes Received:
    0
    Stats
    amazing tutorial sir thanks for sharing im looking for it
     
  17. UniversalBuckwheat

    UniversalBuckwheat Israel Lurker

    Post Count:
    1
    Likes Received:
    1
    Stats
    There is a with a bot template that is available to use for all! Linking it here.
     
    KLNRPZ likes this.
  18. FiFo

    FiFo United Kingdom Lurker

    Post Count:
    1
    Likes Received:
    1
    Stats
    I am not a python expert but i ran into the same problem as you.

    the example is built around a library called pyautogui

    pyautogui seems to have a dependency on another library called Pillow which on my machine was out of date.

    in my case i used:

    Code:
    pip install Pillow --upgrade
    then reset or the terminals then ran it again and it worked.
     
    KLNRPZ likes this.
  19. DrTurdle

    DrTurdle Belgium Lurker

    Post Count:
    1
    Likes Received:
    1
    Stats
    My script does not recognise the images, anyone else have this problem?

    Edit: I made a very rudimentary auto-battle bot for a Bishop using holy arrow as main skill and genesis as advanced skill;
    I've no time to explain the basic syntax or key-layout but it seems to speak for itself I think.



    It also should auto-buff.

    Note: This is very basic and will in no way look like you are auto-battling to someone with a keen eye, but some might find It useful; I've also done very little testing with this script.
     
    Last edited: Mar 24, 2021
    KLNRPZ likes this.

Share This Page

  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies.
    Dismiss Notice
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies.
    Dismiss Notice