Advertisement
Guest User

Untitled

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