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="Idris", sub="Genbu's Shield", range="Dunna",
- head="Spurrina Coif", neck="Twilight Torque", rear="Loquac. Earring", lear="Gifted Earring",
- body="Geo. Tunic +1", hands="Bagua Mitaines +1", lring="Defending Ring", rring="Dark Ring",
- back="Umbra Cape", waist="Fucho-no-Obi", legs="Assid. Pants +1", feet="Geo. Sandals +1"}
- sets.idle.pet = set_combine(sets.idle.standard, {lear="Rimeice Earring",rear="Handler's Earring +1",hands="Geo. Mitaines +1",back="Lifestream Cape",feet="Bagua Sandals +1"})
- sets.idle.DT = {main="Idris", sub="Genbu's Shield", range="Dunna",
- head="Nahtirah Hat", neck="Twilight Torque", rear="Loquac. Earring", lear="Gifted Earring",
- body="Geo. Tunic +1", hands="Bagua Mitaines +1", lring="Defending Ring", rring="Dark Ring",
- back="Umbra Cape", waist="Fucho-no-Obi", legs="Theurgist's Slacks", feet="Umbani Boots"}
- sets.idle.petDT = set_combine(sets.idle.DT, {main="Idris", lear="Rimeice Earring",rear="Handler's Earring +1",hands="Geo. Mitaines +1",back="Lifestream Cape",feet="Bagua Sandals +1"})
- sets.idle.hMP = {main="Chatoyant Staff", sub="Oneiros Grip", ammo="Clarus Stone",
- head="Wivre Hairpin", neck="Eidolon Pendant", rear="Loquac. Earring", lear="Gifted Earring",
- body="Geo. Tunic +1", hands="Bagua Mitaines +1", lring="Dark Ring", rring="Dark Ring",
- back="Umbra Cape", waist="Austerity Belt +1", legs="Assid. Pants +1", 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",lear="Enchntr. Earring +1",rear="Loquac. Earring",
- body="Anhur Robe", hands="Otomi Gloves",lring="Weather. Ring",rring="Prolix Ring",
- back="Lifestream Cape", waist="Witful Belt", legs="Geo. Pants +1",feet="Regal Pumps +1"}
- sets.precast.FC.Geomancy = {main="Marin Staff +1",sub="Vivid Strap",range="Dunna",
- head="Nahtirah Hat", neck="Orunmila's Torque",lear="Enchntr. Earring +1",rear="Loquac. Earring",
- body="Anhur Robe", hands="Otomi Gloves",lring="Weather. Ring",rring="Prolix Ring",
- back="Lifestream Cape", waist="Witful Belt", legs="Geo. Pants +1",feet="Regal Pumps +1"}
- sets.precast.FC.Elemental = {main="Marin Staff +1",sub="Vivid Strap",ammo="Impatiens",
- head="Nahtirah Hat", neck="Orunmila's Torque",lear="Enchntr. Earring +1",rear="Loquac. Earring",
- body="Anhur Robe", hands="Bagua Mitaines +1",lring="Weather. Ring",rring="Prolix Ring",
- back="Lifestream Cape", waist="Witful Belt", legs="Geo. Pants +1",feet="Regal Pumps +1"}
- sets.precast.FC.Enhancing = {main="Marin Staff +1",sub="Vivid Strap",ammo="Impatiens",
- head="Umuthi Hat", neck="Orunmila's Torque",lear="Enchntr. Earring +1",rear="Loquac. Earring",
- body="Anhur Robe", hands="Otomi Gloves",lring="Weather. Ring",rring="Prolix Ring",
- back="Lifestream Cape", waist="Siegel Sash", legs="Geo. Pants +1",feet="Regal Pumps +1"}
- sets.precast.Cure = {main="Marin Staff +1",sub="Vivid Strap",ammo="Impatiens",
- head="Nahtirah Hat", neck="Orunmila's Torque",lear="Enchntr. Earring +1",rear="Loquac. Earring",
- body="Heka's Kalasiris", hands="Otomi Gloves",lring="Weather. Ring",rring="Prolix Ring",
- back="Lifestream Cape", waist="Siegel Sash", legs="Geo. Pants +1",feet="Regal Pumps +1"}
- sets.precast.IFC = {main="Marin Staff +1",sub="Vivid Strap",ammo="Impatiens",
- head=none,neck="Orunmila's Torque",ear1="Enchntr. Earring +1",ear2="Loquacious 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="Regal Pumps +1"}
- -- Midcast Sets
- sets.midcast = {}
- sets.midcast.Elemental = {main="Solstice",sub="Culminus",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="Toro Cape",waist="Yamabuki-no-Obi",legs="Hagondes Pants +1",feet="Umbani Boots"}
- sets.midcast.Indi = {main="Idris", sub="Genbu's Shield", range="Dunna",
- head="Azimuth Hood +1", neck="Incanter's Torque", rear="Gwati Earring", lear="Gifted Earring",
- body="Bagua Tunic +1", hands="Geo. Mitaines +1",lring="Defending Ring",rring="Dark Ring",
- back="Lifestream Cape",waist="Austerity Belt +1",legs="Bagua Pants +1",feet="Azimuth Gaiters +1"}
- sets.midcast.Geo = {main="Idris", sub="Genbu's Shield", range="Dunna",
- head="Azimuth Hood +1", neck="Incanter's Torque", rear="Gwati Earring", lear="Gifted Earring",
- body="Bagua Tunic +1", hands="Geo. Mitaines +1",lring="Defending Ring",rring="Dark Ring",
- back="Lifestream Cape",waist="Austerity Belt +1",legs="Azimuth Tights +1",feet="Azimuth Gaiters +1"}
- sets.midcast.Cure = {main="Tamaxchi",sub="Genbu's Shield",ammo="Incantor Stone",
- head="Nahtirah Hat",neck="Incanter's Torque",ear1="Enchntr. Earring +1",ear2="Loquacious Earring",
- body="Vrikodara Jupon",hands="Telchine Gloves",ring1="Haoma's Ring",ring2="Sirona's Ring",
- back="Twilight Cape",waist="Bishop's Sash",legs="Nares Trews",feet="Regal Pumps +1"}
- sets.midcast.Impact = {main="Marin Staff +1",sub="Zuuxowu Grip",ammo="Ghastly Tathlum +1",
- head=none,neck="Eddy Necklace",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.Enfeeble = {main="Idris", sub="Genbu's Shield", range="Aureole",
- head="Befouled Crown",neck="Incanter's Torque",ear1="Enchntr. Earring +1",ear2="Gwati Earring",
- body="Shango Robe",hands="Azimuth Gloves +1",ring1="Perception Ring",ring2="Sangoma Ring",
- back="Refraction Cape",waist="Ovate Rope",legs="Psycloth Lappas",feet="Uk'uxkaj Boots"}
- sets.midcast.Dark = {main="Twebuliij", sub="Mephitis Grip", ammo="Kalboron Stone",
- head="Bagua Galero +1", neck="Incanter's Torque", rear="Lifestorm Earring", lear="Psystorm Earring",
- body="Shango Robe", hands="Otomi Gloves", rring="Sangoma Ring", lring="Weather. Ring",
- back="Refraction Cape", waist="Fucho-no-Obi", legs="Theurgist's Slacks", feet="Hagondes Sabots"}
- sets.midcast.impact = {main="Idris", sub="Genbu's Shield", 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.Recast = {head="Nahtirah Hat", neck="Orunmila's Torque",rear="Loquac. Earring",
- body="Shango Robe", hands="Otomi Gloves", lring="Weather. Ring",
- back="Lifestream Cape", waist="Witful Belt", legs="Geo. Pants +1", feet="Chelona Boots"}
- sets.midcast.Stun = {main="Marin Staff +1",sub="Arbuda Grip",range="Aureole",
- head="Nahtirah Hat",neck="Orunmila's Torque",ear1="Enchntr. Earring +1",ear2="Loq. Earring",
- body="Shango Robe",hands="Azimuth Gloves +1",ring1="Weather. Ring",ring2="Prolix Ring",
- back="Swith Cape +1",waist="Ninurta's Sash",legs="Geo. Pants +1",feet="Regal Pumps +1"}
- sets.midcast.Stoneskin = {
- head="Umuthi Hat",neck="Stone Gorget",
- waist="Siegel Sash",legs="Haven Hose"}
- sets.midcast.Enhancing = {main="Kirin's Pole",sub="Fulcio Grip",
- head="Umuthi Hat",neck="Incanter's Torque",ear2="Andoaa Earring",
- body="Telchine Chasuble",hands="Telchine Gloves",
- back="Merciful Cape",waist="Olympus Sash", feet="Regal Pumps +1"}
- --JA Sets
- sets.precast.JA = {}
- sets.precast.JA['Full Circle'] = {body="Geo. Sandals +1"}
- sets.precast.JA['Life Cycle'] = {body="Geo. Tunic +1"}
- sets.precast.JA['Radial Arcana'] = {feet="Bagua Sandals +1"}
- sets.precast.JA['Mending Halation'] = {legs="Bagua Pants +1"}
- sets.precast.JA['Bolster'] = {body="Bagua Tunic +1"}
- --Engaged Sets
- sets.engaged = {}
- sets.engaged.standard = {head="Nahtirah Hat", neck="Asperity Necklace", rear="Steelflash Earring", lear="Bladeborn Earring",
- body="Geo. Tunic +1", hands="Geo. Mitaines +1", rring="Mars's Ring", lring="Patricius Ring",
- back="Rancorous Mantle", waist="Cetl Belt", legs="Theurgist's Slacks", feet="Umbani Boots"}
- --WS Sets
- sets.WS = {}
- sets.WS.other = {head="Nahtirah Hat", neck="Asperity Necklace", rear="Steelflash Earring", lear="Bladeborn Earring",
- body="Geo. Tunic +1", hands="Geo. Mitaines +1", rring="Mars's Ring", lring="Patricius Ring",
- back="Rancorous Mantle", waist="Cetl Belt", legs="Theurgist's Slacks", feet="Umbani Boots"}
- sets.WS["Flash Nova"] = {head="Nahtirah Hat", neck="Eddy Necklace", rear="Friomisi Earring", lear="Crematio Earring",
- body="Shango Robe", hands="Yaoyotl Gloves", rring="Shiva Ring +1", lring="Strendu Ring",
- back="Toro Cape", waist="Sekhmet Corset", legs="Hagondes Pants", feet="Umbani Boots"}
- --Extra 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.skill == 'Geomancy' then
- equip(sets.precast.FC.geomancy)
- elseif spell.skill == 'Healing Magic' 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 == 'Elemental Magic' and spell.cast_time < 3 then
- equip(sets.midcast.Elemental)
- elseif spell.english == "Impact" then
- equip(sets.precast.IFC)
- elseif spell.skill == 'Elemental Magic' and spell.cast_time > 3 then
- equip(sets.precast.FC.Elemental)
- elseif spell.skill == 'Enhancing Magic' 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
- elseif spell.type == 'WeaponSkill' then
- if sets.WS[spell.english]then
- equip(sets.WS[spell.english])
- elseif spell.english == "Cataclysm" then
- equip(sets.WS["Flash Nova"])
- else
- equip(sets.WS.other)
- 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 == 'Healing Magic' 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 == 'Elemental Magic' then
- equip(sets.midcast.Elemental)
- if spell.element == world.weather_element or spell.element == world.day_element then
- equip(sets.Obi[spell.element])
- elseif spell.english == 'Impact' then
- equip(sets.midcast.impact)
- end
- elseif spell.skill == 'Enfeebling Magic' then
- equip(sets.midcast.Enfeeble)
- elseif spell.skill == 'Enhancing Magic' then
- if spell.english == "Phalanx" then
- equip(sets.midcast.Enhancing)
- elseif string.find(spell.english,'Stoneskin') then
- send_command('@wait 1.5;input //cancel Stoneskin*')
- equip(sets.midcast.Stoneskin)
- elseif string.find(spell.english,'Regen') then
- equip(sets.midcast.recast, {main="Bolelabunga"})
- else
- equip(sets.midcast.recast)
- end
- elseif spell.skill == 'Dark Magic' then
- if spell.english == "Stun" then
- equip(sets.midcast.Stun)
- else
- equip(sets.midcast.Dark)
- 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 1.0;input //cancel Copy Image*')
- equip(sets.midcast.recast)
- end
- end
- end
- end
- function aftercast(spell)
- if string.find(spell.english,'Geo-') then
- if player.status == "Engaged" then
- equip(sets.engaged.standard, {main="Idris", sub="Genbu's Shield", lear="Rimeice Earring",rear="Handler's Earring +1",hands="Geo. Mitaines +1",back="Lifestream Cape",feet="Bagua Sandals +1"})
- else
- if petset == 1 then
- equip(sets.idle.pet)
- elseif petset == 2 then
- equip(sets.idle.petDT)
- end
- end
- else
- if player.status == "Engaged" then
- if pet.isvalid then
- equip(sets.engaged.standard, {main="Idris", sub="Genbu's Shield", lear="Rimeice Earring",rear="Handler's Earring +1",hands="Geo. Mitaines +1",back="Lifestream Cape",feet="Bagua Sandals +1"})
- else
- equip(sets.engaged.standard)
- end
- elseif player.status == "Idle" then
- 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
- 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)
- elseif new == "Idle" then
- 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
- elseif new == "Engaged" then
- if pet.isvalid then
- equip(sets.engaged.standard, {main="Idris", sub="Genbu's Shield", lear="Rimeice Earring",rear="Handler's Earring +1",hands="Geo. Mitaines +1",back="Lifestream Cape",feet="Bagua Sandals +1"})
- else
- equip(sets.engaged.standard)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment