forked from m0rg/RKMacros
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RKTemplate - Healer.mac
71 lines (50 loc) · 1.76 KB
/
RKTemplate - Healer.mac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#Event HOT_Landed_Self "#*#An earnest healing spell heals your body."
#Event HOT_Landed "#1#'s body is covered with a soft glow."
#Event HOT_Worn_off_Self "#*#The earnest elixir fades."
#Event HOT_Worn_off "Your Earnest Elixir Rk. II spell has worn off of #1#."
#include RKBase.inc
#include RKCasterBase.inc
#include RKHealerBase.inc
Sub Main
/call Init_RKBase
/call Init_RKHealerBase
/call Init_RKCasterBase
| *** VARIABLE DECLARATIONS
/varset MaxTargetDistance 5000
/varset UpperAggroThreshold 90
/varset MercBurnThreshold 80
/call AddToArray "DetrimentalSpells" "My Favorite Nuke Rk. II"
/call AddToArray "DetrimentalSpells" "My Favorite Dot"
/call AddToArray "PreTargetAcquisitionSubs" "CheckAura"
/call AddToArray "CombatActionSubs" "HealerCombat"
|---- Heal spells -- Either don't set the variable or set thresholds to 0 for spell types you don't want
/varset HealSpell Earnest Light Rk. II
/varset TankHealThreshold 80
/varset SingleTargetHealThreshold 80
/varset HoTSpell Earnest Elixir Rk. II
/varset TankHoTThreshold 90
/varset SingleTargetHoTThreshold 80
/varset EmergencyHealSpell Thirteenth Salve Rk. II
/varset EmergencyHealThreshold 45
/varset GroupHeal Word of Awakening Rk. II
/varset GroupHealThreshold 70
/varset EmergencyGroupHeal Word of Awakening Rk. II
/varset EmergencyGroupHealThreshold 75
/echo Done initializing macro!
| *** INITIALIZATION
/echo Starting Box Commander - Healer Macro
| *** MAIN LOOP
:loop
/call Tick
/goto :loop
/return
Sub CheckAura
|/if (!${Bool[${Me.Aura[My Aura]}]}) {
| /echo Applying aura
| /call RKDisc "My Aura"
| /delay 10s ${Bool[${Me.Aura[My Aura]}]}
| /return TRUE
|}
/return FALSE
Sub HealerCombat
/return FALSE