AHK Script for minel mini game [+help!]

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

Discuss AHK Script for minel mini game [+help!] in the MapleStory Global & Europe Hacks, Cheats & Bots area at GameKiller.net

  1. Levinski

    Levinski Sweden The New Guy

    Post Count:
    32
    Likes Received:
    11
    Stats
    Hello again fellow memesters.

    This one was a lot tougher for me to figure out and get to somewhat properply work.
    To optimize it I need help :(

    Anyway to what this script does; it checks for the brown color on the bombs that are placed in each lane. I've added comments to make it rather clear what's going on where.

    How to use:
    1. You set the first two coordinates (x1, y1) top left of the spots to check for bombs 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 brown wire around the bombs and send the corresponding input to dodge.

    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. Press 'z' to start the script and 'x' to end it.

    Here's the script:

    CoordMode, pixel,screen
    CoordMode, mouse,screen
    looping := false

    z::
    looping := true
    BombLeft := false
    BombMid := false
    BombRight := false

    While(looping = true)
    {

    Send, {LAlt}
    Send, {Click [LButton]}

    PixelSearch, Px, Py, -810, 430, -760, 500, 0x333A6E, 9, Fast //BombLeft
    if !ErrorLevel
    {
    BombLeft := true
    ;ToolTip, I see a bomb on the left!
    }

    PixelSearch, Px, Py, -690, 430, -560, 500, 0x333A6E, 9, Fast //BombMid
    if !ErrorLevel
    {
    BombMid := true
    ;ToolTip, I see a bomb in the middle!
    }

    PixelSearch, Px, Py, -510, 420, -460, 510, 0x333A6E, 9, Fast //BombRight
    if !ErrorLevel
    {
    BombRight := true
    ;ToolTip, I see a bomb on the right!
    }



    ToolTip, BombLeft = %BombLeft%`nBombMid = %BombMid%`nBombRight=%BombRight%

    ;DODGING SYSTEM

    ;I dodge the bombs by going to the left
    if(BombRight = 1 && BombMid = 1)
    {
    ;ToolTip, Dodge to the left!
    Send, {Left}
    Sleep 540
    Send, {Right}
    BombLeft := false
    BombRight := false
    BombMid := false
    }

    ;I dodge the bombs by going to the right
    if(BombLeft = 1 && BombMid = 1)
    {
    ;ToolTip, Dodge to the right!
    Send, {Right}
    Sleep, 520
    Send, {Left}
    BombLeft := false
    BombRight := false
    BombMid := false
    }

    if(BombLeft = 1 && BombMid = 0)
    {
    ;ToolTip, Stay in middle! (1)
    BombLeft := false
    BombRight := false
    BombMid := false
    }

    if(BombRight = 1 && BombMid = 0)
    {
    ;ToolTip, Stay in middle! (2)
    BombLeft := false
    BombRight := false
    BombMid := false
    }

    if(BombRight = 1 && BombLeft = 1 && BombMid = 1)
    {
    ;ToolTip, Stay in middle! (3)
    BombLeft := false
    BombRight := false
    BombMid := false
    }
    }

    x::
    looping := false
    return

    ----

    What I want to be able to do:

    1. Have a variable that grows based on a timer, and the variable has to get to a cap - this var should determine the sleep time, so that as you get further into the minigame it dodges faster.

    2. A way to reset the timer (based probably on color, the whole screen goes black as you enter/leave the minigame) and as such having the variable from 1. always increase with every game.

    Note:
    I've looked around how to mess with A_TickCount as well as various commands such as getting the proper delay I want, however I can't find how to make this:

    if(timer > 20000)
    {
    SleepDelay :=450
    }
    e.g. change a variable based on time passed.

    Thanks for any help and perhaps you can make use of this and my other script in order to get those pesky achievements.



     
    lzy110 and DaniKani like this.

    Mr. Ad Advertisement

     
  2. xenver

    xenver Netherlands Lurker

    Post Count:
    6
    Likes Received:
    1
    Stats
    Mind making a video of how to do it? Your explanation is good but a video will help loads.
     
  3. DaniKani

    DaniKani Brazil Informed Hacker

    Post Count:
    71
    Likes Received:
    24
    Stats
    that's sick! i wish i could help, good luck and nice work man :D
     
    Levinski likes this.
  4. Levinski

    Levinski Sweden The New Guy

    Post Count:
    32
    Likes Received:
    11
    Stats
    I suppose I could do some short tut on picking the coords... my desktop is a mess though :thinking:
     

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