-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwarutil.inc
339 lines (314 loc) · 16.8 KB
/
warutil.inc
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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
|- ihcwarutil.inc
|- Version 2.0
|- Updated: 4/25/2019
|--------------------------------------------------------------------------------------
|-Setup Variable Environment
|--------------------------------------------------------------------------------------
Sub war_setup
|-Declare Discs
/declare meleemit string outer NULL
/declare missall string outer NULL
/declare PDHDisc string outer NULL
/declare parryall string outer NULL
/declare shieldhit string outer NULL
/declare groupac string outer NULL
/declare groupdodge string outer NULL
/declare defenseac string outer NULL
/declare DichoDisc string outer NULL
/declare aeroar string outer NULL
/declare aeselfbuff string outer NULL
/declare aehealhate string outer NULL
/declare singlehealhate string outer NULL
/declare aehitall string outer NULL
/declare StrikeDisc string outer NULL
/declare endregen string outer NULL
/declare Aura1 string outer NULL
/declare Aura2 string outer NULL
/declare Aura1Name string outer NULL
/declare Aura2Name string outer NULL
/declare ItemOoWBP string outer NULL
/declare ItemDipPapers string outer NULL
/declare BastionDisc string outer NULL
/declare shout string outer NULL
/declare insult string outer NULL
/declare roar string outer NULL
/declare PhantomDisc string outer NULL
/declare knuckle string outer NULL
/declare throat string outer NULL
/declare reprisal string outer NULL
/declare tongue string outer NULL
/declare attention string outer NULL
/declare FortitudeDiscID int outer 0
/declare CulminatingStandID int outer 0
/declare ACDiscID int outer 0
/declare PullTowards string outer NULL
/declare PosseSpell string outer Origin
/declare ChestItemName string outer "${Me.Inventory[17].Name}"
/declare ChestItemSpellName string outer NULL
/declare CastResult string outer
/return
|----------------------------------------------------------------------------
|- SUB: SetupDiscs
|----------------------------------------------------------------------------
Sub war_abilities
/if (${ChestItemName.Equal[Boreal Breastplate of Havok]}) {
/varset ChestItemSpellName Warrior's Awareness
}
| Roaring Shield
|--One off discs
/if (${Me.Level}>=106 && ${Me.CombatAbility[${Spell[Dissident Shield].RankName}]}) {
/varset DichoDisc ${Spell[Dissident Shield].RankName}
} else /if (${Me.Level}>=101 && ${Me.CombatAbility[${Spell[Dichotomic Shield].RankName}]}) {
/varset DichoDisc ${Spell[Dichotomic Shield].RankName}
}
/if (${Me.Level}>=106 && ${Me.CombatAbility[${Spell[PhantomDisc Aggressor].RankName}]}) {
/varset PhantomDisc ${Spell[PhantomDisc Aggressor].RankName}
}
/if (${Me.Level}>=106 && ${Me.CombatAbility[${Spell[Knuckle Crush].RankName}]}) {
/varset knuckle ${Spell[Knuckle Crush].RankName}
} else /if (${Me.Level}>=80 && ${Me.CombatAbility[${Spell[Knuckle Smash].RankName}]}) {
/varset knuckle ${Spell[Knuckle Smash].RankName}
}
/if (${Me.Level}>=73 && ${Me.CombatAbility[${Spell[Throat Jab].RankName}]}) {
/varset throat ${Spell[Throat Jab].RankName}
}
/if (${Me.Level}>=97 && ${Me.CombatAbility[${Spell[Determined Reprisal].RankName}]}) {
/varset reprisal ${Spell[Determined Reprisal].RankName}
}
/if (${Me.Level}>=107 && ${Me.CombatAbility[${Spell[Biting Tongue Discipline].RankName}]}) {
/varset tongue ${Spell[Biting Tongue Discipline].RankName}
}
/if (${Me.Level}>=107 && ${Me.CombatAbility[${Spell[Unyielding Attention].RankName}]}) {
/varset attention ${Spell[Unyielding Attention].RankName}
}
/if (${Me.Level}>=59 && ${Me.CombatAbility[${Spell[Fortitude Discipline].RankName}]}) {
/varset missall ${Spell[Fortitude Discipline].RankName}
/varset FortitudeDiscID ${Spell[Fortitude Discipline].ID}
}
/if (${Me.Level}>=102 && ${Me.CombatAbility[${Spell[Pain Doesn't Hurt].RankName}]}) /varset PDHDisc ${Spell[Pain Doesn't Hurt].RankName}
/if (${Me.Level}>=87 && ${Me.CombatAbility[${Spell[Flash of Anger].RankName}]}) /varset parryall ${Spell[Flash of Anger].RankName}
/if (${Me.Level}>=99 && ${Me.CombatAbility[${Spell[Wade in to Battle].RankName}]}) /varset aeselfbuff ${Spell[Wade in to Battle].RankName}
/if (${Me.Level}>=108 && ${Me.CombatAbility[${Spell[Concordant Precision].RankName}]}) {
/varset singlehealhate ${Spell[Concordant Precision].RankName}
} else /if (${Me.Level}>=103 && ${Me.CombatAbility[${Spell[Harmonious Precision].RankName}]}) {
/varset singlehealhate ${Spell[Harmonious Precision].RankName}
}
/if (${Me.Level}>=107 && ${Me.CombatAbility[${Spell[Concordant Expanse].RankName}]}) {
/varset aehealhate ${Spell[Concordant Expanse].RankName}
} else /if (${Me.Level}>=102 && ${Me.CombatAbility[${Spell[Harmonious Expanse].RankName}]}) {
/varset aehealhate ${Spell[Harmonious Expanse].RankName}
}
/if (${Me.Level}>=68 && ${Me.CombatAbility[${Spell[Commanding Voice].RankName}]}) /varset groupdodge ${Spell[Commanding Voice].RankName}
|---Melee Mitigation Disc
/if (${Me.Level}>=108 && ${Me.CombatAbility[${Spell[Culminating Stand Discipline].RankName}]}) {
/varset meleemit ${Spell[Culminating Stand Discipline].RankName}
/varset CulminatingStandID ${Spell[Culminating Stand Discipline].ID}
} else /if (${Me.Level}>=98 && ${Me.CombatAbility[${Spell[Last Stand Discipline].RankName}]}) {
/varset meleemit ${Spell[Last Stand Discipline].RankName}
} else /if (${Me.Level}>=72 && ${Me.CombatAbility[${Spell[Final Stand Discipline].RankName}]}) {
/varset meleemit ${Spell[Final Stand Discipline].RankName}
} else /if (${Me.Level}>=65 && ${Me.CombatAbility[${Spell[Stonewall Discipline].RankName}]}) {
/varset meleemit ${Spell[Stonewall Discipline].RankName}
} else /if (${Me.Level}>=55 && ${Me.CombatAbility[${Spell[Defensive Discipline].RankName}]}) {
/varset meleemit ${Spell[Defensive Discipline].RankName}
}
|---Defense AC Disc
/if (${Me.Level}>=110 && ${Me.CombatAbility[${Spell[Resolute Defense].RankName}]}) {
/varset defenseac ${Spell[Resolute Defense].RankName}
} else /if (${Me.Level}>=105 && ${Me.CombatAbility[${Spell[Stout Defense].RankName}]}) {
/varset defenseac ${Spell[Stout Defense].RankName}
} else /if (${Me.Level}>=100 && ${Me.CombatAbility[${Spell[Steadfast Defense].RankName}]}) {
/varset defenseac ${Spell[Steadfast Defense].RankName}
} else /if (${Me.Level}>=95 && ${Me.CombatAbility[${Spell[Stalwart Defense].RankName}]}) {
/varset defenseac ${Spell[Stalwart Defense].RankName}
} else /if (${Me.Level}>=90 && ${Me.CombatAbility[${Spell[Staunch Defense].RankName}]}) {
/varset defenseac ${Spell[Staunch Defense].RankName}
} else /if (${Me.Level}>=85 && ${Me.CombatAbility[${Spell[Bracing Defense].RankName}]}) {
/varset defenseac ${Spell[Bracing Defense].RankName}
} else /if (${Me.Level}>=81 && ${Me.CombatAbility[${Spell[Armor of Timeworn Runes].RankName}]}) {
/varset defenseac ${Spell[Armor of Timeworn Runes].RankName}
} else /if (${Me.Level}>=76 && ${Me.CombatAbility[${Spell[Armor of Draconic Runes].RankName}]}) {
/varset defenseac ${Spell[Armor of Draconic Runes].RankName}
} else /if (${Me.Level}>=70 && ${Me.CombatAbility[${Spell[Shocking Defence Discipline].RankName}]}) {
/varset defenseac ${Spell[Shocking Defence Discipline].RankName}
} else /if (${Me.Level}>=70 && ${Me.CombatAbility[${Spell[Aura of Runes Discipline].RankName}]}) {
/varset defenseac ${Spell[Aura of Runes Discipline].RankName}
}
/if (${Me.Level}>=85) {
/varset ACDiscID ${Spell[${defenseac}].ID}
}
|---Bulwark disc
/if (${Me.Level}>=109 && ${Me.CombatAbility[${Spell[Warrior's Bastion].RankName}]}) {
/varset BastionDisc ${Spell[Warrior's Bastion].RankName}
} else /if (${Me.Level}>=104 && ${Me.CombatAbility[${Spell[Warrior's Bulwark].RankName}]}) {
/varset BastionDisc ${Spell[Warrior's Bulwark].RankName}
}
|---Group AC Disc
/if (${Me.Level}>=110 && ${Me.CombatAbility[${Spell[Field Champion].RankName}]}) {
/varset groupac ${Spell[Field Champion].RankName}
} else /if (${Me.Level}>=105 && ${Me.CombatAbility[${Spell[Field Protector].RankName}]}) {
/varset groupac ${Spell[Field Protector].RankName}
} else /if (${Me.Level}>=100 && ${Me.CombatAbility[${Spell[Field Guardian].RankName}]}) {
/varset groupac ${Spell[Field Guardian].RankName}
} else /if (${Me.Level}>=95 && ${Me.CombatAbility[${Spell[Field Defender].RankName}]}) {
/varset groupac ${Spell[Field Defender].RankName}
} else /if (${Me.Level}>=90 && ${Me.CombatAbility[${Spell[Field Outfitter].RankName}]}) {
/varset groupac ${Spell[Field Outfitter].RankName}
} else /if (${Me.Level}>=85 && ${Me.CombatAbility[${Spell[Field Armorer].RankName}]}) {
/varset groupac ${Spell[Field Armorer].RankName}
}
|---AE Taunt
/if (${Me.Level}>=93 && ${Me.CombatAbility[${Spell[Roar of Challenge].RankName}]}) {
/varset aeroar ${Spell[Roar of Challenge].RankName}
} else /if (${Me.Level}>=88 && ${Me.CombatAbility[${Spell[Rallying Roar].RankName}]}) {
/varset aeroar ${Spell[Rallying Roar].RankName}
}
|---shout
/if (${Me.Level}>=108 && ${Me.CombatAbility[${Spell[Burning Shout].RankName}]}) {
/varset shout ${Spell[Burning Shout].RankName}
} else /if (${Me.Level}>=103 && ${Me.CombatAbility[${Spell[Tormenting Shout].RankName}]}) {
/varset shout ${Spell[Tormenting Shout].RankName}
} else /if (${Me.Level}>=98 && ${Me.CombatAbility[${Spell[Harassing Shout].RankName}]}) {
/varset shout ${Spell[Harassing Shout].RankName}
}
|---roar
/if (${Me.Level}>=106 && ${Me.CombatAbility[${Spell[Kluzen's Roar].RankName}]}) {
/varset roar ${Spell[Kluzen's Roar].RankName}
} else /if (${Me.Level}>=101 && ${Me.CombatAbility[${Spell[Cyclone Roar].RankName}]}) {
/varset roar ${Spell[Cyclone Roar].RankName}
} else /if (${Me.Level}>=96 && ${Me.CombatAbility[${Spell[Krondal's Roar].RankName}]}) {
/varset roar ${Spell[Krondal's Roar].RankName}
} else /if (${Me.Level}>=91 && ${Me.CombatAbility[${Spell[Grendlaen Roar].RankName}]}) {
/varset roar ${Spell[Grendlaen Roar].RankName}
} else /if (${Me.Level}>=86 && ${Me.CombatAbility[${Spell[Bazu Roar].RankName}]}) {
/varset roar ${Spell[Bazu Roar].RankName}
} else /if (${Me.Level}>=81 && ${Me.CombatAbility[${Spell[Bazu Bluster].RankName}]}) {
/varset roar ${Spell[Bazu Bluster].RankName}
} else /if (${Me.Level}>=69 && ${Me.CombatAbility[${Spell[Bazu Bellow].RankName}]}) {
/varset roar ${Spell[Bazu Bellow].RankName}
}
|---insult
/if (${Me.Level}>=108 && ${Me.CombatAbility[${Spell[Slander].RankName}]}) {
/varset insult ${Spell[Slander].RankName}
} else /if (${Me.Level}>=103 && ${Me.CombatAbility[${Spell[Insult].RankName}]}) {
/varset insult ${Spell[Insult].RankName}
} else /if (${Me.Level}>=98 && ${Me.CombatAbility[${Spell[Ridicule].RankName}]}) {
/varset insult ${Spell[Ridicule].RankName}
} else /if (${Me.Level}>=95 && ${Me.CombatAbility[${Spell[Scorn].RankName}]}) {
/varset insult ${Spell[Scorn].RankName}
} else /if (${Me.Level}>=90 && ${Me.CombatAbility[${Spell[Scoff].RankName}]}) {
/varset insult ${Spell[Scoff].RankName}
} else /if (${Me.Level}>=85 && ${Me.CombatAbility[${Spell[Jeer].RankName}]}) {
/varset insult ${Spell[Jeer].RankName}
} else /if (${Me.Level}>=80 && ${Me.CombatAbility[${Spell[Sneer].RankName}]}) {
/varset insult ${Spell[Sneer].RankName}
} else /if (${Me.Level}>=75 && ${Me.CombatAbility[${Spell[Scowl].RankName}]}) {
/varset insult ${Spell[Scowl].RankName}
} else /if (${Me.Level}>=70 && ${Me.CombatAbility[${Spell[Mock].RankName}]}) {
/varset insult ${Spell[Mock].RankName}
} else /if (${Me.Level}>=65 && ${Me.CombatAbility[${Spell[Bellow of the Mastruq].RankName}]}) {
/varset insult ${Spell[Bellow of the Mastruq].RankName}
} else /if (${Me.Level}>=65 && ${Me.CombatAbility[${Spell[Ancient Chaos Cry].RankName}]}) {
/varset insult ${Spell[Ancient Chaos Cry].RankName}
} else /if (${Me.Level}>=63 && ${Me.CombatAbility[${Spell[Incite].RankName}]}) {
/varset insult ${Spell[Incite].RankName}
} else /if (${Me.Level}>=56 && ${Me.CombatAbility[${Spell[Berate].RankName}]}) {
/varset insult ${Spell[Berate].RankName}
} else /if (${Me.Level}>=52 && ${Me.CombatAbility[${Spell[Bellow].RankName}]}) {
/varset insult ${Spell[Bellow].RankName}
} else /if (${Me.Level}>=20 && ${Me.CombatAbility[${Spell[Provoke].RankName}]}) {
/varset insult ${Spell[Provoke].RankName}
}
|---Strike
/if (${Me.Level}>=109 && ${Me.CombatAbility[${Spell[Cunning Strike].RankName}]}) {
/varset StrikeDisc ${Spell[Cunning Strike].RankName}
} else /if (${Me.Level}>=104 && ${Me.CombatAbility[${Spell[Calculated Strike].RankName}]}) {
/varset StrikeDisc ${Spell[Calculated Strike].RankName}
} else /if (${Me.Level}>=93 && ${Me.CombatAbility[${Spell[Vital Strike].RankName}]}) {
/varset StrikeDisc ${Spell[Vital Strike].RankName}
} else /if (${Me.Level}>=88 && ${Me.CombatAbility[${Spell[Strategic Strike].RankName}]}) {
/varset StrikeDisc ${Spell[Strategic Strike].RankName}
} else /if (${Me.Level}>=78 && ${Me.CombatAbility[${Spell[Opportunistic Strike].RankName}]}) {
/varset StrikeDisc ${Spell[Opportunistic Strike].RankName}
}
|---AE Hit all 50 range
/if (${Me.Level}>=109 && ${Me.CombatAbility[${Spell[Dragonstrike Blades].RankName}]}) {
/varset aehitall ${Spell[Dragonstrike Blades].RankName}
} else /if (${Me.Level}>=104 && ${Me.CombatAbility[${Spell[Stormstrike Blades].RankName}]}) {
/varset aehitall ${Spell[Stormstrike Blades].RankName}
} else /if (${Me.Level}>=99 && ${Me.CombatAbility[${Spell[Stormwheel Blades].RankName}]}) {
/varset aehitall ${Spell[Stormwheel Blades].RankName}
} else /if (${Me.Level}>=94 && ${Me.CombatAbility[${Spell[Cyclonic Blades].RankName}]}) {
/varset aehitall ${Spell[Cyclonic Blades].RankName}
} else /if (${Me.Level}>=89 && ${Me.CombatAbility[${Spell[Wheeling Blades].RankName}]}) {
/varset aehitall ${Spell[Wheeling Blades].RankName}
} else /if (${Me.Level}>=84 && ${Me.CombatAbility[${Spell[Maelstrom Blade].RankName}]}) {
/varset aehitall ${Spell[Maelstrom Blade].RankName}
} else /if (${Me.Level}>=79 && ${Me.CombatAbility[${Spell[Whorl Blade].RankName}]}) {
/varset aehitall ${Spell[Whorl Blade].RankName}
} else /if (${Me.Level}>=74 && ${Me.CombatAbility[${Spell[Vortex Blade].RankName}]}) {
/varset aehitall ${Spell[Vortex Blade].RankName}
} else /if (${Me.Level}>=69 && ${Me.CombatAbility[${Spell[Cyclone Blade].RankName}]}) {
/varset aehitall ${Spell[Cyclone Blade].RankName}
} else /if (${Me.Level}>=61 && ${Me.CombatAbility[${Spell[Whirlwind Blade].RankName}]}) {
/varset aehitall ${Spell[Whirlwind Blade].RankName}
}
|--- Shield Hit and Block
/if (${Me.Level}>=110 && ${Me.CombatAbility[${Spell[Shield Sunder].RankName}]}) {
/varset shieldhit ${Spell[Shield Sunder].RankName}
} else /if (${Me.Level}>=104 && ${Me.CombatAbility[${Spell[Shield Break].RankName}]}) {
/varset shieldhit ${Spell[Shield Break].RankName}
} else /if (${Me.Level}>=83 && ${Me.CombatAbility[${Spell[Shield Topple].RankName}]}) {
/varset shieldhit ${Spell[Shield Topple].RankName}
}
|---Fast Endurance regen
/if (${Me.Level}>=101 && ${Me.CombatAbility[${Spell[Breather].RankName}]}) {
/varset endregen ${Spell[Breather].RankName}
} else /if (${Me.Level}>=96 && ${Me.CombatAbility[${Spell[Rest].RankName}]}) {
/varset endregen ${Spell[Rest].RankName}
} else /if (${Me.Level}>=91 && ${Me.CombatAbility[${Spell[Reprieve].RankName}]}) {
/varset endregen ${Spell[Reprieve].RankName}
} else /if (${Me.Level}>=86 && ${Me.CombatAbility[${Spell[Respite].RankName}]}) {
/varset endregen ${Spell[Respite].RankName}
} else /if (${Me.Level}>=82 && ${Me.CombatAbility[${Spell[Fourth Wind].RankName}]}) {
/varset endregen ${Spell[Fourth Wind].RankName}
} else /if (${Me.Level}>=77 && ${Me.CombatAbility[${Spell[Third Wind].RankName}]}) {
/varset endregen ${Spell[Third Wind].RankName}
} else /if (${Me.Level}>=72 && ${Me.CombatAbility[${Spell[Second Wind].RankName}]}) {
/varset endregen ${Spell[Second Wind].RankName}
}
|---Aura usage
/if (${Me.Level}>=70 && ${Me.CombatAbility[${Spell[Champion's Aura].RankName}]}) {
/varset Aura1 ${Spell[Champion's Aura].RankName}
} else /if (${Me.Level}>=55 && ${Me.CombatAbility[${Spell[Myrmidon's Aura].RankName}]}) {
/varset Aura1 ${Spell[Myrmidon's Aura].RankName}
}
/if (${Me.AltAbility[692].Name.Find[disabled]} && ${Me.AltAbilityReady[692]}) {
/alt act 692
/delay 2s
}
/if (${Me.AltAbility[684].Name.Find[disabled]} && ${Me.AltAbilityReady[684]}) {
/alt act 684
/delay 2s
}
/if (${Me.AltAbility[1126].Name.Find[disabled]} && ${Me.AltAbilityReady[1126]}) {
/alt act 1126
/delay 2s
}
/if (${Me.AltAbility[2001].Name.Find[disabled]} && ${Me.AltAbilityReady[2001]}) {
/alt act 2001
/delay 2s
}
/if (${Me.AltAbilityReady[Warlord's Grasp]}) {
/varset PullTowards Warlord's Grasp
}
/if (${FindItem[Gladiator's Plate Chestguard of War].ID}) /varset ItemOoWBP Gladiator's Plate Chestguard of War
/if (${FindItem[Diplomatic Papers].ID}) /varset ItemDipPapers Diplomatic Papers
/if (${Me.CombatAbility[${insult}]}) {
/varset pullAbility ${insult}
/varset pullDistance 90
} else {
/varset pullAbility ${Spell[Throw Stone].RankName}
/varset pullDistance 55
}
/return