Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- *** Credit goes to Flippant for helping me with Gearswap *** --
- -- Last Updated: 03/01/14 12:30 PM *Added Distance Rule/Toggle* --
- function get_sets()
- include('organizer-lib')
- IdleIndex = 1
- IdleArray = {"Movement","Refresh"} -- Default Idle Set Is Movement --
- Armor = 'None'
- Kiting = 'ON' -- Set Default Sublimation Kiting ON or OFF Here --
- target_distance = 5 -- Set Default Distance Here --
- Cure_Spells = {"Cure","Cure II","Cure III","Cure IV","Cure V","Cure VI"} -- Cure Degradation --
- Curaga_Spells = {"Curaga","Curaga II","Curaga III","Curaga IV","Curaga V"} -- Curaga Degradation --
- Na_Spells = S{"Paralyna","Cursna","Silena","Poisona","Blindna","Viruna","Stona","Erase"}
- sc_map = {SC1 = "AfflatusSolace", SC2 = "Sublimation", SC3 = "LightArts"} -- 3 Additional Binds. Can Change Whatever JA/WS/Spells You Like Here. Remember Not To Use Spaces. --
- -- Idle Sets --
- sets.Idle = {main="Daybreak",
- sub="Genmei Shield",
- ammo="Homiliary",
- head="Inyanga Tiara +2",
- body="Theo. Bliaut +3",
- hands="Inyan. Dastanas +2",
- legs="Assid. Pants +1",
- feet="Herald's Gaiters",
- neck="Loricate Torque +1",
- waist="Fucho-no-Obi",
- left_ear="Etiolation Earring",
- right_ear="Sanare Earring",
- left_ring="Inyanga Ring",
- right_ring="Stikini Ring +1",
- back={ name="Alaunus's Cape", augments={'MND+20','Eva.+20 /Mag. Eva.+20','Mag. Evasion+10','"Fast Cast"+10',}},}
- sets.Idle.Refresh = {
- main="Daybreak",
- sub="Genmei Shield",
- ammo="Homiliary",
- head="Inyanga Tiara +2",
- body="Theo. Bliaut +3",
- hands="Inyan. Dastanas +2",
- legs="Assid. Pants +1",
- feet="Herald's Gaiters",
- neck="Loricate Torque +1",
- waist="Fucho-no-Obi",
- left_ear="Etiolation Earring",
- right_ear="Sanare Earring",
- left_ring="Inyanga Ring",
- right_ring="Stikini Ring +1",
- back={ name="Alaunus's Cape", augments={'MND+20','Eva.+20 /Mag. Eva.+20','Mag. Evasion+10','"Fast Cast"+10',}},}
- sets.Idle.Movement = sets.Idle.Refresh
- sets.Resting = set_combine(sets.Idle.Refresh,{
- })
- -- PDT Set --
- sets.PDT = {}
- sets.MDT = set_combine(sets.PDT,{})
- sets.Sublimation = {}
- sets.Precast = {}
- -- Fastcast Set --
- sets.Precast.FastCast = {
- main={ name="Gada", augments={'Enh. Mag. eff. dur. +6','MND+1','"Mag.Atk.Bns."+17',}},
- sub="Genmei Shield",
- ammo="Impatiens",
- head={ name="Vanya Hood", augments={'MP+50','"Fast Cast"+10','Haste+2%',}},
- body="Inyanga Jubbah +2",
- hands={ name="Gende. Gages +1", augments={'Phys. dmg. taken -4%',}},
- legs="Aya. Cosciales +2",
- feet="Regal Pumps +1",
- neck={ name="Clr. Torque +1", augments={'Path: A',}},
- waist="Witful Belt",
- left_ear="Etiolation Earring",
- right_ear="Loquac. Earring",
- left_ring="Weather. Ring",
- right_ring="Kishar Ring",
- back={ name="Alaunus's Cape", augments={'MND+20','Eva.+20 /Mag. Eva.+20','Mag. Evasion+10','"Fast Cast"+10',}},
- }
- -- Elemental Staves --
- sets.Precast.Light = {}
- -- Precast EnhancingMagic Set --
- sets.Precast['Enhancing Magic'] = set_combine(sets.Precast.FastCast,{})
- -- Precast HealingMagic Set --
- sets.Precast.HealingMagic = set_combine(sets.Precast.FastCast,{
- neck="Aceso's Choker +1"})
- --Precast Afflatus Solace --
- sets.Precast['Afflatus Solace'] = {body="Ebers Bliaut +1"}
- -- Cure Precast Set --
- sets.Precast.Cure = set_combine(sets.Precast.FastCast,{
- sub={neck="Aceso's Choker +1",
- feet="Hygieia Clogs +1",
- lear="Mendi. Earring",}})
- -- Arise Precast Set --
- sets.Precast.Arise = set_combine(sets.Precast.FastCast,{})
- -- Midcast Base Set --
- sets.Midcast = set_combine(sets.Precast.FastCast,{})
- -- Haste Set --
- sets.Midcast.Haste = set_combine(sets.Precast.FastCast,{})
- -- Cure Set --
- sets.Midcast.Cure = {
- main="Raetic Rod +1",
- sub="Ammurapi Shield",
- ammo="Pemphredo Tathlum",
- head={ name="Kaykaus Mitra +1", augments={'MP+80','MND+12','Mag. Acc.+20',}},
- body="Ebers Bliaut +1",
- hands="Theophany Mitts +3",
- legs="Ebers Pant. +2",
- feet={ name="Piety Duckbills +3", augments={'Enhances "Afflatus Solace" effect',}},
- neck={ name="Clr. Torque +1", augments={'Path: A',}},
- waist="Shinjutsu-no-Obi +1",
- left_ear="Magnetic Earring",
- right_ear="Glorious Earring",
- left_ring="Mephitas's Ring +1",
- right_ring="Stikini Ring +1",
- back={ name="Alaunus's Cape", augments={'MND+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','Haste+10','Spell interruption rate down-10%',}},
- }
- -- Curaga Set --
- sets.Midcast.Curaga = set_combine(sets.Midcast.Cure,{body="Theo. Bliaut +3"})
- -- EnhancingMagic Set --
- sets.Midcast['Enhancing Magic'] = set_combine(sets.Precast.Fastcast,{
- main={ name="Gada", augments={'"Fast Cast"+5','VIT+1','"Mag.Atk.Bns."+20','DMG:+5',}},
- head="Befouled Crown",
- hands="Inyan. Dastanas +2",
- legs="Piety Pantaln. +3",
- feet="Theo. Duckbills +3",
- neck="Incanter's Torque",
- waist="Olympus Sash",
- left_ear="Meili Earring",
- right_ear="Andoaa Earring",})
- -- Shellra V Set --
- sets.Midcast.Shellra = sets.Midcast['Enhancing Magic']
- -- Protectra V Set --
- sets.Midcast.Protectra = sets.Midcast['Enhancing Magic']
- -- Arise Set --
- sets.Midcast.Arise = set_combine(sets.Precast.FastCast,{})
- -- Auspice Set --
- sets.Midcast.Auspice = set_combine(sets.Precast.FastCast,{feet="Ebers Duckbills +1"})
- -- Stoneskin Set --
- sets.Midcast.Stoneskin = set_combine(sets.Midcast['Enhancing Magic'],{
- neck="Nodens Gorget"})
- -- Erase --
- sets.Midcast.Erase = set_combine(sets.Precast.Fastcast,{neck={ name="Clr. Torque +1", augments={'Path: A',}}})
- -- Regen Set --
- sets.Midcast.Regen = set_combine(sets.Midcast.Haste,{
- main="Bolelabunga",
- sub="Ammurapi Shield",
- head="Inyanga Tiara +2",
- body={ name="Piety Bliaut +3", augments={'Enhances "Benediction" effect',}},
- hands="Ebers Mitts +1",
- legs="Th. Pant. +3",
- feet="Theo. Duckbills +3",
- right_ring="Stikini Ring +1",})
- -- Barspells Set --
- sets.Midcast.Bar = set_combine(sets.Midcast['Enhancing Magic'],{
- main="Beneficus",
- head="Ebers Cap +1",
- body="Ebers Bliaut +1",
- hands="Ebers Mitts +1",
- legs="Piety Pantaln. +3",
- feet="Theo. Duckbills +3",
- right_ring="Stikini Ring +1",
- back={ name="Alaunus's Cape", augments={'MND+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','Haste+10','Spell interruption rate down-10%',}},
- })
- -- Na Set --
- sets.Midcast.Na = set_combine(sets.Midcast.Haste,{
- main="Yagrush",
- head="Ebers Cap +1",
- neck={ name="Clr. Torque +1", augments={'Path: A',}},
- back="Mending Cape"})
- -- Cursna Set --
- sets.Midcast.Cursna = {
- main="Yagrush",
- ammo="Pemphredo Tathlum",
- head={ name="Vanya Hood", augments={'MP+50','"Fast Cast"+10','Haste+2%',}},
- body="Ebers Bliaut +1",
- hands={ name="Fanatic Gloves", augments={'MP+50','Healing magic skill +10','"Conserve MP"+7','"Fast Cast"+7',}},
- legs="Th. Pant. +3",
- feet={ name="Vanya Clogs", augments={'Healing magic skill +20','"Cure" spellcasting time -7%','Magic dmg. taken -3',}},
- neck="Debilis Medallion",
- waist="Olympus Sash",
- left_ear="Meili Earring",
- right_ear="Regal Earring",
- left_ring="Haoma's Ring",
- right_ring="Menelaus's Ring",
- back={ name="Alaunus's Cape", augments={'MND+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','Haste+10','Spell interruption rate down-10%',}}}
- -- DivineMagic Set --
- sets.Midcast.DivineMagic = set_combine(sets.Midcast.Haste,{
- main={ name="Gada", augments={'"Fast Cast"+5','VIT+1','"Mag.Atk.Bns."+20','DMG:+5',}},
- sub="Ammurapi Shield",
- body={ name="Vanya Robe", augments={'MND+8','Spell interruption rate down +11%','"Conserve MP"+5',}},
- hands={ name="Fanatic Gloves", augments={'MP+50','Healing magic skill +10','"Conserve MP"+7','"Fast Cast"+7',}},
- legs="Th. Pant. +3",
- neck="Incanter's Torque",
- right_ear="Regal Earring",
- left_ring="Weather. Ring",
- right_ring="Stikini Ring +1",
- })
- -- EnfeeblingMagic Set --
- sets.Midcast['Enfeebling Magic'] = {
- main="Yagrush",
- sub="Ammurapi Shield",
- ammo="Pemphredo Tathlum",
- head="Theophany Cap +3",
- body="Theo. Bliaut +3",
- hands={ name="Kaykaus Cuffs +1", augments={'MP+80','MND+12','Mag. Acc.+20',}},
- legs="Th. Pant. +3",
- feet="Theo. Duckbills +3",
- neck="Erra Pendant",
- waist="Rumination Sash",
- left_ear="Vor Earring",
- right_ear="Regal Earring",
- left_ring="Stikini Ring +1",
- right_ring="Kishar Ring",
- back={ name="Alaunus's Cape", augments={'MND+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','Haste+10','Spell interruption rate down-10%',}}}
- sets.Midcast.Banish = {main="Daybreak",
- sub="Ammurapi Shield",
- ammo="Ghastly Tathlum +1",
- head="Theophany Cap +3",
- body="Theo. Bliaut +3",
- hands={ name="Fanatic Gloves", augments={'MP+50','Healing magic skill +10','"Conserve MP"+7','"Fast Cast"+7',}},
- legs="Th. Pant. +3",
- feet="Theo. Duckbills +3",
- neck="Incanter's Torque",
- waist="Luminary Sash",
- left_ear="Malignance Earring",
- right_ear="Regal Earring",
- left_ring="Weather. Ring",
- right_ring="Stikini Ring +1",
- back={ name="Alaunus's Cape", augments={'MND+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','Haste+10','Spell interruption rate down-10%',}}}
- sets.Midcast['Banish II'] = set_combine(sets.Midcast.Banish, {})
- sets.Midcast['Banish III'] = set_combine(sets.Midcast.Banish, {})
- sets.Midcast.Holy = set_combine(sets.Midcast.Banish, {})
- sets.Midcast['Holy II'] = set_combine(sets.Midcast.Banish, {})
- -- DarkMagic Set --
- sets.Midcast.DarkMagic = {}
- -- Impact Set --
- sets.Midcast.Impact = {}
- -- JA Sets --
- sets.JA = {}
- sets.JA.Benediction = {body="Piety Bliaut +3"}
- sets.JA.Devotion = {}
- sets.JA["Afflatus Solace"] = {
- body="Ebers Bliaut +1",
- feet={ name="Piety Duckbills +3", augments={'Enhances "Afflatus Solace" effect',}},
- back={ name="Alaunus's Cape", augments={'MND+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','Haste+10','Spell interruption rate down-10%',}}}
- sets.JA["Afflatus Misery"] = {legs="Piety Pantaln. +3"}
- -- Melee Set --
- sets.Melee = {ammo="Jukukik Feather",
- head="Aya. Zucchetto +2",
- body="Ayanmo Corazza +2",
- hands="Aya. Manopolas +2",
- legs="Aya. Cosciales +2",
- feet="Aya. Gambieras +2",
- neck="Lissome Necklace",
- waist="Windbuffet Belt +1",
- left_ear="Brutal Earring",
- right_ear="Telos Earring",
- left_ring="Petrov Ring",
- right_ring="Hetairoi Ring",
- back={ name="Alaunus's Cape", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10','Phys. dmg. taken-10%',}}}
- -- WS Base Set --
- sets.WS = {ammo="Floestone",
- head="Aya. Zucchetto +2",
- body="Ayanmo Corazza +2",
- hands="Aya. Manopolas +2",
- legs="Aya. Cosciales +2",
- feet="Aya. Gambieras +2",
- neck={ name="Clr. Torque +1", augments={'Path: A',}},
- waist="Grunfeld Rope",
- left_ear="Regal Earring",
- right_ear={ name="Moonshade Earring", augments={'Attack+4','TP Bonus +250',}},
- left_ring="Petrov Ring",
- right_ring="Metamor. Ring +1",
- back={ name="Alaunus's Cape", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10','Phys. dmg. taken-10%',}}}
- sets.WS["Hexa Strike"] = sets.WS
- sets.WS.Realmrazer = sets.WS
- sets.WS.Dagan = sets.WS
- sets.WS["Mystic Boon"] = sets.WS
- sets.WS.Randgrith = sets.WS
- end
- function pretarget(spell,action)
- if (spell.type:endswith('Magic') or spell.type == "Ninjutsu") and buffactive.silence then -- Auto Use Echo Drops If You Are Silenced --
- cancel_spell()
- send_command('input /echo use echos!')
- 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)
- elseif spell.english == "Rampart" then
- cancel_spell()
- send_command('input /ja Sacrosanctity <me>')
- elseif spell.english == "Dispel" and spell.target.type=="PLAYER" then
- cancel_spell()
- send_command('input /ma Sacrifice ' .. spell.target.name)
- elseif spell.english == "Dispel" and player.target.type=="PLAYER" then
- cancel_spell()
- send_command('input /ma Sacrifice ' .. player.target.name)
- elseif buffactive['Light Arts'] or buffactive['Addendum: White'] then
- if spell.english == "Light Arts" and not buffactive['Addendum: White'] then
- cancel_spell()
- send_command('input /ja Addendum: White <me>')
- elseif spell.english == "Manifestation" then
- cancel_spell()
- send_command('input /ja Accession <me>')
- elseif spell.english == "Alacrity" then
- cancel_spell()
- send_command('input /ja Celerity <me>')
- elseif spell.english == "Parsimony" then
- cancel_spell()
- send_command('input /ja Penury <me>')
- end
- elseif buffactive['Dark Arts'] or buffactive['Addendum: Black'] then
- if spell.english == "Dark Arts" and not buffactive['Addendum: Black'] then
- cancel_spell()
- send_command('input /ja Addendum: Black <me>')
- elseif spell.english == "Accession" then
- cancel_spell()
- send_command('input /ja Manifestation <me>')
- elseif spell.english == "Celerity" then
- cancel_spell()
- send_command('input /ja Alacrity <me>')
- elseif spell.english == "Penury" then
- cancel_spell()
- send_command('input /ja Parsimony <me>')
- end
- end
- end
- function precast(spell,action)
- if spell.type:endswith('Magic') or spell.type == "Ninjutsu" then
- if buffactive.silence or spell.target.distance > 16+target_distance then -- Cancel Magic or Ninjutsu 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 string.find(spell.english,'Cur') and spell.english ~= "Cursna" then
- equip(sets.Precast.Cure)
- elseif spell.english == "Impact" then
- equip(set_combine(sets.Precast.FastCast,{body="Twilight Cloak"}))
- 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.name .. ' Canceled: [3+ Images]')
- return
- else
- equip(sets.Precast.FastCast)
- end
- elseif sets.Precast[spell.skill] then
- equip(sets.Precast[spell.skill])
- else
- equip(sets.Precast.FastCast)
- end
- end
- elseif spell.type == "JobAbility" then
- if sets.JA[spell.english] then
- equip(sets.JA[spell.english])
- end
- elseif spell.type == "WeaponSkill" then
- if player.status ~= 'Engaged' then -- Cancel WS If You Are Not Engaged. Can Delete It If You Don't Need It --
- cancel_spell()
- add_to_chat(123,'Unable To Use WeaponSkill: [Disengaged]')
- return
- elseif sets.WS[spell.english] then
- equip(sets.WS[spell.english])
- end
- elseif spell.english == 'Spectral Jig' and buffactive.Sneak then
- cast_delay(0.2)
- send_command('cancel Sneak')
- end
- if sets.Precast[spell.element] and not Na_Spells:contains(spell.english) then
- equip(sets.Precast[spell.element])
- end
- end
- function midcast(spell,action)
- equipSet = {}
- if spell.type:endswith('Magic') or spell.type == 'Ninjutsu' then
- equipSet = sets.Midcast
- if Na_Spells:contains(spell.english) then
- equipSet = equipSet.Na
- if buffactive['Divine Caress'] then
- equipSet = set_combine(equipSet,{hands="Ebers Mitts",back="Mending Cape"})
- end
- elseif string.find(spell.english,'Cur') and spell.english ~= "Cursna" then
- if string.find(spell.english,'Cure') then
- if buffactive["Afflatus Solace"] then
- equipSet = equipSet.Cure
- else
- equipSet = equipSet.Cure
- end
- elseif string.find(spell.english,'Cura') then
- equipSet = equipSet.Curaga
- end
- if world.day_element == spell.element or world.weather_element == spell.element then
- equipSet = set_combine(sets.Midcast.Cure,{})
- end
- elseif spell.english == "Stoneskin" then
- if buffactive.Stoneskin then
- send_command('@wait 2.8;cancel stoneskin')
- equipSet = sets.Midcast.Stoneskin
- end
- elseif spell.english == "Sneak" then
- if spell.target.name == player.name and buffactive['Sneak'] then
- send_command('cancel sneak')
- end
- equipSet = equipSet.Haste
- elseif string.find(spell.english,'Bar') then
- equipSet = equipSet.Bar
- elseif string.find(spell.english,'Regen') then
- equipSet = equipSet.Regen
- elseif string.find(spell.english,'Banish') then
- equipSet = set_combine(equipSet,{hands="Clr. Mitts +2"})
- elseif string.find(spell.english,'Reraise') then
- equipSet = equipSet.Haste
- elseif string.find(spell.english,'Arise') then
- equipSet = equipSet.Arise
- elseif string.find(spell.english,'Raise') then
- equipSet = equipSet.Arise
- elseif string.find(spell.english,'Shellra') then
- equipSet = equipSet.Shellra
- elseif string.find(spell.english,'Protectra') then
- equipSet = equipSet.Protectra
- 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 = equipSet.Haste
- elseif spell.english == 'Monomi: Ichi' then
- if buffactive['Sneak'] then
- send_command('@wait 1.7;cancel sneak')
- end
- equipSet = sets.Midcast.Haste
- else
- if equipSet[spell.english] then
- equipSet = equipSet[spell.english]
- end
- if equipSet[spell.skill] then
- equipSet = equipSet[spell.skill]
- end
- if equipSet[spell.type] then
- equipSet = equipSet[spell.type]
- end
- end
- elseif equipSet[spell.english] then
- equipSet = equipSet[spell.english]
- end
- equip(equipSet)
- end
- function aftercast(spell,action)
- if (spell.english == "Repose" or spell.english == "Sleep II") and not spell.interrupted then
- send_command('wait 60;input /echo Sleep Effect: [WEARING OFF IN 30 SEC.];wait 15;input /echo Sleep Effect: [WEARING OFF IN 15 SEC.];wait 10;input /echo Sleep Effect: [WEARING OFF IN 5 SEC.]')
- elseif (spell.english == "Sleep" or spell.english == "Sleepga") and not spell.interrupted then
- send_command('wait 30;input /echo Sleep Effect: [WEARING OFF IN 30 SEC.];wait 15;input /echo Sleep Effect: [WEARING OFF IN 15 SEC.];wait 10;input /echo Sleep Effect: [WEARING OFF IN 5 SEC.]')
- elseif spell.english == "Banish III" and not spell.interrupted then
- send_command('wait 35;input /echo Banish Effect: [WEARING OFF IN 10 SEC.]')
- end
- status_change(player.status)
- end
- function status_change(new,old)
- if Armor == 'PDT' then
- equip(sets.PDT)
- elseif Armor == 'MDT' then
- equip(sets.MDT)
- elseif new == 'Engaged' then
- equip(sets.Melee)
- elseif new == 'Idle' then
- equip(sets.Idle[IdleArray[IdleIndex]])
- 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/Countdown --
- 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 == 'C1' then -- Kiting Toggle --
- if Kiting == 'ON' then
- Kiting = 'OFF'
- add_to_chat(123,'Kiting Set: [Unlocked]')
- else
- Kiting = 'ON'
- add_to_chat(158,'Kiting Set: [Locked]')
- end
- status_change(player.status)
- elseif command == 'C5' then -- Auto Update Gear Toggle --
- status_change(player.status)
- add_to_chat(158,'Auto Update Gear')
- elseif command == 'C7' then
- if Armor == 'PDT' then -- PDT Toggle --
- Armor = 'None'
- add_to_chat(123,'PDT Set: [Unlocked]')
- else
- Armor = 'PDT'
- add_to_chat(158,'PDT Set: [Locked]')
- end
- status_change(player.status)
- elseif command == 'C15' then
- if Armor == 'MDT' then -- MDT Toggle --
- Armor = 'None'
- add_to_chat(123,'MDT Set: [Unlocked]')
- else
- Armor = 'MDT'
- add_to_chat(158,'MDT Set: [Locked]')
- end
- status_change(player.status)
- elseif command == 'C8' then -- Distance Toggle --
- if player.target.distance then
- target_distance = math.floor(player.target.distance*10)/10
- add_to_chat(158,'Distance: '..target_distance)
- else
- add_to_chat(123,'No Target Selected')
- end
- 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
- 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 select_default_macro_book()
- set_macro_page(1, 11)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement