Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; This is an improved version of the DFOWeaponSwitch.ahk macro. With this macro
- ; it directly accesses the weapon and accessory for a weapon set without first
- ; setting that hotbar. It then sets the hotbar after the fact. So, instead of
- ; setting the new hotbar, THEN selecting the weapon and accessory, this just
- ; directly selects the weapon, accessory, and THEN the new hotbar. This change
- ; was made to provide a slight speed improvement in getting that new weapon ready.
- ;
- ; Its still timer based which means you can interrupt the current action and do
- ; something else.
- ;
- ; Also, CTRL+ALT+r is set to reload the script in case you want to tweak it while
- ; playing.
- ;
- ; SETUP
- ; ==============================================================================
- ; - modify DFO client input bindings as follows (in GUI mode, click Options,
- ; then click Input Bindings, then select the GUI tab)
- ; - change hotbars: CTRL+0, CTRL+1, ...
- ; - use Nth hotbar slot 0: ALT+N
- ; - use Nth hotbar slot 1: CTRL+ALT+N
- ; - do the above two for 0...9, so ALT+3 selects hotbar 3, slot 0 and
- ; CTRL+ALT+3 selects hotbar 3, slot 1
- ; - in each hotbar set a weapon in slot 0 and an accessory item in slot 1
- ; - when selecting a weapon set, the weapon and accessory will be activated
- ; - examples
- ;
- ; Weapon (slot 0) Accessory (slot 1)
- ; =============== ==================
- ; staff self heal
- ; 1H sword shield
- ; 2H sword power attack
- ; bow <nothing>
- ;
- ; USAGE
- ; ==============================================================================
- ; - use F1, F2, ..., F10 to select weapon set 1, 2, ... 0 and then choose
- ; the weapon and accessory for that hotbar
- ; - alternatively, use the mouse-wheel to switch to the next/prev weapon set
- ; - you might want to tweak the delay values below used between selecting the
- ; weapon and accessory and between selecting the accessory and the new hotbar.
- ; if you find the accessory not activating (shield for example), try increasing
- ; that delay. this is likely effected by the speed of your connection. if you
- ; want you could also try reducing it and see how low you can get it and still
- ; have it reliably work.
- #IfWinActive, Darkfall Online
- #NoEnv
- SendMode Input
- SetWorkingDir %A_ScriptDir%
- End::Pause
- Home::Suspend
- F2::
- send, {numpad8} ;BOUND TO sword
- sleep, 500
- send, {numpad9} ;BOUND TO shield
- ; Burst keys
- +Tab::
- Send, {{}
- Send, {}}
- Send, .
- Send, |
- return
- Tab::
- Send, {{}
- Send, {}}
- send, .
- Send, |
- return
- H::
- Send, ?
- Send, "
- Send, '
- Send, \
- +H::
- Send, ?
- Send, "
- Send, '
- Send, \
- curWeaponSet := 1
- CancelPendingTasks:
- SetTimer, SelectAccessory, off
- SetTimer, SelectHotbar, off
- Return
- SelectWeaponSet:
- GoSub, CancelPendingTasks
- SendInput, !%curWeaponSet%
- SetTimer, SelectAccessory, -700 ; delay between picking weapon and accessory
- Return
- SelectAccessory:
- SendInput, ^!%curWeaponSet%
- SetTimer, SelectHotbar, -50 ; delay between picking accessory and hotbar
- Return
- SelectHotbar:
- SendInput, ^%curWeaponSet%
- Return
- `::
- {
- curWeaponSet := 1
- GoSub, SelectWeaponSet
- Sleep, 500
- Send, l
- Return
- }
- +`::
- {
- curWeaponSet := 1
- GoSub, SelectWeaponSet
- Sleep, 500
- Send, l
- Return
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement