elseif htype==DIETER and UseDieterLavaSlide==1 and LavaSlideMode==0 then
skill=MH_LAVA_SLIDE
if DieterLavaSlideLevel==nil then
level=5
else
level=DieterLavaSlideLevel
end
end
if AutoSkillCooldown[skill]~=nil then
if GetTick() < AutoSkillCooldown[skill] then -- in cooldown
level=0
skill=0
end
end
end
e tenho este código para utilizar a skill que tem um delay de 15minutos:
function GetQuickenSkill(myid)
local level = 0
local skill = 0
if (IsHomun(myid)==1) then
htype=GetV(V_HOMUNTYPE,myid)
if htype < 17 then
homuntype=modulo(GetV(V_HOMUNTYPE,myid),4)
else
homuntype=modulo(OldHomunType,4)
end
if (homuntype==1) then -- It's a lif!
skill=HLIF_CHANGE
level=3
elseif (homuntype==3) then -- It's a filer!
skill=HFLI_FLEET
if (FilirFlitLevel==nil) then
level=5
else
level=FilirFlitLevel
end
elseif (homuntype==2) then --it's an amistr
skill=HAMI_BLOODLUST
level=3
end
else
level=SkillList[MercType][MER_QUICKEN]
if level ~=nil then
skill=MER_QUICKEN
end
end
if AutoSkillCooldown[skill]~=nil then
if GetTick() < AutoSkillCooldown[skill] then -- in cooldown
level=0
skill=0
end
end
return skill,level
end
E como poderia colocar para ele usar a skill BloodLust logo depois de chamar a function para usar a skill LavaSlide?