Skip to content

Instantly share code, notes, and snippets.

@wormeyman
Created February 26, 2014 20:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wormeyman/9238210 to your computer and use it in GitHub Desktop.
Save wormeyman/9238210 to your computer and use it in GitHub Desktop.
wait = 1 ;Speed of the Pickaxe. This is so you can adjust for slower Picks or better ores. It is recommended to keep this at 1.
grapkey = e ; This is the key to grapple. Change this to whatever your grapple key is.
=::
if(wait >0)
wait-=.5
pwait := 20 - wait
TrayTip, "Speed Changed!",%pwait% ; Displays a message that states the speed of the pickaxe.
return
-::
if(wait <20)
wait+=.5
pwait := 20 - wait
TrayTip, "Speed Changed!", %pwait%
return
Insert::Suspend ; Suspends hotkeys
return
R:: ;;;;; This hotkey is used for building bridges.
Click down ;;;;; Point at the ground in front of you (or empty space next to a block)
Loop ;;;;; and hold this key down.
{ ;;;;; This will use the grappling hook to pull you forward
if not GetKeyState("R", "P") ;;;;; causing you to place blocks where your mouse is.
Break
Send {%grapkey% Down}
Sleep, 1
Send {%grapkey% Up}
Sleep, 1
}
Click
Return
$Left::
Send {A Down}
BlockInput MouseMove
Click down
Loop
{
If not GetKeyState("Left", "P")
break
MouseMove, 0, 15, wait, R
MouseMove, 0, 15, wait, R
MouseMove, 0, -15, wait, R
MouseMove, 0, -15, wait, R
}
Send {A Up}
BlockInput MouseMoveOff
Click
Return
$Right::
Send {D Down}
BlockInput MouseMove
Click down
Loop
{
If not GetKeyState("Right", "P")
break
MouseMove, 0, 15, wait, R
MouseMove, 0, 15, wait, R
MouseMove, 0, -15, wait, R
MouseMove, 0, -15, wait, R
}
Send {D Up}
BlockInput MouseMoveOff
Click
Return
$Down::
BlockInput MouseMove
Click down
Loop
{
If not GetKeyState("Down", "P")
break
MouseMove, 15, 0, 0, R
MouseMove, -15, 0, 0, R
}
BlockInput MouseMoveOff
Click
Return
$Up::
count=0
Send {Space down}
BlockInput MouseMove
Click down
Loop
{
count++
if not GetKeyState("Up", "P")
break
MouseMove, 15, 0, wait-1, R
if (count==70){
Send {%grapkey% Down}
Sleep, 100
Send {%grapkey% Up}
count=0
Sleep, 100
}
MouseMove, -15, 0, wait-1, R
}
Send {Space up}
BlockInput MouseMoveOff
Click
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment