First script that I wrote, I took another script and added several things, so there may be some useless things in there that I didn't wanna mess/bother with.
This is to afk train Chain Mastery on Barrier spikes.
I've only tested this on my computer, i'm not sure if any other problems would occur on another programs or network due to the timing sequence thingies that i've put in this to make it efficient(?)
I'm r5 Chain Mastery at the moment, not sure if this would effect on the timing of it all.
There are some issues where the timing may be off due to something or something, but it should shortly put itself back onto track.
This also includes respite to stop stamina from depleting.
To get this working download and install 'autoit', create a new script, copy the code in the new script, then run the script next to some Provocation barrier spikes, it should automatically target and attack the Spikes.
Code:
Code:
; Size of window
; Controls for this program
HotKeySet("{p}","TogglePause")
HotKeySet("{Pause}", "TogglePause")
HotKeySet("{ESC}", "Terminate")
MsgBox(0,"Chain Mastery Training","Author: Ninjastickman" & @CRLF & "Version: v1" & @CRLF & @CRLF & "Press OK to begin")
; Program starts here
WinActivate("Mabinogi")
WinWaitActive("Mabinogi")
;Main loop
$counter=1
While ($counter=1)
;Part 1 Activating Combat Mode
Send("{CTRLDOWN}")
;Delay 1 Second
Sleep(1000)
;Part 2 Activates Combat Mode
Mouseclick("left")
;Delay 1 Second
Sleep(1000)
;Part 3 Deactivates Ctrl Key
Send("{CTRLUP}")
;Delay 1 Second
Sleep(1000)
; Activates Focused Fist
Send("{2}")
;Delay 1 Second
Sleep(1000)
; Activates Charging Strikes
Send("{1}")
; Delays 6 Seconds
SLeep(6000)
; Activates Spinning Uppercut
Send("{F1}")
; Delays 7 Seconds
Sleep(7000)
;Activates Drop Kick
Send("{F1}")
;Delay 6 Seconds
Sleep(6000)
;Activates Focused Fist
Send("{2}")
;Part 1 Activating Combat Mode
Send("{CTRLDOWN}")
;Delay 1 Second
Sleep(1000)
;Part 2 Activates Combat Mode
Mouseclick("left")
;Delay 1 Second
Sleep(1000)
;Part 3 Deactivates Ctrl Key
Send("{CTRLUP}")
;Delay 1 Second
Sleep(1000)
;Activates Charging Strike
Send("{1}")
;No Delay
Sleep(1000)
;Activates Somersault Kick
Send("{F2}")
;No Delay
Sleep(1000)
;Time till Activate Combat Mode
Sleep(3000)
;Activates Respite (Stam)
Send("{8}")
;Part 1 Activating Combat Mode
Send("{CTRLDOWN}")
;Delay 1 Second
Sleep(1000)
;Part 2 Activates Combat Mode
Mouseclick("left")
;Delay 1 Second
Sleep(1000)
;Part 3 Deactivates Ctrl Key
Send("{CTRLUP}")
;Delay till Next Focused Fist
Sleep(9000)
Wend
Edit: At line 104, you may want to change that to what respite is hotkey'd to. Mine is at 8 and that's what I've set it to.
Edit2: You will also need to have Focused Fist on "2" and Charging strike on "1" or change it.