This was done in ACTools:
(!empty($user->lang['CODE'])) ? $user->lang['CODE'] : ucwords(strtolower(str_replace('_', ' ', 'CODE'))):
//Combat Trainer
// Simple script to unsheath weapon hit 10 times and rest
// Instructions:
// 1) Set Rest to Slot 0 on your hotbar
// 2) Start with your weapon equipt but leave it sheathed
// This line is necessary to select the proper window
SetActiveWindow Darkfall Online
Constants
HitDelay=2000
RestDelay=160000
End
/////////////////////////////////////////
Procedure EquipWeapon
Delay 1000
Keys R
Delay 2 sec
End
///////////////////////////////////////////
Procedure Hit
Loop 10
LEFTCLICK
Delay $HitDelay
End
End
////////////////////////////////////////
Procedure Rest
Delay 1 sec
Keys R
Delay 1 sec
Keys 0
Delay 2 sec
LEFTCLICK
Delay $RestDelay
Keys W
Delay 2 sec
End
//Start Macro
Loop 100000
Call EquipWeapon
Call Hit
Call Rest
End