This script macros mana missile and heal self. Start with your staff equipped and sheathed.
~ Toggles pause and DEL exits the script.
EDIT- Updated to include launch at the users' discretion.
~ Toggles pause and DEL exits the script.
EDIT- Updated to include launch at the users' discretion.
Code:
Dim $a, $b, $c, $d, $e, $f
Global $Paused
HotKeySet("`", "TogglePause")
HotKeySet("{DEL}", "Terminate")
$d = InputBox( "Question", "Hotbar number for Mana Missile?", "1" )
$e = InputBox( "Question", "Hotbar number for Heal Self?", "3" )
$f = InputBox( "Question", "Hotbar number for Rest?", "0" )
$b = InputBox( "Question", "How Many Mana Missiles?", "18" )
$c = InputBox( "Question", "How Long to Rest?", "155000" )
$g = InputBox( "Question", "Are you using Launch? 1 for yes, 2 for no.", "1" )
If $g = 1 Then
$h = InputBox( "Question", "Hotbar number for Launch?", "4" )
MsgBox( 0, "Alert", "Click OK then Alt + Tab into Darkfall to start the script." )
WinWaitActive( "Darkfall Online" )
While 1
$a = 0
Sleep ( 2000 )
Send( "R" )
Sleep ( 500 )
Call( "Launch" )
Call( "HealSelf" )
Do
Call( "ManaMissile" )
$a = $a + 1
Until $a = $b
Sleep( 500 )
Call( "Launch" )
Call( "HealSelf" )
Sleep( 2500 )
Call( "Rest" )
WEnd
ElseIf $g = 2 Then
MsgBox( 0, "Alert", "Click OK then Alt + Tab into Darkfall to start the script." )
WinWaitActive( "Darkfall Online" )
While 1
$a = 0
Sleep ( 2000 )
Send( "R" )
Sleep ( 500 )
Call( "HealSelf" )
Do
Call( "ManaMissile" )
$a = $a + 1
Until $a = $b
Sleep( 500 )
Call( "HealSelf" )
Sleep( 2500 )
Call( "Rest" )
WEnd
Else
MsgBox( 0, "Alert", "You must choose yes or no for the launch question." )
Exit
EndIf
Func HealSelf( )
Sleep( 500 )
Send( $e )
Sleep( 500 )
MouseClick( "Left" )
Sleep( 2400 )
EndFunc
Func ManaMissile( )
Sleep( 500 )
Send( $d )
Sleep( 500 )
MouseClick( "Left" )
Sleep( 1100 )
EndFunc
Func Rest( )
Sleep( 2000 )
Send( "R" )
Sleep( 500 )
Send( $f )
Sleep( 500 )
MouseClick( "Left" )
Sleep( $c )
Send( "{SPACE}" )
Sleep( 500 )
EndFunc
Func Launch( )
Sleep( 1000 )
Send( $h )
Sleep( 500 )
MouseClick( "Left" )
Sleep( 6000 )
EndFunc
Func TogglePause( )
$Paused = NOT $Paused
While $Paused
sleep(100)
ToolTip('Script is "Paused"',0,0)
WEnd
ToolTip("")
EndFunc
Func Terminate( )
Exit 0
EndFunc