i had left over bone from 1-25, and intend on using Heal Other past 50, and frailty is good to spam inbetween those 2.
Thanks to Keraam, the majority of this code is edited from his own, and it is much appreciated!
differences: spells ofcorse, which bar is used [defaulted to 2], for some reason Send {R} wasnt working for me, so i just made a simple method for sheathing, resting time is different, shoulda made it a changing variable but w/e lol
it seems a tad more object oriented, but by no means OO-ified. honestly didnt feel the need to do it, but if i get the time, i may, i enjoy coding and im not great with scripting languages, could always use more practice
Code:
; ; AutoHotkey Version: 1.x ; Language: English ; Author: cslotterback [special thanks to Keraam, based mainly off his code] ; ; Script Function: Does in order: space[stands up], unsheaths weapon, rend, heal other, ; frailty, ho, f, ho, f, rend, ho, f, ho, sheaths weapon, rests, loops. ; ; NOTE: this is for spells on BAR2 ; #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. InputBox, rend, Rend, Hotbar number for Rend?,,,,,,,,1 InputBox, healOther, Heal Other, Hotbar number for Heal Other?,,,,,,,,2 InputBox, frailty, Frailty, Hotbar number for Frailty?,,,,,,,,3 InputBox, rest, Rest, Hotbar number for Rest?,,,,,,,,5 InputBox, RendNum, RendQuantity, How many Rends?,,,,,,,,2 InputBox, HealOtherNum, HealOtherQuantity, How many HealOther?,,,,,,,,5 InputBox, FrailtyNum, FrailtyQuantity, How many Frailties?,,,,,,,,4 InputBox, restTime, RestTime, How long to Rest?,,,,,,,,90000 InputBox, sheath, Sheath, button to Sheath?,,,,,,,,r InputBox, barNumber, BarNumber, Which spell bar is used?,,,,,,,,2 MsgBox, "Click OK then Alt + Tab into Darkfall to start the script." ;SetKeyDelay, 10, 10 WinWaitActive, Darkfall Online IfWinActive, Darkfall Online { Loop { Send +barNumber Sleep, 2000 Sheath() Sleep, 500 Rend() HealOther() Frailty() HealOther() Frailty() HealOther() Frailty() Rend() HealOther() Frailty() HealOther() Rest() Sleep, 5000 } } End::Pause Delete::ExitApp Sheath() { global sheath Send %sheath% } HealOther() { global healOther Sleep, 1000 Send %healOther% Sleep, 500 Click Sleep, 1500 } Rend() { global rend Sleep, 500 Send %rend% Sleep, 500 Click Sleep, 2200 } Frailty() { global frailty Sleep, 500 Send %frailty% Sleep, 500 Click Sleep, 1500 } Rest() { global rest global restTime Sleep, 2000 Sheath() Sleep, 500 Send %rest% Sleep, 500 Click Sleep, %restTime% Send {SPACE} Sleep, 1000 }