Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function get_sets()
- sets.aftercast = {}
- sets.aftercast.Idle = {}
- sets.aftercast.Idle.index = {'normal','walk'}
- Idle_ind = 1
- sets.aftercast.Idle.normal =
- {main="Owleyes",
- sub="Genbu's Shield",
- ammo="Clarus Stone",
- head="Wivre hairpin",
- neck="Twilight Torque",
- ear1="Roundel Earring",
- ear2="Moonshade Earring",
- body="Artsieq Jubbah",
- hands="Serpentes Cuffs",
- ring1="Dark Ring",
- ring2="Defending Ring",
- back="Cheviot cape",
- waist="Pythia sash",
- legs="Nares Trews",
- feet="Serpentes Sabots"}
- sets.aftercast.Idle.walk =
- {main="Owleyes",
- sub="Genbu's Shield",
- ammo="Clarus Stone",
- head="Wivre hairpin",
- neck="Twilight Torque",
- ear1="Roundel Earring",
- ear2="Moonshade Earring",
- body="Artsieq Jubbah",
- hands="Serpentes Cuffs",
- ring1="Dark Ring",
- ring2="Defending Ring",
- back="Cheviot cape",
- waist="Pythia sash",
- legs="Nares Trews",
- feet="Iaso boots"}
- sets.precast = {}
- sets.precast.FastCast =
- {ammo="Clarus Stone",
- head="Nahtirah hat",
- neck="Orunmila's Torque",
- ear2="Loquacious Earring",
- ear1="Novia earring",
- body="Anhur Robe",
- hands="Blessed mitts +1",
- ring1="Prolix ring",
- ring2="Defending ring",
- back="Refraction Cape",
- waist="Witful belt",
- legs="Bokwus Slops",
- feet="Bokwus boots"}
- sets.Resting = sets.aftercast.Idle.normal
- ------- This part describes sets that are toggled via //gs c toggle Nuke set , the default one is Attack, only for
- ------- tier 1 and tier 2 nukee
- sets.midcast = {}
- sets.midcast.ElementalMagic = {}
- sets.midcast.ElementalMagic.index = {'Attack','Conserve'}
- ElementalMagic_ind = 1
- sets.midcast.ElementalMagic.Attack =
- {ammo="Dosis Tathlum",
- head="Buremte hat",
- neck="Eddy Necklace",
- ear1="Hecate's Earring",
- ear2="Friomisi Earring",
- body="Artsieq Jubbah",
- hands="Otomi gloves",
- ring1="Strendu Ring",
- ring2="Diamond Ring",
- back="Refraction Cape",
- waist="Maniacus Sash",
- legs="Theurgist's slacks",
- feet="Umbani boots"}
- sets.midcast.ElementalMagic.Conserve =
- {ammo="Dosis Tathlum",
- head="Buremte hat",
- neck="Eddy Necklace",
- ear1="Hecate's Earring",
- ear2="Friomisi Earring",
- body="Seidr Cotehardie",
- hands="Otomi gloves",
- ring1="Strendu Ring",
- ring2="Diamond Ring",
- back="Refraction Cape",
- waist="Maniacus Sash",
- legs="Theurgist's slacks",
- feet="Umbani boots"}
- sets.midcast.DarkMagic = set_combine(sets.precast.FastCast,
- {ear1="Lifestorm earring",
- ear2="Psystorm earring",
- ring1="Sangoma ring",
- ring2="Omega ring",
- back="Refraction cape",})
- sets.midcast.ENF = {}
- sets.midcast.ENF.INT =
- {ammo="Clarus Stone",
- head="Nahtirah Hat",
- neck="Eddy Necklace",
- ear1="Lifestorm Earring",
- ear2="Psystorm Earring",
- body="Artsieq Jubbah",
- hands="Lurid mitts",
- ring1="Sangoma Ring",
- ring2="Omega Ring",
- back="Refraction Cape",
- waist="Demonry sash",
- legs="Artsieq hose",
- feet="Artsieq boots"}
- sets.midcast.ENF.MND =
- {ammo="Clarus Stone",
- head="Nahtirah Hat",
- neck="Eddy Necklace",
- ear1="Lifestorm Earring",
- ear2="Psystorm Earring",
- body="Artsieq Jubbah",
- hands="Lurid mitts",
- ring1="Sangoma Ring",
- ring2="Omega Ring",
- back="Refraction Cape",
- waist="Demonry sash",
- legs="Artsieq hose",
- feet="Artsieq boots"}
- sets.midcast.Impact =
- {ammo="Clarus Stone",
- neck="Eddy Necklace",
- ear1="Lifestorm earring",
- ear2="Psystorm earring",
- hands="Lurid mitts",
- ring1="Sangoma ring",
- ring2="Omega Ring",
- back="Refraction Cape",
- waist="Demonry Sash",
- legs="Artsieq hose",
- feet="Artsieq boots"}
- sets.midcast.EnhancingMagic =
- {main="Beneficus",
- sub="Genbu's Shield",
- ammo="Clarus Stone",
- head="Zenith crown +1",
- neck="Colossus's Torque",
- ear1="Novia Earring",
- ear2="Loquacious Earring",
- body="Anhur Robe",
- hands="Augur's gloves",
- ring1="Prolix ring",
- ring2="Defending ring",
- back="Merciful Cape",
- waist="Olympus sash",
- legs="Clr. Pantaln. +2",
- feet="Orison duckbills +2"}
- sets.midcast.Cure =
- {main="Tamaxchi",
- sub="Genbu's Shield",
- head="Gende. caubeen",
- body="Orison bliaud +2",
- hands="Bokwus gloves",
- legs="Orison pantaloons +2",
- waist="Pythia sash"}
- sets.midcast.CureStorm =
- {main="Chatoyant staff",
- sub="Arbuda grip",
- head="Gendewitha caubeen",
- neck="Phalaina locket",
- ear1="Orison earring",
- ear2="Roundel earring",
- body="Orison bliaud +2",
- hands="Bokwus gloves",
- back="Twilight cape",
- waist="Korin obi",
- legs="Orison pantaloons +2",
- feet="Iaso Boots"}
- sets.midcast.CureFast =
- {main="Tamaxchi",
- sub="Genbu's Shield",
- head="Gende. caubeen",
- body="Orison bliaud +2",
- hands="Bokwus gloves",
- legs="Orison pantaloons +2",
- waist="Pythia sash"}
- sets.midcast.Helix =
- {ammo="Dosis Tathlum",
- head="Buremte hat",
- neck="Eddy Necklace",
- ear1="Hecate's Earring",
- ear2="Friomisi Earring",
- body="Artsieq Jubbah",
- hands="Otomi gloves",
- ring1="Strendu Ring",
- ring2="Diamond Ring",
- back="Refraction Cape",
- waist="Maniacus Sash",
- legs="Theurgist's slacks",
- feet="Umbani boots"}
- sets.Obi = {}
- sets.Obi.Fire = {waist='Karin Obi',back='Twilight Cape',lring='Zodiac Ring'}
- sets.Obi.Earth = {waist='Dorin Obi',back='Twilight Cape',lring='Zodiac Ring'}
- sets.Obi.Water = {waist='Suirin Obi',back='Twilight Cape',lring='Zodiac Ring'}
- sets.Obi.Wind = {waist='Furin Obi',back='Twilight Cape',lring='Zodiac Ring'}
- sets.Obi.Ice = {waist='Hyorin Obi',back='Twilight Cape',lring='Zodiac Ring'}
- sets.Obi.Thunder = {waist='Rairin Obi',back='Twilight Cape',lring='Zodiac Ring'}
- sets.Obi.Light = {waist='Korin Obi',back='Twilight Cape',lring='Zodiac Ring'}
- sets.Obi.Dark = {waist='Anrin Obi',back='Twilight Cape',lring='Zodiac Ring'}
- sets.staves = {}
- sets.staves.damage = {}
- sets.staves.damage.Thunder = {main="Lehbrailg +2",sub="Zuuxowu grip"}
- sets.staves.damage.Fire = {main="Lehbrailg +2",sub="Zuuxowu grip"}
- sets.staves.damage.Ice = {main="Lehbrailg +2",sub="Zuuxowu grip"}
- sets.staves.damage.Wind = {main="Lehbrailg +2",sub="Zuuxowu grip"}
- sets.staves.damage.Water = {main="Lehbrailg +2",sub="Zuuxowu grip"}
- sets.staves.damage.Earth = {main="Lehbrailg +2",sub="Zuuxowu grip"}
- sets.staves.damage.Dark = {main="Lehbrailg +2",sub="Zuuxowu grip"}
- sets.staves.damage.Light = {main="Lehbrailg +2",sub="Zuuxowu grip"}
- sets.staves.accuracy = {}
- sets.staves.accuracy.Thunder = {main="Lehbrailg +2",sub="Mephitis grip"}
- sets.staves.accuracy.Fire = {main="Lehbrailg +2",sub="Mephitis grip"}
- sets.staves.accuracy.Ice = {main="Lehbrailg +2",sub="Mephitis grip"}
- sets.staves.accuracy.Wind = {main="Lehbrailg +2",sub="Mephitis grip"}
- sets.staves.accuracy.Water = {main="Lehbrailg +2",sub="Mephitis grip"}
- sets.staves.accuracy.Earth = {main="Lehbrailg +2",sub="Mephitis grip"}
- sets.staves.accuracy.Dark = {main="Lehbrailg +2",sub="Mephitis grip"}
- sets.staves.accuracy.Light = {main="Lehbrailg +2",sub="Mephitis grip"}
- sets.staves.recasting = {}
- sets.staves.recasting.Thunder = {main="Lehbrailg +2",sub="Arbuda Grip"}
- sets.staves.recasting.Fire = {main="Lehbrailg +2",sub="Arbuda Grip"}
- sets.staves.recasting.Ice = {main="Lehbrailg +2",sub="Arbuda Grip"}
- sets.staves.recasting.Wind = {main="Lehbrailg +2",sub="Arbuda Grip"}
- sets.staves.recasting.Water = {main="Lehbrailg +2",sub="Arbuda Grip"}
- sets.staves.recasting.Earth = {main="Lehbrailg +2",sub="Arbuda Grip"}
- sets.staves.recasting.Dark = {main="Lehbrailg +2",sub="Arbuda Grip"}
- sets.staves.recasting.Light = {main="Arka II",sub="Arbuda Grip"}
- end
- function precast(spell)
- if spell.action_type == 'Magic'
- then equip (set_combine(sets.precast.FastCast,sets.staves.recasting[spell.element]))
- end
- if spell.english == 'Impact'
- then equip(sets.precast.FastCast,{body="Twilight Cloak",main="Lehbrailg +2",sub="Mephitis grip"})
- end
- if spell.english == 'Stun'
- then equip (set_combine(sets.midcast.DarkMagic,sets.staves.recasting[spell.element]))
- end
- end
- function midcast(spell)
- if spell.english == 'Cure' or spell.english == 'Cure II' or spell.english == 'Cure III' or spell.english == 'Cure IV' or spell.english == 'Cure V' or spell.english == 'Cure VI'
- or spell.english == 'Cura' or spell.english == 'Cura II' or spell.english == 'Cura III' or spell.english == 'Curaga'
- or spell.english == 'Curaga II' or spell.english == 'Curaga III' or spell.english == 'Curaga IV'
- or spell.english == 'Curaga V'
- then
- if spell.element == world.weather_element or spell_element == world.day_element or buffactive.Aurorastorm then
- equip(sets.midcast.CureStorm)
- elseif buffactive.accession
- then
- equip(sets.midcast.CureFast)
- else equip(sets.midcast.Cure)
- end
- end
- if spell.english == 'Impact' then
- local tempset = (set_combine(sets.midcast.Impact,sets.staves.accuracy[spell.element]))
- tempset['body'] = 'Twilight Cloak'
- tempset['head'] = empty
- equip(tempset)
- end
- if string.find(spell.english,'helix') then
- equip (set_combine(sets.midcast.Helix,sets.staves.damage[spell.element]))
- 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'
- or spell.english == 'Stonega' or spell.english == 'Stonega II' or spell.english == 'Thundaga' or spell.english == 'Thundaga II'
- or spell.english == 'Waterga' or spell.english == 'Waterga II' or spell.english == 'Firaga' or spell.english == 'Firaga II'
- or spell.english == 'Blizzaga' or spell.english == 'Blizzaga II' or spell.english == 'Aeroga' or spell.english == 'Aeroga II'
- or spell.english == 'Fira' or spell.english == 'Blizzara' or spell.english == 'Aerora' or spell.english == 'Stonera' or spell.english == 'Thundara' or spell.english == 'Watera'
- or string.find(spell.english,'Banish') or string.find(spell.english,'Holy')
- then
- equip (set_combine(sets.midcast.ElementalMagic[sets.midcast.ElementalMagic.index[ElementalMagic_ind]],sets.staves.damage[spell.element]))
- 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'
- or spell.english == 'Stonega III' or spell.english == 'Thundaga III'
- or spell.english == 'Waterga III' or spell.english == 'Firaga III'
- or spell.english == 'Blizzaga III' or spell.english == 'Aeroga III'
- or spell.english == 'Fira II' or spell.english == 'Blizzara II' or spell.english == 'Aerora II' or spell.english == 'Stonera II' or spell.english == 'Thundara II' or spell.english == 'Watera II'
- then
- equip (set_combine(sets.midcast.ElementalMagic.Attack,sets.staves.damage[spell.element]))
- if spell.element == world.weather_element or spell_element == world.day_element then
- equip(sets.Obi[spell.element])
- end
- end
- if spell.english == 'Blind' or spell.english == 'Blind II'
- or spell.english == 'Dispel' or spell.english == 'Break' or spell.english == 'Breakga'
- or spell.english == 'Sleep' or spell.english == 'Sleep II' or spell.english == 'Sleepga' or spell.english == 'Sleepga II'
- or spell.english == 'Bind' or spell.english == 'Burn' or spell.english == 'Frost'
- or spell.english == 'Choke' or spell.english == 'Rasp' or spell.english == 'Rasp'
- or spell.english == 'Shock' or spell.english == 'Drown' or spell.english == 'Poison'
- or spell.english == 'Poison II' or spell.english == 'Poisonga' or spell.english == 'Poisonga II'
- or spell.english == 'Gravity' or spell.english == 'Gravity II'
- then
- equip (set_combine(sets.midcast.ENF.INT,sets.staves.accuracy[spell.element]))
- end
- if spell.english == 'Slow' or spell.english == 'Slow II'
- or spell.english == 'Paralyze' or spell.english == 'Paralyze II'
- or spell.english == 'Dia' or spell.english == 'Dia II' or spell.english == 'Dia III' or spell.english == 'Diaga'
- or spell.english == 'Silence' or spell.english == 'Repose' or spell.english == 'Addle'
- then
- equip (set_combine(sets.midcast.ENF.MND,sets.staves.accuracy[spell.element]))
- end
- if spell.english == 'Phalanx' or spell.english == 'Phalanx II'
- or spell.english == 'Enthunder' or spell.english == 'Enthunder II'
- or spell.english == 'Enstone' or spell.english == 'Enstone II'
- or spell.english == 'Enaero' or spell.english == 'Enaero II'
- or spell.english == 'Enblizzard' or spell.english == 'Enblizzard II'
- or spell.english == 'Enfire' or spell.english == 'Enfire II'
- or spell.english == 'Enwater' or spell.english == 'Enwater II'
- or string.find(spell.english,'Bar') or string.find(spell.english,'spikes')
- or spell.english == 'Stoneskin' or spell.english == 'Aquaveil'
- or string.find(spell.english,'Boost') or spell.english == 'Auspice'
- then
- equip (sets.midcast.EnhancingMagic)
- end
- if spell.skill == 'DarkMagic' and not spell.english == 'Stun'
- then
- equip (set_combine(sets.midcast.DarkMagic,sets.staves.accuracy[spell.element]))
- if spell.element == world.weather_element or spell_element == world.day_element then
- equip(sets.Obi[spell.element])
- end
- end
- if spell.english == 'Stun'
- then
- equip (set_combine(sets.precast.FastCast,sets.staves.recasting[spell.element]))
- end
- if spell.english == 'Haste' or spell.english == 'Blink'
- or spell.english == 'Erase' or spell.english == 'Adloqium'
- or spell.english == 'Klimaform' or spell.english == 'Refresh'
- or spell.english == 'Refresh II' or spell.english == 'Arise'
- or string.find(spell.english,'Protect')
- or string.find(spell.english,'Protectra') or spell.english == 'Sacrifice' or spell.english == 'Flash'
- or string.find(spell.english,'Animus') or string.find(spell.english,'Raise')
- or string.find(spell.english,'Reraise') or spell.english == 'Esuna' or spell.english == 'Arise'
- then
- equip (set_combine(sets.precast.FastCast,sets.staves.recasting[spell.element]))
- --if buffactive.manifestation or buffactive.alacrity or buffactive.celerity or buffactive.accession
- --then
- --equip (set_combine(sets.precast.FastCast,sets.staves.recasting[spell.element],{head="Nahtirah hat",feet="Pedagogy Loafers"}))
- --end
- end
- if string.find(spell.english,'Shell')
- then
- equip (set_combine(sets.precast.FastCast,sets.staves.recasting[spell.element],{legs="Clr. Pantaln. +2"}))
- end
- if spell.english == 'Paralyna' or spell.english == 'Stona' or spell.english == 'Blindna'
- or spell.english == 'Poisona' or spell.engish == 'Silena'
- or spell.english == 'Viruna' or spell.english == 'Cursna'
- then
- equip (set_combine(sets.precast.FastCast,sets.staves.recasting[spell.element],{head="Orison cap +2",legs="Orison pantaloons +2"}))
- end
- if string.find(spell.english,'Regen')
- then
- equip (set_combine(sets.precast.FastCast,sets.staves.recasting[spell.element],{hands="Orison mitts +2"}))
- end
- end
- function aftercast(spell)
- equip(sets.aftercast.Idle[sets.aftercast.Idle.index[Idle_ind]])
- 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,tab)
- if new == 'Resting' then
- equip(sets['Resting'])
- else
- equip(sets.aftercast.Idle[sets.aftercast.Idle.index[Idle_ind]])
- end
- end
- function self_command(command)
- if command == 'toggle Nuke set' then
- ElementalMagic_ind = ElementalMagic_ind +1
- if ElementalMagic_ind > #sets.midcast.ElementalMagic.index then ElementalMagic_ind = 1 end
- send_command('@input /echo ----- Nuke changed to '..sets.midcast.ElementalMagic.index[ElementalMagic_ind]..' -----')
- end
- if command == 'toggle Idle set' then
- Idle_ind = Idle_ind +1
- if Idle_ind > #sets.aftercast.Idle.index then Idle_ind = 1 end
- send_command('@input /echo ----- Idle changed to '..sets.aftercast.Idle.index[Idle_ind]..' -----')
- equip(sets.aftercast.Idle[sets.aftercast.Idle.index[Idle_ind]])
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment