Code:
function get_sets()
send_command('bind f9 gs c toggle Idle set')
send_command('bind f10 gs c toggle TP set')
send_command('bind f11 gs c toggle Cure set')
send_command('bind f12 gs c toggle LowNukes set')
send_command('bind !f12 gs c toggle HighNukes set')
function file_unload()
send_command('unbind ^f9')
send_command('unbind ^f10')
send_command('unbind ^f11')
send_command('unbind ^f12')
send_command('unbind !f9')
send_command('unbind !f10')
send_command('unbind !f11')
send_command('unbind !f12')
send_command('unbind f9')
send_command('unbind f10')
send_command('unbind f11')
send_command('unbind f12')
end
--Idle Sets--
sets.Idle = {}
sets.Idle.index = {'Standard', 'Melee'}
Idle_ind = 1
sets.Idle.Standard = {main="Bolelabunga",sub="Beatific shield +1",range="Aureole",
head="Viti. Chapeau +1",neck="Twilight torque",ear1="Moonshade earring",ear2="Ethereal earring",
body="Hagondes coat",hands="Serpentes cuffs",ring1="Balrahn's ring",ring2="Maquette ring",
back="Umbra cape",waist="Witful belt",legs="Hagondes pants",feet="Serpentes sabots"}
sets.Idle.Melee = {head="Viti. Chapeau +1",neck="Twilight torque",ear1="Moonshade earring",ear2="Ethereal earring",
body="Hagondes coat",hands="Serpentes cuffs",ring1="Balrahn's ring",ring2="Maquette ring",
back="Umbra cape",waist="Witful belt",legs="Hagondes pants",feet="Serpentes sabots"}
--Melee Sets--
sets.TP = {}
sets.TP.index = {'Standard', 'DualWield'}
TP_ind = 1
sets.TP.Standard = {ammo="Jukukik feather",
head="Espial cap", neck="Asperity necklace", ear1="Bladeborn earring", ear2="Steelflash earring",
body="Espial gambison", hands="Atrophy Gloves +1", ring1="Rajas ring", ring2="Cho'j band",
back="Atheling mantle", waist="Cetl belt", legs="Espial hose", feet="Espial socks"}
sets.TP.DualWield = {ammo="Jukukik feather",
head="Espial cap", neck="Asperity necklace", ear1="Heartseeker earring", ear2="Dudgeon earring",
body="Espial gambison", hands="Atrophy Gloves +1", ring1="Rajas ring", ring2="Cho'j band",
back="Atheling mantle", waist="Cetl belt", legs="Espial hose", feet="Espial socks"}
sets.WS = {}
sets.WS.Requiescat = {ammo="Jukukik feather",
head="Viti. Chapeau +1",neck="Soil gorget",ear1="Bladeborn earring",ear2="Steelflash earring",
body="Viti. Tabard +1",hands="Atrophy Gloves +1",ring1="Aquasoul ring",ring2="Aquasoul ring",
back="Atheling mantle",waist="Soil belt",legs="Atrophy Tights +1",feet="Umbani boots"}
sets.WS.Evisceration = {ammo="Jukukik feather",
head="Espial cap",neck="Rancor collar",ear1="Bladeborn earring",ear2="Steelflash earring",
body="Espial Gambison",hands="Espial Bracers",ring1="Rajas ring",ring2="Airy Ring",
back="Atheling mantle",waist="Cuchulain's Belt",legs="Espial hose",feet="Espial socks"}
sets.WS.AeolianEdge = {ammo="Erlene's notebook",
head="Hagondes hat",neck="Quanpur necklace",ear1="Friomisi earring",ear2="Hecate's earring",
body="Hagondes coat",hands="Otomi gloves",ring1="Acumen ring",ring2="Airy ring",
back="Hecate's cape",waist="Cognition belt",legs="Hagondes pants",feet="Umbani boots"}
--Precast Sets--
sets.Precast = {}
sets.Precast.FC = {}
sets.Precast.FC.Standard = {ammo='Incantor stone',
head='Atrophy Chapeau',ear1='Loquac. earring',
body="Viti. Tabard +1",hands='Gende. Gages +1',ring1='Prolix ring',
back='Swith cape',waist='Witful belt',legs='Orvail pants +1',feet='Chelona boots'}
sets.Precast.FC.Cures = {ammo='Incantor Stone',
head='Atrophy Chapeau',ear1='Loquac. earring',
body='Viti. Tabard +1',hands='Gende. Gages +1',ring1='Prolix ring',
back='Pahtli cape',waist='Witful belt',legs='Orvail pants +1',feet='Chelona boots'}
sets.Precast.JA = {}
--Midcast Sets--
sets.Midcast = {}
sets.Cures = {}
sets.Cures.index = {'Standard', 'Melee'}
Cures_ind = 1
sets.Cures.Standard = {main='Tamaxchi',sub="Genbu's shield",ammo='Clarus stone',
head='Gende. caubeen', neck="Colossus's torque",ear1='Aredan earring',ear2='Beatific earring',
body='Viti. Tabard +1',hands='Hagondes Cuffs',ring1='Ephedra ring',ring2="Sirona's ring",
back="Ghostfyre cape",waist='Cascade belt',legs="Atrophy Tights +1",feet='Umbani boots'}
sets.Cures.Melee = {ammo='Clarus stone',
head='Gende. caubeen',neck="Colossus's torque",ear1='Aredan earring',ear2='Beatific earring',
body='Gendewitha Bliaut',hands='Bokwus Gloves',ring1='Ephedra ring',ring2="Sirona's ring",
back="Ghostfyre cape",waist='Cascade belt',legs="Atrophy Tights +1",feet='Umbani boots'}
sets.LowNukes = {}
sets.LowNukes.index = {'Standard', 'Melee'}
LowNukes_ind = 1
sets.LowNukes.Standard = {main='Ngqoqwanb',sub='Achaq grip',ammo="Erlene's Notebook",
head='Buremte hat', neck="Quanpur necklace",ear1="Hecate's earring",ear2='Friomisi earring',
body='Hagondes coat',hands='Otomi gloves',ring1='Icesoul ring',ring2="Acumen ring",
back="Hecate's cape",waist='Cognition belt',legs="Hagondes pants",feet='Umbani boots'}
sets.LowNukes.Melee = {ammo="Erlene's Notebook",
head='Buremte hat', neck="Quanpur necklace",ear1="Hecate's earring",ear2='Friomisi earring',
body='Hagondes coat',hands='Otomi gloves',ring1='Icesoul ring',ring2="Acumen ring",
back="Hecate's cape",waist='Cognition belt',legs="Hagondes pants",feet='Umbani boots'}
sets.HighNukes = {}
sets.HighNukes.index = {'Standard', 'Melee'}
HighNukes_ind = 1
sets.HighNukes.Standard = {main='Ngqoqwanb',sub='Achaq grip',ammo="Erlene's Notebook",
head='Hagondes hat', neck="Quanpur necklace",ear1="Hecate's earring",ear2='Friomisi earring',
body='Hagondes coat',hands='Hagondes cuffs',ring1='Icesoul ring',ring2="Acumen ring",
back="Hecate's cape",waist='Cognition belt',legs="Hagondes pants",feet='Umbani boots'}
sets.HighNukes.Melee = {ammo="Erlene's Notebook",
head='Hagondes hat', neck="Quanpur necklace",ear1="Hecate's earring",ear2='Friomisi earring',
body='Hagondes coat',hands='Hagondes cuffs',ring1='Icesoul ring',ring2="Acumen ring",
back="Hecate's cape",waist='Cognition belt',legs="Hagondes pants",feet='Umbani boots'}
sets.Midcast.Cursna = {main='Tamaxchi',sub="Genbu's shield",ammo='Incantor stone',
head='Haruspex hat', neck="Malison medallion",ear1='Aredan earring',ear2='Beatific earring',
body='Viti. Tabard +1',hands="Ayao's gages",ring1='Ephedra ring',ring2="Sirona's ring",
back="Swith cape",waist='Witful belt',legs="Atrophy Tights +1",feet='Gende. galoshes'}
sets.Midcast.Helix = {main='Ngqoqwanb',sub='Achaq grip',ammo="Erlene's Notebook",
head='Hagondes hat', neck="Quanpur necklace",ear1="Hecate's earring",ear2='Friomisi earring',
body='Hagondes coat',hands='Hagondes cuffs',ring1='Icesoul ring',ring2="Icesoul ring",
back="Twilight cape",waist='Cognition belt',legs="Hagondes pants",feet='Umbani boots'}
sets.Midcast.Stun = {main='Ngqoqwanb',sub='Mephitis grip',ammo='Incantor stone',
head='Atrophy Chapeau',neck='Aesir torque',ear1='Psystorm earring',ear2='Lifestorm earring',
body='Viti. Tabard +1',hands='Gende. Gages +1',ring1="Maquette ring",ring2="Balrahn's ring",
back='Swith cape',waist='Witful belt',legs='Orvail pants +1',feet='Bokwus boots'}
sets.Midcast.Enhancing = {head="Umuthi hat",neck="Colossus's torque",ear1='Loquac. earring',
body="Viti. Tabard +1",hands="Atrophy Gloves +1",
back="Estoqueur's Cape",waist='Cascade belt',legs="Atrophy Tights +1",feet="Estq. Houseaux +2"}
sets.Midcast.Enfeebling = {sub="Mephitis grip",
head="Viti. Chapeau +1",neck="Imbodla necklace",ear1="Psystorm earring",ear2="Lifestorm earring",
body="Warlock's Tabard",hands="Gende. Gages +1",ring1="Maquette ring",ring2="Balrahn's ring",
back="Swith cape",waist="Cascade belt",legs="Orvail pants +1",feet="Orvail souliers +1"}
sets.Midcast.Stoneskin = {head="Umuthi hat",neck="Stone gorget",ear1="Earthcry earring",ear2="Loquac. earring",
hands="Stone mufflers",ring1="Prolix ring",
back="Swith cape",waist="Siegel sash",legs="Haven hose",feet="Chelona boots"}
sets.Midcast.Regen = {main='Bolelabunga',ammo='Clarus stone',
head="Umuthi hat", neck="Colossus's torque",ear1='Aredan earring',ear2='Beatific earring',
body='Viti. Tabard +1',hands='Bokwus gloves',ring1='Ephedra ring',ring2="Sirona's ring",
back="Pahtli cape",waist='Cascade belt',legs="Orvail pants +1",feet='Chelona boots'}
sets.Obi = {}
sets.Obi.Fire = {waist='Karin Obi',back='Twilight Cape',ring1='Zodiac Ring'}
sets.Obi.Earth = {waist='Dorin Obi',back='Twilight Cape',ring1='Zodiac Ring'}
sets.Obi.Water = {waist='Suirin Obi',back='Twilight Cape',ring1='Zodiac Ring'}
sets.Obi.Wind = {waist='Furin Obi',back='Twilight Cape',ring1='Zodiac Ring'}
sets.Obi.Ice = {waist='Hyorin Obi',back='Twilight Cape',ring1='Zodiac Ring'}
sets.Obi.Thunder = {waist='Rairin Obi',back='Twilight Cape',ring1='Zodiac Ring'}
sets.Obi.Light = {waist='Korin Obi',back='Twilight Cape',ring1='Zodiac Ring'}
sets.Obi.Dark = {waist='Anrin Obi',back='Twilight Cape',ring1='Zodiac Ring'}
--Aftercast Sets--
sets.Aftercast = {}
end
function precast(spell)
if spell.action_type == 'Magic' then
equip(sets.Precast.FC.Standard)
if string.find(spell.english,'Cur') and spell.name ~= 'Cursna' then
equip(sets.Precast.FC.Cure)
end
if spell.name == 'Stoneskin' then
equip({head='Umuthi hat'})
end
end
if spell.english == 'Requiescat' or spell.english == 'Death Blossom' then
equip(sets.WS.Requiescat)
end
if spell.english == 'Evisceration' or spell.english == 'Vorpal Blade' then
equip(sets.WS.Evisceration)
end
if spell.english == 'Aeolian Edge' or spell.english == 'Sanguine Blade' then
equip(sets.WS.AeolianEdge)
if spell.element == world.weather_element or spell_element == world.day_element then
equip(sets.Obi[spell.element])
end
end
end
function midcast(spell)
if spell.english == 'Cure' or spell.english == 'Cure II' or spell.english == 'Cure III' or spell.english == 'Cure IV' then
equip(sets.Cures[sets.Cures.index[Cures_ind]])
if spell.element == world.weather_element or spell_element == world.day_element then
equip(sets.Obi[spell.element])
end
end
if spell.english == 'Cursna' then
equip(sets.Midcast.Cursna)
end
if spell.english == 'Stun' then
equip(sets.Midcast.Stun)
end
if string.find(spell.english,'helix') then
equip(sets.Midcast.Helix)
end
if spell.english == 'Stone' or spell.english == 'Thunder' or spell.english == 'Water' or spell.english == 'Fire' or spell.english == 'Blizzard' or spell.english == 'Aero' or spell.english == 'Stone II' or spell.english == 'Thunder II' or spell.english == 'Water II' or spell.english == 'Fire II' or spell.english == 'Blizzard II' or spell.english == 'Aero II' then
equip(sets.LowNukes[sets.LowNukes.index[LowNukes_ind]])
if spell.element == world.weather_element or spell_element == world.day_element then
equip(sets.Obi[spell.element])
end
end
if spell.english == 'Stone III' or spell.english == 'Thunder III' or spell.english == 'Water III' or spell.english == 'Fire III' or spell.english == 'Blizzard III' or spell.english == 'Aero III' or spell.english == 'Stone IV' or spell.english == 'Thunder IV' or spell.english == 'Water IV' or spell.english == 'Fire IV' or spell.english == 'Blizzard IV' or spell.english == 'Aero IV' or spell.english == 'Stone V' or spell.english == 'Thunder V' or spell.english == 'Water V' or spell.english == 'Fire V' or spell.english == 'Blizzard V' or spell.english == 'Aero V'then
equip(sets.HighNukes[sets.HighNukes.index[HighNukes_ind]])
if spell.element == world.weather_element or spell_element == world.day_element then
equip(sets.Obi[spell.element])
end
end
if spell.skill == 'Enhancing Magic' then
equip(sets.Midcast.Enhancing)
if spell.english == 'Refresh' or spell.english == 'Refresh II' then
equip({legs="Estqr. Fuseau +2"})
end
end
if spell.english == 'Stoneskin' then
equip(sets.Midcast.Stoneskin)
if buffactive['Stoneskin'] then
send_command('@wait 1.5;input //cancel Stoneskin')
end
end
if spell.english == 'Slow' or spell.english == 'Paralyze' or spell.english == 'Blind' or spell.english == 'Silence' or spell.english == 'Break' or spell.english == 'Sleep' or spell.english == 'Sleep II' or spell.english == 'Sleepga' or spell.english == 'Dispel' then
equip(sets.Midcast.Enfeebling)
if buffactive['Saboteur'] then
equip({hands="Estq. Ganthrt. +2"})
end
end
if spell.english == 'Sneak' then
if buffactive['Sneak'] then
send_command('@wait 1.8; input /console cancel Sneak')
end
end
if spell.english == 'Dia' or spell.english == 'Dia II' or spell.english == 'Dia III' or spell.english == 'Diaga' then
equip({waist="Chaac belt"})
end
end
function aftercast(spell)
if player.status == 'Engaged' then
equip(sets.TP[sets.TP.index[TP_ind]])
else
equip(sets.Idle[sets.Idle.index[Idle_ind]])
end
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
function status_change(new,old)
if new == 'Engaged' then
equip(sets.TP[sets.TP.index[TP_ind]])
else
equip(sets.Idle[sets.Idle.index[Idle_ind]])
end
end
function self_command(command)
if command == 'toggle Idle set' then
Idle_ind = Idle_ind +1
if Idle_ind > #sets.Idle.index then Idle_ind = 1 end
send_command('@input /echo <----- Idle Set changed to '..sets.Idle.index[Idle_ind]..' ----->')
equip(sets.Idle[sets.Idle.index[Idle_ind]])
elseif command == 'toggle TP set' then
TP_ind = TP_ind +1
if TP_ind > #sets.TP.index then TP_ind = 1 end
send_command('@input /echo <----- TP Set changed to '..sets.TP.index[TP_ind]..' ----->')
equip(sets.TP[sets.TP.index[TP_ind]])
elseif command == 'toggle Cure set' then
Cures_ind = Cures_ind +1
if Cures_ind > #sets.Cures.index then Cures_ind = 1 end
send_command('@input /echo <----- Cures Set changed to '..sets.Cures.index[Cures_ind]..' ----->')
elseif command == 'toggle LowNukes set' then
LowNukes_ind = LowNukes_ind +1
if LowNukes_ind > #sets.LowNukes.index then LowNukes_ind = 1 end
send_command('@input /echo <----- Low Nukes Set changed to '..sets.LowNukes.index[LowNukes_ind]..' ----->')
elseif command == 'toggle HighNukes set' then
HighNukes_ind = HighNukes_ind +1
if HighNukes_ind > #sets.HighNukes.index then HighNukes_ind = 1 end
send_command('@input /echo <----- High Nukes Set changed to '..sets.HighNukes.index[HighNukes_ind]..' ----->')
elseif command == 'equip TP set' then
equip(sets.TP[sets.TP.index[TP_ind]])
elseif command == 'equip Idle set' then
equip(sets.Idle[sets.Idle.index[Idle_ind]])
end
end