Advertisement
Arnan

BLU Lua Feb 2018

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