Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- *** Credit goes to Flippant for helping me with Gearswap *** --
- -- Last Updated: 02/08/14 7:00 PM --
- function get_sets()
- AccIndex = 1
- AccArray = {"LowACC","MidACC","HighACC"} -- 3 Levels Of Accuracy Sets For TP/WS/Hybrid. Default ACC Set Is LowACC. Add More ACC Sets If Needed Then Create Your New ACC Below --
- IdleIndex = 1
- IdleArray = {"Movement","Regen"} -- Default Idle Set Is Movement --
- Armor = 'None'
- HPIndex = 0
- send_command('input /macro book 7;wait .1;input /macro set 1') -- Change Default Macro Book Here --
- sc_map = {SC1="VictorySmite", SC2="Impetus", SC3="Focus"} -- 3 Additional Binds. Can Change Whatever JA/WS/Spells You Like Here. Remember Not To Use Spaces. --
- -- Idle/Town Sets --
- sets.Idle = {}
- sets.Idle.Regen = {
- ammo="Hagneia Stone",
- head="Oce. Headpiece +1",
- neck="Wiglen Gorget",
- ear1="Black Earring",
- ear2="merman's Earring",
- body="Mel. Cyclas",
- hands="Otronif Gloves",
- ring1="Sheltered Ring",
- ring2="Paguroidea Ring",
- back="Mollusca Mantle",
- waist="Black belt",
- legs="Otronif brais",
- feet="Otronif boots"}
- sets.Idle.Movement = set_combine(sets.Idle.Regen,{
- ring2="Defending Ring"})
- sets.Resting = set_combine(sets.Idle.Regen)
- -- TP Sets --
- sets.TP = {
- ammo="Hagneia Stone",
- head="Otronif Mask",
- neck="Asperity Necklace",
- ear1="Steelflash Earring",
- ear2="Bladeborn Earring",
- body="Thaumas Coat",
- hands="Otronif Gloves",
- ring1="Epona's Ring",
- ring2="Rajas Ring",
- back="Atheling Mantle",
- waist="Windbuffet Belt",
- legs="Otronif Brais",
- feet="Otronif Boots"}
- sets.TP.MidACC = set_combine(sets.TP,{
- ammo="Honed Tathlum",
- back="Letalis Mantle",
- feet="Manibozho Boots",
- legs="Manibozho Brais"})
- sets.TP.HighACC = set_combine(sets.TP.MidACC,{
- head="Whirlpool Mask",
- neck="Peacock amulet",
- body="Manibozho Jerkin",
- ring1="Patricius Ring",
- ring2="Mars's Ring",
- waist="Hurch'lan Sash",
- feet="Manibozho Boots"})
- -- (Impetus Up) TP Sets --
- sets.TP.Impetus = set_combine(sets.TP,{})
- sets.TP.MidACC.Impetus = set_combine(sets.TP.MidACC,{})
- sets.TP.HighACC.Impetus = set_combine(sets.TP.HighACC,{})
- -- Perfect Counter Set --
- sets.PerfectCounter = {head="Tantra Crown +2"}
- -- PDT/MDT Sets --
- sets.PDT = {
- ammo="Honed Tathlum",
- head="Otronif Mask",
- neck="Twilight Torque",
- ear1="Black Earring",
- ear2="Merman's Earring",
- body="Otronif Harness",
- hands="Otronif Gloves",
- ring1="Dark Ring",
- ring2="Defending Ring",
- back="Mollusca Mantle",
- waist="Black Belt",
- legs="Otronif Brais",
- feet="Otronif Boots"}
- sets.MDT = set_combine(sets.PDT,{
- back="Engulfer cape",
- ring1="Shadow Ring",})
- -- Hybrid/HP Sets --
- sets.TP.Hybrid = set_combine(sets.PDT,{
- ring1="Patricius Ring",
- ear1="Steelflash Earring",
- ear2="Bladeborn Earring"})
- sets.TP.Hybrid.MidACC = set_combine(sets.TP.Hybrid.LowACC,{
- head="Whirlpool Mask",})
- sets.TP.Hybrid.HighACC = set_combine(sets.TP.Hybrid.MidACC,{
- back="Letalis Mantle"})
- sets.HP = set_combine(sets.PDT,{
- neck="Dualism Collar",
- lear="Bloodgem Earring",
- rear="Cassie Earring",
- lring="Meridian Ring",
- back="Gigant Mantle"})
- -- WS Base Set --
- sets.WS = {}
- -- WS Sets --
- sets.WS["Victory Smite"] = {
- ammo="Thew Bomblet",
- head="Uk'uxkaj Cap",
- neck="Rancor Collar",
- ear1="steelflash Earring",
- ear2="Bladeborn Earring",
- body="Manibozho jerkin",
- hands="Anch. Gloves +1",
- ring1="Epona's Ring",
- ring2="Pyrosoul Ring",
- back="Buquwik Cape",
- waist="Wanion Belt",
- legs="Otronif Brais",
- feet="Otronif Boots"}
- sets.WS["Victory Smite"].MidACC = set_combine(sets.WS["Victory Smite"],{
- legs="Manibozho Brais"})
- sets.WS["Victory Smite"].HighACC = set_combine(sets.WS["Victory Smite"].MidACC,{
- ammo="Honed Tathlum",
- head="Whirlpool Mask",
- neck="Light Gorget",
- back="Anchoret's Mantle",
- waist="Light Belt",
- feet="Manibozho Boots"})
- sets.WS["Shijin Spiral"] = {
- ammo="Jukukik Feather",
- head="Felistris Mask",
- neck="Moepapa Medal",
- lear="Steelflash Earring",
- rear="Bladeborn Earring",
- body="Anch. Cyclas +1",
- hands="Anch. Gloves +1",
- lring="Epona's Ring",
- rring="Rajas Ring",
- back="Kayapa Cape",
- waist="Wanion Belt",
- legs="Manibozho Brais",
- feet="Otronif Boots",}
- sets.WS["Shijin Spiral"].MidACC = set_combine(sets.WS["Shijin Spiral"],{
- ammo="Honed Tathlum",
- head="Whirlpool Mask"})
- sets.WS["Shijin Spiral"].HighACC = set_combine(sets.WS["Shijin Spiral"].MidACC,{
- ring2="Zilant Ring",
- back="Letalis Mantle"})
- sets.WS["Asuran Fists"] = {}
- sets.WS["Final Heaven"] = {}
- sets.WS["Ascetic's Fury"] = {}
- -- JA Sets --
- sets.JA = {}
- sets.JA.Focus = {head="Anchorite's Crown"}
- sets.JA.FormlessStrikes = {body="Mel. Cyclas +2"}
- sets.JA.HundredFists = {legs="Mel. Hose +2"}
- sets.JA.Mantra = {feet="Melee Gaiters +2"}
- sets.JA.Counterstance = {feet="Melee Gaiters +2"}
- sets.JA.Dodge = {feet="Anch. Gaiters"}
- sets.JA.Chakra = {
- head="Uk'uxkaj Cap",
- body="Anch. Cyclas",
- back="Anchoret's Mantle",
- hands="Mel. Gloves +2",
- legs="Nahtirah Trousers",
- feet="Otronif Boots"}
- sets.Waltz = {}
- -- Magic Sets --
- sets.Precast = {}
- sets.Precast.FastCast = {
- ammo="Impatiens",
- head="Athos's Chapeau",
- neck="Orunmila's Torque",
- ear1="Loquac. Earring",
- hands="Thaumas Gloves",
- ring1="Prolix Ring",
- ring2="Veneficium Ring"}
- sets.Precast.Utsusemi = set_combine(sets.Precast.FastCast,{neck="Magoraga Beads"})
- sets.Midcast = {}
- sets.Midcast.Haste = set_combine(sets.PDT)
- end
- function pretarget(spell,action)
- if (spell.type:endswith('Magic') or spell.type == "Ninjutsu") and buffactive.Silence then
- cancel_spell()
- send_command('input /item "Echo Drops" <me>')
- elseif spell.english == 'Impetus' and buffactive.Impetus then
- cancel_spell()
- send_command('Focus')
- elseif spell.english == "Berserk" and buffactive.Berserk then
- cancel_spell()
- send_command('Aggressor')
- end
- end
- function precast(spell,action)
- if spell.type == "WeaponSkill" then
- if player.status ~= 'Engaged' then -- Cancel WS If Not Engaged. Can Delete It If You Don't Need It --
- cancel_spell()
- add_to_chat(8,'Unable To Use WeaponSkill: [Disengaged]')
- return
- else
- equipSet = sets.WS
- if equipSet[spell.english] then
- equipSet = equipSet[spell.english]
- end
- if equipSet[AccArray[AccIndex]] then
- equipSet = equipSet[AccArray[AccIndex]]
- end
- if spell.english == "Victory Smite" or spell.english == "Ascetic's Fury" then
- if buffactive.Impetus then
- equipSet = set_combine(equipSet,{body="Tantra Cyclas +2"})
- elseif player.tp > 299 then
- equipSet = set_combine(equipSet,{ear1="Vulcan's Pearl"})
- end
- end
- equip(equipSet)
- end
- elseif spell.type == "JobAbility" then
- if sets.JA[spell.english] then
- equip(sets.JA[spell.english])
- 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(8, spell.english .. ' Canceled: [3+ Images]')
- return
- else
- equip(sets.Precast.Utsusemi)
- end
- else
- equip(sets.Precast.FastCast)
- end
- elseif spell.type == "Waltz" then
- equip(sets.Waltz)
- elseif spell.english == 'Spectral Jig' and buffactive.Sneak then
- cast_delay(0.2)
- send_command('cancel Sneak')
- end
- if HPIndex == 1 then
- equip(sets.HP)
- end
- end
- function midcast(spell,action)
- if spell.type == "Ninjutsu" then
- if 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
- equip(sets.Midcast.Haste)
- elseif spell.english == 'Monomi: Ichi' then
- if buffactive.Sneak then
- send_command('@wait 1.7; cancel Sneak')
- end
- equip(sets.Midcast.Haste)
- else
- equip(sets.Midcast.Haste)
- end
- end
- end
- function aftercast(spell,action)
- if spell.type == "WeaponSkill" then
- add_to_chat(158,'TP Return: [' .. player.tp .. ']')
- elseif spell.english == "Mantra" then
- send_command('wait 170;input /echo '..spell.english..' Effect: [WEARING OFF IN 10 SEC.];wait 10;input /p '..spell.english..' Effect: [OFF]')
- end
- status_change(player.status)
- end
- function status_change(new,old)
- if Armor == 'PDT' then
- equip(sets.PDT)
- elseif Armor == 'MDT' then
- equip(sets.MDT)
- elseif new == 'Engaged' then
- equipSet = sets.TP
- if Armor == 'Hybrid' and equipSet["Hybrid"] then
- equipSet = equipSet["Hybrid"]
- end
- if equipSet[AccArray[AccIndex]] then
- equipSet = equipSet[AccArray[AccIndex]]
- end
- if buffactive.Impetus and equipSet["Impetus"] then
- equipSet = equipSet["Impetus"]
- end
- if buffactive['Perfect Counter'] then
- equip(set_combine(equipSet,sets.PerfectCounter))
- else
- equip(equipSet)
- end
- else
- equip(sets.Idle[IdleArray[IdleIndex]])
- end
- if HPIndex == 1 then
- equip(sets.HP)
- end
- end
- function buff_change(buff,gain)
- buff = string.lower(buff)
- if buff == "aftermath: lv.3" and gain then -- AM3 Timer Bar --
- 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.]')
- elseif buff == "aftermath: lv.3" then
- send_command('timers delete "Aftermath: Lv.3"')
- add_to_chat(8,'AM3: [OFF]')
- end
- status_change(player.status)
- end
- -- In Game: //gs c (command), Macro: /console gs c (command), Bind: gs c (command) --
- function self_command(command)
- if command == 'C1' then -- Accuracy Level Toggle --
- AccIndex = (AccIndex % #AccArray) + 1
- add_to_chat(158,'Accuracy Level: ' .. AccArray[AccIndex])
- status_change(player.status)
- elseif command == 'C5' then -- Auto Update Toggle --
- status_change(player.status)
- add_to_chat(158,'Status Update')
- elseif command == 'C2' then -- Hybrid Toggle --
- if Armor == 'Hybrid' then
- Armor = 'None'
- add_to_chat(8,'Hybrid Set: [Unlocked]')
- else
- Armor = 'Hybrid'
- add_to_chat(158,'Hybrid Set: '..AccArray[AccIndex])
- end
- status_change(player.status)
- elseif command == 'C7' then -- PDT Toggle --
- if Armor == 'PDT' then
- Armor = 'None'
- add_to_chat(8,'PDT Set: [Unlocked]')
- else
- Armor = 'PDT'
- add_to_chat(158,'PDT Set: [Locked]')
- end
- status_change(player.status)
- elseif command == 'C15' then -- MDT Toggle --
- if Armor == 'MDT' then
- Armor = 'None'
- add_to_chat(8,'MDT Set: [Unlocked]')
- else
- Armor = 'MDT'
- add_to_chat(158,'MDT Set: [Locked]')
- end
- status_change(player.status)
- elseif command == 'C3' then -- HP Toggle --
- if HPIndex == 1 then
- HPIndex = 0
- add_to_chat(8,'HP Set: [Unlocked]')
- else
- HPIndex = 1
- add_to_chat(158,'HP Set: [locked]')
- end
- status_change(player.status)
- 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
Advertisement
Add Comment
Please, Sign In to add comment