Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- *** Credit goes to Flippant for helping me with Gearswap *** --
- -- ** I Use Some of Motenten's Functions ** --
- -- All Credit goes to Bokura and her Credit notes, I Simply altered a few things to make it work for me and simplify it slightly--
- function get_sets()
- include('organizer-lib')
- --KeyBinds
- send_command('bind ^f1 gs c C7')
- send_command('bind ^f2 gs c C15')
- send_command('bind ^f3 gs c C16')
- send_command('bind !f1 gs c C2')
- send_command('bind !f2 gs c C10')
- send_command('bind !f3 gs c C5')
- AccIndex = 1
- AccArray = {"LowACC","MidACC","HighACC","MaxACC"} -- 4 Levels Of Accuracy Sets For TP/WS/Hybrid. First Set Is LowACC. Add More ACC Sets If Needed Then Create Your New ACC Below. Most of These Sets Are Empty So You Need To Edit Them On Your Own. Remember To Check What The Combined Set Is For Each Sets. --
- WeaponIndex = 1
- WeaponArray = {"Chango","Ukonvasara","Ragnarok","Bravura","Quint","Generic"} -- Default Main Weapon Is Ukonvasara. Can Delete Any Weapons/Sets That You Don't Need Or Replace/Add The New Weapons That You Want To Use. --
- IdleIndex = 1
- IdleArray = {"Movement","Regen"} -- Default Idle Set Is Movement --
- Armor = 'None'
- Twilight = 'None'
- Attack = 'OFF' -- Set Default WS Attack Set ON or OFF Here --
- Retaliation = 'OFF' -- Set Default Retaliation ON or OFF Here --
- select_default_macro_book() -- Change Default Macro Book At The End --
- -- Gavialis Helm --
- elements = {}
- elements.equip = {head="Gavialis Helm"}
- elements["Ukko's Fury"] = S{"Light","Lightning","Wind"}
- elements.Resolution = S{"Lightning","Wind","Earth"}
- sets.Idle = {}
- -- Idle/Town Sets --
- sets.Idle.Regen = {
- ammo="Staunch Tathlum",
- head="Sulevia's Mask +1",
- body="Sulevia's Plate. +2",
- hands="Sulev. Gauntlets +2",
- legs="Sulev. Cuisses +1",
- feet="Sulev. Leggings +2",
- neck="Loricate Torque +1",
- waist="Ioskeha Belt",
- left_ear="Telos Earring",
- right_ear="Cessance Earring",
- left_ring="Defending Ring",
- right_ring="Vocane Ring",
- back="Agema Cape"}
- sets.Idle.Regen.Chango = set_combine(sets.Idle.Regen,
- {main="Chango",
- sub="Bloodrain Strap"})
- sets.Idle.Regen.Ukonvasara = set_combine(sets.Idle.Regen,
- {main="Ukonvasara",
- sub="Bloodrain Strap"})
- sets.Idle.Regen.Ragnarok = set_combine(sets.Idle.Regen,
- {main="Ragnarok",
- sub="Bloodrain Strap"})
- sets.Idle.Regen.Bravura = set_combine(sets.Idle.Regen,
- {main="Bravura",
- sub="Bloodrain Strap"})
- sets.Idle.Regen.Quint = set_combine(sets.Idle.Regen,
- {main="Quint Spear",
- sub="Bloodrain Strap"})
- sets.Idle.Regen.Generic = set_combine(sets.Idle.Regen,{})
- -- These 2 sets are here if you want them. Simply add "DW" and/or "Fencer" in the weaponarray after Generic.
- --sets.Idle.Regen.DW = set_combine(sets.Idle.Regen,{})
- --sets.Idle.Regen.Fencer = set_combine(sets.Idle.Regen,{})
- sets.Idle.Movement = set_combine(sets.Idle.Regen,{})
- sets.Idle.Movement.Ukonvasara = set_combine(sets.Idle.Movement,
- {main="Ukonvasara",
- sub="Bloodrain Strap"})
- sets.Idle.Movement.Chango = set_combine(sets.Idle.Movement,
- {main="Chango",
- sub="Bloodrain Strap"})
- sets.Idle.Movement.Ragnarok = set_combine(sets.Idle.Movement,
- {main="Ragnarok",
- sub="Bloodrain Strap"})
- sets.Idle.Movement.Bravura = set_combine(sets.Idle.Movement,
- {main="Bravura",
- sub="Bloodrain Strap"})
- sets.Idle.Movement.Quint = set_combine(sets.Idle.Movement,
- {main="Quint Spear",
- sub="Bloodrain Strap"})
- sets.Idle.Movement.Generic = set_combine(sets.Idle.Movement,{})
- --sets.Idle.Movement.DW = set_combine(sets.Idle.Movement,{})
- --sets.Idle.Movement.Fencer = set_combine(sets.Idle.Movement,{})
- sets.Twilight = {head="Twilight Helm",body="Twilight Mail"}
- -- TP Base Set --
- sets.TP = {}
- -- Chango TP Sets --
- sets.TP.Chango = {
- ammo="Ginsen",
- head="Flam. Zucchetto +2",
- body="Valorous Mail",
- hands="Sulev. Gauntlets +2",
- legs="Pumm. Cuisses +2",
- feet="Pumm. Calligae +2",
- neck="Ainia Collar",
- waist="Ioskeha Belt",
- left_ear="Brutal Earring",
- right_ear="Cessance Earring",
- left_ring="Petrov Ring",
- right_ring="Chirich Ring",
- back={ name="Cichol's Mantle", augments={'STR+30','Accuracy+20 Attack+20','"Dbl.Atk."+10',}}}
- sets.TP.Chango.MidACC = set_combine(sets.TP.Chango,{})
- sets.TP.Chango.HighACC = set_combine(sets.TP.Chango.MidACC,{})
- sets.TP.Chango.MaxACC = set_combine(sets.TP.Chango.HighACC,{})
- -- Ukonvasara TP Sets --
- sets.TP.Ukonvasara = {
- ammo="Ginsen",
- head="Flam. Zucchetto +2",
- body="Valorous Mail",
- hands="Sulev. Gauntlets +2",
- legs="Pumm. Cuisses +2",
- feet="Pumm. Calligae +2",
- neck="Ainia Collar",
- waist="Ioskeha Belt",
- left_ear="Brutal Earring",
- right_ear="Cessance Earring",
- left_ring="Petrov Ring",
- right_ring="Chirich Ring",
- back={ name="Cichol's Mantle", augments={'STR+30','Accuracy+20 Attack+20','"Dbl.Atk."+10',}}}
- sets.TP.Ukonvasara.MidACC = set_combine(sets.TP.Ukonvasara,{})
- sets.TP.Ukonvasara.HighACC = set_combine(sets.TP.Ukonvasara.MidACC,{})
- sets.TP.Ukonvasara.MaxACC = set_combine(sets.TP.Ukonvasara.HighACC,{})
- -- Ragnarok TP Sets --
- sets.TP.Ragnarok = {
- ammo="Ginsen",
- head="Flam. Zucchetto +2",
- body="Flamma Korazin +2",
- hands="Sulev. Gauntlets +2",
- legs="Pumm. Cuisses +2",
- feet="Valorous Greaves",
- neck="Ainia Collar",
- waist="Ioskeha Belt",
- left_ear="Brutal Earring",
- right_ear="Cessance Earring",
- left_ring="Petrov Ring",
- right_ring="Chirich Ring",
- back={ name="Cichol's Mantle", augments={'STR+30','Accuracy+20 Attack+20','"Dbl.Atk."+10',}}}
- sets.TP.Ragnarok.MidACC = set_combine(sets.TP.Ragnarok,{})
- sets.TP.Ragnarok.HighACC = set_combine(sets.TP.Ragnarok.MidACC,{})
- sets.TP.Ragnarok.MaxACC = set_combine(sets.TP.Ragnarok.HighACC,{})
- -- Bravura TP Sets --
- sets.TP.Bravura = {
- ammo="Ginsen",
- head="Flam. Zucchetto +2",
- body="Valorous Mail",
- hands="Sulev. Gauntlets +2",
- legs="Pumm. Cuisses +2",
- feet="Pumm. Calligae +2",
- neck="Ainia Collar",
- waist="Ioskeha Belt",
- left_ear="Brutal Earring",
- right_ear="Cessance Earring",
- left_ring="Petrov Ring",
- right_ring="Chirich Ring",
- back={ name="Cichol's Mantle", augments={'STR+30','Accuracy+20 Attack+20','"Dbl.Atk."+10',}}}
- sets.TP.Bravura.MidACC = set_combine(sets.TP.Bravura,{})
- sets.TP.Bravura.HighACC = set_combine(sets.TP.Bravura.MidACC,{})
- sets.TP.Bravura.MaxACC = set_combine(sets.TP.Bravura.HighACC,{})
- -- Quint Spear (Omen) TP Sets --
- sets.TP.Quint = {
- ammo="Ginsen",
- head="Flam. Zucchetto +2",
- body="Flamma Korazin +2",
- hands="Sulev. Gauntlets +2",
- legs="Pumm. Cuisses +2",
- feet="Pumm. Calligae +2",
- neck="Ainia Collar",
- waist="Ioskeha Belt",
- left_ear="Telos Earring",
- right_ear="Cessance Earring",
- left_ring="Petrov Ring",
- right_ring="Chirich Ring",
- back={ name="Cichol's Mantle", augments={'STR+30','Accuracy+20 Attack+20','"Dbl.Atk."+10',}}}
- sets.TP.Quint.MidACC = set_combine(sets.TP.Quint,{})
- sets.TP.Quint.HighACC = set_combine(sets.TP.Quint.MidACC,{})
- sets.TP.Quint.MaxACC = set_combine(sets.TP.Quint.HighACC,{})
- --Duel Wield Set
- sets.TP.DW = {
- }
- sets.TP.DW.MidACC = set_combine(sets.TP.DW,{})
- sets.TP.DW.HighACC = set_combine(sets.TP.DW.MidACC,{})
- sets.TP.DW.MaxACC = set_combine(sets.TP.DW.HighACC,{})
- --Fencer Set
- sets.TP.Fencer = {}
- sets.TP.Fencer.MidACC = set_combine(sets.TP.Fencer,{})
- sets.TP.Fencer.HighACC = set_combine(sets.TP.Fencer.MidACC,{})
- sets.TP.Fencer.MaxACC = set_combine(sets.TP.Fencer.HighACC,{})
- --Generic Set
- sets.TP.Generic = {}
- sets.TP.Generic.MidACC = set_combine(sets.TP.Generic,{})
- sets.TP.Generic.HighACC = set_combine(sets.TP.Generic.MidACC,{})
- sets.TP.Generic.MaxACC = set_combine(sets.TP.Generic.HighACC,{})
- -- Mighty Strikes TP Set --
- sets.TP.MS = {}
- -- Retaliation Set --
- sets.TP.Retaliation = {hands="Pumm. Mufflers +2",feet="Boii Calligae +1"}
- -- AM3 Rancor ON Mantle --
- sets.TP.Rancor = {back=""}
- -- PDT/MDT Sets --
- sets.PDT = {
- ammo="Staunch Tathlum",
- head="Sulev. Mask +1",
- body="Sulev. Plate. +2",
- hands="Sulev. Gauntlets +2",
- legs="Sulev. Cuisses +1",
- feet="Sulev. Leggings +2",
- neck="Loricate Torque +1",
- waist="Ioskeha Belt",
- left_ear="Telos Earring",
- right_ear="Cessance Earring",
- left_ring="Defending Ring",
- right_ring="Vocane Ring",
- back="Agema Cape"}
- sets.MDT = set_combine(sets.PDT,{})
- -- Hybrid/Kiting Sets for me personally this is my Bravura AM set when expecting to take dmg --
- sets.TP.Hybrid = {
- ammo="Staunch Tathlum",
- head="Sulevia's Mask +1",
- body="Emicho Haubert",
- hands="Pumm. Mufflers +2",
- legs="Pumm. Cuisses +2",
- feet="Pumm. Calligae +2",
- neck="Loricate Torque +1",
- waist="Ioskeha Belt",
- left_ear="Telos Earring",
- right_ear="Zennaroi Earring",
- left_ring="Defending Ring",
- right_ring="Vocane Ring",
- back="Agema cape"}
- sets.TP.Hybrid.MidACC = set_combine(sets.TP.Hybrid,{})
- sets.TP.Hybrid.HighACC = set_combine(sets.TP.Hybrid.MidACC,{})
- sets.TP.Hybrid.MaxACC = set_combine(sets.TP.Hybrid.HighACC,{})
- sets.Kiting = set_combine(sets.PDT,{feet="Hermes' Sandals"})
- -- CP Mantle --
- sets.CP = {back="Mecisto. Mantle"}
- -- WS Base Set --
- sets.WS = {
- ammo="Seething Bomblet +1",
- head="Sulev. Mask +1",
- body="Sulev. Plate. +2",
- hands="Sulev. Gauntlets +2",
- legs="Sulev. Cuisses +1",
- feet="Sulev. Leggings +2",
- neck="Fotia Gorget",
- waist="Fotia Belt",
- left_ear="Telos Earring",
- right_ear="Moonshade Earring",
- left_ring="Ifrit Ring",
- right_ring="Ifrit Ring",
- back={ name="Cichol's Mantle", augments={'STR+30','Accuracy+20 Attack+20','"Dbl.Atk."+10',}}}
- -- Upheaval Sets --
- sets.WS.Upheaval = {
- ammo="Knobkierrie",
- head={ name="Odyssean Helm", augments={'Accuracy+28','Weapon skill damage +3%','STR+11','Attack+4',}},
- body="Valorous mail",
- hands="Sulev. Gauntlets +2",
- legs={ name="Odyssean Cuisses", augments={'Accuracy+21 Attack+21','Weapon skill damage +4%','Accuracy+15','Attack+11',}},
- feet="Sulev. Leggings +2",
- neck="Fotia Gorget",
- waist="Fotia Belt",
- left_ear="Telos Earring",
- right_ear="Moonshade Earring",
- left_ring="Ifrit Ring",
- right_ring="Ifrit Ring",
- back={ name="Cichol's Mantle", augments={'VIT+20','Accuracy+20 Attack+20','Weapon skill damage +10%',}}}
- sets.WS.Upheaval.MidACC = set_combine(sets.WS.Upheaval,{
- right_ear="Cessance Earring",
- left_ring="Cacoethic Ring +1",
- right_ring="Chirich Ring"})
- sets.WS.Upheaval.HighACC = set_combine(sets.WS.Upheaval.MidACC,{})
- sets.WS.Upheaval.MaxACC = set_combine(sets.WS.Upheaval.HighACC,{})
- -- Upheaval(Attack) Set --
- sets.WS.Upheaval.ATT = set_combine(sets.WS.Upheaval,{})
- -- Ukko's Fury Sets --
- sets.WS["Ukko's Fury"] = {
- ammo="Yetshila",
- head="Argosy Celata",
- body="Argosy Hauberk",
- hands="Argosy Mufflers",
- legs="Argosy Breeches",
- feet="Boii Calligae +1",
- neck="Fotia Gorget",
- waist="Fotia Belt",
- left_ear="Brutal Earring",
- right_ear="Moonshade Earring",
- left_ring="ifrit Ring",
- right_ring="Ifrit Ring",
- back={ name="Cichol's Mantle", augments={'STR+30','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}}}
- sets.WS["Ukko's Fury"].MidACC = set_combine(sets.WS["Ukko's Fury"],{})
- sets.WS["Ukko's Fury"].HighACC = set_combine(sets.WS["Ukko's Fury"].MidACC,{})
- sets.WS["Ukko's Fury"].MaxACC = set_combine(sets.WS["Ukko's Fury"].HighACC,{})
- -- Ukko's Fury(Attack) Set --
- sets.WS["Ukko's Fury"].ATT = set_combine(sets.WS["Ukko's Fury"],{})
- -- King's Justice Sets --
- sets.WS["King's Justice"] = {
- ammo="Seething Bomblet +1",
- head="Argosy Celata",
- body="Argosy Hauberk",
- hands="Argosy Mufflers",
- legs="Argosy Breeches",
- feet="Argosy Sollerets +1",
- neck="Fotia Gorget",
- waist="Fotia Belt",
- left_ear="Moonshade Earring",
- right_ear="Cessance Earring",
- left_ring="Ifrit Ring",
- right_ring="Ifrit Ring",
- back={ name="Cichol's Mantle", augments={'STR+30','Accuracy+20 Attack+20','"Dbl.Atk."+10',}}}
- sets.WS["King's Justice"].MidACC = set_combine(sets.WS["King's Justice"],{
- left_ear="Telos Earring",
- left_ring="Cacoethic Ring +1",
- right_ring="Chirich Ring"})
- sets.WS["King's Justice"].HighACC = set_combine(sets.WS["King's Justice"].MidACC,{})
- sets.WS["King's Justice"].MaxACC = set_combine(sets.WS["King's Justice"].HighACC,{})
- -- Metatron Torment Sets --
- sets.WS["Metatron Torment"] = {
- ammo="Seething Bomblet +1",
- head="Sulev. Mask +1",
- body="Sulev. Plate. +2",
- hands="Sulev. Gauntlets +2",
- legs="Sulev. Cuisses +1",
- feet="Sulev. Leggings +2",
- neck="Fotia Gorget",
- waist="Fotia Belt",
- left_ear="Telos Earring",
- right_ear="Moonshade Earring",
- left_ring="Ifrit Ring",
- right_ring="Ifrit Ring",
- back={ name="Cichol's Mantle", augments={'STR+30','Accuracy+20 Attack+20','"Dbl.Atk."+10',}}}
- sets.WS["Metatron Torment"].MidACC = set_combine(sets.WS["Metatron Torment"],{
- })
- sets.WS["Metatron Torment"].HighACC = set_combine(sets.WS["Metatron Torment"].MidACC,{})
- sets.WS["Metatron Torment"].MaxACC = set_combine(sets.WS["Metatron Torment"].HighACC,{})
- -- Fell Cleave Set --
- sets.WS["Fell Cleave"] = {
- ammo="Seething Bomblet +1",
- head="Sulev. Mask +1",
- body="Sulev. Plate. +2",
- hands="Sulev. Gauntlets +2",
- legs="Sulev. Cuisses +1",
- feet="Sulev. Leggings +2",
- neck="Fotia Gorget",
- waist="Fotia Belt",
- left_ear="Telos Earring",
- right_ear="Moonshade Earring",
- left_ring="Ifrit Ring",
- right_ring="Ifrit Ring",
- back={ name="Cichol's Mantle", augments={'STR+30','Accuracy+20 Attack+20','"Dbl.Atk."+10',}}}
- -- Resolution --
- sets.WS.Resolution = {
- ammo="Seeth. Bomblet +1",
- head="Argosy Celata",
- body="Argosy Hauberk",
- hands="Argosy Mufflers",
- legs="Argosy Breeches",
- feet="Argosy Sollerets +1",
- neck="Fotia Gorget",
- waist="Fotia Belt",
- left_ear="Telos Earring",
- right_ear="Moonshade Earring",
- left_ring="Ifrit Ring",
- right_ring="Ifrit Ring",
- back={ name="Cichol's Mantle", augments={'STR+30','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}}}
- sets.WS.Resolution.MidACC = set_combine(sets.WS.Resolution,{})
- sets.WS.Resolution.HighACC = set_combine(sets.WS.Resolution.MidACC,{})
- sets.WS.Resolution.MaxACC = set_combine(sets.WS.Resolution.HighACC,{})
- -- Scourge --
- sets.WS.Scourge = {
- ammo="Seething Bomblet +1",
- head="Sulevia's Mask +1",
- body="Sulevia's Plate. +2",
- hands="Sulev. Gauntlets +2",
- legs="Argosy Breeches",
- feet="Sulev. Leggings +2",
- neck="Fotia Gorget",
- waist="Grunfeld Rope",
- left_ear="Brutal Earring",
- right_ear="Moonshade Earring",
- left_ring="Ifrit Ring",
- right_ring="Ifrit Ring",
- back={ name="Cichol's Mantle", augments={'STR+30','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}}}
- sets.WS.Scourge.MidACC = set_combine(sets.WS.Scourge,{
- left_ear="Telos Earring",
- left_ring="Cacoethic Ring +1",
- right_ring="Chirich Ring"
- })
- sets.WS.Scourge.HighACC = set_combine(sets.WS.Scourge.MidACC,{})
- sets.WS.Scourge.MaxACC = set_combine(sets.WS.Scourge.HighACC,{})
- -- Magic Based WS --
- sets.WS.Cloudsplitter = {
- ammo="Seething Bomblet +1",
- head={ name="Jumalik Helm", augments={'MND+10','"Mag.Atk.Bns."+15','Magic burst dmg.+10%','"Refresh"+1',}},
- body={ name="Found. Breastplate", augments={'Accuracy+11','Mag. Acc.+10','Attack+10','"Mag.Atk.Bns."+9',}},
- hands={ name="Founder's Gauntlets", augments={'STR+10','Attack+15','"Mag.Atk.Bns."+15','Phys. dmg. taken -5%',}},
- legs={ name="Eschite Cuisses", augments={'"Mag.Atk.Bns."+25','"Conserve MP"+6','"Fast Cast"+5',}},
- feet={ name="Founder's Greaves", augments={'VIT+10','Accuracy+15','"Mag.Atk.Bns."+15','Mag. Evasion+15',}},
- neck="Sanctity Necklace",
- waist="Eschan Stone",
- left_ear="Friomisi Earring",
- right_ear="Hecate's Earring",
- left_ring="Shiva Ring",
- right_ring="Rufescent Ring",
- back="Toro Cape"}
- sets.WS['Sanguine Blade'] = {
- ammo="Seething Bomblet +1",
- head={ name="Jumalik Helm", augments={'MND+10','"Mag.Atk.Bns."+15','Magic burst dmg.+10%','"Refresh"+1',}},
- body={ name="Found. Breastplate", augments={'Accuracy+11','Mag. Acc.+10','Attack+10','"Mag.Atk.Bns."+9',}},
- hands={ name="Founder's Gauntlets", augments={'STR+10','Attack+15','"Mag.Atk.Bns."+15','Phys. dmg. taken -5%',}},
- legs={ name="Eschite Cuisses", augments={'"Mag.Atk.Bns."+25','"Conserve MP"+6','"Fast Cast"+5',}},
- feet={ name="Founder's Greaves", augments={'VIT+10','Accuracy+15','"Mag.Atk.Bns."+15','Mag. Evasion+15',}},
- neck="Sanctity Necklace",
- waist="Eschan Stone",
- left_ear="Friomisi Earring",
- right_ear="Hecate's Earring",
- left_ring="Shiva Ring",
- right_ring="Rufescent Ring",
- back="Toro Cape"}
- -- Mighty Strikes WS Set --
- sets.MS_WS = {ammo="Yetshila", feet="Boii Calligae +1"}
- -- JA Sets --
- sets.JA = {}
- sets.JA.Berserk = {feet="Agoge Calligae +1", body="Pumm. Lorica +2", back="Cichol's Mantle"}
- sets.JA.Aggressor = {head="Pummeler's mask +2",body="Agoge Lorica +1"}
- sets.JA.["Blood Rage"] = {body="Boii Lorica +1"}
- sets.JA.Warcry = {head="Agoge Mask +1"}
- sets.JA.Tomahawk = {ammo="Thr. Tomahawk",feet="Agoge Calligae +1"}
- sets.JA.["Mighty Strikes"] = {hands="Agoge Mufflers +1"}
- sets.JA.Retaliation = {hands="Pummeler's Mufflers +2",feet="Boii Calligae +1"}
- sets.JA.["Warrior\'s Charge"] = {legs="Agoge Cuisses +1"}
- sets.JA.Restraint = {hands="Boii Mufflers +1"}
- -- Waltz Set --
- sets.Waltz = {}
- sets.Precast = {}
- -- Fastcast Set --
- sets.Precast.FastCast = {
- ammo="Sapience Orb",
- body="Odyssean Chestplate",
- hands="Leyline Gloves",
- legs={ name="Eschite Cuisses", augments={'"Mag.Atk.Bns."+25','"Conserve MP"+6','"Fast Cast"+5',}},
- feet={ name="Odyssean Greaves", augments={'Accuracy+28','"Fast Cast"+1','Attack+13',}},
- neck="Baetyl Pendant",
- left_ear="Loquac. Earring",
- right_ear="Etiolation Earring",
- left_ring="Veneficium Ring"}
- sets.Midcast = {}
- -- Magic Haste Set --
- sets.Midcast.Haste = set_combine(sets.PDT,{})
- sets.organizer = {
- sushi1="sublime Sushi +1",
- sushi="sublime Sushi",
- Bsushi1="Bream Sushi +1",
- Bsushi="Bream Sushi",
- DeepF="Deep Fried Shrimp",
- Red1="Red Curry Bun +1",
- Red="Red Curry Bun",
- Cut="Cutlet Sandwich",
- Soy="Soy Ramen",
- Rem="Remedy",
- Pan="Panacea"}
- end
- function pretarget(spell,action)
- if spell.action_type == 'Magic' and buffactive.silence then -- Auto Use Echo Drops If You Are Silenced --
- cancel_spell()
- send_command('input /item "Echo Drops" <me>')
- elseif spell.english == "Berserk" and buffactive.Berserk then -- Change Berserk To Aggressor If Berserk Is On --
- cancel_spell()
- send_command('Aggressor')
- elseif spell.english == "Seigan" and buffactive.Seigan then -- Change Seigan To Third Eye If Seigan Is On --
- cancel_spell()
- send_command('ThirdEye')
- elseif spell.english == "Meditate" and player.tp > 2900 then -- Cancel Meditate If TP Is Above 2900 --
- cancel_spell()
- add_to_chat(123, spell.name .. ' Canceled: ['..player.tp..' TP]')
- elseif spell.type == 'WeaponSkill' and player.status == 'Engaged' then
- if spell.english ~= 'Bora Axe' and spell.name ~= 'Mistral Axe' and spell.target.distance > target_distance then -- Cancel WS If You Are Out Of Range --
- cancel_spell()
- add_to_chat(123, spell.name..' Canceled: [Out of Range]')
- return
- end
- end
- end
- function precast(spell,action)
- if spell.type == "WeaponSkill" then
- if player.status ~= 'Engaged' then -- Cancel WS If You Are Not Engaged. Can Delete It If You Don't Need It --
- cancel_spell()
- add_to_chat(123,'Unable To Use WeaponSkill: [Disengaged]')
- return
- else
- equipSet = sets.WS
- if equipSet[spell.english] then
- equipSet = equipSet[spell.english]
- end
- if Attack == 'ON' then
- equipSet = equipSet["ATT"]
- end
- if equipSet[AccArray[AccIndex]] then
- equipSet = equipSet[AccArray[AccIndex]]
- end
- if elements[spell.name] and elements[spell.name]:contains(world.day_element) then
- equipSet = set_combine(equipSet,elements.equip)
- end
- if buffactive["Mighty Strikes"] then -- Equip MS_WS Set When You Have Mighty Strikes On --
- equipSet = set_combine(equipSet,sets.MS_WS)
- end
- if buffactive['Reive Mark'] then -- Equip Ygnas's Resolve +1 During Reive --
- equipSet = set_combine(equipSet,{neck="Ygnas's Resolve +1"})
- end
- if (spell.english == "Ukko's Fury" or spell.english == "King's Justice") then
- if world.time <= (7*60) or world.time >= (17*60) then -- Equip Lugra Earring +1 From Dusk To Dawn --
- equipSet = set_combine(equipSet,{ear1="Lugra Earring +1"})
- end
- end
- if spell.english == "Upheaval" then
- if world.time <= (7*60) or world.time >= (17*60) then -- Equip Lugra Earring +1 From Dusk To Dawn --
- equipSet = set_combine(equipSet,{ear1="Lugra Earring +1"})
- end
- end
- end
- equip(equipSet)
- elseif spell.type == "JobAbility" then
- if sets.JA[spell.english] then
- equip(sets.JA[spell.english])
- end
- elseif spell.action_type == 'Magic' then
- if spell.english == 'Utsusemi: Ni' then
- if buffactive['Copy Image (3)'] then
- cancel_spell()
- add_to_chat(123, spell.name .. ' Canceled: [3 Images]')
- return
- else
- equip(sets.Precast.FastCast)
- end
- else
- equip(sets.Precast.FastCast)
- end
- elseif spell.type == "Waltz" then
- refine_waltz(spell,action)
- equip(sets.Waltz)
- elseif spell.english == 'Spectral Jig' and buffactive.Sneak then
- cast_delay(0.2)
- send_command('cancel Sneak')
- end
- if Twilight == 'Twilight' then
- equip(sets.Twilight)
- end
- end
- function midcast(spell,action)
- if spell.action_type == 'Magic' then
- if spell.english:startswith('Utsusemi') then
- if spell.english == 'Utsusemi: Ichi' and (buffactive['Copy Image'] or buffactive['Copy Image (2)'] or buffactive['Copy Image (3)']) then -- Cancel Copy Image 1, 2 & 3 For Utsusemi: Ichi --
- send_command('@wait 1.7;cancel Copy Image*')
- end
- equip(sets.Midcast.Haste)
- elseif spell.english == 'Monomi: Ichi' then -- Cancel Sneak --
- 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 not spell.interrupted then
- if spell.type == "WeaponSkill" then
- send_command('wait 0.2;gs c TP')
- elseif spell.english == "Blood Rage" then -- Blood Rage Timer/Countdown --
- timer_blood_rage()
- send_command('wait 50;input /echo '..spell.name..': [WEARING OFF IN 10 SEC.];wait 10;input /echo '..spell.name..': [OFF]')
- elseif spell.english == "Tomahawk" then -- Tomahawk Timer/Countdown --
- timer_tomahawk()
- send_command('wait 80;input /echo '..spell.name..': [WEARING OFF IN 10 SEC.];wait 10;timers delete "Tomahawk";input /echo '..spell.name..': [OFF]')
- end
- end
- status_change(player.status)
- end
- function status_change(new,old)
- check_equip_lock()
- if Armor == 'PDT' then
- equip(sets.PDT)
- elseif Armor == 'MDT' then
- equip(sets.MDT)
- elseif Armor == 'Kiting' then
- equip(sets.Kiting)
- --[[ elseif Armor == 'CP' then
- send_command('gs disable back')]]--
- elseif new == 'Engaged' then
- equipSet = sets.TP
- if Armor == 'Hybrid' and equipSet["Hybrid"] then
- equipSet = equipSet["Hybrid"]
- end
- if equipSet[WeaponArray[WeaponIndex]] then
- equipSet = equipSet[WeaponArray[WeaponIndex]]
- end
- if equipSet[AccArray[AccIndex]] then
- equipSet = equipSet[AccArray[AccIndex]]
- end
- if buffactive["Aftermath: Lv.3"] and equipSet["AM3"] then
- if Rancor == 'ON' then -- Default Rancor Toggle Is Rancorous Mantle --
- equipSet = set_combine(equipSet["AM3"],sets.TP.Rancor)
- else -- Use Rancor Toggle For Atheling Mantle --
- equipSet = equipSet["AM3"]
- end
- end
- if buffactive.Aftermath and equipSet["AM"] then
- equipSet = equipSet["AM"]
- end
- if buffactive["Mighty Strikes"] then -- Mighty Strikes TP Set --
- equipSet = set_combine(equipSet,sets.TP.MS)
- end
- if buffactive.Retaliation and Retaliation == 'ON' then -- Use Retaliation Toggle For Retaliation TP Set --
- equipSet = set_combine(equipSet,sets.TP.Retaliation)
- end
- equip(equipSet)
- else
- equipSet = sets.Idle
- if equipSet[IdleArray[IdleIndex]] then
- equipSet = equipSet[IdleArray[IdleIndex]]
- end
- if equipSet[WeaponArray[WeaponIndex]] then
- equipSet = equipSet[WeaponArray[WeaponIndex]]
- end
- if buffactive['Reive Mark'] then -- Equip Ygnas's Resolve +1 During Reive --
- equipSet = set_combine(equipSet,{neck="Ygnas's Resolve +1"})
- end
- equip(equipSet)
- end
- if Twilight == 'Twilight' then
- equip(sets.Twilight)
- end
- end
- function buff_change(buff,gain)
- buff = string.lower(buff)
- if buff == "aftermath: lv.3" then -- AM3 Timer/Countdown --
- if gain then
- send_command('timers create "Aftermath: Lv.3" 180 down;wait 150;input /echo Aftermath: Lv.3 [WEARING OFF IN 30 SEC.];wait 15;input /echo Aftermath: Lv.3 [WEARING OFF IN 15 SEC.];wait 5;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 == "blood rage" and not gain then
- send_command('timers delete "Blood Rage"')
- 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 buff == "sleep" and gain and player.hp > 200 and player.status == "Engaged" then -- Equip Berserker's Torque When You Are Asleep & Have 200+ HP --
- equip({neck="Berserker's Torque"})
- else
- if not midaction() then
- status_change(player.status)
- end
- end
- end
- -- In Game: //gs c (command), Macro: /console gs c (command), Bind: gs c (command) --
- function self_command(command)
- if command == 'C1' then -- Accuracy Toggle --
- AccIndex = (AccIndex % #AccArray) + 1
- add_to_chat(158,'Accuracy Level: ' .. AccArray[AccIndex])
- status_change(player.status)
- elseif command == 'C2' then -- Main Weapon Toggle --
- WeaponIndex = (WeaponIndex % #WeaponArray) + 1
- add_to_chat(158,'Main Weapon: '..WeaponArray[WeaponIndex])
- 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 == 'C16' then -- Hybrid Toggle --
- if Armor == 'Hybrid' then
- Armor = 'None'
- add_to_chat(123,'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(123,'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(123,'MDT Set: [Unlocked]')
- else
- Armor = 'MDT'
- add_to_chat(158,'MDT Set: [Locked]')
- end
- status_change(player.status)
- elseif command == 'C12' then -- Kiting Toggle --
- if Armor == 'Kiting' then
- Armor = 'None'
- add_to_chat(123,'Kiting Set: [Unlocked]')
- else
- Armor = 'Kiting'
- add_to_chat(158,'Kiting Set: [Locked]')
- end
- status_change(player.status)
- --[[elseif command == 'C17' then -- CP Back Toggle --
- if Armor == 'CP' then
- Armor = 'None'
- add_to_chat(123,'CP Back Set: [Unlocked]')
- send_command('gs enable back')
- else
- Armor = 'CP'
- equipSet = set_combine(equipSet,{back="Mecisto. Mantle"})
- add_to_chat(158,'CP Back Set: [Locked]')
- end
- status_change(player.status)]]--
- elseif command == 'C10' then -- Retaliation Toggle --
- if Retaliation == 'ON' then
- Retaliation = 'OFF'
- add_to_chat(123,'Retaliation Set: [Unlocked]')
- else
- Retaliation = 'ON'
- add_to_chat(158,'Retaliation Set: [Locked]')
- end
- status_change(player.status)
- elseif command == 'C9' then -- Attack Toggle --
- if Attack == 'ON' then
- Attack = 'OFF'
- add_to_chat(123,'Attack: [OFF]')
- else
- Attack = 'ON'
- add_to_chat(158,'Attack: [ON]')
- end
- status_change(player.status)
- elseif command == 'C3' then -- Twilight Toggle --
- if Twilight == 'Twilight' then
- Twilight = 'None'
- add_to_chat(123,'Twilight Set: [Unlocked]')
- else
- Twilight = 'Twilight'
- add_to_chat(158,'Twilight 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 == 'TP' then
- add_to_chat(158,'TP Return: ['..tostring(player.tp)..']')
- elseif command:match('^SC%d$') then
- send_command('//' .. sc_map[command])
- end
- end
- function check_equip_lock() -- Lock Equipment Here --
- if player.equipment.left_ring == "Warp Ring" or player.equipment.left_ring == "Capacity Ring" or player.equipment.right_ring == "Warp Ring" or player.equipment.right_ring == "Capacity Ring" then
- disable('ring1','ring2')
- elseif player.equipment.back == "Mecisto. Mantle" or player.equipment.back == "Aptitude Mantle +1" or player.equipment.back == "Aptitude Mantle" then
- disable('back')
- else
- enable('ring1','ring2','back')
- end
- end
- function timer_blood_rage()
- local duration = 60
- send_command('timers create "Blood Rage" '..tostring(duration)..' down')
- end
- function timer_tomahawk()
- local duration = 90
- send_command('timers create "Tomahawk" '..tostring(duration)..' down')
- end
- function refine_waltz(spell,action)
- if spell.type ~= 'Waltz' then
- return
- end
- if spell.name == "Healing Waltz" or spell.name == "Divine Waltz" or spell.name == "Divine Waltz II" then
- return
- end
- local newWaltz = spell.english
- local waltzID
- local missingHP
- if spell.target.type == "SELF" then
- missingHP = player.max_hp - player.hp
- elseif spell.target.isallymember then
- local target = find_player_in_alliance(spell.target.name)
- local est_max_hp = target.hp / (target.hpp/100)
- missingHP = math.floor(est_max_hp - target.hp)
- end
- if missingHP ~= nil then
- if player.sub_job == 'DNC' then
- if missingHP < 40 and spell.target.name == player.name then
- add_to_chat(8,'Full HP!')
- cancel_spell()
- return
- elseif missingHP < 150 then
- newWaltz = 'Curing Waltz'
- waltzID = 190
- elseif missingHP < 300 then
- newWaltz = 'Curing Waltz II'
- waltzID = 191
- else
- newWaltz = 'Curing Waltz III'
- waltzID = 192
- end
- else
- return
- end
- end
- local waltzTPCost = {['Curing Waltz'] = 20, ['Curing Waltz II'] = 35, ['Curing Waltz III'] = 50}
- local tpCost = waltzTPCost[newWaltz]
- local downgrade
- if player.tp < tpCost and not buffactive.trance then
- if player.tp < 20 then
- add_to_chat(8, 'Insufficient TP ['..tostring(player.tp)..']. Cancelling.')
- cancel_spell()
- return
- elseif player.tp < 35 then
- newWaltz = 'Curing Waltz'
- elseif player.tp < 50 then
- newWaltz = 'Curing Waltz II'
- end
- downgrade = 'Insufficient TP ['..tostring(player.tp)..']. Downgrading to '..newWaltz..'.'
- end
- if newWaltz ~= spell.english then
- send_command('@input /ja "'..newWaltz..'" '..tostring(spell.target.raw))
- if downgrade then
- add_to_chat(158, downgrade)
- end
- cancel_spell()
- return
- end
- if missingHP > 0 then
- add_to_chat(158,'Trying to cure '..tostring(missingHP)..' HP using '..newWaltz..'.')
- end
- end
- function find_player_in_alliance(name)
- for i,v in ipairs(alliance) do
- for k,p in ipairs(v) do
- if p.name == name then
- return p
- end
- end
- end
- end
- function sub_job_change(newSubjob, oldSubjob)
- select_default_macro_book()
- end
- function set_macro_page(set,book)
- if not tonumber(set) then
- add_to_chat(123,'Error setting macro page: Set is not a valid number ('..tostring(set)..').')
- return
- end
- if set < 1 or set > 10 then
- add_to_chat(123,'Error setting macro page: Macro set ('..tostring(set)..') must be between 1 and 10.')
- return
- end
- if book then
- if not tonumber(book) then
- add_to_chat(123,'Error setting macro page: book is not a valid number ('..tostring(book)..').')
- return
- end
- if book < 1 or book > 20 then
- add_to_chat(123,'Error setting macro page: Macro book ('..tostring(book)..') must be between 1 and 20.')
- return
- end
- send_command('@input /macro book '..tostring(book)..';wait .1;input /macro set '..tostring(set))
- else
- send_command('@input /macro set '..tostring(set))
- end
- end
- function select_default_macro_book()
- -- Default macro set/book
- if player.sub_job == 'SAM' then
- set_macro_page(1, 5)
- elseif player.sub_job == 'NIN' then
- set_macro_page(2, 5)
- elseif player.sub_job == 'BLU' then
- set_macro_page(3, 5)
- elseif player.sub_job == 'DNC' then
- set_macro_page(4, 5)
- else
- set_macro_page(5, 5)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement