forked from m0rg/RKMacros
-
Notifications
You must be signed in to change notification settings - Fork 0
/
RKBard.mac
200 lines (164 loc) · 5.28 KB
/
RKBard.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
#include RKBase.inc
#include RKCrowdControlBase.inc
#include RKMeleeBase.inc
#include RKCasterBase.inc
#include RKPetBase.inc
Sub Main
/call Init_RKBase
/call Init_RKPetBase
/call Init_RKMeleeBase
/call AddToArray "CombatActionSubs" "BardCombat"
/call AddToArray "BurnCombatActionSubs" "BardBurn"
/call AddToArray "PreTargetAcquisitionSubs" "BardPreCombat"
/call Init_RKCrowdControlBase
/call AddToArray "NonCombatSubs" "BardNonCombatSubs"
/call Init_RKCasterBase
| *** VARIABLE DECLARATIONS
/varset StickDistance 7
/varset StickFlags behind
/varset SitBetweenCombat TRUE
/declare OverhasteAura bool outer TRUE
/varset CCMode FALSE
/varset AEMezSpell Wave of Torpor Rk. II
/varset SingleTargetMez Slumber of Silisia Rk. II
/varset SingleTargetMezLevelCap 108
/varset CharmMode FALSE
/varset CharmSpell Voice of Silisia Rk. II
/varset CharmSpellLevelCap 103
/call AddToArray "CombatActionSubs" "CheckTwist"
/call AddToArray "DefensiveActionSubs" "BardDefensives"
/call AddToArray "InvisModeSubs" "PeriodicGroupInvis"
/declare AESlowSong string outer Protan's Melodic Binding
/declare RequiemTimer timer outer 125
/declare FadeTimer timer outer 50
/echo Done initializing bard macro!
| *** MAIN LOOP
:loop
/call CheckSelos
/call Tick
/goto :loop
/return
Sub BardBurn
/call RKDisc "Reflexive Retort"
/call RKDisc "Thousand Blades"
/call RKAACast "Fundament: Third Spire of the Minstrels"
/call RKAACast "Dance of Blades"
/call RKAACast "Cacophony"
/call RKAACast "Bladed Song"
/return FALSE
Sub BardPreCombat
/if (!${Bool[${CharmSpell}]} || ${Me.XTarget} == 0 || !${ShouldICharm} || !${CharmMode}) /return FALSE
|/echo checking potential charm pets
/if (!${Me.Pet.ID}) {
/call GetCharmTarget
/if (${Macro.Return} != 0) {
/declare charmTargetId int local ${Macro.Return}
/call SelectNewTarget ${charmTargetId}
/delay 1s ${Target.ID} == ${charmTargetId}
/echo casting ${CharmSpell} at ${charmTargetId}
/if (${Twist}) {
/twist off
/delay 2s
/stopcast
}
/call RKCast "${CharmSpell}" ${charmTargetId}
/if (${Macro.Return}) {
/target clear
/return TRUE
}
}
}
/return FALSE
Sub BardNonCombatSubs
/if (${LowManaMed}) /twist off
/if (!${Me.XTarget[1].ID) {
/if (!${Zone.ShortName.Equal[brotherisland]}) {
/twist off
/stopcast
}
}
/if (!${Me.Buff[Symphony of Battle].ID}) /cast item "Rapier of Somber Notes"
/if (${OverhasteAura}) {
/if (!${Bool[${Me.Aura[Aura of Maetanrus Rk. II]}]}) {
/twist off
/delay 10s ${Me.SpellReady[Aura of Maetanrus Rk. II]}
/call RKCast "Aura of Maetanrus Rk. II" ${Me.ID}
/delay 6s
/twist off
/return TRUE
}
} else {
/if (!${Bool[${Me.Aura[Aura of Salarra Rk. II]}]}) {
/twist off
/delay 10s ${Me.SpellReady[Aura of Salarra Rk. II]}
/cast "Aura of Salarra Rk. II"
/delay 6s
/twist off
/return TRUE
}
}
|/if (!${Me.Buff[Symphony of Battle].ID}) /keypress Num_Slash
/return FALSE
Sub CheckAESlow
/call CountTargetsInRange ${Spell[${AESlowSong}].AERange}
/if (${Macro.Return} > 1) {
/call RKDebuffCast "${AESlowSong}" "${AESlowSong}" ${CurrentTargetId}
}
/return FALSE
Sub BardCombat
|/call CheckAESlow
/call RKItemSlotCast chest
/echo bard combat - current target : ${CurrentTargetId}
/if (${Me.GemTimer[${Me.Gem[Silisia's Lively Crescendo Rk. II]}]} == 0) {
/call RKCast "Silisia's Lively Crescendo Rk. II" ${CurrentTargetId}
|/return TRUE
}
/call RKAACast "Boastful Bellow" ${CurrentTargetId}
/call RKAACast "Selo's Kick" ${CurrentTargetId}
/call RKAACast "Vainglorious Shout" ${CurrentTargetId}
/call RKAACast "Lyrical Prankster"
/call RKAACast "Song of Stone"
/call RKAACast "Fierce Eye"
/call RKAACast "Funeral Dirge"
/call RKAACast "Quick Time"
/if (${Target.ID} && ${RequiemTimer} == 0 && !${Bool[${Target.Slowed}]}) {
/call RKCast "Requiem of Time" ${CurrentTargetId}
/if (${Macro.Return}) {
/delay 3s
/stopcast
/varset RequiemTimer 125
}
}
/return FALSE
Sub CheckSelos
/if (${DebugMode}) /echo CheckSelos
/if (${Me.Buff[Selo's Sonata].ID} && ${Me.Buff[Selo's Sonata].Duration} > 10) /return FALSE
/call RKAACast "Selo's Sonata"
/delay 2
/alt activate 231
/return FALSE
Sub PeriodicGroupInvis
/if (!${Me.Buff[Shauri's Sonorous Clouding].ID} || ${Me.Buff[Shauri's Sonorous Clouding].Duration} < 100) /call RKAACast "Shauri's Sonorious Clouding"
/if (${DebugMode}) /echo Group Invis
/return FALSE
Sub CheckTwist
/if (${DebugMode}) /echo CheckTwist
/if (${BOTMode} == 5) /return FALSE
/if (!${Twist} && !${Bool[${Me.Casting.ID}]}) {
/if (${DebugMode}) /echo need to twist
/twist 1 2 3 4 5
}
/return FALSE
Sub BardDefensives
/return FALSE
/if (${Me.PctHPs} < 50) /call RKDisc "Deftdance Discipline"
/if (${Bool[${Macro.Return}]} && ${Macro.Return}) /return TRUE
/if (${Me.PctHPs} < 80) /call RKDisc "Resistant Discipline"
/if (${Bool[${Macro.Return}]} && ${Macro.Return}) /return TRUE
/if (${Me.PctHPs} < 70 && ${FadeTimer} == 0) {
/echo Getting attacked - Fading
/call RKAACast "Fading Memories"
/varset FadeTimer 50
/if (${Bool[${Macro.Return}]} && ${Macro.Return}) /return TRUE
}
/return FALSE