Hero Script - Basic Witch Doctor

This script was a little more complex. It needed to allow the placement of Witch Doctors spells upon certain characters. At the moment it is more like an instant kill / high damage 'ultimate'. First, it lets you place maledict, then has Paralyzing Cast ready for use. Once paralyzing cast is used, your top right inventory slot is used (if dagon then has it ready to click). Lastly, if dagon was used, place witch doctors ult there, otherwise left-click and his ultimate will be used at that location.

The exe to run the script here

Will work with the native DotA shortcutkeys.


Hero Script - Basic Witch Doctor

#ifWinActive ahk_class Warcraft III

#SingleInstance force

#Persistent

;;Code for Witch Doctor to do maledict, dagon, stun and his ultimate.
;;NOTE: Dagon must be in the top right inventory slot. You must click upon a person
;; to use.
CapsLock::
SetKeyDelay, 200, -1, -1/-1
SendPlay, E
Input, LastKey, L1 V
If (A_ThisHotkey = "*$Lbutton" OR A_ThisHotkey = "*$Lbutton Up")
{
sleep 100
SendPlay, C
Input, LastKey, L1 V
if (A_ThisHotkey = "*$Lbutton" OR A_ThisHotkey = "*$Lbutton Up")
{
sleep 100
SendPlay, {Numpad7}
Input, LastKey, L1 V
if (A_ThisHotkey = "*$Lbutton" OR A_ThisHotkey = "*$Lbutton Up")
{
Sleep 100
SendPlay, {F1}D{Lbutton}
}
}
}
;SendInput, {Enter} %A_ThisHotkey% {Enter}
return

*$Lbutton::
SendInput, {Lbutton Down}
Input
Return

*$Rbutton::
SendInput, {Rbutton Down}
Input
return

*$Lbutton Up::SendInput, {Lbutton Up}
*$Rbutton Up::SendInput, {Rbutton Up}