Wednesday, August 6, 2008

AHK - World of Warcraft - Shaman ES/SS spam

This is a script that will make you spam Earth Shock/Stormstrike repeatedly when you press the F5 key, until the F5 key is pressed again. To use, set earth shock to hotkey 2 and stormstrike to hotkey 1.
GoGoShammySpam = 1
WinWaitActive, Untitled
Time := A_TickCount
Loop {
If (GoGoShammySpam) {
If (SendDelay("1",10000)) ; Stormstrike
sleep, 1500 ; GCD
If (SendDelay("2",6000)) ; Earth Shock
sleep, 1500 ; GCD
}
}

f5::GoGoShammySpam:=!GoGoShammySpam

SendDelay(key,delay) {
Global
If (lastSent_%key% = "" || lastSent_%key% < A_TickCount - delay)
{
Send %key%
lastSent_%key% := A_TickCount
Return 1
}
Return 0
}

*Note - The use of this script violates World of Warcraft's Terms of Service, and can get you banned. It is meant as an example. I do not recommend or advocate the use of this script on live servers. If you are stupid enough to use it, I take no responsibility for the consequences.

No comments: