Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- toau_zones = S{"Leujaoam Sanctum","Mamool Ja Training Grounds","Lebros Cavern","Periqia","Ilrusi Atoll",
- "Nyzul Isle","Bhaflau Remnants","Arrapago Remnants","Silver Sea Remnants","Zhayolm Remnants"}
- function get_sets()
- fixed_pos = ''
- fixed_ts = os.time()
- windower.raw_register_event('outgoing chunk',function(id,original,modified,injected,blocked)
- if not blocked then
- if id == 0x15 then
- if (gearswap.cued_packet or midaction()) and fixed_pos ~= '' and os.time()-fixed_ts < 10 then
- return original:sub(1,4)..fixed_pos..original:sub(17)
- else
- fixed_pos = original:sub(5,16)
- fixed_ts = os.time()
- end
- end
- end
- end)
- AccIndex = 1
- AccArray = {"LowACC","MidACC","HighACC"} -- 3 Levels Of Accuracy Sets For Magic. Default ACC Set Is LowACC. Add More ACC Sets If Needed Then Create Your New ACC Below --
- IdleIndex = 1
- IdleArray = {"Movement","Refresh"} -- Default Idle Set Is Movement --
- Armor = 'None'
- MagicBurstIndex = 0
- Obi = 'ON' -- Turn Default Obi ON or OFF Here --
- target_distance = 5 -- Set Default Distance Here --
- Non_Obi_Spells = S{
- 'Burn','Choke','Drown','Frost','Rasp','Shock','Impact','Anemohelix','Cryohelix',
- 'Geohelix','Hydrohelix','Ionohelix','Luminohelix','Noctohelix','Pyrohelix'}
- Cure_Spells = {"Cure","Cure II","Cure III","Cure IV"} -- Cure Degradation --
- Curaga_Spells = {"Curaga","Curaga II"} -- Curaga Degradation --
- sc_map = {SC1 = "Stun", SC2 = "ThunderV", SC3 = "BlizzardV"} -- 3 Additional Binds. Can Change Whatever JA/WS/Spells You Like Here. Remember Not To Use Spaces. --
- -- Idle Sets --
- sets.Idle = {}
- sets.Idle.Refresh = {
- main="Keraunos",
- ammo="Sihirik",
- head="Befouled Crown",
- neck="Twilight Torque",
- ear1="Earthcry Earring",
- ear2="Loquac. Earring",
- body="Wicce Coat",
- hands="Serpentes Cuffs",
- ring1="Dark Ring",
- ring2="Dark Ring",
- back="Umbra Cape",
- waist="Fucho-no-Obi",
- legs="Hagondes Pants",
- feet="Serpentes Sabots"}
- sets.Idle.Movement = set_combine(sets.Idle.Refresh,{
- ammo="Sihirik",
- head="Hagondes Hat",
- neck="Twilight Torque",
- body="Hagondes Coat",
- ring1="Dark Ring",
- ring2="Dark Ring",
- back="Umbra Cape",
- waist="Slipor Sash",
- legs="Hagondes Pants",
- feet="Herald's Gaiters"})
- sets.Resting = set_combine(sets.Idle.Movement,{})
- -- PDT Set --
- sets.PDT = {
- ammo="Sihirik",
- head="Hagondes Hat",
- neck="Twilight Torque",
- ear1="Black Earring",
- ear2="Darkness Earring",
- body="Hagondes Coat",
- hands="Hagondes Cuffs",
- ring1="Dark Ring",
- ring2="Dark Ring",
- back="Umbra Cape",
- waist="Slipor Sash",
- legs="Hagondes Pants",
- feet="Herald's Gaiters"}
- sets.Sublimation = {
- ammo="Clarus Stone",
- head="Befouled Crown",
- neck="Twilight Torque",
- ear1="Earthcry Earring",
- ear2="Loquac. Earring",
- body="Wicce Coat",
- hands="Serpentes Cuffs",
- ring1="Dark Ring",
- ring2="Dark Ring",
- back="Umbra Cape",
- waist="Fucho-no-Obi",
- legs="Hagondes Pants",
- feet="Serpentes Sabots"}
- sets.Precast = {}
- -- Fastcast Set --
- sets.Precast.FastCast = {
- ammo="Impatiens",
- head="Nahtirah Hat",
- neck="Orunmila's Torque",
- ear1="Earthcry Earring",
- ear2="Loquac. Earring",
- body="Dalmatica",
- hands="Lurid Mitts",
- ring1="Prolix Ring",
- ring2="Weather. Ring",
- back="Swith Cape +1",
- waist="Witful Belt",
- legs="Fea's Slops",
- feet="Battlecast Gaiters"}
- sets.Precast['Enhancing Magic'] = set_combine(sets.Precast.FastCast,{
- waist="Siegel Sash"})
- sets.Precast['Stoneskin'] = set_combine(sets.Precast.FastCast,{
- waist="Siegel Sash"}, {head="Umuthi Hat"}, {neck="Stone Gorget"}, {ear1="Earthcry Earring"}, {legs="Haven Hose"})
- sets.Precast['Elemental Magic'] = set_combine(sets.Precast.FastCast,{
- head="Wicce Petasos"}, {body="Dalmatica"}, {back="Swith Cape +1"})
- sets.Precast['Dark Magic'] = set_combine(sets.Precast.FastCast, {
- body="Dalmatica"}, {back="Swith Cape +1"})
- -- Precast Cure Set --
- sets.Precast.Cure = {
- ammo="Impatiens",
- head="Nahtirah Hat",
- neck="Orunmila's Torque",
- ear1="Loquac. Earring",
- ear2="Enchntr. Earring +1",
- body="Telchine Chausble",
- hands="Bokwus Gloves",
- ring1="Prolix Ring",
- ring2="Weather. Ring",
- back="Swith Cape +1",
- waist="Witful Belt";
- legs="Fea's Slops",
- feet="Battlecast Gaiters"}
- -- Midcast Base Set --
- sets.Midcast = {}
- -- Haste Set --
- sets.Midcast.Haste = {
- ammo="Clarus Stone",
- head="Nahtirah Hat",
- neck="Orunmila's Torque",
- ear2="Loquac. Earring",
- body="Telchine Chausble",
- hands="Augur's Gloves",
- ring1="Prolix Ring",
- ring2="Weather. Ring",
- back="Swith Cape +1",
- waist="Witful Belt",
- legs="Fea's Slops",
- feet="Battlecast Gaiters"}
- -- Cure Set --
- sets.Midcast.Cure = {
- ammo="Clarus Stone",
- head="Nahtirah Hat",
- neck="Fylgja Torque",
- body="Telchine Chausble",
- hands="Bokwus Gloves",
- ring1="Ephedra Ring",
- ring2="Sirona's Ring",
- waist="Witful Belt",
- legs="Telchine Braconi",
- ear1="Lifestorm Earring",
- ear2="Loquac. Earring",
- back="Tempered Cape",
- feet="Zenith Pumps"}
- -- Curaga Set --
- sets.Midcast.Curaga = {
- ammo="Clarus Stone",
- head="Nahtirah Hat",
- neck="Fylgja Torque",
- body="Telchine Chausble",
- hands="Bokwus Gloves",
- ring1="Ephedra Ring",
- ring2="Sirona's Ring",
- waist="Witful Belt",
- legs="Telchine Braconi",
- ear1="Lifestorm Earring",
- ear2="Loquac. Earring",
- back="Tempered Cape",
- feet="Zenith Pumps"}
- -- Enhancing Magic Set --
- sets.Midcast['Enhancing Magic'] = {
- head="Befouled Crown",
- neck="Enhancing Torque",
- ear1="Loquac. Earring",
- body="Telchine Chasuble",
- hands="Augur's Gloves",
- ring1="Prolix Ring",
- ring2="Weather. Ring",
- back="Swith Cape +1",
- waist="Olympus Sash",
- legs="Fea's Slops",
- feet="Battlecast Gaiters"}
- -- Stoneskin Set --
- sets.Midcast.Stoneskin = set_combine(sets.Midcast['Enhancing Magic'],{
- neck="Stone Gorget",
- head="Umuthi Hat",
- ear1="Earthcry Earring",
- waist="Seigel Sash",
- legs="Haven Hose"})
- -- Regen Set --
- sets.Midcast.Regen = {body="Telchine Chas.",legs="Telchine braconi"}
- -- Stun Sets --
- sets.Midcast.Stun = {
- ammo="Clarus Stone",
- head="Nahtirah Hat",
- neck="Dark Torque",
- ear1="Loquac. Earring",
- ear2="Dark Earring",
- body="Helios Jacket",
- hands="Archmage's Gloves",
- ring1="Archon Ring",
- ring2="Sangoma Ring",
- back={ name="Bane Cape", augments={'"Mag. Atk. Bns." +1', '"Fast Cast" +1', "Elem. magic skill +2", "Dark magic skill +7"}},
- waist="Witful Belt",
- legs="Spaekona Tonban",
- feet="Helios Boots"} --Helios augment fastcast 5, int macc best--
- sets.Midcast.Stun.MidACC = set_combine(sets.Midcast.Stun,{})
- sets.Midcast.Stun.HighACC = set_combine(sets.Midcast.Stun.MidACC,{})
- -- Dark Magic Sets --
- sets.Midcast['Dark Magic'] = set_combine(sets.Midcast.Stun,{
- ammo="Ombre Tathlum",
- head="Befouled Crown",
- neck="Dark Torque",
- ear1="Lifestorm Earring",
- ear2="Psystorm Earring",
- body="Helios Jacket",
- hands="Arch. Gloves",
- ring1="Shiva Ring",
- ring2="Archon Ring",
- back={ name="Bane Cape", augments={'"Mag. Atk. Bns." +1', '"Fast Cast" +1', "Elem. magic skill +2", "Dark magic skill +7"}},
- waist="Witful Belt",
- legs="Spae. tonban +1",
- feet="Wicce Sabots"})
- sets.Midcast['Dark Magic'].MidACC = set_combine(sets.Midcast['Dark Magic'],{
- ammo="Ombre Tathlum",
- head="Befouled Crown",
- neck="Dark Torque",
- ear1="Lifestorm Earring",
- ear2="Psystorm Earring",
- body="Helios Jacket",
- hands="Arch. Gloves",
- ring1="Shiva Ring",
- ring2="Archon Ring",
- back={ name="Bane Cape", augments={'"Mag. Atk. Bns." +1', '"Fast Cast" +1', "Elem. magic skill +2", "Dark magic skill +7"}},
- waist="Witful Belt",
- legs="Spae. tonban +1",
- feet="Wicce Sabots"})
- sets.Midcast['Dark Magic'].HighACC = set_combine(sets.Midcast['Dark Magic'].MidACC,{
- ammo="Ombre Tathlum",
- head="Befouled Crown",
- neck="Dark Torque",
- ear1="Lifestorm Earring",
- ear2="Psystorm Earring",
- body="Helios Jacket",
- hands="Arch. Gloves",
- ring1="Shiva Ring",
- ring2="Archon Ring",
- back={ name="Bane Cape", augments={'"Mag. Atk. Bns." +1', '"Fast Cast" +1', "Elem. magic skill +2", "Dark magic skill +7"}},
- waist="Witful Belt",
- legs="Spae. tonban +1",
- feet="Wicce Sabots"})
- sets.Midcast.Drain = {
- ammo="Ombre Tathlum",
- head="Befouled Crown",
- neck="Dark Torque",
- ear1="Lifestorm Earring",
- ear2="Psystorm Earring",
- body="Helios Jacket",
- hands="Arch. Gloves",
- ring1="Shiva Ring",
- ring2="Archon Ring",
- back={ name="Bane Cape", augments={'"Mag. Atk. Bns." +1', '"Fast Cast" +1', "Elem. magic skill +2", "Dark magic skill +7"}},
- waist="Witful Belt",
- legs="Spae. tonban +1",
- feet="Wicce Sabots"}
- sets.Midcast.Aspir = {
- ammo="Ombre Tathlum",
- head="Befouled Crown",
- neck="Dark Torque",
- ear1="Lifestorm Earring",
- ear2="Psystorm Earring",
- body="Helios Jacket",
- hands="Arch. Gloves",
- ring1="Shiva Ring",
- ring2="Archon Ring",
- back={ name="Bane Cape", augments={'"Mag. Atk. Bns." +1', '"Fast Cast" +1', "Elem. magic skill +2", "Dark magic skill +7"}},
- waist="Witful Belt",
- legs="Spae. tonban +1",
- feet="Wicce Sabots"}
- -- Elemental Sets --
- sets.Midcast['Elemental Magic'] = {
- main="Keraunos",
- ammo="ghastly Tathlum",
- head="Hagondes Hat",
- neck="Eddy Necklace",
- ear1="Friomisi Earring",
- ear2="Novio Earring",
- body="Helios Jacket",
- hands="Helios Gloves",
- ring1="Shiva Ring",
- ring2="Shiva Ring",
- back="Toro Cape",
- waist="Oneiros sash",
- legs="Hagondes Pants",
- feet="Helios Boots"}
- sets.Midcast['Elemental Magic'].MidACC = set_combine(sets.Midcast['Elemental Magic'],{
- main="Keraunos",
- ammo="ghastly Tathlum",
- head="Arch. Petasos +1",
- neck="Eddy Necklace",
- ear1="Friomisi Earring",
- ear2="Novio Earring",
- body="Helios Jacket",
- hands="Helios Gloves",
- ring1="Shiva Ring",
- ring2="Shiva Ring",
- back={ name="Bane Cape", augments={"Elem. magic skill +9", "Dark magic skill +4"}},
- waist="Oneiros Sash",
- legs="Hagondes Pants",
- feet="Helios Boots"})
- sets.Midcast['Elemental Magic'].HighACC = set_combine(sets.Midcast['Elemental Magic'].MidACC,{
- main="Keraunos",
- head="Arch. Petasos +1",
- neck="Eddy Necklace",
- ear1="Lifestorm Earring",
- ear2="Psystorm Earring",
- body="Helios Jacket",
- hands="Helios Gloves", --Helios 20/20, 10 INT, 8 crit rate--
- ring1="Shiva Ring",
- ring2="Shiva Ring",
- back={ name="Bane Cape", augments={"Elem. magic skill +9", "Dark magic skill +4"}},
- waist="Witch Sash",
- legs="Hagondes Pants",
- feet="Helios Boots"})
- -- Enfeebling Sets --
- sets.Midcast['Enfeebling Magic'] = {
- head="Befouled Crown",
- neck="Enfeebling Torque",
- ear1="Lifestorm Earring",
- ear2="Psystorm Earring",
- body="Spae. Coat +1",
- hands="Lurid Mitts",
- ring1="Sangoma Ring",
- ring2="Leviathan Ring",
- back="Refraction Cape",
- waist="Witch Sash",
- legs="Fea's Slops",
- feet="Helios Boots"}
- sets.Midcast['Enfeebling Magic'].MidACC = set_combine(sets.Midcast['Enfeebling Magic'],{
- ammo="Ombre Tathlum",
- head="Befouled Crown",
- neck="Enfeebling Torque",
- ear1="Lifestorm Earring",
- ear2="Psystorm Earring",
- body="Spae. Coat +1",
- hands="Lurid Mitts",
- ring1="Sangoma Ring",
- ring2="Leviathan Ring",
- back="Ogapepo Cape +1",
- waist="Witch Sash",
- legs="Hagondes Pants",
- feet="Helios Boots"})
- sets.Midcast['Enfeebling Magic'].HighACC = set_combine(sets.Midcast['Enfeebling Magic'].MidACC,{
- head="Befouled Crown",
- neck="Enfeebling Torque",
- ear1="Lifestorm Earring",
- ear2="Psystorm Earring",
- body="Spae. Coat +1",
- hands="Lurid Mitts",
- ring1="Leviathan Ring",
- ring2="Sangoma Ring",
- back="Refraction Cape",
- waist="Witch Sash",
- legs="Fea's Slops",
- feet="Helios Boots"})
- sets.Midcast['Ninjutsu'] = {
- main="Keraunos",
- sub="Elder's Grip +1",
- ammo="Ghastly Tathlum",
- head="Hagondes Hat",
- neck="Eddy Necklace",
- ear1="Friomisi Earring",
- ear2="Novio Earring",
- body="Helios Jacket",
- hands="Helios Gloves",
- ring1="Shiva Ring",
- ring2="Shiva Ring",
- back="Toro Cape",
- waist="Oneiros Sash",
- legs="Hagondes Pants",
- feet="Helios Boots"}
- -- Impact Set --
- sets.Midcast.Impact = {
- main="Keraunos",
- neck="Eddy Necklace",
- ear1="Lifestorm Earring",
- ear2="Psystorm Earring",
- body="Twilight Cloak",
- hands="Wicce Gloves",
- ring1="Shiva Ring",
- ring2="Shiva Ring",
- back="Toro Cape",
- waist="Witch Sash",
- legs="Hagondes Pants",
- feet="Helios Boots"}
- -- Meteor Set --
- sets.Midcast.Meteor = set_combine(sets.Midcast['Elemental Magic'],{
- ammo="Ghastly Tathlum",
- head="Hagondes Hat",
- neck="Eddy Necklace",
- ear1="Friomisi Earring",
- ear2="Novio Earring",
- body="Helios Jacket",
- hands="Helios Gloves",
- ring1="Shiva Ring",
- ring2="Shiva Ring",
- back={ name="Bane Cape", augments={"Elem. magic skill +9", "Dark magic skill +4"}},
- waist="Othila Sash",
- legs="Hagondes Pants",
- feet="Helios Boots"})
- sets.Midcast.Helix = set_combine(sets.Midcast['Elemental Magic'],{
- })
- sets.Midcast.Dia = {
- waist="Chaac Belt"}
- sets.Midcast.DiaII = {
- waist="Chaac Belt"}
- sets.Midcast.Diaga = {
- waist="Chaac Belt"}
- -- Elemental Obi/Twilight Cape --
- sets.Obi = {}
- sets.Obi.Lightning = {back="Twilight Cape",waist='Hachirin-no-Obi'}
- sets.Obi.Water = {back="Twilight Cape",waist='Hachirin-no-Obi'}
- sets.Obi.Fire = {back="Twilight Cape",waist='Hachirin-no-Obi'}
- sets.Obi.Ice = {back="Twilight Cape",waist='Hachirin-no-Obi'}
- sets.Obi.Wind = {back="Twilight Cape",waist='Hachirin-no-Obi'}
- sets.Obi.Earth = {back="Twilight Cape",waist='Hachirin-no-Obi'}
- sets.Obi.Light = {back="Twilight Cape",waist='Hachirin-no-Obi'}
- sets.Obi.Dark = {back="Twilight Cape",waist='Hachirin-no-Obi'}
- sets.dayObi = {}
- sets.dayObi.Lightning = {back="Twilight Cape",waist='Hachirin-no-Obi'}
- sets.dayObi.Water = {back="Twilight Cape",waist='Hachirin-no-Obi'}
- sets.dayObi.Fire = {back="Twilight Cape",waist='Hachirin-no-Obi'}
- sets.dayObi.Ice = {back="Twilight Cape",waist='Hachirin-no-Obi'}
- sets.dayObi.Wind = {back="Twilight Cape",waist='Hachirin-no-Obi'}
- sets.dayObi.Earth = {back="Twilight Cape",waist='Hachirin-no-Obi'}
- sets.dayObi.Light = {back="Twilight Cape",waist='Hachirin-no-Obi'}
- sets.dayObi.Dark = {back="Twilight Cape",waist='Hachirin-no-Obi'}
- -- JA Sets --
- sets.JA = {}
- sets.JA.Manafont = {body="Arch. Coat"}
- sets.JA['Enmity Douse'] = {}
- sets.JA['Mana Wall'] = {feet="Wicce Sabots"}
- -- Melee Set --
- sets.Melee = set_combine(sets.Midcast.Haste,{
- ammo="Sihirik",
- head="Telchine Cap",
- neck="Asperity Necklace",
- ear1="Bladeborn Earring",
- ear2="Steelflash Earring",
- body="Telchine Chasuble",
- hands="Telchine Gloves",
- ring1="Mars's Ring",
- ring2="Rajas Ring",
- back="Umbra Cape",
- waist="Cetl Belt",
- legs="Telchine Braconi",
- feet="Battlecast Gaiters"})
- -- WS Base Set --
- sets.WS = {}
- sets.WS.Shattersoul = {
- ammo="Hasty Pinion +1",
- head="Telchine Cap",
- neck="Fotia Gorget",
- ear1="Steelflash Earring",
- ear2="Bladeborn Earring",
- body="Archmage's Coat",
- hands="Spaekona's Gloves",
- ring1="Shiva Ring",
- ring2="Shiva Ring",
- back="Kayapa Cape",
- waist="Famine Sash",
- legs="Telchine Braconi",
- feet="Battlecast Gaiters"}
- sets.WS.Myrkr = {
- ammo="Sihirik",
- head="Nahtirah Hat",
- neck="Beak Necklace +1",
- ear1="Friomisi Earring",
- ear2="Loquac. Earring",
- body="Wicce Coat",
- hands="Bokwus Gloves",
- ring1="Sangoma Ring",
- ring2="Dark Ring",
- back={ name="Bane Cape", augments={'"Mag. Atk. Bns." +1', '"Fast Cast" +1', "Elem. magic skill +2", "Dark magic skill +7"}},
- waist="Oneiros Sash",
- legs="Spae. tonban +1",
- feet="Zenith Pumps"}
- sets.WS.Vidohunir = {
- main="Keraunos",
- ammo="Erlene's Notebook",
- head="Pixie Hairpin +1",
- neck="Fotia Gorget",
- ear1="Moonshade Earring",
- ear2="Friomisi Earring",
- body="Helios Jacket",
- hands="Wicce Gloves",
- ring1="Shiva Ring",
- ring2="Archon Ring",
- back="Toro Cape",
- waist="Thunder Belt",
- legs={ name="Hagondes Pants +1", augments={'"Mag.Atk.Bns." +27', "Phys. dmg. taken -3%"}},
- feet={ name="Helios Boots", augments={'INT +10'}}}
- sets.WS["Gate of Tartarus"] = {}
- end
- function pretarget(spell,action)
- if (spell.type:endswith('Magic') or spell.type == "Ninjutsu") and buffactive.silence then -- Auto Use Echo Drops If You Are Silenced --
- cancel_spell()
- send_command('input /item "Echo Drops" <me>')
- elseif spell.english:ifind("Cure") and player.mp<actualCost(spell.mp_cost) then
- degrade_spell(spell,Cure_Spells)
- elseif spell.english:ifind("Curaga") and player.mp<actualCost(spell.mp_cost) then
- degrade_spell(spell,Curaga_Spells)
- elseif buffactive['Light Arts'] or buffactive['Addendum: White'] then
- if spell.english == "Light Arts" and not buffactive['Addendum: White'] then
- cancel_spell()
- send_command('input /ja Addendum: White <me>')
- elseif spell.english == "Manifestation" then
- cancel_spell()
- send_command('input /ja Accession <me>')
- elseif spell.english == "Alacrity" then
- cancel_spell()
- send_command('input /ja Celerity <me>')
- elseif spell.english == "Parsimony" then
- cancel_spell()
- send_command('input /ja Penury <me>')
- end
- elseif buffactive['Dark Arts'] or buffactive['Addendum: Black'] then
- if spell.english == "Dark Arts" and not buffactive['Addendum: Black'] then
- cancel_spell()
- send_command('input /ja Addendum: Black <me>')
- elseif spell.english == "Accession" then
- cancel_spell()
- send_command('input /ja Manifestation <me>')
- elseif spell.english == "Celerity" then
- cancel_spell()
- send_command('input /ja Alacrity <me>')
- elseif spell.english == "Penury" then
- cancel_spell()
- send_command('input /ja Parsimony <me>')
- end
- end
- end
- function precast(spell,action)
- if spell.type:endswith('Magic') or spell.type == "Ninjutsu" then
- if buffactive.silence or spell.target.distance > 16+target_distance then -- Cancel Magic or Ninjutsu If You Are Silenced or Out of Range --
- cancel_spell()
- add_to_chat(123, spell.name..' Canceled: [Silenced or Out of Casting Range]')
- return
- else
- if string.find(spell.english,'Cur') and spell.english ~= "Cursna" then
- equip(sets.Precast.Cure)
- elseif spell.english == "Impact" then
- equip(set_combine(sets.Precast.FastCast,{body="Twilight Cloak"}))
- elseif string.find(spell.english,'Utsusemi') then
- if buffactive['Copy Image (3)'] or buffactive['Copy Image (4)'] then
- cancel_spell()
- add_to_chat(123, spell.english .. ' Canceled: [3+ Images]')
- return
- else
- equip(sets.Precast.FastCast)
- end
- elseif sets.Precast[spell.english] then
- equip(sets.Precast[spell.english])
- elseif sets.Precast[spell.skill] then
- equip(sets.Precast[spell.skill])
- else
- equip(sets.Precast.FastCast)
- end
- end
- elseif spell.type == "WeaponSkill" then
- if sets.WS[spell.english] then
- equip(sets.WS[spell.english])
- end
- elseif spell.type == "JobAbility" then
- if sets.JA[spell.english] then
- equip(sets.JA[spell.english])
- end
- elseif spell.english == 'Spectral Jig' and buffactive.Sneak then
- cast_delay(0.2)
- send_command('cancel Sneak')
- end
- if sets.Precast[spell.element] then
- equip(sets.Precast[spell.element])
- end
- end
- function midcast(spell,action)
- equipSet = {}
- if spell.type:endswith('Magic') or spell.type == 'Ninjutsu' or spell.type == 'BardSong' then
- equipSet = sets.Midcast
- if string.find(spell.english,'Cure') then
- equipSet = equipSet.Cure
- elseif string.find(spell.english,'Cura') then
- equipSet = equipSet.Curaga
- elseif string.find(spell.english,'Banish') then
- equipSet = set_combine(equipSet.Haste,{ring1="Fenian Ring"})
- elseif spell.english == "Stoneskin" then
- if buffactive.Stoneskin then
- send_command('cancel stoneskin')
- end
- equipSet = equipSet.Stoneskin
- elseif spell.english == "Sneak" then
- if spell.target.name == player.name and buffactive['Sneak'] then
- send_command('cancel sneak')
- end
- equipSet = equipSet.Haste
- elseif string.find(spell.english,'Utsusemi') then
- if spell.english == 'Utsusemi: Ichi' and (buffactive['Copy Image'] or buffactive['Copy Image (2)']) then
- send_command('@wait 1.7;cancel Copy Image*')
- end
- equipSet = equipSet.Haste
- elseif spell.english == 'Monomi: Ichi' then
- if buffactive['Sneak'] then
- send_command('@wait 1.7;cancel sneak')
- end
- equipSet = equipSet.Haste
- else
- if equipSet[spell.english] then
- equipSet = equipSet[spell.english]
- end
- if equipSet[spell.skill] then
- equipSet = equipSet[spell.skill]
- end
- if equipSet[AccArray[AccIndex]] then
- equipSet = equipSet[AccArray[AccIndex]]
- end
- if equipSet[spell.type] then
- equipSet = equipSet[spell.type]
- end
- if ((spell.skill == 'Elemental Magic') and (world.day_element == spell.element)) then
- equipSet = set_combine(equipSet,sets.dayObi[spell.element])
- if string.find(spell.english,'helix') then
- equip(sets.Midcast.Helix)
- end
- end
- if ((spell.skill == 'Elemental Magic') and (world.weather_element == spell.element)) then
- equipSet = set_combine(equipSet,sets.Obi[spell.element])
- if string.find(spell.english,'helix') then
- equip(sets.Midcast.Helix)
- end
- end
- if string.find(spell.english,'Cure') and (world.weather_element == spell.element) or (world.day_element == spell.element) then
- equipSet = set_combine(equipSet,sets.Obi[spell.element])
- end
- if ((spell.english == 'Drain') or (spell.english == 'Aspir')) and ((world.day_element == spell.element) or (world.weather_element == spell.element)) then
- equipSet = set_combine(equipSet,sets.Obi[spell.element])
- end
- if spell.skill == 'Elemental Magic' and player.hp < 1187 then
- equipSet = set_combine(equipSet,{ring1="Sorcerer's Ring"})
- end
- if spell.skill == 'Elemental Magic' and (string.find(spell.english,'ga') or string.find(spell.english,'ja') or string.find(spell.english,'ra')) then
- equipSet = set_combine(equipSet,{body="Spae. Coat +1"})
- if spell.skill == 'Elemental Magic' and string.find(spell.english,'ja') then
- equipSet = set_combine(equipSet,{legs="Wicce Chausses"})
- end
- end
- if spell.skill =='Elemental Magic' and buffactive['Reive Mark'] then
- equipSet = set_combine(equipSet,{neck="Arciela's Grace +1"})
- end
- if spell.skill =='Elemental Magic' and MagicBurstIndex==1 and spell.english ~= "Meteor" and spell.english ~= "Impact" then
- equipSet = set_combine(equipSet,{
- main="Keraunos",
- ammo="ghastly Tathlum",
- head="Hagondes Hat",
- neck="Mizu. Kubikazari",
- ear1="Friomisi Earring",
- ear2="Novio Earring",
- hands="Wicce Gloves",
- ring1="Shiva Ring",
- ring2="Shiva Ring",
- back="Seshaw Cape",
- legs="Hagondes Pants",
- feet="Helios Boots"})
- end
- if spell.skill == 'Elemental Magic' and (string.find(spell.english,'helix')) then
- equipSet = set_combine(equipSet,{waist="Oneiros Sash"})
- end
- if (string.find(spell.english,'Kaustra')) then
- equipSet = set_combine(equipSet,{waist="Oneiros Sash"})
- end
- end
- elseif equipSet[spell.english] then
- equipSet = equipSet[spell.english]
- end
- equip(equipSet)
- end
- function aftercast(spell,action)
- if not spell.interrupted then
- if spell.english == "Sleep II" then -- Sleep II Countdown --
- send_command('wait 60;input /echo Sleep Effect: [WEARING OFF IN 30 SEC.];wait 15;input /echo Sleep Effect: [WEARING OFF IN 15 SEC.];wait 10;input /echo Sleep Effect: [WEARING OFF IN 5 SEC.]')
- elseif spell.english == "Sleep" or spell.english == "Sleepga" then -- Sleep & Sleepga Countdown --
- send_command('wait 30;input /echo Sleep Effect: [WEARING OFF IN 30 SEC.];wait 15;input /echo Sleep Effect: [WEARING OFF IN 15 SEC.];wait 10;input /echo Sleep Effect: [WEARING OFF IN 5 SEC.]')
- elseif spell.english == "Break" then -- Break Countdown --
- send_command('wait 25;input /echo Break Effect: [WEARING OFF IN 5 SEC.]')
- elseif spell.english == "Paralyze" then -- Paralyze Countdown --
- send_command('wait 115;input /echo Paralyze Effect: [WEARING OFF IN 5 SEC.]')
- elseif spell.english == "Slow" then -- Slow Countdown --
- send_command('wait 115;input /echo Slow Effect: [WEARING OFF IN 5 SEC.]')
- elseif spell.english == "Banish II" then -- Banish II Countdown --
- send_command('wait 20;input /echo Banish Effect: [WEARING OFF IN 10 SEC.]')
- end
- end
- status_change(player.status)
- if buffactive['Reive Mark'] then
- equip({neck="Arciela's Grace +1"})
- end
- end
- function status_change(new,old)
- if Armor == 'PDT' then
- equip(sets.PDT)
- elseif new=='Engaged' then
- equip(sets.Melee)
- elseif buffactive["Sublimation: Activated"] then
- equip(sets.Sublimation)
- elseif new == 'Idle' and buffactive['Reive Mark'] then
- equip(sets.Idle[IdleArray[IdleIndex]],{neck="Arciela's Grace +1"})
- elseif new == 'Idle' and toau_zones:contains(zone) then
- equip(sets.Idle[IdleArray[IdleIndex]],{ring1="Balrahn's Ring"})
- elseif new == 'Idle' then
- equip(sets.Idle[IdleArray[IdleIndex]])
- elseif new == 'Resting' then
- equip(sets.Resting)
- end
- end
- function buff_change(buff,gain)
- buff = string.lower(buff)
- if buff=='Mana Wall' then
- if gain_or_loss then
- equip(sets.JA['Mana Wall'])
- disable('feet')
- else
- enable('feet')
- end
- elseif buff == "aftermath: lv.3" then -- AM3 Timer/Countdown --
- if gain then
- send_command('timers create "Aftermath: Lv.3" 180 down;wait 120;input /echo Aftermath: Lv.3 [WEARING OFF IN 60 SEC.];wait 30;input /echo Aftermath: Lv.3 [WEARING OFF IN 30 SEC.];wait 20;input /echo Aftermath: Lv.3 [WEARING OFF IN 10 SEC.]')
- else
- send_command('timers delete "Aftermath: Lv.3"')
- add_to_chat(123,'AM3: [OFF]')
- end
- elseif buff == "aftermath: lv.2" then -- AM2 Timer/Countdown --
- if gain then
- send_command('timers create "Aftermath: Lv.2" 270 down;wait 210;input /echo Aftermath: Lv.2 [WEARING OFF IN 60 SEC.];wait 30;input /echo Aftermath: Lv.2 [WEARING OFF IN 30 SEC.];wait 20;input /echo Aftermath: Lv.2 [WEARING OFF IN 10 SEC.]')
- else
- send_command('timers delete "Aftermath: Lv.2"')
- add_to_chat(123,'AM2: [OFF]')
- end
- elseif buff == "aftermath: lv.1" then -- AM1 Timer/Countdown --
- if gain then
- send_command('timers create "Aftermath: Lv.1" 270 down;wait 210;input /echo Aftermath: Lv.1 [WEARING OFF IN 60 SEC.];wait 30;input /echo Aftermath: Lv.1 [WEARING OFF IN 30 SEC.];wait 20;input /echo Aftermath: Lv.1 [WEARING OFF IN 10 SEC.]')
- else
- send_command('timers delete "Aftermath: Lv.1"')
- add_to_chat(123,'AM1: [OFF]')
- end
- elseif buff == 'weakness' then -- Weakness Timer --
- if gain then
- send_command('timers create "Weakness" 300 up')
- else
- send_command('timers delete "Weakness"')
- end
- end
- if not midaction() then
- status_change(player.status)
- end
- end
- -- In Game: //gs c (command), Macro: /console gs c (command), Bind: gs c (command) --
- function self_command(command)
- if command == 'C1' then -- Magic Accuracy Toggle --
- AccIndex = (AccIndex % #AccArray) + 1
- add_to_chat(158,'Magic Accuracy Level: ' .. AccArray[AccIndex])
- status_change(player.status)
- elseif command == 'C5' then -- Auto Update Gear Toggle --
- status_change(player.status)
- add_to_chat(158,'Auto Update Gear')
- elseif command == 'C2' then -- MB Toggle --
- if MagicBurstIndex == 1 then
- MagicBurstIndex = 0
- add_to_chat(123,'Magic Burst Gear: [Off]')
- else
- MagicBurstIndex = 1
- add_to_chat(158,'Magic Burst Gear: [On]')
- end
- status_change(player.status)
- elseif command == 'C3' then -- Obi Toggle --
- if Obi == 'ON' then
- Obi = 'OFF'
- add_to_chat(123,'Obi: [OFF]')
- else
- Obi = 'ON'
- add_to_chat(158,'Obi: [ON]')
- end
- status_change(player.status)
- elseif command == 'C7' then -- PDT Toggle --
- if Armor == 'PDT' then
- Armor = 'None'
- add_to_chat(123,'PDT Set: [Unlocked]')
- else
- Armor = 'PDT'
- add_to_chat(158,'PDT Set: [Locked]')
- end
- status_change(player.status)
- elseif command == 'C8' then -- Distance Toggle --
- if player.target.distance then
- target_distance = math.floor(player.target.distance*10)/10
- add_to_chat(158,'Distance: '..target_distance)
- else
- add_to_chat(123,'No Target Selected')
- end
- elseif command == 'C6' then -- Idle Toggle --
- IdleIndex = (IdleIndex % #IdleArray) + 1
- add_to_chat(158,'Idle Set: '..IdleArray[IdleIndex])
- status_change(player.status)
- elseif command:match('^SC%d$') then
- send_command('//' .. sc_map[command])
- end
- end
- function actualCost(originalCost)
- if buffactive["Penury"] then
- return originalCost*.5
- elseif buffactive["Light Arts"] then
- return originalCost*.9
- else
- return originalCost
- end
- end
- function degrade_spell(spell,degrade_array)
- spell_index = table.find(degrade_array,spell.name)
- if spell_index > 1 then
- new_spell = degrade_array[spell_index - 1]
- change_spell(new_spell,spell.target.raw)
- add_to_chat(8,spell.name..' Canceled: ['..player.mp..'/'..player.max_mp..'MP::'..player.mpp..'%] Casting '..new_spell..' instead.')
- end
- end
- function change_spell(spell_name,target)
- cancel_spell()
- send_command('//'..spell_name..' '..target)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement