Rope Tele with cooldowns by yarick.
Description from the author:
//You need 3 cooldowns setup for this to work correctly (note there case sensitive)
//Combat - a PvP timer
//Teleport - as default (script controls duration)
//Rope - as default (script controls duration)
if not timerexists teleCastTimer
createtimer teleCastTimer
endif
if cooldown 'Combat'
//combat has a 15 sec cooldown on tele
//and a 2 min cooldown after rope
if insysmsg 'You must wait another'
//if you just tele out of combat and now are in combat
//you will get the below msg
if insysmsg 'You must wait another 13s'
cooldown "Teleport" 14000
cooldown "Rope" 14000
elseif insysmsg 'You must wait another 12s'
cooldown "Teleport" 13000
cooldown "Rope" 13000
elseif insysmsg 'You must wait another 11s'
cooldown "Teleport" 12000
cooldown "Rope" 12000
elseif insysmsg 'You must wait another 10s'
cooldown "Teleport" 11000
cooldown "Rope" 11000
elseif insysmsg 'You must wait another 9s'
cooldown "Teleport" 10000
cooldown "Rope" 10000
elseif insysmsg 'You must wait another 8s'
cooldown "Teleport" 9000
cooldown "Rope" 9000
elseif insysmsg 'You must wait another 7s'
cooldown "Teleport" 8000
cooldown "Rope" 8000
elseif insysmsg 'You must wait another 6s'
cooldown "Teleport" 7000
cooldown "Rope" 7000
elseif insysmsg 'You must wait another 5s'
cooldown "Teleport" 6000
cooldown "Rope" 6000
elseif insysmsg 'You must wait another 4s'
cooldown "Teleport" 5000
cooldown "Rope" 5000
elseif insysmsg 'You must wait another 3s'
cooldown "Teleport" 4000
cooldown "Rope" 4000
elseif insysmsg 'You must wait another 2s'
cooldown "Teleport" 3000
cooldown "Rope" 3000
elseif insysmsg 'You must wait another 1s'
cooldown "Teleport" 2000
cooldown "Rope" 2000
endif
elseif not cooldown 'Teleport'
if targetexists
hotkey 'Cancel Current Target'
endif
cast 'Teleport'
settimer teleCastTimer 0
while timer teleCastTimer < 2000 and not insysmsg 'Your concentration is disturbed, thus ruining thy spell.'
while targetexists
endwhile
endwhile
if insysmsg 'Your concentration is disturbed, thus ruining thy spell.' and not cooldown 'Rope'
//disturbed
else
if insysmsg 'That location is blocked' or insysmsg 'That is too far away.' or insysmsg 'Target cannot be seen.'
//failed to tele
else
cooldown "Rope" 15000
cooldown "Teleport" 15000
endif
endif
endif
else
//out of combat you can tele rope quickly
if targetexists
hotkey 'Cancel Current Target'
endif
if findtype "rope" backpack and not cooldown 'Rope'
say '[rope'
settimer teleCastTimer 0
while timer teleCastTimer < 2000
while targetexists
endwhile
endwhile
wait 200
if insysmsg 'That location is blocked' or insysmsg 'That is too far away.' or insysmsg 'Target cannot be seen.'
//failed to tele
else
cooldown "Rope" 4500
endif
endif
if not cooldown 'Teleport'
cast 'Teleport'
settimer teleCastTimer 0
while timer teleCastTimer < 2000 and not insysmsg 'Your concentration is disturbed, thus ruining thy spell.'
while targetexists
endwhile
endwhile
wait 200
if insysmsg 'Your concentration is disturbed, thus ruining thy spell.' or insysmsg 'That location is blocked' or insysmsg 'That is too far away.' or insysmsg 'Target cannot be seen.'
//failed to tele
else
cooldown "Teleport" 500
endif
endif
endif
#Set this to your loop script to resume your loop
#hotkey 'Play Script: AA\Route'The script uses the following cooldowns
Combat - a PvP timer
Teleport - as default (script controls duration)
Rope - as default (script controls duration)