This post has been de-listed (Author was flagged for spam)
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
As the title says I don't yet have a decent autoheal upgrade so large hits kill me and also I don't have an autoloot amulet and don't feel too thrilled I have to replace my good amulets to use one. So I built the script below in AutoHotKey. It's pretty basic, you start it, it prompts you what hotkeys to press with your mouse cursor on what locations. Then after the last one it just continues running on its own. There's a debugger you can uncomment out if want to test if something isn't working right for you. Pause key stops the script. Pause should also continue it, but it's been a little hit or miss for me weirdly. The benefit to using the script however allows you to select where on your health bar when to heal such as at the 50% point if using weaker food. In case confused on F3 section of code it wants you to click at what point in loot window do you want it to autoloot. Personally I didn't like it clicking autoloot every single time I picked up any loot so I personally set it at the 8th item position. But feel welcome to do whichever you please.
Note: The Toggle isn't functioning as expected so it's still a WIP. Currently just use Pause if wanting to pause it. However, because the script verifies that the health bar reach a specific color before trying to heal instead of just not green then it is very mindful not to click random stuff if you change tabs to do anything.
#MaxThreadsPerHotkey 2
Tooltip, Press Ctrl F1 to set position of where to click Heal, 0, 0
^F1:: ; Press Ctrl F1 to set position of where to click Heal
MouseGetPos, food_x, food_y, mwin
Tooltip, Press Ctrl F2 to set position of where to click Loot All, 0, 0
return
^F2:: ; Press Ctrl F2 to set position of where to click Loot All
MouseGetPos, lootbtn_x, lootbtn_y, mwin
Tooltip, Press Ctrl F3 to set where to scan for loot, 0, 0
return
^F3:: ; Press Ctrl F3 to set where to scan for loot
MouseGetPos, lootloc_x, lootloc_y, mwin
PixelGetColor, lootcolor, lootloc_x, lootloc_y, RGB
Tooltip, Press Ctrl F4 to set where to monitor Healthbar, 0, 0
return
^F4:: ; Press Ctrl F4 to set where to monitor Healthbar
Toggle := !Toggle
MouseGetPos, mx, my, mwin
PixelGetColor, loc, mx, my, RGB
loop
{
If Toggle
{
PixelGetColor, mc, %mx%, %my%, RGB
PixelGetColor, newlootcolor, %lootloc_x%, %lootloc_y%, RGB
MouseGetPos, nmx, nmy, mwin
; //Remove the semicolon below to uncomment the tooltip debugger for testing purposes//
; Tooltip, Food is at %food_x%`,%food_y%`nLoot Button is at %lootbtn_X%`,%lootbtn_y%`nMonitoring for loot at %lootloc_x%`,%lootloc_y%`nLoot color was %lootcolor%`nLoot color is %newlootcolor%`nHealth monitoring at %mx%`, %my%`nColor at Healthbar %mx%`,%my%` was %loc%`nColor at Healthbar %mx%`,%my%` is %mc%`n`(If you can read this you can read the screen it shows up on)`nCurrent mouse at %nmx%`,%nmy%`nPress Ctrl F4 to quit script, 0, 0
sleep 200
If mc = 0xD26A5C ; change this to your appropriate color for low health
{
MouseGetPos, start_x, start_y
MouseClick, left, food_x, food_y, 1, 0
sleep 50
MouseMove, %start_x%, %start_y%, 0
}
}
If (mc = loc) && (lootcolor <> newlootcolor) ;if health is full and new loot
{
MouseGetPos, start_x, start_y
MouseClick, left, lootbtn_x, lootbtn_y, 1, 0
sleep 50
MouseMove, %start\_x%, %start\_y%, 0
}
Else
{
Tooltip
}
}
Pause::Pause
That's good to know. And because I use AHK for most of my stuff because can be used in games with anticheatengine most of the time. I'll go look at how they did it on SEMI. Thank you!
Ah, thank you. Very good. Someone linked SEMI already so I'm happy to have both actually. I wrote the AHK script in like an hour and easy to just run from notepad, so was happy with the simplicity. But Going to tear into this when I have a few hours to really dig my teeth in.
Ah, checked out github. I like the simplicity of AutoHotKey but am going to learn how they did it to add to my toolkit ^^ looks pretty fancy. I don't often play browser games. Typically bot MMOs.
That's good to know. And because I use AHK for most of my stuff because can be used in games with anticheatengine most of the time. I'll go look at how they did it on github. Thank you!
That's good to know. And because I use AHK for most of my stuff because can be used in games with anticheatengine most of the time. I'll go look at how they did it on github. Thank you!
Subreddit
Post Details
- Posted
- 4 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/MelvorIdle/...
mmhmm that's what I am starting to get linked a lot now is SEMI. Going to definitely learn how they did it. Thank you, let's see how it goes!