GMS v.194.1 AHK Script for star planet Beam me up minigame

Discussion in 'MapleStory Global & Europe Hacks, Bots & Releases' started by Levinski, Apr 5, 2018.

Discuss AHK Script for star planet Beam me up minigame in the MapleStory Global & Europe Hacks, Bots & Releases area at GameKiller.net

  1. Levinski

    Levinski Sweden The New Guy

    Post Count:
    32
    Stats
    Hello dear hackers and memelords of the interwebs!

    As soon as I saw the minigame where you have to beam up aliens I came to think of functions in AHK that recognizes color. So I figured it'd be neat to make a script that would respond to what colored alien is about to be beamed up with the matching inputs.

    DISCLAIMER: I had the most trouble finding out where my coordinates were supposed to be, but I think it should be consistent as long as the CoordMode is being used in the provided scripts. (Probably because I've got multiple monitors).


    How to use:
    1. You set the first two coordinates (x1, y1) top left of the beam-up area and the last two coordinates as the point across, forming a rectangle (x2, y2) and the script will check for the color of the alien and send the corresponding input.
    As such:

    2. You need to have some kind of way to broadcast maple, as AHK won't recognize the colors directly in the game (at least from my testing with mouseover colorpicking). For example you can use OBS (free program), make a windowcapture and set up the coordinates.

    3. Run the AHK script as admin.

    4. Spam 'z' (or hold down) to breeze through the minigame.
    I think I covered everything here...

    I'm far from a pro, so please do take that into consideration with how neatly written the script is.

    z::
    CoordMode, pixel,screen
    CoordMode, mouse,screen

    Loop
    {
    PixelSearch, Px, Py, x1, y1, x2, y2, 0x00DD77, 3, Fast //green
    if !ErrorLevel
    {
    Send, {Left}
    return
    }

    PixelSearch, Px, Py, x1, y1, x2, y2, 0x6633FF, 3, Fast //red
    if !ErrorLevel
    {
    Send, {Up}
    return
    }

    PixelSearch, Px, Py, x1, y1, x2, y2, 0xFFB337, 3, Fast //blue
    if !ErrorLevel
    {
    Send, {Right}
    return
    }

    }





    To find out your coordinates I'd recommend using this script:

    c::
    CoordMode, pixel,screen
    CoordMode, mouse,screen

    MouseGetPos, xpos, ypos
    MsgBox, The cursor is at X%xpos% Y%ypos%.


    Edit:
    Updated with a toggle loop, position your cursor to be on the 'yes' prompt as well as making left Alt your 'interact with NPC' and unbinding spacebar.
    (Start script with z, end with x)

    looping := false

    z::
    CoordMode, pixel,screen
    CoordMode, mouse,screen
    looping := true

    While(looping = true)
    {
    Send, {LAlt 2}
    Send, {Click [LButton]}
    Send, {Space}


    PixelSearch, Px, Py, -710, 500, -500, 680, 0x00DD77, 3, Fast //green
    if !ErrorLevel
    {
    Send, {Left}
    }

    PixelSearch, Px, Py, -710, 500, -500, 680, 0x6633FF, 3, Fast //red
    if !ErrorLevel
    {
    Send, {Up}
    }

    PixelSearch, Px, Py, -710, 500, -500, 680, 0xFFB337, 3, Fast //blue
    if !ErrorLevel
    {
    Send, {Right}
    }


    }

    x::
    looping := false
    return
     
    Last edited: Apr 29, 2018
    CurryTaste, yakir62, Saihko4 and 3 others like this.

    Mr. Ad Advertisement

     
  2. gipal

    gipal Premium Premium

    Post Count:
    226
    Stats
    If you can find a way to use PixelGetColor instead that should let you grab the colors directly without dealing with an obs setup
     
  3. Levinski

    Levinski Sweden The New Guy

    Post Count:
    32
    Stats
    I did do that with this script:

    z::
    MouseGetPos, MouseX, MouseY
    PixelGetColor, color, %MouseX%, %MouseY%
    MsgBox The color at the current cursor position is %color%.
    return

    But when I had the mouse over maple at that point it would show... (if I recall correctly) 0x000000 on mouseovers that blatantly weren't black. E.g. it would return false values. Perhaps an artifact of the mouse position?
     
  4. gipal

    gipal Premium Premium

    Post Count:
    226
    Stats
    The mouse cursor will block out the color you're trying to grab yeah
     
  5. Levinski

    Levinski Sweden The New Guy

    Post Count:
    32
    Stats
    Hmm, but now since I got the colors, it shouldn't be needed, since now the function scans the area... Either way I guess it's more flexible using OBS :shrug:
     
  6. LemonPaste

    LemonPaste The New Guy

    Post Count:
    33
    Stats
    Try using ImageSearch with the pixel color you need rather than pixel search. I don't think pixel search has ever worked for me

    edit: also - colors, especially gradients, may vary from computer to computer based on how the graphics are rendered.
     
    Last edited: Apr 7, 2018
  7. Levinski

    Levinski Sweden The New Guy

    Post Count:
    32
    Stats
    Interesting.

    Does AHK then look for a specific image within the designated area then?
    From my mind, not having used it, it would seem to be too specific?
    Because if you include any other color than the brown (which is unique for the bombs) you'd have to do more functions looking for both/either yellow and red bombs(?).
     
  8. Anent

    Anent Finland The New Guy

    Post Count:
    11
    Stats
    Just came in to my mind that would there be a way to find with a pointer what color monster is ready to beam up?

    Tried to scan with CE, but the time is rather to little to find the pointer.

    If there would be a address where you would find the monster type, in theory you could get the info by that
    and then just check the monster address and then send the right input.
     
  9. LemonPaste

    LemonPaste The New Guy

    Post Count:
    33
    Stats
    Yeah, AHK looks for a specific image in the region you select similar to pixel search. It does not have to be very specific (you can search for a picture that is 1px by 1px) and you shouldn't need any other special software to read the colors on maple using it. You can also set the color variation like pixelsearch.
     
    Levinski likes this.
  10. salas011

    salas011 Peru Lurker

    Post Count:
    9
    Stats
    make a video please how we can use the hack
     
  11. Levinski

    Levinski Sweden The New Guy

    Post Count:
    32
    Stats
    Next time for sure but I don't think I'll go back now and re-do it since, at least for me, it works perfectly
    --- Double Post Merged, Apr 7, 2018, Original Post Date: Apr 7, 2018 ---
    There're quite clear instructions I think, for what it's worth I kind of don't wanna spoonfeed to the max.
     
  12. Anent

    Anent Finland The New Guy

    Post Count:
    11
    Stats
    Levinski, how much you get stardust per round or score?

    Atm im getting +450 dust and +90k score with my own program, just need a reference is this slow or ok speed.
     
  13. ALiQBABY

    ALiQBABY MapleKings Premium

    Post Count:
    659
    Stats
    Levinski and gipal like this.
  14. Levinski

    Levinski Sweden The New Guy

    Post Count:
    32
    Stats
    I'm in that ballpark as well, some variance with the unidentified ones. So more or less the same :)
     
  15. Anent

    Anent Finland The New Guy

    Post Count:
    11
    Stats
    I imagine the script uses memory to identify the monster and not screen to find pixel thus getting the error margin down and allowing for faster speeds.

    Well if it caps at 104k im not missing that much, as i don't have terminal, i need to rely one this.

    PS. if it works with pointer/memory, it should be possible to make a CE script. If so, maybe i'll dig in to it.
     
  16. Levinski

    Levinski Sweden The New Guy

    Post Count:
    32
    Stats
    The mobs are stood still though.
    The buttons doesn't seem to receieve inputs. At least that's what I take from it! If that means you can do pointer/memory memes idk :^)

    Edit: The big difference is the time spent
     
  17. Anent

    Anent Finland The New Guy

    Post Count:
    11
    Stats
    Lets imagine its a pointer, 0 = Green, 1 = Blue, 2 = Red.

    We can read the pointer and send the correct input in milliseconds, need 1000 correct to complete. So takes max 10 sec to complete.

    2nd way might be a "exploit" where the Fever is ON all the time and only Space input is sent 1000 times. But i think it is done by pointers.
     
  18. DaniKani

    DaniKani Brazil Informed Hacker

    Post Count:
    71
    Stats
    what i do with OBS? i started the window capture, just it?
    --- Double Post Merged, Apr 8, 2018, Original Post Date: Apr 8, 2018 ---
    oooh, the coordinates are coordinates in the window capture :O
    --- Double Post Merged, Apr 8, 2018 ---
    nah, i dont get what to do with OBS D:
     
    darkgamers and reninhastar like this.
  19. LemonPaste

    LemonPaste The New Guy

    Post Count:
    33
    Stats
    It doesn't cap at 104k. That's probably some hack-related problem that stops it at 104k. (106k) with macros alone, and regularly exceed 104k now.

    edit: im using my own ahk macro and don't use obs
     
    DaniKani likes this.
  20. DaniKani

    DaniKani Brazil Informed Hacker

    Post Count:
    71
    Stats
    nvm, i got that, my problem is the blue one, he's so skinny
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice