#Warn
#NoEnv
SendMode Input
state := "manual" ; "manual" | "walk"
#IfWinActive Gothic II - 2.6 (fix)
f11::
Suspend
Return
~w::
if (state == "walk") {
state := "manual"
}
Return
; Автобег вперед с ускорением при нажатии Х
x::
if (state == "walk") {
state := "manual"
Send {w Up}
Sleep, 50
Send {z Down}
Sleep, 50
Send {z Up}
} else {
state := "walk"
Send {w Down}
Sleep, 50
Send {z Down}
Sleep, 50
Send {z Up}
}
Return
; пропуск диалогов пока удерживаешь RCtrl
RCtrl::
AutoEsc()
SetTimer, AutoEsc, 200
KeyWait, RCtrl
SetTimer, AutoEsc, off
Return
; автоатака спелами пока удерживаешь F
f::
AutoAttack()
SetTimer, AutoAttack, 200
KeyWait, f
SetTimer, AutoAttack, off
Return
; Телепортация при нажатии -
-::
Send {3 down}
Sleep, 50
Send {Tab down}
Sleep, 50
Send {Tab up}
Sleep, 50
Send {3 up}
Sleep, 500
Click, Down
Sleep, 100
Click, Up
Return
AutoAttack() {
Click, Down
Sleep, 50
Click, Up
Return
}
AutoEsc() {
Send, {Esc Down}
Sleep, 50
Send, {Esc Up}
Return
}
#IfWinActive
^f12::Reload