Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Tables of Data
- toau_zones = S{"Leujaoam Sanctum","Mamool Ja Training Grounds","Lebros Cavern","Periqia","Ilrusi Atoll",
- "Nyzul Isle","Bhaflau Remnants","Arrapago Remnants","Silver Sea Remnants","Zhayolm Remnants"}
- abyssea_zones = S{"Abyssea - Konschtat","Abyssea - La Theine","Abyssea - Tahrongi","Abyssea - Attohwa",
- "Abyssea - Misareaux","Abyssea - Vunkerl","Abyssea - Altepa","Abyssea - Grauberg",
- "Abyssea - Uleguerand","Abyssea - Empyreal Paradox"}
- strength_ws = S{"Steel Cyclone","King's Justice","Fell Cleave","Metatron Torment","Upheaval","Requiescat",
- "Savage Blade","Vorpal Blade","Sanguine Blade","Herculean Slash","Resolution"}
- crithit_ws = S{"Ukko's Fury","Raging Rush"}
- -- Functions
- -- Gear Sets go here
- function get_sets()
- sets.precast = {}
- -- JA Sets
- sets.precast['Provoke'] = {waist="Chaac Belt"}
- sets.precast['Warcry'] = {head="Agoge Mask +1"}
- sets.precast['Tomahawk'] = {ammo="Thr. tomahawk",feet="Agoge Calligae +1"}
- sets.precast['Seigan'] = {}
- sets.precast["Warrior's Charge"] = {legs="Agoge Cuisses +1"}
- sets.precast['Blood Rage'] = {body="Rvg. Lorica +2"}
- sets.precast['Aggressor'] = {head="Pumm. Mask +1",body="Agoge Lorica +1"}
- sets.precast['Berserk'] = {body="Pumm. Lorica +1",feet="Agoge Calligae +1"}
- sets.precast['Mighty Strikes'] = {hands="Agoge muffler's +1"}
- -- Subjob JA Sets
- sets.precast.Waltz = {head="Yaoyotl helm",neck="Twilight Torque",body="Xaddi Mail",hands="Agoge Mufflers +1",left_ring="Titan Ring",
- right_ring="Dark Ring",waist="Nierenschutz",back="Shadow Mantle",legs="Agoge Cuisses +1",feet="Ejekamal boots"}
- -- WS Sets
- sets.WS = {}
- sets.precast.Str_Ws = {ammo="Ravager's orb",head="Otomi helm",left_ear="Moonshade Earring",right_ear="Brutal Earring",
- body="Phorcys Korazin",hands="Xaddi Gauntlets",left_ring="Rajas Ring",right_ring="Ifrit Ring",
- back="Mauler's Mantle",legs="Agoge Cuisses +1",feet="Ejekamal Boots"}
- sets.precast.Crit_Ws = {ammo="Yetshila",head="Felistris Mask",left_ear="Moonshade Earring",right_ear="Brutal Earring",
- body="Phorcys Korazin",hands="Xaddi Gauntlets",left_ring="Rajas Ring",right_ring="Ifrit Ring",
- back="Rancorous Mantle",legs="Agoge Cuisses +1",feet="Hrafn Gambieras"}
- sets.precast.SACrit ={head="Felistris Mask",back="Cavaros mantle",feet="Hrafn Gambieras"}
- sets.precast["Ukko's Fury"] = {neck="Light gorget",waist="Light belt"}
- sets.precast["King's Justice"] = {neck="Asperity Necklace",waist="Breeze Belt"}
- sets.precast["Fell Cleave"] = sets.precast["King's Justice"]
- sets.precast["Metatron Torment"] = {neck="Light Gorget",waist="Light Belt"}
- sets.precast["Upheaval"] = {ammo="Oneiros Pebble",head="Felistris Mask",neck="Light Gorget",
- body="Xaddi Mail",hands="Agoge Mufflers +1",left_ring="Titan Ring",right_ring="Titan Ring",back="Iximulew Cape",
- waist="Windbuffet Belt",feet="Pumm. Calligae +1"}
- sets.precast["Steel Cyclone"] = sets.precast["Upheaval"]
- sets.precast["Herculean Slash"] = sets.precast["Upheaval"]
- sets.precast["Resolution"] = {head="Yaoyotl Helm",neck="Asperity Necklace",left_ear="Moonshade earring",
- hands="Xaddi Gauntlets",waist="Breeze Belt",legs="Pumm. Cuisses +1"}
- sets.precast["Savage Blade"] = sets.precast["Resolution"]
- sets.precast["Requiescat"] = {head="Yaoyotl Helm",neck="Portus Collar",left_ear="Moonshade earring",
- hands="Xaddi Gauntlets",waist="Windbuffet Belt",legs="Pumm. Cuisses +1"}
- sets.precast["Sanguine Blade"] = {head="Yaoyotl Helm",neck="Iqabi Necklace",left_ear="Moonshade earring",
- hands="Xaddi Gauntlets",waist="Dynamic Belt +1",legs="Pumm. Cuisses +1"}
- -- TP Sets
- sets.TP = {}
- sets.TP.Bravura = {}
- sets.TP.Bravura.Normal = {ammo="Yetshila",head="Yaoyotl Helm",neck="Asperity Necklace",left_ear="Trux Earring",right_ear="Brutal Earring",
- body="Xaddi Mail",hands="Xaddi Gauntlets",left_ring="Rajas Ring",right_ring="K'ayres Ring",
- back="Mauler's mantle",waist="Windbuffet Belt",legs="Agoge Cuisses +1",feet="Xaddi Boots"}
- sets.TP.Bravura.High = {ammo="Yetshila",head="Yaoyotl Helm",neck="Portus Collar",left_ear="Trux Earring",right_ear="Brutal Earring",
- body="Xaddi Mail",hands="Xaddi Gauntlets",left_ring="Rajas Ring",right_ring="K'ayres Ring",
- back="Mauler's mantle",waist="Windbuffet Belt",legs="Agoge Cuisses +1",feet="Xaddi Boots"}
- sets.TP.Razorfury = {}
- sets.TP.Razorfury.Normal = {ammo="Yetshila",head="Yaoyotl Helm",neck="Asperity Necklace",left_ear="Trux Earring",right_ear="Brutal Earring",
- body="Xaddi Mail",hands="Xaddi Gauntlets",left_ring="Rajas Ring",right_ring="K'ayres Ring",
- back="Mauler's mantle",waist="Windbuffet Belt",legs="Agoge Cuisses +1",feet="Xaddi Boots"}
- sets.TP.Razorfury.High = {ammo="Yetshila",head="Yaoyotl Helm",neck="Portus Collar",left_ear="Trux Earring",right_ear="Brutal Earring",
- body="Xaddi Mail",hands="Xaddi Gauntlets",left_ring="Rajas Ring",right_ring="K'ayres Ring",
- back="Mauler's mantle",waist="Windbuffet Belt",legs="Agoge Cuisses +1",feet="Xaddi Boots"}
- sets.TP.DD = {}
- sets.TP.Hybrid = {ammo="Yetshila",head="Yaoyotl Helm",neck="Iqabi Necklace",left_ear="Trux Earring",right_ear="Brutal Earring",
- body="Xaddi Mail",hands="Xaddi Gauntlets",left_ring="Rajas Ring",right_ring="K'ayres ring",
- back="Mauler's Mantle",waist="Dynamic Belt +1",legs="Pumm. Cuisses +1",feet="Xaddi Boots"}
- sets.TP.Ranged = {}
- sets.TP.Engaged = {}
- -- Special Sets
- sets.DT = {neck="Twilight Torque",hands="Agoge Mufflers +1",left_ring="Rajas Ring",right_ring="Dark Ring",waist="Nierenschutz",
- back="Shadow Mantle",legs="Agoge Cuisses +1"}
- sets.Twilight = {head="Twilight helm",body="Twilight mail"}
- -- Aftercast/Idle Sets
- sets.aftercast = {}
- sets.aftercast.TP = sets.TP.Engaged
- sets.aftercast.Idle = {ammo="Yetshila",head="Ighwa Cap",body="Xaddi Mail",hands="Agoge Mufflers +1",legs="Agoge Cuisses +1",feet="Hermes' Sandals",
- neck="Twilight Torque",waist="Nierenschutz",left_ear="Trux Earring",right_ear="Brutal Earring",left_ring="Rajas Ring",
- right_ring="Dark Ring",back="Shadow Mantle"}
- end
- -- Precast/Midcast/Aftercast Functions
- function precast(spell,action)
- if spell.english == 'Spectral Jig' then
- send_command('cancel 71;')
- end
- if spell.type=="WeaponSkill" then
- if sets.precast[spell.english] then
- if strength_ws:contains(spell.name) then
- if buffactive['Mighty Strikes'] or buffactive['Sneak Attack'] then
- equip(set_combine(sets.precast.Str_Ws,sets.precast[spell.english],sets.precast.SACrit))
- else
- equip(set_combine(sets.precast.Str_Ws,sets.precast[spell.english]))
- end
- elseif crithit_ws:contains(spell.name) then
- if abyssea_zones:contains(zone) and buffactive['Blood Rage'] then
- equip(set_combine(sets.precast.Crit_Ws,sets.precast[spell.english],sets.precast['Blood Rage']))
- elseif buffactive['Mighty Strikes'] or buffactive['Sneak Attack'] then
- equip(set_combine(sets.precast.Crit_Ws,sets.precast[spell.english],sets.precast.SACrit))
- else
- equip(set_combine(sets.precast.Crit_Ws,sets.precast[spell.english]))
- end
- else
- equip(sets.precast[spell.english])
- end
- equip(sets.precast[spell.english])
- end
- elseif string.find(spell.english,'Waltz') then
- equip(sets.precast.Waltz)
- elseif spell.type == "Ninjutsu" then
- equip(sets.precast.FastCast)
- elseif sets.precast[spell.english] then
- equip(sets.precast[spell.english])
- end
- end
- function midcast(spell,action)
- if spell.english == 'Utsusemi: Ichi' and (buffactive['Copy Image'] or buffactive['Copy Image (2)'] or buffactive['Copy Image (3)']) then
- send_command('@wait 3.3; cancel 66; cancel 444; cancel 445')
- elseif spell.english == 'Monomi: Ichi' and buffactive['Sneak'] then
- send_command('@wait 1.0; cancel 71')
- end
- end
- function aftercast(spell,action)
- if player.status =='Engaged' then
- equip(sets.aftercast.TP)
- else
- equip(sets.aftercast.Idle)
- end
- if spell.english == 'Tomahawk' then
- send_command('@wait 30; input /echo ------- Tomahawk wore off -------')
- elseif spell.english == 'Mighty Strikes' then
- send_command('@wait 65; input /echo ------- Mighty Strikes Wearing in 10 seconds!! -------')
- end
- end
- -- Status change (spells, songs, etc.)
- function status_change(new,old)
- if T{'Idle','Resting'}:contains(new) then
- equip(sets.aftercast.Idle)
- elseif new == 'Engaged' then
- if player.equipment.main == 'Bravura' then
- if (buffactive['march'] == 2 and buffactive['haste']) or (buffactive['march'] and buffactive['embrava'] and buffactive['haste']) then
- sets.TP.Bravura = sets.TP.Bravura.High
- else
- sets.TP.Bravura = sets.TP.Bravura.Normal
- end
- sets.TP.DD = sets.TP.Bravura
- else
- if (buffactive['march'] == 2 and buffactive['haste']) or (buffactive['march'] and buffactive['embrava'] and buffactive['haste']) then
- sets.TP.Razorfury = sets.TP.Razorfury.High
- else
- sets.TP.Razorfury = sets.TP.Razorfury.Normal
- end
- sets.TP.DD = sets.TP.Razorfury
- end
- sets.TP.Engaged = sets.TP.DD
- end
- if buffactive['Weakness'] or buffactive['Doom'] then
- sets.aftercast.TP = set_combine(sets.TP.Engaged,sets.Twilight)
- else
- sets.aftercast.TP = sets.TP.Engaged
- end
- equip(sets.aftercast.TP)
- end
- function buff_change(status,gain_or_loss)
- end
- -- Self commands
- function self_command(command)
- if command == 'DT' and (buffactive['Weakness'] or buffactive['Doom']) then
- equip(sets.DT,sets.Twilight)
- send_command('input /echo ------- DT Set Activated -------')
- elseif command == 'DT' then
- equip(sets.DT)
- send_command('input /echo ------- DT Set Activated -------')
- end
- if command == 'Twilight' then
- equip(sets.Twilight)
- send_command('input /echo ------- Twilight Set Activated -------')
- end
- if command == 'TP' and sets.TP.Engaged == sets.TP.DD then
- sets.TP.Engaged = sets.TP.Hybrid
- send_command('input /echo ------- Hybrid TP Set Activated -------')
- elseif command == 'TP' and sets.TP.Engaged == sets.TP.Hybrid then
- sets.TP.Engaged = sets.TP.DD
- send_command('input /echo ------- Normal TP Set Activated -------')
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement