-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTruescorpio_Brd.lua
363 lines (334 loc) · 9.18 KB
/
Truescorpio_Brd.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
function get_sets()
debug('Rommi>> <3')
-- Idle Sets --
sets.Idle = {
main="Carnwenhan",
sub="Genbu's Shield",
head="Nyame helm",
neck="Loricate torque +1",
ear1="Mendicant's Earring",
ear2="Etiolation earring",
body="Nyame mail",
hands="Nyame gauntlets",
ring1="Dark Ring",
ring2="Defending ring",
back="Intarabus cape",
waist="Flume belt",
legs="Nyame flanchard",
feet="Nyame sollerets"}
sets.Resting = {
main="Boonwell Staff",
sub="",
range="Gjallarhorn",
head="",
body="",
hands="",
legs="",
feet="",
neck="Loricate torque +1",
waist="Flume Belt",
left_ear="Moonshade Earring",
right_ear="Etiolation Earring",
left_ring="",
right_ring="",
back="Intarabus Cape",
}
-- JA Sets --
sets.JA = {}
sets.JA.Nightingale = {feet="Bihu Slippers +3"}
sets.JA.Troubadour = {body="Bihu Justaucorps +3"}
sets.JA["Soul Voice"] = {legs="Bihu cannions +3"}
-- Song Precast Set --
sets.Precast = {}
sets.Precast.SongCast = {
main="Kali",
head="Fili Calot +2",
neck="Loricate torque +1",
ear1="Etiolation earring",
ear2="Enchanter's earring +1",
body="Inyanga jubbah +2",
hands="Brioso cuffs +3",
ring1="Kishar ring",
ring2="Defending ring",
back="Intarabus's cape",
waist="Flume belt",
legs="Ayanmo cosciales +2",
feet="Fili cothurnes +1"}
-- Fastcast Set --
sets.Precast.FastCast = {
main="Kali",
sub="Genmei Shield",
range="Gjallarhorn",
head="Fili calot +2",
body="Inyanga Jubbah +2",
hands="Gende. Gages +1",
legs="Doyen pants",
feet="Bihu slippers +3",
neck="Orunmila's Torque",
waist="Witful belt",
left_ear="Enchanter's earring +1",
right_ear="Etiolation Earring",
left_ring="Kishar Ring",
right_ring="",
back="",
}
-- Cure Precast Set --
sets.Precast.Cure = {
main="Carnwenhan",
sub="Genbu's Shied",
range="Gjallarhorn",
head="Vanya Hood",
body="Kaykaus Bliaut",
hands="Revealer's Mitts",
legs="Doyen pants",
feet="Kaykaus Boots",
neck="Bard's Charm +1",
waist="Luminary Sash",
left_ear="Mendi. Earring",
right_ear="Beatific Earring",
left_ring="Karka Ring",
right_ring="Ephedra Ring",
back="Pahtli Cape",}
sets.Midcast = {}
-- Song Debuff Set --
sets.Midcast.Wind ={
main="Carnwenhan",
sub="Ammurapi shield",
range="Gjallarhorn",
head="Brioso roundlet +2",
neck="Moonbow Whistle +1",
ear1="Regal earring",
ear2="Dignitary's earring",
body="Brioso justaucorps +3",
hands="Brioso cuffs +3",
ring1="Stikini ring +1",
ring2="Stikini ring",
back="Intarabus's cape",
waist="Luminary sash",
legs="Brioso cannions +2",
feet="Brioso slippers +3"}
-- Song Buff Set --
sets.Midcast.WindBuff = {
main="Carnwenhan",
range="",
head="Fili calot +2",
body="Fili hongreline +2",
hands="Fili manchettes +1",
legs="Inyanga Shalwar +2",
feet="Brioso Slippers +3",
neck="Moonbow Whistle +1",
waist="Ovate rope",
ear1="",
ear2="Aoidos' Earring",
ring1="Dawnsoul ring",
back="Kumbira cape",
}
sets.Midcast.March = {hands="Fili manchettes +1"}
sets.Midcast.Minuet = {body="Fili hongreline +2"}
sets.Midcast.Madrigal = {head="Fili calot +2"}
sets.Midcast.Ballad = {legs="Fili rhingrave +1"}
sets.Midcast.Scherzo = {feet="Fili cothurnes +1"}
sets.Midcast.Mazurka = {head=""}
sets.Midcast.Paeon = {head="Brioso Roundlet +2"}
sets.Midcast.Finale = {}
sets.Midcast.Lullaby = {
main = "Carnwenhan",
sub = "Ammurapi",
range = "Daurdabla",
head = "Brioso roundlet +3",
neck = "Moonbow whistle +1",
ear1 = "Dignitary's earring",
ear2 = "Regal earring",
body = "Fili hongreline +2",
hands = "Brioso cuffs +3",
ring1 = "Stikini ring +1",
ring2 = "Stikini ring",
back = "Intarabus cape",
waist = "Acuity Belt +1",
legs = "Inyanga shalwar +2",
feet = "Brioso slippers +3",
}
-- Cure Set --
sets.Midcast.Cure = {
main="Daybreak",
sub="Achaq grip",
head={ name="Vanya Hood", augments={'MP+50','"Cure" potency +7%','Enmity-6',}},
neck="Colossus's torque",
ear1="Loquac. Earring",
ear2="Beatific earring",
body="Kaykaus bliaut",
hands="Revealer's mitts",
ring1="Ephedra ring",
ring2="Sirona's ring",
back="Pahtli cape",
waist="Cascade belt",
legs="Kaykaus tights",
feet="Medium's sabots"}
-- Curaga Set --
sets.Midcast.Curaga = {
main="Serenity",
sub={ name="Genbu's Shield", augments={'"Cure" potency +4%','"Cure" spellcasting time -8%',}},
range="Gjallarhorn",
head={ name="Vanya Hood", augments={'MP+50','"Cure" potency +7%','Enmity-6',}},
body="Kaykaus Bliaut",
hands="Revealer's Mitts",
legs="Doyen pants",
feet="Kaykaus Boots",
neck="Bard's Charm +1",
waist="Luminary Sash",
left_ear="Mendi. Earring",
right_ear="Beatific Earring",
left_ring="Karka Ring",
right_ring="Ephedra Ring",
back="Pahtli Cape",}
-- Haste Set --
sets.Midcast.Haste = set_combine(sets.Precast.FastCast,{
head="Nahtirah Hat",
neck="Moonbow Whistle +1",
ear1="Loquac. Earring",
body="",
hands="Gendewitha Gages +1",
ring1="Prolix Ring",
ring2="Weatherspoon ring",
back="Swith Cape +1",
waist="Witful belt",
legs="Bihu Cannions +3",
feet="Brioso Slippers +2"})
-- Cursna Set --
sets.Midcast.Cursna =
{main="Queller rod",
sub="Sors shield",
ammo="Incantor Stone",
head="Vanya hood",
neck="Malison medallion",
ear1="Nourishing earring",
ear2="Glorious earring",
body="",
hands="Fanatic gloves",
ring1="Haoma's ring",
ring2="Haoma's ring",
back="Alaunus's cape",
waist="Channeler's stone",
legs="",
feet="Gende. Galosh. +1"}
-- Stoneskin Set --
sets.Midcast.Stoneskin = set_combine(sets.Midcast.Haste)
-- Melee --
sets.TP = {
main="Carnwenhan",
sub="Taming Sari",
range="Linos",
head="Aya. Zucchetto +2",
body="Reiki osode",
hands="Volte mittens",
legs="Aya. Cosciales +2",
feet="Aya. Gambieras +1",
neck="Bard's Charm +1",
waist="Windbuffet belt +1",
left_ear="Telos Earring",
right_ear="Balder earring +1",
left_ring="Chirich ring +1",
right_ring="Petrov Ring",
back="Intarabus's cape",
}
end
function precast(spell,action)
if spell.type:endswith('Magic') or spell.type == "BardSong" or spell.type == "Ninjutsu" then
if buffactive.silence then -- Cancel Magic or Ninjutsu or BardSong If You Are Silenced or Out of Range --
cancel_spell()
debug(spell.name..' Canceled: [Silence has fallen]')
return
else
if spell.type == 'BardSong' then
if buffactive.nightingale then
song_equip(spell)
return
else
equip(sets.Precast.SongCast)
debug('Precast: Song')
end
elseif string.find(spell.english,'Cur') and spell.english ~= "Cursna" then
equip(sets.Precast.Cure)
debug('Precast: Cure')
else
equip(sets.Precast.FastCast)
debug('Precast: Fast Cast')
end
end
elseif spell.english == 'Spectral Jig' and buffactive.Sneak then
cast_delay(0.2)
send_command('cancel Sneak')
elseif spell.type == "JobAbility" then
if sets.JA[spell.english] then
equip(sets.JA[spell.english])
debug('Precast: ' .. spell.english)
end
end
end
function midcast(spell, action)
if sets.Midcast[spell.english] then
equip(sets.Midcast[spell.english])
debug('Midcast: ' .. spell.english)
return
elseif spell.type:endswith('Magic') or spell.type == 'Ninjutsu' or spell.type == "BardSong" then
if spell.type == "BardSong" then
song_equip(spell)
elseif string.find(spell.english,'Cure') then
equip(sets.Midcast.Cure)
debug('Midcast: Cure')
elseif string.find(spell.english,'Cura') then
equip(sets.Midcast.Curaga)
debug('Midcast: Curaga')
end
end
end
function aftercast(spell,action)
status_change(player.status)
end
function status_change(new,old)
if new == 'Idle' then
equip(sets.Idle)
debug('Aftercast: Idle')
elseif new == 'Resting' then
equip(sets.Resting)
debug('Aftercast: Resting')
elseif new == 'Engaged' then
equipSet = sets.TP
equip(equipSet)
else
equipSet = sets.Idle
if equipSet[IdleArray[IdleIndex]] then
equipSet = equipSet[IdleArray[IdleIndex]]
end
if equipSet[WeaponArray[WeaponIndex]] then
equipSet = equipSet[WeaponArray[WeaponIndex]]
end
equip(equipSet)
end
end
song_set_names = {'Finale', 'Lullaby', 'March', 'Minuet', 'Madrigal', 'Ballad', 'Scherzo', 'Mazurka', 'Paeon'}
function song_equip(spell)
if spell.target.type == 'MONSTER' then
equip(sets.Midcast.Wind)
debug('Midcast: Wind')
else
if 'Daurdabla' == player.equipment.range then
debug('Midcast: Dummy Song')
return
end
equip(sets.Midcast.WindBuff)
debug('Midcast: WindBuff')
end
for _, song in ipairs(song_set_names) do
if string.find(spell.english, song) then
if sets.Midcast[song] then
equip(sets.Midcast[song])
debug('Midcast: ' .. song)
break
end
end
end
end
function debug(s)
send_command('@input /echo ' .. s)
end