Well, I want to modify a script I found here in the forums. I'd like it to check for cooldown of a transport spell and then decide what to do based on the returned value. So if the remaining time is more than 10 minutes, I'd like it to load a waypoint, else I'd like it to just wait and use the spell when it is available.
I found one of lisa's posted code that I think can be the foundation of this script. I just don't know how to proceed from there. Here's the code btw:
Code: Select all
local cooldown, remaining = sendMacro("GetSkillCooldown(1,2);")
if remaining > 1 then
printf("skill on cooldown\n") -- skills on cooldown
else
RoMScript('CastSpellByName("Heffner Camp Transport Spell")') -- use teleport
end
Code: Select all
local cooldown, remaining = sendMacro("GetSkillCooldown(1,2);")
if remaining > 10 then
printf("skill on cooldown\n") -- skills on cooldown
loadPaths("waypointfile")
else
local y = ((remaining+1)*60000)
yrest(y)
RoMScript('CastSpellByName("Heffner Camp Transport Spell")') -- use teleport
end
So can someone help me with this? Thanks.