Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1.;WyLd Ray Script
- 2.;Special thanks to nacitar sevaht for helping
- 3.#IfWinActive, Darkfall Online
- 4.
- 5.;Binds are set here
- 6.k_1 = {\} ;Impale
- 7.k_2 = {]} ;Unholy Caress
- 8.k_3 = {[} ;Dragon's Breath
- 9.k_4 = {p} ;Frost Bite
- 10.k_5 = {o} ;Insect Swarm
- 11.k_6 = {i} ;Lightning Bolt
- 12.;Cooldowns are set here
- 13.cd_1 = 6500 ;Impale
- 14.cd_2 = 14000 ;Unholy Caress
- 15.cd_3 = 14000 ;Dragon's Breath
- 16.cd_4 = 9500 ;Frost Bite
- 17.cd_5 = 13000 ;Insect Swarm
- 18.cd_6 = 9000 ;Lightning Bolt
- 19.;Ray priority is set here
- 20.p_1 = 1 ;Impale
- 21.p_2 = 4 ;Frost Bite
- 22.p_3 = 3 ;Dragon's Breath
- 23.p_4 = 2 ;Unholy Caress
- 24.p_5 = 5 ;Insect Swarm
- 25.p_6 = 6 ;Lightning Bolt
- 26.;Initializes ray availability array to 1 (off cooldown)
- 27.While A_Index <= 6
- 28.{
- 29. a_%A_Index% = 1
- 30.}
- 31.While A_Index <= 6
- 32.{
- 33. a_f_%A_Index% = 1
- 34.}
- 35.r::
- 36.cur_ray := RayCheck(cur_ray)
- 37.KeySend(cur_ray)
- 38.Hotkey , ~LButton , TimerStart , On
- 39.Return
- 40.TimerStart:
- 41.Hotkey , ~LButton , TimerStart , Off
- 42.TimerCreate(cur_ray)
- 43.Return
- 44.;Subroutine group to reset ray cds
- 45.1:
- 46.2:
- 47.3:
- 48.4:
- 49.5:
- 50.6:
- 51.a_%A_ThisLabel% = 1
- 52.Return
- 53.
- 54./*Assigns the value of cur_ray to the first available
- 55.ray according to priority
- 56.*/
- 57.RayCheck(cur_ray)
- 58.{
- 59. global
- 60.
- 61. /*Initiates cur_ray to your highest priority ray
- 62. in the case of all rays being off cooldown
- 63. */
- 64. cur_ray := p_1
- 65. While A_Index <= 6
- 66. {
- 67. ray_number := p_%A_Index%
- 68. if (a_%ray_number% = 1)
- 69. {
- 70. cur_ray := ray_number
- 71. Break
- 72. }
- 73. }
- 74. Return cur_ray
- 75.}
- 76.;Sends the key of the current ray
- 77.KeySend(cur_ray)
- 78.{
- 79. global
- 80.
- 81. SendInput , % k_%cur_ray%
- 82. Return
- 83.}
- 84.;Creates a timer to reset the ray cooldown
- 85.TimerCreate(cur_ray)
- 86.{
- 87. global
- 88.
- 89. a_%cur_ray% = 0
- 90. SetTimer , %cur_ray% , % -cd_%cur_ray%
- 91. Return
- 92.}
- 93.Del::Suspend
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement