Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #IfWinActive, Darkfall Online
- #NoEnv
- ;THIS IS A STAND ALONE SCRIPT DO NOT COPY AND PASTE IT INTO YOUR CURRENT SCRIPT
- ;Set the number of rays you have here
- num_rays = 5
- ;Set your binds here
- /*Regarding modifiers: Shift = +, Ctrl = ^, Alt = !,
- > < denotes right and left keys respectively.
- Consult the help file for further information
- */
- k_1 = {SC037} ;Impale
- k_2 = {F1} ;Unholy Caress
- k_3 = {F2} ;Dragon's Breath
- k_4 = {F3} ;Frost Bite
- k_5 = {F4} ;Insect Swarm
- ;Tweak cooldowns here
- cd_1 = 6000 ;Impale
- cd_2 = 14000 ;Unholy Caress
- cd_3 = 14000 ;Dragon's Breath
- cd_4 = 9000 ;FrostBite
- cd_5 = 13000 ;Insect Swarm
- ;Set ray priority here, 1 being highest, 6 being lowest
- p_1 = 1 ;Impale
- p_2 = 2 ;Unholy Caress
- p_3 = 3 ;Dragon's Breath
- p_4 = 4 ;Frost Bite
- p_5 = 5 ;Insect Swarm
- ;Initializes ray availability array to 1 (off cooldown)
- While A_Index <= num_rays
- {
- r_%A_Index% = 2
- }
- ;Set your ray HotKey here (currently set to RIGHT CLICK)
- ~RButton:: ;THIS IS YOUR HOT KEY HERE ! SAY IT IS F CHANGE IT TOO ~f:: or say its 3 ~3:: ect ect
- cur_ray := RayLogic(cur_ray, cur_key, cur_cool)
- Send , %cur_key%
- While (ErrorLevel = 2)
- {
- If (GetKeyState("RButton", "P") = 2)
- Return
- KeyWait, RButton, T.2
- }
- r_%cur_ray% = 0
- neg_cur_cool := -cur_cool
- SetTimer , %cur_ray% , %neg_cur_cool%
- Return
- ;Subroutine group to reset ray cds
- 1:
- 2:
- 3:
- 4:
- 5:
- r_%A_ThisLabel% = 2
- Return
- RayLogic(cur_ray, ByRef cur_key, ByRef cur_cool)
- {
- global
- /*Initiates cur_ray to your highest priority ray
- in the case of all rays being off cooldown
- */
- cur_ray := p_2
- /*Assigns the value of cur_ray to the first available
- ray according to priority
- */
- While A_Index <= num_rays
- {
- ray_number := p_%A_Index%
- if (r_%ray_number% = 2)
- {
- cur_ray := ray_number
- Break
- }
- }
- ;Sets the ray's corresponding key and cooldown
- cur_key := k_%cur_ray%
- cur_cool := cd_%cur_ray%
- Return cur_ray
- }
Add Comment
Please, Sign In to add comment