-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEione_THF.lua
176 lines (142 loc) · 3.89 KB
/
Eione_THF.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
function get_sets()
sets.Idle = {
head="Mummu Bonnet +1",
body="Malignance Tabard",
hands="Mummu Wrists +1",
legs="Malignance Tights",
feet="Mummu Gamash. +1",
neck="Asperity Necklace",
waist="Windbuffet Belt",
left_ear="Suppanomimi",
right_ear="Brutal Earring",
left_ring="Rajas Ring",
right_ring="Epona's Ring",
back={
name="Toutatis's Cape",
augments={'DEX+20','Accuracy+20 Attack+20','DEX+10','Weapon skill damage +10%'},
}
}
sets.Engaged = {
head="Mummu Bonnet +1",
body="Malignance Tabard",
hands="Mummu Wrists +1",
legs="Malignance Tights",
feet="Mummu Gamash. +1",
neck="Asperity Necklace",
waist="Windbuffet Belt",
left_ear="Suppanomimi",
right_ear="Brutal Earring",
left_ring="Rajas Ring",
right_ring="Epona's Ring",
back={
name="Toutatis's Cape",
augments={'DEX+20','Accuracy+20 Attack+20','DEX+10','Weapon skill damage +10%'},
}
}
TH = false
sets.TH = {
hands = "Asn. Armlets +2",
feet = "Raider's Poulaines +2",
waist = "Chaac Belt"
}
sets.WeaponSkill = {}
sets.JobAbility = {}
sets.JobAbility["Assassin's Charge"] = {}
sets.JobAbility.Despoil = {
legs = "Raid. Culottes +1",
feet = "Raid. Poulaines +2"
}
sets.JobAbility.Flee = {
feet = "Pillager's Poulaines"
}
sets.JobAbility.Hide = {
body = "Pillager's Vest"
}
sets.JobAbility["Perfect Dodge"] = {}
sets.JobAbility.Steal = {
hands = "Rogue's Armlets",
legs = "Assassin's Culottes",
feet = "Pillager's Poulaines"
}
sets.BardSong = sets.TH
end
function precast(spell, action)
if "Trust" == spell.type then
return
end
if spell.english == "Spectral Jig" and buffactive.Sneak then
cast_delay(0.2)
send_command("cancel Sneak")
end
if sets[spell.type] and sets[spell.type][spell.english] then
equip(sets[spell.type][spell.english])
return
end
if sets[spell.type] then
equip(sets[spell.type])
return
end
debug("No set for " .. spell.type .. "." .. spell.english)
end
function aftercast(spell, action)
status_change(player.status)
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 status_change_engaged()
equip(sets.Engaged)
if TH then
equip(sets.TH)
end
end
function self_command(command)
command = command:lower()
if "dt" == command then
DT = not DT
windower.add_to_chat(123, "DT: " .. (DT and "on" or "off"))
screen_notices()
status_change(player.status, player.status)
return
end
if "th" == command then
TH = not TH
windower.add_to_chat(123, "TH: " .. (TH and "on" or "off"))
screen_notices()
status_change(player.status, player.status)
return
end
if "koc" == command then
for party_index, ally_party in ipairs(alliance) do
for player_index, _player in ipairs(ally_party) do
print(_player.name)
end
end
-- windower.ffxi.get_mob_by_name(name)
end
end
function screen_notices()
window:clear()
local text = ""
if TH then
text = text .. "TH "
end
if DT then
text = text .. "DT "
end
window:append(text:trim())
window:show()
end
function buff_change(name, gain, buff_details)
-- if not gain and name:endswith("Roll") then
-- send_command('@input /t Ajirha ' .. name .. ' off')
-- end
end
function debug(s)
send_command("@input /echo " .. s)
end