Code: Select all
<skill name="WARRIOR_SURPRISE_ATTACK" range="150" minrange="60" cooldown="12" />
Code: Select all
<skill name="WARRIOR_SURPRISE_ATTACK" range="150" minrange="60" cooldown="12" />
Code: Select all
<option name="COMBAT_TYPE" value="" />
<option name="COMBAT_RANGED_PULL" value="true" />
<option name="COMBAT_DISTANCE" value="150" />
<skill name="WARRIOR_SURPRISE_ATTACK" modifier="" hotkey="VK_6" priority="70" pullonly="true" />
Code: Select all
<onPreSkillCast>
if( arg1.Name == "WARRIOR_SURPRISE_ATTACK" ) then
surprisecd();
end
</onPreSkillCast>
Code: Select all
function surprisecd(_acc)
local cooldown, remaining = RoMScript("GetSkillCooldown(4,7);")
local name, _, icon, _, rank, type, upgradeCost, isSkillable, isAvailable = RoMScript("GetSkillDetail(4,7);")
if _acc == nil then _acc = "" end
filename = getExecutionPath() .. "/profiles/skillcd" .. _acc .. ".xml";
file, err = io.open(filename, "a+");
if( not file ) then
error(err, 0);
end
file:write(" Skill Name: \"" ..name .. "\" Cooldown: \"" .. remaining .. "\" date: \"" .. os.date() .. "\"\n");
file:close();
end
Code: Select all
Skill Name: "Surprise Attack" Cooldown: "0" date: "03/04/11 21:39:33"
Skill Name: "Surprise Attack" Cooldown: "0" date: "03/04/11 21:39:56"
Skill Name: "Surprise Attack" Cooldown: "0" date: "03/04/11 21:40:14"
Skill Name: "Surprise Attack" Cooldown: "0" date: "03/04/11 21:40:26"
Skill Name: "Surprise Attack" Cooldown: "0" date: "03/04/11 21:40:43"
Skill Name: "Surprise Attack" Cooldown: "0" date: "03/04/11 21:40:56"
Skill Name: "Surprise Attack" Cooldown: "0" date: "03/04/11 21:41:43"
Skill Name: "Surprise Attack" Cooldown: "0" date: "03/04/11 21:41:55"
Skill Name: "Surprise Attack" Cooldown: "0" date: "03/04/11 21:42:15"
Skill Name: "Surprise Attack" Cooldown: "0" date: "03/04/11 21:42:41"
Skill Name: "Surprise Attack" Cooldown: "0" date: "03/04/11 21:43:31"
Skill Name: "Surprise Attack" Cooldown: "0" date: "03/04/11 21:43:47"
Code: Select all
<skill name="WARRIOR_SURPRISE_ATTACK" modifier="" hotkey="VK_5" priority="70" pullonly="true" cooldown="5" />
Code: Select all
Skill Name: "Surprise Attack" Cooldown: "2.2000000476837" date: "03/04/11 22:09:24"
Skill Name: "Surprise Attack" Cooldown: "0" date: "03/04/11 22:09:51"
Skill Name: "Surprise Attack" Cooldown: "0" date: "03/04/11 22:10:43"
Skill Name: "Surprise Attack" Cooldown: "4" date: "03/04/11 22:10:51"
Skill Name: "Surprise Attack" Cooldown: "0.5" date: "03/04/11 22:11:07"
Code: Select all
<onPreSkillCast>
if( arg1.Name == "WARRIOR_SURPRISE_ATTACK" ) then
RoMScript("GetSkillCooldown(4,7);");
if (RoMScript("GetSkillCooldown(4,7);") > "3") then
return false
changeProfileOption("COMBAT_DISTANCE", 50);
end
end
return true
</onPreSkillCast>
Code: Select all
local cooldown, remaining = RoMScript("GetSkillCooldown(4,7);")
Code: Select all
<onPreSkillCast>
if( arg1.Name == "WARRIOR_SURPRISE_ATTACK" ) then
local cooldown, remaining = RoMScript("GetSkillCooldown(4,7);")
if remaining > 3 then
ATTTAAACCCKKKKKK
else return true
end
end
</onPreSkillCast>
Code: Select all
if remaining > 3 then
player:cast("WARRIOR_SAVAGE_WHIRLWIND");
Code: Select all
player:cast("WARRIOR_ATTACK");Code: Select all
<onPreSkillCast>
if arg1.Name == "WARRIOR_SURPRISE_ATTACK" then
local target = player:getTarget()
if 60 > distance(player.X, player.Z, target.X, target.Z) then
return false -- doesn't use the skill
end
end
return true
</onPreSkillCast>
Code: Select all
<onPreSkillCast>
if( arg1.Name == "WARRIOR_SURPRISE_ATTACK" ) then
local cooldown, remaining = RoMScript("GetSkillCooldown(4,7);")
if remaining > 3 then
return false
else return true
end
end
</onPreSkillCast>
Code: Select all
<onPreSkillCast><![CDATA[
if( arg1.Name == "WARRIOR_SURPRISE_ATTACK" ) then
local cooldown, remaining = RoMScript("GetSkillCooldown(4,7);")
if remaining > 3 then
return false
end
local target = player:getTarget()
if 60 > distance(player.X, player.Z, target.X, target.Z) then
return false -- doesn't use the skill
end
return true
end
]]></onPreSkillCast>
Code: Select all
<onPreSkillCast><![CDATA[
if( arg1.Name == "WARRIOR_SURPRISE_ATTACK" ) then
local cooldown, remaining = RoMScript("GetSkillCooldown(4,7);")
if remaining > 2 then
player:cast("WARDEN_POWER_OF_THE_WOOD_SPIRIT");
end
local target = player:getTarget()
if 60 > distance(player.X, player.Z, target.X, target.Z) then
return false -- doesn't use the skill
end
return true
end
]]></onPreSkillCast>
Code: Select all
<onPreSkillCast><![CDATA[
if( arg1.Name == "WARRIOR_SURPRISE_ATTACK" ) then
local target = player:getTarget()
if 60 > distance(player.X, player.Z, target.X, target.Z) then
return false -- doesn't use the skill
end
local cooldown, remaining = RoMScript("GetSkillCooldown(4,7);")
if remaining > 2 then
player:cast("WARDEN_POWER_OF_THE_WOOD_SPIRIT");
end
return true
end
]]></onPreSkillCast>
Code: Select all
if remaining ~= nil then
Code: Select all
<onPreSkillCast><![CDATA[
if( arg1.Name == "WARRIOR_SURPRISE_ATTACK" ) then
local cooldown, remaining = RoMScript("GetSkillCooldown(4,7);")
if remaining ~= nil and remaining > 2 then
player:cast("WARDEN_POWER_OF_THE_WOOD_SPIRIT");
end
local target = player:getTarget()
if 60 > distance(player.X, player.Z, target.X, target.Z) then
return false -- doesn't use the skill
end
return true
end
]]></onPreSkillCast>