Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ^j::
- find_Siphon:
- MsgBox, ,,Finding a Siphon...,1
- x_mouse:=1100
- y_mouse:=550
- Loop,25{
- Loop,175{
- MouseMove, %x_mouse%,%y_mouse%
- ImageSearch, ,,% x_mouse-90,% y_mouse-30,% x_mouse+90,% y_mouse-70,C:\Users\Charley\Documents\RuneScapeBot\Siphon.png
- if ErrorLevel
- x_mouse-=5
- else{
- MouseClick, left,%x_mouse%,%y_mouse%
- break
- }
- }
- if ErrorLevel{
- y_mouse-=20
- x_mouse:=1100
- }
- else
- break
- }
- if ErrorLevel{
- ;didnt find anything, might be too far North
- ImageSearch, ,,1173,65,1367,231,*TransWhite *50 C:\Users\Charley\Documents\RuneScapeBot\Islands.png
- if ErrorLevel
- Goto, find_Siphon ;not too far North just missed
- else
- MouseClick, left, 1275,233 ;go South
- }
- MsgBox, ,,Siphoning...,1
- MouseMove, 36,52,100
- Sleep, 15000
- Goto, find_Siphon
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement