Guest User

Untitled

a guest
Apr 26th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.28 KB | None | 0 0
  1. #IfWinActive, Darkfall Online
  2.  
  3.  
  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 = {blind}{Ins}uop\kj ;Pungent Mist
  14. k_2 = {blind}{Home}uop\kj ;Dragonbreath
  15. k_3 = {blind}{PgUp}uop\kj ;Insect Swarm
  16. k_4 = {blind}{PgDn}uop\kj ;Unholy Caress
  17. k_5 = {blind}{End}uop\kj ;impale
  18.  
  19.  
  20. ;Tweak cooldowns here
  21. cd_1 = 16000 ;Pungent Mist
  22. cd_2 = 15000 ;Dragonbreath
  23. cd_3 = 15000 ;Insect Swarm
  24. cd_4 = 15000 ;Unholy Caress
  25. cd_5 = 7000 ;impale
  26.  
  27.  
  28. ;Set ray priority here, 1 being highest, 6 being lowest
  29. p_1 = 3 ;Pungent Mist
  30. p_2 = 2 ;Dragonbreath
  31. p_3 = 1 ;Insect Swarm
  32. p_4 = 5 ;Unholy Caress
  33. p_5 = 4 ;impale
  34.  
  35. ;Initializes ray availability array to 1 (off cooldown)
  36. While A_Index <= num_rays
  37. {
  38. r_%A_Index% = 1
  39. }
  40.  
  41.  
  42. ;Set your ray HotKey here (currently set to f)
  43. ~*t::
  44. cur_ray := RayLogic(cur_ray, cur_key, cur_cool)
  45. Send , %cur_key%
  46.  
  47. While (ErrorLevel = 1)
  48. {
  49. If (GetKeyState("e",P) = 1)
  50. Return
  51. KeyWait, Lbutton, T.2
  52. }
  53. r_%cur_ray% = 0
  54. neg_cur_cool := -cur_cool
  55. SetTimer , %cur_ray% , %neg_cur_cool%
  56. Return
  57.  
  58. ;Subroutine group to reset ray cds
  59. 1:
  60. 2:
  61. 3:
  62. 4:
  63. 5:
  64. 6:
  65. r_%A_ThisLabel% = 1
  66. Return
  67.  
  68. *F12::Suspend, Toggle
  69.  
  70. RayLogic(cur_ray, ByRef cur_key, ByRef cur_cool)
  71. {
  72. global
  73.  
  74. /*Initiates cur_ray to your highest priority ray
  75. in the case of all rays being off cooldown
  76. */
  77. cur_ray := p_1
  78.  
  79. /*Assigns the value of cur_ray to the first available
  80. ray according to priority
  81. */
  82. While A_Index <= num_rays
  83. {
  84. ray_number := p_%A_Index%
  85. if (r_%ray_number% = 1)
  86. {
  87. cur_ray := ray_number
  88. Break
  89. }
  90. }
  91.  
  92. ;Sets the ray's corresponding key and cooldown
  93. cur_key := k_%cur_ray%
  94. cur_cool := cd_%cur_ray%
  95.  
  96. Return cur_ray
  97. }
  98.  
  99.  
  100.  
  101.  
  102. ;===================================================================================================================================
  103.  
  104. SendMode Input
  105.  
  106. ; toggle hotkeys on and off
  107. ~*ScrollLock::
  108. Hotkey ~*T, Toggle
  109. Return
  110.  
  111.  
  112. XButton1::
  113. {
  114. Send, /
  115. sleep, 50
  116. Mouseclick, Left
  117. }
  118. Return
  119.  
  120.  
  121. XButton2::
  122. {
  123. Send, .
  124. sleep, 50
  125. Mouseclick, Left
  126. }
  127. Return
  128.  
  129.  
  130. *Alt::
  131. {
  132. send, `;
  133. sleep, 525
  134. Send, ';
  135. }
  136. Return
  137.  
  138.  
  139. *xButton1::
  140. {
  141. Send, {blind}{Up}{down}{left}{right}
  142. }
  143. Return
Add Comment
Please, Sign In to add comment