Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function get_sets()
- --Variables
- instrument = 1 --1 = Standard Instrument, 2 = Terpander
- idleset = 1 --1 = Standard, 2 = PDT
- --Idle Sets
- sets.idle = {}
- sets.idle.standard = {main="Terra's Staff", sub="Oneiros Grip", range="Oneiros Harp",
- head="", neck="Twilight Torque", lear="Merman's Earring", rear="Moonshade Earring",
- body="Respite Cloak", hands="Serpentes Cuffs", lring="Dark Ring", rring="Dark Ring",
- back="Umbra Cape", waist="Fucho-no-obi", legs="Assid. Pants +1", feet="Aoidos' Cothurnes +2"}
- sets.idle.PDT = {main="Terra's Staff", sub="Oneiros Grip", range="Oneiros Harp",
- head="Gende. Caubeen +1", neck="Twilight Torque", lear="Merman's Earring", rear="Merman's Earring",
- body="Gende. Bilaut +1", hands="Gende. Gages +1", lring="Dark Ring", rring="Dark Ring",
- back="Umbra Cape", waist="Flume Belt", legs="Gende. Spats +1", feet="Gende. Galosh. +1"}
- --Precast Sets
- sets.precast = {}
- sets.precast.song = {main="Felibre's Dague", sub="Genbu's Shield",
- head="Aoidos' Calot +2", neck="Aoidos' Matinee", rear="Loquac. Earring",
- body="Sha'ir Manteel", hands="Gende. Gages +1", lring="Prolix Ring", lear="Enchanter Earring +1",
- back="Swith Cape", waist="Aoidos' Belt", legs="Gendewitha Spats", feet="Bihu Slippers"}
- sets.precast.cure = {head="Nahtirah Hat", rear="Loquac. Earring", lear="Enchanter Earring +1",
- body="Heka's Kalasiris", hands="Gende. Gages +1", lring="Prolix Ring",
- back="Pahtli Cape", feet="Chelona Boots",
- neck="Jeweled Collar", legs="Artsieq Hose"}
- sets.precast.FC = {head="Nahtirah Hat", rear="Loquac. Earring", lear="Enchanter Earring +1", neck="Jeweled COllar", back="Swith Cape", waist="Witful Belt",
- body="Anhur Robe", hands="Gende. Gages +1", legs="Artsieq Hose", lring="Prolix Ring",
- back="Swith Cape", feet="Chelona Boots"}
- --Midcast sets
- sets.midcast = {}
- sets.midcast.scherzo = {main="Legato Dagger", sub="Genbu's Shield",
- head="Aoidos' Calot +2", neck="Aoidos' Matinee", rear="Musical Earring",
- body="Aoidos' Hongreline +2", hands="Aoidos' Manchettes +2", ring1="Nereid Ring", ring2="Nereid Ring",
- back="Echo Cape", waist="Marching Belt", legs="Aoidos' Rhing. +2", feet="Aoidos' Cothrn. +2"}
- sets.midcast.noskill = {main="Legato Dagger", sub="Genbu's Shield",
- head="Aoidos' Calot +2", neck="Aoidos' Matinee", lear="Merman's Earring", rear="Merman's Earring",
- body="Aoidos' Hngrln. +2", hands="Ad. Mnchtte. +2", ring1="Dark Ring", ring2="Dark Ring",
- back="Umbra Cape", waist="Flume Belt", legs="Aoidos' Rhing. +2", feet="Aoidos' Cothrn. +2"}
- sets.midcast.recast = {main="Legato Dagger", sub="Genbu's Shield",
- head="Aoidos' Calot +2", neck="Aoidos' Matinee", lear="Merman's Earring",
- body="Aoidos' Hngrln. +2", hands="Ad. Mnchtte. +2", ring1="Dark Ring", ring2="Dark Ring",
- back="Umbra Cape", waist="Flume Belt", legs="Aoidos' Rhing. +2", feet="Aoidos' Cothrn. +2"}
- sets.midcast.fastcast = {head="Nahtirah Hat", lear="Enchanter Earrng +1", rear="Loquac. Earring", neck="Jeweled COllar", back="Swith Cape", waist="Witful Belt",
- body="Anhur Robe", hands="Gende. Gages +1", legs="Artsieq Hose", lring="Prolix Ring",
- back="Swith Cape", feet="Chelona Boots"}
- sets.midcast.ballad = {range="Eminent Flute", main="Legato Dagger", sub="Genbu's Shield",
- head="Aoidos' Calot +2", neck="Aoidos' Matinee", lear="Loquac. Earring",
- body="Aoidos' Hngrln. +2", hands="Ad. Mnchtte. +2", ring1="Dark Ring", ring2="Dark Ring",
- back="Umbra Cape", waist="Flume Belt", legs="Aoidos' Rhing. +2", feet="Aoidos' Cothrn. +2"}
- sets.midcast.cure = {
- main="Arka IV",
- sub="Quire Grip",
- head="Gende. Caubeen +1",
- neck="Jeweled Collar",
- ear2="Loquac. Earring",
- ear1="Novia Earring",
- body="Gendewitha Bliaut",
- hands="Bokwus Gloves",
- ring1="Karka Ring",
- ring2="Omega Ring",
- back="Swith Cape",
- waist="Witful Belt",
- legs="Artsieq Hose",
- feet="Gende. Galosh. +1"}
- sets.midcast.stoneskin = {ear2="Earthcry Earring",
- legs="Haven Hose",
- waist="Siegel Sash"}
- sets.midcast.debuff = {
- main="Lehbrailg +2",
- sub="Mephitis Grip",
- head="",
- neck="Aoidos' Matinee",
- ear2="Gwati Earring",
- ear1="Enchanter Earring +1",
- body="Respite Cloak",
- hands="Lurid Mitts",
- ring1="Sangoma Ring",
- ring2="Perception Ring",
- back="Rhapsode's Cape",
- waist="Ovate Rope",
- legs="Artsieq Hose",
- feet="Artsieq Boots"}
- sets.midcast.harp = {range="Terpander"}
- --JA Sets
- sets.precast.JA = {}
- sets.precast.JA['Nightingale'] = {body="Bihu Slippers"}
- sets.precast.JA['Troubadour'] = {feet="Bihu Justaucorps"}
- sets.precast.JA['Soul Voice'] = {legs="Bihu Cannions"}
- end
- function precast(spell)
- if spell.action_type == 'Magic' then
- if spell.type == 'BardSong' and buffactive.Nightingale then
- if string.find(spell.english,'Valor Minuet') then
- if instrument == 2 then
- equip(sets.midcast.noskill,{range="Terpander", body="Aoidos' Hongreline +2"})
- else
- equip(sets.midcast.noskill,{range="Apollo's Flute", body="Aoidos' Hongreline +2"})
- end
- elseif string.find(spell.english,"Knight's Minne") then
- if instrument == 2 then
- equip(sets.midcast.noskill,{range="Terpander"})
- else
- equip(sets.midcast.noskill, {range="Eminent Flute"})
- end
- elseif string.find (spell.english,'Victory March') then
- if instrument == 2 then
- equip(sets.midcast.noskill,{range="Terpander", hands="Aoidos' Manchettes +2"})
- else
- equip(sets.midcast.noskill,{range="Langeleik", hands="Aoidos' Manchettes +2"})
- end
- elseif string.find (spell.english,'Advancing March') then
- if instrument == 2 then
- equip(sets.midcast.noskill,{range="Terpander", hands="Aoidos' Manchettes +2"})
- else
- equip(sets.midcast.noskill,{range="Eminent Flute", hands="Aoidos' Manchettes +2"})
- end
- elseif string.find (spell.english,'Blade Madrigal' or spell.english == 'Sword Madrigal') then
- if instrument == 2 then
- equip(sets.midcast.noskill,{range="Terpander", head="Aoidos' Calot +2"})
- else
- equip(sets.midcast.noskill,{range="Cantabank's Horn", head="Aoidos' Calot +2"})
- end
- elseif string.find(spell.english,"Mage's Ballad") then
- if instrument == 2 then
- equip(sets.midcast.recast,sets.midcast.ballad,{range="Terpander"})
- else
- equip(sets.midcast.recast,sets.midcast.ballad, {range="Eminent Flute"})
- end
- elseif string.find (spell.english,"Sentinel's Scherzo") then
- if instrument == 2 then
- equip(sets.midcast.scherzo, {range="Terpander", feet="Aoidos' Cothurnes +2"})
- else
- equip(sets.midcast.scherzo,{range="Eminent Flute", feet="Aoidos' Cothurnes +2"})
- end
- elseif string.find(spell.english,'Carol') then
- if instrument == 2 then
- equip(sets.midcast.scherzo, {range="Terpander"})
- else
- equip(sets.midcast.scherzo, {range="Eminent Flute"})
- end
- elseif string.find(spell.english,'Prelude') then
- if instrument == 2 then
- equip(sets.midcast.scherzo, {range="Terpander"})
- else
- equip(sets.midcast.scherzo, {range="Cantabank's Horn"})
- end
- elseif string.find(spell.english,'Etude') then
- if instrument == 2 then
- equip(sets.midcast.noskill,{range="Terpander"})
- else
- equip(sets.midcast.noskill,{range="Langeleik"})
- end
- elseif string.find(spell.english,'Mambo') then
- if instrument == 2 then
- equip(sets.midcast.noskill,{range="Terpander"})
- else
- equip(sets.midcast.noskill,{range="Vihuela"})
- end
- elseif string.find(spell.english,'Mazurka') or string.find(spell.english,'Hymnus') or string.find(spell.english,'Paeon') then
- if instrument == 2 then
- equip(sets.midcast.recast,{range="Terpander"})
- else
- equip(sets.midcast.recast, {range="Vihuela"})
- end
- elseif string.find(spell.english,'Elegy') or string.find(spell.english,"Nocturne") or string.find(spell.english,'Threnody') or string.find(spell.english,'Finale') then
- if instrument == 2 then
- instrument = 1
- equip(sets.midcast.debuff, {range="Syrinx"})
- end
- elseif string.find(spell.english,"Nocturne") or string.find(spell.english,'Threnody') or string.find(spell.english,'Finale') then
- if instrument == 2 then
- instrument = 1
- equip(sets.midcast.debuff, {range="Eminent Flute"})
- end
- elseif string.find(spell.english,'Lullaby' )then
- if instrument == 2 then
- instrument = 1
- equip(sets.midcast.debuff, {range="Eminent Flute"})
- end
- elseif string.find (spell.english,'Lullaby' )then
- equip(sets.midcast.debuff, {range="Eminent Flute"})
- end
- elseif spell.type == 'BardSong' then
- if instrument == 2 then
- equip(sets.precast.song,{range="Terpander"})
- else
- equip(sets.precast.song)
- end
- elseif spell.skill == "Healing Magic" then
- if string.find(spell.english,'Cur') and spell.name ~= 'Cursna' then
- equip(sets.precast.cure)
- else
- equip(sets.precast.FC)
- end
- else
- equip(sets.precast.FC)
- end
- elseif spell.action_type == 'JobAbility' then
- if sets.precast.JA[spell.english] then equip(sets.precast.JA[spell.english]) end
- end
- end
- function midcast(spell)
- if spell.action_type == 'Magic' then
- if spell.type == 'BardSong' then
- if string.find(spell.english,'Valor Minuet') then
- if instrument == 2 then
- equip(sets.midcast.noskill,{range="Terpander", body="Aoidos' Hongreline +2"})
- else
- equip(sets.midcast.noskill,{range="Apollo's Flute", body="Aoidos' Hongreline +2"})
- end
- elseif string.find(spell.english,"Knight's Minne") then
- if instrument == 2 then
- equip(sets.midcast.noskill,{range="Terpander"})
- else
- equip(sets.midcast.noskill, {range="Eminent Flute"})
- end
- elseif spell.english == "Victory March" then
- if instrument == 2 then
- equip(sets.midcast.noskill,{range="Terpander", hands="Aoidos' Manchettes +2"})
- else
- equip(sets.midcast.noskill,{range="Langeleik", hands="Aoidos' Manchettes +2"})
- end
- elseif spell.english == 'Blade Madrigal' or spell.english == 'Sword Madrigal' then
- if instrument == 2 then
- equip(sets.midcast.noskill,{range="Terpander", head="Aoidos' Calot +2"})
- else
- equip(sets.midcast.noskill,{range="Cantabank's Horn", head="Aoidos' Calot +2"})
- end
- elseif string.find(spell.english,"Mage's Ballad") then
- if instrument == 2 then
- equip(sets.midcast.recast,sets.midcast.ballad,{range="Terpander"})
- else
- equip(sets.midcast.recast,sets.midcast.ballad, {range="Eminent Flute"})
- end
- elseif spell.english == "Sentinel's Scherzo" then
- if instrument == 2 then
- equip(sets.midcast.scherzo, {range="Terpander", feet="Aoidos' Cothurnes +2"})
- else
- equip(sets.midcast.scherzo,{range="Eminent Flute", feet="Aoidos' Cothurnes +2"})
- end
- elseif spell.english == "Advancing March" then
- if instrument == 2 then
- equip(sets.midcast.scherzo, {range="Terpander", feet="Aoidos' Cothurnes +2"})
- else
- equip(sets.midcast.scherzo,{range="Eminent Flute", feet="Aoidos' Cothurnes +2"})
- end
- elseif string.find(spell.english,'Carol') then
- if instrument == 2 then
- equip(sets.midcast.scherzo, {range="Terpander"})
- else
- equip(sets.midcast.scherzo, {range="Eminent Flute"})
- end
- elseif string.find(spell.english,'Prelude') then
- if instrument == 2 then
- equip(sets.midcast.scherzo, {range="Terpander"})
- else
- equip(sets.midcast.scherzo, {range="Cantabank's Horn"})
- end
- elseif string.find(spell.english,'Etude') then
- if instrument == 2 then
- equip(sets.midcast.noskill,{range="Terpander"})
- else
- equip(sets.midcast.noskill,{range="Langelik"})
- end
- elseif string.find(spell.english,'Mambo') then
- if instrument == 2 then
- equip(sets.midcast.noskill,{range="Terpander"})
- else
- equip(sets.midcast.noskill,{range="Vihuela"})
- end
- elseif string.find(spell.english,'Mazurka') or string.find(spell.english,'Hymnus') or string.find(spell.english,'Paeon') then
- if instrument == 2 then
- equip(sets.midcast.recast,{range="Terpander"})
- else
- equip(sets.midcast.recast, {range="Vihuela"})
- end
- elseif string.find(spell.english,'Elegy') or string.find(spell.english,"Nocturne") or string.find(spell.english,'Threnody') or string.find(spell.english,'Finale') then
- if instrument == 2 then
- equip(sets.midcast.debuff, {range="Syrinx"})
- else
- equip(sets.midcast.debuff,{range="Syrinx"})
- end
- elseif string.find(spell.english,"Nocturne") or string.find(spell.english,'Threnody') or string.find(spell.english,'Finale') then
- if instrument == 2 then
- equip(sets.midcast.debuff, {range="Eminent Flute"})
- else
- equip(sets.midcast.debuff,{range="Eminent Flute"})
- end
- elseif string.find(spell.english,'Foe Lullaby') then
- if instrument == 2 then
- instrument = 1
- equip(sets.midcast.debuff, {range="Eminent Flute"})
- else
- equip(sets.midcast.debuff,{range="Eminent Flute"})
- end
- elseif string.find(spell.english,'Horde Lullaby') then
- equip(sets.midcast.debuff,{range="Nursemaid's Harp"})
- end
- elseif spell.skill == 'Healing Magic' then
- if string.find(spell.english,'Cur') and spell.name ~= 'Cursna' then
- equip(sets.midcast.cure)
- else
- equip(sets.midcast.fastcast)
- end
- elseif spell.skill == 'Enhancing Magic' then
- if string.find(spell.english,'Stoneskin') then
- equip(sets.midcast.stoneskin)
- else
- equip(sets.midcast.fastcast)
- end
- end
- end
- end
- function aftercast(spell)
- if idleset == 1 then
- equip(sets.idle.standard)
- elseif idleset == 2 then
- equip(sets.idle.PDT)
- end
- end
- function self_command(command)
- if command == 'toggle self set' then
- idleset = idleset +1
- if idleset > 2 then
- idleset = 1
- send_command('@input /echo ----- Standard Set -----')
- equip(sets.idle.standard)
- elseif idleset == 2 then
- send_command('@input /echo ----- PDT Set -----')
- equip(sets.idle.PDT)
- end
- elseif command == 'set idle' then
- if idleset == 1 then
- send_command('@input /echo ----- Idle Set -----')
- equip(sets.idle.standard)
- elseif idleset == 2 then
- send_command('@input /echo ----- PDT Set -----')
- equip(sets.idle.PDT)
- end
- elseif command == 'toggle harp' then
- instrument = instrument +1
- if instrument > 2 then
- instrument = 1
- send_command('@input /echo ----- Third Song Disabled -----')
- elseif instrument == 2 then
- send_command('@input /echo ----- Third Song Enabled -----')
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement