I have script that i can't get it to work.
My script need to do something like this :
1.Send keys
2.Cast is time for sleep
3.Now i need to setup skills to make cooldown, not cast but i need to set 1 more variable like $cooldown[7] = [23333,30000,............]
So Cast skills, wait for cooldown, when skill is ready cast it again and wait to cooldown again.
It's for bot for mmo games if that will be simpler for help.
Code:
Global $keys[7] = [3,4,5,6,7,8,9], $run = False
Global $cast[7] = [2000,1400,2999,1400,2300,3245,3040]
While 1
Sleep(100)
WEnd
Func _startSend()
While $run
For $i = 0 To UBound($keys)-1
For $a = 0 To UBound($cast)-1
Send($keys[$i]) ; send keys
Sleep($cast[$a]) ; delay between send
; when fire up all skills wait for cooldown
;fire them again
Next
Next
WEnd
EndFunc






