Advertisement
FalownPSA

Keme_BLU

Sep 9th, 2014
551
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 20.71 KB | None | 0 0
  1.  --To toggle gearsets:
  2. --Main command: /console 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, Chant du Cygne sets: CDC--
  5.  
  6. function get_sets()
  7.        
  8.     --Idle Sets--  
  9.     sets.Idle = {}
  10.    
  11.     sets.Idle.index = {'Standard','DT'}
  12.     Idle_ind = 2           
  13.    
  14.     sets.Idle.Standard = {ammo="Ginsen",
  15.                   head="Spurrina Coif",neck="Wiglen Gorget", ear1="Ethereal earring", ear2="Moonshade earring",
  16.                       body="Mekosu. Harness",hands="Serpentes cuffs",ring1="Paguroidea Ring",ring2="Sheltered Ring",
  17.                   back="Kumbira Cape",waist="Flume belt",legs="Blood cuisses",feet="Serpentes sabots"}
  18.                          
  19.     sets.Idle.DT = {ammo="Ginsen",
  20.             head="Iuitl Headgear +1",neck="Twilight torque", ear1="Black earring", ear2="Black earring",
  21.             body="Mekosu. Harness",hands="Hegira Wristbands",ring1="Dark ring",ring2="Defending ring",
  22.             back="Shadow mantle",waist="Flume belt",legs="Iuitl Tights +1",feet="Assim. Charuqs +1"}
  23.                            
  24.                            
  25.                            
  26.                            
  27.    
  28.    
  29.     --TP Sets--
  30.     sets.TP = {}
  31.  
  32.     sets.TP.index = {'Standard', 'Solo', 'Marches', 'AccuracyLite', 'AccuracyFull', 'DT', 'DTAccuracy'}
  33.     --1=Standard, 2=Solo, 3=Marches, 4=AccuracyLite, 5=AccuracyFull, 6=DT, 7=DTAccuracy--
  34.     TP_ind = 1
  35.    
  36.     sets.TP.Standard = {ammo="Ginsen",
  37.                 head="Iuitl Headgear +1",neck="Asperity necklace", ear1="Brutal earring", ear2="Suppanomimi",
  38.                 body="Thaumas coat",hands="Nilas Gloves",ring1="Epona's ring",ring2="Rajas ring",
  39.                 back="Bleating mantle",waist="Windbuffet belt +1",legs="Iuitl tights +1",feet="Qaaxo Leggings"}
  40.                        
  41.     sets.TP.Marches = {ammo="Ginsen",
  42.                head="Whirlpool mask",neck="Asperity necklace", ear1="Brutal earring", ear2="Suppanomimi",
  43.                body="Thaumas coat",hands="Assim. bazu.",ring1="Epona's ring",ring2="Rajas ring",
  44.                back="Bleating mantle",waist="Windbuffet belt +1",legs="Iuitl tights +1",feet="Manibozho boots"}
  45.                            
  46.     sets.TP.Solo = {ammo="Ginsen",
  47.             head="Whirlpool mask",neck="Asperity necklace", ear1="Brutal earring", ear2="Suppanomimi",
  48.             body="Assim. jubbah +1",hands="Assim. bazu.",ring1="Epona's ring",ring2="Rajas ring",
  49.             back="Bleating mantle",waist="Windbuffet belt +1",legs="Iuitl tights +1",feet="Manibozho boots"}
  50.                    
  51.     sets.TP.AccuracyLite = {ammo="Honed tathlum",
  52.                     head="Iuitl Headgear +1",neck="Asperity necklace", ear1="Brutal earring", ear2="Suppanomimi",
  53.                     body="Mekosu. Harness",hands="Assim. bazu.",ring1="Epona's ring",ring2="Rajas ring",
  54.                     back="Letalis mantle",waist="Twilight belt",legs="Iuitl tights +1",feet="Manibozho boots"}
  55.    
  56.     sets.TP.AccuracyFull = {ammo="Honed tathlum",
  57.                     head="Whirlpool mask",neck="Asperity necklace", ear1="Dudgeon earring", ear2="Heartseeker earring",
  58.                     body="Mekosu. Harness",hands="Buremte gloves",ring1="Epona's ring",ring2="Rajas ring",
  59.                     back="Letalis mantle",waist="Windbuffet belt +1",legs="Iuitl tights +1",feet="Manibozho boots"}
  60.                            
  61.     sets.TP.DT = {ammo="Ginsen",
  62.               head="Iuitl Headgear +1",neck="Twilight torque", ear1="Brutal earring", ear2="Suppanomimi",
  63.               body="Hagondes coat",hands="Iuitl wristbands",ring1="Dark ring",ring2="Dark ring",
  64.               back="Mollusca mantle",waist="Twilight belt",legs="Iuitl tights +1",feet="Iuitl gaiters"}
  65.                  
  66.     sets.TP.DTAccuracy = {ammo="Honed Tathlum",
  67.                   head="Iuitl Headgear +1",neck="Twilight torque", ear1="Dudgeon earring", ear2="Heartseeker earring",
  68.                       body="Hagondes coat",hands="Iuitl wristbands",ring1="Dark ring",ring2="Dark ring",
  69.                       back="Mollusca mantle",waist="Hurch'lan sash",legs="Iuitl tights +1",feet="Iuitl gaiters"}
  70.    
  71.    
  72.    
  73.    
  74.    
  75.    
  76.     --Weaponskill Sets--
  77.     sets.WS = {}
  78.    
  79.     sets.Requiescat = {}
  80.    
  81.     sets.Requiescat.index = {'Attack','Accuracy'}
  82.     Requiescat_ind = 1
  83.    
  84.     sets.Requiescat.Attack = {ammo="Ginsen",
  85.                       head="Whirlpool mask",neck="Soil gorget",ear1="Brutal earring",ear2="Moonshade earring",
  86.                   body="Vanir Cotehardie",hands="Nilas Gloves",ring1="Epona's ring",ring2="Aquasoul ring",
  87.                   back="Bleating mantle",waist="Soil belt",legs="Quiahuiz trousers",feet="Qaaxo Leggings"}
  88.                                  
  89.     sets.Requiescat.Accuracy = {ammo="Honed tathlum",
  90.                         head="Whirlpool mask",neck="Soil gorget",ear1="Brutal earring",ear2="Moonshade earring",
  91.                     body="Vanir Cotehardie",hands="Buremte gloves",ring1="Epona's ring",ring2="Aquasoul ring",
  92.                     back="Letalis mantle",waist="Soil belt",legs="Quiahuiz trousers",feet="Assim. charuqs +1"}
  93.                              
  94.     sets.ChantDuCygne = {}
  95.    
  96.     sets.ChantDuCygne.index = {'Attack','Accuracy'}
  97.     ChantDuCygne_ind = 1
  98.    
  99.     sets.ChantDuCygne.Attack = {ammo="Ginsen",
  100.                         head="Uk'uxkaj cap",neck="Flame gorget",ear1="Tati earring",ear2="Tati earring",
  101.                     body="Dread Jupon",hands="Hegira Wristbands",ring1="Epona's ring",ring2="Rajas ring",
  102.                     back="Rancorous mantle",waist="Wanion belt",legs="Manibozho brais",feet="Assim. charuqs +1"}
  103.                                
  104.     sets.ChantDuCygne.Accuracy = {ammo="Honed tathlum",
  105.                           head="Uk'uxkaj cap",neck="Flame gorget",ear1="Bladeborn earring",ear2="Steelflash earring",
  106.                       body="Assim. jubbah +1",hands="Buremte gloves",ring1="Epona's ring",ring2="Rajas ring",
  107.                       back="Rancorous mantle",waist="Windbuffet belt +1",legs="Manibozho brais",feet="Assim. charuqs +1"}
  108.                                
  109.     sets.WS.SanguineBlade = {}
  110.    
  111.     sets.WS.SanguineBlade = {ammo="Erlene's notebook",
  112.                      head="Hagondes hat",neck="Eddy necklace",ear1="Hecate's earring",ear2="Friomisi earring",
  113.                  body="Hagondes coat",hands="Hagondes cuffs",ring1="Archon ring",ring2="Diamond ring",
  114.                  back="Cornflower cape",waist="Caudata belt",legs="Hagondes pants",feet="Hagondes sabots"}
  115.        
  116.     sets.WS.CircleBlade = {}       
  117.            
  118.     sets.WS.CircleBlade = {ammo="Ginsen",
  119.                    head="Whirlpool mask",neck="Asperity necklace",ear1="Bladeborn earring",ear2="Steelflash earring",
  120.                    body="Assim. jubbah +1",hands="Assim. bazu.",ring1="Epona's ring",ring2="Ifrit Ring",
  121.                    back="Bleating mantle",waist="Windbuffet belt +1",legs="Quiahuiz trousers",feet="Manibozho boots"}
  122.                                
  123.                                
  124.                                
  125.                                
  126.                                
  127.                                
  128.     --Blue Magic Sets--
  129.     sets.BlueMagic = {}
  130.    
  131.     sets.BlueMagic.STR = {ammo="Mavi tathlum",
  132.                   head="Uk'uxkaj Cap",neck="Ire torque +1",ear1="Flame pearl",ear2="Flame pearl",
  133.                   body="Assim. jubbah +1",hands="Assim. bazu.",ring1="Ifrit Ring",ring2="Rajas ring",
  134.                   back="Cornflower cape",waist="Pipilaka belt",legs="Quiahuiz trousers",feet="Qaaxo Leggings"}
  135.                          
  136.     sets.BlueMagic.STRDEX = {ammo="Ginsen",
  137.                  head="Uk'uxkaj Cap",neck="Ire torque +1",ear1="Flame pearl",ear2="Flame pearl",
  138.                  body="Assim. jubbah +1",hands="Assim. bazu.",ring1="Ifrit Ring",ring2="Rajas ring",
  139.                  back="Cornflower cape",waist="Caudata belt",legs="Manibozho brais",feet="Qaaxo Leggings"}
  140.                            
  141.     sets.BlueMagic.STRVIT = {ammo="Mavi tathlum",
  142.                  head="Uk'uxkaj Cap",neck="Ire torque +1",ear1="Flame pearl",ear2="Flame pearl",
  143.                  body="Assim. jubbah +1",hands="Assim. bazu.",ring1="Ifrit Ring",ring2="Spiral ring",
  144.                  back="Cornflower cape",waist="Caudata belt",legs="Quiahuiz trousers",feet="Qaaxo Leggings"}
  145.                              
  146.     sets.BlueMagic.STRMND = {ammo="Mavi tathlum",
  147.                  head="Uk'uxkaj Cap",neck="Ire torque +1",ear1="Flame pearl",ear2="Flame pearl",
  148.                  body="Assim. jubbah +1",hands="Assim. bazu.",ring1="Ifrit Ring",ring2="Aquasoul ring",
  149.                  back="Cornflower cape",waist="Tarutaru sash",legs="Quiahuiz trousers",feet="Qaaxo Leggings"}
  150.                                
  151.     sets.BlueMagic.AGI = {ammo="Mavi tathlum",
  152.                       head="Uk'uxkaj Cap",neck="Ire torque +1",ear1="Flame pearl",ear2="Flame pearl",
  153.                   body="Assim. jubbah +1",hands="Iuitl wristbands",ring1="Ifrit Ring",ring2="Rajas ring",
  154.                       back="Cornflower cape",waist="Pipilaka belt",legs="Quiahuiz trousers",feet="Qaaxo Leggings"}
  155.                          
  156.     sets.BlueMagic.INT = {ammo="Dosis Tathlum",
  157.                   head="Hagondes hat",neck="Eddy necklace",ear1="Crematio earring",ear2="Friomisi earring",
  158.                   body="Hagondes coat +1",hands="Hagondes cuffs +1",ring1="Fenrir ring +1",ring2="Acumen ring",
  159.                   back="Cornflower cape",waist="Aswang Sash",legs="Hagondes pants +1",feet="Hag. Sabots +1"}
  160.                          
  161.     sets.BlueMagic.Cures = {ammo="Aqua sachet",
  162.                     head="Uk'uxkaj cap",neck="Aife's medal",ear1="Loquac. earring",ear2="Novia earring",
  163.                     body="Assim. jubbah +1",hands="Buremte gloves",ring1="Aquasoul ring",ring2="Aquasoul ring",
  164.                     back="Oretania's cape",waist="Pythia sash +1",legs="Quiahuiz trousers",feet="Assim. charuqs +1"}
  165.                            
  166.     sets.BlueMagic.Stun = {ammo="Mavi tathlum",
  167.                    head="Assim. keffiyeh",neck="Eddy necklace",ear1="Loquac. earring",
  168.                    body="Assim. jubbah +1",hands="Mv. bazubands +2",ring1="Prolix ring",ring2="Sangoma ring",
  169.                    back="Cornflower cape",waist="Twilight belt",legs="Mavi tayt +2",feet="Qaaxo Leggings"}
  170.                            
  171.     sets.BlueMagic.HeavyStrike = {ammo="Honed tathlum",
  172.                           head="Whirlpool mask",neck="Ire torque +1",ear1="Flame pearl",ear2="Heartseeker earring",
  173.                           body="Assim. jubbah +1",hands="Buremte gloves",ring1="Ifrit Ring",ring2="Rajas ring",
  174.                           back="Cornflower cape",waist="Dynamic belt +1",legs="Manibozho brais",feet="Assim. charuqs +1"}
  175.                                  
  176.     sets.BlueMagic.ChargedWhisker = {ammo="Erlene's notebook",
  177.                              head="Uk'uxkaj cap",neck="Eddy necklace",ear1="Hecate's earring",ear2="Friomisi earring",
  178.                              body="Hagondes coat",hands="Assim. bazu.",ring1="Diamond ring",ring2="Rajas ring",
  179.                          back="Cornflower cape",waist="Pipilaka belt",legs="Hagondes pants",feet="Mavi basmak +2"}
  180.    
  181.     sets.BlueMagic.WhiteWind = {ammo="Mavi tathlum",
  182.                     head="Uk'uxkaj Cap",neck="Jeweled collar",ear1="Ethereal earring",ear2="Loquac. earring",
  183.                     body="Assim. jubbah +1",hands="Weather. cuffs",
  184.                     back="Oretania's cape",legs="Enif cosciales",feet="Assim. charuqs +1"}
  185.                                      
  186.     sets.BlueMagic.MagicAccuracy = {ammo="Mavi Tathlum",
  187.                         head="Assim. keffiyeh",neck="Eddy necklace",ear1="Psystorm earring",ear2="Lifestorm earring",
  188.                         body="Assim. jubbah +1",hands="Hagondes cuffs",ring1="Mediator's ring",ring2="Sangoma ring",
  189.                         back="Cornflower cape",waist="Ovate rope",legs="Mavi tayt +2",feet="Qaaxo Leggings"}
  190.                                      
  191.     sets.BlueMagic.Skill = {ammo="Mavi tathlum",
  192.                 head="Uk'uxkaj Cap",neck="Jeweled collar",ear1="Loquac. earring",
  193.                 body="Assim. jubbah +1",hands="Mv. Bazubands +2",ring1="Prolix ring",
  194.                 back="Cornflower cape",waist="Twilight belt",legs="Mavi tayt +2",feet="Qaaxo Leggings"}
  195.                            
  196.     sets.BlueMagic.SkillRecast = {ammo="Mavi tathlum",
  197.                       head="Uk'uxkaj Cap",neck="Jeweled collar",ear1="Loquac. earring",
  198.                       body="Assim. jubbah +1",hands="Mv. Bazubands +2",ring1="Prolix ring",
  199.                       back="Swith cape",waist="Twilight belt",legs="Mavi tayt +2",feet="Qaaxo Leggings"}
  200.                                  
  201.                                  
  202.                                  
  203.                                  
  204.                        
  205.                        
  206.     --Utility Sets--
  207.     sets.Utility = {}
  208.    
  209.     sets.Utility.Stoneskin = {head="Haruspex hat",neck="Stone Gorget",ear1="Loquac. earring",ear2="Earthcry earring",
  210.                   body="Assim. jubbah +1",hands="Stone Mufflers",ring1="Prolix ring",
  211.                   back="Swith cape",waist="Siegel sash",legs="Haven hose",feet="Iuitl gaiters"}
  212.                              
  213.     sets.Utility.Phalanx = {head="Haruspex hat",neck="Colossus's torque",ear1="Loquac. earring",ear2="Augment. earring",
  214.                     body="Assim. jubbah +1",hands="Assim. bazu.",ring1="Prolix ring",
  215.                 back="Swith cape",waist="Pythia sash +1",legs="Portent pants",feet="Iuitl gaiters"}
  216.                            
  217.     sets.Utility.Steps = {ammo="Honed tathlum",
  218.                   head="Whirlpool mask",ear2="Heartseeker earring",
  219.                   body="Thaumas coat",hands="Buremte gloves",
  220.                   back="Bleating Mantle",waist="Tarutaru sash",legs="Manibozho brais",feet="Manibozho boots"}
  221.                          
  222.     sets.Utility.PDT = {head="Whirlpool mask",neck="Twilight torque",ear1="Ethereal earring",
  223.                 body="Iuitl vest",hands="Umuthi Gloves",ring1="Dark ring",ring2="Defending ring",
  224.                 back="Shadow mantle",waist="Flume belt",legs="Iuitl tights +1",feet="Iuitl gaiters"}
  225.                        
  226.     sets.Utility.MDT = {head="Whirlpool mask",neck="Twilight torque",
  227.                 body="Assim. jubbah +1",hands="Assim. bazu.",ring1="Shadow ring",ring2="Defending ring",
  228.                 back="Engulfer mantle",legs="Quiahuiz trousers",feet="Qaaxo Leggings"}
  229.                            
  230.    
  231.    
  232.    
  233.    
  234.    
  235.     --Job Ability Sets--
  236.    
  237.     sets.JA = {}
  238.    
  239.     sets.JA.ChainAffinity = {feet="Assim. charuqs +1"}
  240.    
  241.     sets.JA.BurstAffinity = {legs="Assim. shalwar +1"}
  242.    
  243.     sets.JA.Efflux = {legs="Mavi tayt +2"}
  244.    
  245.     sets.JA.AzureLore = {hands="Luhlaza bazubands"}
  246.    
  247.     sets.JA.Diffusion = {feet="Qaaxo Leggings"}
  248.                                
  249.                                
  250.            
  251.            
  252.            
  253.            
  254.     --Precast Sets--
  255.     sets.precast = {}
  256.    
  257.     sets.precast.FC = {}
  258.    
  259.     sets.precast.FC.Standard = {head="Haruspex hat",neck="Jeweled collar", ear1="Loquac. Earring",
  260.                     body="Dread Jupon",hands="Thaumas Gloves", ring1="Prolix Ring",
  261.                         back="Swith Cape",waist="Witful Belt",legs="Enif Cosciales",feet="Chelona Boots"}
  262.    
  263.     sets.precast.FC.Blue = {head="Haruspex hat",neck="Jeweled collar", ear1="Loquac. Earring",
  264.                 body="Dread Jupon",hands="Thaumas Gloves", ring1="Prolix Ring",
  265.                 back="Swith Cape",waist="Witful Belt",legs="Enif Cosciales",feet="Chelona Boots"}  
  266. end
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273. function precast(spell)
  274.     if spell.action_type == 'Magic' then
  275.         equip(sets.precast.FC.Standard)
  276.                
  277.         elseif spell.action_type == 'BlueMagic' then
  278.         equip(sets.precast.FC.Blue)
  279.     end
  280.    
  281.     if spell.english == 'Azure Lore' then
  282.         equip(sets.JA.AzureLore)
  283.     end
  284.    
  285.     if spell.english == 'Requiescat' then
  286.         equip(sets.Requiescat[sets.Requiescat.index[Requiescat_ind]])
  287.     end
  288.    
  289.     if spell.english == 'Chant du Cygne' then
  290.         equip(sets.ChantDuCygne[sets.ChantDuCygne.index[ChantDuCygne_ind]])
  291.     end
  292.    
  293.     if spell.english == 'Circle Blade' then
  294.         equip(sets.WS.CircleBlade)
  295.     end
  296.    
  297.     if spell.english == 'Sanguine Blade' then
  298.         equip(sets.WS.SanguineBlade)
  299.     end
  300.    
  301.     if spell.english == 'Box Step' then
  302.         equip(sets.Utility.Steps)
  303.     end
  304. end
  305.    
  306. function midcast(spell,act)
  307.     if spell.english == 'Vertical Cleave' or spell.english == 'Death Scissors' or spell.english == 'Empty Thrash' or spell.english == 'Dimensional Death' or spell.english == 'Quadrastrike' or spell.english == 'Bloodrake' then
  308.         equip(sets.BlueMagic.STR)
  309.         if buffactive['Chain Affinity'] then
  310.             equip(sets.JA.ChainAffinity)
  311.         end
  312.         if buffactive['Efflux'] then
  313.             equip(sets.JA.Efflux)
  314.         end
  315.     end
  316.        
  317.     if spell.english == 'Disseverment' or spell.english == "Sinker Drill" or spell.english == 'Hysteric Barrage' or spell.english == 'Frenetic Rip' or spell.english == 'Seedspray' or spell.english == 'Vanity Dive' or spell.english == 'Goblin Rush' or spell.english == 'Paralyzing Triad' then
  318.         equip(sets.BlueMagic.STRDEX)
  319.         if buffactive['Chain Affinity'] then
  320.             equip(sets.JA.ChainAffinity)
  321.         end
  322.         if buffactive['Efflux'] then
  323.             equip(sets.JA.Efflux)
  324.         end
  325.     end
  326.    
  327.     if spell.english == 'Quad. Continuum' or spell.english == 'Delta Thrust' or spell.english == 'Cannonball' or spell.english == 'Glutinous Dart' then
  328.         equip(sets.BlueMagic.STRVIT)
  329.         if buffactive['Chain Affinity'] then
  330.             equip(sets.JA.ChainAffinity)
  331.         end
  332.         if buffactive['Efflux'] then
  333.             equip(sets.JA.Efflux)
  334.         end
  335.     end
  336.    
  337.     if spell.english == 'Whirl of Rage' then
  338.         equip(sets.BlueMagic.STRMND)
  339.         if buffactive['Chain Affinity'] then
  340.             equip(sets.JA.ChainAffinity)
  341.         end
  342.         if buffactive['Efflux'] then
  343.             equip(sets.JA.Efflux)
  344.         end
  345.     end
  346.    
  347.     if spell.english == 'Benthic Typhoon' or spell.english == 'Final Sting' or spell.english == 'Spiral Spin' then
  348.         equip(sets.BlueMagic.AGI)
  349.         if buffactive['Chain Affinity'] then
  350.             equip(sets.JA.ChainAffinity)
  351.         end
  352.         if buffactive['Efflux'] then
  353.             equip(sets.JA.Efflux)
  354.         end
  355.     end
  356.    
  357.     if spell.english == 'Gates of Hades' or spell.english == 'Subduction' or spell.english == 'Leafstorm' or spell.english == 'Firespit' or spell.english == 'Acrid Stream' or spell.english == 'Regurgitation' or spell.english == 'Corrosive Ooze' or spell.english == 'Thermal Pulse' or spell.english == 'Magic Hammer' or spell.english == 'Evryone. Grudge' or spell.english == 'Water Bomb' or spell.english == 'Dark Orb' or spell.english == 'Thunderbolt' or spell.english == 'Tem. Upheaval' or spell.english == 'Embalming Earth' or spell.english == 'Foul Waters' or spell.english == 'Rending Deluge' or spell.english == 'Droning Whirlwind' then
  358.         equip(sets.BlueMagic.INT)
  359.         if buffactive['Burst Affinity'] then
  360.             equip(sets.JA.BurstAffinity)
  361.         end
  362.     end
  363.    
  364.     if spell.english == 'Magic Fruit' or spell.english == 'Plenilune Embrace' or spell.english == 'Wild Carrot' or spell.english == 'Pollen' or spell.english == 'Cure IV' or spell.english == "Restoral" then
  365.         equip(sets.BlueMagic.Cures)
  366.     end
  367.    
  368.     if spell.english == 'White Wind' then
  369.         equip(sets.BlueMagic.WhiteWind)
  370.     end
  371.    
  372.     if spell.english == 'Head Butt' or spell.english == 'Sudden Lunge' or spell.english == 'Blitzstrahl' then
  373.         equip(sets.BlueMagic.Stun)
  374.     end
  375.    
  376.     if spell.english == 'Heavy Strike' then
  377.         equip(sets.BlueMagic.HeavyStrike)
  378.     end
  379.    
  380.     if spell.english == 'Charged Whisker' then
  381.         equip(sets.BlueMagic.ChargedWhisker)
  382.         if buffactive['Burst Affinity'] then
  383.             equip(sets.JA.BurstAffinity)
  384.         end
  385.     end
  386.    
  387.     if spell.english == 'Frightful Roar' or spell.english == 'Infrasonics' or spell.english == 'Barbed Crescent' or spell.english == 'Tourbillion' or spell.english == 'Cimicine Discharge' or spell.english == 'Sub-zero smash' or spell.english == 'Filamented Hold' or spell.english == 'Mind Blast' or spell.english == 'Sandspin' or spell.english == 'Hecatomb Wave' or spell.english == 'Cold Wave' or spell.english == 'Terror Touch' then
  388.         equip(sets.BlueMagic.MagicAccuracy)
  389.     end
  390.    
  391.     if spell.english == 'MP Drainkiss' or spell.english == 'Digest' or spell.english == 'Blood Saber' or spell.english == 'Blood Drain' or spell.english == 'Osmosis' or spell.english == 'Occultation' or spell.english == 'Magic Barrier' or spell.english == 'Diamondhide' or spell.english == 'Metallic Body' or spell.english == 'Retinal Glare' then
  392.         equip(sets.BlueMagic.SkillRecast)
  393.         if buffactive['Diffusion'] then
  394.             equip(sets.JA.Diffusion)
  395.         end
  396.     end
  397.    
  398.     if spell.english == 'Cocoon' or spell.english == 'Harden Shell' or spell.english == 'Animating Wail' or spell.english == 'Battery Charge' or spell.english == 'Nat. Meditation' or spell.english == 'Carcharian Verve' or spell.english == 'O. Counterstance' or spell.english == 'Barrier Tusk' or spell.english == 'Saline Coat' or spell.english == 'Regeneration' then
  399.         if buffactive['Diffusion'] then
  400.             equip(sets.JA.Diffusion)
  401.         end
  402.     end
  403. end
  404.  
  405. function aftercast(spell)
  406.     if player.status == 'Engaged' then
  407.         equip(sets.TP[sets.TP.index[TP_ind]])
  408.     else
  409.         equip(sets.Idle[sets.Idle.index[Idle_ind]])
  410.     end
  411. end
  412.  
  413. function status_change(new,old)
  414.     if new == 'Engaged' then
  415.         equip(sets.TP[sets.TP.index[TP_ind]])
  416.     else
  417.         equip(sets.Idle[sets.Idle.index[Idle_ind]])
  418.     end
  419. end
  420.  
  421. function self_command(command)
  422.     if command == 'toggle TP set' then
  423.         TP_ind = TP_ind +1
  424.         if TP_ind > #sets.TP.index then TP_ind = 1 end
  425.         send_command('@input /echo <----- TP Set changed to '..sets.TP.index[TP_ind]..' ----->')
  426.         equip(sets.TP[sets.TP.index[TP_ind]])
  427.     elseif command == 'toggle Idle set' then
  428.         Idle_ind = Idle_ind +1
  429.         if Idle_ind > #sets.Idle.index then Idle_ind = 1 end
  430.         send_command('@input /echo <----- Idle Set changed to '..sets.Idle.index[Idle_ind]..' ----->')
  431.         equip(sets.Idle[sets.Idle.index[Idle_ind]])
  432.     elseif command == 'toggle Req set' then
  433.         Requiescat_ind = Requiescat_ind +1
  434.         if Requiescat_ind > #sets.Requiescat.index then Requiescat_ind = 1 end
  435.         send_command('@input /echo <----- Requiescat Set changed to '..sets.Requiescat.index[Requiescat_ind]..' ----->')
  436.     elseif command == 'toggle CDC set' then
  437.         ChantDuCygne_ind = ChantDuCygne_ind +1
  438.         if ChantDuCygne_ind > #sets.ChantDuCygne.index then ChantDuCygne_ind = 1 end
  439.         send_command('@input /echo <----- Chant du Cygne Set changed to '..sets.ChantDuCygne.index[ChantDuCygne_ind]..' ----->')
  440.      elseif command == 'equip TP set' then
  441.                 equip(sets.TP[sets.TP.index[TP_ind]])
  442.         elseif command == 'equip Idle set' then
  443.                 equip(sets.Idle[sets.Idle.index[Idle_ind]])
  444.     end
  445. end
  446.  
  447.  
  448. windower.register_event('tp change', function(new_tp, old_tp)
  449.     if player.target.name== "Blanched Mandragora" and player.target.hpp >=50 then
  450.         if player.tp >=1000 then
  451.             send_command('input /ws "Sanguine Blade" <t> ')
  452.         end
  453.     end
  454. end)
  455.  
  456. windower.register_event('hp change', function(new, old)
  457.  
  458. -- AutoWS on Blanched Mandragora, with FarmBot mostly  
  459.     if player.target.name== "Blanched Mandragora" and player.target.hpp >=50 then
  460.         if player.tp >=1000 then
  461.             send_command('input /ws "Sanguine Blade" <t> ')
  462.         end
  463.     end
  464. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement