Snare
Macro to automatically snare target
Works by: Checks to see if target has been snared since based upon if it is an NPC, % of health and checking the variable. When any mob dies, it resets the variable and only when a mob dies (or it wears off, which is extremely rare).
1
#include spell_routines.inc
2
3
#Event EnsnareWornOff "#*#ensnare spell has worn off#*#"
4
#Event Exp "#*#party experience!#*#"
5
#Event Exp "#*#gain experience!#*#"
6
#Event Exp "#*#slain#*#"
7
8
9
Sub Main
10
/echo 1...
11
/declare Ensnared bool outer FALSE
12
:loop
13
|Snare check
14
|/assist <<<<tank name>>>>
15
/if (${Target.ID} && ${Target.PctHPs}<99 && !${Ensnared}) /call Ensnare
16
/doevents
17
/delay 1s
18
/goto :loop
19
/return
20
21
Sub Ensnare
22
/call Cast "Ensnare" gem3 10s
23
/if (${Macro.Return.Equal[CAST_SUCCESS]} || ${Macro.Return.Equal[CAST_IMMUNE]}) /varset Ensnared TRUE
24
/return
25
26
Sub Event_Exp
27
/varset Ensnared FALSE
28
/return
29
30
Sub Event_EnsnareWornOff
31
/varset Ensnared FALSE
32
/return
Copied!
Last modified 6mo ago
Copy link