Advertisement
Arnan

BLU Lua January 2018

Jan 3rd, 2018
139
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 85.06 KB | None | 0 0
  1.  
  2.         -----------------------------------------------
  3.         -- *** Arnan Blue Mage Gearswap Lua File *** --
  4.         -----------------------------------------------
  5.        
  6.             -- Things to do --
  7.            
  8.                 -- Fix Blue Magic magic bursting
  9.                 -- Add Vagary spells
  10.                
  11.             -- Commands --
  12.                
  13.                 -- In Game: //gs c, Macro: /console gs c, Bind: gs c --
  14.            
  15.                 -- gs c acc         Toggle accuracy tier for TP/WS
  16.                 -- gs c dw          Toggle Dual Wield tiers
  17.                 -- gs c idle        Toggle idle sets
  18.                
  19.                 -- gs c pdt         PDT on/off
  20.                 -- gs c mdt         MDT on/off
  21.                 -- gs c kiting      Kiting on/off
  22.                 -- gs c hybrid      Hybrid on/off
  23.                
  24.                 -- gs c th          Treasure Hunter TP gear on/off
  25.                 -- gs c thaumas     Thaumas Coat on/off
  26.                 -- gs c mb          Magic Burst on/off
  27.    
  28.         ----------
  29.         -- Sets --
  30.         ----------
  31.  
  32. function get_sets()
  33.         AccIndex = 1
  34.         AccArray = {"LowACC","MidACC","HighACC","MaxACC"} -- 4 Levels Of Accuracy Sets For TP/WS. Default ACC Set Is LowACC (1) --
  35.         WeaponIndex = 3
  36.         WeaponArray = {"Single","DW3","DW4"} -- Amount of Dual Wield used for TP. Default is DW4 (3) --
  37.         IdleIndex = 1
  38.         IdleArray = {"Full","DT","Warp"} -- Default Idle Set Is Full (1) --
  39.         Armor = 'None'
  40.         target_distance = 6 -- Set Default Distance Here --
  41.         Thaumas = 'OFF' -- Set Default Thaumas Coat ON or OFF Here --
  42.         TH = 'OFF' -- Set Default TH ON or OFF Here --
  43.         MB = 'OFF' -- Set Default Magic Burst ON or OFF Here --
  44.         Cure_Spells = {"Cure","Cure II","Cure III","Cure IV"} -- Cure Degradation --
  45.         Curaga_Spells = {"Curaga","Curaga II"} -- Curaga Degradation --
  46.         send_command('input /macro book 1;wait .1;input /macro set 1') -- Change Default Macro Book Here --
  47.         add_to_chat(158,'-----[Blue Mage Lua Loaded]-----')
  48.         add_to_chat(155,'Dual Wield: '..WeaponArray[WeaponIndex])
  49.         add_to_chat(155,'Accuracy Level: ' .. AccArray[AccIndex])
  50.         add_to_chat(155,'Idle Set: ' .. IdleArray[IdleIndex])
  51.         add_to_chat(158,'-----[Weapon Skill Keybinds]-----')
  52.         add_to_chat(155,'F7 - Sanguine Blade, F9 - Expiacion, F10 - Requiescat, F11 - Savage Blade, Delete - Chant du Cygne')
  53.         add_to_chat(155,'F12 - Last Stand (mule), Alt+F12 - Leaden Salute (mule) Alt+Delete - Savage Blade (mule)')
  54.    
  55.         -- Town/City Areas --
  56.         Cities = S{
  57.                         "Ru'lude Gardens","Upper Jeuno","Lower Jeuno","Port Jeuno",
  58.                         "Port Windurst","Windurst Waters","Windurst Woods","Windurst Walls","Heavens Tower",
  59.                         "Port San d'Oria","Northern San d'Oria","Southern San d'Oria",
  60.                         "Port Bastok","Bastok Markets","Bastok Mines","Metalworks",
  61.                         "Aht Urhgan Whitegate","Nashmau","Tavanazian Safehold",
  62.                         "Selbina","Mhaura","Norg","Eastern Adoulin","Western Adoulin","Kazham","Tavnazia"}
  63.                    
  64.         -- Physical Blue Magic --
  65.         PhysicalBlueMagic = S{
  66.                         'Asuran Claws','Bludgeon','Body Slam','Feather Storm','Mandibular Bite','Queasyshroom',
  67.                         'Power Attack','Ram Charge','Saurian Slide','Screwdriver','Sickle Slash','Smite of Rage',
  68.                         'Spinal Cleave','Spiral Spin','Terror Touch'}
  69.  
  70.         -- STR Physical Blue Magic --
  71.         PhysicalBlueMagic_STR = S{
  72.                         'Battle Dance','Bloodrake','Death Scissors','Dimensional Death','Empty Thrash',
  73.                         'Quadrastrike','Uppercut','Tourbillion','Thrashing Assault','Vertical Cleave',
  74.                         'Whirl of Rage'}
  75.  
  76.         -- DEX Physical Blue Magic --
  77.         PhysicalBlueMagic_DEX = S{
  78.                         'Amorphic Spikes','Barbed Crescent','Claw Cyclone','Disseverment','Foot Kick',
  79.                         'Frenetic Rip','Goblin Rush','Hysteric Barrage','Paralyzing Triad','Seedspray',
  80.                         'Sinker Drill','Vanity Dive'}
  81.  
  82.         -- VIT Physical Blue Magic --
  83.         PhysicalBlueMagic_VIT = S{
  84.                         'Cannonball','Delta Thrust','Glutinous Dart','Grand Slam','Quad. Continuum',
  85.                         'Sprout Smack'}
  86.  
  87.         -- AGI Physical Blue Magic --
  88.         PhysicalBlueMagic_AGI = S{
  89.                         'Benthic Typhoon','Helldive','Hydro Shot','Jet Stream','Pinecone Bomb','Wild Oats'}
  90.            
  91.         -- Physical Accuracy Blue Magic --         
  92.         BlueMagic_PhysicalACC = S{
  93.                         'Heavy Strike'}
  94.        
  95.         -- Magical Blue Magic --
  96.         MagicalBlueMagic = S{
  97.                         'Acrid Stream','Anvil Lightning','Crashing Thunder','Charged Whisker','Droning Whirlwind','Firespit',
  98.                         'Foul Waters','Gates of Hades','Leafstorm','Molting Plumage','Nectarous Deluge','Polar Roar',
  99.                         'Regurgitation','Rending Deluge','Scouring Spate','Searing Tempest','Silent Storm','Spectral Floe',
  100.                         'Subduction','Tem. Upheaval','Thermal Pulse','Thunderbolt','Uproot','Water Bomb'}
  101.            
  102.         -- Dark Magical Blue Magic --          
  103.         BlueMagic_Dark = S{
  104.                         'Atra. Libations','Blood Saber','Dark Orb','Death Ray','Eyes On Me',
  105.                         'Evryone. Grudge','Palling Salvo','Tenebral Crush'}
  106.        
  107.         -- Light Magical Blue Magic --
  108.         BlueMagic_Light = S{
  109.                         'Blinding Fulgor','Diffusion Ray','Magic Hammer','Rail Cannon','Retinal Glare'}
  110.        
  111.         -- Earth Magical Blue Magic --
  112.         BlueMagic_Earth = S{
  113.                         'Embalming Earth','Entomb','Sandspin'}
  114.  
  115.         -- Magic Accuracy Blue Magic --
  116.         BlueMagic_Accuracy = S{
  117.                         '1000 Needles','Absolute Terror','Auroral Drape','Awful Eye','Blank Gaze','Blistering Roar',
  118.                         'Blood Drain','Blood Saber','Chaotic Eye','Cimicine Discharge','Cold Wave','Digest','Corrosive Ooze',
  119.                         'Demoralizing Roar','Dream Flower','Enervation','Feather Tickle','Filamented Hold','Frightful Roar',
  120.                         'Geist Wall','Hecatomb Wave','Infrasonics','Light of Penance','Lowing','Mind Blast','Mortal Ray',
  121.                         'MP Drainkiss','Osmosis','Reaving Wind','Sheep Song','Soporific','Sound Blast','Stinking Gas',
  122.                         'Sub-zero Smash','Triumphant Roar','Venom Shell','Voracious Trunk','Yawn'}
  123.  
  124.         -- Breath Blue Magic --
  125.         BlueMagic_Breath = S{
  126.                         'Bad Breath','Flying Hip Press','Final Sting','Frost Breath','Heat Breath','Magnetite Cloud',
  127.                         'Poison Breath','Radiant Breath','Self Destruct','Thunder Breath','Wind Breath'}
  128.  
  129.         -- Blue Magic Buffs --
  130.         BlueMagic_Buff = S{
  131.                         'Carcharian Verve','Diamondhide','Metallic Body','Magic Barrier',"Occultation",
  132.                         'Orcish Counterstance','Plasma Charge','Pyric Bulwark','Reactor Cool'}
  133.                            
  134.         -- Blue Magic Healing --                   
  135.         BlueMagic_Healing = S{
  136.                         'Healing Breeze','Magic Fruit','Plenilune Embrace','Pollen','Restoral','Wild Carrot'}
  137.                        
  138.         -- HP Cure Blue Magic --               
  139.         BlueMagic_HPCure = S{
  140.                         'White Wind'}
  141.  
  142.         -- Refresh Blue Magic --               
  143.         BlueMagic_Refresh = S{
  144.                         'Battery Charge'}
  145.  
  146.         -- Blue Magic Stun --
  147.         BlueMagic_Stun = S{
  148.                         'Blitzstrahl','Temporal Shift'}
  149.        
  150.         -- Blue Magic Physical Stun --
  151.         BlueMagic_PhysicalStun = S{
  152.                         'Frypan','Head Butt','Sudden Lunge','Sweeping Gouge','Tail slap','Whirl of Rage'}      
  153.        
  154.         -- Blue Magic Enmity --
  155.         BlueMagic_Emnity = S{
  156.                         'Actinic Burst','Exuviation','Fantod','Jettatura'}     
  157.  
  158.         -- Diffusion --
  159.         BlueMagic_Diffusion = S{
  160.                         'Amplification','Cocoon','Exuviation','Feather Barrier','Harden Shell','Memento Mori','Metallic Body',
  161.                         'Mighty Guard','Plasma Charge','Reactor Cool','Refueling','Saline Coat','Warm-Up','Zephyr Mantle'}
  162.  
  163.         -- Unbridled --
  164.         BlueMagic_Unbridled = S{
  165.                         'Absolute Terror','Bilgestorm','Blistering Roar','Bloodrake','Carcharian Verve',
  166.                         'Droning Whirlwind','Gates of Hades','Harden Shell','Mighty Guard','Pyric Bulwark',
  167.                         'Thunderbolt','Tourbillion'}
  168.        
  169.         -- Herculean Augments --
  170.         HerculeanHelm={}
  171.         HerculeanHelm.WSD={ name="Herculean Helm", augments={'Accuracy+16 Attack+16','Weapon skill damage +4%','Accuracy+6',}}
  172.         HerculeanVest={}
  173.         HerculeanVest.Crit={ name="Herculean Vest", augments={'Attack+25','Crit. hit damage +4%','DEX+13',}}       
  174.         HerculeanGloves={}
  175.         HerculeanGloves.TH={ name="Herculean Gloves", augments={'Mag. Acc.+6','Accuracy+8','"Treasure Hunter"+1','Accuracy+13 Attack+13',}}
  176.         HerculeanGloves.RF={ name="Herculean Gloves", augments={'Magic dmg. taken -1%','Enmity-2','"Refresh"+1','Accuracy+11 Attack+11',}}
  177.         HerculeanTrousers={}   
  178.         HerculeanTrousers.WSD={ name="Herculean Trousers", augments={'Accuracy+24 Attack+24','Weapon skill damage +4%','Accuracy+7',}}
  179.         HerculeanBoots={}
  180.         HerculeanBoots.TA={ name="Herculean Boots", augments={'Accuracy+27','"Triple Atk."+4','DEX+7','Attack+13',}}
  181.         HerculeanBoots.WSD={ name="Herculean Boots", augments={'Accuracy+18 Attack+18','Weapon skill damage +5%','STR+9','Attack+10',}}
  182.         HerculeanBoots.RF={ name="Herculean Boots", augments={'"Fast Cast"+3','Pet: "Regen"+2','"Refresh"+1',}}
  183.         HerculeanBoots.TH={ name="Herculean Boots", augments={'DEX+1','Pet: AGI+3','"Treasure Hunter"+2',}}
  184.        
  185.         -- Rosmerta's Cape Augments --
  186.         CritCape={ name="Rosmerta's Cape", augments={'DEX+20','Accuracy+20 Attack+20','DEX+10','Crit.hit rate+10',}}
  187.         DWCape={ name="Rosmerta's Cape", augments={'DEX+20','Accuracy+20 Attack+20','DEX+10','"Dual Wield"+10',}}
  188.         WSDCape={ name="Rosmerta's Cape", augments={'STR+20','Accuracy+20 Attack+20','STR+10','Weapon skill damage +10%',}}
  189.         STPCape={ name="Rosmerta's Cape", augments={'DEX+20','Accuracy+20 Attack+20','DEX+10','"Store TP"+10',}}
  190.         MABCape={ name="Rosmerta's Cape", augments={'INT+20','Mag. Acc+20 /Mag. Dmg.+20','"Haste"+10',}}
  191.         MNDDACape={ name="Rosmerta's Cape", augments={'MND+20','Accuracy+20 Attack+20','MND+10','"Dbl.Atk."+10',}}
  192.         FCCape={ name="Rosmerta's Cape", augments={'Eva.+20 /Mag. Eva.+20','"Fast Cast"+10',}}
  193.  
  194.         --------------------
  195.         -- Key Binds Load --
  196.         --------------------
  197.        
  198.         -- Key Bind Toggles (The Same for all my job files) (Ctrl Key) --
  199.         send_command('bind ^A input //gs c acc')
  200.         send_command('bind ^D input //gs c pdt')
  201.         send_command('bind ^H input //gs c hybrid')
  202.         send_command('bind ^I input //gs c idle')
  203.         send_command('bind ^K input //gs c kiting')
  204.  
  205.         -- Stuff to control both Mules (Ctrl Key) --
  206.         send_command('bind ^X input /pcmd add ojomo;pause 5;input /pcmd add oeogo')
  207.         send_command('bind ^7 input //send oeogo //ma haste ojomo')
  208.         send_command('bind ^8 input //send oeogo //ma Dia 2 <t>;pause 2;input //send ojomo //ja Light Shot <t>')
  209.         send_command('bind ^9 input //send ojomo //follow arnan;pause 0.1;input //send oeogo //follow arnan')
  210.         send_command('bind ^0 input //send ojomo //assist arnan;pause 0.1;input //send oeogo //assist arnan')
  211.         send_command('bind ^- input //send ojomo /attack <t>;pause 0.1;input //send oeogo /attack <t>')
  212.  
  213.         -- COR (Mule) Job Ability Key Binds (Alt Key) --
  214.         send_command('bind !7 input //send ojomo //ja Crooked Cards <me>')
  215.         send_command('bind !8 input //send ojomo //ja Snake Eye <me>')
  216.         send_command('bind !9 input //send ojomo //ja Fold <me>')
  217.         send_command('bind !0 input //send ojomo //ja Random Deal <me>')
  218.  
  219.         -- COR (mule) Phantom Roll Key Binds (Alt Key) --
  220.         send_command('bind !A input //send ojomo //ja Allies\' Roll <me>')
  221.         send_command('bind !C input //send ojomo //ja Chaos Roll <me>')
  222.         send_command('bind !D input //send ojomo //ja Dancer\'s Roll <me>')
  223.         send_command('bind !E input //send ojomo //ja Evoker\s Roll <me>')
  224.         send_command('bind !F input //send ojomo //ja Fighter\'s Roll <me>')
  225.         send_command('bind !H input //send ojomo //ja Hunter\'s Roll <me>')
  226.         send_command('bind !R input //send ojomo //ja Rogue\'s Roll <me>')
  227.         send_command('bind !S input //send ojomo //ja Samurai Roll <me>')
  228.         send_command('bind !T input //send ojomo //ja Tactician\'s Roll <me>')
  229.  
  230.         -- GEO (Mule) Job Ability Key Binds (Win Key) --
  231.         send_command('bind @7 input //send oeogo //ja Blaze of Glory <me>')
  232.         send_command('bind @8 input //send oeogo //ja Ecliptic Attrition <me>')
  233.         send_command('bind @9 input //send oeogo //ja Life Cycle <me>')
  234.         send_command('bind @0 input //send oeogo //ja Lasting Emanation <me>')
  235.  
  236.         -- GEO (Mule) Nuke Key Binds (Win Key) --
  237.         send_command('bind @F1 input //send oeogo /ma Aero V <t>;pause 0.5;input //send oeogo /ma Aero IV <t>;pause 0.5;input //send oeogo /ma Aero III <t>;')
  238.         send_command('bind @F2 input //send oeogo /ma Fire V <t>;pause 0.5;input //send oeogo /ma Fire IV <t>;pause 0.5;input //send oeogo /ma Fire III <t>;')
  239.         send_command('bind @F3 input //send oeogo /ma Thunder V <t>;pause 0.5;input //send oeogo /ma Thunder IV <t>;pause 0.5;input //send oeogo /ma Thunder III <t>;')
  240.         send_command('bind @F4 input //send oeogo /ma Stone V <t>;pause 0.5;input //send oeogo /ma Stone IV <t>;pause 0.5;input //send oeogo /ma Stone III <t>;')
  241.         send_command('bind @F5 input //send oeogo /ma Water V <t>;pause 0.5;input //send oeogo /ma Water IV <t>;pause 0.5;input //send oeogo /ma Water III <t>;')
  242.         send_command('bind @F6 input //send oeogo /ma Blizzard V <t>;pause 0.5;input //send oeogo /ma Blizzard IV <t>;pause 0.5;input //send oeogo /ma Blizzard III <t>;')
  243.  
  244.         -- GEO (Mule) Indicolure Spells (Win Key) --
  245.         send_command('bind @1 input //send oeogo /ma Indi-Regen <me>')
  246.         send_command('bind @2 input //send oeogo /ma Indi-Refresh <me>')
  247.         send_command('bind @D input //send oeogo /ma Indi-DEX <me>')
  248.         send_command('bind @F input //send oeogo /ma Indi-Fury <me>')
  249.         send_command('bind @H input //send oeogo /ma Indi-Haste <me>')
  250.         send_command('bind @K input //send oeogo /ma Indi-Focus <me>')
  251.         send_command('bind @M input //send oeogo /ma Indi-Acumen <me>')
  252.         send_command('bind @S input //send oeogo /ma Indi-STR <me>')
  253.         send_command('bind @T input //send oeogo /ma Indi-Precision <me>')
  254.         send_command('bind @V input //send oeogo /ma Indi-Attunement <me>')
  255.         send_command('bind @W input //send oeogo /ma Indi-Barrier <me>')
  256.  
  257.         -- GEO (Mule) Geocolure Spells (Alt+Win Keys) --
  258.         send_command('bind !@1 input //send oeogo /ma Geo-Regen <me>')
  259.         send_command('bind !@2 input //send oeogo /ma Geo-Refresh <me>')
  260.         send_command('bind !@D input //send oeogo /ma Geo-DEX <me>')
  261.         send_command('bind !@F input //send oeogo /ma Geo-Frailty <t>')
  262.         send_command('bind !@H input //send oeogo /ma Geo-Haste <me>')
  263.         send_command('bind !@K input //send oeogo /ma Geo-Languor <t>')
  264.         send_command('bind !@M input //send oeogo /ma Geo-Malaise <t>')
  265.         send_command('bind !@S input //send oeogo /ma Geo-STR <me>')
  266.         send_command('bind !@T input //send oeogo /ma Geo-Torpor <t>')
  267.         send_command('bind !@V input //send oeogo /ma Geo-Vex <t>')
  268.         send_command('bind !@W input //send oeogo /ma Geo-Wilt <t>')
  269.  
  270.         -- GEO (Mule) Entrust Indicolure Spells (Ctrl+Win Keys) --
  271.         send_command('bind ^@1 input //send oeogo //ja Entrust <me>;pause 2;input //send oeogo /ma Indi-Regen Arnan')
  272.         send_command('bind ^@2 input //send oeogo //ja Entrust <me>;pause 2;input //send oeogo /ma Indi-Refresh Arnan')
  273.         send_command('bind ^@D input //send oeogo //ja Entrust <me>;pause 2;input //send oeogo /ma Indi-DEX Arnan')
  274.         send_command('bind ^@F input //send oeogo //ja Entrust <me>;pause 2;input //send oeogo /ma Indi-Fury Arnan')
  275.         send_command('bind ^@H input //send oeogo //ja Entrust <me>;pause 2;input //send oeogo /ma Indi-Haste Arnan')
  276.         send_command('bind ^@K input //send oeogo //ja Entrust <me>;pause 2;input //send oeogo /ma Indi-Focus Arnan')
  277.         send_command('bind ^@M input //send oeogo //ja Entrust <me>;pause 2;input //send oeogo /ma Indi-Acumen Arnan')
  278.         send_command('bind ^@S input //send oeogo //ja Entrust <me>;pause 2;input //send oeogo /ma Indi-STR Arnan')
  279.         send_command('bind ^@T input //send oeogo //ja Entrust <me>;pause 2;input //send oeogo /ma Indi-Precision Arnan')
  280.         send_command('bind ^@V input //send oeogo //ja Entrust <me>;pause 2;input //send oeogo /ma Indi-Attunement Arnan')
  281.         send_command('bind ^@W input //send oeogo //ja Entrust <me>;pause 2;input //send oeogo /ma Indi-Barrier Arnan')
  282.  
  283.         -- Blue Mage Job Key Binds (Ctrl & Ctrl+Alt Keys) --
  284.         send_command('bind ^!C input //ja Unbridled Learning <me>;pause 2;input //ma Carcharian Verve <me>')
  285.         send_command('bind ^!D input //ja Diffusion <me>')
  286.         send_command('bind ^!H input //ja Unbridled Learning <me>;pause 2;input //ma Harden Shell <me>')
  287.         send_command('bind ^!M input //ja Unbridled Learning <me>;pause 2;input //ma Mighty Guard <me>')
  288.         send_command('bind ^1 input //ma Regeneration <me>')
  289.         send_command('bind ^2 input //ma Battery Charge <me>')
  290.         send_command('bind ^` input //ma Sudden Lunge <t>')
  291.         send_command('bind !` input //ma Glutinous Dart <t>')
  292.         send_command('bind ^B input //ma Barrier Tusk <me>')
  293.         send_command('bind ^C input //ma Cocoon <me>')
  294.         send_command('bind ^E input //ma Erratic Flutter <me>')
  295.         send_command('bind ^F input //ma Magic Fruit <stpt>')
  296.         send_command('bind ^M input //ma Magic Barrier <me>')
  297.         send_command('bind ^N input //ma Nat. Meditation <me>')
  298.         send_command('bind ^O input //ma Occultation <me>')
  299.         send_command('bind ^P input //ja Provoke <t>')
  300.         send_command('bind ^W input //ma Winds of Promy <me>')
  301.         send_command('bind ^Z input //ja Berserk <me>')
  302.  
  303.         -- Blue Mage Weapon Skill Key Binds --
  304.         send_command('bind F7 input /ws "Sanguine Blade" <t>')
  305.         send_command('bind F9 input /ws "Expiacion" <t>')
  306.         send_command('bind F10 input /ws "Requiescat" <t>')
  307.         send_command('bind F11 input /ws "Savage Blade" <t>')
  308.         send_command('bind Delete input /ws "Chant du Cygne" <t>')
  309.  
  310.         -- COR (mule) Weapon Skill Key Binds --
  311.         send_command('bind F12 input //send ojomo /ws "Last Stand" <t>')
  312.         send_command('bind !F12 input //send ojomo "Leaden Salute" <t>')
  313.         send_command('bind !Delete input //send ojomo /ws "Savage Blade" <t>') 
  314.  
  315.         ----------------------
  316.         -- Key Binds Unload --
  317.         ----------------------
  318.  
  319.         function file_unload()
  320.         -- Unbind Toggles --
  321.         send_command('unbind ^A')
  322.         send_command('unbind ^D')
  323.         send_command('unbind ^H')
  324.         send_command('unbind ^I')
  325.         send_command('unbind ^K')
  326.         -- Unbind Stuff to control both Mules --
  327.         send_command('unbind ^X')
  328.         send_command('unbind ^7')
  329.         send_command('unbind ^8')
  330.         send_command('unbind ^9')
  331.         send_command('unbind ^0')
  332.         send_command('unbind ^-')
  333.         -- Unbind COR JA's --
  334.         send_command('unbind !7')
  335.         send_command('unbind !8')
  336.         send_command('unbind !9')
  337.         send_command('unbind !0')
  338.         -- Unbind COR Rolls --
  339.         send_command('unbind !A')
  340.         send_command('unbind !C')
  341.         send_command('unbind !D')
  342.         send_command('unbind !E')
  343.         send_command('unbind !F')
  344.         send_command('unbind !H')
  345.         send_command('unbind !R')
  346.         send_command('unbind !S')
  347.         send_command('unbind !T')
  348.         -- Unbind GEO JA's --
  349.         send_command('unbind @7')
  350.         send_command('unbind @8')
  351.         send_command('unbind @9')
  352.         send_command('unbind @0')
  353.         -- Unbind GEO Nukes --
  354.         send_command('unbind @F1')
  355.         send_command('unbind @F2')
  356.         send_command('unbind @F3')
  357.         send_command('unbind @F4')
  358.         send_command('unbind @F5')
  359.         send_command('unbind @F6')
  360.         -- Unbind GEO Indi Spells --
  361.         send_command('unbind @D')
  362.         send_command('unbind @F')
  363.         send_command('unbind @H')
  364.         send_command('unbind @K')
  365.         send_command('unbind @M')
  366.         send_command('unbind @S')
  367.         send_command('unbind @T')
  368.         send_command('unbind @V')
  369.         send_command('unbind @W')
  370.         send_command('unbind @1')
  371.         send_command('unbind @2')
  372.         -- Unbind GEO Geocolure Spells --
  373.         send_command('unbind !@D')
  374.         send_command('unbind !@F')
  375.         send_command('unbind !@H')
  376.         send_command('unbind !@K')
  377.         send_command('unbind !@M')
  378.         send_command('unbind !@S')
  379.         send_command('unbind !@T')
  380.         send_command('unbind !@V')
  381.         send_command('unbind !@W')
  382.         send_command('unbind !@1')
  383.         send_command('unbind !@2')
  384.         -- Unbind GEO Entrust Spells --
  385.         send_command('unbind ^@D')
  386.         send_command('unbind ^@F')
  387.         send_command('unbind ^@H')
  388.         send_command('unbind ^@K')
  389.         send_command('unbind ^@M')
  390.         send_command('unbind ^@S')
  391.         send_command('unbind ^@T')
  392.         send_command('unbind ^@V')
  393.         send_command('unbind ^@W')
  394.         send_command('unbind ^@1')
  395.         send_command('unbind ^@2')
  396.         -- Unbind BLU Job Binds --
  397.         send_command('unbind ^!C')
  398.         send_command('unbind ^!D')
  399.         send_command('unbind ^!H')
  400.         send_command('unbind ^!M')
  401.         send_command('unbind ^`')
  402.         send_command('unbind !`')
  403.         send_command('unbind ^1')
  404.         send_command('unbind ^2')
  405.         send_command('unbind ^B')
  406.         send_command('unbind ^C')
  407.         send_command('unbind ^E')
  408.         send_command('unbind ^F')
  409.         send_command('unbind ^M')
  410.         send_command('unbind ^N')
  411.         send_command('unbind ^O')
  412.         send_command('unbind ^P')
  413.         send_command('unbind ^W')
  414.         send_command('unbind ^Z')
  415.         -- Unload Weapon Skill Key Binds --
  416.         send_command('unbind F7')
  417.         send_command('unbind F9')  
  418.         send_command('unbind F10')     
  419.         send_command('unbind F11')     
  420.         send_command('unbind F12') 
  421.         send_command('unbind !F12')                
  422.         send_command('unbind Delete')
  423.         send_command('unbind !Delete')
  424.         end
  425.  
  426.        
  427.         --------------------
  428.         -- Idle/Town Sets --
  429.         --------------------
  430.         sets.Idle = {
  431.                         ammo="Staunch Tathlum +1",
  432.                         head="Spurrina coif",
  433.                         neck="Bathy Choker +1",
  434.                         ear1="Infused Earring",
  435.                         ear2="Genmei Earring",
  436.                         body="Jhakri Robe +2",
  437.                         hands=HerculeanGloves.RF,
  438.                         ring1="Defending Ring",
  439.                         ring2="Paguroidea Ring",
  440.                         back="Moonlight Cape",
  441.                         waist="Flume Belt +1",
  442.                         legs="Carmine Cuisses +1",
  443.                         feet=HerculeanBoots.RF}
  444.         sets.Idle.Full = set_combine(sets.Idle,{})
  445.         sets.Idle.DT = set_combine(sets.Idle,{
  446.                         neck="Loricate Torque +1",
  447.                         ear1="Ethereal Earring",
  448.                         ring2="Ayanmo Ring"})
  449.         sets.Idle.Warp = set_combine(sets.Idle,{
  450.                         ring2="Warp Ring"})
  451.         sets.Idle.Town = set_combine(sets.Idle,{})
  452.  
  453.         -------------
  454.         -- TP Sets --
  455.         -------------
  456.         sets.TP = {
  457.                         ammo="Ginsen",
  458.                         head="Adhemar Bonnet +1",
  459.                         neck="Asperity Necklace",
  460.                         ear1="Suppanomimi",
  461.                         ear2="Eabani Earring",
  462.                         body="Adhemar Jacket +1",
  463.                         hands="Adhemar Wrist. +1",
  464.                         ring1="Hetairoi Ring",
  465.                         ring2="Epona's Ring",
  466.                         back=DWCape,
  467.                         waist="Windbuffet Belt +1",
  468.                         legs="Samnuha Tights",
  469.                         feet=HerculeanBoots.TA}
  470.         sets.TP.MidACC = set_combine(sets.TP,{
  471.                         ammo="Falcon Eye",
  472.                         ring1="Chirich Ring",
  473.                         neck="Combatant's Torque"})
  474.         sets.TP.HighACC = set_combine(sets.TP.MidACC,{
  475.                         head="Dampening Tam",
  476.                         ring2="Chirich Ring"})
  477.         sets.TP.MaxACC = set_combine(sets.TP.HighACC,{
  478.                         head="Carmine Mask +1",
  479.                         ring1="Ramuh Ring +1",
  480.                         ring2="Ramuh Ring +1",
  481.                         waist="Olseni Belt",
  482.                         legs="Carmine Cuisses +1"})
  483.  
  484.         ---------------------------
  485.         -- Single Weapon TP Sets --
  486.         ---------------------------
  487.         sets.TP.Single = set_combine(sets.TP,{
  488.                         ear1="Cessance Earring",
  489.                         ear2="Brutal Earring",
  490.                         back=STPCape})
  491.         sets.TP.Single.MidACC = set_combine(sets.TP.MidACC,{
  492.                         ear1="Cessance Earring",
  493.                         ear2="Brutal Earring",
  494.                         back=STPCape})
  495.         sets.TP.Single.HighACC = set_combine(sets.TP.HighACC,{
  496.                         ear1="Cessance Earring",
  497.                         ear2="Brutal Earring",
  498.                         back=STPCape})
  499.         sets.TP.Single.MaxACC = set_combine(sets.TP.MaxACC,{
  500.                         ear1="Mache Earring +1",
  501.                         ear2="Mache Earring +1",
  502.                         back=STPCape})
  503.  
  504.         -- Single Weapon Capped Magic Haste Sets --
  505.         sets.TP.Single.HighHaste = set_combine(sets.TP.Single,{})
  506.         sets.TP.Single.MidACC.HighHaste = set_combine(sets.TP.Single.MidACC,{})
  507.         sets.TP.Single.HighACC.HighHaste = set_combine(sets.TP.Single.HighACC,{})
  508.         sets.TP.Single.MaxACC.HighHaste = set_combine(sets.TP.Single.MaxACC,{})
  509.  
  510.         -- Single Weapon Mythic AM3 Sets --
  511.         sets.TP.Single.AM3 = set_combine(sets.TP.Single,{
  512.                         neck="Ainia Collar",
  513.                         ear2="Telos Earring",
  514.                         back=STPCape})
  515.         sets.TP.Single.MidACC.AM3 = set_combine(sets.TP.Single.MidACC,{
  516.                         back=STPCape,
  517.                         ear2="Telos Earring"})
  518.         sets.TP.Single.HighACC.AM3 = set_combine(sets.TP.Single.HighACC,{
  519.                         back=STPCape,
  520.                         ear2="Telos Earring"})
  521.         sets.TP.Single.MaxACC.AM3 = set_combine(sets.TP.Single.MaxACC,{
  522.                         back=STPCape})
  523.        
  524.         -- Single Weapon Mythic AM3 Capped Magic Haste Sets --
  525.         sets.TP.Single.HighHaste.AM3 = set_combine(sets.TP.Single.AM3,{})
  526.         sets.TP.Single.MidACC.HighHaste.AM3 = set_combine(sets.TP.Single.MidACC.AM3,{})
  527.         sets.TP.Single.HighACC.HighHaste.AM3 = set_combine(sets.TP.Single.HighACC.AM3,{})
  528.         sets.TP.Single.MaxACC.HighHaste.AM3 = set_combine(sets.TP.Single.MaxACC.AM3,{})
  529.  
  530.         ----------------------------
  531.         -- Dual Wield III TP Sets --
  532.         ----------------------------
  533.         sets.TP.DW3 = set_combine(sets.TP,{})
  534.         sets.TP.DW3.MidACC = set_combine(sets.TP.MidACC,{})
  535.         sets.TP.DW3.HighACC = set_combine(sets.TP.HighACC,{})
  536.         sets.TP.DW3.MaxACC = set_combine(sets.TP.MaxACC,{
  537.                         ear2="Mache Earring +1"})
  538.  
  539.         -- Dual Wield III Capped Magic Haste Sets --
  540.         sets.TP.DW3.HighHaste =  set_combine(sets.TP,{
  541.                         ear2="Brutal Earring",
  542.                         back=STPCape})
  543.         sets.TP.DW3.MidACC.HighHaste =  set_combine(sets.TP.MidACC,{
  544.                         ear2="Brutal Earring",
  545.                         back=STPCape})
  546.         sets.TP.DW3.HighACC.HighHaste =  set_combine(sets.TP.HighACC,{
  547.                         ear2="Brutal Earring",
  548.                         back=STPCape})
  549.         sets.TP.DW3.MaxACC.HighHaste =  set_combine(sets.TP.MaxACC,{
  550.                         ear2="Mache Earring +1",
  551.                         back=STPCape})
  552.                            
  553.         -- Dual Wield III Mythic AM3 Sets --
  554.         sets.TP.DW3.AM3 = set_combine(sets.TP,{
  555.                         neck="Ainia Collar",
  556.                         ear2="Telos Earring"})
  557.         sets.TP.DW3.MidACC.AM3 = set_combine(sets.TP.MidACC,{
  558.                         ear2="Telos Earring"})
  559.         sets.TP.DW3.HighACC.AM3 = set_combine(sets.TP.HighACC,{
  560.                         ear2="Telos Earring"})
  561.         sets.TP.DW3.MaxACC.AM3 = set_combine(sets.TP.MaxACC,{
  562.                         ear2="Mache Earring +1"})
  563.  
  564.         -- Dual Wield III Mythic AM3 Capped Magic Haste Sets --
  565.         sets.TP.DW3.HighHaste.AM3 =  set_combine(sets.TP,{
  566.                         neck="Ainia Collar",
  567.                         ear2="Telos Earring",
  568.                         back=STPCape})
  569.         sets.TP.DW3.MidACC.HighHaste.AM3 = set_combine(sets.TP.MidACC,{
  570.                         ear2="Telos Earring",
  571.                         back=STPCape})
  572.         sets.TP.DW3.HighACC.HighHaste.AM3 = set_combine(sets.TP.HighACC,{
  573.                         ear2="Telos Earring",
  574.                         back=STPCape})
  575.         sets.TP.DW3.MaxACC.HighHaste.AM3 = set_combine(sets.TP.MaxACC,{
  576.                         ear2="Mache Earring +1",
  577.                         back=STPCape})
  578.                                
  579.         ---------------------------
  580.         -- Dual Wield IV TP Sets --
  581.         ---------------------------
  582.         sets.TP.DW4 = set_combine(sets.TP,{
  583.                         ear2="Brutal Earring"})
  584.         sets.TP.DW4.MidACC = set_combine(sets.TP.MidACC,{
  585.                         ear2="Brutal Earring"})
  586.         sets.TP.DW4.HighACC = set_combine(sets.TP.HighACC,{
  587.                         ear2="Brutal Earring"})
  588.         sets.TP.DW4.MaxACC = set_combine(sets.TP.MaxACC,{
  589.                         ear2="Mache Earring +1"})
  590.  
  591.         -- Dual Wield IV Capped Magic Haste Sets --
  592.         sets.TP.DW4.HighHaste =  set_combine(sets.TP,{
  593.                         ear1="Cessance Earring",
  594.                         ear2="Brutal Earring",
  595.                         back=STPCape})
  596.         sets.TP.DW4.MidACC.HighHaste =  set_combine(sets.TP.MidACC,{
  597.                         ear1="Cessance Earring",
  598.                         ear2="Brutal Earring",
  599.                         back=STPCape})
  600.         sets.TP.DW4.HighACC.HighHaste =  set_combine(sets.TP.HighACC,{
  601.                         ear1="Cessance Earring",
  602.                         ear2="Brutal Earring",
  603.                         back=STPCape})
  604.         sets.TP.DW4.MaxACC.HighHaste =  set_combine(sets.TP.MaxACC,{
  605.                         ear1="Mache Earring +1",
  606.                         ear2="Mache Earring +1",
  607.                         back=STPCape})
  608.  
  609.         -- Dual Wield IV Mythic AM3 Sets --
  610.         sets.TP.DW4.AM3 = set_combine(sets.TP,{
  611.                         neck="Ainia Collar",
  612.                         ear2="Telos Earring"})
  613.         sets.TP.DW4.MidACC.AM3 = set_combine(sets.TP.MidACC,{
  614.                         ear2="Telos Earring"})
  615.         sets.TP.DW4.HighACC.AM3 = set_combine(sets.TP.HighACC,{
  616.                         ear2="Telos Earring"})
  617.         sets.TP.DW4.MaxACC.AM3 = set_combine(sets.TP.MaxACC,{
  618.                         ear2="Mache Earring +1"})
  619.  
  620.         -- Dual Wield IV Mythic AM3 Capped Magic Haste Sets --
  621.         sets.TP.DW4.HighHaste.AM3 =  set_combine(sets.TP,{
  622.                         neck="Ainia Collar",
  623.                         ear1="Cessance Earring",
  624.                         ear2="Telos Earring",
  625.                         back=STPCape})
  626.         sets.TP.DW4.MidACC.HighHaste.AM3 = set_combine(sets.TP.MidACC,{
  627.                         ear1="Cessance Earring",
  628.                         ear2="Telos Earring",
  629.                         back=STPCape})
  630.         sets.TP.DW4.HighACC.HighHaste.AM3 = set_combine(sets.TP.HighACC,{
  631.                         ear1="Cessance Earring",
  632.                         ear2="Telos Earring",
  633.                         back=STPCape})
  634.         sets.TP.DW4.MaxACC.HighHaste.AM3 = set_combine(sets.TP.MaxACC,{
  635.                         ear1="Mache Earring +1",
  636.                         ear2="Mache Earring +1",
  637.                         back=STPCape})
  638.                        
  639.         -- TP Thaumas Coat --
  640.         sets.TP.Thaumas = {body="Thaumas Coat"}
  641.        
  642.         -- TP Treasure Hunter --
  643.         sets.TP.TH = {feet=HerculeanBoots.TH}
  644.  
  645.         -----------------------
  646.         -- Damage Taken Sets --
  647.         -----------------------
  648.        
  649.         -- PDT Set --
  650.         sets.PDT = {
  651.                         ammo="Staunch Tathlum +1",
  652.                         head="Aya. Zucchetto +2",
  653.                         neck="Loricate Torque +1",
  654.                         ear1="Ethereal Earring",
  655.                         ear2="Eabani Earring",
  656.                         body="Ayanmo Corazza +2",
  657.                         hands="Assim. Bazu. +3",
  658.                         ring1="Defending Ring",
  659.                         ring2="Ayanmo Ring",
  660.                         back="Moonlight Cape",
  661.                         waist="Flume Belt +1",
  662.                         legs="Aya. Cosciales +2",
  663.                         feet="Aya. Gambieras +1"}
  664.  
  665.         -- MDT Set --
  666.         sets.MDT = set_combine(sets.PDT,{})
  667.  
  668.         -- Hybrid Sets --
  669.         sets.TP.Hybrid = set_combine(sets.PDT,{
  670.                         ear1="Suppanomimi",
  671.                         ear2="Brutal Earring",
  672.                         waist="Shetal Stone"})
  673.         sets.TP.Hybrid.MidACC = set_combine(sets.TP.Hybrid,{
  674.                         ear2="Mache Earring +1"})
  675.         sets.TP.Hybrid.HighACC = set_combine(sets.TP.Hybrid.MidACC,{})
  676.         sets.TP.Hybrid.MaxACC = set_combine(sets.TP.Hybrid.HighACC,{
  677.                         neck="Combatant's Torque",
  678.                         waist="Olseni Belt"})
  679.                        
  680.         -- Hybrid High Haste Sets --
  681.         sets.TP.Hybrid.HighHaste = set_combine(sets.PDT,{
  682.                         ear1="Suppanomimi",
  683.                         ear2="Brutal Earring",
  684.                         waist="Windbuffet Belt +1"})
  685.         sets.TP.Hybrid.MidACC.HighHaste = set_combine(sets.TP.Hybrid.HighHaste,{
  686.                         ear2="Mache Earring +1"})
  687.         sets.TP.Hybrid.HighACC.HighHaste = set_combine(sets.TP.Hybrid.MidACC.HighHaste,{})
  688.         sets.TP.Hybrid.MaxACC.HighHaste = set_combine(sets.TP.Hybrid.HighACC.HighHaste,{
  689.                         neck="Combatant's Torque",
  690.                         waist="Olseni Belt"})
  691.  
  692.         -- Kiting Set --
  693.         sets.Kiting =  set_combine(sets.PDT,{
  694.                         legs="Carmine Cuisses +1",
  695.                         feet="Hippo. Socks +1"})
  696.  
  697.         -----------------------
  698.         -- Weapon Skill Sets --
  699.         -----------------------
  700.  
  701.         -- WS Base Sets --
  702.         sets.WS = {
  703.                         ammo="Floestone",
  704.                         head="Adhemar Bonnet +1",
  705.                         neck="Fotia Gorget",
  706.                         ear1="Moonshade Earring",
  707.                         ear2="Brutal Earring",
  708.                         body="Adhemar Jacket +1",
  709.                         hands="Adhemar Wrist. +1",
  710.                         ring1="Shukuyu Ring",
  711.                         ring2="Epona's Ring",
  712.                         back=STPCape,
  713.                         waist="Fotia Belt",
  714.                         legs="Samnuha Tights",
  715.                         feet=HerculeanBoots.TA}
  716.         sets.WS.MidACC = set_combine(sets.WS,{
  717.                         ammo="Falcon Eye",
  718.                         head="Dampening Tam"})
  719.         sets.WS.HighACC = set_combine(sets.WS.MidACC,{
  720.                         ear2="Mache Earring +1",
  721.                         ring1="Ramuh Ring +1"})
  722.         sets.WS.MaxACC = set_combine(sets.WS.HighACC,{
  723.                         head="Carmine Mask +1",
  724.                         ring2="Ramuh Ring +1",
  725.                         legs="Carmine Cuisses +1"})
  726.  
  727.         -- One-Hit Sets --
  728.         sets.WS.OneHit = set_combine(sets.WS,{
  729.                         head=HerculeanHelm.WSD,
  730.                         neck="Caro Necklace",
  731.                         ear2="Ishvara Earring",
  732.                         body="Assim. Jubbah +3",
  733.                         hands="Jhakri Cuffs +2",
  734.                         ring2="Ifrit Ring +1",
  735.                         back=WSDCape,
  736.                         waist="Prosilio Belt +1",
  737.                         legs=HerculeanTrousers.WSD,
  738.                         feet=HerculeanBoots.WSD})
  739.         sets.WS.OneHit.MidACC = set_combine(sets.WS.MidACC,{
  740.                         head=HerculeanHelm.WSD,
  741.                         neck="Caro Necklace",
  742.                         ear2="Ishvara Earring",
  743.                         body="Assim. Jubbah +3",
  744.                         hands="Jhakri Cuffs +2",
  745.                         ring2="Ifrit Ring +1",
  746.                         waist="Prosilio Belt +1",
  747.                         back=WSDCape,
  748.                         legs=HerculeanTrousers.WSD,
  749.                         feet=HerculeanBoots.WSD})
  750.         sets.WS.OneHit.HighACC = set_combine(sets.WS.HighACC,{
  751.                         ear2="Ishvara Earring",
  752.                         body="Assim. Jubbah +3",
  753.                         hands="Jhakri Cuffs +2",
  754.                         ring2="Ifrit Ring +1",
  755.                         back=WSDCape,
  756.                         legs=HerculeanTrousers.WSD,
  757.                         feet=HerculeanBoots.WSD})
  758.         sets.WS.OneHit.MaxACC = set_combine(sets.WS.MaxACC,{})
  759.                        
  760.         -- Magic WS Base Set --
  761.         sets.WS.MABWS = {
  762.                         ammo="Pemphredo Tathlum",
  763.                         head="Jhakri Coronal +2",
  764.                         neck="Sanctity Necklace",
  765.                         ear1="Friomisi Earring",
  766.                         ear2="Regal Earring",
  767.                         body="Amalric Doublet +1",
  768.                         hands="Jhakri Cuffs +2",
  769.                         ring1="Shiva Ring +1",
  770.                         ring2="Shiva Ring +1",
  771.                         back=WSDCape,
  772.                         waist="Eschan Stone",
  773.                         legs="Jhakri Slops +2",
  774.                         feet="Amalric nails +1"}
  775.        
  776.         -----------------------------
  777.         -- Sword Weapon Skill Sets --
  778.         -----------------------------
  779.  
  780.         -- Chant du Cygne Sets --
  781.         sets.WS["Chant du Cygne"] = set_combine(sets.WS,{
  782.                         ammo="Falcon Eye",
  783.                         head="Adhemar Bonnet +1",
  784.                         ear1="Mache Earring +1",
  785.                         ear2="Mache Earring +1",
  786.                         body=HerculeanVest.Crit,
  787.                         ring1="Begrudging Ring",
  788.                         back=CritCape,
  789.                         feet="Adhe. Gamashes +1"})
  790.         sets.WS["Chant du Cygne"].MidACC = set_combine(sets.WS.MidACC,{
  791.                         head="Adhemar Bonnet +1",
  792.                         ear1="Mache Earring +1",
  793.                         ear2="Mache Earring +1",
  794.                         ring1="Begrudging Ring",
  795.                         back=CritCape,
  796.                         feet="Adhe. Gamashes +1"})
  797.         sets.WS["Chant du Cygne"].HighACC = set_combine(sets.WS.HighACC,{
  798.                         ear1="Mache Earring +1",
  799.                         ring1="Begrudging Ring",
  800.                         back=CritCape})
  801.         sets.WS["Chant du Cygne"].MaxACC = set_combine(sets.WS.MaxACC,{
  802.                         ear1="Mache Earring +1",
  803.                         back=CritCape})
  804.  
  805.         -- Requiescat Sets --
  806.         sets.WS.Requiescat = set_combine(sets.WS,{
  807.                         ammo="Quartz Tathlum +1",
  808.                         head="Jhakri Coronal +2",
  809.                         ear2="Regal Earring",
  810.                         body="Jhakri Robe +2",
  811.                         hands="Jhakri Cuffs +2",
  812.                         ring1="Rufescent Ring",
  813.                         back=MNDDACape,
  814.                         legs="Jhakri Slops +2",
  815.                         feet="Jhakri Pigaches +2"})
  816.         sets.WS.Requiescat.MidACC = set_combine(sets.WS.MidACC,{
  817.                         ammo="Quartz Tathlum +1",
  818.                         head="Jhakri Coronal +2",
  819.                         ear2="Regal Earring",
  820.                         body="Jhakri Robe +2",
  821.                         hands="Jhakri Cuffs +2",
  822.                         ring1="Rufescent Ring",
  823.                         back=MNDDACape,
  824.                         legs="Jhakri Slops +2",
  825.                         feet="Jhakri Pigaches +2"})
  826.         sets.WS.Requiescat.HighACC = set_combine(sets.WS.HighACC,{
  827.                         head="Jhakri Coronal +2",
  828.                         ear2="Regal Earring",
  829.                         body="Jhakri Robe +2",
  830.                         hands="Jhakri Cuffs +2",
  831.                         ring1="Rufescent Ring",
  832.                         back=MNDDACape,
  833.                         legs="Jhakri Slops +2",
  834.                         feet="Jhakri Pigaches +2"})
  835.         sets.WS.Requiescat.MaxACC = set_combine(sets.WS.MaxACC,{})
  836.  
  837.         -- Vorpal Blade Sets --
  838.         sets.WS["Vorpal Blade"] = set_combine(sets.WS,{
  839.                         head="Adhemar Bonnet +1",
  840.                         body=HerculeanVest.Crit,
  841.                         ring1="Begrudging Ring",
  842.                         back=CritCape,
  843.                         feet="Adhe. Gamashes +1"})
  844.         sets.WS["Vorpal Blade"].MidACC = set_combine(sets.WS.MidACC,{
  845.                         head="Adhemar Bonnet +1",
  846.                         ring1="Begrudging Ring",
  847.                         back=CritCape,
  848.                         feet="Adhe. Gamashes +1"})
  849.         sets.WS["Vorpal Blade"].HighACC = set_combine(sets.WS.HighACC,{
  850.                         ring1="Begrudging Ring",
  851.                         back=CritCape})
  852.         sets.WS["Vorpal Blade"].MaxACC = set_combine(sets.WS.MaxACC,{
  853.                         back=CritCape})
  854.  
  855.         -- Expiacion Sets --
  856.         sets.WS.Expiacion = set_combine(sets.WS.OneHit,{})
  857.         sets.WS.Expiacion.MidACC = set_combine(sets.WS.MidACC.OneHit,{})
  858.         sets.WS.Expiacion.HighACC = set_combine(sets.WS.HighACC.OneHit,{})
  859.         sets.WS.Expiacion.MaxACC = set_combine(sets.WS.MaxACC.OneHit,{})
  860.        
  861.         -- Savage Blade Set --
  862.         sets.WS["Savage Blade"] = set_combine(sets.WS.OneHit,{})
  863.         sets.WS["Savage Blade"].MidACC = set_combine(sets.WS.OneHit.MidACC,{})
  864.         sets.WS["Savage Blade"].HighACC = set_combine(sets.WS.OneHit.HighACC,{})
  865.         sets.WS["Savage Blade"].MaxACC = set_combine(sets.WS.OneHit.MaxACC,{})
  866.        
  867.         -- Circle Blade Sets --
  868.         sets.WS["Circle Blade"] = set_combine(sets.WS.OneHit,{})
  869.         sets.WS["Circle Blade"].MidACC = set_combine(sets.WS.OneHit.MidACC,{})
  870.         sets.WS["Circle Blade"].HighACC = set_combine(sets.WS.OneHit.HighACC,{})
  871.         sets.WS["Circle Blade"].MaxACC = set_combine(sets.WS.OneHit.MaxACC,{})     
  872.        
  873.         -- Sanguine Blade Set --
  874.         sets.WS["Sanguine Blade"] = set_combine(sets.WS.MABWS,{
  875.                         head="Pixie Hairpin +1",
  876.                         ring1="Archon Ring"})
  877.         sets.WS["Sanguine Blade"].MidACC = set_combine(sets.WS.MABWS,{
  878.                         head="Pixie Hairpin +1",
  879.                         ring1="Archon Ring"})
  880.         sets.WS["Sanguine Blade"].HighACC = set_combine(sets.WS.MABWS,{
  881.                         head="Pixie Hairpin +1",
  882.                         ring1="Archon Ring"})
  883.         sets.WS["Sanguine Blade"].MaxACC = set_combine(sets.WS.MABWS,{
  884.                         head="Pixie Hairpin +1",
  885.                         ring1="Archon Ring"})
  886.        
  887.         ----------------------------
  888.         -- Club Weapon Skill Sets --
  889.         ----------------------------
  890.        
  891.         -- Realmrazer Sets --
  892.         sets.WS.Realmrazer = set_combine(sets.WS.Requiescat,{
  893.                         ring2="Levia. Ring"})
  894.         sets.WS.Realmrazer.MidACC = set_combine(sets.WS.Requiescat.MidACC,{
  895.                         ring2="Levia. Ring"})
  896.         sets.WS.Realmrazer.HighACC = set_combine(sets.WS.Requiescat.HighACC,{})
  897.         sets.WS.Realmrazer.MaxACC = set_combine(sets.WS.Requiescat.MaxACC,{})
  898.  
  899.         -- Black Halo Sets --
  900.         sets.WS["Black Halo"] = set_combine(sets.WS,{
  901.                         ammo="Quartz Tathlum +1",
  902.                         head="Dampening Tam",
  903.                         ring1="Rufescent Ring",
  904.                         back=MNDDACape})
  905.         sets.WS["Black Halo"].MidACC = set_combine(sets.WS.MidACC,{
  906.                         ammo="Quartz Tathlum +1",
  907.                         ring1="Rufescent Ring",
  908.                         back=MNDDACape})
  909.         sets.WS["Black Halo"].HighACC = set_combine(sets.WS.HighACC,{
  910.                         ring1="Rufescent Ring",
  911.                         back=MNDDACape})
  912.         sets.WS["Black Halo"].MaxACC = set_combine(sets.WS.MaxACC,{})
  913.        
  914.         -- True Strike Sets --
  915.         sets.WS["True Strike"] = set_combine(sets.WS.OneHit,{
  916.                         head="Adhemar Bonnet +1"})
  917.         sets.WS["True Strike"].MidACC = set_combine(sets.WS.OneHit.MidACC,{
  918.                         head="Adhemar Bonnet +1"})
  919.         sets.WS["True Strike"].HighACC = set_combine(sets.WS.OneHit.HighACC,{
  920.                         head="Adhemar Bonnet +1"})
  921.         sets.WS["True Strike"].MaxACC = set_combine(sets.WS.OneHit.MaxACC,{})
  922.        
  923.         -- Judgment Sets --
  924.         sets.WS.Judgment = set_combine(sets.WS.OneHit,{})
  925.         sets.WS.Judgment.MidACC = set_combine(sets.WS.OneHit.MidACC,{})
  926.         sets.WS.Judgment.HighACC = set_combine(sets.WS.OneHit.HighACC,{})
  927.         sets.WS.Judgment.MaxACC = set_combine(sets.WS.OneHit.MaxACC,{})
  928.        
  929.         -- Flash Nova Set --
  930.         sets.WS["Flash Nova"] = set_combine(sets.WS.MABWS,{})
  931.         sets.WS["Flash Nova"].MidACC = set_combine(sets.WS.MABWS,{})
  932.         sets.WS["Flash Nova"].HighACC = set_combine(sets.WS.MABWS,{})
  933.         sets.WS["Flash Nova"].MaxACC = set_combine(sets.WS.MABWS,{})
  934.        
  935.         ----------------------
  936.         -- Job Ability Sets --
  937.         ----------------------
  938.        
  939.         -- Blue Mage JA Sets --
  940.         sets.JA = {}
  941.         sets.JA['Azure Lore'] = {hands="Luh. Bazubands +1"}
  942.         sets['Chain Affinity'] = {head="Hashishin Kavuk +1",feet="Assim. Charuqs +2"}
  943.         sets.Efflux = {back=STPCape,legs="Hashishin Tayt +1"}
  944.         sets['Burst Affinity'] = {feet="Hashi. Basmak +1"}
  945.         sets.Convergence = {head="Luh. Keffiyeh +1"}
  946.         sets.Diffusion = {feet="Luhlaza Charuqs +1"}
  947.        
  948.         -- Enmity JA Set --
  949.         sets.JA.Enmity = set_combine(sets.PDT,{
  950.                         neck="Unmoving Collar +1",
  951.                         ear1="Trux Earring",
  952.                         ear2="Cryptic Earring",
  953.                         body="Emet Harness +1",
  954.                         ring1="Petrov Ring",
  955.                         ring2="Eihwaz Ring",
  956.                         waist="Goading Belt"})
  957.        
  958.         -- /WAR JA Sets --
  959.         sets.JA.Provoke = set_combine(sets.JA.Enmity,{})
  960.         sets.JA.Warcry = set_combine(sets.JA.Enmity,{})
  961.        
  962.         -- /PLD JA Sets --
  963.         sets.JA["Shield Bash"] = set_combine(sets.JA.Enmity,{})
  964.         sets.JA.Sentinel = set_combine(sets.JA.Enmity,{})
  965.         sets.JA["Holy Circle"] = set_combine(sets.JA.Enmity,{})
  966.        
  967.         -- /DRK JA Sets --
  968.         sets.JA.Souleater = set_combine(sets.JA.Enmity,{})
  969.         sets.JA["Last Resort"] = set_combine(sets.JA.Enmity,{})
  970.         sets.JA["Arcane Circle"] = set_combine(sets.JA.Enmity,{})
  971.        
  972.         -- /DNC JA Sets --
  973.         sets.Waltz = {
  974.                         ammo="Staunch Tathlum +1",
  975.                         head="Carmine Mask +1",
  976.                         neck="Unmoving Collar +1",
  977.                         ear1="Ethereal Earring",
  978.                         ear2="Genmei Earring",
  979.                         body="Vrikodara Jupon",
  980.                         hands="Amalric Gages +1",
  981.                         ring1="Defending Ring",
  982.                         ring2="Ayanmo Ring",
  983.                         waist="Chaac Belt",
  984.                         legs="Hashishin Tayt +1",
  985.                         feet="Hippo. Socks +1"}
  986.         sets.Step = {
  987.                         ammo="Pemphredo Tathlum",
  988.                         head="Jhakri Coronal +2",
  989.                         neck="Sanctity Necklace",
  990.                         ear1="Digni. Earring",
  991.                         ear2="Regal Earring",
  992.                         body="Jhakri Robe +2",
  993.                         hands="Jhakri Cuffs +2",
  994.                         ring1="Stikini Ring",
  995.                         ring2="Stikini Ring",
  996.                         back=MABCape,
  997.                         waist="Chaac Belt",
  998.                         legs="Jhakri Slops +2",
  999.                         feet="Jhakri Pigaches +2"}     
  1000.         sets.Flourish = set_combine(sets.Step,{})
  1001.  
  1002.         -- /RUN JA Sets --
  1003.         sets.JA.Lunge = {
  1004.                         ammo="Pemphredo Tathlum",
  1005.                         head="Jhakri Coronal +2",
  1006.                         neck="Sanctity Necklace",
  1007.                         ear1="Friomisi Earring",
  1008.                         ear2="Regal Earring",
  1009.                         body="Amalric Doublet +1",
  1010.                         hands="Amalric Gages +1",
  1011.                         ring1="Shiva Ring +1",
  1012.                         ring2="Shiva Ring +1",
  1013.                         back=MABCape,
  1014.                         waist="Eschan Stone",
  1015.                         legs="Jhakri Slops +2",
  1016.                         feet="Amalric nails +1"}
  1017.        
  1018.         --------------------
  1019.         -- Pre-Cast Sets --
  1020.         --------------------
  1021.        
  1022.         -- Base Pre-Cast Set --
  1023.         sets.Precast = {
  1024.                         ammo="Impatiens",
  1025.                         head="Carmine Mask +1",
  1026.                         neck="Orunmila's Torque",
  1027.                         ear1="Loquac. Earring",
  1028.                         ear2="Etiolation Earring",
  1029.                         body="Taeon Tabard",
  1030.                         hands="Leyline Gloves",
  1031.                         ring1="Lebeche Ring",
  1032.                         ring2="Kishar Ring",
  1033.                         back="Perimede Cape",
  1034.                         waist="Witful Belt",
  1035.                         legs="Aya. Cosciales +2",
  1036.                         feet="Carmine Greaves +1"}
  1037.        
  1038.         -- Fast Cast Set --
  1039.         sets.Precast.FastCast = set_combine(sets.Precast,{})
  1040.                        
  1041.         -- Pre-Cast Blue Magic --
  1042.         sets.Precast['Blue Magic'] = set_combine(sets.Precast,{}) -- Insert Hashishin Mintan +1 here if you need the FC --
  1043.                        
  1044.         -- Pre-Cast Enhancing Magic --
  1045.         sets.Precast['Enhancing Magic'] = set_combine(sets.Precast,{
  1046.                         waist="Siegel Sash"})
  1047.        
  1048.         -- Cure Precast Set --
  1049.         sets.Precast.Cure = set_combine(sets.Precast.FastCast,{
  1050.                         ear2="Mendi. Earring",
  1051.                         waist="Acerbic Sash +1"})
  1052.  
  1053.         ------------------------------------
  1054.         -- Mid-Cast Sets (Non-Blue Magic) --
  1055.         ------------------------------------
  1056.  
  1057.         -- Mid-Cast Base Set --
  1058.         sets.Midcast = {
  1059.                         ammo="Staunch Tathlum +1",
  1060.                         head="Carmine Mask +1",
  1061.                         neck="Orunmila's Torque",
  1062.                         ear1="Loquac. Earring",
  1063.                         ear2="Etiolation Earring",
  1064.                         body="Taeon Tabard",
  1065.                         hands="Leyline Gloves",
  1066.                         ring1="Defending Ring",
  1067.                         ring2="Kishar Ring",
  1068.                         back=FCCape,
  1069.                         waist="Witful Belt",
  1070.                         legs="Carmine Cuisses +1",
  1071.                         feet="Amalric nails +1"}
  1072.  
  1073.         -- Magic Haste Set --
  1074.         sets.Midcast.Haste = set_combine(sets.Midcast,{})
  1075.                        
  1076.         -- Magic Attack Bonus Set --
  1077.         sets.Midcast.MAB = {
  1078.                         ammo="Pemphredo Tathlum",
  1079.                         head="Jhakri Coronal +2",
  1080.                         neck="Sanctity Necklace",
  1081.                         ear1="Friomisi Earring",
  1082.                         ear2="Regal Earring",
  1083.                         body="Amalric Doublet +1",
  1084.                         hands="Amalric Gages +1",
  1085.                         ring1="Shiva Ring +1",
  1086.                         ring2="Shiva Ring +1",
  1087.                         back=MABCape,
  1088.                         waist="Eschan Stone",
  1089.                         legs="Jhakri Slops +2",
  1090.                         feet="Amalric nails +1"}
  1091.                        
  1092.         -- Magic Burst Set --
  1093.         sets.Midcast.MB = {
  1094.                         body="Samnuha Coat",
  1095.                         hands="Amalric Gages +1",
  1096.                         ring1="Mujin Band",
  1097.                         ring2="Locus Ring",
  1098.                         back="Seshaw Cape",
  1099.                         feet="Jhakri Pigaches +2"}
  1100.  
  1101.         -- Magic Accuracy Set --
  1102.         sets.Midcast.MACC = {
  1103.                         ammo="Pemphredo Tathlum",
  1104.                         head="Assim. Keffiyeh +2",
  1105.                         neck="Erra Pendant",
  1106.                         ear1="Digni. Earring",
  1107.                         ear2="Regal Earring",
  1108.                         body="Amalric Doublet +1",
  1109.                         hands="Jhakri Cuffs +2",
  1110.                         ring1="Stikini Ring",
  1111.                         ring2="Stikini Ring",
  1112.                         back=MABCape,
  1113.                         waist="Eschan Stone",
  1114.                         legs="Jhakri Slops +2",
  1115.                         feet="Jhakri Pigaches +2"}
  1116.                        
  1117.         -- Magic Enmity Set --
  1118.         sets.Midcast.MagicEnmity = set_combine(sets.Midcast,{
  1119.                         neck="Unmoving Collar +1",
  1120.                         ear1="Trux Earring",
  1121.                         ear2="Cryptic Earring",
  1122.                         body="Emet Harness +1",
  1123.                         ring1="Petrov Ring",
  1124.                         ring2="Eihwaz Ring",
  1125.                         waist="Goading Belt"})
  1126.        
  1127.         -- Enhancing Magic Base Set --
  1128.         sets.Midcast['Enhancing Magic'] = {
  1129.                         head="Carmine Mask +1",
  1130.                         neck="Incanter's Torque",
  1131.                         ear1="Andoaa Earring",
  1132.                         ear2="Augment. Earring",
  1133.                         body="Telchine Chas.",
  1134.                         ring1="Stikini Ring",
  1135.                         ring2="Stikini Ring",
  1136.                         back="Perimede Cape",
  1137.                         waist="Olympus Sash",
  1138.                         legs="Carmine Cuisses +1"}
  1139.        
  1140.         -- Elemental Magic Set --
  1141.         sets.Midcast['Elemental Magic'] = set_combine(sets.Midcast.MAB,{})
  1142.  
  1143.         -- Enfeebling Magic Set --
  1144.         sets.Midcast['Enfeebling Magic'] = set_combine(sets.Midcast.MACC,{
  1145.                         head="Carmine Mask +1",
  1146.                         ring2="Kishar Ring"})
  1147.        
  1148.         -- Dark Magic Set --
  1149.         sets.Midcast['Dark Magic'] = set_combine(sets.Midcast.MACC,{})
  1150.        
  1151.         -- Refresh Set --
  1152.         sets.Midcast.Refresh = set_combine(sets.Midcast,{
  1153.                         head="Amalric Coif",
  1154.                         waist="Gishdubar Sash"})
  1155.        
  1156.         -- Flash Set --
  1157.         sets.Midcast.Flash = set_combine(sets.Midcast.MagicEnmity,{})
  1158.        
  1159.         -- Repose Set --
  1160.         sets.Midcast.Repose = set_combine(sets.Midcast.MACC,{})
  1161.        
  1162.         -- Stoneskin Set --
  1163.         sets.Midcast.Stoneskin = set_combine(sets.Midcast['Enhancing Magic'],{waist="Siegel Sash"})
  1164.                        
  1165.         -- Enfeebling Ninjutsu Set --
  1166.         sets.Midcast.Enfeebling_Ninjutsu = set_combine(sets.Midcast.MACC,{})
  1167.        
  1168.         -- Elemental Ninjutsu Set --
  1169.         sets.Midcast.Elemental_Ninjutsu = set_combine(sets.Midcast.MAB,{})
  1170.  
  1171.         -----------------------------------------------------
  1172.         -- For Cure Spells & The Listed Healing Blue Magic --
  1173.         -----------------------------------------------------
  1174.        
  1175.         -- Cure Set --
  1176.         sets.Midcast.Cure = {
  1177.                         ammo="Quartz Tathlum +1",
  1178.                         head="Carmine Mask +1",
  1179.                         neck="Phalaina Locket",
  1180.                         ear1="Loquac. Earring",
  1181.                         ear2="Mendi. Earring",
  1182.                         body="Vrikodara Jupon",
  1183.                         hands="Telchine Gloves",
  1184.                         ring1="Rufescent Ring",
  1185.                         ring2="Levia. Ring",
  1186.                         back="Solemnity Cape",
  1187.                         waist="Gishdubar Sash",
  1188.                         legs="Telchine Braconi",
  1189.                         feet="Medium's Sabots"}
  1190.                        
  1191.         -- Self Cures --
  1192.         sets.Midcast.SelfCure = set_combine(sets.Midcast.Cure,{
  1193.                         waist="Gishdubar Sash"})
  1194.                        
  1195.         -- HP-up Cures --
  1196.         sets.Midcast.HPCure = set_combine(sets.Midcast.Cure,{
  1197.                         ammo="Egoist's Tathlum",
  1198.                         ear1="Odnowa Earring",
  1199.                         ear2="Odnowa Earring +1",
  1200.                         ring1="Eihwaz Ring",
  1201.                         waist="Gishdubar Sash",
  1202.                         back="Moonlight Cape"})
  1203.        
  1204.         ------------------------------
  1205.         -- Mid-Cast Blue Magic Sets --
  1206.         ------------------------------
  1207.        
  1208.          -- Blue Magic Base Mid-Cast Set --
  1209.         sets.Midcast['Blue Magic'] = set_combine(sets.Midcast,{hands="Hashi. Bazu. +1"})
  1210.  
  1211.         -- For The Listed Physical Type Blue Magic --
  1212.         sets.Midcast.PhysicalBlueMagic = {
  1213.                         ammo="Floestone",
  1214.                         head="Adhemar Bonnet +1",
  1215.                         neck="Caro Necklace",
  1216.                         ear1="Mache Earring +1",
  1217.                         ear2="Mache Earring +1",
  1218.                         body="Adhemar Jacket +1",
  1219.                         hands="Adhemar Wrist. +1",
  1220.                         ring1="Shukuyu Ring",
  1221.                         ring2="Ifrit Ring +1",
  1222.                         back=WSDCape,
  1223.                         waist="Prosilio Belt +1",
  1224.                         legs="Jhakri Slops +2",
  1225.                         feet="Adhe. Gamashes +1"}
  1226.  
  1227.         -- BlueMagic STR Set --
  1228.         sets.Midcast.PhysicalBlueMagic_STR = set_combine(sets.Midcast.PhysicalBlueMagic,{})
  1229.  
  1230.         -- BlueMagic STR/DEX Set --
  1231.         sets.Midcast.PhysicalBlueMagic_DEX = set_combine(sets.Midcast.PhysicalBlueMagic,{
  1232.                         ring1="Ramuh Ring +1",
  1233.                         ring2="Ramuh Ring +1"})
  1234.  
  1235.         -- BlueMagic STR/VIT Set --
  1236.         sets.Midcast.PhysicalBlueMagic_VIT = set_combine(sets.Midcast.PhysicalBlueMagic,{})
  1237.  
  1238.         -- BlueMagic STR/AGI Set --
  1239.         sets.Midcast.PhysicalBlueMagic_AGI = set_combine(sets.Midcast.PhysicalBlueMagic,{})
  1240.        
  1241.         -- Physical Acc Blue Magic --
  1242.         sets.Midcast.BlueMagic_PhysicalACC = {
  1243.                         ammo="Falcon Eye",
  1244.                         head="Carmine Mask +1",
  1245.                         neck="Combatant's Torque",
  1246.                         ear1="Mache Earring +1",
  1247.                         ear2="Mache Earring +1",
  1248.                         body="Adhemar Jacket +1",
  1249.                         hands="Adhemar Wrist. +1",
  1250.                         ring1="Ramuh Ring +1",
  1251.                         ring2="Ramuh Ring +1",
  1252.                         back=STPCape,
  1253.                         waist="Olseni Belt",
  1254.                         legs="Carmine Cuisses +1",
  1255.                         feet=HerculeanBoots.TA}
  1256.                      
  1257.         -- For The Listed Magical Type BlueMagic --
  1258.         sets.Midcast.MagicalBlueMagic = set_combine(sets.Midcast.MAB,{})
  1259.        
  1260.         -- Dark Based Magical Blue Magic --
  1261.         sets.Midcast.BlueMagic_Dark = set_combine(sets.Midcast.MAB,{head="Pixie Hairpin +1",ring1="Archon Ring"})
  1262.        
  1263.         -- Light Based Magical Blue Magic --
  1264.         sets.Midcast.BlueMagic_Light = set_combine(sets.Midcast.MAB,{}) -- Insert Weatherspoon Ring Here --
  1265.  
  1266.         -- Earth Based Magical Blue Magic --
  1267.         sets.Midcast.BlueMagic_Earth = set_combine(sets.Midcast.MAB,{}) -- Insert Quanpur Necklace Here --
  1268.        
  1269.         -- Blue Magic Burst Affinity Magic Burst Set --
  1270.         sets.Midcast.BAMB = {}                                          -- Insert Emp Feet here if no +1 Amalric --
  1271.  
  1272.         -- Magic Accuracy For The Listed BlueMagic --
  1273.         sets.Midcast.BlueMagic_Accuracy = set_combine(sets.Midcast.MACC,{})
  1274.  
  1275.         -- Stun Set For The Listed BlueMagic --
  1276.         sets.Midcast.BlueMagic_Stun = set_combine(sets.Midcast.MACC,{})
  1277.                        
  1278.         -- Physical Stun Blue Magic --
  1279.         sets.Midcast.BlueMagic_PhysicalStun = set_combine(sets.Midcast.MACC,{
  1280.                         head="Carmine Mask +1",
  1281.                         neck="Sanctity Necklace",
  1282.                         body="Jhakri Robe +2",
  1283.                         hands="Jhakri Cuffs +2",
  1284.                         legs="Jhakri Slops +2",
  1285.                         feet="Jhakri Pigaches +2"})
  1286.  
  1287.         -- Buff Set For The Listed Blue Magic --
  1288.         sets.Midcast.BlueMagic_Buff = {
  1289.                         ammo="Staunch Tathlum +1",
  1290.                         head="Carmine Mask +1",
  1291.                         neck="Incanter's Torque",
  1292.                         ear1="Loquac. Earring",
  1293.                         ear2="Etiolation Earring",
  1294.                         body="Assim. Jubbah +3",
  1295.                         hands="Hashi. Bazu. +1",
  1296.                         ring1="Defending Ring",
  1297.                         ring2="Kishar Ring",
  1298.                         back="Cornflower Cape",
  1299.                         legs="Hashishin Tayt +1",
  1300.                         waist="Hachirin-no-Obi",
  1301.                         feet="Luhlaza Charuqs +1"}
  1302.  
  1303.         -- Breath Set For The Listed Blue Magic --
  1304.         sets.Midcast.BlueMagic_Breath = set_combine(sets.Midcast,{head="Luh. Keffiyeh +1"})
  1305.        
  1306.         -- White Wind Set --
  1307.         sets.Midcast.BlueMagic_HPCure = set_combine(sets.Midcast.HPCure,{})
  1308.        
  1309.         -- Enmity Sets For the Listed Blue Magic --
  1310.         sets.Midcast.BlueMagic_Emnity = set_combine(sets.Midcast.MagicEnmity,{})
  1311.  
  1312. end
  1313.  
  1314.         ----------------
  1315.         -- Pre-Target --
  1316.         ----------------
  1317.  
  1318. function pretarget(spell,action)
  1319.         if (spell.type:endswith('Magic') or spell.type == "Ninjutsu") and buffactive.silence then -- Auto Use Echo Drops If You Are Silenced --
  1320.                 cancel_spell()
  1321.                 send_command('input /item "Echo Drops" <me>')
  1322.         elseif spell.english == "Berserk" and buffactive.Berserk then -- Change Berserk To Aggressor If Berserk Is On --
  1323.                 cancel_spell()
  1324.                 send_command('Aggressor')
  1325.         elseif spell.english:ifind("Cure") and player.mp<actualCost(spell.mp_cost) then -- Cure Degradation --
  1326.                 degrade_spell(spell,Cure_Spells)
  1327.         elseif spell.english:ifind("Curaga") and player.mp<actualCost(spell.mp_cost) then -- Curaga Degradation --
  1328.                 degrade_spell(spell,Curaga_Spells)
  1329.         return
  1330.     end
  1331. end
  1332.  
  1333.         --------------
  1334.         -- Pre-Cast --
  1335.         --------------
  1336.        
  1337. function precast(spell,action)
  1338.         if spell.type == "WeaponSkill" then
  1339.         if player.status ~= 'Engaged' then
  1340.         return
  1341.         else
  1342.                 equipSet = sets.WS
  1343.         if equipSet[spell.english] then
  1344.                 equipSet = equipSet[spell.english]
  1345.                 end
  1346.         if equipSet[AccArray[AccIndex]] then
  1347.                 equipSet = equipSet[AccArray[AccIndex]]
  1348.                 end
  1349.         if buffactive['Reive Mark'] then -- Equip Ygnas's Resolve +1 During Reive --
  1350.                 equipSet = set_combine(equipSet,{neck="Ygnas's Resolve +1"})
  1351.                 end
  1352.         if spell.english == "Chant du Cygne" and player.tp > 2750 or player.equipment.main == 'Sequence' and player.tp > 2250 then
  1353.                 equipSet = set_combine(equipSet,{ear1="Mache Earring +1",ear2="Mache Earring +1"})  
  1354.         elseif spell.english == "Requiescat" and player.tp > 2750 or player.equipment.main == 'Sequence' and player.tp > 2250 then
  1355.                 equipSet = set_combine(equipSet,{ear1="Lifestorm Earring"})  
  1356.         elseif spell.english == "Expiacion" and player.tp > 2750 or player.equipment.main == 'Sequence' and player.tp > 2250 then
  1357.                 equipSet = set_combine(equipSet,{ear1="Ishvara Earring",ear2="Brutal Earring"})
  1358.         elseif spell.english == "Savage Blade" and player.tp > 2750 or player.equipment.main == 'Sequence' and player.tp > 2250 then
  1359.                 equipSet = set_combine(equipSet,{ear1="Ishvara Earring",ear2="Brutal Earring"})
  1360.         elseif spell.english == "Vorpal Blade" and player.tp > 2750 or player.equipment.main == 'Sequence' and player.tp > 2250 then
  1361.                 equipSet = set_combine(equipSet,{ear1="Ishvara Earring",ear2="Brutal Earring"})
  1362.         elseif spell.english == "Sanguine Blade" and world.day == "Darksday" or world.weather_element == "Dark" then
  1363.                 equipSet = set_combine(equipSet,{waist="Hachirin-no-Obi"})
  1364.         elseif spell.english == "Realmrazer" and player.tp > 2750 then
  1365.                 equipSet = set_combine(equipSet,{ear1="Lifestorm Earring"})  
  1366.         elseif spell.english == "Black Halo" and player.tp > 2750 then
  1367.                 equipSet = set_combine(equipSet,{ear1="Ishvara Earring",ear2="Brutal Earring"})
  1368.         elseif spell.english == "Flash Nova" and world.day == "Lightsday" or world.weather_element == "Light" then
  1369.                 equipSet = set_combine(equipSet,{waist="Hachirin-no-Obi"})                 
  1370.                 end
  1371.                 equip(equipSet)
  1372.                 end
  1373.         elseif spell.type == "JobAbility" or spell.type == "Ward" then
  1374.         if sets.JA[spell.english] then
  1375.                 equip(sets.JA[spell.english])
  1376.                 end        
  1377.         elseif spell.english == 'Lunge' or spell.english == 'Swipe' then
  1378.                 equip(sets.JA.Lunge)
  1379.         elseif spell.type == "Rune" then
  1380.                 equip(sets.JA.Enmity)              
  1381.         elseif spell.type:endswith('Magic') or spell.type == "Ninjutsu" then
  1382.         if buffactive.silence  then -- Cancel Magic or Ninjutsu If You Are Silenced --
  1383.                 cancel_spell()
  1384.                 add_to_chat(123, spell.name..' Canceled: [Silenced]')
  1385.         return
  1386.         else
  1387.         if (string.find(spell.english,'Cur') or BlueMagic_Healing:contains(spell.english) or BlueMagic_HPCure:contains(spell.english))  and spell.english ~= "Cursna" then
  1388.                 equip(sets.Precast.Cure)
  1389.         elseif string.find(spell.english,'Utsusemi') then
  1390.         if buffactive['Copy Image (3)'] or buffactive['Copy Image (4)'] then
  1391.                 cancel_spell()
  1392.                 add_to_chat(123, spell.english .. ' Canceled: [3+ Images]')
  1393.         return
  1394.         else
  1395.                 equip(sets.Precast.FastCast)
  1396.                 end
  1397.         elseif sets.Precast[spell.skill] then
  1398.                 equip(sets.Precast[spell.skill])
  1399.         else
  1400.                 equip(sets.Precast.FastCast)
  1401.                 end
  1402.                 end
  1403.         elseif string.find(spell.type,'Flourish') then
  1404.         if spell.english == "Animated Flourish" then
  1405.                 equip(sets.Enmity)
  1406.         else
  1407.                 equip(sets.Flourish)
  1408.                 end
  1409.         elseif spell.type == "Step" then
  1410.                 equip(sets.Step)
  1411.         elseif spell.type == "Waltz" then
  1412.                 equip(sets.Waltz)
  1413.         elseif spell.english == 'Spectral Jig' and buffactive.Sneak then
  1414.                 cast_delay(0.2)
  1415.                 send_command('cancel Sneak')
  1416.         end
  1417. end
  1418.            
  1419.         --------------
  1420.         -- Mid-Cast --
  1421.         --------------
  1422.            
  1423. function midcast(spell,action)
  1424.                 equipSet = {}
  1425.         if spell.type:endswith('Magic') or spell.type == 'Ninjutsu' or spell.type == 'Trust' then
  1426.                 equipSet = sets.Midcast
  1427.         if equipSet[spell.english] then
  1428.                 equipSet = equipSet[spell.english]
  1429.         elseif (string.find(spell.english,'Cur') or BlueMagic_Healing:contains(spell.english)) and spell.english ~= "Cursna" then
  1430.         if spell.target.name == player.name then
  1431.                 equipSet = equipSet.SelfCure
  1432.         else
  1433.                 equipSet = equipSet.Cure
  1434.                 end
  1435.         elseif BlueMagic_HPCure:contains(spell.english) then
  1436.                 equipSet = equipSet.BlueMagic_HPCure
  1437.         elseif string.find(spell.english,'Protect') or string.find(spell.english,'Shell') then
  1438.         if spell.target.name == player.name then
  1439.                 equipSet = set_combine(equipSet,{ring1="Sheltered Ring"})
  1440.                 end    
  1441.         elseif spell.english:startswith('Haste') or spell.english:startswith('Flurry') or spell.english:startswith('Blink') or spell.english:startswith('Regen') or spell.english:endswith('Spikes') then
  1442.                 equipSet = sets.Haste
  1443.         elseif spell.english == "Stoneskin" then
  1444.         if buffactive.Stoneskin then
  1445.                 send_command('@wait 2.8;cancel stoneskin')
  1446.                 end
  1447.                 equipSet = equipSet.Stoneskin
  1448.         elseif PhysicalBlueMagic:contains(spell.english) or PhysicalBlueMagic_STR:contains(spell.english) or PhysicalBlueMagic_DEX:contains(spell.english) or PhysicalBlueMagic_VIT:contains(spell.english) or PhysicalBlueMagic_AGI:contains(spell.english) or BlueMagic_PhysicalACC:contains(spell.english) then
  1449.         if PhysicalBlueMagic_STR:contains(spell.english) then
  1450.                 equipSet = equipSet.PhysicalBlueMagic_STR
  1451.         elseif PhysicalBlueMagic_DEX:contains(spell.english) then
  1452.                 equipSet = equipSet.PhysicalBlueMagic_DEX
  1453.         elseif PhysicalBlueMagic_VIT:contains(spell.english) then
  1454.                 equipSet = equipSet.PhysicalBlueMagic_VIT
  1455.         elseif PhysicalBlueMagic_AGI:contains(spell.english) then
  1456.                 equipSet = equipSet.PhysicalBlueMagic_AGI
  1457.         elseif PhysicalBlueMagic:contains(spell.english) then
  1458.                 equipSet = equipSet.PhysicalBlueMagic
  1459.         elseif BlueMagic_PhysicalACC:contains(spell.english) then
  1460.                 equipSet = equipSet.BlueMagic_PhysicalACC
  1461.                 end
  1462.         if buffactive['Chain Affinity'] then
  1463.                 equipSet = set_combine(equipSet,sets['Chain Affinity'])
  1464.                 end
  1465.         if buffactive.Efflux then
  1466.                 equipSet = set_combine(equipSet,sets.Efflux)
  1467.                 end
  1468.         elseif MagicalBlueMagic:contains(spell.english) or BlueMagic_Dark:contains(spell.english) or BlueMagic_Light:contains(spell.english) or BlueMagic_Earth:contains(spell.english) then
  1469.         if MagicalBlueMagic:contains(spell.english) then
  1470.                 equipSet = equipSet.MagicalBlueMagic
  1471.         elseif BlueMagic_Dark:contains(spell.english) then
  1472.                 equipSet = equipSet.BlueMagic_Dark
  1473.         elseif BlueMagic_Light:contains(spell.english) then
  1474.                 equipSet = equipSet.BlueMagic_Light
  1475.         elseif BlueMagic_Earth:contains(spell.english) then
  1476.                 equipSet = equipSet.BlueMagic_Earth
  1477.                 end
  1478.         if buffactive['Burst Affinity'] then
  1479.                 equipSet = set_combine(equipSet,sets['Burst Affinity'])
  1480.                 end
  1481.         if world.day_element == spell.element or world.weather_element == spell.element then
  1482.                 equipSet = set_combine(equipSet,{waist='Hachirin-no-Obi'})
  1483.                 end
  1484.         if buffactive.Convergence then
  1485.                 equipSet = set_combine(equipSet,sets.Convergence)
  1486.                 end
  1487.         if buffactive['Burst Affinity'] or buffactive['Azure Lore'] and MB == 'ON' then
  1488.                 equipSet = set_combine(equipSet,sets.Midcast.BAMB)
  1489.                 end
  1490.                 equip(equipSet)
  1491.         elseif BlueMagic_Accuracy:contains(spell.english) then
  1492.                 equipSet = equipSet.BlueMagic_Accuracy
  1493.         elseif BlueMagic_Stun:contains(spell.english) then
  1494.                 equipSet = equipSet.BlueMagic_Stun
  1495.         elseif BlueMagic_PhysicalStun:contains(spell.english) then
  1496.                 equipSet = equipSet.BlueMagic_PhysicalStun
  1497.         elseif BlueMagic_Emnity:contains(spell.english) then
  1498.                 equipSet = equipSet.BlueMagic_Emnity                       
  1499.         elseif BlueMagic_Buff:contains(spell.english) then
  1500.                 equipSet = equipSet.BlueMagic_Buff
  1501.         elseif BlueMagic_Refresh:contains(spell.english) then
  1502.                 equipSet = equipSet.Refresh
  1503.         elseif BlueMagic_Diffusion:contains(spell.english) and buffactive.Diffusion then
  1504.                 equipSet = set_combine(equipSet,sets.Diffusion)
  1505.         elseif BlueMagic_Breath:contains(spell.english) then
  1506.                 equipSet = equipSet.BlueMagic_Breath
  1507.         elseif spell.english == "Stoneskin" then
  1508.         if buffactive.Stoneskin then
  1509.                 send_command('@wait 2.8;cancel stoneskin')
  1510.                 end
  1511.                 equipSet = equipSet.Stoneskin
  1512.         elseif spell.english == "Sneak" then
  1513.         if spell.target.name == player.name and buffactive['Sneak'] then
  1514.                 send_command('cancel sneak')
  1515.                 end
  1516.                 equipSet = equipSet.Haste
  1517.         elseif string.find(spell.english,'Utsusemi') then
  1518.         if spell.english == 'Utsusemi: Ichi' and (buffactive['Copy Image'] or buffactive['Copy Image (2)']) then
  1519.                 send_command('@wait 1.7;cancel Copy Image*')
  1520.                 end
  1521.                 equipSet = equipSet.Haste
  1522.         elseif spell.english == 'Monomi: Ichi' then
  1523.         if buffactive['Sneak'] then
  1524.                 send_command('@wait 1.7;cancel sneak')
  1525.                 end
  1526.                 equipSet = equipSet.Haste
  1527.         elseif spell.english:startswith('Tonko') then
  1528.                 equipSet = equipSet.Haste
  1529.         elseif spell.english:startswith('Jabaku') or spell.english:startswith('Hojo') or spell.english:startswith('Kurayami') or spell.english:startswith('Dokumori') then
  1530.                 equipSet = equipSet.Enfeebling_Ninjutsu
  1531.         elseif spell.english:startswith('Katon') or spell.english:startswith('Suiton') or spell.english:startswith('Doton') or spell.english:startswith('Hyoton') or spell.english:startswith('Huton') or spell.english:startswith('Raiton') then
  1532.                 equipSet = equipSet.Elemental_Ninjutsu
  1533.         if (world.day_element == spell.element or world.weather_element == spell.element) then
  1534.                 equipSet = set_combine(equipSet,{waist="Hachirin-no-Obi"})
  1535.         end
  1536.         if MB == 'ON' then
  1537.                 equipSet = set_combine(equipSet,sets.Midcast.MB)
  1538.                 end
  1539.         elseif equipSet[spell.skill] then
  1540.                 equipSet = equipSet[spell.skill]
  1541.                 end
  1542.         if spell.english:startswith('Cur') or spell.english:startswith('White Wind') and spell.english ~= "Cursna" then
  1543.         if (world.day_element == spell.element or world.weather_element == spell.element) then
  1544.                 equipSet = set_combine(equipSet,{waist="Hachirin-no-Obi"})
  1545.                 end
  1546.                 end
  1547.         if spell.skill == 'Elemental Magic' or spell.english:startswith('Aspir') or spell.english:startswith('Drain') then
  1548.         if (world.day_element == spell.element or world.weather_element == spell.element) then
  1549.                 equipSet = set_combine(equipSet,{waist="Hachirin-no-Obi"})
  1550.                 end
  1551.         if MB == 'ON' then
  1552.                 equipSet = set_combine(equipSet,sets.Midcast.MB)
  1553.                 end
  1554.                 end
  1555.         elseif equipSet[spell.english] then
  1556.                 equipSet = equipSet[spell.english]
  1557.         end
  1558.         equip(equipSet)
  1559. end
  1560.        
  1561.         ----------------
  1562.         -- After-Cast --
  1563.         ----------------
  1564.        
  1565. function aftercast(spell,action)
  1566.         if spell.type == "WeaponSkill" and not spell.interrupted then
  1567.                 send_command('wait 0.2;gs c TP')
  1568.         elseif spell.english == "Sleep II" or spell.english == "Repose" or spell.english == "Dream Flower" then -- Sleep II//Repose/Dream Flower Countdown --
  1569.                 send_command('wait 60;input /echo Sleep II/Dream Flower Effect: [WEARING OFF IN 30 SEC.];wait 15;input /echo Sleep II/Dream Flower Effect: [WEARING OFF IN 15 SEC.];wait 10;input /echo Sleep II/Dream Flower Effect: [WEARING OFF IN 5 SEC.]')
  1570.         elseif spell.english == "Sleep" or spell.english == "Sleepga" or spell.english == "Sheep Song" then -- Sleep/Sleepga/Sheep Song Countdown --
  1571.                 send_command('wait 30;input /echo Sleep/Sheep Song Effect: [WEARING OFF IN 30 SEC.];wait 15;input /echo Sleep/Sheep Song Effect: [WEARING OFF IN 15 SEC.];wait 10;input /echo Sleep/Sheep Song Effect: [WEARING OFF IN 5 SEC.]')
  1572.         end
  1573.         status_change(player.status)
  1574. end
  1575.  
  1576.         -------------------
  1577.         -- Status Change --
  1578.         -------------------
  1579.        
  1580. function status_change(new,old)
  1581.         if Armor == 'PDT' or buffactive.Terror or buffactive.Stun or buffactive.Petrification or buffactive.Sleep then
  1582.                 equip(sets.PDT)
  1583.         elseif Armor == 'MDT' then
  1584.                 equip(sets.MDT)
  1585.         elseif Armor == 'Kiting' then
  1586.                 equip(sets.Kiting)
  1587.         elseif new == 'Engaged' then
  1588.                 equipSet = sets.TP
  1589.         if Armor == 'Hybrid' and equipSet["Hybrid"] then
  1590.                 equipSet = equipSet["Hybrid"]
  1591.                 end
  1592.         if equipSet[WeaponArray[WeaponIndex]] then
  1593.                 equipSet = equipSet[WeaponArray[WeaponIndex]]
  1594.                 end
  1595.         if equipSet[AccArray[AccIndex]] then
  1596.                 equipSet = equipSet[AccArray[AccIndex]]
  1597.                 end
  1598.         if (buffactive.March and (buffactive.Embrava or buffactive.Haste or buffactive['Mighty Guard']) or (buffactive.Haste == 2) or (buffactive['Mighty Guard']) and (buffactive.Embrava or buffactive.Haste)) and equipSet["HighHaste"] then
  1599.                 equipSet = equipSet["HighHaste"]
  1600.                 end
  1601.         if buffactive["Aftermath: Lv.3"] and player.equipment.main == 'Tizona' and equipSet["AM3"] then -- AM3 Set Equip (Mythic Only) --
  1602.                 equipSet = equipSet["AM3"]
  1603.                 end
  1604.         if Thaumas == 'ON' then
  1605.                 equipSet = set_combine(equipSet,sets.TP.Thaumas)
  1606.                 end
  1607.         if TH == 'ON' then -- Treasure Hunter TP Toggle --
  1608.             equipSet = set_combine(equipSet,sets.TP.TH)
  1609.         end
  1610.                 equip(equipSet)
  1611.         elseif new == 'Idle' then
  1612.                 equipSet = sets.Idle
  1613.         if equipSet[IdleArray[IdleIndex]] then
  1614.                 equipSet = equipSet[IdleArray[IdleIndex]]
  1615.                 end
  1616.         if Cities:contains(world.area) then
  1617.                 equipSet = equip(sets.Idle.Town)
  1618.                 end
  1619.         if buffactive['Reive Mark'] then -- Equip Ygnas's Resolve +1 During Reive --
  1620.                 equipSet = set_combine(equipSet,{neck="Ygnas's Resolve +1"})
  1621.                 end
  1622.         equip(equipSet)
  1623.         end
  1624. end
  1625.        
  1626.         -----------------
  1627.         -- Buff Change --
  1628.         -----------------
  1629.    
  1630. function buff_change(buff,gain,buff_table)
  1631.         buff = string.lower(buff)
  1632.         if buff_table['id'] == 272 and player.equipment.main == 'Tizona' then -- Tizona AM3 Timer/Countdown --
  1633.         if gain then
  1634.                 send_command('timers create "Mythic Aftermath: Lv.3" 180 down')
  1635.                 add_to_chat(158,'Tizona AM3: [ON]')
  1636.         else
  1637.                 send_command('timers delete "Mythic Aftermath: Lv.3"')
  1638.                 add_to_chat(123,'Tizona AM3: [OFF]')
  1639.                 end
  1640.         elseif buff_table['id'] == 271 and player.equipment.main == 'Tizona' then -- Tizona AM2 Timer/Countdown --
  1641.         if gain then
  1642.                 send_command('timers create "Mythic Aftermath: Lv.2" 270 down')
  1643.                 add_to_chat(158,'Tizona AM2: [ON]')
  1644.         else
  1645.                 send_command('timers delete "Mythic Aftermath: Lv.2"')
  1646.                 add_to_chat(123,'Tizona AM2: [OFF]')
  1647.                 end    
  1648.         elseif buff_table['id'] == 270 and player.equipment.main == 'Tizona' then -- Tizona AM1 Timer/Countdown --
  1649.         if gain then
  1650.                 add_to_chat(158,'Tizona AM1: [ON]')
  1651.         else
  1652.                 add_to_chat(123,'Tizona AM1: [OFF]')
  1653.                 end
  1654.         elseif buff_table['id'] == 272 and player.equipment.main == 'Almace' then -- Almace AM3 Timer/Countdown --
  1655.         if gain then
  1656.                 send_command('timers create "Empy Aftermath: Lv.3" 180 down')
  1657.                 add_to_chat(158,'Almace AM3: [ON]')
  1658.                 else
  1659.                 send_command('timers delete "Empy Aftermath: Lv.3"')
  1660.                 add_to_chat(123,'Almace AM3: [OFF]')
  1661.                 end
  1662.         elseif buff_table['id'] == 271 and player.equipment.main == 'Almace' then -- Almace AM2 Timer/Countdown --
  1663.         if gain then
  1664.                 send_command('timers create "Empy Aftermath: Lv.2" 120 down')
  1665.                 add_to_chat(158,'Almace AM2: [ON]')
  1666.         else
  1667.                 send_command('timers delete "Empy Aftermath: Lv.2"')
  1668.                 add_to_chat(123,'Almace AM2: [OFF]')
  1669.                 end    
  1670.         elseif buff_table['id'] == 270 and player.equipment.main == 'Almace' then -- Almace AM1 Timer/Countdown --
  1671.         if gain then
  1672.                 add_to_chat(158,'Almace AM1: [ON]')
  1673.         else
  1674.                 add_to_chat(123,'Almace AM1: [OFF]')
  1675.                 end
  1676.         elseif buff_table['id'] == 272 and player.equipment.main == 'Sequence' then -- Sequence AM3 Timer/Countdown --
  1677.         if gain then
  1678.                 send_command('timers create "Aeonic Aftermath: Lv.3" 180 down')
  1679.                 add_to_chat(158,'Sequence AM3: [ON]')
  1680.                 else
  1681.                 send_command('timers delete "Aeonic Aftermath: Lv.3"')
  1682.                 add_to_chat(123,'Sequence AM3: [OFF]')
  1683.                 end
  1684.         elseif buff_table['id'] == 271 and player.equipment.main == 'Sequence' then -- Sequence AM2 Timer/Countdown --
  1685.         if gain then
  1686.                 send_command('timers create "Aeonic Aftermath: Lv.2" 180 down')
  1687.                 add_to_chat(158,'Sequence AM2: [ON]')
  1688.         else
  1689.                 send_command('timers delete "Aeonic Aftermath: Lv.2"')
  1690.                 add_to_chat(123,'Sequence AM2: [OFF]')
  1691.                 end    
  1692.         elseif buff_table['id'] == 270 and player.equipment.main == 'Sequence' then -- Sequence AM1 Timer/Countdown --
  1693.         if gain then
  1694.                 add_to_chat(158,'Sequence AM1: [ON]')
  1695.         else
  1696.                 add_to_chat(123,'Sequence AM1: [OFF]')
  1697.                 end
  1698.         elseif buff_table['id'] == 163 then -- Azure Lore Timer --
  1699.         if gain then
  1700.                 send_command('timers create "Azure Lore" 40 down')
  1701.         else
  1702.                 send_command('timers delete "Azure Lore"')
  1703.                 end    
  1704.         elseif buff_table['id'] == 164 then -- Chain Affinity Timer --
  1705.         if gain then
  1706.                 send_command('timers create "Chain Affinity" 30 down')
  1707.         else
  1708.                 send_command('timers delete "Chain Affinity"')
  1709.                 end        
  1710.         elseif buff_table['id'] == 165 then -- Burst Affinity Timer --
  1711.         if gain then
  1712.                 send_command('timers create "Burst Affinity" 30 down')
  1713.         else
  1714.                 send_command('timers delete "Burst Affinity"')
  1715.                 end    
  1716.         elseif buff_table['id'] == 457 then -- Efflux Timer --
  1717.         if gain then
  1718.                 send_command('timers create "Efflux" 60 down')
  1719.         else
  1720.                 send_command('timers delete "Efflux"')
  1721.                 end    
  1722.         elseif buff_table['id'] == 356 then -- Diffusion Timer --
  1723.         if gain then
  1724.                 send_command('timers create "Diffusion" 60 down')
  1725.         else
  1726.                 send_command('timers delete "Diffusion"')
  1727.                 end    
  1728.         elseif buff_table['id'] == 485 then -- Unbridled Learning Timer --
  1729.         if gain then
  1730.                 send_command('timers create "Unbridled Learning" 60 down')
  1731.         else
  1732.                 send_command('timers delete "Unbridled Learning"')
  1733.                 end    
  1734.         elseif buff_table['id'] == 505 then -- Unbridled Wisdom Timer --
  1735.         if gain then
  1736.                 send_command('timers create "Unbridled Wisdom" 60 down')
  1737.         else
  1738.                 send_command('timers delete "Unbridled Wisdom"')
  1739.                 end                    
  1740.         elseif buff_table['id'] == 434 then -- Brew Timer --
  1741.         if gain then
  1742.                 send_command('timers create "Transcendency" 180 down')
  1743.         else
  1744.                 send_command('timers delete "Transcendency"')
  1745.                 add_to_chat(123,'Transcendency: [OFF]')
  1746.                 end            
  1747.         elseif buff_table['id'] == 1 then -- Weakness Timer --
  1748.         if gain then
  1749.                 send_command('timers create "Weakness" 300 up')
  1750.         else
  1751.                 send_command('timers delete "Weakness"')
  1752.                 add_to_chat(158,'Weakness: [OFF]')
  1753.                 end
  1754.         elseif buff_table['id'] == 15 then -- Doom Party Chat --
  1755.         if gain then
  1756.                 send_command('input /party Doom')
  1757.         else
  1758.                 send_command('input /party Doom off')
  1759.                 add_to_chat(158,'Doom: [OFF]')
  1760.                 end
  1761.         elseif buff_table['id'] == 9 then -- Curse Party Chat --
  1762.         if gain then
  1763.                 send_command('input /party Curse')
  1764.         else
  1765.                 add_to_chat(158,'Curse: [OFF]')
  1766.                 end
  1767.         elseif buff_table['id'] == 14 or buff_table['id'] == 17 then -- Charm Party Chat --
  1768.         if gain then
  1769.                 send_command('input /party Charmed')
  1770.         else
  1771.                 send_command('input /party Charm off')
  1772.                 add_to_chat(158,'Charm: [OFF]')
  1773.                 end
  1774.         elseif buff_table['id'] == 4 then -- Paralysis Party Chat --
  1775.         if gain then
  1776.                 add_to_chat(123,'Paralyzed!')
  1777.         else
  1778.                 add_to_chat(158,'Paralysis: [OFF]')
  1779.                 end            
  1780.         elseif buff_table['id'] == 91 then -- Nat. Meditation --
  1781.         if not gain then
  1782.                 add_to_chat(123,'Nat. Meditation: [OFF]')
  1783.                 end
  1784.         elseif buff_table['id'] == 93 then -- Cocoon Notification --
  1785.         if not gain then
  1786.                 add_to_chat(123,'Cocoon: [OFF]')
  1787.                 end    
  1788.         elseif buff_table['id'] == 33 then -- Haste --
  1789.         if not gain then
  1790.                 add_to_chat(123,'Haste: [OFF]')
  1791.                 end    
  1792.         elseif buff_table['id'] == 147 then -- Attack Down --
  1793.         if not gain then
  1794.                 add_to_chat(158,'Attack Down: [OFF]')
  1795.                 end
  1796.         elseif buff_table['id'] == 149 then -- Defense Down --
  1797.         if not gain then
  1798.                 add_to_chat(158,'Defense Down: [OFF]')
  1799.                 end    
  1800.         elseif buff_table['id'] == 13  then    -- Slow --
  1801.         if gain then
  1802.                 add_to_chat(123,'Slowed!')
  1803.                 else
  1804.                 add_to_chat(158,'Slow: [OFF]')
  1805.                 end
  1806.         elseif buff_table['id'] == 42 then -- Regen --
  1807.         if not gain then
  1808.                 add_to_chat(123,'Regen: [OFF]')
  1809.                 end    
  1810.         elseif buff_table['id'] == 43 then -- Refresh --
  1811.         if not gain then
  1812.                 add_to_chat(123,'Refresh: [OFF]')
  1813.                 end
  1814.         elseif buff_table['id'] == 152 then -- Magic Barrier --
  1815.         if not gain then
  1816.                 add_to_chat(123,'Magic Barrier: [OFF]')
  1817.                 end    
  1818.         elseif buff_table['id'] == 116 then -- Phalanx/Barrier Tusk --
  1819.         if not gain then
  1820.                 add_to_chat(123,'Phalanx: [OFF]')
  1821.                 end    
  1822.         elseif buff_table['id'] == 36 then -- Blink/Occultation --
  1823.         if not gain then
  1824.                 add_to_chat(123,'Blink: [OFF]')
  1825.                 end    
  1826.         elseif buff_table['id'] == 604 then -- Mighty Guard --
  1827.         if not gain then
  1828.                 add_to_chat(123,'Mighty Guard: [OFF]')
  1829.                 end    
  1830.         elseif buff_table['id'] == 251 then -- Food --
  1831.         if not gain then
  1832.                 add_to_chat(123,'Food: [OFF]')
  1833.                 end
  1834.         elseif buff_table['id'] == 28 then -- Terror --
  1835.         if not gain then
  1836.                 add_to_chat(158,'Terror: [OFF]')
  1837.                 end
  1838.         elseif buff_table['id'] == 10 then -- Stun --
  1839.         if not gain then
  1840.                 add_to_chat(158,'Stun: [OFF]')
  1841.                 end    
  1842.         elseif buff_table['id'] == 16 then -- Amnesia --
  1843.         if not gain then
  1844.                 add_to_chat(158,'Amnesia: [OFF]')
  1845.                 end                
  1846.         elseif buff_table['id'] == 2 or buff_table['id'] == 19 then -- Sleep --
  1847.         if gain then
  1848.                 send_command('input /party ZZZ')
  1849.         else
  1850.                 add_to_chat(158,'Sleep: [OFF]')
  1851.                 end        
  1852.         end
  1853.         if not midaction() then
  1854.                 status_change(player.status)
  1855.                 end
  1856. end
  1857.  
  1858.  
  1859.         -------------------------------------------------------------------------------------
  1860.         -- In Game: //gs c (command), Macro: /console gs c (command), Bind: gs c (command) --
  1861.         -------------------------------------------------------------------------------------
  1862.        
  1863. function self_command(command)
  1864.         if command == 'acc' then -- Accuracy Level Toggle --
  1865.                 AccIndex = (AccIndex % #AccArray) + 1
  1866.                 add_to_chat(155,'Accuracy Level: ' .. AccArray[AccIndex])
  1867.                 status_change(player.status)
  1868.         elseif command == 'dw' then -- DW Toggle --
  1869.                 WeaponIndex = (WeaponIndex % #WeaponArray) + 1
  1870.                 add_to_chat(155,'Dual Wield: '..WeaponArray[WeaponIndex])
  1871.                 status_change(player.status)
  1872.         elseif command == 'update' then -- Update Gear --
  1873.                 status_change(player.status)
  1874.                 add_to_chat(155,'-[Gear Update]-')
  1875.                 add_to_chat(155,'Dual Wield: '..WeaponArray[WeaponIndex])
  1876.                 add_to_chat(155,'Accuracy Level: ' .. AccArray[AccIndex])
  1877.                 add_to_chat(155,'Idle Set: ' .. IdleArray[IdleIndex])
  1878.         elseif command == 'hybrid' then -- Hybrid Toggle --
  1879.         if Armor == 'Hybrid' then
  1880.                 Armor = 'None'
  1881.                 add_to_chat(123,'Hybrid Set: [Unlocked]')
  1882.         else
  1883.                 Armor = 'Hybrid'
  1884.                 add_to_chat(158,'Hybrid Set: '..AccArray[AccIndex])
  1885.                 end
  1886.                 status_change(player.status)
  1887.         elseif command == 'th' then -- Treasure Hunter TP Toggle --
  1888.         if TH == 'ON' then
  1889.                 TH = 'OFF'
  1890.                 add_to_chat(123,'Treasure Hunter TP: [Unlocked]')
  1891.         else
  1892.                 TH = 'ON'
  1893.                 add_to_chat(158,'Treasure Hunter TP: [Locked]')
  1894.                 end
  1895.                 status_change(player.status)
  1896.         elseif command == 'pdt' then -- PDT Toggle --
  1897.         if Armor == 'PDT' then
  1898.                 Armor = 'None'
  1899.                 add_to_chat(123,'PDT Set: [Unlocked]')
  1900.         else
  1901.                 Armor = 'PDT'
  1902.                 add_to_chat(158,'PDT Set: [Locked]')
  1903.                 end
  1904.                 status_change(player.status)
  1905.         elseif command == 'mdt' then -- MDT Toggle --
  1906.         if Armor == 'MDT' then
  1907.                 Armor = 'None'
  1908.                 add_to_chat(123,'MDT Set: [Unlocked]')
  1909.         else
  1910.                 Armor = 'MDT'
  1911.                 add_to_chat(158,'MDT Set: [Locked]')
  1912.                 end
  1913.                 status_change(player.status)
  1914.         elseif command == 'kiting' then -- Kiting Toggle --
  1915.         if Armor == 'Kiting' then
  1916.                 Armor = 'None'
  1917.                 add_to_chat(123,'Kiting Set: [Unlocked]')
  1918.         else
  1919.                 Armor = 'Kiting'
  1920.                 add_to_chat(158,'Kiting Set: [Locked]')
  1921.                 end
  1922.                 status_change(player.status)
  1923.         elseif command == 'thaumas' then -- Thaumas Coat Toggle --
  1924.         if Thaumas == 'ON' then
  1925.                 Thaumas = 'OFF'
  1926.                 add_to_chat(123,'Thaumas Coat: [OFF]')
  1927.         else
  1928.                 Thaumas = 'ON'
  1929.                 add_to_chat(158,'Thaumas Coat: [ON]')
  1930.                 end
  1931.         elseif command == 'mb' then -- Magic Burst Toggle --
  1932.         if MB == 'ON' then
  1933.                 MB = 'OFF'
  1934.                 add_to_chat(123,'Magic Burst: [OFF]')
  1935.         else
  1936.                 MB = 'ON'
  1937.                 add_to_chat(158,'Maic Burst: [ON]')
  1938.                 end
  1939.                 status_change(player.status)
  1940.         elseif command == 'distance' then -- Distance Toggle --
  1941.         if player.target.distance then
  1942.                 target_distance = math.floor(player.target.distance*10)/10
  1943.                 add_to_chat(155,'Distance: '..target_distance)
  1944.         else
  1945.                 add_to_chat(123,'No Target Selected')
  1946.                 end
  1947.         elseif command == 'idle' then -- Idle Toggle --
  1948.                 IdleIndex = (IdleIndex % #IdleArray) + 1
  1949.                 add_to_chat(155,'Idle Set: ' .. IdleArray[IdleIndex])
  1950.                 status_change(player.status)
  1951.         elseif command == 'TP' then
  1952.                 add_to_chat(155,'TP Return: ['..tostring(player.tp)..']')
  1953.         elseif command:match('^SC%d$') then
  1954.                 send_command('//' .. sc_map[command])
  1955.                 end
  1956.        
  1957. end
  1958.  
  1959.         -----------
  1960.         -- Misc. --
  1961.         -----------
  1962.        
  1963. function actualCost(originalCost)
  1964.         if buffactive["Penury"] then
  1965.                 return originalCost*.5
  1966.         elseif buffactive["Light Arts"] then
  1967.                 return originalCost*.9
  1968.         else
  1969.                 return originalCost
  1970.         end
  1971. end
  1972.  
  1973. function degrade_spell(spell,degrade_array)
  1974.                 spell_index = table.find(degrade_array,spell.name)
  1975.         if spell_index>1 then
  1976.                 new_spell = degrade_array[spell_index - 1]
  1977.                 change_spell(new_spell,spell.target.raw)
  1978.                 add_to_chat(8,spell.name..' Canceled: ['..player.mp..'/'..player.max_mp..'MP::'..player.mpp..'%] Casting '..new_spell..' instead.')
  1979.         end
  1980. end
  1981.  
  1982. function find_player_in_alliance(name)
  1983.         for i,v in ipairs(alliance) do
  1984.         for k,p in ipairs(v) do
  1985.         if p.name == name then
  1986.         return p
  1987.         end
  1988.     end
  1989.     end
  1990. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement