• Log in or sign up for an account here: https://www.sythe.org/login

[FreeScript] Quest Helper

Was this helpful?

  • Yes

  • No


Results are only viewable after voting.
Status
Not open for further replies.

ChampionOs

Newcomer
Joined
Aug 24, 2020
Sythe Gold
11
Messages
14
Location
canada
Hey everyone,

Just sharing this script i made to assist with questing, makes it more afkable. It will automatically press spacebar anytime a continue message pops up in your runelite clients chatbox, make sure your Key Remapping is on in your runelite setting and you cannot type without pressing enter. In order to setup your client to the same size, Just go into fixed classic mode in your runescape settings and make the runelite window as small as possible. Lets looks at the script.

SCRIPTSTART *DONT INCLUDE*

global State = Off
global ScriptDirectory = A_ScriptDir ;this finds the location of the script for us

NumpadMult::
ImageSearch, FoundRuneLiteIcon1X, FoundRuneLiteIcon1Y, 0, 0, A_ScreenWidth, A_ScreenHeight, %ScriptDirectory%\Images\RuneLiteIcon.PNG ;Were doing an image search for an active runelite icon
if (ErrorLevel = 0) { ;If its found define the minimum client size for us
FoundRuneLiteIcon1X -= 2
FoundRuneLiteIcon1Y -= 1
Sleep, 10
ClientMinX = %FoundRuneLiteIcon1X%
ClientMinY = %FoundRuneLiteIcon1Y%
}
ImageSearch, FoundRuneLiteIcon2X, FoundRuneLiteIcon2Y, 0, 0, A_ScreenWidth, A_ScreenHeight, %ScriptDirectory%\Images\RuneLiteIcon.PNG
if (ErrorLevel = 0) { ;lazy c+p from above and define the maximum
FoundRuneLiteIcon2X += 770
FoundRuneLiteIcon2Y += 532
Sleep, 10
ClientMaxX = %FoundRuneLiteIcon2X%
ClientMaxY = %FoundRuneLiteIcon2Y%
} else if (ErrorLevel = 1){ ;if its unable to find the image tell user and reload script
Msgbox, RuneLite Client not detected. try again.
Reload
Sleep, 1000
}
State = On ;set global variable to what we want
Sleep, 10
SetTimer, StoreBaseMousePos, -50 ;get a position on the screen that i use to move the mouse and find things etc
Sleep, 50

While (State = "On"){ ;Start a loop for the script using a global variable from the top
ChatLevelUpAreaMinX = %MouseBasePosX%
ChatLevelUpAreaMinY = %MouseBasePosY%;define the chatbox area
ChatLevelUpAreaMinX -= 515
ChatLevelUpAreaMinY += 315
ChatLevelUpAreaMaxX = %MouseBasePosX%
ChatLevelUpAreaMaxY = %MouseBasePosY%
ChatLevelUpAreaMaxX -= 5
ChatLevelUpAreaMaxY += 445
PixelSearch, FoundLevelUpX, FoundLevelUpY, %ChatLevelUpAreaMinX%, ;%ChatLevelUpAreaMinY%, %ChatLevelUpAreaMaxX%, %ChatLevelUpAreaMaxY%, 0xFF0000, 0, Fast ;0xFF0000 ;do a pixel search for the blue color text "please continue"
if (ErrorLevel){
Send, {Space up} ;if not found release spacebar
} else {
Send, {Space down} ;if found hold down spacebar
}
}
return

NumpadDiv:: ;Numpad / to stop the script
Reload
Sleep, 1000
return

StoreBaseMousePos: ;image search subroutine that searches the client area to define our base mouse position (something that will always be the same, like in the UI) we used xp icon
ImageSearch, FoundXPBaseX, FoundXPBaseY, %ClientMinX%, %ClientMinY%, %ClientMaxX%, %ClientMaxY%, %ScriptDirectory%\Images\XPIcon.PNG
if (ErrorLevel = 0){
MouseBasePosX = %FoundXPBaseX%
MouseBasePosY = %FoundXPBaseY%
Sleep, 125
}
return

SCRIPTEND *DONT INCLUDE*



RuneliteIcon


XPIcon




Hope this helped. Create an Images folder with above.



 
Last edited:
Status
Not open for further replies.
duelarena.gg
Back
Top