Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function get_sets()
- TP_Index = 1
- Idle_Index = 1
- DefensePDT_Index = 1
- DefenseMDT_Index = 1
- Midshot_Index = 1
- Barrage_Index = 1
- Coronach_Index = 1
- LS_Index = 1 --Last Stand
- NA_Index = 1 --Namas Arrow
- JR_Index = 1 --Jishnu's Radiance
- SW_Index = 1 --Sidewinder
- --Default Macro Set for RNG
- send_command('input /macro book 8;wait .1;input /macro set 5')
- --PreSets Below (Snapshot/JA's)
- sets.precast = {}
- sets.precast.bullet = {ammo="Achiyalabopa Bullet"}
- sets.precast.arrow = {ammo="Achiyal. Arrow"}
- sets.precast.trialsammo = {ammo="Gargouille Arrow"}
- sets.precast['Double Shot'] = {head="Sylvan Gapette +2",body="Arcadian jerkin"}
- sets.precast['Velocity Shot'] = {body="Sylvan Caban +2"}
- sets.precast['Camouflage'] = {body="Orion Jerkin +1"}
- sets.precast['Bounty Shot'] = {hands="Syl. Glvltte. +2"}
- sets.precast['Sharpshot'] = {legs="Orion Braccae +1"}
- sets.precast['Scavenge'] = {feet="Orion socks +1"}
- sets.precast['Shadowbind'] = {hands="Orion Bracers +1"}
- sets.precast['Eagle Eye Shot'] = {
- head="Umbani Cap", -- Orion Beret +1
- neck="Peacock Charm",
- ear1="Vulcan's Pearl",
- ear2="Vulcan's Pearl",
- body="Kyujutsugi",
- hands="Arcadian bracers +1",
- ring1="Rajas Ring",
- ring2="Pyrosoul Ring",
- back="Libeccio Mantle",
- waist="Prosilio belt",
- legs="Arcadian Braccae",
- feet="Orion Socks +1"}
- sets.precast.PreShot = {
- head="Sylvan Gapette +2", -- Arcadian Beret +1
- body="Sylvan Caban +2", -- Arcadian jerkin
- hands="Iuitl Wristbands",
- waist="Impulse Belt",
- legs="Nahtirah Trousers",
- feet="Wurrukatte Boots"} -- Arcadian Socks
- --DoubleShot
- sets.precast.DoubleShot = {}
- sets.precast.DoubleShot = set_combine(sets.precast.Preshot, {body="Arcadian jerkin"})
- -- Magic Sets Below
- sets.precast.FastCast = {
- head="Whirlpool Mask",
- neck="Twilight Torque",
- hands="Iuitl Wristbands",
- ring1="Patricius Ring",
- ring2="Defending Ring",
- back="Shadow Mantle",
- legs="Nahtirah Trousers",
- feet="Iuitl Gaiters"}
- sets.precast.Utsusemi = set_combine(sets.precast.FastCast,{neck="Magoraga Beads"})
- --Midshot Sets Below
- Midshot_Set_Names = {'LightAcc','FullAcc','STP'}
- sets.Midshot = {}
- sets.Midshot.LightAcc = {
- head="Umbani Cap",-- Orion Beret +1
- neck="Faith Torque", -- Ocachi Gorget
- ear1="Clearview Earring",
- ear2="Volley Earring",
- body="Orion Jerkin +1",
- hands="Iuitl Wristbands", --
- ring1="Pyrosoul Ring",
- ring2="Rajas Ring",
- back="Terebellum Mantle",
- waist="Scout's Belt",
- legs="Nahtirah Trousers",
- feet="Orion Socks +1"}
- sets.Midshot.FullAcc = {
- head="Umbani Cap",-- Arcadian Beret +1
- neck="Peacock Charm",
- ear1="Clearview Earring",
- ear2="Volley Earring",
- body="Kyujutsugi",
- hands="Iuitl Wristbands",
- ring1="Hajduk ring",
- ring2="Paqichikaji Ring",
- back="Jaeger Mantle",
- waist="Scout's Belt", -- Elanid Belt
- legs="Orion Braccae +1",
- feet="Orion Socks +1"}
- sets.Midshot.STP = {
- head="Arcadian Beret +1",
- neck="Peacock Charm", -- Ocachi Gorget
- ear1="Clearview Earring",-- Tripudio Earring
- ear2="Volley Earring", -- 2%
- body="Kyujutsugi", -- 5%
- hands="Sylvan Glovelettes +2", -- 7% Manibozho Gloves
- ring1="K'ayres Ring", -- 5%
- ring2="Rajas Ring", -- 5%
- back="Sylvan Chlamys", -- 5%
- waist="Scout's Belt", -- Elanid Belt
- legs="Orion Braccae +1", -- Nahtirah Trousers
- feet="Orion Socks +1"} --
- --Barrage Sets Below
- Barrage_Set_Names = {'BarrageAcc','BarrageSTP'}
- sets.Barrage = {}
- sets.Barrage.BarrageAcc = {
- head="Umbani Cap",-- Orion Beret +1
- neck="Rancor collar", -- Clearview earring
- ear1="Vulcan's Pearl", -- Volley Earring
- ear2="Vulcan's Pearl",
- body="Orion Jerkin +1",
- hands="Orion Bracers +1",
- ring1="Hajduk ring",
- ring2="Pyrosoul Ring",
- back="Libeccio Mantle",
- waist="Scout's Belt",-- Elanid Belt
- legs="Desultor Tassets",
- feet="Orion Socks +1"}
- sets.Barrage.BarrageSTP = {
- head="Arcadian Beret +1",
- neck="Rancor collar",
- ear1="Vulcan's Pearl", -- Vulcan's Pearl
- ear2="Volley Earring", -- Vulcan's Pearl
- body="Kyujutsugi",
- hands="Orion Bracers +1",
- ring1="Rajas Ring",
- ring2="Pyrosoul Ring",
- back="Libeccio Mantle",
- waist="Prosilio belt",-- Elanid Belt
- legs="Desultor Tassets",
- feet="Orion Socks +1"}
- -- Coronach Sets Below
- Coronach_Set_Names = {'Normal','Acc','Atk'}
- sets.Coronach = {}
- sets.Coronach.Normal = {
- head="Orion Beret +1",
- neck="Manibozho Gloves",
- ear1="Vulcan's Pearl",
- ear2="Vulcan's Pearl",
- body="Orion Jerkin +1", -- Orion Jerkin +1
- hands="",
- ring1="Rajas Ring",
- ring2="Pyrosoul Ring",
- back="Buquwik Cape",
- waist="",
- legs="Nahtirah Trousers",
- feet="Orion Socks +1"}
- sets.Coronach.Acc = {
- head="Umbani Cap", -- Orion Beret +1
- neck="Thunder Gorget", -- Thunder Gorget
- ear1="Vulcan's Pearl",
- ear2="Vulcan's Pearl",
- body="Kyujutsugi",
- hands="Iuitl Wristbands", -- Manibozho Gloves
- ring1="Rajas Ring",
- ring2="Pyrosoul Ring",
- back="Terebellum Mantle", -- Libeccio Mantle
- waist="Thunder belt", -- Thunder belt
- legs="Orion Braccae +1", -- Nahtirah Trousers
- feet="Orion Socks +1"}
- sets.Coronach.Atk = {
- head="Umbani Cap", -- Arcadian Beret +1
- neck="Breeze Gorget", -- Ocachi Gorget Thunder Gorget
- ear1="Vulcan's Pearl",
- ear2="Vulcan's Pearl",
- body="Kheper Jacket", -- Orion Jerkin +1
- hands="Arcadian bracers +1", -- Arcadian bracers +1 +1
- ring1="Rajas Ring",
- ring2="Pyrosoul Ring",
- back="Buquwik Cape", -- Libeccio Mantle/Terebellum Mantle
- waist="Breeze Belt", -- Prosilio belt Thunder belt
- legs="Nahtirah Trousers",
- feet="Orion Socks +1"}
- -- Last Stand Sets Below
- LS_Set_Names = {'Normal','Acc','Atk'}
- sets.LS = {}
- sets.LS.Normal = {
- head="Orion Beret +1",
- neck="Light Gorget",
- ear1="Vulcan's Pearl",
- ear2="Sylvan Earring",
- body="Orion Jerkin +1",
- hands="Manibozho Gloves",
- ring1="Stormsoul Ring",
- ring2="Pyrosoul Ring",
- back="Libeccio Mantle",
- waist="Light belt",
- legs="Nahtirah Trousers",
- feet="Orion Socks +1"}
- sets.LS.Acc = {
- head="Arcadian Beret +1",
- neck="Light Gorget",
- ear1="Clearview Earring",
- ear2="Volley Earring",
- body="Kyujutsugi",
- hands="Iuitl Wristbands", -- Manibozho Gloves
- ring1="Hajduk ring",
- ring2="Paqichikaji Ring",
- back="Terebellum Mantle", -- Libeccio Mantle
- waist="Light belt",
- legs="Orion Braccae +1", -- Thurandaut Tights +1
- feet="Orion Socks +1"}
- sets.LS.Atk = {
- head="Arcadian Beret +1",
- neck="Faith Torque",
- ear1="Vulcan's Pearl",
- ear2="Vulcan's Pearl",
- body="Kyujutsugi",
- hands="Manibozho Gloves",
- ring1="Stormsoul Ring",
- ring2="Pyrosoul Ring",
- back="Libeccio Mantle",
- waist="Prosilio belt",
- legs="Nahtirah Trousers",
- feet="Orion Socks +1"}
- -- Namas Arrow Sets Below
- NA_Set_Names = {'Normal','Acc','Atk'}
- sets.NA = {}
- sets.NA.Normal = {}
- sets.NA.Acc = {}
- sets.NA.Atk = {}
- -- Jishnu's Radiance Sets Below
- JR_Set_Names = {'Normal','Acc','Atk'}
- sets.JR = {}
- sets.JR.Normal = {
- head="Uk'uxkaj cap",
- neck="Light Gorget",
- ear1="Vulcan's Pearl",
- ear2="Vulcan's Pearl",
- body="Kyujutsugi",
- hands="Orion Bracers +1",
- ring1="Rajas Ring",
- ring2="Pyrosoul Ring",
- back="Libeccio Mantle",
- waist="Light belt",
- legs="Nahtirah Trousers",
- feet="Orion Socks +1"}
- sets.JR.Acc = {
- head="Uk'uxkaj cap",
- neck="Light Gorget",
- ear1="Clearview Earring",
- ear2="Volley Earring",
- body="Kyujutsugi",
- hands="Buremte Gloces",
- ring1="Rajas Ring",
- ring2="Pyrosoul Ring",
- back="Libeccio Mantle",
- waist="Light belt",
- legs="Thurandaut tights +1",
- feet="Orion Socks +1"}
- sets.JR.Atk = {
- head="Orion Beret +1",
- neck="Ocachi Gorget",
- ear1="Vulcan's Pearl",
- ear2="Vulcan's Pearl",
- body="Kyujutsugi",
- hands="Manibozho Gloves",
- ring1="Rajas Ring",
- ring2="Pyrosoul Ring",
- back="Libeccio Mantle",
- waist="Prosilio belt",
- legs="Nahtirah Trousers",
- feet="Orion Socks +1"}
- -- Sidewinder Sets Below
- SW_Set_Names = {'Normal','Acc','Atk'}
- sets.SW = {}
- sets.SW.Normal = {
- head="Orion Beret +1",
- neck="Light Gorget",
- ear1="Vulcan's Pearl",
- ear2="Vulcan's Pearl",
- body="Kyujutsugi",
- hands="Manibozho Gloves",
- ring1="Rajas Ring",
- ring2="Pyrosoul Ring",
- back="Libeccio Mantle",
- waist="Light belt",
- legs="Nahtirah Trousers",
- feet="Orion Socks +1"}
- sets.SW.Acc = {
- head="Orion Beret +1",
- neck="Light Gorget",
- ear1="Vulcan's Pearl",
- ear2="Vulcan's Pearl",
- body="Kyujutsugi",
- hands="Manibozho Gloves",
- ring1="Hajduk ring",
- ring2="Paqichikaji Ring",
- back="Libeccio Mantle",
- waist="Light belt",
- legs="Thurandaut Tights +1",
- feet="Orion Socks +1"}
- sets.SW.Atk = {}
- -- TP Sets Below(I don't really use for RNG but feel free to add your own)
- TP_Set_Names = {"ACC","ATK","PDT","MDT"}
- sets.TP = {}
- sets.TP['ACC'] = {}
- sets.TP['ATK'] = {}
- sets.TP['MDT'] = {
- head="Orion Beret +1",
- neck="Twilight Torque",
- ear1="Merman's Earring",
- ear2="Merman's Earring",
- body="Iuitl Vest", -- Kyujutsugi
- hands="Iuitl Wristbands", -- Manibozho Gloves
- ring1="Shadow Ring",
- ring2="Defending Ring",
- back="Engulfer Cape",
- waist="Resolute Belt",
- legs="Nahtirah Trousers",
- feet="Iuitl Gaiters"}
- sets.TP['PDT'] = {
- head="Orion Beret +1", -- Whirlpool Mask
- neck="Twilight Torque",
- ear1="Merman's Earring",
- ear2="Merman's Earring",
- body="Iuitl Vest", -- Kyujutsugi
- hands="Iuitl Wristbands",
- ring1="Defending Ring",
- ring2="K'ayres Ring",
- back="Mollusca Mantle", -- Shadow Mantle
- waist="Flume Belt",
- legs="Nahtirah Trousers",
- feet="Iuitl Gaiters"}
- --Idle Sets Below
- Idle_Set_Names = {'Regen','Normal','Town'}
- sets.Idle = {}
- sets.Idle.Normal = {
- head="Orion Beret +1",
- neck="Peacock Charm",
- ear1="Clearview Earring",
- ear2="Volley Earring",
- body="Kyujutsugi",
- hands="Manibozho Gloves",
- ring1="Hajduk ring",
- ring2="Paqichikaji Ring",
- back="Libeccio Mantle",
- waist="Elanid Belt",
- legs="Nahtirah Trousers",
- feet="Orion Socks +1"}
- sets.Idle.Town = {
- head="Orion Beret +1",
- neck="Peacock Charm",
- ear1="Clearview Earring",
- ear2="Volley Earring",
- body="Kyujutsugi",
- hands="Manibozho Gloves",
- ring1="Hajduk ring",
- ring2="Paqichikaji Ring",
- back="Libeccio Mantle",
- waist="Elanid Belt",
- legs="Nahtirah Trousers",
- feet="Orion Socks +1"}
- sets.Idle.Regen = set_combine(sets.Idle.Normal,{
- head="Ocelomeh headpiece",
- neck="Orochi Nodowa",
- body="Kheper jacket",
- hands="Orion Bracers +1",
- ring1="Paguroidea Ring",
- ring2="Sheltered Ring",
- back="Scuta Cape"})
- PDT_Set_Names = {'PDT'}
- sets.DefensePDT = {}
- sets.DefensePDT.PDT = {
- head="Orion Beret +1", -- Whirlpool Mask
- neck="Twilight Torque",
- ear1="Merman's Earring",
- ear2="Merman's Earring",
- body="Iuitl Vest", -- Kyujutsugi
- hands="Iuitl Wristbands",
- ring1="Patricius Ring",
- ring2="Defending Ring",
- back="Mollusca Mantle", -- Shadow Mantle
- waist="Flume Belt",
- legs="Nahtirah Trousers",
- feet="Iuitl Gaiters"}
- MDT_Set_Names = {'MDT'}
- sets.DefenseMDT = {}
- sets.DefenseMDT.MDT = set_combine(sets.DefensePDT.PDT,{
- ear1="Merman's Earring",
- ear2="Merman's Earring",
- head="Orion Beret +1",
- body="Iuitl Vest",
- ring1="Shadow Ring",
- ring2="Defending Ring",
- back="Engulfer Cape",
- waist="Resolute Belt"})
- end
- function precast(spell)
- if sets.precast[spell.english] then
- equip(sets.precast[spell.english])
- elseif spell.type == 'WeaponSkill' then
- if spell.target.distance > 21.0 then
- add_to_chat(167,''..spell.target.name..' is too far can not use '..spell.name..'!!!. Cancelling WeaponSkill ')
- cancel_spell()
- return
- elseif spell.name == "Coronach" then
- equip(sets.Coronach[Coronach_Set_Names[Coronach_Index]])
- elseif spell.name == "Last Stand" then
- equip(sets.LS[LS_Set_Names[LS_Index]])
- elseif spell.name == "Namas Arrow" then
- equip(sets.NA[NA_Set_Names[NA_Index]])
- elseif spell.name == "Jishnu's Radiance" then
- equip(sets.JR[JR_Set_Names[JR_Index]])
- elseif spell.name == "Sidewinder" then
- equip(sets.SW[SW_Set_Names[SW_Index]])
- end
- elseif spell.name == "Ranged" then
- if buffactive['Double Shot'] then
- equip(sets.precast.DoubleShot)
- else
- equip(sets.precast.PreShot)
- end
- if player.equipment.range == 'Ajjub Bow' then
- equip(sets.precast.arrow)
- elseif player.equipment.range == 'Yoichinoyumi' then
- equip(sets.precast.arrow)
- elseif player.equipment.range == 'Annihilator' then
- equip(sets.precast.bullet)
- elseif player.equipment.range == 'Astrild' then
- equip(sets.precast.trialsammo)
- end
- elseif spell.type == "Ninjutsu" then
- if string.find(spell.english,'Utsusemi') then
- if buffactive['Copy Image (3)'] or buffactive['Copy Image (4)'] then
- cancel_spell()
- add_to_chat(167, spell.english .. ' Canceled: [3+ Images]')
- return
- else
- equip(sets.precast.Utsusemi)
- end
- else
- equip(sets.precast.FastCast)
- end
- elseif spell.english == 'Spectral Jig' and buffactive.Sneak then
- cast_delay(0.2)
- send_command('cancel Sneak')
- end
- end
- function midcast(spell)
- if spell.name == "Ranged" then
- equip(sets.Midshot[Midshot_Set_Names[Midshot_Index]])
- -- Double Shot
- --if buffactive.DoubleShot then
- --equip(sets.DoubleShot)
- if buffactive.Barrage then
- equip(sets.Barrage[Barrage_Set_Names[Barrage_Index]])
- --end -- Double Shot
- end
- end
- end
- function aftercast(spell)
- if player.status=='Engaged' then
- equip(sets.TP[TP_Set_Names[TP_Index]])
- else
- equip(sets.Idle[Idle_Set_Names[Idle_Index]])
- end
- end
- function status_change(new,old)
- if T{'Idle','Resting'}:contains(new) then
- equip(sets.Idle[Idle_Set_Names[Idle_Index]])
- elseif new == 'Engaged' then
- equip(sets.TP[TP_Set_Names[TP_Index]])
- end
- end
- -- Auto scavenge
- function buff_change(name,gain_or_loss)
- if name == 'Battlefield' and not gain_or_loss then
- send_command('wait 3; input /ja "Scavenge" <me>')
- end
- end
- --Toggle Self Commands with //gs c [command name]
- --Example type in chat //gs c tp (case sensitive)
- --Example Make a macro /console gs c tp (case sensitive)
- function self_command(command)
- if command == 'tp' then
- TP_Index = TP_Index +1
- if TP_Index > #TP_Set_Names then TP_Index = 1 end
- add_to_chat(207,'TP Set Changed to: '..TP_Set_Names[TP_Index]..'')
- elseif command == 'idle' then
- Idle_Index = Idle_Index +1
- if Idle_Index > #Idle_Set_Names then Idle_Index = 1 end
- add_to_chat(207,'Idle Set Changed to: '..Idle_Set_Names[Idle_Index]..'')
- equip(sets.Idle[Idle_Set_Names[Idle_Index]])
- elseif command == 'pdt' then
- DefensePDT_Index = DefensePDT_Index +1
- if DefensePDT_Index > #PDT_Set_Names then DefensePDT_Index = 1 end
- add_to_chat(207,'PDT Set Changed to: '..PDT_Set_Names[DefensePDT_Index]..'')
- equip(sets.DefensePDT[PDT_Set_Names[DefensePDT_Index]])
- elseif command == 'mdt' then
- DefenseMDT_Index = DefenseMDT_Index +1
- if DefenseMDT_Index > #MDT_Set_Names then DefenseMDT_Index = 1 end
- add_to_chat(207,'MDT Set Changed to: '..MDT_Set_Names[DefenseMDT_Index]..'')
- equip(sets.DefenseMDT[MDT_Set_Names[DefenseMDT_Index]])
- elseif command == 'midshot' then
- Midshot_Index = Midshot_Index +1
- if Midshot_Index > #Midshot_Set_Names then Midshot_Index = 1 end
- add_to_chat(207,'Midshot Set Changed to: '..Midshot_Set_Names[Midshot_Index]..'')
- elseif command == 'barrage' then
- Barrage_Index = Barrage_Index +1
- if Barrage_Index > #Barrage_Set_Names then Barrage_Index = 1 end
- add_to_chat(207,'Barrage Set Changed to: '..Barrage_Set_Names[Barrage_Index]..'')
- elseif command == 'relicgunws' then
- Coronach_Index = Coronach_Index +1
- if Coronach_Index > #Coronach_Set_Names then Coronach_Index = 1 end
- add_to_chat(207,'Coronach Set Changed to: '..Coronach_Set_Names[Coronach_Index]..'')
- elseif command == 'meritws' then
- LS_Index = LS_Index +1
- if LS_Index > #LS_Set_Names then LS_Index = 1 end
- add_to_chat(207,'Last Stand Set Changed to: '..LS_Set_Names[LS_Index]..'')
- elseif command == 'relicbowws' then
- NA_Index = NA_Index +1
- if NA_Index > #NA_Set_Names then NA_Index = 1 end
- add_to_chat(207,'Namas Arrow Set Changed to: '..NA_Set_Names[NA_Index]..'')
- elseif command == 'empws' then
- JR_Index = JR_Index +1
- if JR_Index > #JR_Set_Names then JR_Index = 1 end
- add_to_chat(207,'Jishnu\'s Radiance Set Changed to: '..JR_Set_Names[JR_Index]..'')
- elseif command == 'sidewinderws' then
- SW_Index = SW_Index +1
- if SW_Index > #Coronach_Set_Names then SW_Index = 1 end
- add_to_chat(207,'Sidewinder Set Changed to: '..SW_Set_Names[SW_Index]..'')
- elseif command == 'update' then
- status_change(player.status)
- elseif command == 'active' then
- add_to_chat(207,'Idle Set Active: '..Idle_Set_Names[Idle_Index]..'')
- add_to_chat(207,'PDT Set Active: '..PDT_Set_Names[DefensePDT_Index]..'')
- add_to_chat(207,'MDT Set Active: '..MDT_Set_Names[DefenseMDT_Index]..'')
- add_to_chat(207,'TP Set Active: '..TP_Set_Names[TP_Index]..'')
- add_to_chat(207,'Midshot Set Active: '..Midshot_Set_Names[Midshot_Index]..'')
- add_to_chat(207,'Barrage Set Active: '..Barrage_Set_Names[Barrage_Index]..'')
- add_to_chat(207,'Coronach Set Active: '..Coronach_Set_Names[Coronach_Index]..'')
- add_to_chat(207,'Last Stand Set Active: '..LS_Set_Names[LS_Index]..'')
- add_to_chat(207,'Namas Arrow Set Active: '..NA_Set_Names[NA_Index]..'')
- add_to_chat(207,'Jishnu\'s Radiance Set Active: '..JR_Set_Names[JR_Index]..'')
- add_to_chat(207,'Sidewinder Set Active: '..SW_Set_Names[SW_Index]..'')
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement