-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathTristamgreen_SAM.lua
187 lines (166 loc) · 5.32 KB
/
Tristamgreen_SAM.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
function get_sets()
require("common_gs_functions")
sets.idle = {
main = "Amanomurakumo",
sub = "Rose Strap",
range = "Yoichinoyumi",
head = "Wivre Mask +1",
body = "Hydra Mail +1",
hands = "Rasetsu Tekko +1",
legs = "Myn. Haidate +1",
feet = "Askar Gambieras",
neck = "Orochi Nodowa +1",
waist = "Scouter's Rope",
left_ear = "Novia Earring",
right_ear = "Triton Earring",
left_ring = "Patronus Ring",
right_ring = "Shadow Ring",
back = "Boxer's Mantle"
}
sets.dayregen = {
waist = "Lycopodium Sash"
}
sets.meditate = {
head = "Myn. Kabuto +1",
hands = "Sao. Kote +1"
}
sets.tp = {
main = "Amanomurakumo",
sub = "Rose Strap",
range = "Yoichinoyumi",
head = "Ace's Helm",
body = "Askar Korazin",
hands = "Dusk Gloves +1",
legs = "Byakko's Haidate",
feet = "Dusk Ledelsens +1",
neck = "Justice Torque",
waist = "Ninurta's Sash",
left_ear = "Brutal Earring",
right_ear = "Wyvern Earring",
left_ring = "Rajas Ring",
right_ring = "Mars's Ring",
back = "Cerb. Mantle +1"
}
sets.kaiten = {
main = "Amanomurakumo",
sub = "Rose Strap",
range = "Yoichinoyumi",
head = "Nocturnus Helm",
body = "Askar Korazin",
hands = "Alkyoneus's Bracelets",
legs = "Hachiryu Haidate",
feet = "Rutter Sabatons",
neck = "Fotia Gorget",
waist = "Warwolf Belt",
left_ear = "Harmonius Earring",
right_ear = "Harmonius Earring",
left_ring = "Rajas Ring",
right_ring = "Mars's Ring",
back = "Cerb. Mantle +1"
}
sets.namas = {
head = "Zha'Go's Barbut",
body = "Kyudogi +1",
hands = "Seiryu's Kote",
legs = "Hachiryu Haidate",
feet = "Enkidu's Leggings",
neck = "Fotia Gorget",
waist = "Saotome koshi-ate",
left_ring = "Cerberus Ring +1",
right_ring = "Cerberus Ring +1",
left_ear = "Brutal Earring",
right_ear = "Fenrir's Earring",
back = "Fowler's Mantle +1",
}
sets.racc = {
head = "Optical Hat",
body = "Kyudogi +1",
hands = "Seiryu's Kote",
legs = "Hachiryu Haidate",
feet = "Enkidu's Leggings",
neck = "Fotia Gorget",
waist = "Saotome koshi-ate",
left_ring = "Bellona's Ring",
right_ring = "Jalzahn's Ring",
left_ear = "Brutal Earring",
right_ear = "Fenrir's Earring",
back = "Fowler's Mantle +1",
}
end
function choose_set()
if player.status == "Engaged" then
equip_engaged()
else
equip_idle()
end
end
function equip_idle()
common_idle_equip()
end
function equip_engaged()
equip(sets.tp)
windower.add_to_chat(8,'[Samurai - Engaged]')
if world.time <= 1080 and world.time >= 360 then
windower.add_to_chat(8,"[Engaged - Daylight Bonus]")
equip({right_ear="Fenrir's Earring"})
end
end
function equip_ws(spell)
windower.add_to_chat(8,'[Weapon Skill]')
if spell.name == 'Tachi: Kaiten' then
equip(sets.kaiten)
elseif spell.name == 'Namas Arrow' then
equip(sets.namas)
if world.time <= 1080 and world.time >= 360 then
windower.add_to_chat(8,"[Daylight - L.bug Earring +1]")
equip({right_ear="L.bug Earring +1"})
else
windower.add_to_chat(8,"[Nighttime - Fenrir's Earring]")
equip({right_ear="Fenrir's Earring"})
end
elseif spell.name == 'Sidewinder' then
equip(sets.racc)
if world.time <= 1080 and world.time >= 360 then
windower.add_to_chat(8,"[Daylight - L.bug Earring +1]")
equip({right_ear="L.bug Earring +1"})
else
windower.add_to_chat(8,"[Nighttime - Fenrir's Earring]")
equip({right_ear="Fenrir's Earring"})
end
else
equip (sets.ws)
end
end
function equip_ranged()
equip(sets.racc)
if world.time <= 1080 and world.time >= 360 then
windower.add_to_chat(8,"[Daylight - L.bug Earring +1]")
equip({right_ear="L.bug Earring +1"})
end
end
function precast(spell)
if spell.type == 'WeaponSkill' then
equip_ws(spell)
elseif spell.name == 'Meditate' then
equip(sets.meditate)
elseif spell.action_type == 'Ranged Attack' then
equip_ranged()
end
end
function midcast()
end
function aftercast()
choose_set()
end
function status_change(new,old)
choose_set()
end
function buff_change(name,gain)
debuff_items()
end
function self_command(m)
end
-- Finally, puts on our fashion set, lockstyle it, then switch to our idle set.
send_command('wait 1;input /lockstyleset 12;wait 1;gs equip idle')
send_command('input /macro book 12; wait 0.1; input /macro set 1')
send_command('input //dp bow')