Advertisement
Guest User

Untitled

a guest
Jun 25th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 39.63 KB | None | 0 0
  1. --To toggle gearsets:
  2. --Main command: //gs c toggle x set       where x = set name variable. Variables are as follows: --
  3. --Idle sets: Idle, TP sets: TP--
  4. --Requiescat sets: Req, CDC sets: CDC, Expiacion sets: Expi, Savage Blade sets: Savage--
  5. --Realm, FlashNova--
  6.  
  7. --E.g.   /console gs c toggle CDC set--
  8. --              /console gs c toggle TP set--
  9. --                              Reqi, etc, read at the bottom of the GS in the toggles for the names--
  10.  
  11.  
  12.  
  13. --I am sure there is outdated gear in here that I have probably even forgotten to change --
  14. --Just look over it and fit it to your needs, for example maybe change savage to not use expiaction gear down in the WS rules.
  15.  
  16.  
  17.         send_command('bind f9 gs c toggle TP set')   --This means if you hit cntrl and f9 it toggles the sets
  18.         send_command('bind f10 gs c toggle CDC set')
  19.         send_command('bind f11 gs c toggle Req set')
  20.         send_command('bind f12 gs c toggle Idle set')
  21.         send_command('bind ^f9 input /ws "Chant du Cygne" <t>')
  22.         send_command('bind ^f10 input /ws "Expiacion" <t>')
  23.         send_command('bind ^f11 input /ws "Sanguine Blade" <t>')
  24.         send_command('bind ^f12 input /ws "Requiescat" <t>')
  25.         send_command('bind !f12 gs c TogglePDTSet')
  26.         send_command('bind !f10 gs c toggle Rea set')
  27.         send_command('bind !f11 gs c toggle Expi set')
  28.        
  29.         function file_unload()
  30.      
  31.  
  32.         send_command('unbind ^f9')
  33.         send_command('unbind ^f10')
  34.         send_command('unbind ^f11')
  35.         send_command('unbind ^f12')
  36.        
  37.         send_command('unbind !f9')
  38.         send_command('unbind !f10')
  39.         send_command('unbind !f11')
  40.         send_command('unbind !f12')
  41.  
  42.         send_command('unbind f9')
  43.         send_command('unbind f10')
  44.         send_command('unbind f11')
  45.         send_command('unbind f12')
  46.  
  47.        
  48.  
  49.         end
  50.  
  51.  
  52. function get_sets()
  53.  
  54.  
  55.     maps{}
  56.    
  57.     HerculeanHelm={}
  58.         HerculeanHelm.Nuke={name="Herculean Helm", augments={'Mag. Acc.+18 "Mag.Atk.Bns."+18','"Fast Cast"+1','INT+9','Mag. Acc.+9','"Mag.Atk.Bns."+12',}}
  59.         HerculeanHelm.DT={name="Herculean Helm", augments={'Attack+12','Phys. dmg. taken -4%','STR+9','Accuracy+8',}}
  60.         HerculeanHelm.Refesh={name="Herculean Helm", augments={'Mag. Acc.+11 "Mag.Atk.Bns."+11','"Waltz" potency +2%','"Refresh"+1',}}
  61.         HerculeanHelm.WSD={name="Herculean Helm", augments={'Weapon skill damage +4%','Pet: Crit.hit rate +4','Accuracy+20 Attack+20','Mag. Acc.+3 "Mag.Atk.Bns."+3',}}
  62.        
  63.     HerculeanGloves={}
  64.         HerculeanGloves.WSD={name="Herculean Gloves", augments={'Accuracy+21 Attack+21','Weapon skill damage +4%','Accuracy+9','Attack+10',}}
  65.         HerculeanGloves.DT={name="Herculean Gloves", augments={'Accuracy+13','Damage taken-3%','AGI+1','Attack+5',}}
  66.         HerculeanGloves.HighAcc={name="Herculean Gloves", augments={'Accuracy+23 Attack+23','"Triple Atk."+2','DEX+15','Accuracy+11','Attack+13',}}
  67.         HerculeanGloves.Refresh={name="Herculean Gloves", augments={'DEX+7','Weapon skill damage +2%','"Refresh"+1',}}
  68.         HerculeanGloves.Crit={name="Herculean Gloves", augments={'Attack+23','Crit. hit damage +4%','DEX+8','Accuracy+11',}}
  69.        
  70.     HerculeanLegs={}
  71.         HerculeanLegs.DT={name="Herculean Trousers", augments={'Accuracy+22','Damage taken-2%','VIT+6',}}
  72.         HerculeanLegs.WSD={name="Herculean Trousers", augments={'Attack+28','Weapon skill damage +3%','STR+10','Accuracy+9',}}
  73.  
  74.     TaeonBoots={}
  75.         TaeonBoots.RA={name="Taeon Boots", augments={'Rng. Atk.+17','Crit.hit rate +2'}}
  76.         TaeonBoots.TA={name="Taeon Boots", augments={'STR+6 DEX+6','Accuracy+15 Attack+15','"Triple Atk."+2'}}     
  77.    
  78.     TelchineFeet={}
  79.         TelchineFeet.CP={name="Telchine Pigaches", augments={'"Cure" Potency +4%'}}
  80.         TelchineFeet.FC={name="Telchine Pigaches", augments={'"Fast Cast" +3'}}
  81.    
  82.     HerculeanFeet={}
  83.         HerculeanFeet.QA={name="Herculean Boots", augments={'AGI+4','"Dbl.Atk."+2','Quadruple Attack +3','Accuracy+4 Attack+4',}}
  84.         HerculeanFeet.TA={name="Herculean Boots", augments={'Accuracy+14 Attack+14','"Triple Atk."+4','DEX+3','Accuracy+2','Attack+15'}}
  85.         HerculeanFeet.DT={name="Herculean Boots", augments={'Accuracy+23','Damage taken -3%'}}
  86.         HerculeanFeet.Idle={name="Herculean Boots", augments={'Mag. Acc.+2','Phys. dmg. taken -1%','"Refresh"+1','Accuracy+18 Attack+18',}}
  87.         HerculeanFeet.CritDmg={name="Herculean Boots", augments={'Accuracy+28','Crit. hit damage +5%','DEX+9',}}
  88.         HerculeanFeet.WSD={name="Herculean Boots", augments={'Attack+22','Weapon skill damage +4%','Accuracy+15',}}
  89.    
  90.     Rosmerta={}
  91.         Rosmerta.Crit={name="Rosmerta's Cape", augments={'DEX+20','Accuracy+20 Attack+20','Crit.hit rate+10',}}
  92.         Rosmerta.WSD={name="Rosmerta's Cape", augments={'STR+20','Accuracy+20 Attack+20','Weapon skill damage +10%',}}
  93.    
  94.     sets.Idle = {}
  95.        
  96.     --Idle Sets--  
  97.     sets.Idle.index = {'Standard','DT', 'Town'}
  98.     Idle_ind = 3           
  99.    
  100.     sets.Idle.Standard = {ammo="Hydrocera",
  101.             head=HerculeanHelm.Refesh,neck="Wiglen Gorget", ear1="Infused Earring", ear2="Ethereal earring",
  102.             body="Vrikodara Jupon",hands=HerculeanGloves.Refresh,ring1="Sheltered ring",ring2="Paguroidea Ring",
  103.             back="Kumbira Cape",waist="Fucho-no-Obi",legs="Carmine Cuisses +1",feet=HerculeanFeet.Idle}
  104.                          
  105.     sets.Idle.DT = {ammo="Hydrocera",
  106.             head=HerculeanHelm.DT,neck="Loricate Torque +1", ear1="Infused Earring", ear2="Ethereal Earring",
  107.             body="Emet Harness +1",hands=HerculeanGloves.DT,ring1="Defending ring",ring2="Dark ring",
  108.             back="Umbra Cape",waist="Flume belt",legs="Carmine Cuisses +1",feet=HerculeanFeet.DT}
  109.                            
  110.     sets.Idle.Town = {ammo="Hydrocera",
  111.             head=HerculeanHelm.Refesh,neck="Wiglen Gorget", ear1="Infused Earring", ear2="Ethereal earring",
  112.             body="Vrikodara Jupon",hands=HerculeanGloves.Refresh,ring1="Sheltered ring",ring2="Matrimony ring",
  113.             back="Kumbira Cape",waist="Fucho-no-Obi",legs="Carmine Cuisses +1",feet=HerculeanFeet.Idle}                        
  114.                            
  115.                            
  116.    
  117.    
  118.     --TP Sets--
  119.     sets.TP = {}
  120.  
  121.     sets.TP.index = {'StandardNoTrusts', 'Marches', 'AccuracyLite', 'AccuracyMid', 'AccuracyFull', 'DT', 'DTAccuracy', 'DTHighAccuracy', 'MDT'}
  122.     --1=StandardNoTrusts, 2=Marches, 3=AccuracyLite, 4=AccuracyMid, 5=AccuracyFull, 6=DT, 7=DTAccuracy 8=DTHighAccuracy 9=MDT--
  123.     TP_ind = 1
  124.    
  125.     --DW III +1200JP--
  126.     sets.TP.StandardNoTrusts = {ammo="Ginsen",
  127.                     head="Adhemar Bonnet",
  128.                     neck="Asperity necklace",
  129.                     ear1="Suppanomimi", ear2="Cessance Earring",
  130.                     body="Adhemar Jacket",
  131.                     hands="Adhemar Wristbands",
  132.                     ring1="Epona's ring", ring2="Hetairoi Ring",
  133.                     back=Rosmerta.Crit,
  134.                     waist="Shetal Stone",
  135.                     legs="Samnuha Tights",
  136.                     feet=TaeonBoots.TA}
  137.        
  138.     sets.TP.Marches = {ammo="Ginsen",
  139.                     head="Adhemar Bonnet",
  140.                     neck="Asperity necklace",
  141.                     ear1="Suppanomimi", ear2="Brutal Earring",
  142.                     body="Adhemar Jacket",
  143.                     hands="Adhemar Wristbands",
  144.                     ring1="Epona's ring", ring2="Hetairoi Ring",
  145.                     back=Rosmerta.Crit,
  146.                     waist="Windbuffet Belt +1",
  147.                     legs="Samnuha Tights",
  148.                     feet=HerculeanFeet.QA}
  149.                    
  150.     sets.TP.AccuracyLite = {ammo="Ginsen",
  151.                     head="Adhemar Bonnet",
  152.                     neck="Lissome Necklace",
  153.                     ear1="Suppanomimi", ear2="Cessance Earring",
  154.                     body="Adhemar Jacket",
  155.                     hands="Adhemar Wristbands",
  156.                     ring1="Epona's ring", ring2="Hetairoi Ring",
  157.                     back=Rosmerta.Crit,
  158.                     waist="Windbuffet Belt +1",
  159.                     legs="Samnuha Tights",
  160.                     feet=HerculeanFeet.TA}
  161.                    
  162.     sets.TP.AccuracyMid = {ammo="Falcon Eye",
  163.                     head="Dampening Tam",
  164.                     neck="Lissome Necklace",
  165.                     ear1="Zennaroi earring", ear2="Suppanomimi",
  166.                     body="Adhemar Jacket",
  167.                     hands="Adhemar Wristbands",
  168.                     ring1="Epona's ring", ring2="Ramuh Ring +1",
  169.                     back=Rosmerta.Crit,
  170.                     waist="Olseni Belt",
  171.                     legs="Samnuha Tights",
  172.                     feet=HerculeanFeet.TA}
  173.  
  174.     sets.TP.AccuracyFull = {ammo="Falcon Eye",
  175.                     head="Carmine Mask +1",
  176.                     neck="Subtlety Spectacles",
  177.                     ear1="Zennaroi Earring", ear2="Dignitary's Earring",
  178.                     body="Adhemar Jacket",
  179.                     hands=HerculeanGloves.HighAcc,
  180.                     ring1="Cacoethic Ring +1",ring2="Ramuh Ring +1",
  181.                     back=Rosmerta.Crit,
  182.                     waist="Olseni Belt",
  183.                     legs="Carmine Cuisses +1",
  184.                     feet=HerculeanFeet.CritDmg}
  185.                            
  186.     sets.TP.DT = {ammo="Falcon Eye",
  187.                     head=HerculeanHelm.DT,
  188.                     neck="Loricate Torque +1",
  189.                     ear1="Suppanomimi",ear2="Odnowa Earring +1",
  190.                     body="Adhemar Jacket",
  191.                     hands=HerculeanGloves.DT,
  192.                     ring1="Defending ring",ring2="Gelatinous Ring +1",
  193.                     back="Umbra Cape",
  194.                     waist="Flume belt",
  195.                     legs=HerculeanLegs.DT,
  196.                     feet=HerculeanFeet.DT}
  197.                  
  198.     sets.TP.DTAccuracy = {ammo="Falcon Eye",
  199.                     head=HerculeanHelm.DT,
  200.                     neck="Loricate Torque +1",
  201.                     ear1="Suppanomimi", ear2="Cessance Earring",
  202.                     body="Adhemar Jacket",
  203.                     hands=HerculeanGloves.DT,
  204.                     ring1="Defending Ring",ring2="Patricius Ring",
  205.                     back=Rosmerta.Crit,
  206.                     waist="Olseni Belt",
  207.                     legs=HerculeanLegs.DT,
  208.                     feet=HerculeanFeet.DT}
  209.                    
  210.     sets.TP.DTHighAccuracy = {ammo="Falcon Eye",
  211.                     head="Carmine Mask +1",
  212.                     neck="Loricate Torque +1",
  213.                     ear1="Suppanomimi", ear2="Zennaroi Earring",
  214.                     body="Emet Harness +1",
  215.                     hands=HerculeanGloves.DT,
  216.                     ring1="Defending Ring",ring2="Patricius Ring",
  217.                     back=Rosmerta.Crit,
  218.                     waist="Olseni Belt",
  219.                     legs="Carmine Cuisses +1",
  220.                     feet=HerculeanFeet.DT}
  221.                    
  222.     sets.TP.MDT = {ammo="Falcon Eye",
  223.                     head="Dampening Tam",
  224.                     neck="Loricate Torque +1",
  225.                     ear1="Suppanomimi", ear2="Odnowa Earring +1",
  226.                     body="Emet Harness +1",
  227.                     hands=HerculeanGloves.DT,
  228.                     ring1="Defending ring",ring2="Dark ring",
  229.                     back="Mubvumbamiri Mantle",
  230.                     waist="Carrier's Sash",
  231.                     legs=HerculeanLegs.DT,
  232.                     feet=HerculeanFeet.DT}
  233.    
  234.    
  235.    
  236.    
  237.    
  238.    
  239.     --Weaponskill Sets-- Cornflower for Requiescat because it saves a spot as it is the ONLY thing I would need to carry Bleating Mantle for...
  240.     sets.WS = {}
  241.    
  242.     sets.Requiescat = {}
  243.    
  244.     sets.Requiescat.index = {'Attack','Accuracy'}
  245.     Requiescat_ind = 1
  246.    
  247.     sets.Requiescat.Attack = {ammo="Hydrocera",
  248.                     head="Carmine Mask",
  249.                     neck="Fotia Gorget",
  250.                     ear1="Moonshade Earring",ear2="Brutal Earring",
  251.                     body="Adhemar Jacket",
  252.                     hands="Adhemar Wristbands",
  253.                     ring1="Epona's ring",ring2="Rufescent Ring",
  254.                     back="Cornflower Cape",
  255.                     waist="Fotia Belt",
  256.                     legs="Telchine Braconi",
  257.                     feet="Carmine Greaves +1"}
  258.                                  
  259.     sets.Requiescat.Accuracy = {ammo="Falcon Eye",
  260.                     head="Carmine Mask",
  261.                     neck="Fotia Gorget",
  262.                     ear1="Cessance Earring",ear2="Zennaroi Earring",
  263.                     body="Adhemar Jacket",
  264.                     hands="Adhemar Wristbands",
  265.                     ring1="Epona's ring",ring2="Ramuh Ring +1",
  266.                     back=Rosmerta.WSD,
  267.                     waist="Fotia Belt",
  268.                     legs="Telchine Braconi",
  269.                     feet="Carmine Greaves +1"}
  270.                              
  271.     sets.CDC = {}
  272.    
  273.     sets.CDC.index = {'Attack','Accuracy','AccuracyHigh'}
  274.     CDC_ind = 1
  275.    
  276.     sets.CDC.Attack = {ammo="Jukukik Feather",
  277.                     head="Adhemar Bonnet",
  278.                     neck="Fotia Gorget",
  279.                     ear1="Moonshade earring",ear2="Brutal Earring",
  280.                     body="Abnoba Kaftan",
  281.                     hands="Adhemar Wristbands",
  282.                     ring1="Epona's ring",ring2="Begrudging Ring",
  283.                     back=Rosmerta.Crit,
  284.                     waist="Fotia Belt",
  285.                     legs="Samnuha Tights",
  286.                     feet="Thereoid Greaves"}
  287.                    
  288.     sets.CDC.Accuracy = {ammo="Falcon Eye",
  289.                       head="Adhemar Bonnet",
  290.                       neck="Fotia Gorget",
  291.                       ear1="Moonshade earring",ear2="Cessance Earring",
  292.                       body="Abnoba Kaftan",
  293.                       hands=HerculeanGloves.HighAcc,
  294.                       ring1="Epona's ring",ring2="Begrudging Ring",
  295.                       back=Rosmerta.Crit,
  296.                       waist="Fotia Belt",
  297.                       legs="Samnuha Tights",
  298.                       feet=HerculeanFeet.CritDmg}                          
  299.                                
  300.     sets.CDC.AccuracyHigh = {ammo="Falcon Eye",
  301.                       head="Dampening Tam",
  302.                       neck="Fotia Gorget",
  303.                       ear1="Moonshade earring",ear2="Zennaroi earring",
  304.                       body="Abnoba Kaftan",
  305.                       hands=HerculeanGloves.HighAcc,
  306.                       ring1="Begrudging Ring",ring2="Ramuh Ring +1",
  307.                       back=Rosmerta.Crit,
  308.                       waist="Fotia Belt",
  309.                       legs="Samnuha Tights",
  310.                       feet=HerculeanFeet.CritDmg}
  311.                                
  312.     sets.Expiacion = {}
  313.    
  314.     sets.Expiacion.index = {'Attack','Accuracy'}
  315.     Expiacion_ind = 1
  316.    
  317.     sets.Expiacion.Attack = {ammo="Floestone",
  318.                     head=HerculeanHelm.WSD,
  319.                     neck="Caro Necklace",
  320.                     ear1="Moonshade Earring",ear2="Brutal Earring",
  321.                     body="Herculean Vest",
  322.                     hands=HerculeanGloves.WSD,
  323.                     ring1="Rufescent Ring",ring2="Ifrit Ring +1",
  324.                     back="Vespid Mantle",
  325.                     waist="Grunfeld Rope",
  326.                     legs=HerculeanLegs.WSD,
  327.                     feet=HerculeanFeet.WSD}
  328.                    
  329.     sets.Expiacion.Accuracy = {ammo="Falcon Eye",
  330.                     head=HerculeanHelm.WSD,
  331.                     neck="Fotia Gorget",
  332.                     ear1="Ishvara Earring",ear2="Cessance Earring",
  333.                     body="Adhemar Jacket",
  334.                     hands=HerculeanGloves.WSD,
  335.                     ring1="Rufescent Ring",ring2="Ramuh ring +1",
  336.                     back=Rosmerta.WSD,
  337.                     waist="Grunfeld Rope",
  338.                     legs=HerculeanLegs.WSD,
  339.                     feet=HerculeanFeet.WSD}        
  340.                      
  341.     sets.WS.SanguineBlade = {}
  342.    
  343.     sets.WS.SanguineBlade = {ammo="Pemphredo Tathlum",
  344.                     head="Pixie Hairpin +1",
  345.                     neck="Sanctity Necklace",
  346.                     ear1="Friomisi Earring",ear2="Hecate's earring",
  347.                     body="Amalric Doublet",
  348.                     hands="Amalric Gages",
  349.                     ring1="Archon Ring",ring2="Rufescent Ring",
  350.                     back="Cornflower cape",
  351.                     waist="Grunfeld Rope",
  352.                     legs="Amalric Slops",
  353.                     feet="Hashishin Basmak +1"}
  354.            
  355.     sets.WS.CircleBlade = {ammo="Floestone",
  356.                    head="Adhemar Bonnet",
  357.                    neck="Asperity necklace",
  358.                    ear1="Cessance Earring",ear2="Brutal Earring",
  359.                    body="Adhemar Jacket",
  360.                    hands="Adhemar Wristbands",
  361.                    ring1="Epona's ring",ring2="Apate Ring",
  362.                    back=Rosmerta.WSD,
  363.                    waist="Windbuffet Belt +1",
  364.                    legs="Samnuha Tights",
  365.                    feet=TaeonBoots.TA}
  366.    
  367.     sets.SavageBlade = {}
  368.    
  369.     sets.SavageBlade.index = {'Attack','Accuracy'}
  370.     SavageBlade_ind = 1
  371.  
  372.     sets.SavageBlade.Attack ={ammo="",
  373.                    head="",
  374.                    neck="",
  375.                    ear1="",ear2="",
  376.                    body="",
  377.                    hands="",
  378.                    ring1="",ring2="",
  379.                    back="",
  380.                    waist="",
  381.                    legs="",
  382.                    feet=""}
  383.                                
  384.     sets.SavageBlade.Accuracy ={ammo="",
  385.                    head="",
  386.                    neck="",
  387.                    ear1="",ear2="",
  388.                    body="",
  389.                    hands="",
  390.                    ring1="",ring2="",
  391.                    back="",
  392.                    waist="",
  393.                    legs="",
  394.                    feet=""}
  395.    
  396.     sets.Realmrazer = {}
  397.    
  398.     sets.Realmrazer.index = {'Attack','Accuracy'}
  399.     Realmrazer_ind = 1 
  400.  
  401.     sets.Realmrazer.Attack ={ammo="Hydrocera",
  402.                     head="Carmine Mask",
  403.                     neck="Fotia Gorget",
  404.                     ear1="Moonshade Earring",ear2="Brutal Earring",
  405.                     body="Adhemar Jacket",
  406.                     hands=HerculeanGloves.WSD,
  407.                     ring1="Epona's ring",ring2="Rufescent Ring",
  408.                     back="Cornflower Cape",
  409.                     waist="Fotia Belt",
  410.                     legs="Telchine Braconi",
  411.                     feet="Carmine Greaves +1"}
  412.                                
  413.     sets.Realmrazer.Accuracy ={ammo="",
  414.                    head="",
  415.                    neck="",
  416.                    ear1="",ear2="",
  417.                    body="",
  418.                    hands="",
  419.                    ring1="",ring2="",
  420.                    back="",
  421.                    waist="",
  422.                    legs="",
  423.                    feet=""}
  424.                    
  425.     sets.FlashNova = {}            
  426.                    
  427.     sets.FlashNova.index = {'Attack','Accuracy'}
  428.     FlashNova_ind = 1  
  429.  
  430.     sets.FlashNova.Attack ={ammo="",
  431.                    head="Helios Band",
  432.                    neck="Sanctity Necklace",
  433.                    ear1="Hecate's Earring",ear2="Friomisi Earring",
  434.                    body="Amalric Doublet",
  435.                    hands="Amalric Gages",
  436.                    ring1="Shiva Ring +1",ring2="Weatherspoon Ring",
  437.                    back="Cornflower Cape",
  438.                    waist="Eschan Stone",
  439.                    legs="Amalric Slops",
  440.                    feet="Hashishin Basmak +1"}
  441.                                
  442.     sets.FlashNova.Accuracy ={ammo="",
  443.                    head="",
  444.                    neck="",
  445.                    ear1="",ear2="",
  446.                    body="",
  447.                    hands="",
  448.                    ring1="",ring2="",
  449.                    back="",
  450.                    waist="",
  451.                    legs="",
  452.                    feet=""}            
  453.  
  454.    
  455.                    
  456.     --Blue Magic Sets--
  457.     sets.BlueMagic = {}
  458.    
  459.     sets.BlueMagic.STR = {ammo="Floestone",
  460.                   head="Adhemar Bonnet",
  461.                   neck="Caro Necklace",
  462.                   ear1="Zennaroi Earring",ear2="Kuwunga Earring",
  463.                   body="Adhemar Jacket",
  464.                   hands="Adhemar Wristbands",
  465.                   ring1="Ifrit Ring +1",ring2="Apate Ring",
  466.                   back="Cornflower cape",
  467.                   waist="Grunfeld Rope",
  468.                   legs="Samnuha Tights",
  469.                   feet=HerculeanFeet.TA}
  470.                          
  471.     sets.BlueMagic.STRDEX = set_combine(sets.BlueMagic.STR,{
  472.                  })
  473.                            
  474.         sets.BlueMagic.STRVIT = set_combine(sets.BlueMagic.STR,{
  475.                  })
  476.                              
  477.         sets.BlueMagic.STRMND = set_combine(sets.BlueMagic.STR,{
  478.                  })
  479.                                
  480.     sets.BlueMagic.AGI = set_combine(sets.BlueMagic.STR,{
  481.                 feet="Thereoid Greaves"})
  482.        
  483.     sets.BlueMagic.INT = {ammo="Pemphredo Tathlum",
  484.                 head=HerculeanHelm.Nuke,
  485.                 neck="Sanctity Necklace",
  486.                 ear1="Hermetic Earring",ear2="Friomisi earring",
  487.                 body="Amalric Doublet",
  488.                 hands="Amalric Gages",
  489.                 ring1="Shiva Ring +1",ring2="Sangoma Ring",
  490.                 back="Cornflower cape",
  491.                 waist="Eschan Stone",
  492.                 legs="Amalric Slops",
  493.                 feet="Hashishin Basmak +1"}
  494.                  
  495.     sets.BlueMagic.LightNuke = set_combine(sets.BlueMagic.INT,{
  496.                 ring2="Weatherspoon Ring",})
  497.                  
  498.     sets.BlueMagic.DarkNuke = set_combine(sets.BlueMagic.INT,{
  499.                 head="Pixie Hairpin +1",
  500.                 ring2="Archon Ring",})
  501.                          
  502.     sets.BlueMagic.Cures = {ammo="Hydrocera",
  503.                     head="Carmine Mask",
  504.                     neck="Phalaina Locket",
  505.                     ear1="Mendicant's Earring",ear2="Ethereal Earring",
  506.                     body="Vrikodara Jupon",
  507.                     hands="Telchine Gloves",
  508.                     ring1="Kunaji Ring",ring2="Rufescent Ring",
  509.                     back="Cornflower Cape",
  510.                     waist="Gishdubar Sash",
  511.                     legs="Gyve Trousers",
  512.                     feet="Medium's Sabots"}
  513.    
  514.     --Conserve MP Gear--
  515.     sets.BlueMagic.Battery = {ammo="Pemphredo Tathlum",
  516.                     head="Amalric Coif",
  517.                     neck="Incanter's Torque",
  518.                     ear1="Suppanomimi",ear2="Ethereal earring",
  519.                     body="Emet Harness +1",
  520.                     hands=HerculeanGloves.DT,
  521.                     ring1="Dark ring",ring2="Defending Ring",
  522.                     back="Umbra Cape",
  523.                     waist="Gishdubar Sash",
  524.                     legs="Iuitl Tights +1",
  525.                     feet="Carmine Greaves +1"}
  526.                            
  527.     sets.BlueMagic.Stun = {ammo="Pemphredo Tathlum",
  528.                     head="Carmine Mask +1",
  529.                     neck="Sanctity Necklace",
  530.                     ear1="Zennaroi Earring",ear2="Dignitary's Earring",
  531.                     body="Amalric Doublet",
  532.                     hands="Adhemar Wristbands",
  533.                     ring1="Ramuh Ring +1",ring2="Weatherspoon Ring",
  534.                     back="Cornflower cape",
  535.                     waist="Eschan Stone",
  536.                     legs="Hashishin Tayt +1",
  537.                     feet=TaeonBoots.TA}
  538.                            
  539.     sets.BlueMagic.HeavyStrike = {ammo="Falcon Eye",
  540.                     head="Adhemar Bonnet",
  541.                     neck="Caro Necklace",
  542.                     ear1="Zennaroi Earring",ear2="Kuwunga Earring",
  543.                     body="Adhemar Jacket",
  544.                     hands=HerculeanGloves.Crit,
  545.                     ring1="Ifrit Ring +1",ring2="Apate Ring",
  546.                     back=Rosmerta.WSD,
  547.                     waist="Grunfeld Rope",
  548.                     legs="Samnuha Tights",
  549.                     feet=HerculeanFeet.TA}
  550.                                  
  551.     sets.BlueMagic.ChargedWhisker = {ammo="Pemphredo Tathlum",
  552.                     head="Amalric Coif",
  553.                     neck="Sanctity Necklace",
  554.                     ear1="Hecate's earring",ear2="Friomisi earring",
  555.                     body="Adhemar Jacket",
  556.                     hands="Adhemar Wristbands",
  557.                     ring1="Shiva ring",ring2="Ramuh Ring +1",
  558.                     back="Cornflower cape",
  559.                     waist="Saline Belt",
  560.                     legs="Amalric Slops",
  561.                     feet="Hashishin Basmak +1"}
  562.    
  563.     sets.BlueMagic.WhiteWind = {ammo="Pemphredo Tathlum",
  564.                     head="Adhemar Bonnet",
  565.                     neck="Phalaina Locket",
  566.                     ear1="Mendicant's Earring",ear2="Ethereal Earring",
  567.                     body="Vrikodara Jupon",
  568.                     hands="Telchine Gloves",
  569.                     ring1="Kunaji Ring",ring2="Rufescent Ring",
  570.                     back="Cornflower Cape",
  571.                     waist="Gishdubar Sash",
  572.                     legs="Gyve Trousers",
  573.                     feet="Medium's Sabots"}
  574.                                      
  575.     sets.BlueMagic.MagicAccuracy = {ammo="Pemphredo Tathlum",
  576.                     head="Amalric Coif",
  577.                     neck="Sanctity Necklace",
  578.                     ear1="Psystorm earring",ear2="Lifestorm earring",
  579.                     body="Amalric Doublet",
  580.                     hands="Leyline Gloves",
  581.                     ring1="Ramuh Ring +1",ring2="Weatherspoon Ring",
  582.                     back="Cornflower cape",
  583.                     waist="Olseni Belt",
  584.                     legs="Amalric Slops",
  585.                     feet="Hashishin Basmak +1"}
  586.                                      
  587.     sets.BlueMagic.Skill = {ammo="Pemphredo Tathlum",
  588.                     head="Luhlaza Keffiyah",
  589.                     neck="Incanter's Torque",
  590.                     ear1="Suppanomimi",ear2="Ethereal earring",
  591.                     body="Assim. jubbah +1",
  592.                     hands="Rawhide Gloves",
  593.                     ring1="Lebeche ring",ring2="Weatherspoon Ring",
  594.                     back="Cornflower cape",
  595.                     waist="Gishdubar Sash",
  596.                     legs="Hashishin Tayt +1",
  597.                     feet="Luhlaza charuqs +1"}
  598.                      
  599.     sets.BlueMagic.Enmity = {ammo="None",
  600.                     head="Rabid Visor",
  601.                     neck="Warder's Charm +1",
  602.                     ear1="None",ear2="None",
  603.                     body="Emet Harness +1",
  604.                     hands="None",
  605.                     ring1="Supershear Ring",ring2="Petrov Ring",     
  606.                     back="Mubvumbamiri mantle",
  607.                     waist="None",
  608.                     legs="Obatala Subligar",
  609.                     Feet="None"}     
  610.                                  
  611.                                  
  612.                        
  613.                        
  614.     --Utility Sets--
  615.     --Sets such as Phalanx/Steps are out of date because I don't fucking cast/use that shit!
  616.    
  617.     sets.Utility = {}
  618.    
  619.     sets.Utility.Stoneskin = {ammo="Hydrocera",
  620.                     head="Carmine Mask",
  621.                     neck="Stone Gorget",
  622.                     ear1="Loquac. earring",ear2="Earthcry earring",
  623.                     body="Assim. jubbah +1",
  624.                     hands="Stone Mufflers",
  625.                     ring1="None",ring2="Rufescent Ring",
  626.                     back="Swith cape",
  627.                     waist="Siegel sash",
  628.                     legs="Haven hose",
  629.                     feet=HerculeanFeet.DT}
  630.                              
  631.  
  632.                            
  633.     sets.Utility.Steps = {ammo="Falcon Eye",
  634.                     head="Adhemar Bonnet",
  635.                     ear1="Dudgeon Earring",ear2="Heartseeker earring",
  636.                     body="Adhemar Jacket",
  637.                     hands=HerculeanGloves.WSD,
  638.                     back=Rosmerta.Crit,
  639.                     waist="Chaac Belt",
  640.                     legs="Samnuha Tights",
  641.                     feet=HerculeanFeet.DT}
  642.                          
  643.     sets.Utility.PDT = {ammo="Falcon Eye",
  644.                     head=HerculeanHelm.DT,
  645.                     neck="Loricate Torque +1",
  646.                     ear1="Suppanomimi",ear2="Ethereal Earring",
  647.                     body="Adhemar Jacket",
  648.                     hands=HerculeanGloves.DT,
  649.                     ring1="Defending ring",ring2="Dark ring",
  650.                     back="Umbra Cape",
  651.                     waist="Flume belt",
  652.                     legs=HerculeanLegs.DT,
  653.                     feet=HerculeanFeet.DT}
  654.     --Shell V on. Need 23% when 5/5 with pants, 21% with sheltered, but I don't count on that being on if shell has been stripped or just using a trust--                  
  655.     sets.Utility.MDTV = {ammo="Floestone",
  656.                     head="Amalric Coif",
  657.                     neck="Warder's Charm +1",
  658.                     ear1="Flashward Earring",ear2="Odnowa Earring +1",
  659.                     body="Amalric Doublet",
  660.                     hands=HerculeanGloves.DT,
  661.                     ring1="Defending ring",ring2="Shadow Ring",
  662.                     back="Mubvumbamiri Mantle",
  663.                     waist="Carrier's Sash",
  664.                     legs="Amalric Slops",
  665.                     feet="Hashishin Basmak +1"}
  666.     --Shell II only--              
  667.     sets.Utility.MDTII = {ammo="Floestone",
  668.                     head="Dampening Tam",
  669.                     neck="Loricate Torque +1",
  670.                     ear1="Flashward Earring",ear2="Odnowa Earring +1",
  671.                     body="Amalric Doublet",
  672.                     hands=HerculeanGloves.DT,
  673.                     ring1="Defending ring",ring2="Dark ring",
  674.                     back="Mubvumbamiri Mantle",
  675.                     waist="Carrier's Sash",
  676.                     legs=HerculeanLegs.DT,
  677.                     feet=HerculeanFeet.DT}
  678.     --No Shell--
  679.     sets.Utility.MDTNO = {ammo="Floestone",
  680.                     head="Dampening Tam",
  681.                     neck="Loricate Torque +1",
  682.                     ear1="Flashward Earring",ear2="Odnowa Earring +1",
  683.                     body="Amalric Doublet",
  684.                     hands=HerculeanGloves.DT,
  685.                     ring1="Defending ring",ring2="Dark ring",
  686.                     back="Mubvumbamiri Mantle",
  687.                     waist="Carrier's Sash",
  688.                     legs=HerculeanLegs.DT,
  689.                     feet=HerculeanFeet.DT}
  690.     --Telchine with proper augments is the best for magic evasion--            
  691.     sets.Utility.MEVA = {ammo="Floestone",
  692.                     head="Dampening Tam",
  693.                     neck="Loricate Torque +1",
  694.                     ear1="Flashward Earring",ear2="Hearty Earring",
  695.                     body="Amalric Doublet",
  696.                     hands="Leyline Gloves",
  697.                     ring1="Shiva Ring +1",ring2="Purity Ring",
  698.                     back="Mubvumbamiri Mantle",
  699.                     waist="Carrier's Sash",
  700.                     legs="Amalric Slops",
  701.                     feet="Hashishin Basmak +1"}
  702.  
  703.     sets.Enhancing = {ammo="Pemphredo Tathlum",
  704.                     head="Carmine Mask +1",
  705.                     neck="Incanter's Torque",
  706.                     ear1="Suppanomimi",ear2="Ethereal earring",
  707.                     body="Telchine Chasuble",
  708.                     ring1="Dark ring",ring2="Defending Ring",
  709.                     back="Perimede Cape",
  710.                     waist="Gishdubar Sash",
  711.                     legs="Carmine Cuisses +1",
  712.                     feet="Carmine Greaves +1"}
  713.    
  714.    
  715.    
  716.     --Job Ability Sets--
  717.    
  718.     sets.JA = {}
  719.    
  720.     sets.JA.ChainAffinity = {feet="Assim. charuqs +1"}
  721.    
  722.     sets.JA.BurstAffinity = {feet="Hashishin Basmak +1"}
  723.    
  724.     sets.JA.Efflux = {legs="Hashishin Tayt +1"}
  725.    
  726.     sets.JA.AzureLore = {hands="Luhlaza bazubands"}
  727.    
  728.     sets.JA.Diffusion = {ammo="Pemphredo Tathlum", neck="Incanter's Torque", head="Amalric Coif", feet="Luhlaza Charuqs +1", waist="Gishdubar Sash"}
  729.    
  730.     sets.JA.Provoke = set_combine(sets.BlueMagic.Enmity,{})
  731.    
  732.     sets.JA.Warcry = set_combine(sets.BlueMagic.Enmity,{})
  733.  
  734.                                
  735.                                
  736.            
  737.            
  738.            
  739.            
  740.     --Precast Sets--
  741.     sets.precast = {}
  742.    
  743.     sets.precast.FC = {}
  744.    
  745.     sets.precast.FC.Standard = {ammo="Impatiens",
  746.                     head="Carmine Mask +1",
  747.                     neck="Voltsurge Torque",
  748.                     ear1="Loquac. Earring",ear2="None",
  749.                     body="Taeon Tabard",
  750.                     hands="Leyline Gloves",
  751.                     ring1="Prolix Ring",ring2="Weatherspoon Ring",
  752.                     back="Perimede Cape",
  753.                     waist="Witful Belt",
  754.                     legs="Enif Cosciales",
  755.                     feet="Carmine Greaves +1"}
  756.    
  757.         sets.precast.FC.Blue = set_combine(sets.precast.FC.Standard,{
  758.                     body="Hashishin Mintan"})
  759.        
  760.    
  761.     sets.lastSet = {}
  762.     sets.UsingToggledSet = false
  763. end
  764.  
  765. function maps()
  766.  
  767.  
  768.     PhysicalSpells = S{                         'Asuran Claws','Bilgestorm','Bludgeon','Body Slam','Feather Storm','Mandibular Bite','Queasyshroom',
  769.                                                 'Power Attack','Ram Charge','Saurian Slide','Screwdriver','Sickle Slash','Smite of Rage',
  770.                                                 'Spinal Cleave','Spiral Spin','Sweeping Gouge','Terror Touch','Battle Dance','Bloodrake',
  771.                                                 'Death Scissors','Dimensional Death','Empty Thrash','Quadrastrike','Uppercut','Tourbillion',
  772.                                                 'Thrashing Assault','Vertical Cleave','Whirl of Rage','Amorphic Spikes','Barbed Crescent',
  773.                                                 'Claw Cyclone','Disseverment','Foot Kick','Frenetic Rip','Goblin Rush','Hysteric Barrage',
  774.                                                 'Paralyzing Triad','Seedspray','Sinker Drill','Vanity Dive','Cannonball','Delta Thrust',
  775.                                                 'Glutinous Dart','Grand Slam','Quad. Continuum','Sprout Smack','Benthic Typhoon','Helldive',
  776.                                                 'Hydro Shot','Jet Stream','Pinecone Bomb','Wild Oats','Heavy Strike'}
  777.  
  778.         PhysicalBlueMagic = S{
  779.                                                 'Asuran Claws','Bludgeon','Body Slam','Feather Storm','Mandibular Bite','Queasyshroom',
  780.                                                 'Power Attack','Ram Charge','Saurian Slide','Screwdriver','Sickle Slash','Smite of Rage',
  781.                                                 'Spinal Cleave','Spiral Spin','Sweeping Gouge','Terror Touch'}
  782.  
  783.         PhysicalBlueMagic_STR = S{
  784.                                                 'Battle Dance','Bloodrake','Death Scissors','Dimensional Death','Empty Thrash',
  785.                                                 'Quadrastrike','Uppercut','Tourbillion','Sinker Drill','Thrashing Assault','Vertical Cleave',
  786.                                                 'Whirl of Rage'}
  787.  
  788.         PhysicalBlueMagic_DEX = S{
  789.                                                 'Amorphic Spikes','Barbed Crescent','Claw Cyclone','Disseverment','Foot Kick',
  790.                                                 'Frenetic Rip','Goblin Rush','Hysteric Barrage','Paralyzing Triad','Seedspray',
  791.                                                 'Vanity Dive'}
  792.  
  793.         PhysicalBlueMagic_VIT = S{
  794.                                                 'Cannonball','Delta Thrust','Glutinous Dart','Grand Slam','Quad. Continuum',
  795.                                                 'Sprout Smack'}
  796.  
  797.         PhysicalBlueMagic_AGI = S{
  798.                                                 'Benthic Typhoon','Helldive','Hydro Shot','Jet Stream','Pinecone Bomb','Wild Oats'}
  799.                                
  800.         BlueMagic_PhysicalAcc = S{
  801.                                                 'Heavy Strike'}
  802.  
  803.         MagicalSpells = S{                      'Acrid Stream','Anvil Lightning','Crashing Thunder','Charged Whisker','Droning Whirlwind',
  804.                                                 'Firespit','Foul Waters','Gates of Hades','Leafstorm','Molting Plumage','Nectarous Deluge',
  805.                                                 'Polar Roar','Regurgitation','Rending Deluge','Scouring Spate','Searing Tempest','Silent Storm',
  806.                                                 'Spectral Floe','Subduction','Tem. Upheaval','Thermal Pulse','Thunderbolt','Uproot',
  807.                                                 'Water Bomb','Atra. Libations','Blood Saber','Dark Orb','Death Ray','Eyes On Me',
  808.                                                 'Evryone. Grudge','Palling Salvo','Tenebral Crush','Blinding Fulgor','Diffusion Ray',
  809.                                                 'Magic Hammer','Rail Cannon','Retinal Glare','Embalming Earth','Entomb','Sandspin', 'Vapor Spray'}
  810.        
  811.         MagicalBlueMagic = S{
  812.                                                 'Acrid Stream','Anvil Lightning','Crashing Thunder','Charged Whisker','Droning Whirlwind','Firespit',
  813.                                                 'Foul Waters','Gates of Hades','Leafstorm','Molting Plumage','Nectarous Deluge','Polar Roar',
  814.                                                 'Regurgitation','Rending Deluge','Scouring Spate','Searing Tempest','Silent Storm','Spectral Floe',
  815.                                                 'Subduction','Tem. Upheaval','Thermal Pulse','Thunderbolt','Uproot','Water Bomb'}
  816.                                                
  817.         BlueMagic_Dark = S{
  818.                                                 'Atra. Libations','Blood Saber','Dark Orb','Death Ray','Eyes On Me',
  819.                                                 'Evryone. Grudge','Palling Salvo','Tenebral Crush'}
  820.                
  821.         BlueMagic_Light = S{
  822.                                                 'Blinding Fulgor','Diffusion Ray','Magic Hammer','Rail Cannon','Retinal Glare'}
  823.      
  824. --- here if you need it for earth spells but down below, nuking these spells goes to the same int nuke set at others. I don't carry the neck     
  825.         BlueMagic_Earth = S{
  826.                                                 'Embalming Earth','Entomb','Sandspin'}
  827.  
  828.         BlueMagic_Accuracy = S{
  829.                                                 '1000 Needles','Absolute Terror','Auroral Drape','Awful Eye','Blank Gaze','Blistering Roar','Blitzstrahl',
  830.                                                 'Blood Drain','Blood Saber','Chaotic Eye','Cimicine Discharge','Cold Wave','Digest','Corrosive Ooze',
  831.                                                 'Demoralizing Roar','Dream Flower','Enervation','Feather Tickle','Filamented Hold','Frightful Roar',
  832.                                                 'Geist Wall','Hecatomb Wave','Infrasonics','Light of Penance','Lowing','Mind Blast','Mortal Ray',
  833.                                                 'MP Drainkiss','Osmosis','Reaving Wind','Sheep Song','Soporific','Sound Blast','Stinking Gas',
  834.                                                 'Sub-zero Smash','Triumphant Roar','Venom Shell','Voracious Trunk','Yawn'}
  835.  
  836.         BlueMagic_Breath = S{
  837.                                                 'Bad Breath','Flying Hip Press','Final Sting','Frost Breath','Heat Breath','Magnetite Cloud',
  838.                                                 'Poison Breath','Radiant Breath','Self Destruct','Thunder Breath','Vapor Spray','Wind Breath'}
  839.  
  840.         BlueMagic_Buff = S{
  841.                                                 'Carcharian Verve','Diamondhide','Metallic Body','Magic Barrier','Occultation',
  842.                                                 'Orcish Counterstance','Plasma Charge','Pyric Bulwark','Reactor Cool'}
  843.                                                        
  844.         BlueMagic_Healing = S{
  845.                                                 'Healing Breeze','Magic Fruit','Plenilune Embrace','Pollen','Restoral','Wild Carrot'}
  846.  
  847.         BlueMagic_Stun = S{
  848.                                                 'Frypan','Head Butt','Sudden Lunge','Tail slap','Whirl of Rage'}              
  849.                
  850.         BlueMagic_Emnity = S{
  851.                                                 'Actinic Burst','Exuviation','Fantod','Jettatura','Temporal Shift'}
  852.    
  853.    
  854.    
  855.    
  856.    
  857.    
  858.    
  859.    
  860.    
  861.    
  862.    
  863.    
  864. end
  865.  
  866. function precast(spell, JA)
  867.     if spell.action_type == 'Magic' then
  868.         equip(sets.precast.FC.Standard)
  869.                
  870.         elseif spell.action_type == 'BlueMagic' then
  871.             equip(sets.precast.FC.Blue)
  872.     end
  873.    
  874.    
  875.     if spell.english == 'Azure Lore' then
  876.         equip(sets.JA.AzureLore)
  877.     end
  878.    
  879.     if spell.type == 'WeaponSkill' then
  880.         if spell.english == 'Requiescat' then
  881.             equip(sets.Requiescat[sets.Requiescat.index[Requiescat_ind]])
  882.    
  883.         elseif spell.english == 'Chant du Cygne' or spell.english == 'Vorpal Blade' then
  884.             equip(sets.CDC[sets.CDC.index[CDC_ind]])
  885.    
  886.         elseif spell.english == 'Expiacion' and player.tp > 2750 then
  887.             equip(set_combine(sets.Expiacion[sets.Expiacion.index[Expiacion_ind]], {ear1="Ishvara Earring"}))
  888.            
  889.         elseif spell.english == 'Savage Blade' then
  890.         equip(sets.Expiacion[sets.Expiacion.index[Expiacion_ind]])
  891.  
  892.         elseif spell.english == 'Realmrazer' then
  893.             equip(sets.Realmrazer[sets.Realmrazer.index[Realmrazer_ind]])
  894.    
  895.         elseif spell.english == 'Flash Nova' then
  896.         equip(sets.FlashNova[sets.FlashNova.index[FlashNova_ind]])
  897.    
  898.         elseif spell.english == 'Circle Blade' then
  899.         equip(sets.WS.CircleBlade)
  900.    
  901.         elseif spell.english == 'Sanguine Blade' or spell.english == 'Red Lotus Blade' then
  902.         equip(sets.WS.SanguineBlade)
  903.         end
  904.        
  905.     end
  906.    
  907.     if spell.english == 'Box Step' then
  908.         equip(sets.Utility.Steps)
  909.        
  910.         elseif spell.english == 'Quick Step' then
  911.             equip(sets.Utility.Steps)
  912.        
  913.         elseif spell.english == 'Animated Flourish' then
  914.             equip(sets.BlueMagic.Enmity)
  915.     end
  916. end
  917.    
  918. function midcast(spell,act)
  919.     if spell.action_type == 'Magic' then
  920.         if spell.skill == 'Enhancing Magic' then
  921.             if spell.english == 'Refresh' then
  922.                 equipSet = equip(sets.BlueMagic.Battery)
  923.             else
  924.                 equipSet = equip(sets.Enhancing)
  925.             end
  926.         else if spell.skill == 'Blue Magic' then
  927.             -- Non-Generic Gear Set Defintions
  928.             if spell.english == 'Battery Charge' then
  929.                 equipSet = equip(sets.BlueMagic.Battery)
  930.                 --For any other Spell Spefic Gearset, add the needed elseif here
  931.             else
  932.                 -- Generic Precat Set
  933.                 equipSet = sets.precast.FC.Blue
  934.             end
  935.             if PhysicalSpells:contains(spell.english) then
  936.                 if PhysicalBlueMagic_STR:contains(spell.english) then
  937.                     equipSet = equip(sets.BlueMagic.STR)
  938.                 elseif PhysicalBlueMagic_DEX:contains(spell.english) then
  939.                     equipSet = equip(sets.BlueMagic.STRDEX)
  940.                 elseif PhysicalBlueMagic_VIT:contains(spell.english) then
  941.                     equipSet = equip(sets.BlueMagic.STRVIT)
  942.                 elseif PhysicalBlueMagic_AGI:contains(spell.english) then
  943.                     equipSet = equip(sets.BlueMagic.AGI)
  944.                 elseif PhysicalBlueMagic:contains(spell.english) then
  945.                     equipSet = equip(sets.BlueMagic.STR)
  946.                 elseif BlueMagic_PhysicalAcc:contains(spell.english) then
  947.                     equipSet = equip(sets.BlueMagic.HeavyStrike)
  948.                 end
  949.                 if buffactive['Chain Affinity'] then
  950.                     equipSet = equip(sets.JA.ChainAffinity)
  951.                 end
  952.                 if buffactive['Efflux'] then
  953.                     equipSet = equip(sets.JA.Efflux)
  954.                 end
  955.             end
  956.             if MagicalSpells:contains(spell.english) then
  957.                 if MagicalBlueMagic:contains(spell.english) then
  958.                     equipSet = equip(sets.BlueMagic.INT)
  959.                 elseif BlueMagic_Dark:contains(spell.english) then
  960.                     equipSet = equip(sets.BlueMagic.DarkNuke)
  961.                 elseif BlueMagic_Light:contains(spell.english) then
  962.                     equipSet = equip(sets.BlueMagic.LightNuke)
  963.                 elseif BlueMagic_Earth:contains(spell.english) then
  964.                     equipSet = equip(sets.BlueMagic.INT)
  965.                 end
  966.                 if buffactive['Burst Affinity'] then
  967.                     equipSet = equip(sets.JA.BurstAffinity)
  968.                 end
  969.                 if world.day_element == spell.element or world.weather_element == spell.element then
  970.                     equipSet = set_combine(equipSet,{waist='Hachirin-no-Obi'})
  971.                 end
  972.             end
  973.             if BlueMagic_Accuracy:contains(spell.english) then
  974.                 equipSet = equipSet.MagicAccuracy
  975.             elseif BlueMagic_Stun:contains(spell.english) then  
  976.                 equipSet = sets.BlueMagic.Stun
  977.             elseif BlueMagic_Emnity:contains(spell.english) then
  978.                 equipSet = equipSet.Emnity                                            
  979.             elseif BlueMagic_Buff:contains(spell.english) then
  980.                 equipSet = equip(sets.BlueMagic.Skill)
  981.             elseif buffactive.Diffusion then
  982.                 equipSet = equip(sets.JA.Diffusion)
  983.             elseif spell.english == 'White Wind' then
  984.                 equipSet = equip(sets.BlueMagic.WhiteWind)
  985.             elseif BlueMagic_Healing:contains(spell.english) or spell.english == 'Cure IV' or spell.english == 'Cure III' then
  986.                 equipSet = equip(sets.BlueMagic.Cures)
  987.             end
  988.         end
  989.     end
  990. end
  991.  
  992. function aftercast(spell)
  993.     if player.status == 'Engaged' then
  994.         equip(sets.TP[sets.TP.index[TP_ind]])
  995.     else
  996.         equip(sets.Idle[sets.Idle.index[Idle_ind]])
  997.     end
  998. end
  999.  
  1000. function status_change(new,old)
  1001.     if new == 'Engaged' then
  1002.         equip(sets.TP[sets.TP.index[TP_ind]])
  1003.     else
  1004.         equip(sets.Idle[sets.Idle.index[Idle_ind]])
  1005.     end
  1006. end
  1007.  
  1008. function self_command(command)
  1009.     if command == 'toggle TP set' then
  1010.         TP_ind = TP_ind +1
  1011.         if TP_ind > #sets.TP.index then TP_ind = 1 end
  1012.         send_command('@input /echo <----- TP Set changed to '..sets.TP.index[TP_ind]..' ----->')
  1013.         equip(sets.TP[sets.TP.index[TP_ind]])
  1014.     elseif command == 'toggle Idle set' then
  1015.         Idle_ind = Idle_ind +1
  1016.         if Idle_ind > #sets.Idle.index then Idle_ind = 1 end
  1017.         send_command('@input /echo <----- Idle Set changed to '..sets.Idle.index[Idle_ind]..' ----->')
  1018.         equip(sets.Idle[sets.Idle.index[Idle_ind]])
  1019.     elseif command == 'toggle Req set' then
  1020.         Requiescat_ind = Requiescat_ind +1
  1021.         if Requiescat_ind > #sets.Requiescat.index then Requiescat_ind = 1 end
  1022.         send_command('@input /echo <----- Requiescat Set changed to '..sets.Requiescat.index[Requiescat_ind]..' ----->')
  1023.     elseif command == 'toggle CDC set' then
  1024.         CDC_ind = CDC_ind +1
  1025.         if CDC_ind > #sets.CDC.index then CDC_ind = 1 end
  1026.         send_command('@input /echo <----- CDC Set changed to '..sets.CDC.index[CDC_ind]..' ----->')
  1027.     elseif command == 'toggle Expi set' then
  1028.         Expiacion_ind = Expiacion_ind +1
  1029.         if Expiacion_ind > #sets.Expiacion.index then Expiacion_ind = 1 end
  1030.         send_command('@input /echo <----- Expiacion Set changed to '..sets.Expiacion.index[Expiacion_ind]..' ----->')
  1031.     elseif command == 'toggle Savage set' then
  1032.         SavageBlade_ind = SavageBlade_ind +1
  1033.         if SavageBlade_ind > #sets.SavageBlade.index then Expiacion_ind = 1 end
  1034.         send_command('@input /echo <----- Savage Blade Set changed to '..sets.SavageBlade.index[SavageBlade_ind]..' ----->')
  1035.     elseif command == 'toggle Realm set' then
  1036.         Realmrazer_ind = Realmrazer_ind +1
  1037.         if Realmrazer_ind > #sets.Realmrazer.index then Realmrazer_ind = 1 end
  1038.     elseif command == 'toggle FlashNova set' then
  1039.         FlashNova_ind = FlashNova_ind +1
  1040.         if FlashNova_ind > #sets.FlashNova.index then FlashNova_ind = 1 end
  1041.         send_command('@input /echo <----- Savage Blade Set changed to '..sets.FlashNova.index[FlashNova_ind]..' ----->')
  1042.      elseif command == 'equip TP set' then
  1043.                 equip(sets.TP[sets.TP.index[TP_ind]])
  1044.     elseif command == 'equip Idle set' then
  1045.         equip(sets.Idle[sets.Idle.index[Idle_ind]])
  1046.     elseif command == 'TogglePDTSet' then
  1047.         if sets.UsingToggledSet == false
  1048.             sets.lastSet = equipSet
  1049.             sets.UsingToggledSet = true
  1050.             equipSet = equip(sets.Utility.PDT)
  1051.         else
  1052.             sets.UsingToggledSet = false
  1053.             equipSet = equip(sets.lastSet)
  1054.         end
  1055.     end
  1056.        
  1057. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement