Elden Ring: Script to farm the rolling rock ball
Posted: 07 Aug 2022, 07:05
Hi,
Here's a script to farm the rock ball at Lenne's rise grace point.
You will need to have Torrent selected, and if you have problems summoning him alternately, adjust line 149 for your map load times.
Also, you may need to have Lenne's rise unfavorited for this one I think.
Also, I advise keeping the movement tooltips because removing them might offset the timings.
As a final note, there's always a chance that the rock hit you, although I tested this for hours and it doesn't seem to happen with these timings, but you never know. To avoid losing your runes in case that happens, you may want to increase Vigor first, then go on from there.
Here's the code:
I hope it works for you. if it doesn't let me know.
Regards.
Here's a script to farm the rock ball at Lenne's rise grace point.
You will need to have Torrent selected, and if you have problems summoning him alternately, adjust line 149 for your map load times.
Also, you may need to have Lenne's rise unfavorited for this one I think.
Also, I advise keeping the movement tooltips because removing them might offset the timings.
As a final note, there's always a chance that the rock hit you, although I tested this for hours and it doesn't seem to happen with these timings, but you never know. To avoid losing your runes in case that happens, you may want to increase Vigor first, then go on from there.
Here's the code:
Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn ; Enable warnings to assist with detecting common errors.
;; inspired from: https://www.autohotkey.com/boards/viewtopic.php?f=19&t=103259
;; - the key to activate the golden wave of your weapon is TAB
;; - start the script with F7, Reload with F6 and stop with F8
;; - the timings between each inputs are adapted to my rig , make sure to adapt the timings to yours
;; - direction keys are W A S D
Process, priority, , high
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
SetTitleMatchMode, 2
;SetKeyDelay, 20, 20
#MaxThreadsperHotkey 2
CoordMode, Mouse, Screen
CoordMode, Pixel, Screen
CoordMode, Tooltip, Screen
WinGetPos, WinX, WinY, WinW, WinH, ELDEN RING™
if (WinX !=0)
Winmove, ELDEN RING™, , 0, 0
SetBatchLines, -1
WinActivate ELDEN RING™
#IfWinActive, ELDEN RING™
F6::reload
F8::ExitApp
F7::
Gosub main
main:
loop{
GetKeyState, rstate, r
if (rstate = "D") {
tooltip, r, 700, 300, 12
SetTimer, RemoveTooltip12, -1000
Send, {r up}
Sleep 30
}
GetKeyState, estate, e
if (estate = "D") {
tooltip, e, 730, 330, 13
SetTimer, RemoveTooltip13, -1000
Send, {e up}
Sleep 30
}
GetKeyState, fstate, f
if (fstate = "D") {
tooltip, f, 760, 360, 14
SetTimer, RemoveTooltip14, -1000
Send, {f up}
Sleep 30
}
GetKeyState, gstate, g
if (gstate = "D") {
tooltip, g, 790, 390, 15
SetTimer, RemoveTooltip15, -1000
Send, {g up}
Sleep 30
}
GetKeyState, wstate, w
if (wstate = "D") {
tooltip, w, 820, 420, 16
SetTimer, RemoveTooltip16, -1000
Send, {w up}
Sleep 30
}
GetKeyState, sstate, s
if (sstate = "D") {
tooltip, s, 850, 450, 17
SetTimer, RemoveTooltip17, -1000
Send, {s up}
Sleep 30
}
GetKeyState, astate, a
if (astate = "D") {
tooltip, a, 880, 480, 18
SetTimer, RemoveTooltip18, -1000
Send, {a up}
Sleep 30
}
GetKeyState, dstate, d
if (dstate = "D") {
tooltip, d, 910, 510, 19
SetTimer, RemoveTooltip19, -1000
Send, {d up}
Sleep 30
}
;; G F E E ==> we go the the closest site of grace
Sleep 30
Send, {g down}
Sleep 30
Send, {g up}
loop, 300 {
ImageSearch, , ,1802, 100, 1816, 119, *25 *transblack Compass.png
If (ErrorLevel = 0){
break
}
If (A_Index = 300){
Sleep, 100
Gosub main
break
}
}
Send, {f down}
Sleep 30
Send, {f up}
Sleep 30
loop,100 {
Imagesearch, , , 52, 150, 116, 970, *25 *transblack Lenne'sGrace.png
If (ErrorLevel = 0) {
break
}
If (A_Index = 100) {
Sleep 30
Send, {f up}
Sleep 30
Send, {f down}
Sleep 30
Send, {f up}
Sleep 30
break
}
}
Send, {e down}
Sleep 30
Send, {e up}
Sleep 30
Loop, 100 {
Imagesearch, , , 1151, 582, 1162, 592, *115 *Transblack TravelCancel.png
If (ErrorLevel = 0) {
Send, {e down}
Sleep 30
Send, {e up}
break
}
}
Send, {e down}
Sleep 5000
Imagesearch, , , 119, 1017, 584, 1035, *55 *Transblack Next.png
If (ErrorLevel = 1) {
Send, {e up}
Sleep 145
Send, {e down}
Sleep 3000
}
Sleep 1000
loop, 1000 {
ImageSearch, , ,1685, 1026, 1705, 1045, *55 *transblack RuneIcon.png
If (ErrorLevel = 0){
break
}
}
;; W A W S ==> we zig zag into position
;BlockInput, MouseMove
Sleep 60
Send, {e up}
Sleep 60
Send, {r down}
Sleep 360
Send, {r up}
Sleep 30
Send, {d down}{s down}
tooltip, 1 ds, 900, 600, 2
SetTimer, RemoveToolTip2, -1600
Sleep 1600
Send, {space down}{w down}{d up}{s up}
tooltip, 2 w S, 900, 600, 3
SetTimer, RemoveToolTip3, -2000
Sleep 2000
Send, {d down}
tooltip, 3 wd S, 900, 600, 4
SetTimer, RemoveToolTip4, -550
Sleep 550
Send, {d up}
tooltip, 4 w S, 900, 600, 5
SetTimer, RemoveToolTip5, -7400
sleep 7400
Send, {a down}
tooltip, 5 wa S, 900, 600, 6
SetTimer, RemoveToolTip6, -300
Sleep 300
Send, {a up}
tooltip, 6 w S, 900, 600, 7
SetTimer, RemoveToolTip7, -200
sleep 200
Send, {a down}
tooltip, 7 wa S, 900, 600, 8
SetTimer, RemoveToolTip8, -300
Sleep 300
Send, {space up}{w up}{d down}{a up}
tooltip, 8 d, 900, 600, 9
SetTimer, RemoveToolTip9, -600
Sleep 400
Send, {s down}
tooltip, 9 ds, 900, 600, 10
SetTimer, RemoveToolTip10, -200
Sleep 400
send, {w down}{s up}
tooltip, 10 w, 900, 600, 11
SetTimer, RemoveToolTip11, -100
sleep 100
Send, {d down}{space down}
tooltip, 11 wd S, 900, 600, 12
SetTimer, RemoveToolTip12, -2300
sleep 2300
Send, {w up}{d up}{space up}
sleep 2300
}
return
RemoveToolTip:
ToolTip
return
RemoveToolTip2:
ToolTip,,,, 2
return
RemoveToolTip3:
ToolTip,,,,3
return
RemoveToolTip4:
ToolTip,,,,4
return
RemoveToolTip5:
ToolTip,,,,5
return
RemoveToolTip6:
ToolTip,,,,6
return
RemoveToolTip7:
ToolTip,,,,7
return
RemoveToolTip8:
ToolTip,,,,8
return
RemoveToolTip9:
ToolTip,,,,9
return
RemoveToolTip10:
ToolTip,,,,10
return
RemoveToolTip11:
ToolTip,,,,11
return
RemoveToolTip12:
ToolTip,,,,12
return
RemoveToolTip13:
ToolTip,,,,13
return
RemoveToolTip14:
ToolTip,,,,14
return
RemoveToolTip15:
ToolTip,,,,15
return
RemoveToolTip16:
ToolTip,,,,16
return
RemoveToolTip17:
ToolTip,,,,17
return
RemoveToolTip18:
ToolTip,,,,18
return
RemoveToolTip19:
ToolTip,,,,19
return
RemoveToolTip20:
ToolTip,,,,20
return
Regards.