Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- --------------------------------------------------------------------------------------- S c h o l a r -- K e v t a r u ---------------------------------------------------------------------------------------------------------
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- function get_sets()
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- --------------------------------------
- -- KEYBINDS
- --------------------------------------
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- send_command('bind f9 gs c toggle Idle set')
- send_command('bind f10 gs c toggle Nuke set')
- function file_unload()
- send_command('unbind ^f9')
- send_command('unbind ^f10')
- send_command('unbind !f9')
- send_command('unbind !f10')
- send_command('unbind f9')
- send_command('unbind f10')
- end
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- --------------------------------------
- -- IDLE SETS
- --------------------------------------
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- sets.Idle = {}
- sets.Idle.index = {'Refresh', 'PDT', 'MDT'}
- Idle_ind = 1
- sets.Idle.Refresh = {
- main="Terra's Staff",
- sub="Vivid Strap +1",
- range="",
- ammo="Phantom Tathlum",
- head="Scholar's Mortarboard",
- neck="Mrc.Mjr. Charm",
- ear1="Colossus's Earring",
- ear2="Loquacious Earring",
- body="Argute Gown +1",
- hands="Merman's Bangles",
- ring1="Defending Ring",
- ring2="Balrahn's Ring",
- back="Shadow Mantle",
- waist="Lieutenant's Sash",
- legs="Goliard Trews",
- feet="Herald's Gaiters"
- }
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- sets.Idle.PDT = {
- main="Terra's Staff",
- sub="Staff Strap",
- range="",
- ammo="Hedgehog Bomb",
- head="Scholar's Mortarboard",
- neck="Mrc.Mjr. Charm",
- ear1="Colossus's Earring",
- ear2="Loquacious Earring",
- body="Argute Gown +1",
- hands="Merman's Bangles",
- ring1="Defending Ring",
- ring2="Jelly Ring",
- back="Shadow Mantle",
- waist="Lieutenant's Sash",
- legs="Goliard Trews",
- feet="Herald's Gaiters"
- }
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- sets.Idle.MDT = {
- main="Kebbie",
- sub="Vivid Strap +1",
- range="",
- ammo="Phantom Tathlum",
- head="Scholar's Mortarboard",
- neck="Jeweled Collar +1",
- ear1="Merman's Earring",
- ear2="Merman's Earring",
- body="Argute Gown +1",
- hands="Merman's Bangles",
- ring1="Defending Ring",
- ring2="Shadow Ring",
- back="Hexerei Cape",
- waist="Lieutenant's Sash",
- legs="Goliard Trews",
- feet="Herald's Gaiters"
- }
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- sets.Idle.Healing = {
- main="Chatoyant Staff",
- sub="Staff Strap",
- range="",
- ammo="Hedgehog Bomb",
- head="Scholar's Mortarboard",
- neck="Mrc.Mjr. Charm",
- ear1="Relaxing Earring",
- ear2="Antivenom Earring",
- body="Mahatma Houppelande",
- hands="Genie Gages",
- ring1="Celestial Ring",
- ring2="Balrahn's Ring",
- back="Invigorating Cape",
- waist="Qiqirn Sash +1",
- legs="Baron's Slops",
- feet="Goliard Clogs"
- }
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- --------------------------------------
- -- PRECAST SETS
- --------------------------------------
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- sets.precast = {}
- sets.precast.FC = {
- main="Terra's Staff",
- sub="Vivid Strap +1",
- range="",
- ammo="Phantom Tathlum",
- head="Walahra Turban",
- neck="Mrc.Mjr. Charm",
- ear1="Beta Earring",
- ear2="Loquacious Earring",
- body="Goliard Saio",
- hands="Merman's Bangles",
- ring1="Imperial Ring",
- ring2="Pi Ring",
- back="Veela Cape",
- waist="Ninurta's Sash",
- legs="Neit's Slops",
- feet="Rostrum Pumps"
- }
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- --------------------------------------
- -- MIDCAST SETS
- --------------------------------------
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- sets.midcast = {}
- sets.midcast.Haste = {
- main="Terra's Staff",
- sub="Vivid Strap +1",
- range="",
- ammo="Phantom Tathlum",
- head="Walahra Turban",
- neck="Mrc.Mjr. Charm",
- ear1="Beta Earring",
- ear2="Loquacious Earring",
- body="Goliard Saio",
- hands="Merman's Bangles",
- ring1="Imperial Ring",
- ring2="Pi Ring",
- back="Veela Cape",
- waist="Ninurta's Sash",
- legs="Neit's Slops",
- feet="Rostrum Pumps",
- }
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- --------------------------------------
- -- CURING SETS
- --------------------------------------
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- sets.midcast.Cure = {
- ----midcast check for lightarts/equip Scholar's Pants/else Mahatma
- main="Chatoyant Staff",
- sub="Vivid Strap +1",
- range="",
- ammo="Hedgehog Bomb",
- head="Walahra Turban",
- neck="Fylgja torque +1",
- ear1="Celestial Earring",
- ear2="Loquacious Earring",
- body="Goliard Saio",
- hands="Bricta's Cuffs",
- ring1="Karka Ring",
- ring2="Pi Ring",
- back="Dew Silk Cape +1",
- waist="Pythia Sash +1",
- legs="Mahatma Slops",
- feet="Argute Loafers"
- }
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- sets.midcast.CureStorm = {
- ----midcast check for lightarts/equip Scholar's Pants/else Mahatma
- main="Chatoyant Staff",
- sub="Vivid Strap +1",
- range="",
- ammo="Hedgehog Bomb",
- head="Walahra Turban",
- neck="Fylgja torque +1",
- ear1="Celestial Earring",
- ear2="Loquacious Earring",
- body="Goliard Saio",
- hands="Bricta's Cuffs",
- ring1="Karka Ring",
- ring2="Pi Ring",
- back="Dew Silk Cape +1",
- waist="Hachirin-no-Obi",
- legs="Mahatma Slops",
- feet="Argute Loafers"
- }
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- --------------------------------------
- -- ENHANCING SETS
- --------------------------------------
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- sets.midcast.Enhancing = {
- main="Terra's Staff",
- sub="Vivid Strap +1",
- range="",
- ammo="Hedgehog Bomb",
- head="Walahra Turban",
- neck="Enhancing torque",
- ear1="Augmenting Earring",
- ear2="Loquacious Earring",
- body="Goliard Saio",
- hands="Merman's Bangles",
- ring1="Defending Ring",
- ring2="Pi Ring",
- back="Merciful Cape",
- waist="Ninurta's Sash",
- legs="Scholar's Pants",
- feet="Rostrum Pumps"
- }
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- sets.midcast.Stoneskin = {
- main="Alkalurops",
- sub="Vivid Strap +1",
- range="",
- ammo="Hedgehog Bomb",
- head="Walahra Turban",
- neck="Stone Gorget",
- ear1="Celestial Earring",
- ear2="Loquacious Earring",
- body="Mahatma Houppelande",
- hands="Devotee's Mitts +1",
- ring1="Karka Ring",
- ring2="Pi Ring",
- back="Dew Silk Cape +1",
- waist="Pythia Sash +1",
- legs="Mahatma Slops",
- feet="Rostrum Pumps"
- }
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- --------------------------------------
- -- ENFEEBLING SETS
- --------------------------------------
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- sets.midcast.INTenfeeble = {
- main="Chatoyant Staff",
- sub="Vivid Strap +1",
- range="Aureole",
- ammo="",
- head="Elite Beret +1",
- neck="Enfeebling Torque",
- ear1="Incubus Earring +1",
- ear2="Enfeebling Earring",
- body="Scholar's Gown +1",
- hands="Argute Bracers +1",
- ring1="Omega Ring",
- ring2="Balrahn's Ring",
- back="Altruistic Cape",
- waist="Penitent's Rope",
- legs="Mahatma Slops",
- feet="Goliard Clogs"
- }
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- sets.midcast.MNDenfeeble = {}
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- sets.midcast.Silence = {
- main="Chatoyant Staff",
- sub="Wind Grip",
- range="Aureole",
- ammo="",
- head="Elite Beret +1",
- neck="Enfeebling Torque",
- ear1="Incubus Earring +1",
- ear2="Enfeebling Earring",
- body="Scholar's Gown +1",
- hands="Argute Bracers +1",
- ring1="Omega Ring",
- ring2="Balrahn's Ring",
- back="Altruistic Cape",
- waist="Pythia Sash +1",
- legs="Mahatma Slops",
- feet="Goliard Clogs"
- }
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- sets.midcast.StunUp = {
- main="Chatoyant Staff",
- sub="Vivid Strap +1",
- range="Aureole",
- ammo="",
- head="Argute Mortarboard +1",
- neck="Aesir Torque",
- ear1="Dark Earring",
- ear2="Abyssal Earring",
- body="Scholar's Gown +1",
- hands="Goliard Cuffs",
- ring1="Omega Ring",
- ring2="Balrahn's Ring",
- back="Merciful Cape",
- waist="Ninurta's Sash",
- legs="Argute Pants +1",
- feet="Argute Loafers"
- }
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- sets.midcast.StunDown = {
- main="Chatoyant Staff",
- sub="Vivid Strap +1",
- range="Aureole",
- ammo="",
- head="Argute Mortarboard +1",
- neck="Aesir Torque",
- ear1="Dark Earring",
- ear2="Abyssal Earring",
- body="Scholar's Gown +1",
- hands="Goliard Cuffs",
- ring1="Omega Ring",
- ring2="Balrahn's Ring",
- back="Merciful Cape",
- waist="Ninurta's Sash",
- legs="Argute Pants +1",
- feet="Scholar's Loafers"
- }
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- sets.midcast.Drain = {
- main="Chatoyant Staff",
- sub="Vivid Strap +1",
- range="Aureole",
- ammo="",
- head="Walahra Turban",
- neck="Aesir Torque",
- ear1="Dark Earring",
- ear2="Abyssal Earring",
- body="Scholar's Gown +1",
- hands="Vampiric Mitts",
- ring1="Omega Ring",
- ring2="Balrahn's Ring",
- back="Merciful Cape",
- waist="Ninurta's Sash",
- legs="Argute Pants +1",
- feet="Vampiric Boots"
- }
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- --------------------------------------
- -- NUKING SETS
- --------------------------------------
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- sets.Nuke = {}
- sets.Nuke.index = {'NoResist', 'Resist'}
- Nuke_ind = 1
- sets.Nuke.NoResist = {
- main="Chatoyant Staff",
- sub="Vivid Strap +1",
- range="",
- ammo="Phantom Tathlum",
- head="Ree's Headgear",
- neck="Lemegeton Medallion +1",
- ear1="Moldavite Earring",
- ear2="Novio Earring",
- body="Mahatma Houppelande",
- hands="Yigit Gages",
- ring1="Galdr Ring",
- ring2="Tamas Ring",
- back="Hecate's Cape",
- waist="Penitent's Rope",
- legs="Mahatma Slops",
- feet="Yigit Crackows"
- }
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- sets.Nuke.Resist = {
- ----Placeholder, need to create/test a resist set that matters/works
- main="Chatoyant Staff",
- sub="Vivid Strap +1",
- range="",
- ammo="Phantom Tathlum",
- head="Ree's Headgear",
- neck="Lemegeton Medallion +1",
- ear1="Moldavite Earring",
- ear2="Novio Earring",
- body="Mahatma Houppelande",
- hands="Yigit Gages",
- ring1="Galdr Ring",
- ring2="Tamas Ring",
- back="Hecate's Cape",
- waist="Penitent's Rope",
- legs="Mahatma Slops",
- feet="Yigit Crackows"
- }
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- sets.Nuke.Helix = {
- main="Chatoyant Staff",
- sub="Vivid Strap +1",
- range="",
- ammo="Phantom Tathlum",
- head="Ree's Headgear",
- neck="Uggalepih Pendant",
- ear1="Moldavite Earring",
- ear2="Novio Earring",
- body="Mahatma Houppelande",
- hands="Yigit Gages",
- ring1="Galdr Ring",
- ring2="Tamas Ring",
- back="Hecate's Cape",
- waist="Penitent's Rope",
- legs="Mahatma Slops",
- feet="Yigit Crackows"
- }
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- sets.Obi = {}
- sets.Obi = {waist='Hachirin-no-Obi'}
- end
- --------------------------------------
- -- RULES
- --------------------------------------
- function status_change(new,old)
- if new == 'Resting'
- then equip(sets.Idle.Healing)
- end
- end
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- --------------------------------------
- -- SPELL TABLES
- --------------------------------------
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- Barspells = S{'Barfira','Barfire','Barwatera','Barwater','Barstonra','Barstone','Baraera','Baraero','Barblizzara','Barblizzard','Barthundra','Barthunder','Phalanx','Embrava'}
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- Cure = S{'Cure','Cure II','Cure III','Cure IV','Curaga','Curaga II'}
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- Debuffs = S{'Bind','Blind','Dispel','Gravity','Sleep','Poison','Poison II','Sleep II','Sleepga'}
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- General = S{'Paralyna','Silena','Viruna','Erase','Stona','Blindna','Poisona','Cursna','Protect','Protect II','Protect III','Protect IV','Protectra','Protectra II','Shell','Shell II','Shell III','Shell IV','Shellra','Shellra II','Regen','Regen II','Regen III','Blink','Aquaveil','Warp','Utsusemi: Ichi','Utsusemi: Ni','Klimaform','Sandstorm','Firestorm','Rainstorm','Windstorm','Hailstorm','Thunderstorm','Voidstorm','Aurorastorm'}
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- Helix = S{'Geohelix','Hydrohelix','Anemohelix','Pyrohelix','Cryohelix','Ionohelix','Noctohelix','Luminohelix','Kaustra'}
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- Nukes = S{'Stone','Stone II','Stone III','Stone IV','Stonega','Stonega II','Stonega III','Quake','Quake II','Water','Water II','Water III','Water IV','Waterga','Waterga II','Waterga III','Flood','Flood II','Aero','Aero II','Aero III','Aero IV','Aeroga','Aeroga II','Aeroga III','Tornado','Tornado II','Fire','Fire II','Fire III','Fire IV','Firaga','Firaga II','Firaga III','Flare','Flare II','Blizzard','Blizzard II','Blizzard III','Blizzard IV','Blizzaga','Blizzaga II','Blizzaga III','Freeze','Freeze II','Thunder','Thunder II','Thunder III','Thunder IV','Thundaga','Thundaga II','Thundaga III','Burst','Burst II'}
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- function precast(spell)
- if spell.type == 'WhiteMagic'
- or spell.type == 'BlackMagic'
- or spell.type == 'Ninjutsu'
- then equip(sets.precast.FC)
- end
- end
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- function midcast(spell)
- if General:contains(spell.name)
- then equip(sets.midcast.Haste)
- end
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- if Cure:contains(spell.name)
- then if (spell.element == world.day_element or spell.element == world.weather_element)
- or buffactive == "Aurorastorm"
- then equip(sets.midcast.CureStorm)
- else equip(sets.midcast.Cure)
- end
- end
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- if Barspells:contains(spell.name)
- then equip(sets.midcast.Enhancing)
- end
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- if spell.english == 'Stoneskin'
- then equip(sets.midcast.Stoneskin)
- end
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- if Debuffs:contains(spell.name)
- then equip(sets.midcast.INTenfeeble)
- end
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- if spell.english == 'Paralyze'
- or spell.english == 'Slow'
- then equip(sets.midcast.MNDenfeeble)
- end
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- if spell.english == 'Silence'
- then equip(sets.midcast.Silence)
- end
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- if spell.english == 'Drain'
- or spell.english == 'Aspir'
- then equip(sets.midcast.Drain)
- end
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- if Helix:contains(spell.name)
- then equip(sets.Nuke.Helix)
- end
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- if spell.english == 'Stun'
- then if (buffactive.alacrity)
- then equip(sets.midcast.StunUp)
- else equip(sets.midcast.StunDown)
- end
- end
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- if Nukes:contains(spell.name)
- then if (spell.element == world.day_element or spell.element == world.weather_element)
- then equip(equip(sets.Nuke[sets.Nuke.index[Nuke_ind]]), sets.Obi)
- else equip(sets.Nuke[sets.Nuke.index[Nuke_ind]])
- end
- end
- end
- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
- function aftercast(spell)
- if player.status == 'Engaged'
- then equip(sets.TP)
- 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 -------')
- 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 ('..sets.Idle.index[Idle_ind]..') --------')
- equip(sets.Idle[sets.Idle.index[Idle_ind]])
- elseif command == 'toggle Nuke set'
- then Nuke_ind = Nuke_ind +1
- if Nuke_ind > #sets.Nuke.index then Nuke_ind = 1
- end
- send_command('@input /echo -------- Nuke ('..sets.Nuke.index[Nuke_ind]..') --------')
- equip(sets.Nuke[sets.Nuke.index[Nuke_ind]])
- elseif command == 'equip Idle set'
- then equip(sets.Idle[sets.Idle.index[Idle_ind]])
- elseif command == 'equip Nuke set'
- then equip(sets.Nuke[sets.Nuke.index[Nuke_ind]])
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement