Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function get_sets()
- AccIndex = 1
- AccArray = {"LowACC","MidACC"} -- 3 Levels Of Accuracy Sets For TP/WS. First Set Is LowACC. Add More ACC Sets If Needed Then Create Your New ACC Below --
- IdleIndex = 1
- IdleArray = {"Refresh","Movement"} -- Default Idle Set Is Movement --
- Harp = 'OFF'
- select_default_macro_book() -- Change Default Macro Book At The End --
- -- Daurdabla Trigger Songs --
- DaurdSongs = S{
- "Knight's Minne","Army's Paeon","Army's Paeon II","Army's Paeon III","Army's Paeon IV","Army's Paeon V",
- "Goddess's Hymnus","Chocobo Mazurka","Raptor Mazurka"
- }
- Cure_Spells = {"Cure","Cure II","Cure III","Cure IV"} -- Cure Degradation --
- Curaga_Spells = {"Curaga","Curaga II"} -- Curaga Degradation --
- -- Items --
- organizer_items = {
- i1="Carnwenhan",
- i2="Kali",
- i3="Gjallarhorn",
- i4="Marsyas",
- i5="Daurdabla",
- }
- sets.Idle = {}
- -- Idle Sets --
- sets.Idle.Refresh = {
- main="Carnwenhan",
- sub="Genmei Shield",
- range="Marsyas",
- head="Aya. Zucchetto +2",
- body="Ayanmo Corazza +2",
- hands="Aya. Manopolas +2",
- legs="Aya. Cosciales +2",
- feet="Fili Cothurnes +1",
- neck="Loricate Torque +1",
- waist="Dynamic Belt",
- left_ear="Loquac. Earring",
- right_ear="Sanare Earring",
- left_ring="Sheltered Ring",
- right_ring="Ayanmo Ring",
- back={ name="Intarabus's Cape", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10','Phys. dmg. taken-10%',}},
- }
- sets.Idle.Movement = set_combine(sets.Idle.Refresh,{
- main="Carnwenhan",
- feet="Fili Cothurnes +1"
- })
- sets.Resting = set_combine(sets.Idle.Refresh,{
- main="Carnwenhan",
- feet="Fili Cothurnes +1"
- })
- -- DT Set --
- sets.DT = set_combine(sets.Idle.Movement,{
- main="Carnwenhan",
- sub="Genmei Shield",
- range="Marsyas",
- head="Aya. Zucchetto +2",
- body="Ayanmo Corazza +2",
- hands="Aya. Manopolas +2",
- legs="Aya. Cosciales +2",
- feet="Fili Cothurnes +1",
- neck="Loricate Torque +1",
- waist="Dynamic Belt",
- left_ear="Loquac. Earring",
- right_ear="Sanare Earring",
- left_ring="Sheltered Ring",
- right_ring="Ayanmo Ring",
- back={ name="Intarabus's Cape", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10','Phys. dmg. taken-10%',}},
- })
- sets.MEVA = set_combine(sets.DT,{
- main="Carnwenhan",
- sub="Genmei Shield",
- range="Marsyas",
- head="Aya. Zucchetto +2",
- body="Ayanmo Corazza +2",
- hands="Aya. Manopolas +2",
- legs="Aya. Cosciales +2",
- feet="Fili Cothurnes +1",
- neck="Loricate Torque +1",
- waist="Dynamic Belt",
- left_ear="Loquac. Earring",
- right_ear="Sanare Earring",
- left_ring="Sheltered Ring",
- right_ring="Ayanmo Ring",
- back={ name="Intarabus's Cape", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10','Phys. dmg. taken-10%',}},
- })
- sets.Precast = {}
- sets.Precast.FastCast = {
- main="Carnwenhan",
- sub="Genmei Shield",
- head="Nahtirah Hat",
- body="Inyanga Jubbah +2",
- hands={ name="Gende. Gages +1", augments={'Phys. dmg. taken -3%','Song spellcasting time -5%',}},
- legs="Aya. Cosciales +2",
- feet="Fili Cothurnes +1",
- neck="Orunmila's Torque",
- waist="Witful Belt",
- left_ear="Loquac. Earring",
- right_ear="Singing Earring",
- left_ring="Weather. Ring",
- right_ring="Kishar Ring",
- back={ name="Intarabus's Cape", augments={'CHR+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10','Damage taken-5%',}},
- }
- sets.Precast.SongCast = set_combine(sets.Precast.FastCast,{
- main="Carnwenhan",
- sub="Genmei Shield",
- head="Nahtirah Hat",
- body="Inyanga Jubbah +2",
- hands={ name="Gende. Gages +1", augments={'Phys. dmg. taken -3%','Song spellcasting time -5%',}},
- legs="Aya. Cosciales +2",
- feet={ name="Bihu Slippers +2", augments={'Enhances "Nightingale" effect',}},
- neck="Orunmila's Torque",
- waist="Witful Belt",
- left_ear="Loquac. Earring",
- right_ear="Aoidos' Earring",
- left_ring="Weather. Ring",
- right_ring="Kishar Ring",
- back={ name="Intarabus's Cape", augments={'CHR+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10','Damage taken-5%',}},
- })
- -- Precast Stoneskin Set --
- sets.Precast.Stoneskin = set_combine(sets.Precast.FastCast,{
- waist="Siegel Sash"
- })
- -- Cure Precast Set --
- sets.Precast.Cure = set_combine(sets.Precast.FastCast,{
- sub="Genmei Shield",
- body="Heka's Kalasiris",
- legs="Doyen Pants"
- })
- -- Midcast Base Set --
- sets.Midcast = set_combine(sets.Precast.FastCast,{
- main="Carnwenhan",
- neck="Aoidos' Matinee",
- body="Fili Hongreline +1",
- legs="Inyanga Shalwar +2",
- feet="Brioso Slippers +3",
- })
- -- Midcast Daurdabla Set --
- sets.Midcast.Daurdabla = {
- main="Carnwenhan",
- range="Daurdabla",
- ammo=empty,
- neck="Aoidos' Matinee",
- body="Fili Hongreline +1",
- legs="Inyanga Shalwar +2",
- feet="Brioso Slippers +3",
- }
- -- Song Debuff Set --
- sets.Midcast.Wind = {
- main="Carnwenhan",
- sub="Genmei Shield",
- range="Gjallarhorn",
- head="Fili Calot +1",
- body="Fili Hongreline +1",
- hands="Inyan. Dastanas +2",
- legs="Inyanga Shalwar +2",
- feet="Brioso Slippers +3",
- neck="Aoidos' Matinee",
- waist="Harfner's Sash",
- left_ear="Singing Earring",
- right_ear="Musical Earring",
- left_ring="Weather. Ring",
- right_ring="Kishar Ring",
- back={ name="Intarabus's Cape", augments={'CHR+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10','Damage taken-5%',}},
- }
- sets.Midcast.Duration = {
- main="Carnwenhan",
- sub="Genmei Shield",
- range="Marsyas",
- head="Fili Calot +1",
- body="Fili Hongreline +1",
- hands="Inyan. Dastanas +2",
- legs="Inyanga Shalwar +2",
- feet="Brioso Slippers +3",
- neck="Aoidos' Matinee",
- waist="Harfner's Sash",
- left_ear="Singing Earring",
- right_ear="Musical Earring",
- left_ring="Weather. Ring",
- right_ring="Kishar Ring",
- back={ name="Intarabus's Cape", augments={'CHR+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10','Damage taken-5%',}},
- }
- -- Song Buff Set --
- sets.Midcast.WindBuff = {
- main="Carnwenhan",
- sub="Genmei Shield",
- range="Gjallarhorn",
- head="Fili Calot +1",
- body="Fili Hongreline +1",
- hands="Fili Manchettes +1",
- legs="Inyanga Shalwar +2",
- feet="Brioso Slippers +3",
- neck="Moonbow Whistle",
- waist="Harfner's Sash",
- left_ear="Singing Earring",
- right_ear="Musical Earring",
- left_ring="Weather. Ring",
- right_ring="Kishar Ring",
- back={ name="Intarabus's Cape", augments={'CHR+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10','Damage taken-5%',}},
- }
- sets.Midcast.Ballad = {
- legs="Fili Rhingrave +1"
- }
- sets.Midcast.Carol = {
- hands="Mousai Gages"
- }
- sets.Midcast.Madrigal = {
- head="Fili Calot +1",
- back={ name="Intarabus's Cape", augments={'CHR+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10','Damage taken-5%',}},
- }
- sets.Midcast.March = {
- hands="Fili Manchettes +1"
- }
- sets.Midcast.Minuet = {
- body="Fili Hongreline +1"
- }
- sets.Midcast.Paeon = {
- head="Brioso Roundlet +1",
- }
- sets.Midcast.Prelude = {
- back={ name="Intarabus's Cape", augments={'CHR+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10','Damage taken-5%',}},
- }
- sets.Midcast.Scherzo = {
- legs="Inyanga Shalwar +2",
- feet="Fili Cothurnes +1"
- }
- sets.Midcast.Lullaby = {
- main="Carnwenhan",
- range="Gjallarhorn",
- head="Aya. Zucchetto +2",
- body="Ayanmo Corazza +2",
- hands="Brioso Cuffs +3",
- legs="Inyanga Shalwar +2",
- feet="Brioso Slippers +3",
- neck="Moonbow Whistle",
- waist="Harfner's Sash",
- left_ear="Lifestorm Earring",
- right_ear="Psystorm Earring",
- left_ring="Weather. Ring",
- right_ring="Kishar Ring",
- back={ name="Intarabus's Cape", augments={'CHR+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10','Damage taken-5%',}},
- }
- -- Cure Set --
- sets.Midcast.Cure = {
- head={ name="Vanya Hood", augments={'MP+50','"Cure" potency +7%','Enmity-6',}},
- body={ name="Telchine Chas.", augments={'Mag. Acc.+9','"Cure" potency +6%',}},
- hands="Bokwus Gloves",
- legs={ name="Chironic Hose", augments={'"Mag.Atk.Bns."+12','"Cure" potency +8%','INT+6',}},
- feet="Fili Cothurnes +1",
- neck="Nodens Gorget",
- waist="Witful Belt",
- left_ear="Loquac. Earring",
- right_ear="Singing Earring",
- left_ring="Weather. Ring",
- back="Solemnity Cape",
- }
- sets.Midcast.SelfCure = set_combine(sets.Midcast.Cure,{
- neck="Phalaina Locket",
- waist="Gishdubar Sash"
- })
- sets.Midcast.Na = set_combine(sets.Precast.FastCast,{
- neck="Incanter's Torque",
- hands="Inyan. Dastanas +2",
- ring1="Haoma's Ring",
- ring2="Haoma's Ring",
- })
- sets.Midcast.Cursna = set_combine(sets.Midcast.Na,{
- body="Inyanga Jubbah +2",
- hands="Gende. Gages +1",
- legs="Gyve Trousers",
- feet="Gende. Galosh. +1",
- neck="Debilis Medallion",
- waist="Witful Belt",
- left_ear="Loquac. Earring",
- right_ear="Enchntr. Earring +1",
- left_ring="Ephedra Ring",
- right_ring="Ephedra Ring",
- back={ name="Intarabus's Cape", augments={'CHR+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10','Damage taken-5%',}},
- })
- -- Enhancing Magic Set --
- sets.Midcast['Enhancing Magic'] = set_combine(sets.Precast.FastCast,{
- head={ name="Telchine Cap", augments={'Enh. Mag. eff. dur. +9',}},
- body={ name="Telchine Chas.", augments={'Enh. Mag. eff. dur. +8',}},
- hands="Telchine Gloves",
- legs={ name="Telchine Braconi", augments={'"Elemental Siphon"+25','Enh. Mag. eff. dur. +10',}},
- feet="Telchine Pigaches",
- neck="Incanter's Torque",
- waist="Olympus Sash",
- left_ear="Andoaa Earring",
- right_ear="Enchntr. Earring +1",
- left_ring="Inyanga Ring",
- right_ring="Stikini Ring",
- back={ name="Intarabus's Cape", augments={'CHR+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10','Damage taken-5%',}},
- })
- sets.Midcast.Aquaveil = set_combine(sets.Midcast['Enhancing Magic'],{
- head="Chironic Hat",
- waist="Emphatikos Rope",
- legs="Shedir Seraweels"
- })
- sets.Midcast.Bar = set_combine(sets.Midcast['Enhancing Magic'],{
- neck="Incanter's Torque",
- ear1="Andoaa Earring",
- hands="Inyan. Dastanas +2",
- ring1="Inyanga Ring",
- ring2="Stikini Ring",
- back="Fi Follet Cape +1",
- waist="Olympus Sash",
- legs="Shedir Seraweels"
- })
- sets.Midcast.Stoneskin = set_combine(sets.Midcast['Enhancing Magic'],{
- neck="Nodens Gorget",
- ear1="Regal Earring",
- ear2="Earthcry Earring",
- ring1="Inyanga Ring",
- ring2="Stikini Ring",
- back="Fi Follet Cape +1",
- waist="Siegel Sash",
- legs="Shedir Seraweels",
- feet={ name="Telchine Pigaches", augments={'Mag. Evasion+24','"Fast Cast"+5','Enh. Mag. eff. dur. +7',}}
- })
- -- Dark Magic Set --
- sets.Midcast['Dark Magic'] = set_combine(sets.Midcast.Wind,{
- head="Inyanga Tiara +2",
- neck="Incanter's Torque",
- body="Inyanga Jubbah +2",
- hands="Inyan. Dastanas +2",
- back={ name="Intarabus's Cape", augments={'CHR+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10',}},
- legs="Chironic Hose",
- feet="Inyan. Crackows +1"
- })
- -- Enfeebling Magic Set --
- sets.Midcast['Enfeebling Magic'] = set_combine(sets.Midcast['Dark Magic'],{
- head="Inyanga Tiara +2",
- body="Vanya Robe",
- feet="Medium's Sabots",
- right_ring="Kishar Ring",
- })
- -- JA Sets --
- sets.JA = {}
- sets.JA.Nightingale = { feet={ name="Bihu Slippers +2", augments={'Enhances "Nightingale" effect',}},
- }
- sets.JA.Troubadour = { body={ name="Bihu Jstcorps. +3", augments={'Enhances "Troubadour" effect',}},
- }
- sets.JA["Soul Voice"] = { legs={ name="Bihu Cannions +1", augments={'Enhances "Soul Voice" effect',}},
- }
- -- Melee Sets --
- sets.TP = {
- main="Carnwenhan",
- sub="Genmei Shield",
- head="Aya. Zucchetto +2",
- body="Ayanmo Corazza +2",
- hands="Aya. Manopolas +2",
- legs="Aya. Cosciales +2",
- feet="Aya. Gambieras +2",
- neck="Asperity Necklace",
- waist="Dynamic Belt",
- left_ear="Steelflash Earring",
- right_ear="Bladeborn Earring",
- left_ring="Mouflon Ring",
- right_ring="Ayanmo Ring",
- back={ name="Intarabus's Cape", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10','Phys. dmg. taken-10%',}},
- }
- sets.TP.MidACC = set_combine(sets.TP,{
- })
- sets.TP.NIN = set_combine(sets.TP,{
- main={ name="Kali", augments={'Mag. Acc.+15','String instrument skill +10','Wind instrument skill +10',}},
- })
- sets.TP.NIN.MidACC = set_combine(sets.TP.NIN,{
- main={ name="Kali", augments={'Mag. Acc.+15','String instrument skill +10','Wind instrument skill +10',}},
- })
- -- WS Base Set --
- sets.WS = {
- body={ name="Bihu Jstcorps. +3", augments={'Enhances "Troubadour" effect',}},
- }
- sets.WS["Aeolian Edge"] = set_combine(sets.WS,{
- })
- sets.WS.Evisceration = set_combine(sets.WS,{
- })
- sets.WS.Exenterator = set_combine(sets.WS,{
- })
- sets.WS["Mordant Rime"] = set_combine(sets.WS,{
- })
- sets.WS["Mordant Rime"].MidACC = set_combine(sets.WS["Mordant Rime"],{
- feet="Aya. Gambieras +2"
- })
- sets.WS["Rudra's Storm"] = set_combine(sets.WS,{
- })
- sets.WS["Rudra's Storm"].MidACC = set_combine(sets.WS["Rudra's Storm"],{
- })
- -- Harp Lock --
- sets.Harp = {
- range="Daurdabla"
- }
- end
- function pretarget(spell,action)
- status_change(player.status)
- if (spell.type:endswith('Magic') or spell.type == "BardSong" or spell.type == "Ninjutsu") and buffactive.silence then -- Auto Use Echo Drops If You Are Silenced --
- cancel_spell()
- send_command('input /item "Echo Drops" <me>')
- elseif spell.english:ifind("Cure") and player.mp<actualCost(spell.mp_cost) then
- degrade_spell(spell,Cure_Spells)
- elseif spell.english:ifind("Curaga") and player.mp<actualCost(spell.mp_cost) then
- degrade_spell(spell,Curaga_Spells)
- end
- end
- function precast(spell,action)
- if spell.type:endswith('Magic') or spell.type == "BardSong" or spell.type == "Ninjutsu" or spell.type == "Trust" then
- if buffactive.silence then -- Cancel Magic or Ninjutsu or BardSong If You Are Silenced or Out of Range --
- cancel_spell()
- add_to_chat(123, spell.name..' Canceled: [Silenced or Out of Casting Range]')
- return
- else
- if spell.type == 'BardSong' then
- -- Auto-Pianissimo
- if spell.target.type == 'PLAYER' and not spell.target.charmed and not buffactive.Pianissimo then
- cancel_spell()
- send_command('@input /ja "Pianissimo" <me>; wait 1; input /ma "'..spell.name..'" '..spell.target.name)
- return
- elseif buffactive.Nightingale then
- equip_song_gear(spell)
- return
- else
- equip(sets.Precast.SongCast)
- end
- if spell.english=="Honor March" then
- equip(set_combine(sets.Precast.SongCast),{range="Marsyas"})
- end
- if DaurdSongs:contains(spell.english) then
- equip(set_combine(sets.Precast.SongCast),{range="Daurdabla"})
- end
- elseif string.find(spell.english,'Cur') and spell.english ~= "Cursna" then
- equip(sets.Precast.Cure)
- elseif string.find(spell.english,'Utsusemi') then
- if buffactive['Copy Image (3)'] or buffactive['Copy Image (4)'] then
- cancel_spell()
- add_to_chat(123, spell.english .. ' Canceled: [3+ Images]')
- return
- else
- equip(sets.Precast.FastCast)
- end
- elseif sets.Precast[spell.english] then
- equip(sets.Precast[spell.english])
- else
- equip(sets.Precast.FastCast)
- end
- end
- elseif spell.type == "WeaponSkill" then
- equipSet = sets.WS
- if equipSet[spell.english] then
- equipSet = equipSet[spell.english]
- end
- if equipSet[AccArray[AccIndex]] then
- equipSet = equipSet[AccArray[AccIndex]]
- end
- if player.tp > 2750 then
- if spell.english ~= "Aeolian Edge" or spell.english ~= "Mordant Rime" or spell.english ~= "Exenterator" then
- equipSet = set_combine(equipSet,{
- ear2="Kuwunga Earring",})
- end
- elseif player.equipment.main == "Aeneas" and player.tp > 2250 then
- if spell.english ~= "Aeolian Edge" or spell.english ~= "Mordant Rime" or spell.english ~= "Exenterator" then
- equipSet = set_combine(equipSet,{
- ear2="Kuwunga Earring",})
- end
- else
- equipSet = set_combine(equipSet,{})
- end
- equip(equipSet)
- elseif spell.type == "JobAbility" then
- if sets.JA[spell.english] then
- equip(sets.JA[spell.english])
- end
- elseif spell.type == "Jig" then
- if spell.english == 'Spectral Jig' and buffactive.Sneak then
- cast_delay(0.2)
- send_command('cancel Sneak')
- end
- --equip(set.Jig)
- end
- end
- function midcast(spell,action)
- equipSet = {}
- if spell.type:endswith('Magic') or spell.type == 'Ninjutsu' or spell.type == "Trust" then
- equipSet = sets.Midcast
- if string.find(spell.english,'Cur') and spell.english ~= "Cursna" then
- if spell.target.name == player.name then
- equipSet = equipSet.SelfCure
- else
- equipSet = equipSet.Cure
- end
- elseif string.find(spell.english,'na') and spell.english ~= "Cursna" then
- equipSet = equipSet.Na
- elseif string.find(spell.english,'Bar') then
- equipSet = equipSet.Bar
- elseif string.find(spell.english,'Utsusemi') then
- if spell.english == 'Utsusemi: Ichi' and (buffactive['Copy Image'] or buffactive['Copy Image (2)']) then
- send_command('@wait 1.7;cancel Copy Image*')
- end
- equipSet = sets.DT
- else
- if equipSet[spell.english] then
- equipSet = equipSet[spell.english]
- if spell.english == "Cursna" and spell.target.name == player.name then
- equipSet = set_combine(equipSet,{ring1="Purity Ring"})
- end
- end
- if equipSet[spell.skill] then
- equipSet = equipSet[spell.skill]
- end
- if equipSet[AccArray[AccIndex]] then
- equipSet = equipSet[AccArray[AccIndex]]
- end
- if sets.Midcast[spell.type] then
- equip(sets.Midcast[spell.type])
- end
- end
- elseif spell.type == 'BardSong' then
- equip_song_gear(spell)
- end
- equip(equipSet)
- if Harp == 'ON' then
- equip(sets.Harp)
- end
- end
- --main="Carnwenhan", 50
- --neck="Mnbw. Whistle +1", 30
- --body="Fili Hongreline +1 +1", 12
- --hands="Brioso Cuffs +3 +3", 20
- --legs="Inyanga Shalwar", 17
- --feet="Brioso Slippers +3 +3", 15
- --Gift 5
- -- =149
- --Daurdabla 30 = 279
- --Blurred Harp +1 40 = 289
- --Formula
- --{[(Base60 * Duration Gear) + JP20 + CC40]Nitro2}
- --Blurred Harp +1
- --{[(60*2.89)+20+40]2}
- --466.8 = 7:46.8
- function aftercast(spell,action)
- if not spell.interrupted then
- if buffactive.Troubadour and buffactive['Clarion Call'] and spell.english == "Horde Lullaby II" then -- Countdown --
- if player.equipment.range == "Blurred Harp +1" then --466.8
- send_command('input /t <me> 7:46 Lullaby Duration;wait 406;input /t <me> 7:46 Lullaby Effect: [WEARING OFF IN 60 SEC.];wait 30;input /t <me> 7:46 Lullaby Effect: [WEARING OFF IN 30 SEC.];wait 15;input /t <me> 7:46 Lullaby Effect: [WEARING OFF IN 15 SEC.];wait 10;input /echo 7:46 Lullaby Effect: [WEARING OFF IN 5 SEC.]')
- elseif player.equipment.range == "Daurdabla" then --454.8
- send_command('input /t <me> 7:34 Lullaby Duration;wait 394;input /t <me> 7:34 Lullaby Effect: [WEARING OFF IN 60 SEC.];wait 30;input /t <me> 7:34 Lullaby Effect: [WEARING OFF IN 30 SEC.];wait 15;input /t <me> 7:34 Lullaby Effect: [WEARING OFF IN 15 SEC.];wait 10;input /echo 7:34 Lullaby Effect: [WEARING OFF IN 5 SEC.]')
- end
- elseif buffactive.Troubadour and buffactive.Marcato and spell.english == "Horde Lullaby II" then
- if player.equipment.range == "Blurred Harp +1" then --406.8
- send_command('input /t <me> 6:46 Lullaby Duration;wait 346;input /t <me> 6:46 Lullaby Effect: [WEARING OFF IN 60 SEC.];wait 30;input /t <me> 6:46 Lullaby Effect: [WEARING OFF IN 30 SEC.];wait 15;input /t <me> 6:46 Lullaby Effect: [WEARING OFF IN 15 SEC.];wait 10;input /echo 6:46 Lullaby Effect: [WEARING OFF IN 5 SEC.]')
- elseif player.equipment.range == "Daurdabla" then --394.8
- send_command('input /t <me> 6:34 Lullaby Duration;wait 334;input /t <me> 6:34 Lullaby Effect: [WEARING OFF IN 60 SEC.];wait 30;input /t <me> 6:34 Lullaby Effect: [WEARING OFF IN 30 SEC.];wait 15;input /t <me> 6:34 Lullaby Effect: [WEARING OFF IN 15 SEC.];wait 10;input /echo 6:34 Lullaby Effect: [WEARING OFF IN 5 SEC.]')
- end
- elseif buffactive.Troubadour and spell.english == "Horde Lullaby II" then
- if player.equipment.range == "Blurred Harp +1" then --
- send_command('input /t <me> 6:26 Lullaby Duration;wait 326;input /t <me> 6:26 Lullaby Effect: [WEARING OFF IN 60 SEC.];wait 30;input /t <me> 6:26 Lullaby Effect: [WEARING OFF IN 30 SEC.];wait 15;input /t <me> 6:26 Lullaby Effect: [WEARING OFF IN 15 SEC.];wait 10;input /echo 6:26 Lullaby Effect: [WEARING OFF IN 5 SEC.]')
- elseif player.equipment.range == "Daurdabla" then --
- send_command('input /t <me> 6:14 Lullaby Duration;wait 314;input /t <me> 6:14 Lullaby Effect: [WEARING OFF IN 60 SEC.];wait 30;input /t <me> 6:14 Lullaby Effect: [WEARING OFF IN 30 SEC.];wait 15;input /t <me> 6:14 Lullaby Effect: [WEARING OFF IN 15 SEC.];wait 10;input /echo 6:14 Lullaby Effect: [WEARING OFF IN 5 SEC.]')
- end
- elseif spell.english == "Horde Lullaby II" then --MACC Gear 270
- if player.equipment.range == "Blurred Harp +1" then --182
- send_command('input /t <me> 3:02 Lullaby Duration;wait 122;input /t <me> 3:02 Lullaby Effect: [WEARING OFF IN 60 SEC.];wait 30;input /t <me> 3:02 Lullaby Effect: [WEARING OFF IN 30 SEC.];wait 15;input /t <me> 3:02 Lullaby Effect: [WEARING OFF IN 15 SEC.];wait 10;input /echo 3:02 Lullaby Effect: [WEARING OFF IN 5 SEC.]')
- elseif player.equipment.range == "Daurdabla" then --176
- send_command('input /t <me> 2:56 Lullaby Duration;wait 116;input /t <me> 2:56 Lullaby Effect: [WEARING OFF IN 60 SEC.];wait 30;input /t <me> 2:56 Lullaby Effect: [WEARING OFF IN 30 SEC.];wait 15;input /t <me> 2:56 Lullaby Effect: [WEARING OFF IN 15 SEC.];wait 10;input /echo 2:56 Lullaby Effect: [WEARING OFF IN 5 SEC.]')
- end
- end
- end
- status_change(player.status)
- end
- function status_change(new,old)
- check_equip_lock()
- if Armor == 'DT' then
- equip(sets.DT)
- elseif Armor == 'MEVA' then
- equip(sets.MEVA)
- elseif new == 'Engaged' then
- equipSet = sets.TP
- if equipSet[player.sub_job] then
- equipSet = equipSet[player.sub_job]
- end
- if equipSet[AccArray[AccIndex]] then
- equipSet = equipSet[AccArray[AccIndex]]
- end
- equip(equipSet)
- elseif new == 'Idle' then
- equip(sets.Idle[IdleArray[IdleIndex]])
- if world.area:endswith('Adoulin') then
- equip({body="Councilor's Garb"})
- end
- elseif new == 'Resting' then
- equip(sets.Resting)
- end
- end
- function buff_change(buff,gain)
- buff = string.lower(buff)
- if buff == "aftermath: lv.3" then -- AM3 Timer --
- if gain then
- send_command('timers create "Aftermath: Lv.3" 180 down;wait 120;input /echo Aftermath: Lv.3 [WEARING OFF IN 60 SEC.];wait 30;input /echo Aftermath: Lv.3 [WEARING OFF IN 30 SEC.];wait 20;input /echo Aftermath: Lv.3 [WEARING OFF IN 10 SEC.]')
- else
- send_command('timers delete "Aftermath: Lv.3"')
- add_to_chat(123,'AM3: [OFF]')
- end
- elseif buff == 'weakness' then -- Weakness Timer --
- if gain then
- send_command('timers create "Weakness" 300 up')
- else
- send_command('timers delete "Weakness"')
- end
- end
- if not midaction() then
- status_change(player.status)
- end
- end
- -- In Game: //gs c (command), Macro: /console gs c (command), Bind: gs c (command) --
- function self_command(command)
- if command == 'C16' then -- Daurdabla Toggle --
- if Harp == 'ON' then
- Harp = 'OFF'
- add_to_chat(123,'Daurdabla: [Unlocked]')
- else
- Harp = 'ON'
- add_to_chat(158,'Daurdabla: [Locked]')
- end
- status_change(player.status)
- elseif command == 'C17' then -- Accuracy Level Toggle --
- AccIndex = (AccIndex % #AccArray) + 1
- status_change(player.status)
- add_to_chat(158,'Accuracy Level: ' .. AccArray[AccIndex])
- elseif command == 'C7' then -- DT Toggle --
- if Armor == 'DT' then
- Armor = 'None'
- add_to_chat(123,'DT Set: [Unlocked]')
- else
- Armor = 'DT'
- add_to_chat(158,'DT Set: [Locked]')
- end
- status_change(player.status)
- elseif command == 'C15' then -- MEVA Toggle --
- if Armor == 'MEVA' then
- Armor = 'None'
- add_to_chat(123,'MEVA Set: [Unlocked]')
- else
- Armor = 'MEVA'
- add_to_chat(158,'MEVA Set: [Locked]')
- end
- status_change(player.status)
- elseif command == 'C6' then -- Idle Toggle --
- IdleIndex = (IdleIndex % #IdleArray) + 1
- add_to_chat(158,'Idle Set: '..IdleArray[IdleIndex])
- status_change(player.status)
- elseif command:match('^SC%d$') then
- send_command('//' .. sc_map[command])
- end
- end
- --Stops the appropriate slot from changing when "" is equiped
- function check_equip_lock()
- if
- player.equipment.left_ring == "Warp Ring" or
- player.equipment.left_ring == "Capacity Ring" or
- player.equipment.left_ring == "Facility Ring" or
- player.equipment.left_ring == "Vocation Ring" or
- player.equipment.left_ring == "Emperor Band" or
- player.equipment.left_ring == "Duodec. Ring" or
- player.equipment.left_ring == "Trizek Ring" or
- player.equipment.left_ring == "Echad Ring" then
- disable('ring1')
- else
- enable('ring1')
- end
- if
- player.equipment.right_ring == "Warp Ring" or
- player.equipment.right_ring == "Capacity Ring" or
- player.equipment.right_ring == "Facility Ring" or
- player.equipment.right_ring == "Vocation Ring" or
- player.equipment.right_ring == "Emperor Band" or
- player.equipment.right_ring == "Duodec. Ring" or
- player.equipment.right_ring == "Trizek Ring" or
- player.equipment.right_ring == "Echad Ring" then
- disable('ring2')
- else
- enable('ring2')
- end
- end
- function equip_song_gear(spell)
- if DaurdSongs:contains(spell.english) then
- equip(sets.Midcast.Daurdabla)
- add_to_chat(158,'Daurdabla: [ON]')
- else
- if spell.target.type == 'MONSTER' then
- equip(sets.Midcast.Wind)
- if (buffactive['Elemental Seal'] or buffactive['Soul Voice'] or buffactive.Troubadour) then
- equip(sets.Midcast.Duration)
- end
- if string.find(spell.english,'Horde') then
- equip{range="Daurdabla"} --Daurdabla or Blurred Harp +1
- end
- else
- equip(sets.Midcast.WindBuff)
- if string.find(spell.english,'Ballad') then equip(sets.Midcast.Ballad) end
- if string.find(spell.english,'Carol') then equip(sets.Midcast.Carol) end
- if string.find(spell.english,'Madrigal') then equip(sets.Midcast.Madrigal) end
- if string.find(spell.english,'March') then equip(sets.Midcast.March) end
- if spell.english=="Honor March" then equip(set_combine(sets.Midcast.March),{range="Marsyas"}) end
- if string.find(spell.english,'Minuet') then equip(sets.Midcast.Minuet) end
- if string.find(spell.english,'Paeon') then equip(sets.Midcast.Paeon) end
- if string.find(spell.english,'Prelude') then equip(sets.Midcast.Prelude) end
- if string.find(spell.english,'Scherzo') then equip(sets.Midcast.Scherzo) end
- end
- end
- end
- function actualCost(originalCost)
- if buffactive["Penury"] then
- return originalCost*.5
- elseif buffactive["Light Arts"] then
- return originalCost*.9
- else
- return originalCost
- end
- end
- function degrade_spell(spell,degrade_array)
- spell_index = table.find(degrade_array,spell.name)
- if spell_index>1 then
- new_spell = degrade_array[spell_index - 1]
- change_spell(new_spell,spell.target.raw)
- add_to_chat(8,spell.name..' Canceled: ['..player.mp..'/'..player.max_mp..'MP::'..player.mpp..'%] Casting '..new_spell..' instead.')
- end
- end
- function change_spell(spell_name,target)
- cancel_spell()
- send_command('//'..spell_name..' '..target)
- end
- function sub_job_change(newSubjob, oldSubjob)
- select_default_macro_book()
- end
- function set_macro_page(set,book)
- if not tonumber(set) then
- add_to_chat(123,'Error setting macro page: Set is not a valid number ('..tostring(set)..').')
- return
- end
- if set < 1 or set > 10 then
- add_to_chat(123,'Error setting macro page: Macro set ('..tostring(set)..') must be between 1 and 10.')
- return
- end
- if book then
- if not tonumber(book) then
- add_to_chat(123,'Error setting macro page: book is not a valid number ('..tostring(book)..').')
- return
- end
- if book < 1 or book > 20 then
- add_to_chat(123,'Error setting macro page: Macro book ('..tostring(book)..') must be between 1 and 20.')
- return
- end
- send_command('@input /macro book '..tostring(book)..';wait .1;input /macro set '..tostring(set))
- else
- send_command('@input /macro set '..tostring(set))
- end
- end
- function select_default_macro_book()
- -- Default macro set/book
- if player.sub_job == 'WHM' then
- set_macro_page(1, 2)
- elseif player.sub_job == 'BLM' then
- set_macro_page(1, 2)
- else
- set_macro_page(1, 2)
- end
- include('organizer-lib')
- end
Advertisement
Add Comment
Please, Sign In to add comment