Advertisement
Guest User

BLU Lua

a guest
Sep 30th, 2015
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 16.79 KB | None | 0 0
  1. function get_sets()
  2.  
  3.     TP_Index = 1
  4.     CDC_Index = 2
  5.     Idle_Index = 1
  6.     Crush_Index = 1
  7.    
  8.     --Precast Sets 
  9.     include('organizer-lib')
  10.    
  11.     sets.extras = {ring1="Trizek Ring", ring2="Capacity Ring", back="Mecistopins Mantle",
  12.     head="Echo Drops", body="Warp Ring", main="Claidheamh Soluis", sub="Nibiru Blade"}
  13.    
  14.     sets.precast = {}
  15.    
  16.     sets.precast.CDC = {}
  17.    
  18.     CDC_Sets = {"CDCAcc", "CDCDD"}
  19.  
  20.     sets.precast.CDC["CDCAcc"] = {ammo="Falcon Eye", head="Dampening Tam", neck="Light Gorget", ear1="Steelflash earring", ear2="Brutal Earring", body="Luhlaza Jubbah +1", hands="Adhemar Wristbands", ring1="Epona's ring", ring2="Enlivened Ring", back="Kayapa Cape", waist="Light Belt", legs="Samnuha Tights", feet="Rawhide Boots"}
  21.    
  22.     sets.precast.CDC["CDCDD"] = {ammo="Falcon Eye", head="Taeon Chapeau", neck="Light Gorget", ear1="Thunder Pearl", ear2="Brutal Earring", body="Rawhide Vest", hands="Adhemar Wristbands", ring1="Epona's ring", ring2="Rajas Ring", back="Rancorous Mantle", waist="Light Belt", legs="Samnuha Tights", feet="Thereoid Greaves"}
  23.    
  24.     sets.precast["Requiescat"] = {head="Taeon Chapeau", ammo="Falcon Eye", neck="Asperity Necklace", ear1="Brutal Earring", ear2="Lifestorm earring", body="Luhlaza Jubbah +1", hands="Taeon Gloves", ring1="Epona's ring", ring2="Leviathan ring",
  25.     back="Bleating Mantle", waist="Windbuffet Belt", legs="Samnuha Tights",
  26.     feet="Taeon Boots"}
  27.    
  28.     sets.precast['Sanguine Blade'] = {head="Pixie Hairpin +1", neck="Eddy Necklace", ear1="Friomisi earring", ear2="Hecate's earring", body="Samnuha Coat", hands="Leyline Gloves",ring1="Shiva Ring", ring2="Acumen ring", back="Cornflower cape", legs="Lengo Pants", ammo="Dosis Tathlum", waist="Eschan Stone"}
  29.    
  30.     sets.precast['Flash Nova'] = {head= "Helios Band", neck="Eddy Necklace", ear1="Friomisi earring", ear2="Hecate's earring", body="Samnuha Coat", hands="Leyline Gloves",ring1="Weatherspoon Ring", ring2="Acumen ring", back="Cornflower cape", legs="Lengo Pants", ammo="Dosis Tathlum", waist="Eschan Stone"}
  31.    
  32.     sets.precast.FC = {ear1="Loquacious earring", body="Luhlaza Jubbah +1", legs="Lengo Pants", hands="Leyline Gloves", feet="Chelona Boots", ring1="Weatherspoon Ring", back="Swith Cape", waist="Witful Belt"}
  33.    
  34.     sets.precast.BlueFC = {ear1="Loquacious earring", body="Mavi Mintan +2", hands="Leyline Gloves", legs="Lengo Pants", feet="Chelona Boots", ring1="Weatherspoon Ring", back="Swith Cape", waist="Witful Belt"}
  35.  
  36.     sets.precast['Stoneskin'] = {ear1="Loquacious earring", body="Luhlaza Jubbah +1", legs="Doyen Pants", hands="Leyline Gloves", feet="Chelona Boots", ring1="Weatherspoon Ring", back="Swith Cape", waist="Witful Belt"}
  37.    
  38.     sets.precast['Chain Affinity'] = {feet="Assimilator's Charuqs +1"}
  39.  
  40.     --Midcast sets
  41.    
  42.     sets.midcast = {}
  43.    
  44.     sets.midcast['Sinker Drill'] = {ammo="Falcon Eye", head="Lilitu Headpiece", neck="Ire Torque +1", ear1="Pixie Earring", ear2="Thunder Pearl", body="Assimilator's Jubbah +1", hands="Adhemar Wristbands", ring1="Ramuh ring", ring2="Rajas ring", back="Kayapa Cape", waist="Prosilio belt", legs="Samnuha Tights", feet="Taeon Boots"}
  45.    
  46.     sets.midcast['Delta Thrust'] = {ammo="Jukukik Feather", head="Whirlpool Mask", neck="Ire Torque +1", ear1="Flame earring", ear2="Thunder Pearl", body="Assimilator's Jubbah +1", hands="Buremte gloves", ring1="Ifrit ring", ring2="Rajas ring", back="Cornflower Cape", waist="Prosilio belt", legs="Samnuha Tights", feet="Assimilator's Charuqs +1"}
  47.    
  48.     sets.midcast['Heavy Strike'] = {ammo="Jukukik Feather", head="Whirlpool Mask", neck="Ire Torque +1", ear1="Flame earring", ear2="Thunder Pearl", body="Assimilator's Jubbah +1", hands="Buremte gloves", ring1="Ifrit ring", ring2="Rajas ring", back="Cornflower Cape", waist="Prosilio belt", legs="Samnuha Tights", feet="Taeon Boots"}
  49.    
  50.     sets.midcast['Whirl of Rage'] = {ammo="Jukukik Feather", head="Whirlpool Mask", neck="Ire Torque +1", ear1="Flame earring", ear2="Thunder Pearl", body="Assimilator's Jubbah +1", hands="Buremte gloves", ring1="Ifrit ring", ring2="Rajas ring", back="Cornflower Cape", waist="Prosilio belt", legs="Samnuha Tights", feet="Taeon Boots"}
  51.    
  52.     sets.midcast['Benthic Typhoon'] = {ammo="Jukukik Feather", head="Whirlpool Mask", neck="Ire Torque +1", ear1="Flame earring", ear2="Thunder Pearl", body="Assimilator's Jubbah +1", hands="Buremte gloves", ring1="Ifrit ring", ring2="Rajas ring", back="Cornflower Cape", waist="Prosilio belt", legs="Samnuha Tights", feet="Taeon Boots"}
  53.    
  54.     sets.midcast['Thrashing Assault'] = {ammo="Jukukik Feather", head="Whirlpool Mask", neck="Ire Torque +1", ear1="Flame earring", ear2="Thunder Pearl", body="Assimilator's Jubbah +1", hands="Buremte gloves", ring1="Ifrit ring", ring2="Ifrit ring", back="Cornflower Cape", waist="Prosilio belt", legs="Samnuha Tights", feet="Assimilator's Charuqs +1"}
  55.  
  56.     sets.midcast['Glutinous Dart'] = {ammo="Honed Tathlum", head="Whirlpool Mask", neck="Ire Torque +1", ear1="Flame earring", ear2="Suppanomimi", body="Assimilator's Jubbah +1", hands="Taeon Gloves", ring1="Ifrit ring", ring2="Spiral Ring", back="Cornflower Cape", waist="Prosilio belt", legs="Samnuha Tights", feet="Taeon Boots"}
  57.    
  58.     sets.midcast.HybridAcc = {head ="Dampening Tam", neck="Iqabi Necklace", ear1="Psystorm Earring", ear2="Lifestorm Earring", body="Samnuha Coat", hands="Leyline Gloves", ring1="Enlivened Ring", ring2="Weatherspoon Ring", back="Cornflower Cape", legs="Lengo Pants", feet="Taeon Boots", waist="Eschan Stone"}
  59.    
  60.     sets.midcast.MagicAcc = {head ="Dampening Tam", neck="Eddy Necklace", ear1="Psystorm Earring", ear2="Lifestorm Earring", body="Samnuha Coat", hands="Leyline Gloves", ring1="Weatherspoon Ring", ring2="Perception Ring", back="Cornflower Cape", legs="Lengo Pants",feet="Helios Boots", waist="Eschan Stone"}
  61.    
  62.     sets.midcast.Nuke = {main="Nibiru Cudgel", sub="Gabaxorea", head ="Helios Band", neck="Eddy Necklace", ear1="Friomisi earring", ear2="Hecate's earring", body="Samnuha Coat", hands="Leyline gloves", ring1="Weatherspoon Ring", ring2="Acumen Ring", back="Cornflower Cape", legs="Lengo Pants", feet="Helios Boots", waist="Eschan Stone", ammo="Dosis Tathlum"}
  63.    
  64.     sets.midcast.Stone = {main="Nibiru Cudgel", sub="Gabaxorea", head ="Helios Band", neck="Quanpur Necklace", ear1="Friomisi earring", ear2="Hecate's earring", body="Samnuha Coat", hands="Helios gloves", ring1="Weatherspoon Ring", ring2="Acumen Ring", back="Cornflower Cape", legs="Lengo Pants", feet="Helios Boots", waist="Eschan Stone", ammo="Dosis Tathlum"}
  65.    
  66.     sets.midcast['Dream Flower'] = {main="Nibiru Cudgel", sub="Gabaxorea", head ="Dampening Tam", neck="Eddy Necklace", ear1="Psystorm Earring", ear2="Lifestorm Earring", body="Samnuha Coat", hands="Leyline Gloves", ring1="Weatherspoon Ring", ring2="Perception Ring", back="Cornflower Cape", legs="Lengo Pants",feet="Helios Boots", waist="Eschan Stone"}
  67.    
  68.     --Tenebral Crush Sets
  69.    
  70.     Crush_Sets = {'CrushMAC', 'CrushMAB'}
  71.    
  72.     sets.midcast['CrushMAC'] = {head ="Helios Band", neck="Eddy Necklace", ear1="Lifestorm earring", ear2="Psystorm earring", body="Samnuha Coat", hands="Leyline gloves", ring1="Weatherspoon Ring", ring2="Perception Ring", back="Cornflower Cape", legs="Lengo Pants",feet="Helios Boots", waist="Eschan Stone", ammo="Dosis Tathlum"}
  73.    
  74.     sets.midcast['CrushMAB'] = {main="Nibiru Cudgel", sub="Gabaxorea", head ="Pixie Hairpin +1", neck="Eddy Necklace", ear1="Friomisi earring", ear2="Hecate's earring", body="Samnuha Coat", hands="Leyline gloves", ring1="Weatherspoon Ring", ring2="Acumen Ring", back="Cornflower Cape", legs="Lengo Pants", feet="Helios Boots", waist="Eschan Stone", ammo="Dosis Tathlum"}
  75.    
  76.     sets.midcast['Restoral'] = {hands="Buremte Gloves", ring1="Leviathan Ring", ring2="Leviathan Ring", waist="Gishdubar Sash", feet="Medium's Sabots", back="Tempered Cape"}
  77.    
  78.     sets.midcast['Magic Fruit'] = {hands="Buremte Gloves", ring1="Leviathan Ring", ring2="Leviathan Ring", waist="Gishdubar Sash", feet="Medium's Sabots", back="Tempered Cape"}
  79.    
  80.     sets.midcast['Stoneskin'] = {neck="Nodens Gorget"}
  81.    
  82.     --Aftercast sets
  83.  
  84.     sets.aftercast = {}
  85.     sets.aftercast.Idle = {}
  86.      --Idle Set
  87.     Idle_Sets = {"std", "ref", "cleave"}
  88.    
  89.     sets.aftercast.Idle["std"] = {head="Rabid Visor", neck="Twilight torque", ear2="Ethereal earring", body="Luhlaza Jubbah +1", hands="Umuthi gloves", ring2="Dark ring", back="Repulse mantle", waist="Flume belt", legs="Hagondes Pants +1", feet="Battlecast Gaiters"}
  90.  
  91.     sets.aftercast.Idle["ref"] = {main= "Bolelabunga", head="Rabid Visor", neck="Twilight torque", ear2="Ethereal earring", body="Luhlaza Jubbah +1", hands="Umuthi gloves", ring2="Dark ring", back="Repulse mantle", waist="Flume belt", legs="Hagondes Pants +1", feet="Battlecast Gaiters"}
  92.    
  93.    
  94.     sets.aftercast.Idle["cleave"] = {main="Earth Staff", head="Rabid Visor", neck="Twilight torque", ear2="Ethereal earring", body="Luhlaza Jubbah +1", hands="Umuthi gloves", ring1="Vertigo Ring", ring2="Dark ring", back="Repulse mantle", waist="Flume belt", legs="Hagondes pants +1", feet="Battlecast Gaiters"}
  95.  
  96.    
  97.         -- TP Sets
  98.        
  99.     sets.aftercast.TP = {}
  100.    
  101.     TP_Sets = {'LowHasteDD', 'LowHasteAcc', 'HasteCapDD', 'HasteCapAcc', 'ACC', 'PDT', 'MIX', 'MDT'}   
  102.  
  103.         --DD set
  104.     sets.aftercast.TP['LowHasteDD'] = {ammo="Falcon Eye",
  105.     head="Taeon Chapeau", neck="Asperity Necklace", ear1="Suppanomimi", ear2="Brutal Earring", body="Samnuha Coat", hands="Adhemar Wristbands", ring1="Epona's ring", ring2="Petrov Ring", back="Bleating Mantle", waist="Windbuffet belt", legs="Samnuha Tights", feet="Taeon Boots"}
  106.    
  107.     sets.aftercast.TP['LowHasteAcc'] = {ammo="Falcon Eye",
  108.     head="Dampening Tam", neck="Iqabi Necklace", ear1="Suppanomimi", ear2="Brutal Earring", body="Samnuha Coat", hands="Adhemar Wristbands", ring1="Ramuh ring", ring2="Enlivened Ring", back="Kayapa Cape", waist="Eschan Stone", legs="Samnuha Tights", feet="Rawhide Boots"}
  109.    
  110.     sets.aftercast.TP['HasteCapDD'] = {ammo="Falcon Eye",
  111.     head="Taeon Chapeau", neck="Asperity Necklace", ear1="Suppanomimi", ear2="Brutal earring", body="Rawhide Vest", hands="Adhemar Wristbands", ring1="Epona's ring", ring2="Petrov Ring", back="Bleating Mantle", waist="Windbuffet belt", legs="Samnuha Tights", feet="Taeon Boots"}
  112.    
  113.     sets.aftercast.TP['HasteCapAcc'] = {ammo="Falcon Eye",
  114.     head="Dampening Tam", neck="Asperity Necklace", ear1="Steelflash earring", ear2="Bladeborn earring", body="Samnuha Coat", hands="Adhemar Wristbands", ring1="Epona's ring", ring2="Enlivened Ring", back="Kayapa Cape", waist="Eschan Stone", legs="Samnuha Tights", feet="Rawhide Boots"}
  115.    
  116.         --Accuracy Set
  117.     sets.aftercast.TP['ACC'] = {ammo="Falcon Eye", head="Dampening Tam", neck="Iqabi Necklace", ear1="Suppanomimi", ear2="Brutal earring", body="Samnuha Coat", hands="Adhemar Wristbands", ring1="Enlivened ring", ring2="Ramuh Ring", back="Kayapa Cape", waist="Eschan Stone", legs="Samnuha Tights", feet="Rawhide Boots"}
  118.    
  119.         --PDT Set
  120.     sets.aftercast.TP['PDT']= {head="Rabid Visor", neck="Twilight torque", ear1="Steelflash Earring", ear2="Ethereal earring", body="Samnuha Coat", hands="Umuthi gloves",
  121.     left_ring={ name="Dark Ring", augments={'Spell interruption rate down 4%','Phys. dmg. taken -3%','Magic dmg. taken -3%',}},
  122.     right_ring={ name="Dark Ring", augments={'Magic dmg. taken -4%','Phys. dmg. taken -3%',}}, back="Repulse mantle", waist="Flume belt", legs="Hagondes pants +1", feet="Battlecast Gaiters"} 
  123.    
  124.     --MDT Set
  125.     sets.aftercast.TP['MDT']= {head="Dampening Tam", neck="Twilight Torque", ear2="Ethereal earring", body="Qaaxo Harness", hands="Umuthi gloves",
  126.     ring1={ name="Dark Ring", augments={'Spell interruption rate down 4%', 'Phys. dmg. taken -3%', 'Magic dmg. taken -3%'}},
  127.     ring2={ name="Dark Ring", augments={'Magic dmg. taken -4%', 'Phys. dmg. taken -3%'}},  back="Engulfer Cape +1", waist="Flume belt", legs="Hagondes pants +1", feet="Battlecast Gaiters"}
  128.  
  129.         --Mixed Acc/Multi set
  130.     sets.aftercast.TP['MIX'] = {ammo="Falcon Eye",
  131.     head="Rabid Visor", neck="Twilight Torque", ear1="Suppanomimi", ear2="Brutal earring",
  132.     body="Qaaxo Harness", hands="Adhemar Wristbands", ring1="Epona's ring", ring2="Enlivened Ring", back="Bleating Mantle", waist="Windbuffet belt", legs="Samnuha Tights", feet="Battlecast Gaiters"} 
  133.  
  134.  
  135.  
  136. function precast(spell)
  137.    
  138.     if sets.precast[spell.english] then
  139.     equip(sets.precast[spell.english])
  140.     end
  141.     if spell.action_type == 'Magic' and spell.skill == "Blue Magic" then
  142.     equip(sets.precast.BlueFC)
  143.     elseif spell.action_type == 'Magic' then
  144.     equip(sets.precast.FC)
  145.     end
  146.     if spell.english == "Chant du Cygne" then
  147.     equip(sets.precast.CDC[CDC_Sets[CDC_Index]])
  148.     end
  149. end
  150.  
  151. function midcast(spell)
  152.     if sets.midcast[spell.english] then
  153.         equip(sets.midcast[spell.english])
  154.         if buffactive['Chain Affinity'] then
  155.         equip(sets.precast['Chain Affinity'])
  156.         end
  157.     end
  158.     if spell.english == 'Frightful Roar' or spell.english == 'Absolute Terror' or spell.english == 'Magic Barrier' or spell.english == 'Chaotic Eye' or spell.english == 'Filamented Hold' then
  159.     equip(sets.midcast.MagicAcc)
  160.     end
  161.     if spell.english == 'Sudden Lunge' or spell.english == 'Benthic Typhoon' or
  162.     spell.english == 'Sweeping Gouge' or spell.english == 'Tourbillion' or
  163.     spell.english == "Delta Thrust" or spell.english == 'Saurian Slide' then
  164.     equip(sets.midcast.HybridAcc)
  165.     end
  166.     if spell.english == 'Magic Hammer' or spell.english == 'Thermal Pulse' or
  167.     spell.english == 'Blazing Bound' or spell.english == 'Subduction' or
  168.     spell.english == 'Tempestuous Upheaval' or spell.english == 'Retinal Glare' or
  169.     spell.english == 'Rail Cannon' or spell.english == 'Diffusion Ray' or
  170.     spell.english == 'Regurgitation' or spell.english == 'Spectral Floe' or spell.english == 'Scouring Spate'
  171.     then equip(sets.midcast.Nuke)
  172.     elseif spell.english == 'Entomb'
  173.     then equip(sets.midcast.Stone)
  174.     elseif spell.english == "Tenebral Crush" then
  175.     equip(sets.midcast[Crush_Sets[Crush_Index]])
  176.     end
  177. end
  178.  
  179. function aftercast(spell)
  180.     if player.status == 'Engaged' then
  181.         equip(sets.aftercast.TP[TP_Sets[TP_Index]])
  182.     else
  183.         equip(sets.aftercast.Idle[Idle_Sets[Idle_Index]])
  184.     end
  185. end
  186.  
  187. function self_command(command)
  188.         if command == 'lowd' then
  189.         TP_Index = 1
  190.         send_command('@input /echo ----- TP Set changed to '..TP_Sets[TP_Index]..' -----')
  191.         equip(sets.aftercast.TP[TP_Sets[TP_Index]])
  192.         elseif command == 'lowa' then
  193.         TP_Index = 2
  194.         send_command('@input /echo ----- TP Set changed to '..TP_Sets[TP_Index]..' -----')
  195.         equip(sets.aftercast.TP[TP_Sets[TP_Index]])
  196.         elseif command == 'capd' then
  197.         TP_Index = 3
  198.         send_command('@input /echo ----- TP Set changed to '..TP_Sets[TP_Index]..' -----')
  199.         equip(sets.aftercast.TP[TP_Sets[TP_Index]])
  200.         elseif command == 'capa' then
  201.         TP_Index = 4
  202.         send_command('@input /echo ----- TP Set changed to '..TP_Sets[TP_Index]..' -----')
  203.         equip(sets.aftercast.TP[TP_Sets[TP_Index]])
  204.         elseif command == 'acc' then
  205.         TP_Index = 5
  206.         send_command('@input /echo ----- TP Set changed to '..TP_Sets[TP_Index]..' -----')
  207.         equip(sets.aftercast.TP[TP_Sets[TP_Index]])
  208.         elseif command == 'pdt' then
  209.         TP_Index = 6
  210.         send_command('@input /echo ----- TP Set changed to '..TP_Sets[TP_Index]..' -----')
  211.         equip(sets.aftercast.TP[TP_Sets[TP_Index]])
  212.         elseif command == 'mix' then
  213.         TP_Index = 7
  214.         send_command('@input /echo ----- TP Set changed to '..TP_Sets[TP_Index]..' -----')
  215.         equip(sets.aftercast.TP[TP_Sets[TP_Index]])
  216.         elseif command == 'mdt' then
  217.         TP_Index = 8
  218.         send_command('@input /echo ----- TP Set changed to '..TP_Sets[TP_Index]..' -----')
  219.         equip(sets.aftercast.TP[TP_Sets[TP_Index]])
  220.         elseif command == 'cdcacc' then
  221.         CDC_Index = 1
  222.         send_command('@input /echo ----- CDC Set changed to '..CDC_Sets[CDC_Index]..' -----')
  223.         equip(sets.precast.CDC[CDC_Sets[CDC_Index]])
  224.         elseif command == 'cdcdd' then
  225.         CDC_Index = 2
  226.         send_command('@input /echo ----- CDC Set changed to '..CDC_Sets[CDC_Index]..' -----')
  227.         equip(sets.precast.CDC[CDC_Sets[CDC_Index]])
  228.         elseif command == "dis" then
  229.         disable("back")
  230.         elseif command == "ena" then
  231.         enable("back")
  232.         elseif command == "std" then
  233.         Idle_Index = 1
  234.         send_command('@input /echo ----- Idle Set changed to '..Idle_Sets[Idle_Index]..' -----')
  235.         elseif command == "ref" then
  236.         Idle_Index = 2
  237.         send_command('@input /echo ----- Idle Set changed to '..Idle_Sets[Idle_Index]..' -----')
  238.         elseif command == "cleave" then
  239.         Idle_Index = 3
  240.         send_command('@input /echo ----- Idle Set changed to '..Idle_Sets[Idle_Index]..' -----')
  241.         equip(sets.aftercast.Idle[Idle_Sets[Idle_Index]])
  242.         elseif command == "b" then
  243.         Crush_Index = 2
  244.         send_command('@input /echo ----- Tenebral Crush Set changed to '..Crush_Sets[Crush_Index]..' -----')
  245.         elseif command == "c" then
  246.         Crush_Index = 1
  247.         send_command('@input /echo ----- Tenebral Crush Set changed to '..Crush_Sets[Crush_Index]..' -----')
  248.         end
  249.     end
  250.    
  251.    
  252. function status_change(new,old)
  253.     if T{'Idle','Resting'}:contains(new) then
  254.         equip(sets.aftercast.Idle)
  255.     elseif new == 'Engaged' then
  256.         equip(sets.aftercast.TP[TP_Sets[TP_Index]])
  257.     end
  258. end
  259. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement