Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function get_sets()
- --Variables
- petset = 1
- selfset = 1
- -- Idle Sets
- sets.idle = {}
- sets.idle.standard = {main="Owleyes", sub="Genbu's Shield", range="Filiae Bell",
- head="Wivre Hairpin", neck="Twilight Torque", rear="Loquac. Earring", lear="Gifted Earring",
- body="Geomancy Tunic", hands="Bagua Mitaines", lring="Dark Ring", rring="Dark Ring",
- back="Cheviot Cape", waist="Fucho-no-Obi", legs="Nares Trews", feet="Geomancy Sandals"}
- sets.idle.pet = {main="Owleyes", sub="Genbu's Shield", range="Filiae Bell",
- head="Wivre Hairpin", neck="Twilight Torque", rear="Loquac. Earring", lear="Gifted Earring",
- body="Geomancy Tunic", hands="Geomancy Mitaines", lring="Dark Ring", rring="Dark Ring",
- back="Cheviot Cape", waist="Fucho-no-Obi", legs="Nares Trews", feet="Bagua Sandals"}
- sets.idle.petDT = {main="Earth Staff", sub="Mephitis Grip", range="Filiae Bell",
- head="Nahtirah Hat", neck="Twilight Torque", rear="Loquac. Earring", lear="Gifted Earring",
- body="Geomancy Tunic", hands="Geomancy Mitaines", lring="Dark Ring", rring="Dark Ring",
- back="Cheviot Cape", waist="Fucho-no-Obi", legs="Theurgist's Slacks", feet="Bagua Sandals"}
- sets.idle.DT = {main="Earth Staff", sub="Mephitis Grip", range="Filiae Bell",
- head="Nahtirah Hat", neck="Twilight Torque", rear="Loquac. Earring", lear="Gifted Earring",
- body="Geomancy Tunic", hands="Bagua Mitaines", lring="Dark Ring", rring="Dark Ring",
- back="Cheviot Cape", waist="Fucho-no-Obi", legs="Theurgist's Slacks", feet="Umbani Boots"}
- sets.idle.hMP = {main="Chatoyant Staff", sub="Mephitis Grip", ammo="Clarus Stone",
- head="Wivre Hairpin", neck="Eidolon Pendant", rear="Loquac. Earring", lear="Gifted Earring",
- body="Geomancy Tunic", hands="Bagua Mitaines", lring="Dark Ring", rring="Dark Ring",
- back="Cheviot Cape", waist="Austerity Belt", legs="Nares Trews", feet="Chelona Boots"}
- -- Precast Sets
- sets.precast = {}
- sets.precast.FC = {head="Nahtirah Hat", neck="Jeweled Collar", rear="Loquac. Earring",
- body="Anhur Robe", hands="Repartie Gloves",
- back="Lifestream Cape", waist="Witful Belt", legs="Geomancy Pants", feet="Chelona Boots"}
- sets.precast.FC.Geomancy = {range="Filiae Bell",
- head="Nahtirah Hat", neck="Jeweled Collar", rear="Loquac. Earring",
- body="Anhur Robe", hands="Repartie Gloves",
- back="Lifestream Cape", waist="Witful Belt", legs="Geomancy Pants", feet="Chelona Boots"}
- sets.precast.FC.Elemental = {head="Nahtirah Hat", neck="Jeweled Collar", rear="Loquac. Earring",
- body="Anhur Robe", hands="Bagua Mitaines",
- back="Lifestream Cape", waist="Witful Belt", legs="Geomancy Pants", feet="Chelona Boots"}
- sets.precast.Enhancing = {head="Nahtirah Hat", neck="Jeweled Collar", rear="Loquac. Earring",
- body="Anhur Robe", hands="Repartie Gloves",
- back="Lifestream Cape", waist="Siegel Sash", legs="Geomancy Pants", feet="Chelona Boots"}
- sets.precast.Cure = {head="Nahtirah Hat", neck="Jeweled Collar", rear="Loquac. Earring",
- body="Heka's Kalasiris", hands="Repartie Gloves",
- back="Lifestream Cape", waist="Siegel Sash", legs="Geomancy Pants", feet="Chelona Boots"}
- -- Midcast Sets
- sets.midcast = {}
- sets.midcast.Elemental = {main="Twebuliij", sub="Mephitis Grip", ammo="Erlene's Notebook",
- head="Nahtirah Hat", neck="Eddy Necklace", rear="Novio Earring", lear="Friomisi Earring",
- body="Bokwus Robe", hands="Yaoyotl Gloves", rring="Strendu Ring", lring="Acumen Ring",
- back="Toro Cape", waist="Maniacus Sash", legs="Hagondes Pants", feet="Umbani Boots"}
- sets.midcast.Indi = {range="Filiae Bell",
- head="Nares Cap", neck="Jeweled Collar", rear="Loquac. Earring", lear="Gifted Earring",
- body="Bagua Tunic", hands="Geomancy Mitaines",
- back="Lifestream Cape", waist="Austerity Belt", legs="Bagua Pants", feet="Umbani Boots"}
- sets.midcast.Geo = {range="Filiae Bell",
- head="Nares Cap", neck="Jeweled Collar", rear="Loquac. Earring", lear="Gifted Earring",
- body="Bagua Tunic", hands="Geomancy Mitaines",
- back="Lifestream Cape", waist="Austerity Belt", legs="Theurgist's Slacks", feet="Umbani Boots"}
- sets.midcast.Cure = {main="Arka IV",
- head="Nares Cap", neck="Colossus's Torque", rear="Lifestorm Earring", lear="Psystorm Earring",
- body="Heka's Kalasiris", hands="Ayao's Gages", rring="Sirona's Ring", lring="Ephedra Ring",
- back="Oretaina's Cape", waist="Cascade Belt", legs="Nares Trews", feet="Rubeus Boots"}
- sets.midcast.Enfeeble = {main="Twebuliij", sub="Mephitis Grip",
- head="Bagua Galero", neck="Weike Torque", rear="Lifestorm Earring", lear="Psystorm Earring",
- body="Hagondes Coat", hands="Ayao's Gages", rring="Sangoma Ring", lring="Balrahn's Ring",
- back="Lifestream Cape", waist="Demonry Sash", legs="Theurgist's Slacks", feet="Hagondes Sabots"}
- sets.midcast.Dark = {main="Twebuliij", sub="Mephitis Grip",
- head="Bagua Galero", neck="Eddy Necklace", rear="Lifestorm Earring", lear="Psystorm Earring",
- body="Geomancy Tunic", hands="Hagondes Cuffs", rring="Sangoma Ring", lring="Balrahn's Ring",
- back="Refraction Cape", waist="Fucho-no-Obi", legs="Theurgist's Slacks", feet="Hagondes Sabots"}
- sets.midcast.Recast = {head="Nahtirah Hat", neck="Jeweled Collar",rear="Loquac. Earring",
- body="Anhur Robe", hands="Repartie Gloves",
- back="Lifestream Cape", waist="Witful Belt", legs="Geomancy Pants", feet="Chelona Boots"}
- sets.midcast.Stoneskin = {neck="Colossus's Torque",
- body="Heka's Kalasiris", hands="Ayao's Gages", rring="Aquasoul Ring",
- back="Merciful Cape", waist="Siegel Sash", legs="Haven Hose", feet="Rubeus Boots"}
- sets.midcast.Enhancing = {neck="Colossus's Torque",
- body="Anhur Robe", hands="Ayao's Gages",
- back="Merciful Cape", waist="Cascade Belt", feet="Rubeus Boots"}
- --JA Sets
- sets.precast.JA = {}
- sets.precast.JA['Life Cycle'] = {body="Geomancy Tunic"}
- sets.precast.JA['Radial Arcana'] = {feet="Bagua Sandals"}
- sets.precast.JA['Mending Halation'] = {legs="Bagua Pants"}
- sets.precast.JA['Bolster'] = {body="Bagua Tunic"}
- --Extra Sets
- sets.Obi = {}
- sets.Obi.Fire = {waist='Karin Obi',back='Twilight Cape'}
- sets.Obi.Earth = {waist='Dorin Obi',back='Twilight Cape'}
- sets.Obi.Water = {waist='Suirin Obi',back='Twilight Cape'}
- sets.Obi.Wind = {waist='Furin Obi',back='Twilight Cape'}
- sets.Obi.Ice = {waist='Hyorin Obi',back='Twilight Cape'}
- sets.Obi.Thunder = {waist='Rairin Obi',back='Twilight Cape'}
- sets.Obi.Light = {waist='Korin Obi',back='Twilight Cape'}
- sets.Obi.Dark = {waist='Anrin Obi',back='Twilight Cape'}
- end
- function precast(spell)
- if spell.action_type == 'Magic' then
- if spell.skill == 'Geomancy' then
- equip(sets.precast.FC.geomancy)
- elseif spell.skill == 'HealingMagic' then
- if string.find(spell.english,'Cur') and spell.name ~= 'Cursna' then
- equip(sets.precast.Cure)
- else
- equip(sets.precast.FC)
- end
- elseif spell.skill == 'ElementalMagic' and spell.cast_time < 3 then
- equip(sets.midcast.Elemental)
- elseif spell.skill == 'ElementalMagic' and spell.cast_time > 3 then
- equip(sets.precast.FC.Elemental)
- elseif spell.skill == 'EnhancingMagic' then
- equip(sets.precast.FC.Enhancing)
- else
- equip(sets.precast.FC)
- end
- elseif spell.type == 'JobAbility' then
- if sets.precast.JA[spell.english] then equip(sets.precast.JA[spell.english]) end
- end
- end
- function midcast(spell)
- if spell.action_type == 'Magic' then
- if spell.skill == 'Geomancy' then
- if string.find(spell.english,'Indi-') then
- equip(sets.midcast.Indi)
- elseif string.find(spell.english,'Geo-') then
- equip(sets.midcast.Geo)
- end
- elseif spell.skill == 'HealingMagic' then
- if string.find(spell.english,'Cur') and spell.name ~= 'Cursna' then
- equip(sets.midcast.Cure)
- else
- equip(sets.midcast.Recast)
- end
- elseif spell.skill == 'ElementalMagic' then
- equip(sets.midcast.Elemental)
- if spell.element == world.weather_element or spell_element == world.day_element then
- equip(sets.Obi[spell.element])
- end
- elseif spell.skill == 'EnfeeblingMagic' then
- equip(sets.midcast.Enfeeble)
- elseif spell.skill == 'EnhancingMagic' then
- if string.find(spell.english,'Phalanx') then
- equip(sets.midcast.Enhancing)
- else
- equip(sets.midcast.recast)
- end
- end
- end
- end
- function aftercast(spell)
- if pet.isvalid then
- if petset == 1 then
- equip(sets.idle.pet)
- elseif petset == 2 then
- equip(sets.idle.petDT)
- end
- else
- if selfset == 1 then
- equip(sets.idle.standard)
- elseif selfset == 2 then
- equip(sets.idle.DT)
- end
- end
- end
- function self_command(command)
- if command == 'toggle pet set' then
- petset = petset +1
- if petset > 2 then
- petset = 1
- send_command('@input /echo ----- Standard Pet Set -----')
- equip(sets.idle.pet)
- elseif petset == 2 then
- send_command('@input /echo ----- Hybrid Pet Set -----')
- equip(sets.idle.petDT)
- end
- end
- if command == 'toggle self set' then
- selfset = selfset +1
- if selfset > 2 then
- selfset = 1
- send_command('@input /echo ----- Standard Idle -----')
- equip(sets.idle.standard)
- elseif selfset == 2 then
- send_command('@input /echo ----- DT Idle -----')
- equip(sets.idle.DT)
- end
- end
- end
- function status_change(new,tab)
- if new == 'Resting' then
- equip(sets.idle.hMP)
- else
- if pet.isvalid then
- if petset == 1 then
- equip(sets.idle.pet)
- elseif petset == 2 then
- equip(sets.idle.petDT)
- end
- else
- if selfset == 1 then
- equip(sets.idle.standard)
- elseif selfset == 2 then
- equip(sets.idle.DT)
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment