-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhookstar_drg.lua
406 lines (345 loc) · 10.4 KB
/
hookstar_drg.lua
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
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
function get_sets()
------- out of battle sets
sets.idle = {
main = "Gungnir", sub ="Pole Grip", ammo="Bibiki Seashell", head="Ace's Helm", neck="Orochi Nodowa +1", lear="Merman's Earring",
body="Nocturnus Mail", hands="homam manopolas", ring1="Rajas Ring", rear="Merman's Earring",
waist="velocious belt", ring2="Serket Ring", back="Cerb. Mantle +1", legs="Blood Cuisses",
feet="Askar Gambieras"
}
------- melee sets (stats are /blu)
sets.melee = {}
sets.melee.easy = {
-- 399 acc, 22/21% Haste
-- 465 attack, STR+26
-- +11 Store TP, +9% Double Attack
-- 267 defense, 298 evasion
head ="Ace's Helm",
body ="Nocturnus Mail",
ammo ="White Tathlum",
hands ="Homam Manopolas",
legs ="Homam Cosciales",
feet ="Homam Gambieras",
neck ="Ancient Torque",
waist ="velocious belt",
left_ear ="Ethereal Earring",
right_ear ="Brutal Earring",
left_ring ="Rajas Ring",
right_ring ="Blitz Ring",
back ="Cerb. Mantle +1",
}
sets.melee.colibri = set_combine(sets.melee.easy,{ -- Greater Colibri
-- 407 acc, 21/20% haste
-- 505 attack, STR+31
-- +12d Store TP, +9% Double Attack
-- 295 defense, 291 evasion
head ="Ace's Helm",
-- (acc cap: 398 on lv81, 407 on lv82)
})
sets.melee.medium = set_combine(sets.melee.easy,{
-- 428/421 acc, 20% haste
-- 463 attack, STR+23
-- +11 Store TP, +9% Double Attack
-- 296 defense, 291 evasion
head ="Ace's Helm",
neck ="Ire Torque +1",
right_ring ="Toreador's Ring",
})
sets.melee.hard = set_combine(sets.melee.medium,{
-- 440/437 acc, 19% haste
-- 440 attack, STR+23
-- +11 Store TP, +9% Double Attack
-- 286 defense, 291 evasion
back ="Cuchulain's Mantle",
hands ="Homam Manopolas",
})
sets.melee.acc = set_combine(sets.melee.hard,{
-- 475/468 acc, 9% haste
-- 416 attack, STR+9
-- +1 Store TP, +7% Double Attack
-- 260 defense, 308 evasion
head ="Optical Hat",
body ="Hydra Mail +1",
left_ring ="Toreador's Ring",
})
------- ranged sets
sets.ranged = {
}
------- WS sets
sets.ws = {}
sets.ws.acc = {}
sets.ws.acc.easy = set_combine(sets.melee.easy,{
head ="Hecatomb Cap +1",
body ="Nocturnus Mail",
hands ="Hct. Mittens +1",
legs ="Hct. Subligar +1",
feet ="Hct. Leggings +1",
neck ="Fotia Gorget",
waist ="Warwolf Belt",
left_ear ="Harmonius Earring",
right_ear ="Brutal Earring",
left_ring ="Rajas Ring",
right_ring ="Strigoi Ring",
back ="Cerb. Mantle +1",
})
sets.ws.acc.colibri = sets.melee.acc.easy
sets.ws.acc.medium = set_combine(sets.melee.medium,{
head ="Hecatomb Cap +1",
body ="Hct. Harness +1",
hands ="Hct. Mittens +1",
legs ="Hct. Subligar +1",
feet ="Hct. Leggings +1",
neck ="Fotia Gorget",
waist ="Virtuoso Belt",
left_ear ="Assault Earring",
right_ear ="Harmonius Earring",
left_ring ="Rajas Ring",
right_ring ="Toreador's Ring",
back ="Cerb. Mantle +1",
})
sets.ws.acc.hard = set_combine(sets.ws.medium,{
left_ring ="Toreador's Ring",
})
sets.ws.acc.acc = set_combine(sets.ws.hard,{
head = "Optical Hat",
back = "Cuchulain's Mantle",
})
sets.ws.str = {
head ="Hecatomb Cap +1",
body ="Nocturnus Mail",
hands ="Alkyoneus's Bracelets",
legs ="Hct. Subligar +1",
feet ="Hct. Leggings +1",
neck ="Fotia Gorget",
waist ="Warwolf Belt",
left_ear ="Harmonius Earring",
right_ear ="Harmonius Earring",
left_ring ="Rajas Ring",
right_ring ="Strigoi Ring",
back ="Cerb. Mantle +1",
}
------- ability sets
sets.hp = { -- HP+ used in Breath triggering and Spirit Link HP given
head = "Wyvern Helm +1",
body = "Blood Scale Mail",
ammo = "White Tathlum",
hands = "Alkyoneus's Bracelets",
legs = "Dusk Trousers +1",
feet = "Homam Gambieras",
-- neck = "Bloodbead Gorget",--get Tethra
waist = "Ocean Sash", --
left_ear = "Harmonius Earring",
left_ring = "Bomb Queen Ring",
right_ring = "Bloodbead Ring",--get Bloodsucker_(NM)
back = "Gigant Mantle",
right_ear = "Cassie Earring",
}
sets.breath = set_combine(sets.hp,{
head = "Drachen Armet +1", -- for higher trigger treshold
})
sets.spirit = set_combine(sets.hp,{ -- HP+
})
sets.breathpotency = { -- Wym. Armet +1 and Wyvern HP+ here
head = "Wym. Armet +1",
legs = "Drachen Brais +1",
body = "Wyvern Mail",
hands = "Ostreger Mitts",
feet = "Homam Gambieras",
left_ear = "Dragoon's Earring",
neck = "Chanoix's Gorget",
}
sets.jump = { -- STR/Accuracy/VIT/Attack + Drachen Greaves
head ="Hecatomb Cap +1",
body ="Nocturnus Mail",
hands ="Alkyoneus's bracelets",
legs ="Conte cosciales",
feet ="Skanda Boots",
--feet ="Drachen Greaves",
neck ="Ancient Torque",
waist ="Warwolf Belt",
left_ear ="Harmonius Earring",
right_ear ="Brutal Earring",
left_ring ="Strigoi Ring",
right_ring ="Toreador's Ring",
back ="Cerb. Mantle +1",
}
sets.highjump = set_combine(sets.jump,{ -- Wym. Brais +1 +DA
legs = "Wym. Brais +1"
})
sets.steps = set_combine(sets.melee.acc,{
})
sets.circle = {
legs = "Drn. Brais +1"
}
sets.callwyvern = {
body = "Wym. Mail +1"
}
sets.angon = {
left_ear = "Dragoon's Earring",
}
------- other sets
sets.eva = { -- never used on its own
head ="Wivre Mask +1",
body ="Hydra Mail +1",
hands ="River Gauntlets",
legs ="Raven Hose",
feet ="Askar Gambieras",
neck ="Evasion Torque",
waist ="Warwolf Belt",
left_ear ="Triton Earring",
right_ear ="Novia Earring",
left_ring ="Succor Ring",
right_ring ="Defending Ring",
back ="Boxer's Mantle",
}
sets.fcast = {
right_ear = "Loquac. Earring",
}
sets.fcasthaste = {
head = "Walahra Turban",
body = "Wym. Mail +1",
hands = "Dusk Gloves +1",
feet = "Homam Gambieras",
waist = "velocious belt",
right_ring = "Blitz Ring",
right_ear = "Loquac. Earring",
}
sets.rest = {
head ="Sol Cap",
}
------- weapons
sets.weapons = {}
sets.weapons.main = {
main = "Gungnir",
sub = "Pole Grip",
ammo = "Black Tathlum",
}
sets.weapons.angon = {
ammo = "Angon",
}
end
-------- MAIN -----------------------------------------------------------------------------------------------------------------
function precast(spell, spellMap, action)
if spell.type:contains('Step') then
equip(sets.steps)
elseif spell.name == 'Angon' then
equip(sets.angon,sets.weapons.angon)
windower.add_to_chat(80,"Angon set")
elseif spell.type == 'WeaponSkill' then
if spell.name == 'Penta Thrust' then
equip(sets.ws.str[mode])
windower.add_to_chat(80,"WS (acc) in " .. mode .. " mode")
elseif spell.name == 'Geirskogul' then --Geirskogul
equip(sets.ws.str)
end
elseif spell.action_type == 'Ranged Attack' then
equip(sets.ranged)
elseif spell.name == 'Ancient Circle' then
equip(sets.circle)
elseif spell.name == 'Spirit Link' then
equip(sets.spirit)
elseif spell.name == 'Jump' then
equip(sets.jump)
elseif spell.name == 'High Jump' then
equip(sets.highjump)
elseif spell.name == 'Call Wyvern' then
equip(sets.callwyvern)
elseif spell.name:contains('Utsusemi') then
equip(sets.eva,sets.fcast)
elseif spell.type:contains('Magic') then
equip(sets.fcast)
end
end
function midcast(spell)
if spell.name:contains('Utsusemi') then
equip(sets.eva,sets.fcasthaste)
end
-- equip breath gear when casting magic
if spell.type:contains('Magic') then
equip(sets.breath)
end
-- cancellations for your pleasure
if spell.name == "Sneak" or spell.name == "Spectral Jig" then send_command("cancel sneak") end
if spell.name == "Stoneskin" then send_command("wait 4;cancel stoneskin"); end
if spell.name == "Reraise" then send_command("cancel reraise"); end
if spell.name == "Blink" then send_command("wait 4;cancel blink"); end
if spell.name == "Aquaveil" then send_command("wait 4;cancel aquaveil"); end
if spell.name == "Ice Spikes" then send_command("cancel Ice spikes"); end
if spell.name == "Shock Spikes" then send_command("cancel shock spikes"); end
if spell.name == "Phalanx" then send_command("cancel phalanx"); end
end
function pet_midcast(spell)
-- breath potency when pet uses Breath
if spell.name:contains('Breath') then
equip(sets.breath,sets.breathpotency)
end
end
function aftercast(spell)
-- de-equip Angon
if spell.name == "Angon" then
equip(sets.weapons.main)
end
-- return to previous state
if player.status == 'Engaged' then
equip_Attackmode(mode)
else
equip_idle()
end
end
function pet_aftercast(spell)
if spell.name:contains('Breath') then
-- return to previous state
if player.status == 'Engaged' then
equip_Attackmode(mode)
else
equip_idle()
end
end
end
function status_change(new,old)
if new == 'Engaged' then
equip_Attackmode(mode)
elseif new == 'Resting' then
equip_rest()
else
equip_idle()
end
end
-------- EQUIP AFTER STATUS CHANGE ----------------------------------------------------------------------------------------------
function equip_Attackmode()
equip(sets.melee[mode])
if dring then equip({right_ring="Defending Ring"}) end
end
function equip_idle()
equip(sets.idle)
end
function equip_rest()
equip(sets.rest)
end
-------- CUSTOM -----------------------------------------------------------------------------------------------------------------
function self_command(command)
if command == 'easy'
or command == 'colibri'
or command == 'medium'
or command == 'hard'
or command == 'acc' then
mode = command
if player.status == "Engaged" then
equip_Attackmode(mode) -- if engaged, switch immediately
end
windower.add_to_chat(80,'Engaged mode: ' .. mode)
elseif command == 'dring' then
if dring == false then
dring = true
equip({right_ring="Defending Ring"}) -- use immediately
windower.add_to_chat(80,'Using Defending Ring in melee set.')
else
dring = false
windower.add_to_chat(80,'Using ring from melee set.')
end
end
end
-------- INITIALIZATION----------------------------------------------------------------------------------------------------------
mode = "colibri"
dring = false
send_command('input /macro book 8; wait 0.1; input /macro set 1')
windower.add_to_chat(80,'Not using Dring - Colibri mode')