Code:
function get_sets()
enfeeb_set_type = {"potency","accuracy"}
enfeeb_set_type_count = 1
sets.accuracy = {main="Chatoyant Staff", sub="raptor strap +1",
head="blood Mask", neck="Enfeebling Torque", ear1="Incubus Earring +1",
ear2="Incubus Earring +1", body="Warlock's Tabard", hands="Devotee's Mitts +1",
ring1="Celestial Ring", ring2="Celestial Ring", back="Hecate's Cape",
waist="Witch Sash", legs="Mahatma Slops", feet="Mahatma Pigaches"}
sets.potency = {main="Mistilteinn", sub="Nms. Shield +1",
head="blood Mask", neck="Promis Badge", ear1="Celestial Earring",
ear2="Celestial Earring", body="Mahatma Houppelande", hands="Devotee's Mitts +1",
ring1="Celestial Ring", ring2="Celestial Ring", back="Prism Cape",
waist="Witch Sash", legs="Mahatma Slops", feet="Mahatma Pigaches"}
enfeeb_spells = S{"Paralyze","Paralyze II","Slow","Slow II"}
--Idle Sets
sets.idle = {main="Terra's Staff", sub="Vivid Strap +1", ammo="Hedgehog Bomb",
neck="Orocho Nodowa +1", ear1="Merman's Earring", ear2="Merman's Earring",
body="Ixion Cloak", hands="Dst. Mittens +1", ring1="Merman's Ring", ring2="Merman's Ring",
back="Umbra Cape", waist="Ocean Rope", legs="Blood Cuisses", feet="Dst. Leggings +1"}
sets.idle.standard = {main="Terra's Staff", sub="Vivid Strap +1", ammo="Hedgehog Bomb",
neck="Orocho Nodowa +1", ear1="Merman's Earring", ear2="Merman's Earring",
body="Ixion Cloak", hands="Dst. Mittens +1", ring1="Merman's Ring", ring2="Merman's Ring",
back="Umbra Cape", waist="Ocean Rope", legs="Blood Cuisses", feet="Dst. Leggings +1"}
sets.idle.PDT = {main="Terra's Staff", sub="Vivid Strap +1", ammo="Hedgehog Bomb",
neck="Orocho Nodowa +1", ear1="Merman's Earring", ear2="Merman's Earring",
body="Ixion Cloak", hands="Dst. Mittens +1", ring1="Merman's Ring", ring2="Merman's Ring",
back="Umbra Cape", waist="Ocean Rope", legs="Blood Cuisses", feet="Dst. Leggings +1"}
--Precast Sets
sets.precast = {head="Warlock's Chapeau", body="Goliard Saio", sub="Vivid Strap +1"}
--Midcast sets
sets.midcast = {head="Warlock's Chapeau", body="Goliard Saio", hands="Dusk Gloves +1", waist="Speed Belt", feet="Dusk Ledelsens +1"}
sets.midcast.Cure = {main="Chatoyant Staff", sub="Staff Grip", head="Warlock's Chapeau", neck="Fylgja Torque +1", ear1="Roundel Earring",
ear2="Celestial Earring", body="Goliard Saio", hands="Dusk Goves +1", ring1="Celestal Ring", ring2="Celestial Ring", back="Mahatma Cape",
waist="Pythia Sash +1", legs="Mahatma Slops", feet="Dusk Ledelsens +1"}
sets.midcast.DarkEnfeeble = {main="Chatoyant Staff", sub="Vivid Strap +1",
head="blood Mask", neck="Enfeebling Torque", ear1="Incubus Earring +1",
ear2="Incubus Earring +1", body="Warlock's Tabard", hands="Mahatma Cuffs",
ring1="Omn. Ring +1", ring2="Omn. Ring +1", back="Hecate's Cape",
waist="Witch Sash", legs="Mahatma Slops", feet="Wise Pigaches +1"}
sets.midcast.MndEnfeeble = {main="Chatoyant Staff", sub="raptor strap +1",
head="blood Mask", neck="Enfeebling Torque", ear1="Incubus Earring +1",
ear2="Incubus Earring +1", body="Warlock's Tabard", hands="Devotee's Mitts +1",
ring1="Celestial Ring", ring2="Celestial Ring", back="Hecate's Cape",
waist="Witch Sash", legs="Mahatma Slops", feet="Mahatma Pigaches"}
sets.midcast.Curaga = sets.midcast.Cure
sets.midcast.CureSelf = {main="Chatoyant Staff", sub="Staff Grip", head="Warlock's Chapeau", neck="Fylgja Torque +1", ear1="Roundel Earring",
ear2="Celestial Earring", body="Goliard Saio", hands="Dusk Goves +1", ring1="Celestal Ring", ring2="Celestial Ring", back="Mahatma Cape",
waist="Pythia Sash +1", legs="Mahatma Slops", feet="Dusk Ledelsens +1"}
sets.midcast['Enhancing Magic'] = {head="Warlock's Chapeau", body="Goliard Saio", neck="Enhancing Torque", ear1="Augment. Earring", legs="Warlock's Tights",
hands="Duelist's Gloves", feet="Dusk Ledelsens +1", waist="Speed Belt"}
sets.midcast.Buffs = {head="Warlock's Chapeau", body="Goliard Saio", legs="Warlock's Tights",
hands="Dusk Gloves +1", feet="Dusk Ledelsens +1", waist="Speed Belt"}
sets.midcast.Stoneskin = {head="Warlock's Chapeau", body="Goliard Saio", neck="Enhancing Torque", ear1="Augment. Earring", ear2="Celestial Earring",
legs="Warlock's Tights", hands="Dusk gloves +1", feet="Dusk Ledelsens +1", waist="Speed Belt", back="Prism Cape", ring1="celestial Ring",
ring2="Celestial Ring"}
sets.midcast.Nuke = {main="Chatoyant Staff", sub="Vivid Strap +1", ammo="Phtm. Tathlum",
head="warlock's Chapeau", neck="Lmg. Medallion +1", ear1="Moldavite Earring", ear="Elemental Earring",
body="Mahatma Hpl.", hands="Zenith Mitts +1", ring1="Omn. Ring +1", ring2="Omn. Ring +1",
back="Hecate's Cape", waist="Witch Sash", legs="Mahatma Slops", feet="Duelist's Boots"}
sets.midcast.Blizzard = {main="Aquilo's", sub="Vivid Strap +1", ammo="Phtm. Tathlum",
head="warlock's Chapeau", neck="Lmg. Medallion +1", ear1="Moldavite Earring", ear="Crapaud Earring",
body="Mahatma Hpl.", hands="Zenith Mitts +1", ring1="Omn. Ring +1", ring2="Omn. Ring +1",
back="Hecate's Cape", waist="Witch Sash", legs="Mahatma Slops", feet="Duelist's Boots"}
end
function precast(spell)
if spell.type == 'Magic' then
equip(sets.precast)
if spell.skill == "Enfeebling Magic" then
if enfeeb_spells:contains(spell.en) then
equip(sets.FullMndEnfeeb, sets[enfeeb_set_type[enfeeb_set_type_count]])
end
end
end
end
function midcast(spell)
if spell.action_type == 'Magic' then
if spell.skill == "Enfeebling Magic" then
if windower.wc_match(spell.english,'Silence*|Dia*') then
equip(sets.midcast.MndEnfeeble)
elseif windower.wc_match(spell.english,'Sleep*|Gravity|Blind*|Bind*|Poison*') then
equip(sets.midcast.DarkEnfeeble)
end
elseif spell.skill == 'Healing Magic' then
if windower.wc_match(spell.english,'Cur*') and spell.name ~= 'Cursna' then
equip(sets.midcast.cure)
else
equip(sets.midcast.fastcast)
end
elseif spell.skill == 'Enhancing Magic' then
if spell.english == 'Stoneskin' then
equip(sets.midcast.stoneskin)
elseif windower.wc_match(spell.english,'Refresh*|Haste*') then
equip(sets.midcast.Buffs)
else
equip(sets.midcast.fastcast)
end
elseif spell.skill == 'ElementalMagic' then
if windower.wc_match(spell.english,'Blizz*') then
equip(sets.midcast.Blizzard)
else
equip(sets.midcast.Nuke)
end
end
end
end
function aftercast(spell)
equip(sets.idle)
end
function self_command(command)
if command == 'enfeebsettype' then
enfeeb_set_type_count = (enfeeb_set_type_count % #enfeeb_set_type_count) + 1
add_to_chat(7,'Enfeeb Set Type = ' .. tostring(enfeeb_set_type[enfeeb_set_type_count]))
end
end