AHK Script for Reverse Battle

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

Discuss AHK Script for Reverse Battle in the MapleStory Global & Europe Hacks, Bots & Releases area at GameKiller.net

  1. ProfugusMortis

    ProfugusMortis Canada The New Guy

    Post Count:
    11
    Likes Received:
    2
    Stats
    Hello,

    UPDATE:

    I've made a very basic AutoHotkey script that spams every position possible in the Reverse Battle minigame. Mouse click locations are based on the game max resolution in window mode. There shouldn't be any need for adjustment.

    The "random" spam will get you back in the next game, but might also leave if a partner isn't found quickly enough. If it does it will take more time to get in the next game, but from my 2 hours of testing, you do NOT get stuck.

    There's plenty of upgrades that could be made:
    1. Using pixel detection to know when the game is on so it only spams during the game and have a different list of action when not in the game to queue in for the next one faster.
    2. Randomizing the orders of click could be nice.
    3. Using more pixel detection to only click available spots.
    It's my first time using Autohotkey so I'm not sure I can do those.
     
    Last edited: May 3, 2018
    lobster1979 and Levinski like this.

    Mr. Ad Advertisement

     
  2. Tht1Azn

    Tht1Azn United States The New Guy

    Post Count:
    31
    Likes Received:
    2
    Stats
    how do i use this script? Ive got not idea how to manually enter scripts
     
  3. gerf

    gerf United States Veteran Hacker

    Post Count:
    101
    Likes Received:
    5
    Stats
    I made a similar script for myself, but I found I would always DC within 10 games. I found that the beam me up game was much more stable able to be botted overnight without issue.
     
  4. ProfugusMortis

    ProfugusMortis Canada The New Guy

    Post Count:
    11
    Likes Received:
    2
    Stats
    Simply copy the script in a text file and replace the .txt extension by .ahk. After that, you can open it with AutoHotkey.

    I didn't have any issue on my side. Also, it took me about 1h30 to get the max 200 stardust with this during peak hours, it's not as good outside peak time as it takes a while to get a game. I don't see why I would have this run overnight.
     
  5. Levinski

    Levinski Sweden The New Guy

    Post Count:
    32
    Likes Received:
    11
    Stats
    I think he's referring to have the 'beam me up' minigame to run overnight, in place of this.

    What I'd do to solve:
    1. Is to have two separate loops and depending on the state of the pixelsearch you're switching on either loop through a variable. E.g. One loop that tries to enter the game if the variable is true. If the variable is false, it runs the clicking routine. I think I would use the color of the playboard to determine wheter or not in the game.

    I think I might use this on my 2nd PC to quickly get stars, rather than the BMU-minigame.

    That being said once I edit the script I could share it here if you'd like.

    2. Not sure how you would go on about randomizing the order.

    3. I have yet to test this script but since there're no 'Sleep' commands I'd imagine that when it's your turn it clicks an available spot rather quickly anyway. This also could mean it acts as a countermeasure towards suspicion of botting/scripting.

    Good work!
     
  6. Coala

    Coala Brazil Premium Premium

    Post Count:
    22
    Likes Received:
    0
    Stats
    Thanks for this, works greatly although I've got the same issue as someone pointed up there: it will crash after 10 games or so for me.
    With and without a bypass, no idea why.

    Edit: nvm, must have been something else, it's stable now.
    One thing though, the toggle thing didn't work for me (it wouldn't toggle off), so I changed my script in order for it to allow one key to set looping to true and begin looping and another to set looping to false, thus pausing the script and it works better.
     
    Last edited: Apr 29, 2018
  7. Juaquinexxx

    Juaquinexxx Colombia The New Guy

    Post Count:
    39
    Likes Received:
    3
    Stats
    Alguien que hable espaƱol me podria explicar como hacerlo? gracias
     
  8. Levinski

    Levinski Sweden The New Guy

    Post Count:
    32
    Likes Received:
    11
    Stats
    Here's what I changed it to...
    You only need to set your interact with NPC on alt, though I think you can get away with only pressing enter now when I think about it, since the clicks go for the NPC interactions... Not sure but hey.

    Thanks again my dude <3

    F11::
    looping := true
    While(looping = true)
    {

    PixelSearch, Px, Py, 650, 60, 800, 110, 0x22BBFF, 3, Fast //ingame
    if !ErrorLevel
    {
    Click, 732, 431
    Click, 544, 304
    Click, 584, 304
    Click, 624, 304
    Click, 664, 304
    Click, 704, 304
    Click, 744, 304
    Click, 784, 304
    Click, 824, 304
    Click, 544, 344
    Click, 584, 344
    Click, 624, 344
    Click, 664, 344
    Click, 704, 344
    Click, 744, 344
    Click, 784, 344
    Click, 824, 344
    Click, 544, 384
    Click, 584, 384
    Click, 624, 384
    Click, 664, 384
    Click, 704, 384
    Click, 744, 384
    Click, 784, 384
    Click, 824, 384
    Click, 544, 424
    Click, 584, 424
    Click, 624, 424
    Click, 664, 424
    Click, 704, 424
    Click, 744, 424
    Click, 784, 424
    Click, 824, 424
    Click, 544, 464
    Click, 584, 464
    Click, 624, 464
    Click, 664, 464
    Click, 704, 464
    Click, 744, 464
    Click, 784, 464
    Click, 824, 464
    Click, 544, 504
    Click, 584, 504
    Click, 624, 504
    Click, 664, 504
    Click, 704, 504
    Click, 744, 504
    Click, 784, 504
    Click, 824, 504
    Click, 544, 544
    Click, 584, 544
    Click, 624, 544
    Click, 664, 544
    Click, 704, 544
    Click, 744, 544
    Click, 784, 544
    Click, 824, 544
    Click, 544, 584
    Click, 584, 584
    Click, 624, 584
    Click, 664, 584
    Click, 704, 584
    Click, 744, 584
    Click, 784, 584
    Click, 824, 584
    }

    PixelSearch, Px, Py, 650, 60, 800, 110, 0x22BBFF, 3, Fast //ingame
    if ErrorLevel
    {
    Send, {alt}
    Sleep 100
    Send, {enter}
    Sleep 100
    }
    }


    F12::
    looping := false
    return
     
    ProfugusMortis likes this.
  9. Nartronic

    Nartronic United States Premium Premium

    Post Count:
    24
    Likes Received:
    6
    Stats
    Thank you so much for this!
     
  10. ProfugusMortis

    ProfugusMortis Canada The New Guy

    Post Count:
    11
    Likes Received:
    2
    Stats
    Thanks for the update on this, it's pretty much what I wanted to do. But didn't really have the time. I'll try testing it tonight.
     
    I completely changed the way this script work. It doesn't randomly spam all the possible spot anymore, it more simply looks for the flashing square (the place where you can play) and clicks on that.

    Added a better way to get back in the game, mostly copied for Levinski 's last post. Use ALT as your NPC key or change the key in the script.

    Added a toggle sound, as it hard to see if it's active or not when waiting for a place to play.

    Added random delays.

    Maplestory needs to be in window mode at max resolution. And you need to have the event stars on the left as it's what I use to know if you are in the "lobby" or the game. This might need adjustment but it works for me on multiple different characters.


    Code:
    #MaxThreadsPerHotkey, 2
    #singleInstance, Force
    toggle = 0
    
    
    F8::  ; press F8 to toggle the loop on/off.
    SoundBeep
    Toggle := !Toggle
    While Toggle
    { ;-- Begin of loop.
    
    
    
    PixelSearch, Px, Py, 32, 274, 55, 295, 0xFF9900, 3, Fast RGB //Looking for the Available Event star on the left
    
    IF ErrorLevel = 1     ; If NOT Found you are queued or in game  
    {
    
        PixelSearch, colourx, coloury, 526, 285, 844, 603, 0xc1b080 , 3, Fast RGB  //Looking the flashing square for the available spot to play
        IF ErrorLevel = 0     ; IF Found click on it  
        {
        Click, %colourx%   , %coloury% Left, 1     ; Click on it.                      
            Sleep, % Rand (10, 50)
                Click
                    Sleep, % Rand (10, 50)
                        Click
                            Sleep, % Rand (10, 50)
                                                    }
    }
    
    
    IF ErrorLevel = 0     ; If Found, time to queue for a game  
        {
        Send, {alt}    ; NPC interact key
            Sleep, % Rand (10, 50)
                Send, {enter}
                    Sleep, % Rand (500, 1000)
                                            }
    
    
    
    } ;-- End of Loop.
    return
    
    
     

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