-
Notifications
You must be signed in to change notification settings - Fork 0
/
mnk.inc
339 lines (283 loc) · 10.8 KB
/
mnk.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
Sub mnk_main
/while (${Me.XTarget} && ${Mode} == 3) {
/call move_to_camp
/call get_target
/call engage
/call Defense
/call CombatdpsDiscs
/call Defense
/call CombatdpsItems
/call CombatdpsMash
/call Defense
/call DoNamed
/call check_state
}
/call mnk_self_buffs
/return
sub mnk_combat_buffs
/return
sub mnk_get_aggro
/call CombatdpsMash
/delay 1s
/return
sub mnk_self_buffs
/if (!${Me.Buff[Levitation].ID}) {
|/target id ${Me.ID}
|/delay 5
|/useitem "Pegasus Feather Cloak"
/target id ${Me.ID}
/delay 8
/useitem "Pegasus Feather Cloak"
/delay 8
/delay 30s !${Me.Casting.ID}
}
/if (!${Me.Buff[Spinecoat].ID}) {
/target id ${Me.ID}
/delay 8
/useitem "Violet Conch of the Tempest"
/delay 8
/delay 30s !${Me.Casting.ID}
}
/if (!${Me.Buff[Twitching Speed].ID}) {
/target id ${Me.ID}
/delay 8
/useitem "Lizardscale Plated Girdle"
/delay 8
/delay 30s !${Me.Casting.ID}
}
/return
|----------------------------------------------------------------------------
|- SUB: Defense
|----------------------------------------------------------------------------
Sub Defense
/if (${check_for_named[FALSE]} || ${Me.XTarget} > 2) {
/if (${Me.ActiveDisc.ID}) {
/if (${Me.ActiveDisc.ID} != ${Spell[${EarthForce}].ID} && ${Me.ActiveDisc.ID} != ${Spell[${Heel}].ID} && ${Me.ActiveDisc.ID} != ${Spell[${Palm}].ID} && ${Me.ActiveDisc.ID} != ${Spell[${Speed}].ID}) {
/stopdisc
}
}
/if (${validate_cast[FALSE, disc, ${EarthForce}, ${Me.ID}]}) /call core_cast2 ${EarthForce} disc 0 FALSE
/if (${Me.PctHPs} < 50) {
/if (${validate_cast[FALSE, disc, ${RejectDeath}, ${Me.ID}]}) /call core_cast2 ${RejectDeath} disc 0 FALSE
}
}
/if (${Me.AbilityReady[Mend]} && ${Me.PctHPs} < 50) {
/doability Mend
/delay 1
}
/if (${Me.Poisoned.ID} || ${Me.Diseased.ID} || ${Me.Cursed.ID} || ${Me.Corrupted.ID} || ${Me.Snared.ID} || ${Me.Mezzed.ID} || ${Me.Charmed.ID}) {
/if (${validate_cast[FALSE, alt, "Purify Body", ${Me.ID}]}) /call core_cast2 "Purify Body" alt 0 FALSE
}
/if (${FindItem[Diplomatic Papers].Timer.TotalSeconds}==0 && ${Target.PctHPs}>10 && !${Me.Casting.ID} && !${Me.Moving} && ${Me.PctHPs} < 55) {
/useitem "Diplomatic Papers"
/delay 5
}
/if (${FindItem[Overflowing Urn of Life].Timer.TotalSeconds}==0 && !${Me.Casting.ID} && !${Me.Moving} && ${Me.PctHPs} < 70) {
/useitem "Overflowing Urn of Life"
/delay 5
}
/if (${check_for_named[FALSE]} || ${Me.XTarget} > 2) {
/if (${FindItem[Blood Drinker's Coating].Timer.TotalSeconds}==0 && ${Target.PctHPs}>10 && !${Me.Casting.ID} && !${Me.Moving} && ${Me.PctHPs} < 60) {
/useitem "Blood Drinker's Coating"
/delay 5
}
}
/return
|----------------------------------------------------------------------------
|- SUB: Combatdps Discs
|----------------------------------------------------------------------------
Sub CombatdpsDiscs
/if (${Me.AltAbilityReady[Vehement Rage]} && ${Target.PctHPs}>10 && !${Me.Song[Infusion of Thunder].ID}) {
/alt act 800
/delay 2
}
/if (${Me.AltAbilityReady[Five Point Palm]} && !${Target.Buff[Sarnak Finesse].ID} && ${Target.PctHPs}>50 && ${Target.PctHPs}<95) {
/if (!${Me.ActiveDisc.ID} && ${Me.CombatAbilityReady[${Iron}]}) {
/if (${validate_cast[FALSE, alt, "Swift Tails' Chant", ${Me.ID}]}) /call core_cast2 "Swift Tails' Chant" alt 0 FALSE
/Disc ${Iron}
/delay 5
/doability "${DichoSpell}"
/delay 8
/Disc ${Crane}
/delay 6
/alt act 1012
} else /if (!${Me.ActiveDisc.ID} && ${Me.CombatAbilityReady[${Palm}]} && ${Me.AltAbilityReady[Five Point Palm]}) {
/if (${validate_cast[FALSE, alt, "Focused Destructive Force", ${Me.ID}]}) /call core_cast2 "Focused Destructive Force" alt 0 FALSE
/if (${Me.CombatAbilityReady[${Poise}]}) {
/Disc ${Poise}
/delay 3
}
/if (${validate_cast[FALSE, alt, "Swift Tails' Chant", ${Me.ID}]}) /call core_cast2 "Swift Tails' Chant" alt 0 FALSE
/Disc ${Palm}
/delay 5
/doability "${DichoSpell}"
/delay 8
/Disc ${Crane}
/delay 6
/alt act 1012
} else {
/doability "${DichoSpell}"
/delay 8
/Disc ${Crane}
/delay 6
/alt act 1012
}
}
/if (${Me.CombatAbilityReady[${Storm}]} && !${Me.ActiveDisc.ID} && ${Target.PctHPs}>5 && !${check_for_named[FALSE]}) {
/Disc ${Storm}
/delay 2
}
/return
|----------------------------------------------------------------------------
|- SUB: Combatdps Items
|----------------------------------------------------------------------------
Sub CombatdpsItems
/if (${FindItem[Transcendent's Phlogiston Tunic].Timer.TotalSeconds}==0 && ${Target.PctHPs}<98 && ${Target.PctHPs}>5 && !${Me.Casting.ID} && !${Me.Moving}) {
/useitem "Transcendent's Phlogiston Tunic"
/delay 5
}
/if (${FindItem[Transcended Fistwraps of Immortality].Timer.TotalSeconds}==0 && ${Target.PctHPs}>10 && !${Me.Casting.ID} && !${Me.Moving} && !${Me.ActiveDisc.ID}) {
/useitem "Transcended Fistwraps of Immortality"
/delay 5
}
/if (${FindItem[Miniature Horn of Unity].Timer.TotalSeconds}==0 && ${Target.PctHPs}>10 && !${Me.Casting.ID} && !${Me.Moving} && !${Me.ActiveDisc.ID}) {
/useitem "Miniature Horn of Unity"
/delay 5
}
/return
|----------------------------------------------------------------------------
|- SUB: Combatdps Mash
|----------------------------------------------------------------------------
Sub CombatdpsMash
/if (${Me.AltAbilityReady[Zan Fi's Whistle]} && ${Target.PctHPs}>1) {
/alt act 7001
/delay 3
}
/if (${Me.AltAbilityReady[Two-Finger Wasp Touch]} && (${Target.PctHPs}>50 || ${Target.Named} || ${Target.Level}>(${Me.Level}+3))) {
/alt act 1235
/delay 3
}
|**
/if (${Me.CombatAbilityReady[${Drunken}]} && ${Me.PctEndurance}>=20 && ${Target.PctHPs}>10) {
/Disc ${Drunken}
/delay 3
}
**|
/if (${Me.CombatAbilityReady[${Curse}]} && ${Me.PctEndurance}>=5 && ${Target.PctHPs}>5) {
/Disc ${Curse}
/delay 3
}
/if (${Me.CombatAbilityReady[${Synergy}]} && ${Me.PctEndurance}>=5 && ${Target.PctHPs}>1) {
/Disc ${Synergy}
/delay 3
}
/if (${Me.CombatAbilityReady[${Fang}]} && ${Me.PctEndurance}>=5 && ${Target.PctHPs}>1) {
/Disc ${Fang}
/delay 3
}
/if (${Me.CombatAbilityReady[${Fists}]} && ${Me.PctEndurance}>=5 && ${Target.PctHPs}>1) {
/Disc ${Fists}
/delay 3
}
/if (${Me.CombatAbilityReady[${Precision}]} && ${Me.PctEndurance}>=5 && ${Target.PctHPs}>1) {
/Disc ${Precision}
/delay 3
}
/if (${Me.CombatAbilityReady[${Shuriken}]} && ${Me.PctEndurance}>=5 && ${Target.PctHPs}>1) {
/Disc ${Shuriken}
/delay 3
}
/if (${Me.AbilityReady[Intimidation]}) {
/doability Intimidation
/delay 3
}
/if (${Me.CombatAbilityReady[${Synergy}]} && ${Me.PctEndurance}>=5 && ${Target.PctHPs}>1) {
/Disc ${Synergy}
/delay 3
}
/return
|----------------------------------------------------------------------------
|- SUB: DoNamed
|----------------------------------------------------------------------------
Sub DoNamed
|/if (${validate_cast[FALSE, alt, "Silent Strikes", ${Me.ID}]}) /call core_cast2 "Silent Strikes" alt 0 FALSE
/if (${check_for_named[FALSE]}) {
/if (${validate_cast[FALSE, alt, "Swift Tails' Chant", ${Me.ID}]}) /call core_cast2 "Swift Tails' Chant" alt 0 FALSE
/if (${validate_cast[FALSE, disc, "${Drunken}", ${Me.ID}]}) /call core_cast2 "${Drunken}" disc 0 FALSE
/if (${Me.ActiveDisc.ID} != ${Spell[${EarthForce}].ID} && ${Me.ActiveDisc.ID} != ${Spell[${Heel}].ID} && ${Me.ActiveDisc.ID} != ${Spell[${Palm}].ID} && ${Me.ActiveDisc.ID} != ${Spell[${Speed}].ID}) {
/stopdisc
}
/if (${validate_cast[FALSE, alt, "Swift Tails' Chant", ${Me.ID}]}) /call core_cast2 "Swift Tails' Chant" alt 0 FALSE
/if (${Me.CombatAbilityReady[${Heel}]} && !${Me.ActiveDisc.ID}) {
/if (${validate_cast[FALSE, alt, "Infusion of Thunder", ${Target.ID}]}) /call core_cast2 "Infusion of Thunder" alt ${Target.ID} FALSE
/if (${validate_cast[FALSE, alt, "Spire of the Sensei", ${Me.ID}]}) /call core_cast2 "Spire of the Sensei" alt 0 FALSE
/if (${validate_cast[FALSE, alt, "${DichoSpell}", ${Me.ID}]}) /call core_cast2 "${DichoSpell}" alt 0 FALSE
/if (${Me.CombatAbilityReady[${Crane}]}) {
/Disc ${Crane}
/delay 6
}
/if (${Me.AltAbilityReady[Five Point Palm]}) {
/alt act 1012
/delay 5
}
/delay 2
/Disc ${Heel}
/delay 5
} else /if (!${Me.CombatAbilityReady[${Heel}]} && ${Me.CombatAbilityReady[${Palm}]} && !${Me.ActiveDisc.ID}) {
/if (${validate_cast[FALSE, alt, "Focused Destructive Force", ${Me.ID}]}) /call core_cast2 "Focused Destructive Force" alt 0 FALSE
/if (${Me.CombatAbilityReady[${Poise}]}) {
/Disc ${Poise}
/delay 3
}
/if (${Me.CombatAbilityReady[${DichoSpell}]}) {
/doability "${DichoSpell}"
/delay 8
}
/if (${Me.CombatAbilityReady[${Crane}]}) {
/Disc ${Crane}
/delay 2
}
/if (${validate_cast[FALSE, alt, "Five Point Palm", ${Target.ID}]}) /call core_cast2 "Five Point Palm" alt ${Target.ID} FALSE
/Disc ${Palm}
/delay 5
} else /if (!${Me.CombatAbilityReady[${Heel}]} && !${Me.CombatAbilityReady[${Palm}]} && ${Me.CombatAbilityReady[${Speed}]} && !${Me.ActiveDisc.ID}) {
/if (${validate_cast[FALSE, alt, "Infusion of Thunder", ${Me.ID}]}) /call core_cast2 "Infusion of Thunder" alt ${Target.ID} FALSE
/if (${validate_cast[FALSE, alt, "Spire of the Sensei", ${Me.ID}]}) /call core_cast2 "Spire of the Sensei" alt 0 FALSE
/if (${validate_cast[FALSE, alt, "Ton Po's Stance", ${Me.ID}]}) /call core_cast2 "Ton Po's Stance" alt 0 FALSE
/if (${Me.CombatAbilityReady[${DichoSpell}]}) {
/doability "${DichoSpell}"
/delay 8
}
/if (${Me.CombatAbilityReady[${Crane}]}) {
/Disc ${Crane}
/delay 2
}
/if (${validate_cast[FALSE, alt, "Five Point Palm", ${Target.ID}]}) /call core_cast2 "Five Point Palm" alt ${Target.ID} FALSE
/Disc ${Speed}
/delay 5
} else /if (!${Me.ActiveDisc.ID}) {
/if (${validate_cast[FALSE, alt, "Focused Destructive Force", ${Me.ID}]}) /call core_cast2 "Focused Destructive Force" alt 0 FALSE
/if (${Me.CombatAbilityReady[${Poise}]}) {
/Disc ${Poise}
/delay 3
}
/if (${validate_cast[FALSE, alt, "Infusion of Thunder", ${Me.ID}]}) /call core_cast2 "Infusion of Thunder" alt 0 FALSE
/if (${validate_cast[FALSE, alt, "Spire of the Sensei", ${Me.ID}]}) /call core_cast2 "Spire of the Sensei" alt 0 FALSE
/Disc ${Storm}
/delay 5
}
}
/return
|----------------------------------------------------------------------------
|- SUB: DowntimeDiscs
|----------------------------------------------------------------------------
Sub DowntimeDiscs
/if (${Me.PctEndurance}<15 && ${Me.Endurance}>313 && ${Me.CombatAbilityReady[${endregen}]} && !${Me.CombatState.Equal[combat]} && !${Me.Invis}) {
/disc ${endregen}
/delay 5
}
/if (!${Spell[${Me.Aura[1]}].ID} && !${Me.Moving} && !${Me.Invis} && ${Me.State.NotEqual[FEIGN]} && ${Me.CombatAbility[${Spell[${mnkaura}].RankName}]} && ${Me.PctEndurance}>10) {
/disc ${mnkaura}
/delay 8s
}
/return