Hide, Stealth, Shoot by Dante Alexander Da'hart
Description: I usually get ids by new macro recording, use a skill that allows you to target an NPC, and stop recording, copy the target and it's variable twice into the script and remove one "target" with Attack.
1setvar chosen_enemy
2while not dead
3 if not hidden
4 skill 'hiding'
5 wait 11000
6 elseif hidden
7 warmode 'on'
8 skill 'stealth'
9 target chosen_enemy
10 attack chosen_enemy
11 warmode 'off'
12 wait 11000
13 endif
14endwhile
15