Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -------------------------------------------------------------------------------------------------------------------
- -------------------------------------------------------------------------------------------------------------------
- -- Aeolus of Fairy, Aeo of Sylph: Gearswap LUA file
- -- Job: Blue Mage
- -------------------------------------------------------------------------------------------------------------------
- -------------------------------------------------------------------------------------------------------------------
- -------------------------------------------------------------------------------------------------------------------
- -- Equipment sets for each spell/Ability/Job Ability and Scenario
- -------------------------------------------------------------------------------------------------------------------
- function get_sets ()
- send_command('input /macro book 14;wait .1;input /macro set 1')
- -------------------------------------------------------------------------------------------------------------------
- --Idle Sets--
- sets.Idle = {}
- sets.Idle.index = {'Standard','DT'}
- Idle_index = 1
- sets.Idle.Standard = {
- ammo="Jukukik Feather",
- head="Auspex Coif",
- body="Assim. Jubbah +1",
- hands="Serpentes Cuffs",
- legs="Crimson Cuisses",
- feet="Serpentes Sabots",
- neck="Twilight Torque",
- waist="Flume Belt",
- left_ear="Brutal Earring",
- right_ear="Suppanomimi",
- left_ring="Dark Ring",
- right_ring="Dark Ring",
- back="Cheviot Cape"}
- sets.Idle.DT = {
- ammo="Jukukik Feather",
- head="Hagondes Hat",
- body="Hagondes Coat",
- hands="Iuitl Wristbands",
- legs="Iuitl Tights",
- feet="Iuitl Gaiters",
- neck="Twilight Torque",
- waist="Flume Belt",
- left_ear="Brutal Earring",
- right_ear="Suppanomimi",
- left_ring="Dark Ring",
- right_ring="Dark Ring",
- back="Cheviot Cape"}
- sets.Idle.Lockstyle = {}
- -------------------------------------------------------------------------------------------------------------------
- --Engaged Sets--
- sets.Engaged = {}
- sets.Engaged.index = {'Attack', 'Accuracy', 'DT'}
- Engaged_index = 1
- sets.Engaged.Attack = {
- ammo="Jukukik Feather",
- head="Iuitl Headgear +1",
- body="Qaaxo Harness",
- hands="Qaaxo Mitaines",
- legs="Iuitl Tights +1",
- feet="Manibozho Boots",
- neck="Asperity Necklace",
- waist="Windbuffet Belt",
- left_ear="Heartseeker Earring",
- right_ear="Dudgeon Earring",
- left_ring="Rajas Ring",
- right_ring="Epona's Ring",
- back="Atheling Mantle",}
- sets.Engaged.Accuracy = {
- ammo="Honed Tathlum",
- head="Whirlpool Mask",
- body="Qaaxo Harness",
- hands="Qaaxo Mitaines",
- legs="Manibozho Brais",
- feet="Manibozho boots",
- neck="Iqabi Necklace",
- waist="Hurch'lan Sash",
- left_ear="Heartseeker Earring",
- right_ear="Dudgeon Earring",
- left_ring="Rajas Ring",
- right_ring="Epona's Ring",
- back="Letalis Mantle"}
- sets.Engaged.DT = {
- ammo="Honed Tathlum",
- head="Lithelimb Cap",
- body="Qaaxo Harness",
- hands="Qaaxo Mitaines",
- legs="Iuitl Tights +1",
- feet="Hagondes Sabots",
- neck="Twilight Torque",
- waist="Flume Belt",
- left_ear="Brutal Earring",
- right_ear="Suppanomimi",
- left_ring="Rajas Ring",
- right_ring="Dark Ring",
- back="Cheviot Cape"}
- sets.Engaged.Marches = {
- ammo="Jukukik Feather",
- head="Iuitl Headgear +1",
- body="Qaaxo Harness",
- hands="Qaaxo Mitaines",
- legs="Iuitl Tights +1",
- feet="Manibozho Boots",
- neck="Asperity Necklace",
- waist="Windbuffet Belt",
- left_ear="Brutal Earring",
- right_ear="Suppanomimi",
- left_ring="Rajas Ring",
- right_ring="Epona's Ring",
- back="Atheling Mantle",}
- -------------------------------------------------------------------------------------------------------------------
- --Precast Sets--
- sets.Precast = {}
- --Weaponskill Sets--
- --Requiescat--
- sets.Requiescat = {}
- sets.Requiescat.index = {'Attack','Accuracy', 'DT'}
- Requiescat_index = 1
- sets.Requiescat.Attack = {
- ammo="Jukukik Feather",
- head="Uk'uxkaj Cap",
- body="Vanir Cotehardie",
- hands="Iuitl Wristbands",
- legs="Quiahuiz Trousers",
- feet="Hagondes Sabots",
- neck="Shadow Gorget",
- waist="Windbuffet Belt",
- left_ear="Steelflash Earring",
- right_ear="Brutal Earring",
- left_ring="Karka Ring",
- right_ring="Epona's Ring",
- back="Atheling Mantle"}
- sets.Requiescat.Accuracy = {
- ammo="Inlamvuyeso",
- head="Whirlpool Mask",
- body="Vanir Cotehardie",
- hands="Iuitl Wristbands",
- legs="Quiahuiz Trousers",
- feet="Hagondes Sabots",
- neck="Shadow Gorget",
- waist="Windbuffet Belt",
- left_ear="Steelflash Earring",
- right_ear="Brutal Earring",
- left_ring="Karka Ring",
- right_ring="Epona's Ring",
- back="Atheling Mantle"}
- --Chant Du Cygne--
- sets.ChantDuCygne = {}
- sets.ChantDuCygne.index = {'Attack','Accuracy', 'DT'}
- ChantDuCygne_index = 1
- sets.ChantDuCygne.Attack = {
- ammo="Jukukik Feather",
- head="Uk'uxkaj Cap",
- body="Assim. Jubbah +1",
- hands="Qaaxo Mitaines",
- legs="Manibozho Brais",
- feet="Manibozho Boots",
- neck="Light Gorget",
- waist="Windbuffet Belt",
- left_ear="Moonshade Earring",
- right_ear="Brutal Earring",
- left_ring="Rajas Ring",
- right_ring="Epona's Ring",
- back="Rancorous Mantle"}
- sets.ChantDuCygne.Accuracy = {
- ammo="Honed Tathlum",
- head="Whirlpool Mask",
- body="Assim. Jubbah +1",
- hands="Qaaxo Mitaines",
- legs="Manibozho Brais",
- feet="Manibozho Boots",
- neck="Light Gorget",
- waist="Windbuffet Belt",
- left_ear="Moonshade Earring",
- right_ear="Brutal Earring",
- left_ring="Rajas Ring",
- right_ring="Epona's Ring",
- back="Letalis Mantle"}
- --Sanguine Blade--
- sets.SanguineBlade = {}
- sets.SanguineBlade.index = {'Attack', 'Accuracy', 'DT'}
- SanguineBlade_index = 1
- sets.SanguineBlade.Attack = {
- ammo="",
- head="Hagondes Hat",
- body="Hagondes Coat",
- hands="Mv. Bazubands +2",
- legs="Hagondes Pants",
- feet="Hagondes Sabots",
- neck="Eddy Necklace",
- waist="Penitent's Rope",
- left_ear="Novio Earring",
- right_ear="Hecate's Earring",
- left_ring="Strendu Ring",
- right_ring="Acumen Ring",
- back="Cornflower Cape"}
- sets.SanguineBlade.Accuracy = {
- ammo="",
- head="Hagondes Hat",
- body="Hagondes Coat",
- hands="Mv. Bazubands +2",
- legs="Hagondes Pants",
- feet="Hagondes Sabots",
- neck="Eddy Necklace",
- waist="Penitent's Rope",
- left_ear="Novio Earring",
- right_ear="Hecate's Earring",
- left_ring="Strendu Ring",
- right_ring="Acumen Ring",
- back="Cornflower Cape"}
- --Job Ability Sets--
- --Abilities requiring swap BEFORE use--
- sets.Precast['Lunge'] = {
- head="Hagondes Hat",
- body="Hagondes Coat",
- hands="Mv. Bazubands +2",
- legs="Hagondes Pants",
- feet="Hagondes Sabots",
- neck="Eddy Necklace",
- waist="Penitent's Rope",
- left_ear="Novio Earring",
- right_ear="Hecate's Earring",
- left_ring="Strendu Ring",
- right_ring="Acumen Ring",
- back="Cornflower Cape"}
- sets.Precast['Swipe'] = {
- head="Hagondes Hat",
- body="Hagondes Coat",
- hands="Mv. Bazubands +2",
- legs="Hagondes Pants",
- feet="Hagondes Sabots",
- neck="Eddy Necklace",
- waist="Penitent's Rope",
- left_ear="Novio Earring",
- right_ear="Hecate's Earring",
- left_ring="Strendu Ring",
- right_ring="Acumen Ring",
- back="Cornflower Cape"}
- sets.Precast['Quickstep'] = {
- ammo="Honed Tathlum",
- head="Whirlpool Mask",
- body="Qaaxo Harness",
- hands="Qaaxo Mitaines",
- legs="Manibozho Brais",
- feet="Manibozho boots",
- neck="Iqabi Necklace",
- waist="Chaac Belt",
- left_ear="Heartseeker Earring",
- right_ear="Dudgeon Earring",
- left_ring="Rajas Ring",
- right_ring="Epona's Ring",
- back="Letalis Mantle"}
- sets.Precast['Box Step'] = {
- ammo="Honed Tathlum",
- head="Whirlpool Mask",
- body="Qaaxo Harness",
- hands="Qaaxo Mitaines",
- legs="Manibozho Brais",
- feet="Manibozho boots",
- neck="Iqabi Necklace",
- waist="Chaac Belt",
- left_ear="Heartseeker Earring",
- right_ear="Dudgeon Earring",
- left_ring="Rajas Ring",
- right_ring="Epona's Ring",
- back="Letalis Mantle"}
- sets.Precast['Animated Flourish'] = {
- ammo="Honed Tathlum",
- head="Whirlpool Mask",
- body="Qaaxo Harness",
- hands="Qaaxo Mitaines",
- legs="Manibozho Brais",
- feet="Manibozho boots",
- neck="Iqabi Necklace",
- waist="Chaac Belt",
- left_ear="Heartseeker Earring",
- right_ear="Dudgeon Earring",
- left_ring="Rajas Ring",
- right_ring="Epona's Ring",
- back="Letalis Mantle"}
- sets.Precast['Violent Flourish'] = {
- ammo="Honed Tathlum",
- head="Whirlpool Mask",
- body="Qaaxo Harness",
- hands="Qaaxo Mitaines",
- legs="Manibozho Brais",
- feet="Manibozho boots",
- neck="Iqabi Necklace",
- waist="Chaac Belt",
- left_ear="Heartseeker Earring",
- right_ear="Dudgeon Earring",
- left_ring="Rajas Ring",
- right_ring="Epona's Ring",
- back="Letalis Mantle"}
- --Abilities requiring swap AFTER use--
- sets.Precast.ChainAffinity = {
- feet="Mavi Kavuk +2"}
- sets.Precast.BurstAffinity = {
- feet="Mavi Basmak +1"}
- sets.Precast.Efflux = {
- legs="Mavi tayt +2"}
- --Other Precast Sets--
- sets.Precast.FastCast = {
- body="Vanir Cotehardie",
- hands="Mv. Bazubands +2",
- legs="Orvail Pants +1",
- feet="Chelona Boots",
- neck="Orunmila's Torque",
- waist="Cetl Belt",
- right_ear="Loquac. Earring",
- back="Swith Cape"}
- sets.Precast.BlueMagic =
- set_combine(
- sets.Precast.FastCast,
- {body="Mavi Mintan +1"})
- -------------------------------------------------------------------------------------------------------------------
- --Midcast Sets--
- sets.Midcast = {}
- sets.TH = {}
- TH_index = 1
- --Physical Spells--
- sets.Physical ={}
- sets.Physical.index = {'Attack', 'Accuracy', 'DT'}
- Physical_index = 1
- sets.Physical.Attack = {
- ammo="Jukukik Feather",
- head="Uk'uxkaj Cap",
- body="Assim. Jubbah +1",
- hands="Qaaxo Mitaines",
- legs="Quiahuiz Trousers",
- feet="Iuitl Gaiters",
- neck="Iqabi Necklace",
- waist="Warwolf Belt",
- left_ear="Heartseeker Earring",
- right_ear="Flame Pearl",
- left_ring="Rajas Ring",
- right_ring="Pyrosoul Ring",
- back="Cornflower Cape"}
- sets.Physical.Accuracy = {
- ammo="Honed Tathlum",
- head="Whirlpool Mask",
- body="Assim. Jubbah +1",
- hands="Qaaxo Mitaines",
- legs="Quiahuiz Trousers",
- feet="Iuitl Gaiters",
- neck="Iqabi Necklace",
- waist="Hurch'lan Sash",
- left_ear="Heartseeker Earring",
- right_ear="Flame Pearl",
- left_ring="Rajas Ring",
- right_ring="Pyrosoul Ring",
- back="Cornflower Cape"}
- sets.Physical.DT = {
- ammo="Jukukik Feather",
- head="Uk'uxkaj Cap",
- body="Assim. Jubbah",
- hands="Iuitl Wristbands",
- legs="Quiahuiz Trousers",
- feet="Iuitl Gaiters",
- neck="Iqabi Necklace",
- waist="Warwolf Belt",
- left_ear="Heartseeker Earring",
- right_ear="Flame Pearl",
- left_ring="Rajas Ring",
- right_ring="Pyrosoul Ring",
- back="Potentia Cape"}
- --Magical Spells--
- sets.Magical = {}
- sets.Magical.index = {'Attack', 'Accuracy', 'DT'}
- Magical_index = 1
- sets.Magical.Attack = {
- head="Hagondes Hat",
- body="Hagondes Coat",
- hands="Mv. Bazubands +2",
- legs="Hagondes Pants",
- feet="Hagondes Sabots",
- neck="Eddy Necklace",
- waist="Penitent's Rope",
- left_ear="Novio Earring",
- right_ear="Hecate's Earring",
- left_ring="Strendu Ring",
- right_ring="Acumen Ring",
- back="Cornflower Cape"}
- sets.Magical.Accuracy = {
- head="Hagondes Hat",
- body="Hagondes Coat",
- hands="Mv. Bazubands +2",
- legs="Hagondes Pants",
- feet="Hagondes Sabots",
- neck="Eddy Necklace",
- waist="Penitent's Rope",
- left_ear="Psystorm Earring",
- right_ear="Lifestorm Earring",
- left_ring="Perception Ring",
- right_ring="Sangoma Ring",
- back="Cornflower Cape"}
- sets.Magical.DT = {
- head="Hagondes Hat",
- body="Hagondes Coat",
- hands="Hagondes Cuffs",
- legs="Hagondes Pants",
- feet="Hagondes Sabots",
- neck="Eddy Necklace",
- waist="Penitent's Rope",
- left_ear="Novio Earring",
- right_ear="Hecate's Earring",
- left_ring="Strendu Ring",
- right_ring="Acumen Ring",
- back="Cornflower Cape"}
- --Utility--
- sets.Midcast.Skill = {
- head="Mirage keffiyeh +2",
- neck="Jeweled collar",
- left_ear="Loquac. earring",
- body="Assim. Jubbah",
- hands="Mv. Bazubands +2",
- waist="Twilight belt",
- legs="Mavi tayt +2",
- feet="Iuitl gaiters",
- back="Cornflower Cape"}
- sets.Midcast.Cures = {
- head="Hagondes Hat",
- body="Assim. Jubbah +1",
- hands="Hagondes Cuffs",
- legs="Mavi Tayt +2",
- feet="Hagondes Sabots",
- neck="Imbodla Necklace",
- neck="Imbodla Necklace",
- waist="Penitent's Rope",
- left_ear="Heartseeker Earring",
- right_ear="Loquac. Earring",
- left_ring="Rajas Ring",
- right_ring="Karka Ring",
- back="Swith Cape"}
- --Other Magic Sets--
- sets.Midcast.Stoneskin = {
- head="Uk'uxkaj Cap",
- body="Vanir Cotehardie",
- hands="Iuitl Wristbands",
- legs="Quiahuiz Trousers",
- feet="Hagondes Sabots",
- neck="Stone Gorget",
- waist="Cetl Belt",
- left_ear="Steelflash Earring",
- right_ear="Brutal Earring",
- left_ring="Karka Ring",
- right_ring="Epona's Ring",
- back="Atheling Mantle"}
- sets.Midcast.TH =
- set_combine(
- sets.Physical.Accuracy,
- {waist="Chaac Belt"})
- -------------------------------------------------------------------------------------------------------------------
- --Obis--
- sets.Obi = {}
- sets.Obi.Fire =
- set_combine(
- sets.Magical.Attack,
- {waist="Karin Obi",
- back="Twilight Cape"})
- sets.Obi.Earth =
- set_combine(
- sets.Magical.Attack,
- {waist="Dorin Obi",
- back="Twilight Cape"})
- sets.Obi.Water =
- set_combine(
- sets.Magical.Attack,
- {waist="Suirin Obi",
- back="Twilight Cape"})
- sets.Obi.Windex=
- set_combine(
- sets.Magical.Attack,
- {waist="Furin Obi",
- back="Twilight Cape"})
- sets.Obi.Ice =
- set_combine(
- sets.Magical.Attack,
- {waist="Hyorin Obi",
- back="Twilight Cape"})
- sets.Obi.Thunder =
- set_combine(
- sets.Magical.Attack,
- {waist="Rarin Obi",
- back="Twilight Cape"})
- sets.Obi.Light =
- set_combine(
- sets.Magical.Attack,
- {waist="Korin Obi",
- back="Twilight Cape"})
- sets.Obi.Dark =
- set_combine(
- sets.Magical.Attack,
- {waist="Anrin Obi",
- back="Twilight Cape"})
- end
- -------------------------------------------------------------------------------------------------------------------
- --Rules to govern when and how to use sets
- -------------------------------------------------------------------------------------------------------------------
- -------------------------------------------------------------------------------------------------------------------
- --Precast Actions--
- function Precast(spell)
- if spell.action_type == 'Magic' then
- equip(sets.Precast.FastCast)
- end
- if spell.type == 'WeaponSkill' then
- if spell.target.distance > 6.0 then
- add_to_chat(167,''..spell.target.name..' is too far can not use '..spell.name..'!!!. Cancelling WeaponSkill ')
- cancel_spell()
- return
- elseif spell.name == "Requiescat" then
- equip(sets.Requiescat[sets.Requiescat.index[Requiescat_index]])
- elseif spell.english == "Chant du Cygne" then
- equip(sets.ChantDuCygne[sets.ChantDuCygne.index[ChantDuCygne_index]])
- elseif spell.english == "Sanguine Blade" then
- equip(sets.SanguineBlade[sets.SanguineBlade.index[SanguineBlade_index]])
- else equip(sets.ChantDuCygne.Attack)
- end
- end
- --Abilities requiring swap BEFORE use--
- if sets.Precast[spell.english] then
- equip(sets.Precast[spell.english])
- end
- end
- -------------------------------------------------------------------------------------------------------------------
- --Midcast Actions--
- function midcast(spell,act)
- --Physical Blue Spells--
- if
- spell.english == 'Foot Kick' or
- spell.english == 'Sprout Smack' or
- spell.english == 'Wild Oats' or
- spell.english == 'Power Attack' or
- spell.english == 'Queasyshroom' or
- spell.english == 'Battle Dance' or
- spell.english == 'Feather Storm' or
- spell.english == 'Helldive' or
- spell.english == 'Bludgeon' or
- spell.english == 'Claw Cyclone' or
- spell.english == 'Screwdriver' or
- spell.english == 'Grand Slam' or
- spell.english == 'Smite of Rage' or
- spell.english == 'Pinecome Bomb' or
- spell.english == 'Jet Stream' or
- spell.english == 'Uppercut' or
- spell.english == 'Terror Touch' or
- spell.english == 'Mandibular Bite' or
- spell.english == 'Sickle Slash' or
- spell.english == 'Vertical Cleave' or
- spell.english == 'Death Scissors' or
- spell.english == 'Empty Thrash' or
- spell.english == 'Dimensional Death' or
- spell.english == 'Quadrastrike' or
- spell.english == 'Bloodrake' or
- spell.english == 'Disseverment' or
- spell.english == 'Hysteric Barrage' or
- spell.english == 'Frenetic Rip' or
- spell.english == 'Seedspray' or
- spell.english == 'Vanity Dive' or
- spell.english == 'Goblin Rush' or
- spell.english == 'Paralyzing Triad' or
- spell.english == 'Quad. Continuum' or
- spell.english == 'Delta Thrust' or
- spell.english == 'Cannonball' or
- spell.english == 'Glutinous Dart' or
- spell.english == 'Benthic Typhoon' or
- spell.english == 'Final Sting' or
- spell.english == 'Thrashing Assault' or
- spell.english == 'Spiral Spin' then
- equip(sets.Physical[sets.Physical.index[Physical_index]])
- if buffactive['Chain Affinity'] then
- equip(sets.Precast.ChainAffinity)
- send_command('@input /echo <----- Chain Affinity gear applied! ----->')
- end
- if buffactive['Efflux'] then
- equip(sets.Precast.Efflux)
- send_command('@input /echo <----- Efflux gear applied! ----->')
- end
- elseif
- spell.english == 'Head Butt' or
- spell.english == 'Sudden Lunge' or
- spell.english == 'Whirl of Rage' or
- spell.english == 'Heavy Strike' then
- if TH_index == 1 then
- equip(sets.Physical.Accuracy)
- elseif TH_index == 2 then
- equip(sets.Midcast.TH)
- send_command('@input /echo <----- TH applied! ----->')
- end
- if buffactive['Chain Affinity'] then
- equip(sets.Precast.ChainAffinity)
- send_command('@input /echo <----- Chain Affinity gear applied! ----->')
- end
- if buffactive['Efflux'] then
- equip(sets.Precast.Efflux)
- send_command('@input /echo <----- Efflux gear applied! ----->')
- end
- --Magical Blue Spells--
- elseif
- spell.english == 'Cursed Sphere' or
- spell.english == 'Blastbomb' or
- spell.english == 'Poison Breath' or
- spell.english == 'Bomb Toss' or
- spell.english == 'Death Ray' or
- spell.english == 'Digest'or
- spell.english == 'Venom Shell' or
- spell.english == 'Stinking Gas' or
- spell.english == 'Blitzstrahl' or
- spell.english == 'Gates of Hades' or
- spell.english == 'Leafstorm' or
- spell.english == 'Firespit' or
- spell.english == 'Acrid Stream' or
- spell.english == 'Regurgitation' or
- spell.english == 'Corrosive Ooze' or
- spell.english == 'Thermal Pulse' or
- spell.english == 'Magic Hammer' or
- spell.english == 'Evryone. Grudge' or
- spell.english == 'Water Bomb' or
- spell.english == 'Dark Orb' or
- spell.english == 'Thunderbolt' or
- spell.english == 'Tem. Upheaval' or
- spell.english == 'Embalming Earth' or
- spell.english == 'Foul Waters' or
- spell.english == 'Rending Deluge' or
- spell.english == 'Droning Whirlwind' or
- spell.english == 'Charged Whisker' then
- equip(sets.Magical[sets.index[Magical_index]])
- 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
- if buffactive['Burst Affinity'] then
- equip(sets.Precast.BurstAffinity)
- send_command('@input /echo <----- Burst Affinity gear applied! ----->')
- end
- elseif
- spell.english == 'Soporific' or
- spell.english == 'Chaotic Eye' or
- spell.english == 'Blank Gaze' or
- spell.english == 'Sound Blast' or
- spell.english == 'Mysterious Light' or
- spell.english == 'MP Drainkiss' or
- spell.english == 'Frightful Roar' or
- spell.english == 'Infrasonics' or
- spell.english == 'Barbed Crescent' or
- spell.english == 'Tourbillion' or
- spell.english == 'Cimicine Discharge' or
- spell.english == 'Sub-zero smash' or
- spell.english == 'Filamented Hold' or
- spell.english == 'MindexBlast' or
- spell.english == 'Sandspin' or
- spell.english == 'Hecatomb Wave' or
- spell.english == 'Dream Flower' or
- spell.english == 'Yawn' or
- spell.english == 'Sheep Song' or
- spell.english == 'Cold Wave' then
- equip(sets.Magical.Accuracy)
- 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
- if buffactive['Burst Affinity'] then
- equip(sets.Precast.BurstAffinity)
- send_command('@input /echo <----- Burst Affinity gear applied! ----->')
- end
- --Others, like cures etc.--
- elseif
- spell.english == 'Magic Fruit' or
- spell.english == 'Plenilune Embrace' or
- spell.english == 'Wild Carrot' or
- spell.english == 'Healing Breeze' or
- spell.english == 'Pollen' then
- equip(sets.Midcast.Cures)
- 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
- elseif
- spell.english == 'Digest' or
- spell.english == 'Blood Saber' or
- spell.english == 'Blood Drain' or
- spell.english == 'Osmosis' or
- spell.english == 'Occultation' or
- spell.english == 'Magic Barrier' or
- spell.english == 'Diamondhide' or
- spell.english == 'Metallic Body' or
- spell.english == 'Retinal Glare' then
- equip(sets.Midcast.Skill)
- elseif
- spell.english == 'Cocoon' or
- spell.english == 'Metallic Body' then
- equip(sets.Midcast.FastCast)
- end
- if spell.type == "Magic" and spell.skill ~= "Blue Magic" then
- if spell.english == "Stoneskin" then
- equip(sets.Midcast.Stoneskin)
- else equip(sets.Midcast.FastCast)
- end
- end
- end
- -------------------------------------------------------------------------------------------------------------------
- --Aftercast Actions--
- function aftercast(spell)
- --Warnings when crowd control is wearing off--
- if spell.english == 'Dream Flower' or spell.english == "Sheep Song"
- then send_command('@wait 50;input /echo <----- '.Spell.english..' is wearing off in 10 seconds ----->')
- elseif spell.english == 'Soporific'
- then send_command('@wait 80;input /echo <----- '.Spell.english..' is wearing off in 10 seconds ----->')
- end
- if player.status == 'Engaged'
- then equip(sets.Engaged[sets.Engaged.index[Engaged_index]])
- else equip(sets.Idle[sets.Idle.index[Idle_index]])
- end
- end
- function status_change(new,old)
- if new == 'Engaged'
- then equip(sets.Engaged[sets.Engaged.index[Engaged_index]])
- else equip(sets.Idle[sets.Idle.index[Idle_index]])
- end
- end
- function equip_Engaged_set()
- if Engaged_index == 1 and ( (buffactive['march'] == 2 and buffactive['haste']) or (buffactive['embrava'] and buffactive['haste']) )
- then equip(sets.Engaged.Marches)
- else equip(sets.Engaged[sets.Engaged.index[Engaged_index]])
- end
- end
- -------------------------------------------------------------------------------------------------------------------
- -- New commands created by GearSwap for use in-game
- -------------------------------------------------------------------------------------------------------------------
- --//gs c melee toggles Melee and WS sets between Attack, Accuracy, and DT
- --//gs c physical toggles Physical Blue Magic between Attack, Accuracy, and DT
- --//gs c magical toggles Magical Blue Magic between Attack, Accuracy, and DT
- --//gs c idle toggles Idle set between Standard and DT
- --//gs c th toggles on/off TH for stun moves
- --//gs c active Lists settings for all variable sets
- --//gs c lockstyle Puts on lockstyle set and locks it
- function self_command(command)
- if command == 'melee' then
- Engaged_index = Engaged_index +1
- Requiescat_index = Requiescat_index +1
- ChantDuCygne_index = ChantDuCygne_index +1
- SanguineBlade_index = SanguineBlade_index +1
- if Engaged_index > #sets.Engaged.index then
- Engaged_index = 1
- end
- if Requiescat_index > #sets.Requiescat.index then
- Requiescat_index = 1
- end
- if ChantDuCygne_index > #sets.ChantDuCygne.index then
- ChantDuCygne_index = 1
- end
- if SanguineBlade_index > #sets.SanguineBlade.index then
- SanguineBlade_index = 1
- end
- send_command('@input /echo <----- Engaged Set changed to '..sets.Engaged.index[Engaged_index]..' ----->')
- send_command('@input /echo <----- Requiescat Set changed to '..sets.Requiescat.index[Requiescat_index]..' ----->')
- send_command('@input /echo <----- Chant du Cygne Set changed to '..sets.ChantDuCygne.index[ChantDuCygne_index]..' ----->')
- send_command('@input /echo <----- Sanguine Blade set changed to '..sets.SanguineBlade.index[SanguineBlade_index]..' ----->')
- equip(sets.Engaged[sets.Engaged.index[Engaged_index]])
- elseif command == 'physical' then
- Midcast.BlueMagic.Physical_index = Midcast.BlueMagic.Physical_index +1
- if Midcast.BlueMagic.Physical_index > #sets.Midcast.BlueMagic.Physical.index then
- Midcast.BlueMagic.Physical_index = 1
- end
- send_command('@input /echo <----- Physical Blue Magic set changed to '..sets.Midcast.BlueMagic.Physical.index[Midcast.BlueMagic.Physical_index]..' ----->')
- equip(sets.Midcast.BlueMagic.Physical[sets.Midcast.BlueMagic.Physical.index[Midcast.BlueMagic.Physical_index]])
- elseif command == 'magical' then
- Midcast.BlueMagic.Magical_index = Midcast.BlueMagic.Magical_index +1
- if Midcast.BlueMagic.Magical_index > #sets.Midcast.BlueMagic.Magical.index then
- Midcast.BlueMagic.Magical_index = 1
- end
- send_command('@input / echo <----- Magical Blue Magic set changed to '..sets.Midcast.BlueMagic.Magical.index[Midcast.BlueMagic.Magical_index]..' ----->')
- equip(sets.Midcast.BlueMagic.Magical[sets.Midcast.BlueMagic.Magical.index[Midcast.BlueMagic.Magical_index]])
- elseif command == 'idle' then
- Idle_index= Idle_index +1
- if Idle_index> #sets.Idle.index then
- Idle_index = 1
- end
- send_command('@input /echo <----- Idle Set changed to '..sets.Idle.index[Idle_index]..' ----->')
- equip(sets.Idle[sets.Idle.index[Idle_index]])
- elseif command == 'th' then
- TH_index = TH_index +1
- if TH_index == 1 then
- send_command('@input /echo <----- TH on stun spells: OFF ----->')
- elseif TH_index == 2 then
- send_command('@input /echo <----- TH on stun spells: ON ----->')
- elseif TH_index > 2 then
- TH_index = 1
- send_command('@input /echo <----- TH on stun spells: OFF ----->')
- end
- elseif command == 'active' then
- add_to_chat(207, 'Idle Set: '..sets.Idle.index[Idle_index]..'')
- add_to_chat(207, 'Melee Set: '..sets.Engaged.index[Engaged_index]..'')
- add_to_chat(207, 'Requiescat Set: '..sets.Requiescat.index[Requiescat_index]..'')
- add_to_chat(207, 'Chant du Cygne Set: '..sets.ChantDuCygne.index[ChantDuCygne_index]..'')
- add_to_chat(207, 'Sanguine Blade Set: '..sets.SanguineBlade.index[SanguineBlade_index]..'')
- add_to_chat(207, 'Physical Spell Set: '..sets.Midcast.BlueMagic.Physical.index[Midcast.BlueMagic.Physical_index]..'')
- add_to_chat(207, 'Magical Spell Set: '..sets.Midcast.BlueMagic.Magical.index[Midcast.BlueMagic.Magical_index]..'')
- if TH_index == 2 then
- add_to_chat(207, 'TH gear is being applied to stun spells')
- end
- elseif command == 'lockstyle' then
- equip(sets.Idle.Lockstyle)
- send_command('@input /lockstyle on')
- if player.status == 'Engaged' then
- if Engaged_index == 1 and ( (buffactive['march'] == 2 and buffactive['haste']) or (buffactive['embrava'] and buffactive['haste']) ) then
- equip(sets.Engaged['Marches'])
- else equip(sets.Engaged[sets.Engaged.index[Engaged_index]])
- end
- else equip(sets.Idle[sets.Idle.index[Idle_index]])
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement