Tady je Pívasův ray script. Trochu jsem ho upravil. Teď vám před cástem sám nahodí vámi vybranou stavku. Úpravu ve scriptu jsem označil červeně a´t se vám to lépe hledá ;)
[quote]SendMode Input
#ifWinActive, ahk_class SFMainWindow
;Rays
ray_k_1 = ^1 ;Pungeon Mist
ray_k_2 = ^2 ;Impale
ray_k_3 = ^3 ;Dragonbreath
ray_k_4 = ^4 ;Unholy Caress
ray_k_5 = ^5 ;Insect Swarm
;End of Rays
;--------------------Ray Script Global Variables------------------------
/*
Cooldowns and priorities are defined below.
The key bindings for this script are defined in the Key Bindings section at
the start of script.
*/
;Set the number of rays you have here
num_rays = 5
;Tweak cooldowns here
ray_cd_1 = 15000 ; Pungeon Mist
ray_cd_2 = 6500 ; Impale
ray_cd_3 = 14500 ; Dragonbreath
ray_cd_4 = 14500 ; Unholy Caress
ray_cd_5 = 13500 ; Insect Swarm
;Set your rays priority here, 1 being highest, 3 being lowest
ray_p_1 = 1 ;Pungeon Mist
ray_p_2 = 2 ;Impale
ray_p_3 = 3 ;Dragonbreath
ray_p_4 = 4 ;Unholy Caress
ray_p_5 = 5 ;Insect Swarm
;Initializes rays availability array to 1 (off cooldown)
While A_Index <= num_rays
{
r_ray_%A_Index% = 1
}
;----------------End of Ray Script Global Variables---------------------
;-----------------------------------------Ray
Script----------------------------------------
;Set your raying HotKey here (currently set to Middlebutton, you hold it in to
charge ray and release to fire it)
mbutton::
[color=red]
Send {NumpadDiv}
sleep 250[/color]
cur_ray := rayLogic(cur_ray, cur_key, cur_cool)
Send , %cur_key%
Sleep, 50
MouseClick, left,,, 1, 0, D ; Hold down the left mouse button.
KeyWait, mbutton ; Wait for the hotkey to be released.
MouseClick, left,,, 1, 0, U ; Release the mouse button.
sleep 1200
r_ray_%cur_ray% = 0
neg_cur_cool := -cur_cool
SetTimer , ray_%cur_ray% , %neg_cur_cool%
Return
;---------------Subroutine group to reset cooldowns--------------------
ray_1:
ray_2:
ray_3:
ray_4:
ray_5:
r_%A_ThisLabel% = 1
Return
;--------------End of subroutine group to reset cooldowns---------------
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 := ray_p_1
/*Assigns the value of cur_ray to the first available
ray according to priority
*/
While A_Index <= num_rays
{
ray_number := ray_p_%A_Index%
if (r_ray_%ray_number% = 1)
{
cur_ray := ray_number
Break
}
}
;Sets the ray's corresponding key and cooldown
cur_key := ray_k_%cur_ray%
cur_cool := ray_cd_%cur_ray%
Return cur_ray
}
Return
;-----------------------End raying script Script -----------------------[/quote]
Hodil sem ti to do tabulky, zabiral si moc mista :)