Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -------------------------------------------------------------------------------------------------------------------
- -------------------------------------------------------------------------------------------------------------------
- -- Aeolus of Fairy, Aeo of Sylph: Gearswap LUA file
- -- Job: Scholar
- -------------------------------------------------------------------------------------------------------------------
- -------------------------------------------------------------------------------------------------------------------
- -------------------------------------------------------------------------------------------------------------------
- -- Equipment sets for each spell/Ability/Job Ability and Scenario
- -------------------------------------------------------------------------------------------------------------------
- function get_sets ()
- send_command('input /macro book 3; wait .1;input /macro set 1')
- -------------------------------------------------------------------------------------------------------------------
- --Idle Sets--
- sets.Idle = {}
- sets.Idle = {
- main="Bolelabunga",
- sub="Genbu's Shield",
- ammo="Kalboron Stone",
- head="Auspex Coif",
- body="Morrigan's Robe +1",
- hands="Serpentes Cuffs",
- legs="Nares Trews",
- feet="Serpentes Sabots",
- neck="Twilight Torque",
- waist="Fucho-no-Obi",
- left_ear="Lifestorm Earring",
- right_ear="Psystorm Earring",
- left_ring="Dark Ring",
- right_ring="Dark Ring",
- back="Cheviot Cape"}
- sets.Idle.Lockstyle = {}
- -------------------------------------------------------------------------------------------------------------------
- --Precast--
- sets.precast = {}
- sets.precast.JA = {
- legs="Hagondes Pants"}
- sets.precast.FC = {
- head="Peda. M.Board +1",
- body="Vanir Cotehardie",
- hands="Gendewitha Gages",
- legs="Orvail Pants +1",
- feet="Peda. Loafers +1",
- neck="Jeweled Collar",
- back="Swith Cape"}
- sets.precast.Elemental =
- set_combine(
- sets.precast.FC,
- {neck="Stoicheion Medal"})
- sets.precast.Impact =
- set_combine(
- sets.precast.Elemental,
- {head=empty,
- body="Twilight Cloak"})
- -------------------------------------------------------------------------------------------------------------------
- -- Midcast Sets --
- sets.midcast = {}
- sets.midcast.Cure = {
- main="Tamaxchi",
- sub="Genbu's Shield",
- ammo="Hedgehog Bomb",
- head="Gende. Caubeen",
- body="Gendewitha Bliaut",
- hands="Bokwus Gloves",
- legs="Nares Trews",
- feet="Chelona Boots",
- neck="Colossus's Torque",
- waist="Penitent's Rope",
- left_ear="Lifestorm Earring",
- right_ear="Loquac. Earring",
- left_ring="Sirona's Ring",
- right_ring="Ephedra Ring",
- back="Swith Cape"}
- sets.midcast.CureLight = {
- main="Chatoyant Staff",
- sub="Reign Grip",
- ammo="Kalboron Stone",
- head="Gende. Caubeen",
- body="Gendewitha Bliaut",
- hands="Bokwus Gloves",
- legs="Nares Trews",
- feet="Peda. Loafers +1",
- neck="Colossus's Torque",
- waist="Korin Obi",
- left_ear="Loquac. Earring",
- right_ear="Beatific Earring",
- left_ring="Ephedra Ring",
- right_ring="Sirona's Ring",
- back="Twilight Cape"}
- sets.midcast.Regen = {
- main="Bolelabunga",
- head="Savant's Bonnet +2"}
- sets.midcast.Cursna = {
- head="Nahtirah Hat",
- body="Vanir Cotehardie",
- hands="Gendewitha Gages",
- legs="Orvail Pants +1",
- feet="Gende. Galoshes",
- neck="Malison Medallion",
- waist="Swift Belt",
- left_ear="Loquac. Earring",
- right_ear="Beatific Earring",
- left_ring="Ephedra Ring",
- right_ring="Sirona's Ring",
- back="Altruistic Cape"}
- sets.midcast.Enhancing = {
- main="Kirin's Pole",
- sub="Fulcio Grip",
- ammo="Savant's Treatise",
- head="Svnt. Bonnet +2",
- body="Argute Gown",
- legs="Scholar's Pants",
- neck="Colossus's Torque",
- left_ear="Andoaa Earring",
- right_ear="Augment. Earring",
- back="Merciful Cape"}
- sets.midcast.Stoneskin =
- set_combine(
- sets.midcast.Enhancing,
- {neck="Stone Gorget"})
- sets.midcast.Storm =
- set_combine(
- sets.midcast.Enhancing,
- {feet="Pedagogy Loafers +1"})
- sets.midcast.Enfeebling = {
- main="Eminent Staff",
- sub="Bugard Strap +1",
- ammo="Kalboron Stone",
- head="Nahtirah Hat",
- body="Vanir Cotehardie",
- hands="Otomi Gloves",
- legs="Savant's Pants +2",
- feet="Umbani Boots",
- neck="Imbodla Necklace",
- waist="Argute Belt",
- left_ear="Psystorm Earring",
- right_ear="Lifestorm Earring",
- left_ring="Perception Ring",
- right_ring="Sangoma Ring",
- back="Kaikias' Cape"}
- sets.midcast.Elemental = {
- main="Eminent Staff",
- sub="Bugard Strap +1",
- ammo="Kalboron Stone",
- head="Nahtirah Hat",
- body="Vanir Cotehardie",
- hands="Otomi Gloves",
- legs="Hagondes Pants",
- feet="Umbani Boots",
- neck="Eddy Necklace",
- waist="Argute Belt",
- left_ear="Friomisi Earring",
- right_ear="Novio Earring",
- left_ring="Strendu Ring",
- right_ring="Acumen Ring",
- back="Toro Cape"}
- sets.midcast.Dark = {
- main="Eminent Staff",
- sub="Reign Grip",
- ammo="Witchstone",
- head="Kaabanax Hat",
- body="Academic's Gown",
- hands="Otomi Gloves",
- legs="Orvail Pants +1",
- feet="Peda. Loafers +1",
- neck="Eddy Necklace",
- waist="Fucho-no-Obi",
- left_ear="Gwati Earring",
- right_ear="Loquac. Earring",
- left_ring="Sangoma Ring",
- right_ring="Perception Ring",
- back="Merciful Cape"}
- sets.midcast.Stun = {
- main="Apamajas II",
- sub="Bugard Strap +1",
- ammo="Kalboron Stone",
- head="Peda. M.Board +1",
- body="Vanir Cotehardie",
- hands="Gendewitha Gages",
- legs="Orvail Pants +1",
- feet="Peda. Loafers +1",
- neck="Jeweled Collar",
- waist="Swift Belt",
- left_ear="Lifestorm Earring",
- right_ear="Psystorm Earring",
- left_ring="Sangoma Ring",
- right_ring="Perception Ring",
- back="Swith Cape"}
- -------------------------------------------------------------------------------------------------------------------
- --Buffs--
- sets.buff = {}
- sets.buff.Penury = {
- legs="Savant's Pants +2"}
- sets.buff.Celerity = {
- feet="Pedagogy Loafers +1"}
- sets.buff.Rapture = {
- head="Savant's Bonnet +2"}
- sets.buff.Tranquility = {}
- sets.buff.Perpetuance = {
- hands="Savant's Bracers +2"}
- sets.buff.Parsimony = {
- legs="Savant's Pants +2"}
- sets.buff.Alacrity = {
- feet="Pedagogy Loafers +1"}
- sets.buff.Ebullience = {
- head="Savant's Bonnet +2"}
- sets.buff.Manifestation = {}
- sets.buff.Focalization = {
- head="Pedagogy Mortarboard +2"}
- sets.buff.Immanence = {
- hands="Savant's Bracers +2"}
- sets.buff.Klimaform = {
- feet="Savant's Loafers +2"}
- -------------------------------------------------------------------------------------------------------------------
- --Obis--
- sets.Obi = {}
- sets.Obi.Fire =
- set_combine(
- sets.midcast.Enhancing,
- {waist="Karin Obi",
- back="Twilight Cape"})
- sets.Obi.Earth =
- set_combine(
- sets.midcast.Enhancing,
- {waist="Dorin Obi",
- back="Twilight Cape"})
- sets.Obi.Water =
- set_combine(
- sets.midcast.Enhancing,
- {waist="Suirin Obi",
- back="Twilight Cape"})
- sets.Obi.Wind =
- set_combine(
- sets.midcast.Enhancing,
- {waist="Furin Obi",
- back="Twilight Cape"})
- sets.Obi.Ice =
- set_combine(
- sets.midcast.Enhancing,
- {waist="Hyorin Obi",
- back="Twilight Cape"})
- sets.Obi.Thunder =
- set_combine(
- sets.midcast.Enhancing,
- {waist="Rarin Obi",
- back="Twilight Cape"})
- sets.Obi.Light =
- set_combine(
- sets.midcast.Enhancing,
- {waist="Korin Obi",
- back="Twilight Cape"})
- sets.Obi.Dark =
- set_combine(
- sets.midcast.Enhancing,
- {waist="Anrin Obi",
- back="Twilight Cape"})
- end
- -------------------------------------------------------------------------------------------------------------------
- --Rules to govern when and how to use sets
- -------------------------------------------------------------------------------------------------------------------
- -------------------------------------------------------------------------------------------------------------------
- --Precast Actions--
- function precast(spell)
- --Avoids that nasty animation lock from strategem spam--
- if spell.action_type == 'Ability' then
- equip(sets.precast.JA)
- end
- --Puts on special Elemental FastCast set--
- if spell.skill == 'Elemental Magic' then
- if spell.english == 'Impact' then
- equip(sets.preset.Impact)
- else equip(sets.precast.Elemental)
- end
- end
- --Puts on FastCast/Haste gear which stays on if no midcast is specified--
- if spell.action_type == 'Magic' and spell.skill ~= 'Elemental Magic' then
- equip (sets.precast.FC)
- end
- end
- -------------------------------------------------------------------------------------------------------------------
- --Midcast--
- function midcast(spell)
- --Healing Magic--
- if string.find(spell.english,'Cur') and spell.english ~= 'Cursna' then
- if spell.element == world.weather_element or spell_element == world.day_element then
- equip(sets.midcast.CureLight)
- send_command('@input /echo <----- Light cure set!----->')
- else equip(sets.midcast.Cure)
- end
- end
- if spell.english == 'cursna' then
- equip(sets.midcast.Cursna)
- end
- if string.find(spell.english,'Regen') then
- equip (sets.midcast.regen)
- end
- --Elemental Magic--
- if spell.english == 'Impact' then
- equip (sets.midcast.Impact)
- else equip (sets.midcast.Elemental)
- end
- if spell.skill == "Elemental Magic" and spell.english ~= 'Impact' then
- equip(sets.midcast.Elemental)
- if spell.element == world.weather_element or spell_element == world.day_element then
- equip(sets.Obi[spell.element])
- send_command('@input /echo <----- Weather/Day detected!----->')
- end
- end
- --Dark Magic--
- if spell.skill == "Dark Magic" then
- if spell.english == 'Stun' then
- equip (sets.midcast.Stun)
- else equip (sets.midcast.Dark)
- end
- end
- --Enhancing Magic--
- if spell.skill == "Enhancing Magic" then
- if spell.english == "Stoneskin" then
- equip (sets.midcast.Stoneskin)
- if buffactive.stoneskin then
- send_command('@wait 2.5;@input /echo working')
- elseif spell.english == "Sneak" then
- if buffactive.sneak then
- send_command('@wait 2;@input //cancel 71')
- end
- else equip (sets.midcast.Enhancing)
- end
- end
- end
- --Enfeebling--
- if spell.skill == "Enfeebling Magic"
- then equip (sets.midcast.Enfeebling)
- end
- --Equip gear for stratagems--
- if buffactive.penury and spell.type == "White Magic"
- then equip (sets.buff.Penury)
- send_command('@input /echo <----- '..spell.english..' has 1/2 MP cost ----->')
- end
- if buffactive.celerity and spell.type == "White Magic"
- then equip (sets.buff.Celerity)
- send_command('@input /echo <----- '..spell.english..' has faster casting/recast ----->')
- end
- if buffactive.rapture and spell.skill == 'Healing Magic'
- then equip (sets.buff.Rapture)
- send_command('@input /echo <----- '..spell.english..' has 1.5x potency ----->')
- end
- if buffactive.accession and spell.skill == 'Healing Magic' or spell.skill == 'Enhancing Magic'
- then equip (sets.buff.Accession)
- send_command('@input /echo <----- '..spell.english..' is now AoE ----->')
- end
- if buffactive.tranquility and spell.type == "White Magic"
- then equip (sets.buff.Tranquility)
- send_command('@input /echo <----- '..spell.english..' generates less emnity ----->')
- end
- if buffactive.perpetuance and spell.type == "White Magic"
- then equip (sets.buff.Perpetuance)
- send_command('@input /echo <----- '..spell.english..' will last twice as long ----->')
- end
- if buffactive.parsimony and spell.type == "Black Magic"
- then equip (sets.buff.Parsimony)
- send_command('@input /echo <----- '..spell.english..' has 1/2 MP cost ----->')
- end
- if buffactive.alacrity and spell.type == "Black Magic"
- then equip (sets.buff.Alacrity)
- send_command('@input /echo <----- '..spell.english..' has faster casting/recast ----->')
- end
- if buffactive.ebullience and spell.type == "Black Magic"
- then equip (sets.buff.Ebullience)
- send_command('@input /echo <----- '..spell.english..' has 1.5x potency ----->')
- end
- if buffactive.manifestation and spell.type == "Black Magic" and spell.skill ~= "Elemental Magic"
- then equip (sets.buff.Manifestation)
- send_command('@input /echo <----- '..spell.english..' is now AoE ----->')
- end
- if buffactive.focalization and spell.type == "Black Magic"
- then equip (sets.buff.Focalization)
- send_command('@input /echo <----- '..spell.english..' is more accurate ----->')
- end
- end
- -------------------------------------------------------------------------------------------------------------------
- --Aftercast--
- function aftercast(spell)
- equip(sets.Idle)
- --Warnings when crowd control is wearing off--
- if spell.english == 'Sleep' or spell.english == 'Sleepga' then
- send_command('@wait 50;input /echo <----- '..spell.english..' is wearing off in 10 seconds ----->')
- elseif spell.english == 'Sleep II' or spell.english == 'Sleepga II' then
- send_command('@wait 80;input /echo <----- '..spell.english..' is wearing off in 10 seconds ----->')
- elseif spell.english == 'Break' or spell.english == 'Breakga' then
- send_command('@wait 20;input /echo <----- '..spell.english..' is wearing off in 10 seconds ----->')
- end
- end
- -------------------------------------------------------------------------------------------------------------------
- --New commands created by GearSwap for use in-game
- -------------------------------------------------------------------------------------------------------------------
- --//gs c dark activates dark arts or if already active, addendum: black
- --//gs c light activates light arts or if already active, addendum" white
- --//gs c mp activates 1/2 MP strategem regardless of grimore
- --//gs c fast activates reduced casting/recast strategem regardless of grimore
- --//gs c aoe activates area of effect strategem regardless of grimore
- --//gs c potency activates potency strategem regardless of grimore
- --//gs c merit activates -enmity in light arts/ ad: wht or +m.acc in dark arts/ ad: blk
- --//gs c duration activates x2 duration in light arts/ ad: wht or Skillchaining in dark arts/ ad: blk
- function self_command(command)
- if command == 'light' then
- if buffactive['Light Arts'] then
- send_command('@input //addendumwhite')
- else send_command('@input //lightarts')
- end
- elseif command == 'dark' then
- if buffactive['Dark Arts'] then
- send_command('@input //addendumblack')
- else send_command('@input //darkarts')
- end
- elseif command == 'MP' then
- if buffactive['Light Arts'] or buffactive['Addendum: White'] then
- send_command('@input //Penury')
- send_command('@input /echo <----- Fuel Efficency ----->')
- elseif buffactive['Dark Arts'] or buffactive['Addendum: Black'] then
- send_command('@input //Parsimony')
- send_command('@input /echo <----- Fuel Efficiency ----->')
- else send_command('@input /echo <----- No Grimore Active! ----->')
- end
- elseif command == 'fast' then
- if buffactive['Light Arts'] or buffactive['Addendum: White'] then
- send_command('@input //Celerity')
- send_command('@input /echo <----- Turbo ----->')
- elseif buffactive['Dark Arts'] or buffactive['Addendum: Black'] then
- send_command('@input //Alacrity')
- send_command('@input /echo <----- Turbo ----->')
- else send_command('@input /echo <----- No Grimore Active! ----->')
- end
- elseif command == 'aoe' then
- if buffactive['Light Arts'] or buffactive['Addendum: White'] then
- send_command('@input //Accession')
- send_command('@input /echo <----- Exhaust Stacks----->')
- elseif buffactive['Dark Arts'] or buffactive['Addendum: Black'] then
- send_command('@input //Manifestation')
- send_command('@input /echo <----- Exhaust Stacks----->')
- else send_command('@input /echo <----- No Grimore Active! ----->')
- end
- elseif command == 'potency' then
- if buffactive['Light Arts'] or buffactive['Addendum: White'] then
- send_command('@input //Rapture')
- send_command('@input /echo <----- Super Charger----->')
- elseif buffactive['Dark Arts'] or buffactive['Addendum: Black'] then
- send_command('@input //Ebbulience')
- send_command('@input /echo <----- Super Charger----->')
- else send_command('@input /echo <----- No Grimore Active! ----->')
- end
- elseif command == 'merit' then
- if buffactive['Light Arts'] or buffactive['Addendum: White'] then
- send_command('@input //Tranquility')
- send_command('@input /echo <----- Muffler----->')
- elseif buffactive['Dark Arts'] or buffactive['Addendum: Black'] then
- send_command('@input //Focalization')
- send_command('@input /echo <----- Overhead Cams----->')
- else send_command('@input /echo <----- No Grimore Active! ----->')
- end
- elseif command == 'duration' then
- if buffactive['Light Arts'] or buffactive['Addendum: White'] then
- send_command('@input //Perpetuance')
- send_command('@input /echo <----- Japanese Import----->')
- elseif buffactive['Dark Arts'] or buffactive['Addendum: Black'] then
- send_command('@input //Immanence')
- send_command('@input /echo <----- BMW----->')
- else send_command('@input /echo <----- No Grimore Active! ----->')
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment