Advertisement
Guest User

RUN Lua

a guest
Dec 22nd, 2016
2,886
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 20.43 KB | None | 0 0
  1. function get_sets()
  2.  
  3.     send_command('bind f9 gs c toggle TP set')
  4.     send_command('bind f10 gs c toggle Idle set')
  5.     send_command('bind f11 gs c toggle Res set')
  6.     send_command('bind f12 gs c toggle Dim set')
  7.     send_command('bind ^f11 gs c toggle Req set')
  8.    
  9.     function file_unload()
  10.      
  11.  
  12.         send_command('unbind ^f9')
  13.         send_command('unbind ^f10')
  14.         send_command('unbind ^f11')
  15.         send_command('unbind ^f12')
  16.        
  17.         send_command('unbind !f9')
  18.         send_command('unbind !f10')
  19.         send_command('unbind !f11')
  20.         send_command('unbind !f12')
  21.  
  22.         send_command('unbind f9')
  23.         send_command('unbind f10')
  24.         send_command('unbind f11')
  25.         send_command('unbind f12')
  26.  
  27.        
  28.  
  29.     end
  30.        
  31.  
  32.         --Idle Sets--
  33.         sets.Idle = {}
  34.        
  35.         sets.Idle.index = {'Standard', 'DT'}
  36.         Idle_ind = 1
  37.                
  38.         sets.Idle.Standard = {ammo="Homiliary",
  39.                               head="Ocelomeh headpiece +1",neck="Bathy choker", ear1="Ethereal earring",ear2="infused earring",
  40.                               body="Futhark coat +1",hands="Erilaz gauntlets +1",ring1="Defending ring",ring2="Sheltered ring",
  41.                               back="Shadow mantle",waist="Flume Belt +1",legs="Carmine Cuisses +1",feet="Erilaz Greaves +1"}
  42.                              
  43.         sets.Idle.DT = {ammo="Staunch tathlum",
  44.                       head="Fu. bandeau +1",neck="Twilight torque", ear1="Ethereal earring", ear2="infused earring",
  45.                       body="Erilaz surcoat +1",hands="Buremte Gloves",ring1="Defending ring",ring2="Dark ring",
  46.                       back="Shadow Mantle",waist="Flume Belt +1",legs="Erilaz Leg Guards +1",feet="Erilaz Greaves +1"}
  47.                              
  48.         sets.Idle.Leech = {ammo="Homiliary",
  49.                            head="Fu. bandeau +1",neck="Bathy choker", ear1="Ethereal earring",
  50.                            body="Futhark coat +1",hands="Erilaz gauntlets +1",ring1="Defending ring",ring2="Trizek ring",
  51.                            back="Aptitude mantle",waist="Flume Belt +1",legs="Carmine Cuisses +1",feet="Erilaz Greaves +1"}
  52.            
  53.    
  54.        
  55.                
  56.                
  57.                
  58.         --TP Sets--
  59.         sets.TP = {}
  60.  
  61.         sets.TP.index = {'Standard', 'Solo', 'AccuracyLite', 'AccuracyFull', 'AccuracyExtreme', 'DT', 'DTAccuracy'}
  62.         --1=Standard, 2=AccuracyLite, 3=AccuracyFull, 4=DT, 5=DTAccuracy--
  63.         TP_ind = 1
  64.    
  65.         sets.TP.Standard = {ammo="Ginsen",
  66.                             head="Herculean helm",neck="Lissome necklace", ear1="Brutal earring", ear2="Cessance earring",
  67.                             body="Thaumas coat",hands="Adhemar wristbands",ring1="Epona's ring",ring2="Petrov ring",
  68.                             back={ name="Ogma's cape", augments={'DEX+20','Accuracy+20 Attack+20','"Store TP"+10',}},waist="Windbuffet Belt +1",legs={ name="Herculean Trousers", augments={'Attack+26','"Triple Atk."+4','AGI+10','Accuracy+13',}},feet={ name="Herculean Boots", augments={'"Triple Atk."+4','Accuracy+5',}}}
  69.                            
  70.         sets.TP.Solo = {ammo="Ginsen",
  71.                         head="Herculean helm",neck="Lissome necklace", ear1="Brutal earring", ear2="Cessance earring",
  72.                         body="Adhemar jacket",hands="Adhemar wristbands",ring1="Epona's ring",ring2="Petrov ring",
  73.                         back={ name="Ogma's cape", augments={'DEX+20','Accuracy+20 Attack+20','"Store TP"+10',}},waist="Windbuffet Belt +1",legs={ name="Herculean Trousers", augments={'Attack+26','"Triple Atk."+4','AGI+10','Accuracy+13',}},feet={ name="Herculean Boots", augments={'"Triple Atk."+4','Accuracy+5',}}}
  74.                            
  75.         sets.TP.AccuracyLite = {ammo="Ginsen",
  76.                                 head="Skormoth mask",neck="Lissome necklace", ear1="Brutal earring", ear2="Cessance earring",
  77.                                 body="Adhemar jacket",hands="Adhemar wristbands",ring1="Epona's ring",ring2="Petrov ring",
  78.                                 back={ name="Ogma's cape", augments={'DEX+20','Accuracy+20 Attack+20','"Store TP"+10',}},waist="Windbuffet Belt +1",legs={ name="Herculean Trousers", augments={'Attack+26','"Triple Atk."+4','AGI+10','Accuracy+13',}},feet={ name="Herculean Boots", augments={'"Triple Atk."+4','Accuracy+5',}}}
  79.    
  80.         sets.TP.AccuracyFull = {ammo="Falcon Eye",
  81.                                 head="Skormoth mask",neck="Subtlety Spec.", ear1="Brutal earring", ear2="Cessance earring",
  82.                                 body="Adhemar jacket",hands="Adhemar wristbands",ring1="Epona's ring",ring2="Petrov ring",
  83.                                 back={ name="Ogma's cape", augments={'DEX+20','Accuracy+20 Attack+20','"Store TP"+10',}},waist="Windbuffet belt +1",legs={ name="Herculean Trousers", augments={'Attack+26','"Triple Atk."+4','AGI+10','Accuracy+13',}},feet="Carmine Greaves +1"}
  84.                                
  85.         sets.TP.AccuracyExtreme = {ammo="Falcon Eye",
  86.                                    head="Skormoth mask",neck="Subtlety Spec.", ear1="Brutal earring", ear2="Cessance earring",
  87.                                    body="Adhemar jacket",hands="Adhemar wristbands",ring1="Epona's ring",ring2="Petrov ring",
  88.                                    back={ name="Ogma's cape", augments={'DEX+20','Accuracy+20 Attack+20','"Store TP"+10',}},waist="Hurch'lan sash",legs="Carmine Cuisses +1",feet="Carmine Greaves +1"}
  89.                            
  90.         sets.TP.DT = {ammo="Staunch tathlum",
  91.                       head="Fu. bandeau +1",neck="Twilight torque", ear1="Ethereal earring", ear2="Genmei earring",
  92.                       body="Erilaz surcoat +1",hands="Buremte Gloves",ring1="Defending ring",ring2="Warden's ring",
  93.                       back={ name="Ogma's cape", augments={'DEX+20','Accuracy+20 Attack+20','"Store TP"+10',}},waist="Flume Belt +1",legs="Erilaz Leg Guards +1",feet="Erilaz Greaves +1"}
  94.                  
  95.         sets.TP.DTAccuracy = {ammo="Staunch tathlum",
  96.                               head="Skormoth mask",neck="Twilight torque", ear1="Ethereal earring", ear2="Genmei earring",
  97.                               body="Erilaz surcoat +1",hands="Buremte Gloves",ring1="Defending ring",ring2="Warden's ring",
  98.                               back={ name="Ogma's cape", augments={'DEX+20','Accuracy+20 Attack+20','"Store TP"+10',}},waist="Flume Belt +1",legs="Erilaz Leg Guards +1",feet="Erilaz Greaves +1"}
  99.                              
  100.                              
  101.                              
  102.                              
  103.                              
  104.                              
  105.         --Weaponskill Sets--
  106.         sets.WS = {}
  107.    
  108.         sets.Resolution = {}
  109.    
  110.         sets.Resolution.index = {'Attack','Accuracy'}
  111.         Resolution_ind = 1
  112.    
  113.         sets.Resolution.Attack = {ammo="Seething bomblet +1",
  114.                                   head="Adhemar bonnet",neck="Fotia gorget",ear1="Brutal earring",ear2="Moonshade earring",
  115.                                   body="Adhemar jacket",hands="Meg. gloves +1",ring1="Epona's ring",ring2="Ifrit ring",
  116.                                   back={ name="Ogma's cape", augments={'STR+20','Accuracy+20 Attack+20','"Store TP"+10',}},waist="Fotia belt",legs={ name="Herculean Trousers", augments={'Attack+26','"Triple Atk."+4','AGI+10','Accuracy+13',}},feet={ name="Herculean Boots", augments={'Attack+18','Weapon skill damage +3%','STR+15','Accuracy+6',}}}
  117.                                  
  118.         sets.Resolution.Accuracy = {ammo="Seething bomblet +1",
  119.                                     head="Adhemar bonnet",neck="Fotia gorget",ear1="Brutal earring",ear2="Moonshade earring",
  120.                                     body="Adhemar jacket",hands="Meg. gloves +1",ring1="Epona's ring",ring2="Ifrit ring",
  121.                                     back={ name="Ogma's cape", augments={'STR+20','Accuracy+20 Attack+20','"Store TP"+10',}},waist="Fotia belt",legs={ name="Herculean Trousers", augments={'Attack+26','"Triple Atk."+4','AGI+10','Accuracy+13',}},feet={ name="Herculean Boots", augments={'Attack+18','Weapon skill damage +3%','STR+15','Accuracy+6',}}}
  122.                                    
  123.         sets.Dimidiation = {}
  124.    
  125.         sets.Dimidiation.index = {'Attack','Accuracy'}
  126.         Dimidiation_ind = 1
  127.    
  128.         sets.Dimidiation.Attack = {ammo="Seething bomblet +1",
  129.                                    head="Adhemar bonnet",neck="Fotia gorget",ear1="Brutal earring",ear2="Moonshade earring",
  130.                                    body="Adhemar jacket",hands="Meg. gloves +1",ring1="Epona's ring",ring2="Rajas ring",
  131.                                    back={ name="Ogma's cape", augments={'DEX+20','Accuracy+17 Attack+17','Weapon skill damage +10%',}},waist="Fotia belt",legs={ name="Herculean Trousers", augments={'Crit. hit damage +2%','DEX+12','Attack+10',}},feet={ name="Herculean Boots", augments={'Attack+18','Weapon skill damage +3%','STR+15','Accuracy+6',}}}
  132.                                  
  133.         sets.Dimidiation.Accuracy = {ammo="Seething bomblet +1",
  134.                                    head="Adhemar bonnet",neck="Fotia gorget",ear1="Brutal earring",ear2="Moonshade earring",
  135.                                    body="Adhemar jacket",hands="Meg. gloves +1",ring1="Epona's ring",ring2="Rajas ring",
  136.                                    back={ name="Ogma's cape", augments={'DEX+20','Accuracy+20 Attack+20','Weapon skill damage +10%',}},waist="Fotia belt",legs={ name="Herculean Trousers", augments={'Crit. hit damage +2%','DEX+12','Attack+10',}},feet="Meg. Jam. +1"}
  137.                              
  138.         sets.Requiescat = {}
  139.    
  140.         sets.Requiescat.index = {'Attack','Accuracy'}
  141.         Requiescat_ind = 1
  142.        
  143.         sets.Requiescat.Attack = {ammo="Potestas bomblet",
  144.                                   head="Whirlpool mask",neck="Fotia gorget",ear1="Brutal earring",ear2="Moonshade earring",
  145.                                   body="Manibozho jerkin",hands="Umuthi gloves",ring1="Epona's ring",ring2="Aquasoul ring",
  146.                                   back="Atheling mantle",waist="Fotia belt",legs="Quiahuiz trousers",feet="Meg. Jam. +1"}
  147.                                  
  148.         sets.Requiescat.Accuracy = {ammo="Honed tathlum",
  149.                                     head="Whirlpool mask",neck="Fotia gorget",ear1="Brutal earring",ear2="Moonshade earring",
  150.                                     body="Manibozho jerkin",hands="Umuthi gloves",ring1="Epona's ring",ring2="Aquasoul ring",
  151.                                     back="Letalis mantle",waist="Fotia belt",legs="Quiahuiz trousers",feet="Meg. Jam. +1"}
  152.                                      
  153.                                      
  154.                                      
  155.                                      
  156.                                      
  157.                                      
  158.         --Utility Sets--
  159.         sets.Utility = {}
  160.        
  161.         sets.Utility.PDT = {ammo="Staunch Tathlum",
  162.                             head="Fu. bandeau +1",neck="Twilight torque", ear1="Ethereal earring",
  163.                             body="Futhark coat +1",hands="Buremte Gloves",ring1="Defending ring",ring2="Warden's ring",
  164.                             back="Shadow mantle",waist="Flume Belt +1",legs="Erilaz Leg Guards +1",feet="Erilaz Greaves +1"}
  165.                        
  166.         sets.Utility.MDT = {ammo="Staunch tathlum",
  167.                             head="Haruspex hat",neck="Warder's charm +1",
  168.                             body="Futhark coat +1",hands="Erilaz gauntlets +1",ring1="Defending ring",ring2="Shadow ring",
  169.                             back="Mollusca mantle",legs="Erilaz Leg Guards +1",feet="Erilaz Greaves +1"}
  170.                            
  171.         sets.Utility.Enhancing = {head="Erilaz galea",neck="Colossus's torque",ear1="Andoaa earring",ear2="Augment. earring",
  172.                                   body="Manasa chasuble",hands="Runeist mitons",ring1="Prolix ring",ring2="Weather. ring",
  173.                                   back="Merciful cape",waist="Olympus sash",legs="Carmine cuisses +1",feet="Erilaz Greaves +1"}
  174.                            
  175.         sets.Utility.Stoneskin = {head="Runeist bandeau",neck="Stone Gorget",ear1="Loquac. earring",ear2="Earthcry earring",
  176.                                   body="Futhark coat +1",hands="Stone Mufflers",ring1="Prolix ring",ring2="Weather. ring",
  177.                                   back="Merciful cape",waist="Siegel sash",legs="Haven hose",feet="Erilaz Greaves +1"}
  178.                              
  179.         sets.Utility.Phalanx = {head="Fu. bandeau +1",neck="Colossus's torque",ear1="Andoaa earring",ear2="Augment. earring",
  180.                                 body="Manasa chasuble",hands="Runeist mitons",ring1="Prolix ring",ring2="Weather. ring",
  181.                                 back="Merciful cape",waist="Olympus sash",legs="Carmine cuisses +1",feet="Erilaz Greaves +1"}
  182.                              
  183.         sets.Utility.Regen = {head="Runeist bandeau",neck="Colossus's torque",ear1="Loquac. earring",ear2="Augment. earring",
  184.                               body="Futhark coat +1",hands="Runeist mitons",ring1="Prolix ring",ring2="Weather. ring",
  185.                               back="Merciful cape",waist="Cascade belt",legs="Futhark trousers +1",feet="Erilaz Greaves +1"}
  186.                              
  187.         sets.Utility.Refresh = {head="Erilaz galea",neck="Colossus's torque",ear1="Loquac. earring",ear2="Augment. earring",
  188.                                 body="Futhark coat +1",hands="Runeist mitons",ring1="Prolix ring",ring2="Weather. ring",
  189.                                 back="Merciful cape",waist="Cascade belt",legs="Futhark trousers +1",feet="Erilaz Greaves +1"}
  190.                              
  191.         sets.Utility.Utsusemi = {head="Runeist bandeau",neck="Jeweled collar",ear1="Loquac. earring",ear2="Friomisi earring",
  192.                                  body="Futhark coat +1",hands="Thaumas gloves",ring1="Prolix ring",ring2="Weather. ring",
  193.                                  waist="Hurch'lan sash",legs="Erilaz Leg Guards +1",feet="Erilaz Greaves +1"}
  194.        
  195.         sets.Utility.Defense = {head="Erilaz galea",neck="Colossus's torque",ear1="Loquac. earring",ear2="Augment. earring",
  196.                                 body="Futhark coat +1",hands="Runeist mitons",ring1="Prolix ring",ring2="Sheltered ring",
  197.                                 back="Merciful cape",waist="Cascade belt",legs="Futhark trousers +1",feet="Erilaz Greaves +1"}
  198.                                  
  199.         sets.Utility.Enmity = {ammo="Aqreaqa bomblet",
  200.                                head="Rabid visor",neck="Warder's charm +1",ear1="Friomisi earring",ear2="Loquac. earring",
  201.                                body="Emet harness +1",hands="Futhark mitons",ring1="Provocare ring",ring2="Petrov ring",
  202.                                back="Evasionist's cape",waist="Goading belt",legs="Erilaz Leg Guards +1",feet="Erilaz Greaves +1"}
  203.                                  
  204.                        
  205.                
  206.                
  207.                
  208.                
  209.                
  210.         --Job Ability Sets--
  211.         sets.JA = {}
  212.        
  213.         sets.JA.Lunge = {ammo="Seething bomblet +1",
  214.                          head="Herculean helm",neck="Eddy necklace",lear="Hecate's earring",rear="Friomisi earring",
  215.                          body="Count's garb",hands="Leyline gloves",ring1="Acumen ring",
  216.                          back="Evasionist's cape",waist="Eschan stone",legs="Shned. tights +1",feet="Herculean Boots"}
  217.    
  218.         sets.JA.Vallation = {body="Runeist coat",
  219.                              legs="Futhark trousers",
  220.                              back={ name="Ogma's cape", augments={'STR+20','Accuracy+20 Attack+20','"Store TP"+10',}}}
  221.                              
  222.         sets.JA.Battuta = {head="Fu. bandeau +1"}
  223.    
  224.         sets.JA.Gambit = {hands="Runeist mitons"}
  225.    
  226.         sets.JA.Pflug = {head="Runeist bottes"}
  227.        
  228.         sets.JA.Embolden = {head="Erilaz galea",
  229.                             back="Evastionist's cape",legs="Futhark trousers +1"}
  230.        
  231.         sets.JA.VivPulse = {head="Erilaz galea"}
  232.        
  233.         sets.JA.Liement = {body="Futhark coat +1"}
  234.        
  235.         sets.JA.EleSforzo = {body="Futhark coat +1"}
  236.        
  237.         sets.JA.Swordplay = {hands="Futhark mitons"}
  238.        
  239.        
  240.        
  241.        
  242.        
  243.        
  244.         --Precast Sets--
  245.         sets.precast = {}
  246.    
  247.         sets.precast.FC = {}
  248.    
  249.         sets.precast.FC.Standard = {ammo="Sapience orb",
  250.                                     head="Runeist bandeau",neck="Orunmila's torque", ear1="Loquac. Earring",
  251.                                     body="Mirke wardecors",hands="Leyline gloves",ring1="Prolix ring",ring2="Weather. ring",
  252.                                     legs="Orvail pants +1",feet="Carmine Greaves +1"}
  253.                                    
  254.         sets.precast.FC.Enhancing = {ammo="Sapience orb",
  255.                                      head="Runeist bandeau",neck="Orunmila's torque", ear1="Loquac. Earring",
  256.                                      body="Mirke wardecors",hands="Leyline gloves",ring1="Prolix ring",ring2="Weather. ring",
  257.                                      waist="Siegel Sash",legs="Futhark trousers +1",feet="Carmine Greaves +1"}
  258. end
  259.  
  260.  
  261.  
  262.        
  263.        
  264.        
  265. function precast(spell)
  266.     if spell.skill == 'Divine Magic' then
  267.         equip(sets.precast.FC.Standard)
  268.     end
  269.    
  270.     if spell.skill == 'Healing Magic' then
  271.         equip(sets.precast.FC.Standard)
  272.     end
  273.    
  274.     if spell.skill == 'Blue Magic' then
  275.         equip(sets.precast.FC.Standard)
  276.     end
  277.    
  278.     if spell.skill == 'Enhancing Magic' then
  279.         equip(sets.precast.FC.Enhancing)
  280.     end
  281.    
  282.     if spell.skill == 'Ninjutsu' then
  283.         equip(sets.precast.FC.Standard)
  284.     end
  285.    
  286.     if spell.skill == 'Trust' then
  287.         equip(sets.precast.FC.Standard)
  288.     end
  289.    
  290.     if spell.english == 'Lunge' or spell.english == 'Swipe' or spell.english == "Onca Suit" or spell.english == "Meteor" then
  291.         equip(sets.JA.Lunge)
  292.     end
  293.    
  294.     if spell.english == 'Vallation' or spell.english == 'Valiance' then
  295.         equip(sets.JA.Vallation)
  296.     end
  297.    
  298.     if spell.english == 'Battuta' then
  299.         equip(sets.JA.Battuta)
  300.     end
  301.    
  302.     if spell.english == 'Pflug' then
  303.         equip(sets.JA.Pflug)
  304.     end
  305.    
  306.     if spell.english == 'Gambit' then
  307.         equip(sets.JA.Gambit)
  308.     end
  309.    
  310.     if spell.english == 'Embolden' then
  311.         equip(sets.JA.Embolden)
  312.     end
  313.    
  314.     if spell.english == 'Vivacious Pulse' then
  315.         equip(sets.JA.VivPulse)
  316.     end
  317.    
  318.     if spell.english == 'Liement' then
  319.         equip(sets.JA.Liement)
  320.     end
  321.    
  322.     if spell.english == 'Elemental Sforzo' then
  323.         equip(sets.JA.EleSforzo)
  324.     end
  325.    
  326.     if spell.english == 'Swordplay' then
  327.         equip(sets.JA.Swordplay)
  328.     end
  329.        
  330.     if spell.english == 'Resolution' or spell.english == 'Shockwave' or spell.english == 'Spinning Slash' or spell.english == 'Ground Strike' then
  331.         equip(sets.Resolution[sets.Resolution.index[Resolution_ind]])
  332.     end
  333.    
  334.     if spell.english == 'Dimidiation' then
  335.         equip(sets.Dimidiation[sets.Dimidiation.index[Dimidiation_ind]])
  336.     end
  337.    
  338.     if spell.english == 'Requiescat' then
  339.         equip(sets.Requiescat[sets.Requiescat.index[Requiescat_ind]])
  340.     end
  341. end    
  342.  
  343. function midcast(spell,act)
  344.     if spell.skill == 'Enhancing Magic' then
  345.         equip(sets.Utility.Enhancing)
  346.             if buffactive['Embolden'] then
  347.                 equip(sets.JA.Embolden)
  348.             end
  349.     end
  350.    
  351.     if spell.english == 'Stoneskin' then
  352.         equip(sets.Utility.Stoneskin)
  353.                 if buffactive['Stoneskin'] then
  354.                 send_command('@wait 0.7; input //cancel Stoneskin; input /echo Refreshing Stoneskin.')
  355.                 end
  356.     end
  357.    
  358.     if spell.english == 'Phalanx' then
  359.         equip(sets.Utility.Phalanx)
  360.             if buffactive['Embolden'] then
  361.                 equip(sets.JA.Embolden)
  362.             end
  363.             if spell.english == 'Temper' then
  364.                 equip({head="Erilaz galea"})
  365.             end
  366.     end
  367.    
  368.     if spell.english == 'Regen IV' then
  369.         equip(sets.Utility.Regen)
  370.             if buffactive['Embolden'] then
  371.                 equip(sets.JA.Embolden)
  372.             end
  373.     end
  374.    
  375.     if spell.english == 'Refresh' then
  376.         equip(sets.Utility.Refresh)
  377.             if buffactive['Embolden'] then
  378.                 equip(sets.JA.Embolden)
  379.             end
  380.     end
  381.    
  382.     if spell.english == 'Protect IV' or spell.english == 'Shell V' then
  383.         equip(sets.Utility.Defense)
  384.             if buffactive['Embolden'] then
  385.                 equip(sets.JA.Embolden)
  386.             end
  387.     end
  388.    
  389.     if spell.english == 'Flash' or spell.english == 'Foil' or spell.english == 'Valiance' or spell.english == 'Vallation' or spell.english == 'One For All' or spell.english == 'Swordplay' or spell.english == 'Battuta' or spell.english == 'Pflug' or spell.english == 'Rune Enchantment' or spell.english == 'Embolden' or spell.english == 'Liement' or spell.skill == 'Blue Magic' then
  390.         equip(sets.Utility.Enmity)
  391.     end
  392.    
  393.     if spell.english == 'Utsusemi: Ichi' then
  394.         equip(sets.Utility.Utsusemi)
  395.             if buffactive['Copy Image (3)'] then
  396.                 send_command('@wait 0.3; input //cancel Copy Image (3)')
  397.             end
  398.             if buffactive['Copy Image (2)'] then
  399.                 send_command('@wait 0.3; input //cancel Copy Image (2)')
  400.             end
  401.             if buffactive['Copy Image (1)'] then
  402.                 send_command('@wait 0.3; input //cancel Copy Image (1)')
  403.             end
  404.             if buffactive['Copy Image'] then
  405.                 send_command('@wait 0.3; input //cancel Copy Image')
  406.             end
  407.     end
  408.    
  409.     if spell.english == 'Utsusemi: Ni' then
  410.         equip(sets.Utility.Utsusemi)
  411.     end
  412.    
  413.     if spell.english == 'Vallation' or spell.english == 'Valiance' then
  414.         equip(sets.JA.Vallation)
  415.     end
  416.    
  417.     if spell.english == 'Battuta' then
  418.         equip(sets.JA.Battuta)
  419.     end
  420.    
  421.     if spell.english == 'Pflug' then
  422.         equip(sets.JA.Pflug)
  423.     end
  424.    
  425.     if spell.english == 'Gambit' then
  426.         equip(sets.JA.Gambit)
  427.     end
  428.    
  429.     if spell.english == 'Embolden' then
  430.         equip(sets.JA.Embolden)
  431.     end
  432.    
  433.     if spell.english == 'Vivacious Pulse' then
  434.         equip(sets.JA.VivPulse)
  435.     end
  436.    
  437.     if spell.english == 'Liement' then
  438.         equip(sets.JA.Liement)
  439.     end
  440.    
  441.     if spell.english == 'Elemental Sforzo' then
  442.         equip(sets.JA.EleSforzo)
  443.     end
  444.    
  445.     if spell.english == 'Swordplay' then
  446.         equip(sets.JA.Swordplay)
  447.     end
  448. end
  449.  
  450. function aftercast(spell)
  451.     if player.status == 'Engaged' then
  452.         equip(sets.TP[sets.TP.index[TP_ind]])
  453.     else
  454.         equip(sets.Idle[sets.Idle.index[Idle_ind]])
  455.     end
  456. end
  457.  
  458. function status_change(new,old)
  459.     if new == 'Engaged' then
  460.         equip(sets.TP[sets.TP.index[TP_ind]])
  461.     else
  462.         equip(sets.Idle[sets.Idle.index[Idle_ind]])
  463.     end
  464. end
  465.  
  466. function self_command(command)
  467.     if command == 'toggle TP set' then
  468.         TP_ind = TP_ind +1
  469.         if TP_ind > #sets.TP.index then TP_ind = 1 end
  470.         send_command('@input /echo <----- TP Set changed to '..sets.TP.index[TP_ind]..' ----->')
  471.         equip(sets.TP[sets.TP.index[TP_ind]])
  472.     elseif command == 'toggle Idle set' then
  473.         Idle_ind = Idle_ind +1
  474.         if Idle_ind > #sets.Idle.index then Idle_ind = 1 end
  475.         send_command('@input /echo <----- Idle Set changed to '..sets.Idle.index[Idle_ind]..' ----->')
  476.         equip(sets.Idle[sets.Idle.index[Idle_ind]])
  477.     elseif command == 'toggle Res set' then
  478.         Resolution_ind = Resolution_ind +1
  479.         if Resolution_ind > #sets.Resolution.index then Resolution_ind = 1 end
  480.         send_command('@input /echo <----- Resolution set changed to '..sets.Resolution.index[Resolution_ind]..' ----->')
  481.     elseif command == 'toggle Dim set' then
  482.         Dimidiation_ind = Dimidiation_ind +1
  483.         if Dimidiation_ind > #sets.Dimidiation.index then Dimidiation_ind = 1 end
  484.         send_command('@input /echo <----- Dimidiation set changed to '..sets.Dimidiation.index[Dimidiation_ind]..' ----->')
  485.     elseif command == 'toggle Req set' then
  486.         Requiescat_ind = Requiescat_ind +1
  487.         if Requiescat_ind > #sets.Requiescat.index then Requiescat_ind = 1 end
  488.         send_command('@input /echo <----- Requiescat Set changed to '..sets.Requiescat.index[Requiescat_ind]..' ----->')
  489.     elseif command == 'equip TP set' then
  490.         equip(sets.TP[sets.TP.index[TP_ind]])
  491.     elseif command == 'equip Idle set' then
  492.         equip(sets.Idle[sets.Idle.index[Idle_ind]])
  493.     end
  494. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement