Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; #FUNCTION# ====================================================================================================================
- ; Name...........: _castAreaInstantSpell
- ; Description ...: Swaps bars to perform an instant spell and swaps back.
- ; Parameters ....: $hotKeySwap - The in game keybinding of weapon swap.
- ; $hotKeyBuff - The in game keybinding of the spell.
- ; ===============================================================================================================================
- Func _castAreaInstantSpell($hotKeySpell)
- ; Initialising variables
- Local $timer = TimerInit()
- Local $state = 1
- If $fStateCritical = True Then
- ; Critical state start
- $fStateCritical = False
- While TimerDiff($timer) < 800
- If TimerDiff($timer) < 2 and $state = 1 Then
- _controlSend($hotKeySpell)
- $state = 2
- EndIf
- If TimerDiff($timer) < 100 and $state = 2 Then
- _controlSend($hotKeySpell)
- $state = 3
- EndIf
- Sleep(10)
- WEnd
- ; Reset Variables
- $timer = 0
- $state = 1
- ; Critical state end
- $fStateCritical = True
- EndIf
- EndFunc ;==>_castAreaInstantSpell
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement