Guest User

Untitled

a guest
Jul 23rd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. #IfWinActive, Darkfall Online
  2. #NoEnv
  3. ;THIS IS A STAND ALONE SCRIPT DO NOT COPY AND PASTE IT INTO YOUR CURRENT SCRIPT
  4.  
  5. ;Set the number of rays you have here
  6. num_rays = 5
  7.  
  8. ;Set your binds here
  9. /*Regarding modifiers: Shift = +, Ctrl = ^, Alt = !,
  10. > < denotes right and left keys respectively.
  11. Consult the help file for further information
  12. */
  13. k_1 = {SC037} ;Impale
  14. k_2 = {F1} ;Unholy Caress
  15. k_3 = {F2} ;Dragon's Breath
  16. k_4 = {F3} ;Frost Bite
  17. k_5 = {F4} ;Insect Swarm
  18.  
  19. ;Tweak cooldowns here
  20. cd_1 = 6000 ;Impale
  21. cd_2 = 14000 ;Unholy Caress
  22. cd_3 = 14000 ;Dragon's Breath
  23. cd_4 = 9000 ;FrostBite
  24. cd_5 = 13000 ;Insect Swarm
  25.  
  26. ;Set ray priority here, 1 being highest, 6 being lowest
  27. p_1 = 1 ;Impale
  28. p_2 = 2 ;Unholy Caress
  29. p_3 = 3 ;Dragon's Breath
  30. p_4 = 4 ;Frost Bite
  31. p_5 = 5 ;Insect Swarm
  32.  
  33. ;Initializes ray availability array to 1 (off cooldown)
  34. While A_Index <= num_rays
  35. {
  36. r_%A_Index% = 2
  37. }
  38.  
  39. ;Set your ray HotKey here (currently set to RIGHT CLICK)
  40. ~RButton:: ;THIS IS YOUR HOT KEY HERE ! SAY IT IS F CHANGE IT TOO ~f:: or say its 3 ~3:: ect ect
  41. cur_ray := RayLogic(cur_ray, cur_key, cur_cool)
  42. Send , %cur_key%
  43.  
  44.  
  45. While (ErrorLevel = 2)
  46. {
  47. If (GetKeyState("RButton", "P") = 2)
  48. Return
  49. KeyWait, RButton, T.2
  50. }
  51. r_%cur_ray% = 0
  52. neg_cur_cool := -cur_cool
  53. SetTimer , %cur_ray% , %neg_cur_cool%
  54. Return
  55.  
  56. ;Subroutine group to reset ray cds
  57. 1:
  58. 2:
  59. 3:
  60. 4:
  61. 5:
  62. r_%A_ThisLabel% = 2
  63. Return
  64.  
  65. RayLogic(cur_ray, ByRef cur_key, ByRef cur_cool)
  66. {
  67. global
  68.  
  69. /*Initiates cur_ray to your highest priority ray
  70. in the case of all rays being off cooldown
  71. */
  72. cur_ray := p_2
  73.  
  74. /*Assigns the value of cur_ray to the first available
  75. ray according to priority
  76. */
  77. While A_Index <= num_rays
  78. {
  79. ray_number := p_%A_Index%
  80. if (r_%ray_number% = 2)
  81. {
  82. cur_ray := ray_number
  83. Break
  84. }
  85. }
  86.  
  87. ;Sets the ray's corresponding key and cooldown
  88. cur_key := k_%cur_ray%
  89. cur_cool := cd_%cur_ray%
  90.  
  91. Return cur_ray
  92. }
Add Comment
Please, Sign In to add comment