Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #IfWinActive, Darkfall Online
- ;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 = {blind}{Ins}uop\kj ;Pungent Mist
- k_2 = {blind}{Home}uop\kj ;Dragonbreath
- k_3 = {blind}{PgUp}uop\kj ;Insect Swarm
- k_4 = {blind}{PgDn}uop\kj ;Unholy Caress
- k_5 = {blind}{End}uop\kj ;impale
- ;Tweak cooldowns here
- cd_1 = 16000 ;Pungent Mist
- cd_2 = 15000 ;Dragonbreath
- cd_3 = 15000 ;Insect Swarm
- cd_4 = 15000 ;Unholy Caress
- cd_5 = 7000 ;impale
- ;Set ray priority here, 1 being highest, 6 being lowest
- p_1 = 3 ;Pungent Mist
- p_2 = 2 ;Dragonbreath
- p_3 = 1 ;Insect Swarm
- p_4 = 5 ;Unholy Caress
- p_5 = 4 ;impale
- ;Initializes ray availability array to 1 (off cooldown)
- While A_Index <= num_rays
- {
- r_%A_Index% = 1
- }
- ;Set your ray HotKey here (currently set to f)
- ~*t::
- cur_ray := RayLogic(cur_ray, cur_key, cur_cool)
- Send , %cur_key%
- While (ErrorLevel = 1)
- {
- If (GetKeyState("e",P) = 1)
- Return
- KeyWait, Lbutton, 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:
- 6:
- r_%A_ThisLabel% = 1
- Return
- *F12::Suspend, Toggle
- 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_1
- /*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% = 1)
- {
- 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
- }
- ;===================================================================================================================================
- SendMode Input
- ; toggle hotkeys on and off
- ~*ScrollLock::
- Hotkey ~*T, Toggle
- Return
- XButton1::
- {
- Send, /
- sleep, 50
- Mouseclick, Left
- }
- Return
- XButton2::
- {
- Send, .
- sleep, 50
- Mouseclick, Left
- }
- Return
- *Alt::
- {
- send, `;
- sleep, 525
- Send, ';
- }
- Return
- *xButton1::
- {
- Send, {blind}{Up}{down}{left}{right}
- }
- Return
Add Comment
Please, Sign In to add comment