Results 1 to 9 of 9
  1. #1
    dg123's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Posts
    552
    Reputation
    10
    Thanks
    264
    My Mood
    Bored

    MegaRealmScript (AutoHotKey)

    This is a giant pile of all the scripts i have made... (I will make it downloadable next update because of its great length)
    Please, comment below some feature you want to see! For Instant updates and extra features join my guild! i have the script in message board.
    Note: works only with flash player (maybe steam idk...) at default window size

    Stuff im working on (i need help with all of these if you can please post codes that will help me):
    Auto nexus (spams nexus at 30,29,28,27,etc for fast nexus without fail)
    Auto Drink HP Pot (Like odom...drinks hp pot at a set %)
    Auto priest ability (like odom...uses ability at a set %)

    Hotkeys:
    F9: change quaility to low
    RightMouse: Auto loot
    F4-F6: messages
    F7: set trading message
    F8 spam your trading message
    Ctr + q: put all inv in chest (does not always work)
    Ctr + a: select all 8 slots when trading
    Left arrow key: swap inv item in slot one
    Down arrow key: swap inv item in slot two
    Ctr + P: pause

    Code:
    #NoEnv
    #SingleInstance force
    SendMode Input
    SetWorkingDir %A_ScriptDir%
    
    SetKeyDelay 0
    SetMouseDelay 0
    SetTitleMatchMode 2
    
    Suspend on
    GroupAdd rotmg, Adobe Flash Player 11
    GroupAdd rotmg, Realm of the Mad God
    WinNotActive()
    
    WinActive()
    {
    	Suspend Off
    	WinWaitNotActive ahk_group rotmg
    	{
    		WinNotActive()
    	}
    }
    WinNotActive()
    {
    	Suspend on
    	WinWaitActive ahk_group rotmg
    	{
    		WinActive()
    	}
    }
    
    ; sends rclick when ctrl+rclick is sent to get the flash context menu
    ^+RButton::
    Click right
    return
    
    
    ; Switch items in you inv!
    Left::
    slot = 1	;;;;; CHANGE TO YOUR WEAPON SWAP INVENTORY SLOT
    goto swap
    
    Down::
    slot = 2	;;;;; CHANGE TO YOUR ABILITY SWAP INVENTORY SLOT
    goto swap
    
    swap:
    MouseGetPos, mousePosX, mousePosY
    WinGetPos, , , winSizeX, winSizeY, A
    SysGet, menuHeight, 15
    SysGet, vBorderWidth, 32
    SysGet, hBorderWidth, 33
    SysGet, titleHeight, 4
    ImageSearch, imageLocX, imageLocY, %winSizeX%/2, %winSizeY%/2, %winSizeX%, %winSizeY%, img\inv-low.png
    if ErrorLevel {
    	ImageSearch, imageLocX, imageLocY, %winSizeX%/2, %winSizeY%/2, %winSizeX%, %winSizeY%, img\inv-high.png
    	if ErrorLevel {
    		ImageSearch, imageLocX, imageLocY, %winSizeX%/2, %winSizeY%/2, %winSizeX%, %winSizeY%, img\inv-med.png
    		if ErrorLevel {
    			stretched := true
    		}
    	}
    }
    if(stretched){
    	posX := 634 + Mod((44 * (slot-1)), (4*44))
    	posY := 400 + (44 * ((slot-1)//(4)))
    	multiplierX := ((winSizeX-vBorderWidth)/800)
    	multiplierY := ((winSizeY-(menuHeight+hBorderWidth+titleHeight))/600)
    	posX *= multiplierX
    	posY *= multiplierY
    } else {
    	posX := imageLocX + 30 + Mod((44 * (slot-1)), (4*44)) - vBorderWidth
    	posY := imageLocY + 50 + (44 * ((slot-1)//(4))) - (menuHeight+hBorderWidth+titleHeight)
    }
    CoordMode, Mouse, Client
    MouseMove, posX, posY
    SendEvent {LButton Down}
    SendEvent {LButton Up}
    SendEvent {LButton Down}
    SendEvent {LButton Up}
    CoordMode, Mouse, Window
    MouseMove, mousePosX, mousePosY
    stretched := false
    Return
    
    
    F4::
    SendInput, {Enter}/teleport
    return
    
    F5::
    SendInput, {Enter}He lives and reigns and conquers the world{Enter}
    return
    
    F6::
    SendInput, {Enter}Ready{Enter}
    Return
    
    ^p::
    clipboard = /pause
    goto ek
    
    ; set a trading message
    F7::InputBox, tradingmsg, Trading message, Enter Your Trading Message!
    
    ; send trading message
    F8::
    if endoftrading = 0
    {
    clipboard = /yell %tradingmsg%
    endoftrading = 1
    }
    else
    {
    clipboard = /yell %tradingmsg%
    endoftrading = 0
    }
    goto ek
    
    ; sends clipboard to the chat using the tab key
    tk:
    Blockinput, on
    Send {Tab}
    Send ^v
    Send {Enter}
    Blockinput, off
    Return
    
    ; sends clipboard to the chat using the enter key
    ek:
    Blockinput, on
    Send {Enter}
    Send ^v
    Send {Enter}
    Blockinput, off
    Return
    
    ;Auto loot V2! FASTER!
    RButton::
    SendMode Event
    MouseGetPos, mousePosX, mousePosY
    WinGetPos, , , winSizeX, winSizeY, A
    ImageSearch, imageLocX, imageLocY, 0, 0, %winSizeX%, %winSizeY%, img\searchimage.png
    imageLocX += 0
    imageLocY -= 70
    Xinc = 640
    Yinc = 635
    {
    	
    	{
    		MouseMove, imageLocX + Xinc, imageLocY + Yinc
    		SendEvent {LButton Down}
    		SendEvent {LButton Up}
    		SendEvent {LButton Down}
    		SendEvent {LButton Up}
    	}
    }
    MouseMove, mousePosX, mousePosY
    Return
    
    ;;quality
    F9::
    Send {Alt}
    SendInput {raw}VQL
    Return
    
    ;(S)elect all when trading
    ^a::
    sleep 1
    click 650, 350
    Sleep 1
    click 650, 390
    Sleep 1
    Click 690, 350
    Sleep 1
    Click 690, 390
    Sleep 1
    Click 730, 350
    Sleep 1
    Click 730, 390
    Sleep 1
    Click 770, 350
    Sleep 1
    Click 770, 390
    return
    
    
    ; drop all items in chest(does not work always)
    ^q::
    SendMode Event
    MouseGetPos, mousePosX, mousePosY
    WinGetPos, , , winSizeX, winSizeY, A
    ImageSearch, imageLocX, imageLocY, 0, 0, %winSizeX%, %winSizeY%, img\searchimage.png
    imageLocX += 0
    imageLocY -= 70
    MouseMove, imageLocX, imageLocY
    Xinc = 630
    Yinc = 510
    Loop 2
    {
    	Loop 4
    	{
    		MouseMove, imageLocX + Xinc, imageLocY + Yinc
    		SendEvent {LButton Down}
    		MouseMove, imageLocX + Xinc + 3, imageLocY + Yinc + 3
    		Sleep 260
    		MouseMove, imageLocX + Xinc, imageLocY + Yinc + 125
    		SendEvent {LButton Up}
    		Sleep 260
    		Xinc += 44
    	}
    	Xinc = 630
    	Yinc += 50
    }
    MouseMove, mousePosX, mousePosY
    Return
    Last edited by dg123; 06-02-2013 at 08:08 PM.

  2. The Following 3 Users Say Thank You to dg123 For This Useful Post:

    Hycca (06-02-2013),OnLevel (06-02-2013),WTFXD185 (06-04-2013)

  3. #2
    OnLevel's Avatar
    Join Date
    May 2013
    Gender
    male
    Location
    Los Angeles
    Posts
    69
    Reputation
    10
    Thanks
    12
    Great script, I always use this when playing RotMG.

  4. #3
    Nisuxen's Avatar
    Join Date
    May 2012
    Gender
    male
    Posts
    164
    Reputation
    10
    Thanks
    95
    Code:
    ImageSearch, imageLocX, imageLocY, 0, 0, %winSizeX%, %winSizeY%, img\searchimage.png
    This line doesn't do anything without knowing what searchimage.png is.

    Autonexus via ahk has been done and is not worth pursuing. I modified an old ahk program that showed your HP percentage on the cursor to nexus at a certain threshold. It counted the red pixels of the HP bar and compared it to the full length. It will never be faster than the autonexus of a modified client.

  5. #4
    dg123's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Posts
    552
    Reputation
    10
    Thanks
    264
    My Mood
    Bored
    Quote Originally Posted by Nisuxen View Post
    Code:
    ImageSearch, imageLocX, imageLocY, 0, 0, %winSizeX%, %winSizeY%, img\searchimage.png
    This line doesn't do anything without knowing what searchimage.png is.

    Autonexus via ahk has been done and is not worth pursuing. I modified an old ahk program that showed your HP percentage on the cursor to nexus at a certain threshold. It counted the red pixels of the HP bar and compared it to the full length. It will never be faster than the autonexus of a modified client.
    i dont know where i got that line from 0_0 prob from editing one of those old scripts i found that don't even work. when i copied it to get the x and y i believe. ive been trying to modify a cursor script without success, could you make it drink hp pots/ priest auto ability or just send it to me in a pm so i could do it. also for auto nexus couldnt you just make it so that when it comes down to 30% it says o(options) and click back to home...i wonder if that would be fast enough. or you could just set it ahead to like 40 or even 45% for a nexus...
    thanks for the help
    Last edited by dg123; 06-02-2013 at 08:05 PM.

  6. #5
    Hycca's Avatar
    Join Date
    Feb 2013
    Gender
    male
    Posts
    10
    Reputation
    10
    Thanks
    5
    Thank you for the script.

  7. The Following User Says Thank You to Hycca For This Useful Post:

    dg123 (06-02-2013)

  8. #6
    Nisuxen's Avatar
    Join Date
    May 2012
    Gender
    male
    Posts
    164
    Reputation
    10
    Thanks
    95
    You're modifying that one guy's quickspeech... I don't remember his name but he used a bunch of image searches to make it work for everyone. You should try to find those.

    could you make it drink hp pots/ priest auto ability or just send it to me in a pm
    Nope. Autohotkey is my past. Now I do client stuff. Much more efficient.

  9. #7
    dg123's Avatar
    Join Date
    Dec 2012
    Gender
    male
    Posts
    552
    Reputation
    10
    Thanks
    264
    My Mood
    Bored
    Quote Originally Posted by Nisuxen View Post
    You're modifying that one guy's quickspeech... I don't remember his name but he used a bunch of image searches to make it work for everyone. You should try to find those.


    Nope. Autohotkey is my past. Now I do client stuff. Much more efficient.
    could u make auto priest ability on client?

  10. #8
    Nisuxen's Avatar
    Join Date
    May 2012
    Gender
    male
    Posts
    164
    Reputation
    10
    Thanks
    95
    Nilly did that a long time ago I believe. So yes it is entirely possible.

  11. #9
    WTFXD185's Avatar
    Join Date
    Mar 2009
    Gender
    male
    Location
    UHMERICA
    Posts
    365
    Reputation
    12
    Thanks
    314
    Hey thanks Someone else was also looking for this earlier so this is perfect <3
    Go big or go home

Similar Threads

  1. [Release] NEW! AutoHotKey App!
    By AudiTT in forum Call of Duty 6 - Modern Warfare 2 (MW2) Hacks
    Replies: 40
    Last Post: 04-28-2010, 10:44 PM
  2. [Release] AutoHotKey for CoD 4,5,6
    By AudiTT in forum Call of Duty Hacks & Cheats
    Replies: 20
    Last Post: 04-02-2010, 02:40 PM
  3. Autohotkey burst-fire
    By sinister5964 in forum Call of Duty Modern Warfare 2 Help
    Replies: 14
    Last Post: 03-09-2010, 07:15 PM
  4. Simple AutoHotKey Pistol Rapid Fire
    By .:AsianTim:. in forum Combat Arms Hacks & Cheats
    Replies: 74
    Last Post: 09-27-2009, 10:07 PM
  5. Simple AutoHotKey Rapid Fire
    By .:AsianTim:. in forum Combat Arms Hacks & Cheats
    Replies: 16
    Last Post: 08-17-2009, 02:52 AM