Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function get_sets()
- --Spell Classification
- Healing = S{'Pollen', 'Healing Breeze', 'Wild Carrot', 'Magic Fruit', 'White Wind', 'Plenilune Embrace', 'Restoral'}
- Recast = S{'Cocoon', 'Metallic Body', 'Refueling', 'Feather Barrier', 'Memento Mori', 'Zephyr Mantle', 'Warm-Up', 'Amplification', 'Triumphant Roar', 'Saline Coat', 'Reactor Cool', 'Exuviation', 'Regeneration', 'Animating Wail', 'Battery Charge', 'Fantod', 'Barrier Tusk', 'Orcish Counterstance', 'Harden Shell', 'Pyric Bulwark', 'Carcharian Verve', 'Erratic Flutter', 'Winds of Promy.', 'Self-Destruct'}
- RecastSkill = S{'Diamondhide', 'Magic Barrier', 'Occultation'}
- Debuff = S{'Sheep Song', 'Soporific', 'Chaotic Eye', 'Sound Blast', 'Blank Gaze', 'Venom Shell', 'Stinking Gas', 'Awful Eye', 'Geist Wall', 'Jettatura', 'Frightful Roar', 'Cold Wave', 'Filamented Hold', 'Light of Penance', 'Voracious Trunk', 'Feather Tickle', 'Yawn', 'Infrasonics', 'Sandspray', 'Enervation', 'Lowing', 'Temporal Shift', 'Actinic Burst', 'Cimicine Discharge', 'Demoralizing Roar', 'Auroral Drape', 'Dream Flower', 'Reaving Wind', 'Mortal Ray', 'Blistering Roar', 'Absolute Terror', '1000 Needles'}
- Magical = S{'Sandspin', 'Cursed Sphere', 'Blastbomb', 'Bomb Toss', 'Death Ray', 'Mysterious Light', 'Blitzstrahl', 'Magnetite Cloud', 'Ice Break', 'Hecatomb Wave', 'Eyes on Me', 'Maelstrom', 'Corrosive Ooze', 'Firespit', 'Regurgitation', 'Mind Blast', 'Magic Hammer', 'Acrid Stream', 'Leafstorm', 'Blazing Bound', 'Thermal Pulse', 'Charged Whisker', "Everyone's Grudge", 'Water Bomb', 'Dark Orb', 'Thunderbolt', 'Vapor Spray', 'Gates of Hades', 'Tempestuous Upheaval', 'Embalming Earth', 'Rending Deluge', 'Foul Waters', 'Retinal Glare', 'Droning Whirlwind', 'Subduction', 'Diffusion Ray', 'Rail Cannon', 'Uproot', 'Crashing Thunder', 'Polar Roar', 'Molting Plumage', 'Nectarous Deluge', 'Searing Tempest', 'Blinding Fulgor', 'Spectral Floe', 'Scouring Spate', 'Anvil Lightning', 'Silent Storm', 'Entomb', 'Tenebral Crush', 'Palling Salvo'}
- SkillDrain = S{'Blood Drain', 'Digest', 'MP Drainkiss', 'Blood Saber', 'Osmosis', 'Atra. Libations'}
- Breath = S{'Poison Breath', 'Radiant Breath', 'Flying Hip Press', 'Bad Breath', 'Frost Breath', 'Heat Breath', 'Thunder Breath', 'Wind Breath'}
- Stuns = S{'Head Butt', 'Frypan', 'Whirl of Rage', 'Tail Slap', 'Sudden Lunge'}
- Physical = S{'Foot Kick', 'Sprout Smack', 'Wild Oats', 'Power Attack', 'Queasyshroom', 'Battle Dance', 'Feather Storm', 'Helldive', 'Bludgeon', 'Claw Cyclone', 'Screwdriver', 'Grand Slam', 'Smite of Rage', 'Pinecomb Bomb', 'Jet Stream', 'Uppercut', 'Terror Touch', 'Mandibular Bite', 'Sickle Slash', 'Dimensional Death', 'Spiral Spin', 'Death Scissors', 'Seedspray', 'Body Slam', 'Hydro Shot', 'Frenetic Rip', 'Spinal Cleave', 'Hysteric Barrage', 'Asuran Claws', 'Cannonball', 'Disseverment', 'Sub-Zero Smash', 'Vertical Cleave', 'Final Sting', 'Goblin Rush', 'Vanity Dive', 'Benthic Typhoon', 'Quad. Continuum', 'Empty Thrash', 'Delta Thrust', 'Heavy Strike', 'Quadrastrike', 'Tourbillon', 'Amorphic Spikes', 'Barbed Crescent', 'Bilgestorm', 'Bloodrake', 'Glutinous Dart', 'Paralyzing Triad', 'Thrashing Assault', 'Sinker Drill', 'Sweeping Gouge', 'Saurian Slide'}
- --Variables
- idleset = 1 --1 = Standard, 2 = DT
- accmode = 1 -- 1 = Standard, 2 = Light Acc, 3 = Heavy Acc
- engagemode = 1 -- 1 = Standard, 2 = DT
- --Idle Sets
- sets.idle = {}
- sets.idle.standard = {ammo="Vanir Battery",
- head="", neck="Twilight Torque", lear="Brutal Earring", rear="Ethereal Earring",
- body="Respite Cloak", hands="Serpentes Cuffs", lring="Dark Ring", rring="Dark Ring",
- back="Iximulew Cape", waist="Flume Belt", legs="Blood Cuisses", feet="Serpentes Sabots"}
- sets.idle.DT = {ammo="Vanir Battery",
- head="Whirlpool Mask", neck="Twilight Torque", lear="Brutal Earring", rear="Ethereal Earring",
- body="Emet Harness", hands="Umuthi Glovse", lring="Dark Ring", rring="Dark Ring",
- back="Iximulew Cape", waist="Flume Belt", legs="Quiahuiz Trousers", feet="Qaaxo Leggings"}
- --Precast Sets
- sets.precast = {}
- sets.precast.FC = {head="Athos's Chapeau", neck="Jeweled Collar", lear="Enchntr. Earring +1", rear="Loquac. Earring",
- body="Dread Jupon", hands="Thaumas Gloves", lring="Weatherspoon Ring",
- back="Swith Cape", waist="Witful Belt", legs="Blood Cuisses", feet="Chelona Boots"}
- sets.precast.blue = set_combine(sets.precast.FC, {body="Mavi Mintan +2"})
- sets.precast.stoneskin = set_combine(sets.precast.FC, {waist="Siegel Sash"})
- --Midcast Sets
- sets.midcast = {}
- sets.midcast.cure = {head="Assimilator's Keffiyeh +1", neck="Phalaina Locket", lear="Enchntr. Earring +1", rear="Loquac. Earring",
- body="Vanir Cotehardie", hands="Umuthi Gloves", lring="Weatherspoon Ring", rring="Sirona's Ring",
- back="Oretania's Cape", waist="Witful Belt", legs="Quiahuiz Trousers", feet="Manabyss Pigaches"}
- sets.midcast.wind = {ammo="Mavi Tathlum",
- head="Luhlaza Keffiyeh +1", neck="Phalaina Locket", lear="Ethereal Earring", rear="Loquac. Earring",
- body="Assimilator's Jubbah +1", hands="Umuthi Gloves", lring="Meridian Ring", rring="Sirona's Ring",
- back="Oretania's Cape", waist="Witful Belt", legs="Assimilator's Shalwar +1", feet="Assimilator's Charuqs +1"}
- sets.midcast.recast = {head="Athos's Chapeau", neck="Jeweled Collar", lear="Enchntr. Earring +1", rear="Loquac. Earring",
- body="Dread Jupon", hands="Thaumas Gloves", lring="Weatherspoon Ring",
- back="Swith Cape", waist="Witful Belt", legs="Taeon Tights", feet="Assimilator's Charuqs +1"}
- sets.midcast.recastskill = {ammo="Mavi Tathlum",
- head="Luhlaza Keffiyeh +1", neck="Jeweled Collar", lear="Enchntr. Earring +1", rear="Loquac. Earring",
- body="Assimilator's Jubbah +1", hands="Thaumas Gloves", lring="Weatherspoon Ring",
- back="Cornflower Cape", waist="Witful Belt", legs="Mavi Tayt +2", feet="Luhlaza Charuqs +1"}
- sets.midcast.debuff = {ammo="Mavi Tathlum",
- head="Assimilator's Keffiyeh +1", neck="Eddy Necklace", lear="Enchntr. Earring +1", rear="Gwati Earring",
- body="Vanir Cotehardie", hands="Hagondes Cuffs", lring="Weatherspoon Ring", rring="Sangoma Ring",
- back="Cornflower Cape", waist="Rumination Sash", legs="Mavi Tayt +2", feet="Hagondes Sabots"}
- sets.midcast.nuke = {ammo="Erlene's Notebook",
- head="Assimilator's Keffiyeh +1", neck="Eddy Necklace", lear="Friomisi Earring", rear="Crematio Earring",
- body="Vanir Cotehardie", hands="Helios Gloves", lring="Acumen Ring", rring="Strendu Ring",
- back="Cornflower Cape", waist="Yamabuki-no-Obi", legs="Hagondes Pants", feet="Manabyss Pigaches"}
- sets.midcast.drain = {ammo="Mavi Tathlum",
- head="Luhlaza Keffiyeh +1", neck="Eddy Necklace", lear="Enchntr. Earring +1", rear="Loquac. Earring",
- body="Assimilator's Jubbah +1", hands="Ayao Gages", lring="Weatherspoon Ring", rring="Sangoma Ring",
- back="Cornflower Cape", waist="Rumination Sash", legs="Mavi Tayt +2", feet="Luhlaza Charuqs +1"}
- sets.midcast.breath = {ammo="Mavi Tathlum",
- head="Luhlaza Keffiyeh +1", neck="Eddy Necklace", lear="Ethereal Earring", rear="Loquac. Earring",
- body="Assimilator's Jubbah +1", hands="Umuthi Gloves", lring="Meridian Ring", rring="Sirona's Ring",
- back="Oretania's Cape", waist="Witful Belt", legs="Assimilator's Shalwar +1", feet="Assimilator's Charuqs +1"}
- sets.midcast.stun = {ammo="Honed Tathlum",
- head="Whirlpool Mask", neck="Eddy Necklace", lear="Enchntr. Earring +1", rear="Gwati Earring",
- body="Mekosuchinae Harness", hands="Mavi Bazubands +2", lring="Mars's Ring", rring="Weatherspoon Ring",
- back="Cornflower Cape", waist="Hurch'lan Sash", legs="Taeon Tights", feet="Assimilator's Charuqs +1"}
- sets.midcast.physical = {ammo="Ginsen",
- head="Whirlpool Mask", neck="Ire Torque +1", lear="Kuwunga Earring", rear="Heartseeker Earring",
- body="Assimilator's Jubbah +1", hands="Umuthi Gloves", lring="Rajas Ring", rring="Ifrit's Ring",
- back="Cornflower Cape", waist="Wanion Belt", legs="Quiahuiz Trousers", feet="Assimilator's Charuqs +1"}
- sets.midcast.obi = {back="Twilight Cape", waist="Hachirin-no-Obi"}
- sets.midcast.stoneskin = {waist="Siegel Sash", legs="Haven Hose"}
- --Engaged Sets
- sets.engaged = {}
- sets.engaged.standard = {ammo="Ginsen",
- head="Whirlpool Mask", neck="Asperity Necklace", lear="Dudgeon Earring", rear="Heartseeker Earring",
- body="Qaaxo Harness", hands="Taeon Gloves", lring="Rajas Ring", rring="Epona's Ring",
- back="Bleating Mantle", waist="Windbuffet Belt", legs="Taeon Tights", feet="Qaaxo Leggings"}
- sets.engaged.DT = set_combine(sets.engaged.standard,{ammo="Inlamvuyeso",
- neck="Twilight Torque", lring="Dark Ring", rring="Patricius Ring",
- back="Iximulew Cape", waist="Flume Belt"})
- sets.engaged.lowacc = {ammo="Honed Tathlum",
- head="Whirlpool Mask", neck="Asperity Necklace", lear="Dudgeon Earring", rear="Heartseeker Earring",
- body="Dread Jupon", hands="Taeon Gloves", lring="Rajas Ring", rring="Epona's Ring",
- back="Letalis Mantle", waist="Windbuffet Belt", legs="Taeon Tights", feet="Qaaxo Leggings"}
- sets.engaged.lowDT = set_combine(sets.engaged.lowacc,{ammo="Inlamvuyeso",
- neck="Twilight Torque", lring="Dark Ring", rring="Patricius Ring",
- back="Iximulew Cape", waist="Flume Belt"})
- sets.engaged.highacc = {ammo="Honed Tathlum",
- head="Whirlpool Mask", neck="Asperity Necklace", lear="Dudgeon Earring", rear="Heartseeker Earring",
- body="Luhlaza Jubbah +1", hands="Buremte Gloves", lring="Mars's Ring", rring="Patricius Ring",
- back="Letalis Mantle", waist="Hurch'lan Sash", legs="Taeon Tights", feet="Assimilator's Charuqs +1"}
- sets.engaged.highDT = set_combine(sets.engaged.highacc,{ammo="Inlamvuyeso",
- neck="Twilight Torque", lring="Dark Ring", rring="Patricius Ring",
- back="Iximulew Cape", waist="Flume Belt"})
- --WS Sets
- sets.WS = {}
- sets.WS.CDC = {ammo="Jukukik Feather",
- head="Uk'uxkaj Cap", neck="Fotia Gorget", lear="Brutal Earring", rear="Moonshade Earring",
- body="Dread Jupon", hands="Buremte Gloves", lring="Jupiter's Ring", rring="Epona's Ring",
- back="Rancorous Mantle", waist="Fotia Belt", legs="Manibozho Brais", feet="Assimilator's Charuqs +1"}
- sets.WS.CDCAcc = {ammo="Jukukik Feather",
- head="Whirlpool Mask", neck="Fotia Gorget", lear="Brutal Earring", rear="Moonshade Earring",
- body="Luhlaza Jubbah +1", hands="Buremte Gloves", lring="Mars's Ring", rring="Epona's Ring",
- back="Kayapa Cape", waist="Fotia Belt", legs="Manibozho Brais", feet="Assimilator's Charuqs +1"}
- sets.WS.Req = {ammo="Ginsen",
- head="Whirlpool Mask", neck="Fotia Gorget", lear="Brutal Earring", rear="Moonshade Earring",
- body="Luhlaza Jubbah +1", hands="Umuthi Gloves", lring="Aquasoul Ring", rring="Epona's Ring",
- back="Bleating Mantle", waist="Fotia Belt", legs="Quiahuiz Trousers", feet="Assimilator's Charuqs +1"}
- sets.WS.ReqAcc = {ammo="Honed Tathlum",
- head="Whirlpool Mask", neck="Fotia Gorget", lear="Brutal Earring", rear="Moonshade Earring",
- body="Luhlaza Jubbah +1", hands="Buremte Gloves", lring="Aquasoul Ring", rring="Epona's Ring",
- back="Letalis Mantle", waist="Fotia Belt", legs="Manibozho Brais", feet="Assimilator's Charuqs +1"}
- sets.WS.SB = {ammo="Cheruski Needle",
- head="Whirlpool Mask", neck="Fotia Gorget", lear="Brutal Earring", rear="Moonshade Earring",
- body="Luhlaza Jubbah +1", hands="Umuthi Gloves", lring="Rajas Ring", rring="Epona's Ring",
- back="Bleating Mantle", waist="Fotia Belt", legs="Quiahuiz Trousers", feet="Assimilator's Charuqs +1"}
- sets.WS.SBAcc = {ammo="Honed Tathlum",
- head="Whirlpool Mask", neck="Fotia Gorget", lear="Brutal Earring", rear="Moonshade Earring",
- body="Luhlaza Jubbah +1", hands="Umuthi Gloves", lring="Mars's Ring", rring="Epona's Ring",
- back="Letalis Mantle", waist="Fotia Belt", legs="Manibozho Brais", feet="Assimilator's Charuqs +1"}
- sets.WS["Sanguine Blade"] = {ammo="Erlene's Notebook",
- head="Assimilator's Keffiyeh +1", neck="Eddy Necklace", lear="Friomisi Earring", rear="Crematio Earring",
- body="Vanir Cotehardie", hands="Mavi Bazubands +2", lring="Acumen Ring", rring="Strendu Ring",
- back="Cornflower Cape", waist="Yamabuki-no-Obi", legs="Hagondes Pants", feet="Manabyss Pigaches"}
- sets.WS["Realmrazer"] = {ammo="Ginsen",
- head="Whirlpool Mask", neck="Fotia Gorget", lear="Brutal Earring", rear="Moonshade Earring",
- body="Luhlaza Jubbah +1", hands="Umuthi Gloves", lring="Aquasoul Ring", rring="Epona's Ring",
- back="Bleating Mantle", waist="Fotia Belt", legs="Quiahuiz Trousers", feet="Assimilator's Charuqs +1"}
- sets.WS["Flash Nova"] = {ammo="Erlene's Notebook",
- head="Assimilator's Keffiyeh +1", neck="Eddy Necklace", lear="Friomisi Earring", rear="Crematio Earring",
- body="Vanir Cotehardie", hands="Mavi Bazubands +2", lring="Weatherspoon Ring", rring="Strendu Ring",
- back="Cornflower Cape", waist="Yamabuki-no-Obi", legs="Hagondes Pants", feet="Manabyss Pigaches"}
- sets.WS.other = {ammo="Cheruski Needle",
- head="Whirlpool Mask", neck="Fotia Gorget", lear="Brutal Earring", rear="Moonshade Earring",
- body="Luhlaza Jubbah +1", hands="Umuthi Gloves", lring="Rajas Ring", rring="Epona's Ring",
- back="Buquwik Cape", waist="Fotia Belt", legs="Quiahuiz Trousers", feet="Assimilator's Charuqs +1"}
- --JA Sets
- sets.JA = {}
- sets.JA.CA = {head="Mavi Kavuk +2", feet="Assimilator's Charuqs +1"}
- sets.JA.BA = {legs="Assimilator's Shalwar +1", feet="Mavi Basmak +2"}
- sets.JA.Efflux = {legs="Mavi Tayt +2"}
- sets.JA["Azure Lore"] = {hands="Luhlaza Bazubands"}
- sets.JA["Diffusion"] = {feet="Luhlaza Charuqs +1"}
- sets.JA["Convergence"] = {head="Luhlaza Keffiyeh +1"}
- sets.JA.step = {ammo="Honed Tathlum",
- head="Whirlpool Mask", lear="Steelflash Earring", rear="Heartseeker Earring",
- body="Luhlaza Jubbah +1", hands="Buremte Gloves", lring="Mars's Ring", rring="Patricius Ring",
- back="Letalis Mantle", waist="Chaac Belt", legs="Taeon Tights", feet="Assimilator's Charuqs +1"}
- sets.JA.waltz = {head="Uk'uxkaj Cap", lear="Enchntr. Earring +1",
- body="Vanir Cotehardie", hands="Umuthi Gloves", rring="Sirona's Ring",
- back="Swith Cape", waist="Chaac Belt", legs="Desultor Tassets", feet="Manabyss Pigaches"}
- end
- function precast(spell)
- if spell.action_type == "Magic" then
- if spell.skill == "Blue Magic" then
- equip(sets.precast.blue)
- elseif spell.skill == "Stoneskin" then
- equip(sets.precast.stoneskin)
- else
- equip(sets.precast.FC)
- end
- elseif spell.type == "WeaponSkill" then
- if spell.english == "Chant Du Cygne" then
- if accmode == 1 then
- equip(sets.WS.CDC)
- elseif accmode == 2 or accmode == 3 then
- equip(sets.WS.CDCAcc)
- end
- elseif spell.english == "Requiescat" then
- if accmode == 1 then
- equip(sets.WS.Req)
- elseif accmode == 2 or accmode == 3 then
- equip(sets.WS.ReqAcc)
- end
- elseif spell.english == "Savage Blade" then
- if accmode == 1 then
- equip(sets.WS.SB)
- elseif accmode == 2 or accmode == 3 then
- equip(sets.WS.SBAcc)
- end
- elseif sets.WS[spell.english] then
- equip(sets.WS[spell.english])
- else
- equip(sets.WS.other)
- end
- elseif spell.type == "JobAbility" then
- if spell.english == "Azure Lore" then
- equip(sets.JA["Azure Lore"])
- end
- elseif spell.type == "Step" then
- equip(sets.JA.step)
- elseif spell.type == "Waltz" then
- if string.find(spell.english,"Curing") or spell.english == "Divine Waltz" then
- equip(sets.JA.waltz)
- elseif spell.english == "Healing Waltz" then
- equip({legs="Desultor Tassets"})
- end
- elseif spell.type == "Flourish" then
- if spell.english == "Violent Flourish" then
- equip(sets.JA.step)
- end
- end
- end
- function midcast(spell)
- if spell.skill == "Blue Magic" then
- if Healing:contains(spell.name) then
- if spell.english == "White Wind" then
- if spell.element == world.weather_element or spell.element == world.day_element then
- equip(sets.midcast.wind, sets.midcast.obi)
- else
- equip(sets.midcast.wind)
- end
- else
- if spell.element == world.weather_element or spell.element == world.day_element then
- equip(sets.midcast.cure, sets.midcast.obi)
- else
- equip(sets.midcast.cure)
- end
- end
- elseif Recast:contains(spell.name) then
- if buffactive["Diffusion"] then
- equip(sets.midcast.recast, sets.JA["Diffusion"], {hands="Mavi Bazubands +2"})
- else
- equip(sets.midcast.recast, {hands="Mavi Bazubands +2"})
- end
- elseif RecastSkill:contains(spell.name) then
- if buffactive["Diffusion"] then
- equip(sets.midcast.recastskill, sets.JA["Diffusion"])
- else
- equip(sets.midcast.recastskill)
- end
- elseif Debuff:contains(spell.name) then
- equip(sets.midcast.debuff)
- elseif Magical:contains(spell.name) then
- if buffactive["Burst Affinity"] then
- if spell.element == world.weather_element or spell.element == world.day_element then
- equip(sets.midcast.nuke, sets.midcast.obi, {feet="Mavi Basmak +2"})
- else
- equip(sets.midcast.nuke, {feet="Mavi Basmak +2"})
- end
- else
- if spell.element == world.weather_element or spell.element == world.day_element then
- equip(sets.midcast.nuke, sets.midcast.obi)
- else
- equip(sets.midcast.nuke)
- end
- end
- elseif SkillDrain:contains(spell.name) then
- equip(sets.midcast.drain)
- elseif Breath:contains(spell.name) then
- equip(sets.midcast.breath)
- elseif Stuns:contains(spell.name) then
- equip(sets.midcast.stun)
- elseif Physical:contains(spell.name) then
- if buffactive["Chain Affinity"] then
- if buffactive["Efflux"] then
- equip(sets.midcast.physical, sets.JA["Chain Affinty"], sets.JA["Efflux"])
- else
- equip(sets.midcast.physical, sets.JA["Chain Affinty"])
- end
- elseif buffactive["Efflux"] then
- equip(sets.midcast.physical, sets.JA["Efflux"])
- else
- equip(sets.midcast.physical)
- end
- end
- elseif spell.skill == "Ninjutsu" then
- if spell.english == "Utsusemi: Ni" then
- equip(sets.midcast.recast)
- elseif spell.english == "Utsusemi: Ichi" then
- send_command('@wait 2.0;input //cancel Copy Image*')
- equip(sets.midcast.recast)
- end
- elseif spell.skill == "Healing Magic" then
- 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.cure, sets.midcast.obi)
- else
- equip(sets.midcast.cure)
- end
- end
- elseif spell.skill == "Enfeebling Magic" then
- if string.find(spell.english, "Sleep") or spell.english == "Paralyze" or spell.english == "Slow" or spell.english == "Distract" or spell.english == "Frazzle" or spell.english == "Silence" or spell.english == "Dispel" or spell.english == "Bind" or string.find(spell.english,"Poison") then
- equip(sets.midcast.debuff)
- end
- elseif spell.skill == "Elemental Magic" then
- if spell.element == world.weather_element or spell.element == world.day_element then
- equip(sets.midcast.nuke, sets.midcast.obi)
- else
- equip(sets.midcast.nuke)
- end
- elseif spell.english == "Stoneskin" then
- equip(sets.midcast.stoneskin)
- else
- equip(sets.midcast.recast)
- end
- end
- function aftercast(spell)
- if player.status == "Idle" then
- if idleset == 1 then
- equip(sets.idle.standard)
- elseif idleset == 2 then
- equip(sets.idle.standard)
- end
- elseif player.status == "Engaged" then
- if engagemode == 1 then
- if accmode == 1 then
- equip(sets.engaged.standard)
- elseif accmode == 2 then
- equip(sets.engaged.lowacc)
- elseif accmode == 3 then
- equip(sets.engaged.highacc)
- end
- elseif engagemode == 2 then
- if accmode == 1 then
- equip(sets.engaged.DT)
- elseif accmode == 2 then
- equip(sets.engaged.lowDT)
- elseif accmode == 3 then
- equip(sets.engaged.highDT)
- end
- end
- end
- end
- function status_change(new, tab)
- if new == "Idle" then
- if idleset == 1 then
- equip(sets.idle.standard)
- elseif idleset == 2 then
- equip(sets.idle.standard)
- end
- elseif new == "Engaged" then
- if engagemode == 1 then
- if accmode == 1 then
- equip(sets.engaged.standard)
- elseif accmode == 2 then
- equip(sets.engaged.lowacc)
- elseif accmode == 3 then
- equip(sets.engaged.highacc)
- end
- elseif engagemode == 2 then
- if accmode == 1 then
- equip(sets.engaged.DT)
- elseif accmode == 2 then
- equip(sets.engaged.lowDT)
- elseif accmode == 3 then
- equip(sets.engaged.highDT)
- end
- end
- end
- end
- function self_command(command)
- if command == 'idle' then
- if idleset == 1 then
- equip(sets.idle.standard)
- send_command('@input /echo ----- Idle: Standard -----')
- elseif idleset == 2 then
- equip(sets.idle.DT)
- send_command('@input /echo ----- Idle: DT -----')
- end
- end
- if command == 'toggle idle' then
- idleset = idleset +1
- if idleset > 2 then
- idleset = 1
- equip(sets.idle.standard)
- send_command('@input /echo ----- Idle: Standard -----')
- elseif idleset == 2 then
- equip(sets.idle.DT)
- send_command('@input /echo ----- Idle: DT -----')
- end
- end
- if command == 'toggle acc' then
- accmode = accmode +1
- if accmode > 3 then
- accmode = 1
- if engagemode == 1 then
- equip(sets.engaged.standard)
- send_command('@input /echo ----- Engaged: Standard -----')
- elseif engagemode == 2 then
- equip(sets.engaged.DT)
- send_command('@input /echo ----- Engaged: DT -----')
- end
- elseif accmode == 2 then
- if engagemode == 1 then
- equip(sets.engaged.lowacc)
- send_command('@input /echo ----- Engaged: Low Accuracy -----')
- elseif engagemode == 2 then
- equip(sets.engaged.lowDT)
- send_command('@input /echo ----- Engaged: Low Accuracy/DT -----')
- end
- elseif accmode == 3 then
- if engagemode == 1 then
- equip(sets.engaged.highacc)
- send_command('@input /echo ----- Engaged: High Accuracy -----')
- elseif engagemode == 2 then
- equip(sets.engaged.highDT)
- send_command('@input /echo ----- Engaged: High Accuracy/DT -----')
- end
- end
- end
- if command == 'toggle engage' then
- engagemode = engagemode +1
- if engagemode > 2 then
- engagemode = 1
- if accmode == 1 then
- equip(sets.engaged.standard)
- send_command('@input /echo ----- Engaged: Standard -----')
- elseif accmode == 2 then
- equip(sets.engaged.lowacc)
- send_command('@input /echo ----- Engaged: Low Accuracy -----')
- elseif accmode == 3 then
- equip(sets.engaged.highacc)
- send_command('@input /echo ----- Engaged: High Accuracy -----')
- end
- elseif engagemode == 2 then
- if accmode == 1 then
- equip(sets.engaged.DT)
- send_command('@input /echo ----- Engaged: DT -----')
- elseif accmode == 2 then
- equip(sets.engaged.lowDT)
- send_command('@input /echo ----- Engaged: Low Accuracy/DT -----')
- elseif accmode == 3 then
- equip(sets.engaged.highDT)
- send_command('@input /echo ----- Engaged: High Accuracy/DT -----')
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment