-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEione_BLM.lua
256 lines (217 loc) · 6.77 KB
/
Eione_BLM.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
local modes = {
Nuke = "Burst"
}
local obi = {
Fire = "Karin Obi",
Earth = "Dorin Obi",
Water = "Suirin Obi",
Wind = "Furin Obi",
Ice = "Hyorin Obi",
Lightning = "Rairin Obi",
Light = "Korin Obi",
Dark = "Anrin Obi",
}
function get_sets()
sets.Idle = {
main = "Mpaca's Staff",
sub = "Mensch Strap +1",
ammo = "Staunch Tathlum +1",
head = "Nyame Helm",
body = "Jhakri Robe +2",
hands = "Nyame Gauntlets",
legs = "Nyame Flanchard",
feet = "Herald's Gaiters",
neck = "Warder's Charm +1",
waist = "Carrier's Sash",
left_ear = "Genmei Earring",
right_ear = "Hearty Earring",
left_ring = "Vocane Ring +1",
right_ring = "Stikini Ring +1",
back = {
name = "Taranus's Cape",
augments = {'INT+20', 'Mag. Acc+20 /Mag. Dmg.+20', 'INT+10', '"Mag.Atk.Bns."+10', 'Phys. dmg. taken-10%'}
}
}
sets.JobAbility = {}
sets.Precast = {}
sets.Midcast = {}
sets.Precast.FastCast = {
ammo="Incantor Stone",
head="Amalric Coif +1",
body="Shango Robe",
hands="Acad. Bracers +2",
legs="Volte Brais",
feet="Acad. Loafers +2",
neck="Voltsurge Torque",
waist="Embla Sash",
left_ear="Etiolation Earring",
right_ear="Malignance Earring",
left_ring="Kishar Ring",
right_ring="Prolix Ring",
back={
name="Lugh's Cape",
augments={'"Fast Cast"+10'}
},
}
sets.Midcast["Elemental Magic"] = {}
sets.Midcast["Elemental Magic"].Burst = {
main = "Daybreak",
sub = "Ammurapi Shield",
head = "Ea Hat",
body = "Jhakri Robe +2",
hands = "Jhakri Cuffs +2",
legs = "Jhakri Slops +2",
feet = "Jhakri Pigaches +2",
neck = "Sanctity Necklace",
waist = "Refoccilation Stone",
left_ear = "Malignance Earring",
right_ear = "Regal Earring",
left_ring = "Stikini Ring +1",
right_ring = "Locus Ring"
}
-- sets.Midcast["Elemental Magic"].Free = {
-- main = "Bunzi's Rod",
-- sub = "Ammurapi Shield",
-- head = "Wicce Petasos +3",
-- body = "Wicce Coat +3",
-- hands = "Wicce Gloves +3",
-- legs = "Wicce Chausses +3",
-- feet = "Wicce Sabots +3",
-- neck = "Src. Stole +2",
-- waist = "Skrymir Cord +1",
-- left_ear = "Malignance Earring",
-- right_ear = "Regal Earring",
-- left_ring = "Shiva Ring +1",
-- right_ring = "Metamor. Ring +1",
-- back = {
-- name = "Taranus's Cape",
-- augments = {'INT+20', 'Mag. Acc+20 /Mag. Dmg.+20', 'INT+10', '"Mag.Atk.Bns."+10', 'Phys. dmg. taken-10%'}
-- }
-- }
sets.Midcast["Elemental Magic"].ConvertDamageToMp = {
body = "Spaekona's Coat +2",
}
sets.Midcast["Enhancing Magic"] = {
head = "Telchine Cap",
body = "Telchine Chas.",
hands = "Telchine Gloves",
legs = "Telchine Braconi",
feet = "Telchine Pigaches",
waist = "Embla Sash",
left_ear = "Mimir Earring",
right_ear = "Andoaa Earring",
left_ring = "Stikini Ring +1",
right_ring = "Stikini Ring +1",
back = "Fi Follet Cape +1"
}
sets.Midcast["Enfeebling Magic"] = {
head = "Wicce Petasos +3",
body = "Agwu's Robe",
hands = "Wicce Gloves +3",
legs = "Wicce Chausses +3",
feet = "Wicce Sabots +3",
neck = "Src. Stole +2",
waist = "Luminary Sash",
left_ear = "Malignance Earring",
right_ear = "Regal Earring",
left_ring = "Kishar Ring",
right_ring = "Metamor. Ring +1",
}
end
function precast(spell, action)
if is_magic(spell) then
if buffactive.silence then
cancel_spell()
send_command('@input /item "Echo Drops" <me>')
debug(spell.name .. " Canceled: [Silence has fallen]")
return
end
equip(sets.Precast.FastCast)
if spell.english:startswith("Cur") and spell.english ~= "Cursna" then
equip(sets.Precast.Cure)
debug("Precast: Cure")
return
end
end
if sets[spell.type] and sets[spell.type][spell.english] then
equip(sets[spell.type][spell.english])
debug("Precast: " .. spell.type .. " " .. spell.english)
return
end
end
function midcast(spell, action)
-- if incapacitated() then
-- return
-- end
if not is_magic(spell) then
return
end
print("Mid - " .. spell.english .. " > " .. spell.target.name)
-- if spell.skill == "Elemental Magic" then
-- equip(sets.Midcast["Elemental Magic"]["Burst"])
-- return
-- end
if spell.skill == "Elemental Magic" then
equip(sets.Midcast["Elemental Magic"][modes.Nuke])
if not buffactive["Manafont"] and player.mpp < 45 then
equip(sets.Midcast["Elemental Magic"].ConvertDamageToMp)
end
if spell.element == world.weather_element or spell.element == world.day_element then
print("Obi " .. obi[spell.element])
equip({waist = obi[spell.element]})
end
return
end
if sets["Midcast"][spell.skill] and sets["Midcast"][spell.skill][spell.english] then
equip(sets["Midcast"][spell.skill][spell.english])
return
end
if sets["Midcast"][spell.skill] and sets["Midcast"][spell.skill].equipable then
equip(sets["Midcast"][spell.skill])
return
end
debug("No set for Midcast." .. spell.skill .. "." .. spell.english)
end
function status_change(new, old)
if _G["status_change_" .. new:lower()] and not _G["status_change_" .. new:lower()]() then
return
end
if (sets[new]) then
equip(sets[new])
end
end
function aftercast(spell, action)
debug("Idle")
equip(sets.Idle)
end
function self_command(argsString)
print(T(player).status)
args = argsString:lower():split(" ")
if _G["self_command_" .. args[1]] then
_G["self_command_" .. args[1]](args:slice(2))
end
status_change(player.status)
end
function self_command_n(args)
return self_command_nuke(args)
end
function self_command_nuke(args)
if not args[1] then
error("Error: No Nuke Mode Specified")
return
end
local cmdMode = args[1]:ucfirst()
if not sets.sets.Midcast["Elemental Magic"][cmdMode] then
error("Error: Invalid Nuke Mode: " .. cmdMode)
return
end
modes.Nuke = cmdMode
status_change(player.status)
notice("Nuke Mode Set: " .. cmdMode)
end
function debug(s)
windower.add_to_chat(123, s)
end
function is_magic(spell)
return spell.action_type == "Magic"
end