Smoke Bomb with Cooldown, Optional Dismount by __rafen__
Description: Smoke bomb script with cooldown tracking. Optionally, it can dismount prior to SB and/or prevent the use of SB while the character is hidden.
1# SETUP:
2# Create a cooldown called Smoke Bomb in the Outlands client if you don't have one already.
3
4# Dismount prior to smoke bomb
5@setvar 'dismount_on_sb' 1
6# Able to use smoke bomb while hidden
7@setvar 'use_sb_while_hidden' 0
8
9
10if mounted and 'dismount_on_sb' = 1
11 if findtype 8417|8438|8478|8479|8480|8481|8484|8488|8501|8502|8503|9052|43320 as 'mount'
12 dclick 'mount'
13 wait 525
14 endif
15endif
16
17clearsysmsg
18
19if not hidden or 'use_sb_while_hidden' = 1
20 say '[smokebomb'
21 wait 175
22 if insysmsg 'You must wait another'
23 overhead '*Smoke Bomb CD*' 32
24 elseif insysmsg 'You have teleported too recently'
25 overhead '*Rope/Tele CD*' 32
26 elseif insysmsg 'You must wait a few moments'
27 overhead '*Skill CD*' 32
28 else
29 cooldown 'Smoke Bomb' 59800
30 endif
31else
32 overhead 'Already hidden' 0
33endif