Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function get_sets()
- --Variables
- idleset = 1 --(1 = Standard, 2 = DT)
- stunset = 1 --(1 = Recast, 2 = Hybrid, 3 = M.acc)
- nukeset = 1 --(1 = Standard, 2 = High Acc)
- enhanceskill = S{'Phalanx', 'Aquaveil', 'Enfire', 'Enwater', 'Enthunder', 'Enstone', 'Enaero', 'Enblizzard', 'Barfire', 'Barfira', 'Barwater', 'Barwatera', 'Barthunder', 'Barthundra', 'Barstone', 'Barstonra', 'Baraero', 'Baraera', 'Barblizzard', 'Barblizzara'}
- Whiteenfeeble = S{'Slow', 'Paralyze', 'Addle', 'Silence'}
- Blackenfeeble = S{'Bind', 'Blind', 'Gravity', 'Poison', 'Poisonga', 'Poison II', 'Break', 'Sleep', 'Sleep II', 'Sleepga', 'Dispel', 'Frazzle', 'Distract'}
- --Idle Sets
- sets.idle = {}
- sets.idle.standard = {main="Tupsimati",sub="Oneiros Grip",range="Aureole",
- head="Spurrina Coif",neck="Twilight Torque",ear1="Moonshade Earring",ear2="Loquac. Earring",
- body="Acad. Gown +1",hands="Serpentes Cuffs",ring1="Dark Ring",ring2="Defending Ring",
- back="Umbra Cape",waist="Fucho-no-Obi",legs="Assid. Pants +1",feet="Herald's Gaiters"}
- sets.idle.sublimation = set_combine(sets.idle.standard, {head="Acad. Mortar. +1", body="Pedagogy Gown", lear="Savant's Earring"})
- sets.idle.MP = set_combine(sets.idle.standard, {legs="Assiduity Pants"})
- sets.idle.sublimationMP = set_combine(sets.idle.MP, {head="Acad. Mortar. +1", body="Pedagogy Gown", lear="Savant's Earring"})
- sets.idle.DT = {main="Earth Staff", sub="Oneiros Grip", ammo="Incantor Stone",
- head="", neck="Twilight Torque", lear="Gifted Earring", rear="Loquac. Earring",
- body="Respite Cloak", hands="Yaoyotl Gloves", lring="Dark Ring", rring="Dark Ring",
- back="Umbra Cape", waist="Fucho-no-Obi", legs="Assiduity Pants", feet="Umbani Boots"}
- sets.idle.DTsub = set_combine(sets.idle.DT, {head="Acad. Mortar. +1", body="Pedagogy Gown", lear="Savant's Earring"})
- sets.idle.hmp = {main="Chatoyant Staff", sub="Oneiros Grip",
- neck="Eidolon Pendant",
- waist="Austerity Belt", legs="Assiduity Pants", feet="Chelona Boots"}
- --Precast Sets
- sets.precast = {}
- sets.precast.FC = {main="Marin Staff +1",sub="Vivid Strap",ammo="Impatiens",
- head="Nahtirah Hat",neck="Orunmila's Torque",ear1="Enchntr. Earring +1",ear2="Loquac. Earring",
- body="Shango Robe",hands="Gende. Gages +1",ring1="Prolix Ring",ring2="Defending Ring",
- back="Swith Cape +1",waist="Witful Belt",legs="Psycloth Lappas",feet="Acad. Loafers +1"}
- sets.precast.IFC = {main="Marin Staff +1",sub="Vivid Strap",ammo="Impatiens",
- head=none,neck="Orunmila's Torque",ear1="Enchntr. Earring +1",ear2="Loquac. Earring",
- body="Twilight Cloak",hands="Gende. Gages +1",ring1="Prolix Ring",ring2="Defending Ring",
- back="Swith Cape +1",waist="Witful Belt",legs="Psycloth Lappas",feet="Acad. Loafers +1"}
- --Midcast Sets
- sets.midcast = {}
- sets.midcast.nuke = {main="Tupsimati",sub="Elder's Grip +1",ammo="Ombre Tathlum +1",
- head="Helios Band",neck="Eddy Necklace",ear1="Crematio Earring",ear2="Friomisi Earring",
- body="Seidr Cotehardie",hands="Helios Gloves",ring1="Shiva Ring +1",ring2="Shiva Ring +1",
- back="Bookworm's Cape",waist="Yamabuki-no-Obi",legs="Hagondes Pants +1",feet="Helios Boots"}
- sets.midcast.lowtier = {main="Tupsimati",sub="Zuuxowu Grip",ammo="Ghastly Tathlum +1",
- head="Helios Band",neck="Eddy Necklace",ear1="Crematio Earring",ear2="Friomisi Earring",
- body="Seidr Cotehardie",hands="Helios Gloves",ring1="Shiva Ring +1",ring2="Shiva Ring +1",
- back="Bookworm's Cape",waist="Yamabuki-no-Obi",legs="Hagondes Pants +1",feet="Umbani Boots"}
- sets.midcast.resistnuke = set_combine(sets.midcast.nuke, {ammo="Savant's Treatise",
- body="Seidr Cotehardie", lring="Sangoma Ring", rring="Weatherspoon Ring",
- waist="Aswang Sash"})
- sets.midcast.helix = {main="Tupsimati",sub="Zuuxowu Grip",ammo="Ghastly Tathlum +1",
- head="Helios Band",neck="Eddy Necklace",ear1="Crematio Earring",ear2="Friomisi Earring",
- body="Shango Robe",hands="Helios Gloves",ring1="Shiva Ring +1",ring2="Shiva Ring +1",
- back="Bookworm's Cape",waist="Yamabuki-no-Obi",legs="Hagondes Pants +1",feet="Umbani Boots"}
- sets.midcast.dot = {main="Tupsimati",sub="Zuuxowu Grip",ammo="Ghastly Tathlum +1",
- head="Helios Band",neck="Incanter's Torque",ear1="Crematio Earring",ear2="Friomisi Earring",
- body="Shango Robe",hands="Helios Gloves",ring1="Shiva Ring +1",ring2="Shiva Ring +1",
- back="Bookworm's Cape",waist="Yamabuki-no-Obi",legs="Hagondes Pants +1",feet="Umbani Boots"}
- sets.midcast.impact = {main="Tupsimati",sub="Zuuxowu Grip",ammo="Ghastly Tathlum +1",
- head=none,neck="Incanter's Torque",ear1="Crematio Earring",ear2="Friomisi Earring",
- body="Twilight Cloak",hands="Helios Gloves",ring1="Shiva Ring +1",ring2="Shiva Ring +1",
- back="Bookworm's Cape",waist="Yamabuki-no-Obi",legs="Hagondes Pants +1",feet="Umbani Boots"}
- sets.midcast.enhancing = {main="Kirin's Pole",sub="Fulcio Grip",ammo="Savant's Treatise",
- head="Arbatel Bonnet +1",neck="Incanter's Torque",ear2="Andoaa Earring",
- body="Telchine Chas.",hands="Arbatel Bracers +1",
- back="Merciful Cape",waist="Olympus Sash",legs="Acad. Pants +1", feet="Regal Pumps +1"}
- sets.midcast.stoneskin = {
- head="Umuthi Hat",neck="Stone Gorget",
- waist="Siegel Sash",legs="Haven Hose"}
- sets.midcast.regen = set_combine(sets.midcast.enhancing,{main="Coeus",
- head="Arbatel Bonnet +1",
- body="Telchine Chas.",
- back="Bookworm's Cape"})
- sets.midcast.embrava = {main="Kirin's Pole",sub="Fulcio Grip",ammo="Savant's Treatise",
- head="Arbatel Bonnet +1",neck="Incanter's Torque",ear2="Andoaa Earring",
- body="Telchine Chas.",hands="Arbatel Bracers +1",
- back="Merciful Cape",waist="Olympus Sash",legs="Acad. Pants +1", feet="Regal Pumps +1"}
- sets.midcast.enfeebling = {main="Tupsimati",sub="Mephitis Grip",range="Aureole",
- head="Befouled Crown",neck="Incanter's Torque",ear1="Enchntr. Earring +1",ear2="Gwati Earring",
- body="Shango Robe",hands="Lurid Mitts",ring1="Perception Ring",ring2="Sangoma Ring",
- back="Refraction Cape",waist="Ovate Rope",legs="Psycloth Lappas",feet="Uk'uxkaj Boots"}
- sets.midcast.cure = {main="Tamaxchi",sub="Genbu's Shield",ammo="Incantor Stone",
- head="Gende. Caubeen",neck="Incanter's Torque",ear1="Enchntr. Earring +1",ear2="Loquac. Earring",
- body="Vrikodara Jupon",hands="Telchine Gloves",ring1="Haoma's Ring",ring2="Sirona's Ring",
- back="Twilight Cape",waist="Bishop's Sash",legs="Acad. Pants +1",feet="Acad. Loafers +1"}
- sets.midcast.weathercure = {main="Chatoyant Staff",sub="Achaq Grip",ammo="Incantor Stone",
- head="Gende. Caubeen",neck="Incanter's Torque",ear1="Enchntr. Earring +1",ear2="Loquac. Earring",
- body="Shango Robe",hands="Telchine Gloves",ring1="Haoma's Ring",ring2="Sirona's Ring",
- back="Twilight Cape",waist="Korin Obi",legs="Nares Trews",feet="Acad. Loafers +1"}
- sets.midcast.cursna = {head="Nahtirah Hat", neck="Incanter's Torque",
- body="Pedagogy Gown", hands="Telchine Gloves", lring="Sirona's Ring", rring="Ephedra Ring",
- waist="Witful Belt", legs="Academic's Pants", feet="Pedagogy Loafers"}
- sets.midcast.dark = {main="Tupsimati", sub="Mephitis Grip", ammo="Kalboron Stone",
- head="Striga Crown", neck="Eddy Necklace", lear="Enchanter Earring +1", rear="Gwati Earring",
- body="Shango Robe", hands="Lurid Mitts", lring="Sangoma Ring", rring="Balrahn's Ring",
- back="Bookworm's Cape", waist="Demonry Sash", legs="Arbatel Pants +1", feet="Helios Boots"}
- sets.midcast.stunspeed = {main="Apamajas II",sub="Arbuda Grip",ammo="Incantor Stone",
- head="Nahtirah Hat",neck="Orunmila's Torque",ear1="Enchntr. Earring +1",ear2="Gwati Earring",
- body="Shango Robe",hands="Gende. Gages +1",ring1="Prolix Ring",ring2="Sangoma Ring",
- back="Swith Cape +1",waist="Ninurta's Sash",legs="Psycloth Lappas",feet="Peda. Loafers +1"}
- sets.midcast.stunhybrid = set_combine(sets.midcast.stunspeed, {ammo="Kalboron Stone",
- back="Bookworm's Cape", waist="Demonry Sash", legs="Arbatel Pants +1"})
- sets.midcast.stunacc = set_combine(sets.midcast.stunspeed, {main="Twebuliij", ammo="Kalboron Stone",
- back="Bookworm's Cape", waist="Demonry Sash", legs="Arbatel Pants +1"})
- sets.midcast.kaustra = {main="Tupsimati",sub="Elder's Grip +1",ammo="Ombre Tathlum +1",
- head="Helios Band",neck="Eddy Necklace",ear1="Crematio Earring",ear2="Friomisi Earring",
- body="Shango Robe",hands="Helios Gloves",ring1="Shiva Ring +1",ring2="Shiva Ring +1",
- back="Toro Cape",waist="Yamabuki-no-Obi",legs="Hagondes Pants +1",feet="Umbani Sabots"}
- sets.midcast.recast = {main="Marin Staff +1",sub="Vivid Strap",ammo="Incantor Stone",
- head="Nahtirah Hat", neck="Orunmila's Torque",ear1="Enchntr. Earring +1",ear2="Loquac. Earring",
- body="Anhur Robe", hands="Gende. Gages +1", ring1="Weatherspoon Ring",ring2="Prolix Ring",
- back="Swith Cape +1", waist="Witful Belt", legs="Psycloth Lappas", feet="Peda. Loafers +1"}
- --JA Sets
- sets.JA = {}
- sets.JA['Enlightenment'] = {body="Peda. Gown +1"}
- sets.JA['Tabula Rasa'] = {legs="Pedagogy Pants"}
- --Utility Sets
- sets.Obi = {}
- sets.Obi.Fire = {waist='Hachirin-no-Obi',back='Twilight Cape'}
- sets.Obi.Earth = {waist='Hachirin-no-Obi',back='Twilight Cape'}
- sets.Obi.Water = {waist='Hachirin-no-Obi',back='Twilight Cape'}
- sets.Obi.Wind = {waist='Hachirin-no-Obi',back='Twilight Cape'}
- sets.Obi.Ice = {waist='Hachirin-no-Obi',back='Twilight Cape'}
- sets.Obi.Lightning = {waist='Hachirin-no-Obi',back='Twilight Cape'}
- sets.Obi.Light = {waist='Hachirin-no-Obi',back='Twilight Cape'}
- sets.Obi.Dark = {waist='Hachirin-no-Obi',back='Twilight Cape'}
- end
- function precast(spell)
- if spell.action_type == 'Magic' and spell.type ~= "Trust" then
- if spell.english == "Impact" then
- equip(sets.precast.IFC)
- elseif spell.skill == 'Enhancing Magic' then
- equip(sets.precast.FC, {waist="Siegel Sash"})
- elseif spell.skill == 'Healing Magic' then
- equip(sets.precast.FC, {body="Heka's Kalasiris"})
- else
- equip(sets.precast.FC)
- end
- elseif spell.type == "JobAbility" then
- if sets.JA[spell.english] then
- equip(sets.JA[spell.english])
- end
- end
- end
- function midcast(spell)
- if spell.action_type == 'Magic' then
- --Enhancing Magic--
- if spell.skill == 'Enhancing Magic' then
- if spell.english == "Stoneskin" then
- send_command('@wait 1.5;input //cancel Stoneskin')
- if buffactive['Penury'] then
- equip(sets.midcast.stoneskin, {legs="Arbatel Pants +1"})
- else
- equip(sets.midcast.stoneskin)
- end
- elseif string.find(spell.english,'Regen') then
- if buffactive['Penury'] then
- if buffactive['Perpetuance'] then
- equip(sets.midcast.regen, {main="Coeus", hands="Arbatel Bracers +1", legs="Arbatel Pants +1"})
- else
- equip(sets.midcast.regen, {main="Coeus", legs="Arbatel Pants +1"})
- end
- elseif buffactive['Perpetuance'] then
- equip(sets.midcast.regen, {main="Coeus", hands="Arbatel Bracers +1"})
- else
- equip(sets.midcast.regen, {main="Coeus"})
- end
- elseif enhanceskill:contains(spell.name) then
- if buffactive['Penury'] then
- if buffactive['Perpetuance'] then
- equip(sets.midcast.enhancing, {hands="Arbatel Bracers +1", legs="Arbatel Pants +1"})
- else
- equip(sets.midcast.enhancing, {legs="Arbatel Pants +1"})
- end
- elseif buffactive['Perpetuance'] then
- equip(sets.midcast.enhancing,{hands="Arbatel Bracers +1"})
- else
- equip(sets.midcast.enhancing)
- end
- elseif spell.english == "Embrava" then
- if buffactive['Perpetuance'] then
- equip(sets.midcast.embrava, {hands="Arbatel Bracers +1"})
- else
- equip(sets.midcast.embrava)
- end
- elseif string.find(spell.english,"Storm") then
- if buffactive['Perpetuance'] then
- equip(sets.midcast.recast, {hands="Arbatel Bracers +1", feet="Pedagogy Loafers"})
- else
- equip(sets.midcast.recast, {feet="Pedagogy Loafers"})
- end
- else
- if buffactive['Penury'] then
- if buffactive['Perpetuance'] then
- equip(sets.midcast.recast, {hands="Arbatel Bracers +1", legs="Arbatel Pants +1"})
- else
- equip(sets.midcast.recast, {legs="Arbatel Pants +1"})
- end
- elseif buffactive['Perpetuance'] then
- equip(sets.midcast.recast, {hands="Arbatel Bracers +1"})
- else
- equip(sets.midcast.recast)
- end
- end
- --Elemental Magic--
- elseif spell.skill == 'Elemental Magic' then
- if spell.english == "Anemohelix" or spell.english == "Cryohelix" or spell.english == "Pyrohelix" or spell.english == "Hydrohelix" or spell.english == "Ionohelix" or spell.english == "Geohelix" or spell.english == "Noctohelix" or spell.english == "Luminohelix" then
- if buffactive['Parsimony'] then
- if buffactive['Ebullience'] then
- equip(sets.midcast.helix, {head="Arbatel Bonnet +1", legs="Arbatel Pants +1"})
- if spell.element == world.weather_element or spell.element == world.day_element then
- equip(sets.Obi[spell.element], {waist="Yamabuki-no-Obi"})
- if buffactive['Klimaform'] then
- equip(sets.midcast.lowtier, {feet="Arbatel Loafers +1"})
- end
- end
- else
- equip(sets.midcast.helix, {legs="Arbatel Pants +1"})
- if spell.element == world.weather_element or spell.element == world.day_element then
- equip(sets.Obi[spell.element], {waist="Yamabuki-no-Obi"})
- if buffactive['Klimaform'] then
- equip(sets.midcast.lowtier, {feet="Arbatel Loafers +1"})
- end
- end
- end
- elseif buffactive['Ebullience'] then
- equip(sets.midcast.helix, {head="Arbatel Bonnet +1"})
- if spell.element == world.weather_element or spell.element == world.day_element then
- equip(sets.Obi[spell.element], {waist="Yamabuki-no-Obi"})
- if buffactive['Klimaform'] then
- equip(sets.midcast.lowtier, {feet="Arbatel Loafers +1"})
- end
- end
- else
- equip(sets.midcast.helix)
- if spell.element == world.weather_element or spell.element == world.day_element then
- equip(sets.Obi[spell.element], {waist="Yamabuki-no-Obi"})
- if buffactive['Klimaform'] then
- equip(sets.midcast.lowtier, {feet="Arbatel Loafers +1"})
- end
- end
- end
- elseif spell.english == 'Impact' then
- equip(sets.midcast.impact)
- elseif spell.english == 'Rasp' or spell.english == 'Choke' or spell.english == 'Frost' or spell.english == 'Burn' or spell.english == 'Drown' or spell.english == 'Shock' then
- if buffactive['Parsimony'] then
- equip(sets.midcast.dot, {legs="Arbatel Pants +1"})
- else
- equip(sets.midcast.dot)
- end
- elseif spell.english == "Stone" or spell.english == "Stone II" or spell.english == "Aero" or spell.english == "Aero II" or spell.english == "Blizzard" or spell.english == "Blizzard II" or spell.english == "Fire" or spell.english == "Fire II" or spell.english == "Water" or spell.english == "Water II" or spell.english == "Thunder" or spell.english == "Thunder II" then
- if buffactive['Parsimony'] then
- if buffactive['Ebullience'] then
- if nukeset == 1 then
- equip(sets.midcast.lowtier, {head="Arbatel Bonnet +1", legs="Arbatel Pants +1"})
- if spell.element == world.weather_element or spell.element == world.day_element then
- equip(sets.Obi[spell.element])
- if buffactive['Klimaform'] then
- equip(sets.midcast.lowtier, {feet="Arbatel Loafers +1"})
- end
- end
- else
- equip(sets.midcast.resistnuke, {head="Arbatel Bonnet +1", legs="Arbatel Pants +1"})
- if spell.element == world.weather_element or spell.element == world.day_element then
- equip(sets.Obi[spell.element])
- if buffactive['Klimaform'] then
- equip(sets.midcast.lowtier, {feet="Arbatel Loafers +1"})
- end
- end
- end
- else
- if nukeset == 1 then
- equip(sets.midcast.lowtier, {legs="Arbatel Pants +1"})
- if spell.element == world.weather_element or spell.element == world.day_element then
- equip(sets.Obi[spell.element])
- if buffactive['Klimaform'] then
- equip(sets.midcast.lowtier, {feet="Arbatel Loafers +1"})
- end
- end
- else
- equip(sets.midcast.resistnuke, {legs="Arbatel Pants +1"})
- if spell.element == world.weather_element or spell.element == world.day_element then
- equip(sets.Obi[spell.element])
- if buffactive['Klimaform'] then
- equip(sets.midcast.lowtier, {feet="Arbatel Loafers +1"})
- end
- end
- end
- end
- elseif buffactive['Ebullience'] then
- if nukeset == 1 then
- equip(sets.midcast.lowtier, {head="Arbatel Bonnet +1"})
- if spell.element == world.weather_element or spell.element == world.day_element then
- equip(sets.Obi[spell.element])
- if buffactive['Klimaform'] then
- equip(sets.midcast.lowtier, {feet="Arbatel Loafers +1"})
- end
- end
- else
- equip(sets.midcast.resistnuke, {head="Arbatel Bonnet +1"})
- if spell.element == world.weather_element or spell.element == world.day_element then
- equip(sets.Obi[spell.element])
- if buffactive['Klimaform'] then
- equip(sets.midcast.lowtier, {feet="Arbatel Loafers +1"})
- end
- end
- end
- else
- if nukeset == 1 then
- equip(sets.midcast.lowtier)
- if spell.element == world.weather_element or spell.element == world.day_element then
- equip(sets.Obi[spell.element])
- if buffactive['Klimaform'] then
- equip(sets.midcast.lowtier, {feet="Arbatel Loafers +1"})
- end
- end
- else
- equip(sets.midcast.resistnuke)
- if spell.element == world.weather_element or spell.element == world.day_element then
- equip(sets.Obi[spell.element])
- if buffactive['Klimaform'] then
- equip(sets.midcast.lowtier, {feet="Arbatel Loafers +1"})
- end
- end
- end
- end
- else
- if buffactive['Parsimony'] then
- if buffactive['Ebullience'] then
- if nukeset == 1 then
- equip(sets.midcast.nuke, {head="Arbatel Bonnet +1", legs="Arbatel Pants +1"})
- if spell.element == world.weather_element or spell.element == world.day_element then
- equip(sets.Obi[spell.element])
- if buffactive['Klimaform'] then
- equip(sets.midcast.lowtier, {feet="Arbatel Loafers +1"})
- end
- end
- else
- equip(sets.midcast.resistnuke, {head="Arbatel Bonnet +1", legs="Arbatel Pants +1"})
- if spell.element == world.weather_element or spell.element == world.day_element then
- equip(sets.Obi[spell.element])
- if buffactive['Klimaform'] then
- equip(sets.midcast.lowtier, {feet="Arbatel Loafers +1"})
- end
- end
- end
- else
- if nukeset == 1 then
- equip(sets.midcast.nuke, {legs="Arbatel Pants +1"})
- if spell.element == world.weather_element or spell.element == world.day_element then
- equip(sets.Obi[spell.element])
- if buffactive['Klimaform'] then
- equip(sets.midcast.lowtier, {feet="Arbatel Loafers +1"})
- end
- end
- else
- equip(sets.midcast.resistnuke, {legs="Arbatel Pants +1"})
- if spell.element == world.weather_element or spell.element == world.day_element then
- equip(sets.Obi[spell.element])
- if buffactive['Klimaform'] then
- equip(sets.midcast.lowtier, {feet="Arbatel Loafers +1"})
- end
- end
- end
- end
- elseif buffactive['Ebullience'] then
- if nukeset == 1 then
- equip(sets.midcast.nuke, {head="Arbatel Bonnet +1"})
- if spell.element == world.weather_element or spell.element == world.day_element then
- equip(sets.Obi[spell.element])
- if buffactive['Klimaform'] then
- equip(sets.midcast.lowtier, {feet="Arbatel Loafers +1"})
- end
- end
- else
- equip(sets.midcast.resistnuke, {head="Arbatel Bonnet +1"})
- if spell.element == world.weather_element or spell.element == world.day_element then
- equip(sets.Obi[spell.element])
- if buffactive['Klimaform'] then
- equip(sets.midcast.lowtier, {feet="Arbatel Loafers +1"})
- end
- end
- end
- else
- if nukeset == 1 then
- equip(sets.midcast.nuke)
- if spell.element == world.weather_element or spell.element == world.day_element then
- equip(sets.Obi[spell.element])
- if buffactive['Klimaform'] then
- equip(sets.midcast.lowtier, {feet="Arbatel Loafers +1"})
- end
- end
- else
- equip(sets.midcast.resistnuke)
- if spell.element == world.weather_element or spell.element == world.day_element then
- equip(sets.Obi[spell.element])
- if buffactive['Klimaform'] then
- equip(sets.midcast.lowtier, {feet="Arbatel Loafers +1"})
- end
- end
- end
- end
- end
- --Healing Magic--
- elseif spell.skill == 'Healing Magic' then
- if string.find(spell.english,'Cur') and spell.name ~= 'Cursna' then
- if buffactive['Penury'] then
- if buffactive['Rapture'] then
- equip(sets.midcast.cure, {head="Arbatel Bonnet +1", legs="Arbatel Pants +1"})
- if spell.element == world.weather_element or spell.element == world.day_element then
- equip(sets.midcast.weathercure)
- end
- else
- equip(sets.midcast.cure, {legs="Arbatel Pants +1"})
- if spell.element == world.weather_element or spell.element == world.day_element then
- equip(sets.midcast.weathercure)
- end
- end
- elseif buffactive['Rapture'] then
- equip(sets.midcast.cure, {head="Arbatel Bonnet +1"})
- if spell.element == world.weather_element or spell.element == world.day_element then
- equip(sets.midcast.weathercure)
- end
- else
- equip(sets.midcast.cure)
- if spell.element == world.weather_element or spell.element == world.day_element then
- equip(sets.midcast.weathercure)
- end
- end
- elseif spell.english == "Cursna" then
- equip(sets.midcast.cursna)
- else
- if buffactive['Penury'] then
- equip(sets.midcast.recast, {legs="Arbatel Pants +1"})
- else
- equip(sets.midcast.recast)
- end
- end
- --Dark Magic--
- elseif spell.skill == 'Dark Magic' then
- if spell.english == 'Stun' then
- if stunset == 1 then
- equip(sets.midcast.stunspeed)
- elseif stunset == 2 then
- equip(sets.midcast.stunhybrid)
- elseif stunset == 3 then
- equip(sets.midcast.stunacc)
- end
- elseif string.find(spell.english,'Aspir') or spell.english == 'Drain' then
- equip(sets.midcast.dark, {waist="Fucho-no-obi"})
- elseif spell.english == 'Kaustra' then
- if buffactive['Ebullience'] then
- equip(sets.midcast.kaustra, {head="Arbatel Bonnet +1"})
- if spell.element == world.weather_element or spell.element == world.day_element then
- equip(sets.Obi[spell.element])
- end
- else
- equip(sets.midcast.kaustra)
- if spell.element == world.weather_element or spell.element == world.day_element then
- equip(sets.Obi[spell.element])
- end
- end
- else
- equip(sets.midcast.dark)
- end
- --Enfeebling Magic--
- elseif spell.skill == 'Enfeebling Magic' then
- if Whiteenfeeble:contains(spell.name) then
- equip(sets.midcast.enfeebling)
- elseif Blackenfeeble:contains(spell.name) then
- equip(sets.midcast.enfeebling)
- end
- end
- end
- end
- function aftercast(spell)
- if idleset == 1 then
- if buffactive['Sublimation: Activated'] then
- if player.mp < 400 then
- equip(sets.idle.sublimationMP)
- else
- equip(sets.idle.sublimation)
- end
- else
- if player.mp < 400 then
- equip(sets.idle.MP)
- else
- equip(sets.idle.standard)
- end
- end
- elseif idleset == 2 then
- if buffactive['Sublimation: Activated'] then
- equip(sets.idle.DTsub)
- else
- equip(sets.idle.DT)
- end
- end
- end
- function aftercast(spell,action)
- if not spell.interrupted then
- if spell.english == "Sleep II" then -- Sleep II Countdown --
- send_command('wait 45;input /echo Sleep II Effect: [WEARING OFF IN 45 SEC.];wait 30;input /echo Sleep II Effect: [WEARING OFF IN 15 SEC.];wait 10;input /echo Sleep IIEffect: [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 buff_change(buff, gain)
- if buff == "Sublimation: Activated" then
- if gain then
- if idleset == 1 then
- if player.mp < 400 then
- send_command('@input /echo ----- Sublimation - Low MP -----')
- equip(sets.idle.sublimationMP)
- else
- send_command('@input /echo ----- Sublimation - Standard -----')
- equip(sets.idle.sublimation)
- end
- elseif idleset == 2 then
- send_command('@input /echo ----- Sublimation - DT -----')
- equip(sets.idle.DTsub)
- end
- else
- if idleset == 1 then
- if player.mp < 400 then
- send_command('@input /echo ----- Idle - Low MP -----')
- equip(sets.idle.MP)
- else
- send_command('@input /echo ----- Idle - Standard -----')
- equip(sets.idle.standard)
- end
- elseif idleset == 2 then
- send_command('@input /echo ----- Idle - DT -----')
- equip(sets.idle.DT)
- end
- end
- end
- end
- function status_change(new,tab)
- if new == "Idle" then
- if idleset == 1 then
- if player.mp < 400 then
- if buffactive['Sublimation: Activated'] then
- equip(sets.idle.sublimationMP)
- else
- equip(sets.idle.MP)
- end
- else
- if buffactive['Sublimation: Activated'] then
- equip(sets.idle.sublimation)
- else
- equip(sets.idle.standard)
- end
- end
- elseif idleset == 2 then
- if buffactive['Sublimation: Activated'] then
- equip(sets.idle.DTsub)
- else
- equip(sets.idle.DT)
- end
- end
- elseif new == "Resting" then
- equip(sets.idle.hmp)
- end
- end
- function self_command(command)
- if command == 'toggle idle' then
- idleset = idleset +1
- if idleset > 2 then
- idleset = 1
- if player.mp < 400 then
- if buffactive['Sublimation: Activated'] then
- send_command('@input /echo ----- Sublimation - Low MP -----')
- equip(sets.idle.sublimationMP)
- else
- send_command('@input /echo ----- Idle - Low MP -----')
- equip(sets.idle.MP)
- end
- else
- if buffactive['Sublimation: Activated'] then
- send_command('@input /echo ----- Sublimation - Standard -----')
- equip(sets.idle.sublimation)
- else
- send_command('@input /echo ----- Idle - Standard -----')
- equip(sets.idle.standard)
- end
- end
- elseif idleset == 2 then
- if buffactive['Sublimation: Activated'] then
- send_command('@input /echo ----- Sublimation - DT -----')
- equip(sets.idle.DTsub)
- else
- send_command('@input /echo ---- Idle - DT -----')
- equip(sets.idle.DT)
- end
- end
- end
- if command == 'toggle stun' then
- stunset = stunset +1
- if stunset > 3 then
- stunset = 1
- send_command('@input /echo ----- Stuns - Speed -----')
- elseif stunset == 2 then
- send_command('@input /echo ----- Stuns - Hybrid -----')
- elseif stunset == 3 then
- send_command('@input /echo ----- Stuns - M.acc -----')
- end
- end
- if command == 'toggle nuke' then
- nukeset = nukeset +1
- if nukeset > 2 then
- nukeset = 1
- send_command('@input /echo ----- Nukes - Damage -----')
- elseif nukeset == 2 then
- send_command('@input /echo ----- Nukes - Acc -----')
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment