Advertisement
DBentt

RUN GS Lua

Jan 6th, 2014
3,512
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 11.11 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. --Resolution sets: Res, Requiescat sets: Req--
  5.  
  6. function get_sets()
  7.  
  8.         --Idle Sets--
  9.         sets.Idle = {}
  10.        
  11.         sets.Idle.index = {'Standard'}
  12.        
  13.         Idle_ind = 1
  14.                
  15.         sets.Idle.Standard = {ammo="Hagneia stone",
  16.                       head="Ocelomeh headpiece +1",neck="Twilight torque", ear1="Ethereal earring",
  17.                       body="Futhark coat",hands="Iuitl wristbands",ring1="Dark ring",ring2="Sheltered ring",
  18.                       back="Evasionist's cape",waist="Flume belt",legs="Blood cuisses",feet="Iuitl gaiters"}
  19.            
  20.    
  21.        
  22.                
  23.                
  24.                
  25.         --TP Sets--
  26.         sets.TP = {}
  27.  
  28.         sets.TP.index = {'Standard', 'Solo', 'AccuracyLite', 'AccuracyFull', 'DT', 'DTAccuracy'}
  29.         --1=Standard, 2=Solo, 3=AccuracyLite, 4=AccuracyFull, 5=DT, 6=DTAccuracy--
  30.         TP_ind = 1
  31.    
  32.         sets.TP.Standard = {ammo="Hagneia stone",
  33.                     head="Iuitl headgear",neck="Asperity necklace", ear1="Steelflash earring", ear2="Bladeborn earring",
  34.                     body="Thaumas coat",hands="Iuitl wristbands",ring1="Epona's ring",ring2="Rajas ring",
  35.                     back="Atheling mantle",waist="Windbuffet belt",legs="Iuitl tights",feet="Manibozho boots"}
  36.                            
  37.         sets.TP.Solo = {ammo="Hagneia stone",
  38.                 head="Iuitl headgear",neck="Asperity necklace", ear1="Steelflash earring", ear2="Bladeborn earring",
  39.                 body="Futhark coat",hands="Iuitl wristbands",ring1="Epona's ring",ring2="Rajas ring",
  40.                 back="Atheling mantle",waist="Windbuffet belt",legs="Iuitl tights",feet="Manibozho boots"}
  41.                            
  42.         sets.TP.AccuracyLite = {ammo="Hagneia stone",
  43.                     head="Whirlpool mask",neck="Asperity necklace", ear1="Steelflash earring", ear2="Bladeborn earring",                body="Thaumas coat",hands="Buremte gloves",ring1="Epona's ring",ring2="Rajas ring",
  44.                     back="Evasionist's cape",waist="Windbuffet belt",legs="Iuitl tights",feet="Manibozho boots"}
  45.    
  46.         sets.TP.AccuracyFull = {ammo="Honed tathlum",
  47.                     head="Whirlpool mask",neck="Ziel charm", ear1="Steelflash earring", ear2="Bladeborn earring",
  48.                     body="Thaumas coat",hands="Buremte gloves",ring1="Epona's ring",ring2="Mars's ring",
  49.                     back="Evasionist's cape",waist="Hurch'lan sash",legs="Iuitl tights",feet="Manibozho boots"}
  50.                            
  51.         sets.TP.DT = {ammo="Honed tathlum",
  52.                       head="Futhark bandeau",neck="Twilight torque", ear1="Steelflash earring", ear2="Bladeborn earring",
  53.                       body="Futhark coat",hands="Iuitl wristbands",ring1="Dark ring",ring2="Epona's ring",
  54.                   back="Mollusca mantle",waist="Flume belt",legs="Iuitl tights",feet="Iuitl gaiters"}
  55.                  
  56.         sets.TP.DTAccuracy = {ammo="Honed tathlum",
  57.                       head="Futhark bandeau",neck="Twilight torque", ear1="Steelflash earring", ear2="Bladeborn earring",                 body="Futhark coat",hands="Iuitl wristbands",ring1="Dark ring",ring2="Mars's ring",
  58.                           back="Evasionist's cape",waist="Flume belt",legs="Iuitl tights",feet="Iuitl gaiters"}
  59.                              
  60.                              
  61.                              
  62.                              
  63.                              
  64.                              
  65.         --Weaponskill Sets--
  66.         sets.WS = {}
  67.    
  68.         sets.Resolution = {}
  69.    
  70.         sets.Resolution.index = {'Attack','Accuracy'}
  71.         Resolution_ind = 1
  72.    
  73.         sets.Resolution.Attack = {ammo="Aqreqaq bomblet",
  74.                       head="Whirlpool mask",neck="Soil gorget",ear1="Brutal earring",ear2="Moonshade earring",
  75.                       body="Manibozho jerkin",hands="Manibozho gloves",ring1="Epona's ring",ring2="Vulcan's ring",
  76.                       back="Buquwik cape",waist="Soil belt",legs="Quiahuiz leggings",feet="Manibozho boots"}
  77.                                  
  78.         sets.Resolution.Accuracy = {ammo="Honed tathlum",
  79.                         head="Whirlpool mask",neck="Soil gorget",ear1="Brutal earring",ear2="Moonshade earring",
  80.                         body="Manibozho jerkin",hands="Buremte gloves",ring1="Epona's ring",ring2="Vulcan's ring",
  81.                         back="Buquwik cape",waist="Soil belt",legs="Manibozho brais",feet="Manibozho boots"}
  82.                              
  83.         sets.Requiescat = {}
  84.    
  85.         sets.Requiescat.index = {'Attack','Accuracy'}
  86.         Requiescat_ind = 1
  87.        
  88.         sets.Requiescat.Attack = {ammo="Potestas bomblet",
  89.                           head="Whirlpool mask",neck="Soil gorget",ear1="Brutal earring",ear2="Moonshade earring",
  90.                       body="Wayfarer robe",hands="Wayfarer cuffs",ring1="Epona's ring",ring2="Aquasoul ring",
  91.                       back="Atheling mantle",waist="Soil belt",legs="Quiahuiz leggings",feet="Wayfarer clogs"}
  92.                                  
  93.         sets.Requiescat.Accuracy = {ammo="Honed tathlum",
  94.                         head="Whirlpool mask",neck="Soil gorget",ear1="Brutal earring",ear2="Moonshade earring",
  95.                         body="Wayfarer robe",hands="Buremte gloves",ring1="Epona's ring",ring2="Aquasoul ring",
  96.                         back="Letalis mantle",waist="Soil belt",legs="Quiahuiz leggings",feet="Wayfarer clogs"}
  97.                                      
  98.                                      
  99.                                      
  100.                                      
  101.                                      
  102.                                      
  103.         --Utility Sets--
  104.         sets.Utility = {}
  105.        
  106.         sets.Utility.PDT = {head="Futhark bandeau",neck="Twilight torque",ear1="Ethereal earring",
  107.                         body="Futhark coat",hands="Iuitl wristbands",ring1="Dark ring",ring2="Dark ring",
  108.                     back="Mollusca mantle",waist="Flume belt",legs="Iuitl tights",feet="Iuitl gaiters"}
  109.                        
  110.         sets.Utility.MDT = {head="Runeist bandeau",neck="Twilight torque",
  111.                     body="Futhark coat",hands="Runeist mitons",ring1="Dark ring",ring2="Dark ring",
  112.                     back="Mollusca mantle",legs="Runeist trousers",feet="Runeist bottes"}
  113.                            
  114.         sets.Utility.Stoneskin = {head="Whirlpool mask",neck="Stone Gorget",ear1="Loquac. earring",ear2="Earthcry earring",
  115.                       body="Futhark coat",hands="Stone Mufflers",ring1="Prolix ring",
  116.                       back="Swith cape",waist="Siegel sash",legs="Haven hose",feet="Iuitl gaiters"}
  117.                              
  118.         sets.Utility.Phalanx = {head="Futhark bandeau",neck="Colossus's torque",ear1="Loquac. earring",ear2="Augment. earring",
  119.                     body="Futhark coat",hands="Runeist mitons",ring1="Prolix ring",
  120.                     back="Swith cape",waist="Cascade belt",legs="Portent pants",feet="Iuitl gaiters"}
  121.                              
  122.         sets.Utility.Regen = {head="Runeist bandeau",neck="Colossus's torque",ear1="Loquac. earring",ear2="Augment. earring",
  123.                       body="Futhark coat",hands="Runeist mitons",ring1="Prolix ring",
  124.                       back="Swith cape",waist="Pythia sash +1",legs="Futhark trousers",feet="Runeist bottes"}
  125.                              
  126.         sets.Utility.Utsusemi = {head="Runeist bandeau",neck="Jeweled collar",ear1="Loquac. earring",
  127.                      body="Futhark coat",hands="Thaumas gloves",ring1="Prolix ring",
  128.                      back="Swith cape",waist="Hurch'lan sash",legs="Futhark trousers",feet="Iuitl gaiters"}
  129.                                  
  130.                        
  131.                
  132.                
  133.                
  134.                
  135.                
  136.         --Job Ability Sets--
  137.         sets.JA = {}
  138.        
  139.         sets.JA.Lunge = {ammo="Erlene's notebook",
  140.                  head="A'as circlet",neck="Eddy necklace",lear="Hecate's earring",rear="Friomisi earring",
  141.                  body="Mirke wardecors",hands="Spolia cuffs",
  142.                  back="Evasionist's cape",legs="Shneddick tights",feet="Weatherspoon souliers"}
  143.    
  144.         sets.JA.Vallation = {body="Runeist coat",
  145.                     legs="Futhark trousers"}
  146.                              
  147.         sets.JA.Battuta = {head="Futhark bandeau"}
  148.    
  149.         sets.JA.Gambit = {hands="Runeist mitons"}
  150.    
  151.         sets.JA.Pflug = {head="Runeist bottes"}
  152.        
  153.        
  154.        
  155.        
  156.        
  157.        
  158.         --Precast Sets--
  159.         sets.precast = {}
  160.    
  161.         sets.precast.FC = {}
  162.    
  163.         sets.precast.FC.Standard = {head="Runeist bandeau",neck="Jeweled collar", ear1="Loquac. Earring",
  164.                         body="Mirke wardecors",hands="Thaumas Gloves",
  165.                         legs="Orvail pants +1",feet="Chelona Boots"}
  166.                                    
  167.         sets.precast.FC.Enhancing = {head="Runeist bandeau",neck="Jeweled collar", ear1="Loquac. Earring",
  168.                          body="Mirke wardecors",hands="Thaumas Gloves",
  169.                          legs="Futhark trousers",feet="Chelona Boots"}
  170. end
  171.  
  172.  
  173.  
  174.        
  175.        
  176.        
  177. function precast(spell)
  178.     if spell.action_type == 'Magic' then
  179.         equip(sets.precast.FC.Standard)
  180.     end
  181.    
  182.     if spell.action_type == 'Enhancing' then
  183.         equip(sets.precast.FC.Enhancing)
  184.     end
  185.    
  186.     if spell.action_type == 'Ninjutsu' then
  187.         equip(sets.precast.FC.Standard)
  188.     end
  189.    
  190.     if spell.english == 'Lunge' or spell.english == 'Swipe' then
  191.         equip(sets.JA.Lunge)
  192.     end
  193.    
  194.     if spell.english == 'Vallation' or spell.english == 'Valiance' then
  195.         equip(sets.JA.Vallation)
  196.     end
  197.    
  198.     if spell.english == 'Battuta' then
  199.         equip(sets.JA.Battuta)
  200.     end
  201.    
  202.     if spell.english == 'Pflug' then
  203.         equip(sets.JA.Pflug)
  204.     end
  205.    
  206.     if spell.english == 'Gambit' then
  207.         equip(sets.JA.Gambit)
  208.     end
  209.        
  210.     if spell.english == 'Resolution' or spell.english == 'Shockwave' then
  211.         equip(sets.Resolution[sets.Resolution.index[Resolution_ind]])
  212.     end
  213.    
  214.     if spell.english == 'Requiescat' then
  215.         equip(sets.Requiescat[sets.Requiescat.index[Requiescat_ind]])
  216.     end
  217. end    
  218.  
  219. function midcast(spell,act)
  220.     if spell.english == 'Stoneskin' then
  221.         equip(sets.Utility.Stoneskin)
  222.                 if buffactive['Stoneskin'] then
  223.                 send_command('@wait 0.7; input //cancel Stoneskin; input /echo Refreshing Stoneskin.')
  224.                 end
  225.     end
  226.    
  227.     if spell.english == 'Phalanx' or spell.english == 'Bar*' then
  228.         equip(sets.Utility.Phalanx)
  229.     end
  230.    
  231.     if spell.english == 'Regen' then
  232.         equip(sets.Utility.Regen)
  233.     end
  234.    
  235.     if spell.english == 'Utsusemi: Ichi' then
  236.         equip(sets.Utility.Utsusemi)
  237.             if buffactive['Copy Image (3)'] then
  238.                 send_command('@wait 0.3; input //cancel Copy Image*')
  239.             end
  240.             if buffactive['Copy Image (2)'] then
  241.                 send_command('@wait 0.3; input //cancel Copy Image*')
  242.             end
  243.             if buffactive['Copy Image (1)'] then
  244.                 send_command('@wait 0.3; input //cancel Copy Image*')
  245.             end
  246.             if buffactive['Copy Image'] then
  247.                 send_command('@wait 0.3; input //cancel Copy Image*')
  248.             end
  249.     end
  250.  
  251.         if spell.english == 'Utsusemi: Ni' then
  252.         equip(sets.Utility.Utsusemi)
  253.     end
  254. end
  255.  
  256. function aftercast(spell)
  257.     if player.status == 'Engaged' then
  258.         equip(sets.TP[sets.TP.index[TP_ind]])
  259.     else
  260.         equip(sets.Idle[sets.Idle.index[Idle_ind]])
  261.     end
  262. end
  263.  
  264. function status_change(new,old)
  265.     if new == 'Engaged' then
  266.         equip(sets.TP[sets.TP.index[TP_ind]])
  267.     else
  268.         equip(sets.Idle[sets.Idle.index[Idle_ind]])
  269.     end
  270. end
  271.  
  272. function self_command(command)
  273.     if command == 'toggle TP set' then
  274.         TP_ind = TP_ind +1
  275.         if TP_ind > #sets.TP.index then TP_ind = 1 end
  276.         send_command('@input /echo <----- TP Set changed to '..sets.TP.index[TP_ind]..' ----->')
  277.         equip(sets.TP[sets.TP.index[TP_ind]])
  278.     elseif command == 'toggle Idle set' then
  279.         Idle_ind = Idle_ind +1
  280.         if Idle_ind > #sets.Idle.index then Idle_ind = 1 end
  281.         send_command('@input /echo <----- Idle Set changed to '..sets.Idle.index[Idle_ind]..' ----->')
  282.         equip(sets.Idle[sets.Idle.index[Idle_ind]])
  283.     elseif command == 'toggle Res set' then
  284.         Resolution_ind = Resolution_ind +1
  285.         if Resolution_ind > #sets.Resolution.index then Resolution_ind = 1 end
  286.         send_command('@input /echo <----- Resolution set changed to '..sets.Resolution.index[Resolution_ind]..' ----->')
  287.     elseif command == 'toggle Req set' then
  288.         Requiescat_ind = Requiescat_ind +1
  289.         if Requiescat_ind > #sets.Requiescat.index then Requiescat_ind = 1 end
  290.         send_command('@input /echo <----- Requiescat Set changed to '..sets.Requiescat.index[Requiescat_ind]..' ----->')
  291.     elseif command == 'equip TP set' then
  292.                 equip(sets.TP[sets.TP.index[TP_ind]])
  293.         elseif command == 'equip Idle set' then
  294.                 equip(sets.Idle[sets.Idle.index[Idle_ind]])
  295.     end
  296. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement