Actually you don't have to change anything, but expect errors if you call it from an event (Join, Text, Sockopen etc).
If you do have an error, and want to get around this, instead of -
On *:event:{
command
sleep ...
command
}
Use -
On *:event:{
.signal myscript [color:green]parameters ($nick, $chan, $1- etc)[/color]
}
On *:signal:myscript:{
command
sleep ...
command
}
The /sleep command itself should work for you. try the example included in the code. If it doesn't work, you'll probably have to upgrade your Windows Script Host. get it
here