Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;/////////////////////////////////////////////////////////////////////////
- ;//Variables//////////////////////////////////////////////////////////////
- ;/////////////////////////////////////////////////////////////////////////
- ;/////////////////////////////////////////////////////////////////////////
- ;//WirlWind Variables/////////////////////////////////////////////////////
- ;/////////////////////////////////////////////////////////////////////////
- GlobalWhirlwindReady = True
- Whirlwind1Ready = True
- Whirlwind2Ready = True
- Whirlwind1Timer := -10000
- Whirlwind2Timer := -12000
- Whirlwind1GlobalTimer := -5000
- Whirlwind2GlobalTimer := -6000
- ;/////////////////////////////////////////////////////////////////////////
- ;//Ray Variables//////////////////////////////////////////////////////////
- ;/////////////////////////////////////////////////////////////////////////
- GlobalReady = True
- UnholyReady = True
- ImpaleReady = True
- PungentReady = True
- DragonReady = True
- InsectReady = True
- LightningReady = True
- FrostReady = True
- PotReady = True
- GlobalTimer := -1500
- UnholyTimer := -14000
- ImpaleTimer := -6100
- DragonTimer := -14000
- PungentTimer := -16100
- InsectTimer := -13100
- LightningTimer := -9000
- FrostTimer := -9000
- PotTimer := -63000
- SleepTimer := 25
- ;/////////////////////////////////////////////////////////////////////////
- ;//Ray Labels/////////////////////////////////////////////////////////////
- ;/////////////////////////////////////////////////////////////////////////
- Global:
- {
- GlobalReady = True
- Return
- }
- Impale:
- {
- ImpaleReady = True
- Return
- }
- Pungent:
- {
- PungentReady = True
- Return
- }
- Dragon:
- {
- DragonReady = True
- Return
- }
- Insect:
- {
- InsectReady = True
- Return
- }
- Lightning:
- {
- LightningReady = True
- Return
- }
- Unholy:
- {
- UnholyReady = True
- Return
- }
- Frost:
- {
- FrostReady = True
- Return
- }
- ;//////////////////////////////////////////////////
- ;//Potion Audio Timer//////////////////////////////
- ;//////////////////////////////////////////////////
- +c::
- {
- If PotReady = True
- {
- Send !+c
- PotReady = False
- SetTimer, Pot, %PotTimer%
- Return
- }
- Return
- }
- +v::
- {
- If PotReady = True
- {
- Send !+v
- PotReady = False
- SetTimer, Pot, %PotTimer%
- Return
- }
- Return
- }
- +b::
- {
- If PotReady = True
- {
- Send !+b
- PotReady = False
- SetTimer, Pot, %PotTimer%
- Return
- }
- Return
- }
- Pot:
- {
- PotReady = True
- SoundPlay, C:\Program Files (x86)\Darkfall US\potion.wma
- Return
- }
- ;//////////////////////////////////////////////////
- ;//AutoHotKey Functions////////////////////////////
- ;//////////////////////////////////////////////////
- pause::Suspend
- #ifwinactive Darkfall Online
- ;//////////////////////////////////////////////////
- ;///Drink Macro////////////////////////////////////
- ;//////////////////////////////////////////////////
- Lbutton::
- {
- SendEvent {PgDn}
- SendEvent {LButton Down}
- KeyWait, LButton, U
- SendEvent {Lbutton Up}
- return
- }
- ;//////////////////////////////////////////////////
- ;//Whirl Wind Button Mash//////////////////////////
- ;//////////////////////////////////////////////////
- +q::
- {
- send !+y
- send !+u
- send !+i
- send !+o
- ;send !q
- return
- }
- ;//////////////////////////////////////////////////
- ;//Sword+Board/////////////////////////////////////
- ;//////////////////////////////////////////////////
- f4::
- {
- send {f9}
- send {u}
- sleep 490
- send {f5}
- send {u}
- return
- }
- ;//////////////////////////////////////////////////
- ;//Parrying + Drinking/////////////////////////////
- ;//////////////////////////////////////////////////
- v::
- {
- SendEvent {end Down}
- SendEvent {PgDn}
- KeyWait, v, U
- SendEvent {end Up}
- return
- }
- ;//////////////////////////////////////////////////
- ;//Disabling Blow Button Mash//////////////////////
- ;//////////////////////////////////////////////////
- !e::
- {
- send !+h
- send !+j
- send !+k
- send !+l
- send !y
- return
- }
- ;//////////////////////////////////////////////////
- ;//Knockback Button Mash///////////////////////////
- ;//////////////////////////////////////////////////
- +x::
- {
- send !x
- send !v
- send !b
- return
- }
- ;//////////////////////////////////////////////////
- ;//Power Attack Button Mash////////////////////////
- ;//////////////////////////////////////////////////
- +e::
- {
- send !+n
- send !+m
- send !+,
- ;send !t
- return
- }
- ;//////////////////////////////////////////////////
- ;//Rage////////////////////////////////////////////
- ;//////////////////////////////////////////////////
- +f::
- {
- send !+{f12}
- return
- }
- ;//////////////////////////////////////////////////
- ;//Rotate Melee Weapons////////////////////////////
- ;//////////////////////////////////////////////////
- +g::
- {
- SendEvent {F8}
- return
- }
- ;//////////////////////////////////////////////////
- ;////Wirl Wind/////////////////////////////////////
- ;//////////////////////////////////////////////////
- ;!Q:: ;My Auto WW
- ;{
- ;If GlobalWhirlwindReady = True
- ;{
- ;If Whirlwind1Ready = True
- ;{
- ;Send q; My Greatsword
- ;Sleep 325
- ;Send !+.; WW hotkey
- ;Sleep 25
- ;KeyWait, pgup, D
- ;Click
- ;Sleep 1000
- ;send t
- ;Whirlwind1Ready = False
- ;SetTimer, Whirlwind1, %Whirlwind1Timer%
- ;GlobalWhirlwindReady = False
- ;If Whirlwind2Ready = False
- ;{
- ;ModifiedTimer := Whirlwind1GlobalTimer
- ;SetTimer, GlobalWhirlwind, %ModifiedTimer%
- ;}
- ;Else if Whirlwind2Ready = True
- ;{
- ;SetTimer, GlobalWhirlwind, %Whirlwind1GlobalTimer%
- ;}
- ;Return
- ;}
- ;If Whirlwind2Ready = True
- ;{
- ;Send +g ; My Greataxe
- ;Sleep 325
- ;Send !+.; WW hotkey
- ;Sleep 25
- ;KeyWait, LButton, D
- ;Click
- ;Sleep 1000
- ;send t
- ;Whirlwind2Ready = False
- ;SetTimer, Whirlwind2, %Whirlwind2Timer%
- ;msgbox %Whirlwind2Timer%
- ;GlobalWhirlwindReady = False
- ;If Whirlwind1Ready = False
- ;{
- ;SetTimer, GlobalWhirlwind, %Whirlwind2GlobalTimer%
- ;}
- ;Else if whirlwind1Ready = True
- ;{
- ;SetTimer, GlobalWhirlwind, %Whirlwind2GlobalTimer%
- ;}
- ;Return
- ;}
- ;Return
- ;}
- ;Return
- ;}
- ;///////////////////////////////////////////////////
- ;//Wirl Wind Cool Downs/////////////////////////////
- ;///////////////////////////////////////////////////
- Whirlwind1:
- {
- Whirlwind1Ready = True
- If GlobalWhirlwindReady = True
- {
- SoundPlay, C:\Program Files (x86)\Darkfall US\WW1.wma ;Says Whirlwind 1 ready
- Return
- }
- Return
- }
- Whirlwind2:
- {
- Whirlwind2Ready = True
- If GlobalWhirlwindReady = True
- {
- SoundPlay, C:\Program Files (x86)\Darkfall US\WW2.wma ;Says Whirlwind 2 ready
- Return
- }
- Return
- }
- GlobalWhirlwind:
- {
- GlobalWhirlwindReady = True
- SoundPlay, C:\Program Files (x86)\Darkfall US\GWW.wma ;Says Next Whirlwind
- Return
- }
- ;///////////////////////////////////////////////////////////
- ;//Rays/////////////////////////////////////////////////////
- ;///////////////////////////////////////////////////////////
- ;//Currently 1 ray incorporated and Strong Staff equip//////
- ;///////////////////////////////////////////////////////////
- RButton::
- SendEvent {o}
- SendEvent {o}
- SendEvent {o}
- SendEvent {o}
- SendEvent {F6}
- SendEvent {o}
- SendEvent {o}
- SendEvent {o}
- return
- RButton Up::
- Send !n
- Click
- Return
- #ifwinactive Darkfall Online
- {
- If GlobalReady = True
- {
- ;;;;;;;;1st Priority;;;;;;;;;;;
- If DragonReady = True
- {
- DragonReady = False
- GlobalReady = False
- SetTimer, Dragon, %DragonTimer%
- SetTimer, Global, %GlobalTimer%
- Send !n ;Dragon hotkey
- Sleep, %SleepTimer%
- Click
- Return
- }
- ;;;;;;;;;2nd Priority;;;;;;;;;;;
- If ImpaleReady = True
- {
- ImpaleReady = False
- GlobalReady = False
- SetTimer, Impale, %ImpaleTimer%
- SetTimer, Global, %GlobalTimer%
- Send !b ;Impale hotkey
- Sleep, %SleepTimer%
- Click
- Return
- }
- ;;;;;;;;;3rd Priority;;;;;;;;;
- If InsectReady = True
- {
- InsectReady = False
- GlobalReady = False
- SetTimer, Insect, %InsectTimer%
- SetTimer, Global, %GlobalTimer%
- Send !h ;Insect hotkey
- Sleep, %SleepTimer%
- Click
- Return
- }
- ;;;;;;;;;4th Priority;;;;;;;;;
- if UnholyReady = True
- {
- UnholyReady = False
- GlobalReady = False
- SetTimer, Unholy, %UnholyTimer%
- SetTimer, Global, %GlobalTimer%
- Send !v ;Unholy hotkey
- Sleep, %SleepTimer%
- Click
- Return
- }
- ;;;;;;;;5th Priority;;;;;;;;;
- If PungentReady = True
- {
- PungentReady = False
- GlobalReady = False
- SetTimer, Pungent, %PungentTimer%
- SetTimer, Global, %GlobalTimer%
- Send !x ;Pungent hotkey
- Sleep, %SleepTimer%
- Click
- Return
- }
- ;;;;;;;;6th Priority;;;;;;;;;
- If LightningReady = True
- {
- LightningReady = False
- GlobalReady = False
- SetTimer, Lightning, %LightningTimer%
- SetTimer, Global, %GlobalTimer%
- Send !a ;Lightning hotkey
- Sleep, %SleepTimer%
- Click
- Return
- }
- ;;;;;;;;7th Priority;;;;;;;;;
- If FrostReady = True
- {
- FrostReady = False
- GlobalReady = False
- SetTimer, Frost, %FrostTimer%
- SetTimer, Global, %GlobalTimer%
- Send !b ;Frost hotkey
- Sleep, %SleepTimer%
- Click
- Return
- }
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
- Return
- }
- Return
- }
- ;//////////////////////////////////////////////////
- ;//Run+Sprint//////////////////////////////////////
- ;//////////////////////////////////////////////////
- *w:: ; w is the key I use to run forward, most people use w. If you use w, change all the e's in this to w.
- #ifwinactive Darkfall Online
- send {Ins down} ; Insert is my run forward key in Darkfall.
- send {Del down} ; Delete is my sprint key in Darkfall.
- KeyWait, w
- send {Ins up} ; Stop Moving Forward
- send {Del up} ; Stop Sprinting
- Return
- ;//////////////////////////////////////////////////
- ;//Auto Loot//////////////////////////////////////
- ;//////////////////////////////////////////////////
- IniFile := "C:\loot.txt"
- FileGetSize, size, %IniFile%
- if (size = "") {
- MsgBox Setting up
- IniWrite, 1300, %IniFile%, Loot, xdest ; --- destination x pos
- IniWrite, 700, %IniFile%, Loot, ydest ; --- destination y pos
- } else {
- IniRead, xdest, %IniFile%, Loot, xdest ; --- destination x pos
- IniRead, ydest, %IniFile%, Loot, ydest ; --- destination y pos
- }
- {
- CoordMode, Pixel
- $!Lbutton:: ;quick loot -------------------------
- MouseGetPos, x1, y1
- MouseClickDrag, left, x1, y1, xdest, ydest, 0 ;0 is mouse speed, 0 is instant
- MouseMove, x1, y1, 0 ;0 is mouse speed, 0 is instant
- Return
- }
- $!Rbutton:: ;loot destination ------------------------->
- MouseGetPos, xdest, ydest
- IniWrite, %xdest%, %IniFile%, Loot, xdest
- IniWrite, %ydest%, %IniFile%, Loot, ydest
- Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement