Just making it easier for you all to find a working Auto-loot script, Now I don't know if this has already been posted, if so just take it down. Now, you'll need Auto Hot key. Just search up AutoHotkey on google or whatever you use, because I can post a link. Lol. To get this to work. After you download and set up Auto Hot key, open up a text doc or notepad. Copy and paste this code into the text document.
Code:
#NoEnv
#SingleInstance force
SendMode Input
SetWorkingDir %A_ScriptDir%
SetKeyDelay 0
SetMouseDelay 0
SetTitleMatchMode 2
Suspend on
GroupAdd rotmg, Realm of the Mad God
GroupAdd rotmg, realmofthemadgod
GroupAdd rotmg, AGCLoader
GroupAdd rotmg, Play Realm of the Mad God
GroupAdd rotmg, SwiffOutRunner
GroupAdd rotmg, Adobe Flash Player 10
GroupAdd rotmg, Adobe Flash Player 11
GroupAdd rotmg, fla
WinNotActive()
WinActive()
{
Suspend Off
WinWaitNotActive ahk_group rotmg
{
WinNotActive()
}
}
WinNotActive()
{
Suspend on
WinWaitActive ahk_group rotmg
{
WinActive()
}
}
;Auto loot :D
Q::
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}
MouseMove, imageLocX + Xinc + 3, imageLocY + Yinc + 3
Sleep 60
MouseMove, imageLocX + Xinc, imageLocY + Yinc - 30
SendEvent {LButton Up}
Sleep 1
Xinc += 50
}
}
MouseMove, mousePosX, mousePosY
Return
And save the document as a Windows Batch file (.bat)
Right click on the .bat and select open with Auto hotkey
And whala! you have Auto-Loot!

Now to get the to loot things, just press "Q" and you're set!