Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function get_sets()
- runes = S{'Ignis', 'Gelus', 'Unda', 'Tellus', 'Sulpor', 'Flabra', 'Lux', 'Tenebrae'}
- --Variables
- idleset = 1 --1 = Standard Idle, 2 = DT Idle
- engagedset = 1 --1 = Multihit/damage Engaged, 2 = Tank Engaged
- --Idle Sets
- sets.idle = {}
- sets.idle.standard = {ammo="Demonry Stone",
- head="Wivre Hairpin", neck="Twilight Torque", lear="Brutal Earring", rear="Ethereal Earring",
- body="Runeist Coat", hands="Runeist Mitons +1", lring="Dark Ring", rring="Dark Ring",
- back="Iximulew Cape", waist="Twilight Belt", legs="Runeist Trousers +1", feet="Skd. Jambeaux +1"}
- sets.idle.DT = {ammo="Demonry Stone",
- head="Futhark Bandeaux", neck="Twilight Torque", lear="Brutal Earring", rear="Ethereal Earring",
- body="Runeist Coat", hands="Runeist Mitons +1", lring="Dark Ring", rring="Dark Ring",
- back="Iximulew Cape", waist="Twilight Belt", legs="Runeist Trousers +1", feet="Runeist Bottes"}
- --Precast Sets
- sets.precast = {}
- sets.precast.FC = {head="Runeist Bandeau", neck="Jeweled Collar", rear="Loquac. Earring",
- hands="Thaumas Gloves",
- legs="Orvail Trousers", feet="Chelona Boots"}
- sets.precast.Inspiration = {head="Runeist Bandeau", neck="Jeweled Collar",
- hands="Thaumas Gloves",
- legs="Orvail Pants +1"}
- sets.precast.Enhancing = {head="Runeist Bandeau", neck="Jeweled Collar", rear="Loquac. Earring",
- hands="Thaumas Gloves",
- waist="Siegel Sash", legs="Futhark Trousers", feet="Chelona Boots"}
- sets.precast.IE = {head="Runeist Bandeau", legs="Futhark Trousers"}
- --Midcast Sets
- sets.midcast = {}
- sets.midcast.enhancing = {neck="Colossus's Torque",
- hands="Runist Mitons +1",
- back="Merciful Cape", waist="Cascade Belt", legs="Futhark Trousers"}
- sets.midcast.cure = {ammo="Aqreaqa Bomblet",
- head="Whirlpool Mask", neck="Colossus's Torque", lear="Roundel Earring", rear="Trux Earring",
- body="Futhark Coat", hands="Futhark Mitons", lring="Aquasoul Ring",
- back="Iximulew Cape", waist="Goading Belt", legs="Runeist Trousers +1", feet="Qaaxo Leggings"}
- sets.midcast.enmity = {ammo="Aqreaqa Bomblet",
- lear="Friomisi Earring", rear="Trux Earring",
- hands="Futhark Mitons",
- waist="Goading Belt"}
- sets.midcast.recast = {head="Runeist Bandeau", neck="Jeweled Collar", rear="Loquac. Earring",
- body="Futhark Coat", hands="Runeist Mitons +1",
- back="Iximulew Cape", waist="Hurch'lan Sash", legs="Runeist Trousers +1", feet="Qaaxo Leggings"}
- --Engaged Sets
- sets.engaged = {}
- sets.engaged.standard = {ammo="Thew Bomblet",
- head="Whirlpool Mask", neck="Asperity Necklace", lear="Bladeborn Earring", rear="Steelflash Earring",
- body="Thaumas Coat", hands="Futhark Mitons", lring="Rajas Ring", rring="Epona's Ring",
- back="Atheling Mantle", waist="Windbuffet Belt", legs="Quiahuiz Trousers", feet="Qaaxo Leggings"}
- sets.engaged.DT = {ammo="Aqreaqa Bomblet",
- head="Futhark Bandeau", neck="Twilight Torque", lear="Bladeborn Earring", rear="Steelflash Earring",
- body="Futhark Coat", hands="Runeist Mitons +1", lring="Dark Ring", rring="Epona's Ring",
- back="Atheling Mantle", waist="Goading Belt", legs="Runeist Trousers +1", feet="Runeist Bottes"}
- sets.engaged.Battuta = set_combine(sets.engaged.standard,{head="Futhark Bandeau", feet="Futhark Boots"})
- sets.engaged.TankBattuta = set_combine(sets.engaged.DT,{head="Futhark Bandeau", feet="Futhark Boots"})
- sets.engaged.resist = set_combine(sets.engaged.DT, {head="Whirlpool Mask", neck="Jeweled Collar",
- body="Runeist Coat", hands="Runeist Mitons +1",
- legs="Runeist Trousers +1", feet="Qaaxo Leggings"})
- --JA Sets
- sets.JA = {}
- sets.JA.Lunge = {ammo="Aqreqaq Bomblet",
- head="A'as Circlet", neck="Eddy Necklace", lear="Friomisi Earring", rear="Novio Earring",
- body="Mirke Wardecors", hands="Futhark Mitons", rring="Acumen Ring",
- waist="Goading Belt", legs="Shneddick Tights", feet="Manabyss Pigaches"}
- sets.JA['Vivacious Pulse'] = {ammo="Aqreqaq Bomblet",
- head="Whirlpool Mask", rear="Kuwunga Earring", lear="Trux Earring",
- body="Futhark Coat", hands="Runeist Mitons +1", lring="Dark Ring", rring="Dark Ring",
- back="Iximulew Cape", waist="Goading Belt", legs="Runeist Trousers +1", feet="Qaaxo Leggings"}
- sets.JA.Val = set_combine(sets.midcast.enmity,{body="Runeist Coat", legs="Futhark Trousers"})
- sets.JA['Elemental Sforzo'] = {body="Futhark Coat"}
- sets.JA['Swordplay'] = {hands="Futhark Mitons"}
- sets.JA['Battuta'] = {head="Futhark Bandeau"}
- sets.JA['Pflug'] = {feet="Runeist Bottes"}
- sets.JA['Liement'] = {body="Futhark Coat"}
- sets.JA['Gambit'] = {hands="Runeist Mitons +1"}
- --WS Sets
- sets.WS = {}
- sets.WS.Resolution = {ammo="Aqreqaq Bomblet",
- head="Whirlpool Mask", neck="Breeze Gorget", lear="Bladeborn Earring", rear="Steelflash Earring",
- body="Manibozho Jerkin", hands="Futhark Mitons", lring="Rajas Ring", rring="Pyrosoul Ring",
- back="Atheling Mantle", waist="Breeze Belt", legs="Quiahuiz Trousers", feet="Qaaxo Leggings"}
- sets.WS.other = {ammo="Aqreqaq Bomblet",
- head="Whirlpool Mask", neck="Ire Torque", lear="Bladeborn Earring", rear="Steelflash Earring",
- body="Manibozho Jerkin", hands="Futhark Mitons", lring="Rajas Ring", rring="Pyrosoul Ring",
- back="Atheling Mantle", waist="Wanion Belt", legs="Quiahuiz Trousers", feet="Qaaxo Leggings"}
- end
- function precast(spell)
- if spell.action_type == 'Magic' then
- if spell.skill == 'Enhancing Magic' and spell.name ~= 'Foil' and spell.cast_time > 2 then
- if buffactive['Fast Cast'] then
- equip(sets.precast.IE)
- else
- equip(sets.precast.Enhancing)
- end
- elseif spell.skill == 'Enhancing Magic' and spell.name ~= 'Foil' and spell.name ~= 'Regen' and spell.cast_time < 2 then
- equip(sets.midcast.Enhancing)
- elseif string.find (spell.english,'Foil') then
- equip(sets.midcast.recast,{legs="Futhark Trousers"})
- elseif string.find (spell.english,'Regen') then
- equip(sets.midcast.recast,{head="Runeist Bandeau", legs="Futhark Trousers"})
- elseif spell.skill == 'Divine Magic' then
- equip(sets.midcast.enmity)
- elseif spell.skill == 'Healing Magic' then
- if buffactive['Fast Cast'] then
- equip(sets.precast.Inspiration)
- else
- equip(sets.precast.FC)
- end
- end
- elseif spell.type == 'JobAbility' then
- if string.find(spell.english,'Lunge') or string.find(spell.english,'Swipe') then
- equip(sets.JA.Lunge)
- elseif string.find(spell.english,'Vallation') or string.find(spell.english,'Valiance') then
- equip(sets.JA.Val)
- elseif runes:contains(spell.name) then
- equip(sets.midcast.enmity)
- elseif sets.JA[spell.english] and spell.name ~= 'Lunge' then
- equip(sets.JA[spell.english])
- end
- elseif spell.type == 'WeaponSkill' then
- if string.find(spell.english,'Resolution') then
- equip(sets.WS.Resolution)
- else
- equip(sets.WS.other)
- end
- end
- end
- function midcast(spell)
- if spell.action_type == 'Magic' then
- if spell.skill == 'Enhancing Magic' and spell.name ~= 'Foil' and spell.cast_time > 2 then
- equip(sets.midcast.enhancing)
- elseif spell.skill == 'Healing Magic' then
- equip(sets.midcast.cure)
- end
- end
- end
- function aftercast(spell)
- if player.status == 'Engaged' then
- if engagedset == 1 then
- if buffactive.Battuta then
- equip(sets.engaged.Battuta)
- else
- equip(sets.engaged.standard)
- end
- elseif engagedset == 2 then
- if buffactive.Battuta then
- equip(sets.engaged.TankBattuta)
- else
- equip(sets.engaged.DT)
- end
- end
- elseif player.status == 'Idle' then
- if idleset == 1 then
- equip(sets.idle.standard)
- elseif idleset == 2 then
- equip(sets.idle.DT)
- end
- end
- end
- function status_change(new,tab)
- if new == 'Idle' then
- if idleset == 1 then
- equip(sets.idle.standard)
- elseif idleset == 2 then
- equip(sets.idle.DT)
- end
- elseif new == 'Engaged' then
- if engagedset == 1 then
- equip(sets.engaged.standard)
- elseif engagedset == 2 then
- equip(sets.engaged.DT)
- end
- end
- end
- function self_command(command)
- if command == 'toggle combat set' then
- engagedset = engagedset +1
- if engagedset > 2 then
- engagedset = 1
- send_command('@input /echo ----- DD Set -----')
- equip(sets.engaged.standard)
- elseif engagedset == 2 then
- send_command('@input /echo ----- Tanking Set -----')
- equip(sets.engaged.DT)
- end
- end
- if command == 'toggle idle set' then
- idleset = idleset +1
- if idleset > 2 then
- idleset = 1
- send_command('@input /echo ----- Standard Idle -----')
- equip(sets.idle.standard)
- elseif idleset == 2 then
- send_command('@input /echo ----- DT Idle -----')
- equip(sets.idle.DT)
- end
- elseif command == 'idle' then
- if idleset == 1 then
- equip(sets.idle.standard)
- elseif idleset == 2 then
- equip(sets.idle.DT)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment