Rope Tele with cooldowns by yarick.
Description: The script uses the following cooldowns
Combat - a PvP timer
Teleport - as default (script controls duration)
Rope - as default (script controls duration)
1//You need 3 cooldowns setup for this to work correctly (note there case sensitive)
2//Combat - a PvP timer
3//Teleport - as default (script controls duration)
4//Rope - as default (script controls duration)
5
6if not timerexists teleCastTimer
7 createtimer teleCastTimer
8endif
9if cooldown 'Combat'
10 //combat has a 15 sec cooldown on tele
11 //and a 2 min cooldown after rope
12 if insysmsg 'You must wait another'
13 //if you just tele out of combat and now are in combat
14 //you will get the below msg
15 if insysmsg 'You must wait another 13s'
16 cooldown "Teleport" 14000
17 cooldown "Rope" 14000
18 elseif insysmsg 'You must wait another 12s'
19 cooldown "Teleport" 13000
20 cooldown "Rope" 13000
21 elseif insysmsg 'You must wait another 11s'
22 cooldown "Teleport" 12000
23 cooldown "Rope" 12000
24 elseif insysmsg 'You must wait another 10s'
25 cooldown "Teleport" 11000
26 cooldown "Rope" 11000
27 elseif insysmsg 'You must wait another 9s'
28 cooldown "Teleport" 10000
29 cooldown "Rope" 10000
30 elseif insysmsg 'You must wait another 8s'
31 cooldown "Teleport" 9000
32 cooldown "Rope" 9000
33 elseif insysmsg 'You must wait another 7s'
34 cooldown "Teleport" 8000
35 cooldown "Rope" 8000
36 elseif insysmsg 'You must wait another 6s'
37 cooldown "Teleport" 7000
38 cooldown "Rope" 7000
39 elseif insysmsg 'You must wait another 5s'
40 cooldown "Teleport" 6000
41 cooldown "Rope" 6000
42 elseif insysmsg 'You must wait another 4s'
43 cooldown "Teleport" 5000
44 cooldown "Rope" 5000
45 elseif insysmsg 'You must wait another 3s'
46 cooldown "Teleport" 4000
47 cooldown "Rope" 4000
48 elseif insysmsg 'You must wait another 2s'
49 cooldown "Teleport" 3000
50 cooldown "Rope" 3000
51 elseif insysmsg 'You must wait another 1s'
52 cooldown "Teleport" 2000
53 cooldown "Rope" 2000
54 endif
55 elseif not cooldown 'Teleport'
56 if targetexists
57 hotkey 'Cancel Current Target'
58 endif
59 cast 'Teleport'
60 settimer teleCastTimer 0
61 while timer teleCastTimer < 2000 and not insysmsg 'Your concentration is disturbed, thus ruining thy spell.'
62 while targetexists
63 endwhile
64 endwhile
65
66 if insysmsg 'Your concentration is disturbed, thus ruining thy spell.' and not cooldown 'Rope'
67 //disturbed
68 else
69 if insysmsg 'That location is blocked' or insysmsg 'That is too far away.' or insysmsg 'Target cannot be seen.'
70 //failed to tele
71 else
72 cooldown "Rope" 15000
73 cooldown "Teleport" 15000
74 endif
75 endif
76 endif
77else
78 //out of combat you can tele rope quickly
79 if targetexists
80 hotkey 'Cancel Current Target'
81 endif
82 if findtype "rope" backpack and not cooldown 'Rope'
83 say '[rope'
84 settimer teleCastTimer 0
85 while timer teleCastTimer < 2000
86 while targetexists
87 endwhile
88 endwhile
89 wait 200
90
91 if insysmsg 'That location is blocked' or insysmsg 'That is too far away.' or insysmsg 'Target cannot be seen.'
92 //failed to tele
93 else
94 cooldown "Rope" 4500
95 endif
96 endif
97 if not cooldown 'Teleport'
98 cast 'Teleport'
99 settimer teleCastTimer 0
100 while timer teleCastTimer < 2000 and not insysmsg 'Your concentration is disturbed, thus ruining thy spell.'
101 while targetexists
102 endwhile
103 endwhile
104 wait 200
105
106 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.'
107 //failed to tele
108 else
109 cooldown "Teleport" 500
110 endif
111 endif
112endif
113
114#Set this to your loop script to resume your loop
115#hotkey 'Play Script: AA\Route'