Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- *** Credit goes to Flippant for helping me with Gearswap *** --
- -- ** I Use Motenten's Macro Book Function ** --
- function get_sets()
- AccIndex = 1
- AccArray = {"LowACC","MidACC","HighACC"} -- 3 Levels Of Accuracy Sets For TP/WS/Magic. Default ACC Set Is LowACC. Add More ACC Sets If Needed Then Create Your New ACC Below --
- IdleIndex = 1
- IdleArray = {"Movement","Refresh"} -- Default Idle Set Is Movement --
- Armor = 'None'
- StunIndex = 0
- Lock_Main = 'OFF' -- Set Default Lock Main Weapon ON or OFF Here --
- Obi = 'OFF' -- Turn Default Obi ON or OFF Here --
- LowNuke = 'OFF' -- Set Default Low Tier Nuke ON or OFF Here --
- MB = 'OFF' -- Set Default MB ON or OFF Here --
- Elemental_Staff = 'OFF' -- Set Default Precast Elemental Staff ON or OFF Here --
- Enspells = 'OFF' -- Set Default Enspells ON or OFF Here --
- target_distance = 5 -- Set Default Distance Here --
- select_default_macro_book() -- Change Default Macro Book At The End --
- Low_Tier_Spells = S{
- 'Fire','Aero','Water','Blizzard','Stone','Thunder','Fire II','Aero II','Water II',
- 'Blizzard II','Stone II','Thunder II'}
- Non_Obi_Spells = S{
- 'Burn','Choke','Drown','Frost','Rasp','Shock','Impact','Anemohelix','Cryohelix',
- 'Geohelix','Hydrohelix','Ionohelix','Luminohelix','Noctohelix','Pyrohelix'}
- Cure_Spells = {"Cure","Cure II","Cure III","Cure IV"} -- Cure Degradation --
- Curaga_Spells = {"Curaga","Curaga II"} -- Curaga Degradation --
- sc_map = {SC1 = "Composure", SC2 = "Stun", SC3 = "Chainspell"} -- 3 Additional Binds. Can Change Whatever JA/WS/Spells You Like Here. Remember Not To Use Spaces. --
- sets.Idle = {}
- -- Idle Sets --
- sets.Idle.Refresh = {
- ammo="Homiliary",
- head="Vitivation Chapeau +1",
- neck="Loricate Torque +1",
- ear1="Etiolation Earring",
- ear2="Infused Earring",
- body="Witching Robe",
- hands="Chironic Gloves",
- ring1="Defending Ring",
- ring2="Warden's Ring",
- back="Solemnity Cape",
- waist="Fucho-no-obi",
- legs="Carmine Cuisses +1",
- feet="Chironic Slippers"}
- sets.Idle.Movement = set_combine(sets.Idle.Refresh,{
- legs="Carmine Cuisses +1"})
- sets.Resting = set_combine(sets.Idle.Movement,{})
- -- PDT Set --
- sets.PDT = {}
- -- Sublimation Set --
- sets.Sublimation = {}
- sets.Precast = {}
- -- Fastcast Set (empty = To Fix Club/Staff Issue) --
- sets.Precast.FastCast = {
- ammo="Impatiens",
- head="Carmine Mask +1",
- neck="Voltsurge Torque",
- ear1="Etiolation Earring",
- ear2="Loquac. Earring",
- body="Anhur Robe",
- hands="Leyline Gloves",
- ring1="Veneficium Ring",
- ring2="Weather. Ring",
- back="Ogapepo Cape",
- waist="Witful Belt",
- legs="Psycloth Lappas",
- feet="Carmine Greaves +1"}
- -- Elemental Staves --
- sets.Precast.Lightning = {main='Apamajas I'}
- sets.Precast.Water = {main='Haoma I'}
- sets.Precast.Fire = {main='Atar I'}
- sets.Precast.Ice = {main='Vourukasha I'}
- sets.Precast.Wind = {main='Vayuvata I'}
- sets.Precast.Earth = {main='Vishrava I'}
- sets.Precast.Light = {main='Arka I'}
- sets.Precast.Dark = {main='Xsaeta I'}
- -- Precast Enhancing Magic --
- sets.Precast['Enhancing Magic'] = set_combine(sets.Precast.FastCast,{waist="Siegel Sash"})
- -- Precast Enfeebling Magic --
- sets.Precast['Enfeebling Magic'] = set_combine(sets.Precast.FastCast,{head="Leth. Chappel +1"})
- -- Precast Cure Set --
- sets.Precast.Cure = {
- ammo="Impatiens",
- head="Carmine Mask +1",
- neck="Voltsurge Torque",
- ear1="Etiolation Earring",
- ear2="Loquac. Earring",
- body="Anhur Robe",
- hands="Leyline Gloves",
- ring1="Veneficium Ring",
- ring2="Weather. Ring",
- back="Swith Cape",
- waist="Witful Belt",
- legs="Lengo Pants",
- feet="Carmine Geaves +1"}
- -- Midcast Base Set --
- sets.Midcast = {}
- -- Haste Set --
- sets.Midcast.Haste = {
- head="Telchine Cap",
- body="Telchine Chasuble",
- hands="Atrophy Gloves +1",
- back="Sucellos's Cape",
- legs="Telchine Braconi",
- feet="Leth. Houseaux +1"}
- -- Cure Set --
- sets.Midcast.Cure = {
- ammo="Hydrocera",
- head="Kaykaus Mitra",
- neck="Incanter's Torque",
- ear1="Gifted Earring",
- ear2="Mendicant's Earring",
- body="Vanya Robe",
- hands="Kaykaus Cuffs",
- ring1="Kuchekula Ring",
- ring2="Vertigo Ring",
- back="Solemnity Cape",
- waist="Luminary Sash",
- legs="Gyve Trousers",
- feet="Kaykaus Boots"}
- -- Curaga Set --
- sets.Midcast.Curaga = {}
- -- Enhancing Magic --
- sets.Midcast['Enhancing Magic'] = {
- head="Befouled Crown",
- neck="Incanter's Torque",
- ear1="Gifted Earring",
- ear2="Andoaa Earring",
- body="Telchine Chasuble",
- hands="Atrophy Gloves +1",
- back="Ghostfyre Cape",
- legs="Carmine Cuisses +1",
- feet="Leth. Houseaux +1"}
- -- Refresh --
- sets.Midcast.Refresh = set_combine(sets.Midcast.Haste,{
- head="Amalric Coif",
- back="Sucellos's Cape",
- waist="Gishdubar Sash",
- legs="Leth. Fuseau +1",
- feet="Inspirited Boots"})
- -- Aquaveil --
- sets.Midcast.Aquaveil = set_combine(sets.Midcast.Haste,{
- head="Amalric Coif"})
- -- Composure(Enhancing Magic On Others) Set --
- sets.Composure = {
- head="Leth. Chappel +1",
- body="Lethargy Sayon +1",
- hands="Atrophy Gloves +1",
- back="Ghostfyre Cape",
- legs="Leth. Fuseau +1",
- feet="Leth. Houseaux +1"}
- -- Stoneskin --
- sets.Midcast.Stoneskin = set_combine(sets.Midcast['Enhancing Magic'],{
- neck="Nodens Gorget",
- hands="Stone Mufflers",
- back="Siegel Sash"})
- -- Phalanx --
- sets.Midcast.Phalanx = set_combine(sets.Midcast['Enhancing Magic'],{})
- -- Cursna --
- sets.Midcast.Cursna = set_combine(sets.Midcast.Haste,{})
- -- Stun Sets --
- sets.Midcast.Stun = {}
- sets.Midcast.Stun.MidACC = set_combine(sets.Midcast.Stun,{})
- sets.Midcast.Stun.HighACC = set_combine(sets.Midcast.Stun.MidACC,{})
- -- Dark Magic Sets --
- sets.Midcast['Dark Magic'] = {}
- sets.Midcast['Dark Magic'].MidACC = set_combine(sets.Midcast['Dark Magic'],{})
- sets.Midcast['Dark Magic'].HighACC = set_combine(sets.Midcast['Dark Magic'].MidACC,{})
- -- Low Tier Set --
- sets.LowNuke = {}
- -- MB Set --
- sets.MB = {}
- -- Elemental Sets --
- sets.Midcast['Elemental Magic'] = {
- ammo="Pemphredo Tathlum",
- head="Chironic Hat",
- neck="Sanctity Necklace",
- ear1="Friomisi Earring",
- ear2="Strophadic Earring",
- body="Jhakri Robe +1",
- hands="Amalric Gages",
- ring1="Vertigo Ring",
- ring2="Shiva Ring",
- waist="Yamabuki-no-Obi",
- legs="Merlinic Shalwar",
- feet="Merlinic Crackows"}
- sets.Midcast['Elemental Magic'].MidACC = set_combine(sets.Midcast['Elemental Magic'],{})
- sets.Midcast['Elemental Magic'].HighACC = set_combine(sets.Midcast['Elemental Magic'].MidACC,{})
- -- Enfeebling Sets --
- sets.Midcast['Enfeebling Magic'] = {
- ammo="Pemphredo Tathlum",
- head="Carmine Mask +1",
- neck="Sanctity Necklace",
- ear2="Digni. Earring",
- body="Vanya Robe",
- hands="Kaykaus Cuffs",
- ring1="Vertigo Ring",
- ring2="Weather. Ring",
- back="Aurist's Cape",
- waist="Luminary Sash",
- legs="Chironic Hose",
- feet="Medium's Sabots"}
- sets.Midcast['Enfeebling Magic'].MidACC = set_combine(sets.Midcast['Enfeebling Magic'],{})
- sets.Midcast['Enfeebling Magic'].HighACC = set_combine(sets.Midcast['Enfeebling Magic'].MidACC,{})
- -- Impact --
- sets.Midcast.Impact = {
- body="Twilight Cloak"}
- -- Elemental Obi/Twilight Cape --
- sets.Obi = {}
- sets.Obi.Lightning = {back="Twilight Cape",waist='Hachirin-no-Obi'}
- sets.Obi.Water = {back="Twilight Cape",waist='Hachirin-no-Obi'}
- sets.Obi.Fire = {back="Twilight Cape",waist='Hachirin-no-Obi'}
- sets.Obi.Ice = {back="Twilight Cape",waist='Hachirin-no-Obi'}
- sets.Obi.Wind = {back="Twilight Cape",waist='Hachirin-no-Obi'}
- sets.Obi.Earth = {back="Twilight Cape",waist='Hachirin-no-Obi'}
- sets.Obi.Light = {back="Twilight Cape",waist='Hachirin-no-Obi'}
- sets.Obi.Dark = {back="Twilight Cape",waist='Hachirin-no-Obi'}
- -- JA Sets --
- sets.JA = {}
- sets.JA.Chainspell = {body="Viti. Tabard +1"}
- sets.JA.Saboteur = {hands="Leth. Gantherots +1"}
- -- Melee Sets --
- sets.Melee = {
- ammo="Ginsen",
- head="Carmine Mask +1",
- neck="Lissome Necklace",
- ear1="Suppanomimi",
- ear2="Cessance Earring",
- body="Taeon Tabard",
- hands="Taeon Gloves",
- ring1="Petrov Ring",
- ring2="Hetairoi Ring",
- back="Sucellos's Cape",
- waist="Shetal Stone",
- legs="Carmine Cuisses +1",
- feet="Carmine Greaves +1"}
- sets.Melee.MidACC = set_combine(sets.Melee,{
- ear1="Digni. Earring",
- waist="Kentarch Belt +1"})
- sets.Melee.HighACC = set_combine(sets.Melee.MidACC,{})
- -- WS Base Set --
- sets.WS = {}
- -- Chant du Cygne Sets --
- sets.WS["Chant du Cygne"] = {
- ammo="Yetshila",
- head="Carmine Mask +1",
- neck="Fotia Gorget",
- ear1="Mache Earring",
- ear2="Cessance Earring",
- body="Taeon Tabard",
- hands="Taeon Gloves",
- ring1="Begruding Ring",
- ring2="Hetairoi Ring",
- back="Sucellos's Cape",
- waist="Fotia Belt",
- legs="Carmine Cuisses +1",
- feet="Thereoid Greaves"}
- sets.WS["Chant du Cygne"].MidACC = set_combine(sets.WS["Chant du Cygne"],{})
- sets.WS["Chant du Cygne"].HighACC = set_combine(sets.WS["Chant du Cygne"].MidACC,{})
- -- Requiescat Sets --
- sets.WS.Requiescat = {}
- sets.WS.Requiescat.MidACC = set_combine(sets.WS.Requiescat,{})
- sets.WS.Requiescat.HighACC = set_combine(sets.WS.Requiescat.MidACC,{})
- -- Knights of Round Set --
- sets.WS["Knights of Round"] = {}
- -- Exenterator Sets --
- sets.WS.Exenterator = {}
- sets.WS.Exenterator.MidACC = set_combine(sets.WS.Exenterator,{})
- sets.WS.Exenterator.HighACC = set_combine(sets.WS.Exenterator.MidACC,{})
- -- Evisceration Sets --
- sets.WS.Evisceration = {}
- sets.WS.Evisceration.MidACC = set_combine(sets.WS.Evisceration,{})
- sets.WS.Evisceration.HighACC = set_combine(sets.WS.Evisceration.MidACC,{})
- -- Idle Reive Set --
- sets.Reive = {neck="Adoulin's Refuge +1"}
- end
- function pretarget(spell,action)
- if spell.action_type == 'Magic' and buffactive.silence then -- Auto Use Echo Drops If You Are Silenced --
- cancel_spell()
- send_command('input /item "Echo Drops" <me>')
- elseif spell.type == "WeaponSkill" and spell.target.distance > target_distance and player.status == 'Engaged' then -- Cancel WS If You Are Out Of Range --
- cancel_spell()
- add_to_chat(123, spell.name..' Canceled: [Out of Range]')
- return
- elseif spell.english:startswith("Cure") and player.mp<actualCost(spell.mp_cost) then
- degrade_spell(spell,Cure_Spells)
- elseif spell.english:startswith("Curaga") and player.mp<actualCost(spell.mp_cost) then
- degrade_spell(spell,Curaga_Spells)
- 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.action_type == 'Magic' 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 spell.english:startswith('Cur') and spell.english ~= "Cursna" then
- equip(sets.Precast.Cure)
- elseif spell.english == "Stun" then
- if buffactive.Composure then -- Cancel Composure When You Cast Stun --
- cast_delay(0.2)
- send_command('cancel Composure')
- end
- equip(sets.Precast.FastCast)
- elseif spell.english == "Impact" then
- equip(set_combine(sets.Precast.FastCast,{body="Twilight Cloak"}))
- elseif spell.english:startswith("En") and Enspells == 'ON' then
- local list={Dark="blizzard",Water="water",Earth="stone",Ice="blizzard",Fire="fire",Wind="aero",Lightning="thunder",Light="fire"}
- if spell.english ~= 'En'..list[world.day_element]..''..(spell.english:endswith(' II') and ' II' or '') then
- cancel_spell()
- send_command('@input /ma "En'..list[world.day_element]..''..(spell.english:endswith(' II') and ' II' or '')..'" <me>')
- return
- end
- elseif spell.english == 'Utsusemi: Ni' then
- if buffactive['Copy Image (3)'] 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 == "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
- else
- equipSet = sets.WS
- if equipSet[spell.english] then
- equipSet = equipSet[spell.english]
- end
- if equipSet[AccArray[AccIndex]] then
- equipSet = equipSet[AccArray[AccIndex]]
- end
- if (spell.english == "Chant du Cygne" or spell.english == "Evisceration") and player.tp > 2990 then -- Equip Jupiter's Pearl When You Have 3000 TP --
- equipSet = set_combine(equipSet,{ear1="Jupiter's Pearl"})
- end
- equip(equipSet)
- end
- elseif spell.type == "JobAbility" then
- if sets.JA[spell.english] then
- equip(sets.JA[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 Elemental_Staff == 'ON' then
- equip(sets.Precast[spell.element])
- end
- if StunIndex == 1 then
- equip(sets.Midcast.Stun)
- end
- end
- function midcast(spell,action)
- equipSet = {}
- if spell.action_type == 'Magic' then
- equipSet = sets.Midcast
- if spell.english:startswith('Cur') and spell.english ~= "Cursna" then
- if spell.english:startswith('Cure') then
- equipSet = equipSet.Cure
- elseif spell.english:startswith('Cura') then
- equipSet = equipSet.Curaga
- end
- if world.day_element == spell.element or world.weather_element == spell.element then
- equipSet = set_combine(equipSet,{back="Twilight Cape",waist="Hachirin-no-Obi"})
- end
- elseif spell.english:startswith('Refresh') then
- equipSet = equipSet.Refresh
- elseif spell.english:startswith('Haste') then
- equipSet = equipSet.Haste
- elseif spell.english:startswith('Flurry') then
- equipSet = equipSet.Haste
- elseif spell.english == "Stoneskin" then
- if buffactive.Stoneskin then
- send_command('@wait 2.8;cancel stoneskin')
- end
- equipSet = equipSet.Stoneskin
- elseif spell.english == "Phalanx II" then -- Equip Aug'd Viti. Gloves +1 When You Cast Phalanx II --
- equipSet = set_combine(equipSet,{hands="Viti. Gloves +1"})
- elseif spell.english == "Dia III" or spell.english == "Slow II" then -- Equip Aug'd Viti. Chapeau +1 When You Cast Dia III or Slow II --
- equipSet = set_combine(equipSet,{head="Viti. Chapeau +1"})
- elseif spell.english == "Paralyze II" then -- Equip Aug'd Vitivation Boots +1 When You Cast Paralyze II --
- equipSet = set_combine(equipSet,{feet="Vitivation Boots +1"})
- elseif spell.english == "Blind II" or spell.english == "Bio III" then -- Equip Aug'd Viti. Tights +1 When You Cast Blind II or Bio III --
- equipSet = set_combine(equipSet,{legs="Viti. Tights +1"})
- elseif spell.english == "Sneak" then
- if spell.target.name == player.name and buffactive['Sneak'] then
- send_command('cancel sneak')
- end
- equipSet = equipSet.Haste
- elseif spell.english:startswith('Banish') then
- equipSet = set_combine(equipSet.Haste,{ring1="Fenian Ring"})
- elseif Low_Tier_Spells:contains(spell.english) and LowNuke == 'ON' then
- equipSet = set_combine(equipSet,sets.LowNuke)
- elseif spell.skill == 'Elemental Magic' and MB == 'ON' then
- equipSet = set_combine(equipSet,sets.MB)
- elseif spell.english:startswith('Utsusemi') then
- if spell.english == 'Utsusemi: Ichi' and (buffactive['Copy Image'] or buffactive['Copy Image (2)'] or buffactive['Copy Image (3)']) 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 = equipSet.Haste
- else
- if equipSet[spell.english] then
- equipSet = equipSet[spell.english]
- end
- if equipSet[spell.skill] then
- equipSet = equipSet[spell.skill]
- end
- if equipSet[AccArray[AccIndex]] then
- equipSet = equipSet[AccArray[AccIndex]]
- end
- if equipSet[spell.type] then
- equipSet = equipSet[spell.type]
- end
- if (spell.skill == 'Elemental Magic' or spell.english:startswith('Cur') or spell.english:startswith('Bio') or spell.english:startswith('Dia') or spell.english == 'Aspir' or spell.english == 'Drain') and not Non_Obi_Spells:contains(spell.english) and (world.day_element == spell.element or world.weather_element == spell.element) and sets.Obi[spell.element] and Obi == 'ON' and spell.english ~= "Cursna" then -- Use Obi Toggle To Equip Normal Waist Gear --
- equipSet = set_combine(equipSet,sets.Obi[spell.element])
- end
- end
- end
- if buffactive.Composure and spell.skill == "Enhancing Magic" and spell.target.type == 'PLAYER' then -- Equip Composure Set When You Cast Enhancing Spells On Others --
- equipSet = set_combine(equipSet,sets.Composure)
- elseif equipSet[spell.english] then
- equipSet = equipSet[spell.english]
- end
- equip(equipSet)
- if StunIndex == 1 then
- equip(sets.Midcast.Stun)
- end
- end
- function aftercast(spell,action)
- if not spell.interrupted then
- if spell.english == "Sleep II" then -- Sleep II Countdown --
- 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" then -- Sleep & Sleepga Countdown --
- 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 II" then -- Banish II Countdown --
- send_command('wait 20;input /echo Banish Effect: [WEARING OFF IN 10 SEC.]')
- end
- end
- status_change(player.status)
- end
- function status_change(new,old)
- check_equip_lock()
- if Armor == 'PDT' then
- equip(sets.PDT)
- elseif buffactive["Sublimation: Activated"] then
- equip(sets.Sublimation)
- elseif new == 'Engaged' then
- equipSet = sets.Melee
- if equipSet[AccArray[AccIndex]] then
- equipSet = equipSet[AccArray[AccIndex]]
- end
- equip(equipSet)
- elseif new == 'Idle' then
- equipSet = sets.Idle
- if equipSet[IdleArray[IdleIndex]] then
- equipSet = equipSet[IdleArray[IdleIndex]]
- end
- if buffactive['Reive Mark'] then -- Equip Arciela's Grace +1 During Reive --
- equipSet = set_combine(equipSet,sets.Reive)
- end
- equip(equipSet)
- elseif new == 'Resting' then
- equip(sets.Resting)
- end
- if StunIndex == 1 then
- equip(sets.Midcast.Stun)
- 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 150;input /echo Aftermath: Lv.3 [WEARING OFF IN 30 SEC.];wait 15;input /echo Aftermath: Lv.3 [WEARING OFF IN 15 SEC.];wait 5;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 -- Accuracy Toggle --
- AccIndex = (AccIndex % #AccArray) + 1
- add_to_chat(158,'Accuracy Level: ' .. AccArray[AccIndex])
- 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 == 'C2' then -- Stun Toggle --
- if StunIndex == 1 then
- StunIndex = 0
- add_to_chat(123,'Stun Set: [Unlocked]')
- else
- StunIndex = 1
- add_to_chat(158,'Stun Set: [Locked]')
- end
- status_change(player.status)
- elseif command == 'C3' then -- Obi Toggle --
- if Obi == 'ON' then
- Obi = 'OFF'
- add_to_chat(123,'Obi: [OFF]')
- else
- Obi = 'ON'
- add_to_chat(158,'Obi: [ON]')
- end
- status_change(player.status)
- elseif command == 'C7' then -- PDT Toggle --
- if Armor == 'PDT' then
- 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 -- LowNuke Toggle --
- if LowNuke == 'ON' then
- LowNuke = 'OFF'
- add_to_chat(123,'Low Nuke: [OFF]')
- else
- LowNuke = 'ON'
- add_to_chat(158,'Low Nuke: [ON]')
- end
- status_change(player.status)
- elseif command == 'C9' then -- MB Toggle --
- if MB == 'ON' then
- MB = 'OFF'
- add_to_chat(123,'MB: [OFF]')
- else
- MB = 'ON'
- add_to_chat(158,'MB: [ON]')
- end
- status_change(player.status)
- elseif command == 'C17' then -- Lock Main Weapon Toggle --
- if Lock_Main == 'ON' then
- Lock_Main = 'OFF'
- add_to_chat(123,'Main Weapon: [Unlocked]')
- else
- Lock_Main = 'ON'
- add_to_chat(158,'Main Weapon: [Locked]')
- end
- status_change(player.status)
- elseif command == 'C15' then -- Enspells Toggle --
- if Enspells == 'ON' then
- Enspells = 'OFF'
- add_to_chat(123,'Enspells: [OFF]')
- else
- Enspells = 'ON'
- add_to_chat(158,'Enspells: [ON]')
- 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 check_equip_lock() -- Lock Equipment Here --
- if player.equipment.left_ring == "Warp Ring" or player.equipment.left_ring == "Capacity Ring" or player.equipment.right_ring == "Warp Ring" or player.equipment.right_ring == "Capacity Ring" then
- disable('ring1','ring2')
- elseif player.equipment.back == "Mecisto. Mantle" or player.equipment.back == "Aptitude Mantle +1" or player.equipment.back == "Aptitude Mantle" then
- disable('back')
- elseif Lock_Main == 'ON' then
- disable('main','sub')
- else
- enable('main','sub','ring1','ring2','back')
- 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: [Current MP = ' .. player.mp .. ' | ' .. player.mpp .. '%] Using '..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, 6)
- elseif player.sub_job == 'BLM' then
- set_macro_page(2, 11)
- elseif player.sub_job == 'SCH' then
- set_macro_page(3, 11)
- elseif player.sub_job == 'DNC' then
- set_macro_page(1, 7)
- elseif player.sub_job == 'WAR' then
- set_macro_page(9, 11)
- elseif player.sub_job == 'NIN' then
- set_macro_page(1, 8)
- else
- set_macro_page(1, 11)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement