Advertisement
DBentt

SCH GS Lua

Jan 9th, 2014
1,727
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 11.14 KB | None | 0 0
  1. function get_sets()
  2.    
  3.         --Idle Sets--
  4.         sets.Idle = {}
  5.        
  6.         sets.Idle.Standard = {main="Owleyes",sub="Genbu's shield",range="Aureole",
  7.                       head="Gende. Caubeen",neck="Twilight torque",ear1="Moonshade earring",ear2="Ethereal earring",
  8.                       body="Hagondes coat",hands="Serpentes cuffs",ring1="Tamas ring",ring2="Maquette ring",
  9.                       back="Umbra cape",waist="Cascade belt",legs="Hagondes pants",feet="Serpentes sabots"}
  10.                              
  11.         sets.Idle.Sublimation = {main="Owleyes",sub="Genbu's shield",range="Aureole",
  12.                     head="Scholar's M.board",neck="Twilight torque",ear1="Moonshade earring",ear2="Savant's earring",                   body="Argute gown",hands="Serpentes cuffs",ring1="Tamas ring",ring2="Maquette ring",
  13.                     back="Umbra cape",waist="Cascade belt",legs="Hagondes pants",feet="Serpentes sabots"}
  14.        
  15.         sets.Idle.Sandstorm = {main="Owleyes",sub="Genbu's shield",range="Aureole",
  16.                        head="Gende. Caubeen",neck="Twilight torque",ear1="Moonshade earring",ear2="Ethereal earring",
  17.                        body="Hagondes coat",hands="Serpentes cuffs",ring1="Tamas ring",ring2="Maquette ring",
  18.                        back="Umbra cape",waist="Cascade belt",legs="Hagondes pants",feet="Desert Boots +1"}
  19.                                  
  20.         sets.Idle.SublimationSandstorm = {main="Owleyes",sub="Genbu's shield",range="Aureole",
  21.                           head="Scholar's M.board",neck="Twilight torque",ear1="Moonshade earring",ear2="Savant's earring",
  22.                           body="Argute gown",hands="Serpentes cuffs",ring1="Tamas ring",ring2="Maquette ring",
  23.                           back="Umbra cape",waist="Cascade belt",legs="Hagondes pants",feet="Desert Boots +1"}
  24.        
  25.        
  26.        
  27.        
  28.        
  29.        
  30.         --Precast Sets--
  31.         sets.Precast = {}
  32.        
  33.         sets.Precast.FC = {}
  34.        
  35.         sets.Precast.FC.Standard = {ammo='Incantor stone',
  36.                         ear1='Loquac. earring',
  37.                         hands='Gendewitha gages',ring1='Prolix ring',
  38.                         back='Swith cape',waist='Witful belt',legs='Orvail pants +1',feet='Argute loafers +2'}
  39.                                    
  40.         sets.Precast.FC.Cures = {ammo='Incantor Stone',
  41.                      ear1='Loquac. earring',
  42.                      body='Nefer kalasiris',hands='Gendewitha gages',ring1='Prolix ring',
  43.                      back='Pahtli cape',waist='Witful belt',legs='Orvail pants +1',feet='Argute loafers +2'}
  44.                                  
  45.         sets.Precast.JA = {}
  46.        
  47.         sets.Precast.JA.PenuryParsimony = {legs="Savant's pants +2"}
  48.        
  49.         sets.Precast.JA.ImmanencePerpetuation = {hands="Svnt. Bracers +2"}
  50.        
  51.         sets.Precast.JA.EbullienceRapture = {head="Svnt. bonnet +2"}
  52.        
  53.        
  54.        
  55.        
  56.        
  57.        
  58.         --Midcast Sets--
  59.         sets.Midcast = {}
  60.        
  61.         sets.Midcast.Cures = {main='Chatoyant Staff',sub='Verse strap +1',ammo='Clarus stone',
  62.                       head='Gende. caubeen', neck="Colossus's torque",ear1='Aredan earring',ear2='Beatific earring',
  63.                       body='Nefer kalasiris',hands='Bokwus gloves',ring1='Ephedra ring',ring2="Sirona's ring",
  64.                       back="Pahtli cape",waist='Cascade belt',legs="Scholar's pants",feet='Argute loafers +2'}
  65.                              
  66.         sets.Midcast.LowNukes = {main='Eminent Staff',sub='Verse strap +1',ammo="Erlene's Notebook",
  67.                      head='Hagondes hat', neck="Saevus pendant",ear1="Hecate's earring",ear2='Friomisi earring',
  68.                      body='Hagondes coat',hands='Hagondes cuffs',ring1='Icesoul ring',ring2="Acumen ring",
  69.                      back="Bookworm's cape",waist='Cognition belt',legs="Hagondes pants",feet='Hagondes sabots'}
  70.        
  71.         sets.Midcast.HighNukes = {main='Eminent Staff',sub='Verse strap +1',ammo="Erlene's Notebook",
  72.                       head='Hagondes hat', neck="Saevus pendant",ear1="Hecate's earring",ear2='Friomisi earring',
  73.                       body='Hagondes coat',hands='Hagondes cuffs',ring1='Icesoul ring',ring2="Acumen ring",
  74.                       back="Bookworm's cape",waist='Cognition belt',legs="Hagondes pants",feet='Hagondes sabots'}
  75.                                  
  76.         sets.Midcast.Helix = {main='Eminent Staff',sub='Verse strap +1',ammo="Erlene's Notebook",
  77.                       head='Hagondes hat', neck="Saevus pendant",ear1="Hecate's earring",ear2='Friomisi earring',
  78.                       body='Hagondes coat',hands='Hagondes cuffs',ring1='Icesoul ring',ring2="Icesoul ring",
  79.                       back="Twilight cape",waist='Cognition belt',legs="Hagondes pants",feet='Hagondes sabots'}
  80.                                  
  81.         sets.Midcast.Stun = {main='Apamajas II',sub='Mephitis grip',ammo='Incantor stone',
  82.                          head='Zelus tiara',neck='Aesir torque',ear1='Psystorm earring',ear2='Lifestorm earring',
  83.                          body='Hagondes coat',hands='Gendewitha gages',ring1="Maquette ring",ring2="Balrahn's ring",
  84.                      back='Swith cape',waist='Witful belt',legs='Orvail pants +1',feet='Argute loafers +2'}
  85.                              
  86.         sets.Midcast.Enhancing = {ammo="Savant's treatise",
  87.                       head="Savant's bonnet +2",neck="Colossus's torque",ear1='Loquac. earring',
  88.                       body='Argute gown',
  89.                       back='Merciful cape',waist='Cascade belt',legs="Scholar's pants"}
  90.                                  
  91.         sets.Midcast.Enfeebling = {main="Eminent staff",sub="Mephitis grip",
  92.                        head="Buremte hat",neck="Spider torque",ear1="Psystorm earring",ear2="Lifestorm earring",
  93.                        body="Orvail robe +1",hands="Gendewitha gages",ring1="Maquette ring",ring2="Balrahn's ring",
  94.                        back="Swith cape",waist="Cascade belt",legs="Savant's pants +2",feet="Orvail souliers +1"}
  95.                                    
  96.         sets.Midcast.Stoneskin = {head="Nahtirah hat",neck="Stone gorget",ear1="Earthcry earring",ear2="Loquac. earring",
  97.                       hands="Stone mufflers",ring1="Prolix ring",
  98.                       back="Swith cape",waist="Siegel sash",legs="Haven hose",feet="Chelona boots"}
  99.                                  
  100.         sets.Midcast.Regen = {main='Chatoyant Staff',sub='Verse strap +1',ammo='Clarus stone',
  101.                           head="Svnt. bonnet +2", neck="Colossus's torque",ear1='Aredan earring',ear2='Beatific earring',
  102.                       body='Nefer kalasiris',hands='Bokwus gloves',ring1='Ephedra ring',ring2="Sirona's ring",
  103.                       back="Pahtli cape",waist='Cascade belt',legs="Scholar's pants",feet='Argute loafers +2'}
  104.                              
  105.         sets.Obi = {}
  106.        
  107.         sets.Obi.Fire = {waist='Karin Obi',back='Twilight Cape',ring1='Zodiac Ring'}
  108.        
  109.         sets.Obi.Earth = {waist='Dorin Obi',back='Twilight Cape',ring1='Zodiac Ring'}
  110.        
  111.         sets.Obi.Water = {waist='Suirin Obi',back='Twilight Cape',ring1='Zodiac Ring'}
  112.        
  113.         sets.Obi.Wind = {waist='Furin Obi',back='Twilight Cape',ring1='Zodiac Ring'}
  114.        
  115.         sets.Obi.Ice = {waist='Hyorin Obi',back='Twilight Cape',ring1='Zodiac Ring'}
  116.        
  117.         sets.Obi.Thunder = {waist='Rairin Obi',back='Twilight Cape',ring1='Zodiac Ring'}
  118.        
  119.         sets.Obi.Light = {waist='Korin Obi',back='Twilight Cape',ring1='Zodiac Ring'}
  120.        
  121.         sets.Obi.Dark = {waist='Anrin Obi',back='Twilight Cape',ring1='Zodiac Ring'}
  122.                              
  123.                              
  124.                              
  125.                              
  126.                              
  127.                              
  128.         --Aftercast Sets--
  129.         sets.Aftercast = {}
  130. end
  131.  
  132. function precast(spell)
  133.     if spell.action_type == 'Magic' then
  134.         equip(sets.Precast.FC.Standard)
  135.         if string.find(spell.english,'Cur') and spell.name ~= 'Cursna' then
  136.             equip(sets.Precast.FC.Cure)
  137.         end
  138.     end
  139.    
  140.     if spell.english == 'Penury' or spell.english == 'Parsimony' then
  141.         equip(sets.Precast.JA.PenuryParsimony)
  142.     end
  143.    
  144.     if spell.english == 'Ebullience' or spell.english == 'Rapture' then
  145.         equip(sets.Precast.JA.EbullienceRapture)
  146.     end
  147.    
  148.     if spell.english == 'Immanence' or spell.english == 'Perpetuation' then
  149.         equip(sets.Precast.JA.ImmanencePerpetuation)
  150.     end
  151. end
  152.  
  153. function midcast(spell)
  154.     if spell.english == 'Cure' or spell.english == 'Cure II' or spell.english == 'Cure III' or spell.english == 'Cure IV' then
  155.         equip(sets.Midcast.Cures)
  156.         if spell.element == world.weather_element or spell_element == world.day_element then
  157.             equip(sets.Obi[spell.element])
  158.         end
  159.         if buffactive.rapture then
  160.             equip(sets.Precast.JA.EbullienceRapture)
  161.         end
  162.     end
  163.    
  164.     if string.find(spell.english,'helix') then
  165.         equip(sets.Midcast.Helix)
  166.     end
  167.    
  168.     if spell.english == 'Kaustra' then
  169.         equip(sets.Midcast.Helix)
  170.         if spell.element == world.weather_element or spell_element == world.day_element then
  171.             equip(sets.Obi[spell.element])
  172.         end
  173.     end
  174.    
  175.     if spell.english == 'Stone' or spell.english == 'Thunder' or spell.english == 'Water' or spell.english == 'Fire' or spell.english == 'Blizzard' or spell.english == 'Aero' then
  176.         equip(sets.Midcast.LowNukes)
  177.         if spell.element == world.weather_element or spell_element == world.day_element then
  178.             equip(sets.Obi[spell.element])
  179.         end
  180.         if buffactive.ebullience then
  181.             equip(sets.Precast.JA.EbullienceRapture)
  182.         end
  183.         if buffactive.klimaform then
  184.             equip ({feet="Savant's Loafers +2"})
  185.         end
  186.     end
  187.    
  188.     if spell.english == 'Stone III' or spell.english == 'Thunder III' or spell.english == 'Water III' or spell.english == 'Fire III' or spell.english == 'Blizzard III' or spell.english == 'Aero III' or spell.english == 'Stone IV' or spell.english == 'Thunder IV' or spell.english == 'Water IV' or spell.english == 'Fire IV' or spell.english == 'Blizzard IV' or spell.english == 'Aero IV' or spell.english == 'Stone V' or spell.english == 'Thunder V' or spell.english == 'Water V' or spell.english == 'Fire V' or spell.english == 'Blizzard V' or spell.english == 'Aero V'then
  189.         equip(sets.Midcast.HighNukes)
  190.         if spell.element == world.weather_element or spell_element == world.day_element then
  191.             equip(sets.Obi[spell.element])
  192.         end
  193.         if buffactive.ebullience then
  194.             equip(sets.Precast.JA.EbullienceRapture)
  195.         end
  196.         if buffactive.klimaform then
  197.             equip ({feet="Savant's Loafers +2"})
  198.         end
  199.     end
  200.  
  201.     if spell.skill == 'EnhancingMagic' then
  202.         if spell.english == 'Embrava' then
  203.             equip(sets.Midcast.Enhancing)
  204.             if not buffactive.perpetuance then
  205.                 add_to_chat(8,'--------- Perpetuance is down ---------')
  206.             end
  207.             if not buffactive.accession then
  208.                 add_to_chat(8,'--------- Accession is down ---------')
  209.             end
  210.             if not buffactive.penury then
  211.                 add_to_chat(8,'--------- Penury is down ---------')
  212.             end
  213.         end
  214.         if buffactive.perpetuance then
  215.             equip(sets.Midcast.Enhancing,{hands="Savant's Bracers +2"})
  216.         else
  217.             equip(sets.Midcast.Enhancing)
  218.         end
  219.     end
  220.    
  221.     if spell.english == 'Stoneskin' then
  222.         equip(sets.Midcast.Stoneskin)
  223.             if buffActive['Stoneskin'] then
  224.                 send_command('@wait 2.5;@input //cancel Stoneskin')
  225.             end
  226.     end
  227.    
  228.     if spell.english == 'Slow' or spell.english == 'Paralyze' or spell.english == 'Blind' or spell.english == 'Silence' or spell.english == 'Break' or spell.english == 'Sleep' or spell.english == 'Sleep II' or spell.english == 'Sleepga' or spell.english == 'Dispel' then
  229.         equip(sets.Midcast.Enfeebling)
  230.     end
  231.    
  232.     if spell.english == 'Sneak' then
  233.         send_command('@wait 1.8;cancel 71;')
  234.     end
  235. end
  236.  
  237. function aftercast(spell)
  238.     equip(sets.Idle.Standard)
  239.        
  240.     if buffactive['Sublimation: Activated'] then
  241.         equip(sets.Idle.Sublimation)
  242.     end
  243.    
  244.     if buffactive['Sandstorm'] then
  245.         equip(sets.Idle.Sandstorm)
  246.             if buffactive['Sublimation: Activated'] then
  247.                 equip(sets.Idle.SublimationSandstorm)
  248.             end
  249.     end
  250.    
  251.    
  252.     if spell.english == 'Sleep' or spell.english == 'Sleepga' then
  253.         send_command('@wait 50;input /echo ------- '..spell.english..' is wearing off in 10 seconds -------')
  254.     elseif spell.english == 'Sleep II' or spell.english == 'Sleepga II' then
  255.         send_command('@wait 80;input /echo ------- '..spell.english..' is wearing off in 10 seconds -------')
  256.     elseif spell.english == 'Break' or spell.english == 'Breakga' then
  257.         send_command('@wait 20;input /echo ------- '..spell.english..' is wearing off in 10 seconds -------')
  258.     end
  259. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement