Advertisement
ErC8D

GS_RUN

Jun 9th, 2014
5,580
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 19.32 KB | None | 0 0
  1.  function get_sets()
  2.    
  3.  
  4.  
  5. send_command('bind !f9 gs c toggle TP set')
  6. send_command('bind ^f9 gs c toggle DW set')
  7.  
  8.  
  9.  
  10.  
  11. send_command('bind !f10 gs c toggle Weaponskill sets')
  12. send_command('bind ^f10 gs c toggle Idle set')
  13.  
  14.  
  15.  
  16.  
  17. send_command('bind f9 input /ja "Gambit" <t>')
  18. send_command('bind f10 input /ja "Lunge" <t>')
  19. send_command('bind f11 input /ja "Swipe" <t>')
  20. send_command('bind f12 input /ma "Flash" <t>')
  21.  
  22.  
  23.  
  24. send_command('bind !f12 input /ws "Dimidiation" <t>')
  25.  
  26. function file_unload()
  27.    
  28.  
  29.     send_command('unbind ^f9')
  30.     send_command('unbind ^f10')
  31.    
  32.     send_command('unbind !f9')
  33.     send_command('unbind !f10')
  34.     send_command('unbind !f12')
  35.  
  36.     send_command('unbind f9')
  37.     send_command('unbind f10')
  38.     send_command('unbind f11')
  39.     send_command('unbind f12')
  40.  
  41.    
  42.  
  43. end
  44.  
  45.  
  46.     -- JA Sets for Precast Function -- 
  47.     sets.JA = {}
  48.    
  49.     sets.JA['Elemental Sforzo'] = {body="Futhark Coat +3",hands="Kurys gloves",legs="Erilaz leg guards +1",feet="Erilaz greaves +1"}
  50.     sets.JA['Vallation'] = {body="Runeist's Coat +2",hands="Kurys gloves",legs="Futhark Trousers +3",feet="Erilaz greaves +1",back="Ogma\'s Cape"}
  51.     sets.JA['Valiance'] = {body="Runeist's Coat +2",hands="Kurys gloves",legs="Futhark Trousers +3",feet="Erilaz greaves +1",back="Ogma\'s Cape"}
  52.     sets.JA['Pflug'] = {feet="Runeist Bottes +1",hands="Kurys gloves"}
  53.     sets.JA['Swordplay'] = {hands="Futhark Mitons +3",legs="Erilaz leg guards +1",feet="Erilaz greaves +1"}
  54.     sets.JA['Gambit'] = {hands="Runeist's Mitons +2",feet="Erilaz greaves +1"}
  55.     sets.JA['Liement'] = {body="Futhark Coat +3",hands="Kurys gloves",legs="Erilaz leg guards +1",feet="Erilaz greaves +1"}
  56.     sets.JA['Battuta'] = {head="Fu. Bandeau +3",hands="Kurys gloves",legs="Erilaz leg guards +1"}
  57.     sets.JA['Embolden'] = {back="Evasionist's Cape"}
  58.     sets.JA['Vivacious Pulse'] = {head="Erilaz Galea +1",hands="Kurys gloves",legs="Runeist Trousers +1",ring2="Globidonta Ring",feet="Erilaz greaves +1"}
  59.     sets.JA['Rayke'] = {feet="Futhark Boots +3",hands="Kurys gloves"}
  60.    
  61.     sets.JA['Lunge'] = {ammo="Pemphredo Tathlum",
  62.     head="Herculean Helm",
  63.     body="Carmine Scale Mail +1",
  64.     hands="Carmine Finger Gauntlets +1",
  65.     legs={ name="Herculean Trousers", augments={'Mag. Acc.+17 "Mag.Atk.Bns."+17','Weapon skill damage +2%','"Mag.Atk.Bns."+11',}},
  66.     feet="Adhemar Gamashes +1",
  67.     neck="Sanctity Necklace",
  68.     waist="Eschan Belt",
  69.     left_ear="Friomisi Earring",
  70.     right_ear="Hecate's Earring",
  71.     left_ring="Acumen Ring",
  72.     right_ring="Fenrir Ring +1",
  73.     back="Argocham. Mantle"}
  74.    
  75.    
  76.    
  77.     -- TP/Engaged sets --
  78.     sets.TP = {}
  79.     sets.TP.index = {'Reg', 'MAcc', 'HAcc', 'PDT', 'PDTA','DW','DWA','DWP','DWPA','JP','Multi','Mag'}
  80.     TP_index = 1
  81.    
  82.     sets.TP.Reg = {
  83.     sub="Utu Grip",
  84.     ammo="Yamarang",
  85.     head={ name="Dampening Tam", augments={'DEX+8','Accuracy+14','Mag. Acc.+13','Quadruple Attack +1',}},
  86.     body={ name="Adhemar Jacket +1", augments={'STR+12','DEX+12','Attack+20',}},
  87.     hands={ name="Adhemar Wrist. +1", augments={'STR+12','DEX+12','Attack+20',}},
  88.     legs={ name="Herculean Trousers", augments={'Accuracy+25','"Resist Silence"+1','Quadruple Attack +3',}},
  89.     feet={ name="Herculean Boots", augments={'Accuracy+20 Attack+20','"Triple Atk."+3','DEX+7','Attack+9',}},
  90.     neck="Clotharius Torque",
  91.     waist="Kentarch Belt +1",
  92.     left_ear="Telos Earring",
  93.     right_ear="Sherida Earring",
  94.     left_ring="Niqmaddu Ring",
  95.     right_ring="Epona's Ring",
  96.     back={ name="Ogma's cape", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}},}
  97.    
  98.     sets.TP.MAcc = set_combine(sets.TP.Reg,{hands="Meghanada Gloves +2",legs="Meghanada Chausses +2",back={ name="Ogma's cape", augments={'DEX+20','Accuracy+20 Attack+20','DEX+10','Weapon skill damage +10%',}}})
  99.    
  100.     sets.TP.HAcc = {
  101.     sub="Utu Grip",
  102.     ammo="Yamarang",
  103.     head="Meghanada Visor +1",
  104.     body="Ayanmo Corazza +2",
  105.     hands="Turms Mittens +1",
  106.     legs="Carmine Cuisses +1",
  107.     feet="Aya. Gambieras +2",
  108.     neck="Ej Necklace",
  109.     waist="Olseni Belt",
  110.     left_ear="Telos Earring",
  111.     right_ear="Dignitary's Earring",
  112.     left_ring="Ramuh Ring +1",
  113.     right_ring="Ramuh Ring +1",
  114.     back={ name="Ogma's cape", augments={'DEX+20','Accuracy+20 Attack+20','DEX+10','Weapon skill damage +10%',}},
  115. }
  116.    
  117.     sets.TP.PDT = {
  118.     sub="Utu Grip",
  119.     ammo="Yamarang",
  120.     head="Meghanada Visor +1",
  121.     body="Ayanmo Corazza +2",
  122.     hands="Turms Mittens +1",
  123.     legs="Eri. Leg Guards +1",
  124.     feet="Erilaz Greaves +1",
  125.     neck="Twilight Torque",
  126.     waist="Flume Belt",
  127.     left_ear="Ethereal Earring",
  128.     right_ear="Sherida Earring",
  129.     left_ring="Defending Ring",
  130.     right_ring="Moonlight Ring",
  131.     back="Moonlight Cape"}
  132.    
  133.     sets.TP.PDTA ={
  134.     sub="Utu Grip",
  135.     ammo="Yamarang",
  136.     head="Meghanada Visor +1",
  137.     body="Meg. Cuirie +1",
  138.     hands="Turms Mittens +1",
  139.     legs="Meg. Chausses +2",
  140.     feet="Aya. Gambieras +2",
  141.     neck="Ej Necklace",
  142.     waist="Flume Belt",
  143.     left_ear="Ethereal Earring",
  144.     right_ear="Sherida Earring",
  145.     left_ring="Defending Ring",
  146.     right_ring="Moonlight Ring",
  147.     back={ name="Evasionist's Cape", augments={'Enmity+4','"Embolden"+14','Damage taken-5%',}},}
  148.    
  149.    
  150.    
  151.     sets.TP.DW = set_combine(sets.TP.Reg,{ear1="Suppanomimi",ear2="Sherida Earring"})
  152.    
  153.     sets.TP.DWA = set_combine(sets.TP.Acc,{ear1="Suppanomimi",ear2="Sherida Earring"})
  154.    
  155.     sets.TP.DWP = set_combine(sets.TP.PDT,{ear1="Suppanomimi",ear2="Sherida Earring"})
  156.    
  157.     sets.TP.DWPA = set_combine(sets.TP.PDTA,{ear1="Suppanomimi",ear2="Sherida Earring"})
  158.    
  159.     sets.TP.JP = set_combine(sets.TP[sets.TP.index[TP_index]], {back="Mecistopins Mantle"})
  160.    
  161.     sets.TP.Multi = set_combine(sets.TP.Reg,{body="Thaumas Coat"})
  162.    
  163.     sets.TP.Mag = set_combine(sets.TP.PDT,{body="Runeist's Coat +2",back="Engulfer Cape +1",hands="Erilaz Gauntlets +1"})
  164.    
  165.  
  166.      
  167.    
  168.    
  169.    
  170.     -- Idle Sets --
  171.     sets.Idle = {}
  172.     sets.Idle.index = {'Move','Regen','Refresh','PDT','CP'}
  173.     Idle_index = 1
  174.    
  175.    
  176.     sets.Idle.Regen = {head="Ocelomeh Headpiece +1",
  177.         neck="Sanctity Necklace",
  178.         ear1="Ethereal Earring",
  179.         body="Futhark Coat +3",
  180.         hands="Turms Mittens +1",
  181.         ring1="Paguroidea Ring",
  182.         ring2="Weatherspoon Ring +1",
  183.         back="Shadow Mantle",
  184.         waist="Flume Belt",
  185.         legs="Runeist Trousers +1"}
  186.    
  187.     sets.Idle.Refresh = {head="Rawhide Mask",
  188.             neck="Wiglen Gorget",
  189.             ear1="Ethereal Earring",
  190.             ear2="Sherida Earring",
  191.             body="Runeist's Coat +2",
  192.             ring1="Paguroidea Ring",
  193.             ring2="Karieyh Ring",
  194.             back="Shadow Mantle",
  195.             waist="Flume Belt",
  196.             legs="Runeist Trousers +1"}
  197.    
  198.     sets.Idle.PDT = sets.TP.PDT
  199.    
  200.     sets.Idle.CP = set_combine(sets.Idle.PDT,{back="Mecistopins Mantle"})
  201.    
  202.     sets.Idle.Move = set_combine(sets.Idle.PDT,{legs="Carmine Cuisses +1"})
  203.    
  204.     --WS Resolution Set --
  205.  
  206.     sets.WS = {}
  207.     sets.Resolution = {}
  208.     sets.Resolution.index = {'Normal','Accuracy'}
  209.     Resolution_index = 1
  210.    
  211.     sets.Resolution.Normal = {ammo="Knobkierrie",
  212.             head="Adhemar Bonnet +1",
  213.             neck="Fotia Gorget",
  214.             ear1="Sherida Earring",
  215.             ear2="Telos Earring",
  216.             body="Adhemar Jacket +1",
  217.             hands="Adhemar Wristbands +1",
  218.             ring1="Niqmaddu Ring",
  219.             ring2="Regal Ring",
  220.             back={ name="Ogma's cape", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}},
  221.             waist="Fotia Belt",
  222.             legs="Meghanada Chausses +2",
  223.             feet="Herculean Boots"}
  224.    
  225.     sets.Resolution.Accuracy = {ammo="Honed Tathlum",
  226.             head="Meghanada Visor +1",
  227.             neck="Fotia Gorget",
  228.             ear1="Telos Earring",
  229.             ear2="Dignitary's Earring",
  230.             body="Adhemar Jacket +1",
  231.             hands="Adhemar Wristbands +1",
  232.             ring1="Niqmaddu Ring",
  233.             ring2="Regal Ring",
  234.             back={ name="Ogma's cape", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}},
  235.             waist="Fotia Belt",
  236.             legs="Meghanada Chausses +2",
  237.             feet="Herculean Boots"}
  238.    
  239.     sets.Resolution.R = set_combine(sets.Resolution.Normal,{neck="Ygnas's Resolve +1"})
  240.  
  241.     sets.Dimidiation = {}
  242.     sets.Dimidiation.index = {'Normal','Accuracy'}
  243.     Dimidiation_index = 1
  244.    
  245.     sets.Dimidiation.Normal = {ammo="Knobkierrie",
  246.     head={ name="Lustratio Cap +1", augments={'Accuracy+20','DEX+8','Crit. hit rate+3%',}},
  247.     body={ name="Herculean Vest", augments={'Attack+2','STR+1','Weapon skill damage +7%','Accuracy+17 Attack+17',}},
  248.     hands="Meg. Gloves +2",
  249.     legs={ name="Lustr. Subligar +1", augments={'Accuracy+20','DEX+8','Crit. hit rate+3%',}},
  250.     feet={ name="Lustra. Leggings +1", augments={'HP+65','STR+15','DEX+15',}},
  251.     neck="Fotia Gorget",
  252.     waist="Fotia Belt",
  253.     left_ear={ name="Moonshade Earring", augments={'Rng.Acc.+4','TP Bonus +250',}},
  254.     right_ear="Ishvara Earring",
  255.     left_ring="Niqmaddu Ring",
  256.     right_ring="Ilabrat Ring",
  257.     back={ name="Ogma's cape", augments={'DEX+20','Accuracy+20 Attack+20','DEX+10','Weapon skill damage +10%',}},
  258. }
  259.    
  260.     sets.Dimidiation.Accuracy = {ammo="Ginsen",
  261.             head="Meghanada Visor +1",neck="Fotia Gorget",ear1="Moonshade Earring",ear1="Sherida Earring",
  262.             body="Adhemar Jacket +1",hands="Meghanada Gloves +1",ring1="Ilabrat Ring",ring2="Niqmaddu Ring",
  263.             back={ name="Ogma's cape", augments={'DEX+20','Accuracy+20 Attack+20','DEX+10','Weapon skill damage +10%',}},
  264.             waist="Fotia Belt",legs="Meghanada Chausses +2",feet="Herculean Boots"}
  265.    
  266.     sets.Dimidiation.R = set_combine(sets.Dimidiation.Normal,{neck="Ygnas's Resolve +1"})
  267.    
  268.    
  269.     -- WS Requiescat Set --  
  270.            
  271.     sets.Requiescat = {}
  272.     sets.Requiescat.index = {'Normal','Accuracy'}
  273.     Requiescat_index = 1
  274.  
  275.     sets.Requiescat.Normal = {ammo="Knobkierrie",
  276.             head="Whirlpool Mask",
  277.             neck="Fotia Gorget",
  278.             ear1="Moonshade Earring",
  279.             ear2="Sherida Earring",
  280.             body="Adhemar Jacket +1",
  281.             hands="Futhark Mitons +1",
  282.             ring1="Aquasoul Ring",
  283.             ring2="Niqmaddu Ring",
  284.             back="Atheling Mantle",
  285.             waist="Fotia Belt",
  286.             legs="Manibozho Brais",
  287.             feet={ name="Qaaxo Leggings", augments={'Attack+15','"Mag.Atk.Bns."+15','STR+12',}}}
  288.    
  289.     sets.Requiescat.Accuracy = {ammo="Honed Tathlum",
  290.             head="Whirlpool Mask",
  291.             neck="Fotia Gorget",
  292.             ear1="Moonshade Earring",
  293.             ear2="Sherida Earring",
  294.             body="Adhemar Jacket +1",
  295.             hands="Buremte Gloves",
  296.             ring1="Aquasoul Ring",
  297.             ring2="Niqmaddu Ring",
  298.             back="Atheling Mantle",
  299.             waist="Fotia Belt",
  300.             legs="Ighwa Trousers",
  301.             feet={ name="Qaaxo Leggings", augments={'Attack+15','"Mag.Atk.Bns."+15','STR+12',}}}
  302.                
  303.     -- WS Ruinator Set --
  304.  
  305.     sets.Ruinator = {}
  306.     sets.Ruinator.index = {'Normal','Accuracy'}
  307.     Ruinator_index = 1
  308.    
  309.     sets.Ruinator.Normal = {ammo="Knobkierrie",
  310.             head="Whirlpool Mask",
  311.             neck="Fotia Gorget",
  312.             ear1="Moonshade Earring",
  313.             ear2="Sherida Earring",
  314.             body="Adhemar Jacket +1",
  315.             hands="Futhark Mitons +1",
  316.             ring1="Rajas Ring",
  317.             ring2="Niqmaddu Ring",
  318.             back="Atheling Mantle",
  319.             waist="Fotia Belt",
  320.             legs="Manibozho Brais",
  321.             feet={ name="Qaaxo Leggings", augments={'Attack+15','"Mag.Atk.Bns."+15','STR+12',}}}
  322.            
  323.     sets.Ruinator.Accuracy = {ammo="Honed Tathlum",
  324.             head="Whirlpool Mask",
  325.             neck="Fotia Gorget",
  326.             ear1="Moonshade Earring",
  327.             ear2="Sherida Earring",
  328.             body="Adhemar Jacket +1",
  329.             hands="Buremte Gloves",
  330.             ring1="Rajas Ring",
  331.             ring2="Epona's Ring",
  332.             back="Atheling Mantle",
  333.             waist="Fotia Belt",
  334.             legs="Ighwa Trousers",
  335.             feet={ name="Qaaxo Leggings", augments={'Attack+15','"Mag.Atk.Bns."+15','STR+12',}}}
  336.            
  337.     -- Precast Spell sets --
  338.     sets.precast = {}
  339.     sets.precast.FC = {}
  340.  
  341.     sets.precast.FC = {ammo="Impatiens",
  342.         head="Carmine Mask +1",
  343.         body="Dread Jupon",
  344.         ear1="Loquacious Earring",
  345.         hands="Leyline Gloves",
  346.         neck="Moonbeam Necklace",
  347.         legs="Futhark Trousers +3",
  348.         ring1="Weatherspoon Ring +1",
  349.         ring2="Kishar Ring",
  350.         feet={ name="Taeon Boots", augments={'Accuracy+20 Attack+20','"Triple Atk."+2','Crit. hit damage +1%',}},}
  351.  
  352.     sets.precast.FC.Enhancing = set_combine(sets.precast.FC,{hands="Runeist Mitons +2",neck="Melic Torque",waist="Siegel Sash",legs="Futhark Trousers +3"})
  353.                
  354.     sets.precast.FC.Divine = set_combine(sets.precast.FC,{legs="Runeist Trousers +1"})
  355.    
  356.     sets.precast.FC.Refresh = set_combine(sets.precast.FC.Enhancing,{head="Erilaz Galea +1"})
  357.    
  358.     --Phalanx Utility--
  359.     sets.Utility = {}
  360.    
  361.     sets.Utility.Phalanx = set_combine(sets.precast.FC.Enhancing,{
  362.     head="Futhark Bandeau +3",
  363.     body={ name="Herculean Vest", augments={'"Mag.Atk.Bns."+17','Crit.hit rate+1','Phalanx +4','Mag. Acc.+16 "Mag.Atk.Bns."+16',}},
  364.     hands={ name="Taeon Gloves", augments={'Phalanx +3',}},
  365.     legs={ name="Taeon Tights", augments={'Phalanx +3',}},
  366.     feet={ name="Taeon Boots", augments={'Phalanx +3',}},})
  367.    
  368.     sets.Utility.Temper = set_combine(sets.precast.FC.Enhancing,{legs="Carmine Cuisses +1"})
  369.  
  370.     sets.Utility.Stoneskin = {head={ name="Carmine Mask +1", augments={'Accuracy+20','Mag. Acc.+12','"Fast Cast"+4',}},
  371.     body="Dread Jupon",
  372.     hands="Runeist's Mitons +2",
  373.     legs={ name="Futhark Trousers +3", augments={'Enhances "Inspire" effect',}},
  374.     feet={ name="Futhark Boots +3", augments={'Enhances "Rayke" effect',}},
  375.     neck="Moonbeam Necklace",
  376.     waist="Siegel Sash",
  377.     left_ear="Ethereal Earring",
  378.     right_ear="Sherida Earring",
  379.     left_ring="Weather. Ring +1",
  380.     right_ring="Stikini Ring",
  381.     back={ name="Evasionist's Cape", augments={'Enmity+4','"Embolden"+14','Damage taken-5%',}},
  382. }
  383.     sets.Utility.Blue = {
  384.     ammo="Pemphredo tathlum",
  385.     head="Aya. Zucchetto +2",
  386.     body="Ayanmo Corazza +2",
  387.     hands="Kurys Gloves",
  388.     legs="Aya. Cosciales +1",
  389.     feet="Aya. Gambieras +2",
  390.     neck="Sanctity Necklace",
  391.     waist="Luminary Sash",
  392.     left_ear="Lifestorm Earring",
  393.     right_ear="Psystorm Earring",
  394.     left_ring="Fenrir Ring +1",
  395.     right_ring="Kishar Ring",
  396.     back="Toro Cape",
  397. }
  398.  
  399.     sets.Utility.WC = {head={ name="Fu. Bandeau +3", augments={'Enhances "Battuta" effect',}},
  400.     body={ name="Futhark Coat +3", augments={'Enhances "Elemental Sforzo" effect',}},
  401.     hands={ name="Futhark Mitons +3", augments={'Enhances "Sleight of Sword" effect',}},
  402.     legs={ name="Futhark Trousers +3", augments={'Enhances "Inspire" effect',}},
  403.     feet={ name="Futhark Boots +3", augments={'Enhances "Rayke" effect',}},
  404.     neck="Tjukurrpa Medal",
  405.     waist="Luminary Sash",
  406.     left_ear="Lifestorm Earring",
  407.     right_ear="Upsurge Earring",
  408.     left_ring="Defending Ring",
  409.     right_ring="Globidonta Ring",
  410.     back="Iximulew Cape",
  411. }
  412.     --Copy and pasted set from Snprphnx_SCH example--      
  413.         --Obis--
  414.          sets.Obi = {}
  415.          sets.Obi.Fire = {waist='Karin Obi',ring2='Zodiac Ring'}
  416.          sets.Obi.Earth = {waist='Dorin Obi',ring2='Zodiac Ring'}
  417.          sets.Obi.Water = {waist='Suirin Obi',ring2='Zodiac Ring'}
  418.          sets.Obi.Wind = {waist='Furin Obi',ring2='Zodiac Ring'}
  419.          sets.Obi.Ice = {waist='Hyorin Obi',ring2='Zodiac Ring'}
  420.          sets.Obi.Thunder = {waist='Rairin Obi',ring2='Zodiac Ring'}
  421.          sets.Obi.Light = {waist='Korin Obi',ring2='Zodiac Ring'}
  422.          sets.Obi.Dark = {waist='Anrin Obi',ring2='Zodiac Ring'}
  423.  
  424.   -----Tengu
  425.     --sets.tengu = {ammo="Tengu-No-Hane"}  
  426.  
  427. end
  428.  
  429. --Precast Actions--
  430.  
  431. function precast(spell,act)
  432. --intentionally not calling the ~= operator
  433.     if spell.type == 'JobAbility' then
  434.         if sets.JA[spell.english] then
  435.             equip(sets.JA[spell.english])
  436.         end
  437.     end
  438.  
  439.     if spell.skill == 'Blue Magic' then
  440.         equip(sets.precast.FC)
  441.     end
  442.  
  443.     if spell.type == 'Dark' then
  444.         equip(sets.precast.FC)
  445.     end
  446.  
  447.     if spell.type == 'WeaponSkill' then
  448.         equip(sets.Dimidiation.Normal)
  449.     end
  450.  
  451. -- Ward and Effusion are being specifically indicated for the purpose of ensuring Rayke/Gambit sets actually work.
  452.  
  453.     if spell.type == 'Ward' then
  454.         equip(sets.JA[spell.english])
  455.     end
  456.    
  457.     if spell.type == 'Effusion' then
  458.         equip(sets.JA[spell.english])
  459.     end
  460.    
  461.     if spell.action_type == 'Enhancing' then
  462.         equip(sets.precast.FC.Enhancing)
  463.     end
  464.    
  465.     if spell.action_type == 'Divine' then  
  466.         equip(sets.precast.FC.Divine)
  467.     end
  468.    
  469.     if spell.action_type == 'Magic' then
  470.         equip(sets.precast.FC)
  471.     end
  472.    
  473.     if spell.action_type == 'Ninjutsu' then
  474.         equip(sets.precast.FC)
  475.     end
  476.    
  477.     if spell.english == "Refresh" then
  478.         equip(sets.precast.FC.Refresh)
  479.     end
  480.    
  481.     if spell.english == 'Lunge' or spell.english == 'Swipe' then
  482.         equip(sets.JA['Lunge'])
  483.         if spell.element == world.weather_element or spell_element == world.day_element then
  484.                         equip(sets.JA['Lunge'],sets.Obi[spell.element])
  485.         end
  486.     end
  487.  
  488. --Basic calls for WS and defined sets. You can get more advanced if you want sets based on TP levels. EX:
  489. --  if player.tp >= 2300 and (spell.english == "Resolution") then
  490.         --  equip(sets.Resolution.Max)
  491. --  end
  492.     --Where sets.Resolution.Max would be a WS set that makes use of Aeonic TP Bonus
  493.     -- allowing for maxing out the set like when in possesion of 3k TP  
  494.     --Can also do similar conditions with respect to HP and MP levels for other actions with player.hp or hpp, mp or mpp etc.
  495.    
  496.     if spell.english == "Resolution" then
  497.         equip(sets.Resolution[sets.Resolution.index[Resolution_index]])
  498.     end
  499.    
  500.     if spell.english == "Requiescat" then
  501.         equip(sets.Requiescat[sets.Requiescat.index[Requiescat_index]])
  502.     end
  503.    
  504.     if spell.english == "Ruinator" then
  505.         equip(sets.Ruinator[sets.Ruinator.index[Ruinator_index]])
  506.     end
  507.    
  508.     if spell.english == "Dimidiation" then
  509.         equip(sets.Dimidiation[sets.Dimidiation.index[Dimidiation_index]])
  510.     end
  511.    
  512.     if spell.english == "Herculean Slash" then
  513.         equip(sets.JA['Lunge'])
  514.     end
  515.    
  516.     if buffactive['Reive Mark'] and spell.type == 'WeaponSkill' then
  517.         equip(sets.Resolution.R)
  518.     end
  519.    
  520.     if buffactive['Reive Mark'] and spell.english == 'Dimidiation' then
  521.         equip(sets.Dimidiation.R)
  522.     end
  523.    
  524.     if buffactive['Reive Mark'] and spell.english == 'Resolution' then
  525.         equip(sets.Resolution.R)
  526.     end
  527.    
  528.     if buffactive['Tenebrae'] and spell.english == 'Lunge' then
  529.         equip(sets.JA.Lunge,{head="Pixie Hairpin +1"})
  530.     end
  531.    
  532.     if buffactive['Tenebrae'] and spell.english == 'Swipe' then
  533.         equip(sets.JA.Lunge,{head="Pixie Hairpin +1"})
  534.     end
  535.    
  536.     if buffactive['Lux'] and spell.english == 'Lunge' then
  537.         equip(sets.JA.Lunge,{ring2="Weatherspoon Ring +1"})
  538.     end
  539.    
  540.     if buffactive['Lux'] and spell.english == 'Swipe' then
  541.         equip(sets.JA.Lunge,{ring2="Weatherspoon Ring +1"})
  542.     end
  543.    
  544. end
  545.  
  546. --Midcast functions for spells--
  547.  
  548. function midcast(spell,act)
  549.  
  550.     if spell.type == 'WeaponSkill' then
  551.         equip(sets.Dimidiation.Normal)
  552.     end
  553.  
  554.     if spell.skill == 'Blue Magic' then
  555.         equip(sets.Utility.Blue)
  556.     end
  557.  
  558.     if spell.english == 'Phalanx' then
  559.         equip(sets.Utility.Phalanx)
  560.     end
  561.    
  562.     if spell.type == 'Dark' then
  563.         equip(sets.Utility.Blue)
  564.     end
  565.  
  566.     if spell.english == 'Wild Carrot' then
  567.         equip(sets.Utility.WC)
  568.     end
  569.    
  570.     if spell.english == 'Flash' then
  571.         equip(sets.precast.FC.Divine)
  572.     end
  573.  
  574.     if spell.english == 'Regen IV' then
  575.         equip(sets.precast.FC.Enhancing)
  576.     end
  577.    
  578.     if spell.english == "Refresh" then
  579.         equip(sets.precast.FC.Refresh)
  580.     end
  581.    
  582.     if spell.english == "Temper" then
  583.         equip(sets.Utility.Temper)
  584.     end
  585.    
  586.     if spell.english == "Stoneskin" then
  587.         equip(sets.Utility.Stoneskin)
  588.     end
  589.    
  590.     if spell.type == 'JobAbility' then
  591.         if sets.JA[spell.english] then
  592.             equip(sets.JA[spell.english])
  593.         end
  594.     end
  595.    
  596.     if spell.type == 'Ward' then
  597.         equip(sets.JA[spell.english])
  598.     end
  599.    
  600.     if spell.type == 'Effusion' then
  601.         equip(sets.JA[spell.english])
  602.     end
  603.  
  604.  
  605.     if spell.english == 'Lunge' or spell.english == 'Swipe' then
  606.         equip(sets.JA['Lunge'])
  607.         if spell.element == world.weather_element or spell_element == world.day_element then
  608.                         equip(sets.JA['Lunge'],sets.Obi[spell.element])
  609.         end
  610.     end
  611.    
  612.     if spell.english == "Resolution" then
  613.         equip(sets.Resolution[sets.Resolution.index[Resolution_index]])
  614.     end
  615.    
  616.     if spell.english == "Requiescat" then
  617.         equip(sets.Requiescat[sets.Requiescat.index[Requiescat_index]])
  618.     end
  619.    
  620.     if spell.english == "Ruinator" then
  621.         equip(sets.Ruinator[sets.Ruinator.index[Ruinator_index]])
  622.     end
  623.    
  624.     if spell.english == "Dimidiation" then
  625.         equip(sets.Dimidiation[sets.Dimidiation.index[Dimidiation_index]])
  626.     end
  627.    
  628.     if spell.english == "Herculean Slash" then
  629.         equip(sets.JA['Lunge'])
  630.     end
  631.    
  632.     if buffactive['Reive Mark'] and spell.type == 'WeaponSkill' then
  633.         equip(sets.Resolution.R)
  634.     end
  635.    
  636.     if buffactive['Reive Mark'] and spell.english == 'Dimidiation' then
  637.         equip(sets.Dimidiation.R)
  638.     end
  639.    
  640.     if buffactive['Reive Mark'] and spell.english == 'Resolution' then
  641.         equip(sets.Resolution.R)
  642.     end
  643.    
  644.     if buffactive['Tenebrae'] and spell.english == 'Lunge' then
  645.         equip(sets.JA.Lunge,{head="Pixie Hairpin +1"})
  646.     end
  647.    
  648.     if buffactive['Tenebrae'] and spell.english == 'Swipe' then
  649.         equip(sets.JA.Lunge,{head="Pixie Hairpin +1"})
  650.     end
  651.    
  652.     --if spell.name == 'Resolution' or spell.name == "Dimidiation" then
  653.        --     tengu_handler()
  654.      --   end
  655.    
  656. --Tengu no longer needed in the current sets, but keeping to demonstrate how to call a function to equip desired sets or slots.
  657.    
  658. end
  659.  
  660. --function tengu_handler()
  661.   --  if world.time >= 360 and world.time <= 1080 then -- 6~18
  662.   --      equip(sets.tengu)
  663.  --   end
  664. --end
  665. --Aftercast function, returns user to TP set after actions/spells--
  666.  
  667. function aftercast(spell,act)
  668.    
  669.     if player.status == 'Engaged' then
  670.         equip(sets.TP[sets.TP.index[TP_index]])
  671.     else
  672.         equip(sets.Idle[sets.Idle.index[Idle_index]])
  673.     end
  674.    
  675.     if player.status == 'Engaged' and buffactive['Battuta'] then
  676.         equip{feet="Futhark Boots +3",hands="Turms Mittens +1"}
  677.     end
  678.  
  679.     if player.status == 'Engaged' and buffactive['Reive Mark'] then
  680.                 equip{neck="Ygnas's Resolve +1"}
  681.        end
  682. end
  683.  
  684. function buff_change(new,old)
  685.     if buffactive['Battuta'] then
  686.         equip{feet="Futhark Boots +3",hands="Turms Mittens +1"}
  687.     end
  688.  
  689.     if buffactive['Embolden'] then
  690.         equip{back="Evasionist's Cape"}
  691.     end
  692.    
  693.     if player.status == 'Engaged' and buffactive['Reive Mark'] then
  694.                 equip{neck="Ygnas's Resolve +1"}
  695.         end
  696.    
  697. end
  698.  
  699. --Status Change function, switches user to TP set upon engaging--
  700.  
  701. function status_change(new,old)
  702.  
  703.     if player.status == 'Engaged' then
  704.         equip(sets.TP[sets.TP.index[TP_index]])
  705.     else
  706.         equip(sets.Idle[sets.Idle.index[Idle_index]])
  707.     end
  708.  
  709.     if buffactive['Battuta'] and new == 'Engaged' then
  710.         equip{feet="Futhark Boots +3",hands="Turms Mittens +1"}
  711.     end
  712.    
  713.     --if (buffactive['aftermath: lv.3'] and os.clock() - AM_start >= 160) then
  714.     --  send_command('@ input /echo >>> Aftermath ends in 20 secs')
  715.     --end
  716.    
  717.     if player.status == 'Engaged' and buffactive['Reive Mark'] then
  718.                 equip{neck="Ygnas's Resolve +1"}
  719.         end
  720. end
  721.  
  722.  
  723.  
  724.  
  725. --Toggle Command functions--
  726. --Gearswap direct command = //gs c toggle 'x' set
  727. --Macro line = /console gs c toggle x set
  728. --ex: console gs c toggle TP set
  729. -- Index is set to 1 or 'Reg', press button once to switch to 'Acc', and so on.
  730.  
  731. function self_command(command)
  732.     if command == 'toggle TP set' then 
  733.         if TP_index < 5 then
  734.         TP_index = TP_index +1
  735.         else TP_index = 1 end
  736.         send_command('@ input /echo >>> TP set changed to '..sets.TP.index[TP_index]..' ')
  737.         equip(sets.TP[sets.TP.index[TP_index]])
  738.    
  739.     elseif command == 'toggle DW set' then
  740.         if TP_index < 9 and TP_index > 5 then
  741.         TP_index = TP_index +1
  742.         else TP_index = 6 end
  743.         send_command('@ input /echo >>> DW set changed to '..sets.TP.index[TP_index]..' ')
  744.         equip(sets.TP[sets.TP.index[TP_index]])
  745.    
  746.     elseif command == 'toggle dTP set' then
  747.         if TP_index < 6 and TP_index > 1 then
  748.         TP_index = TP_index -1
  749.         else TP_index = 5 end
  750.         send_command('@ input /echo >>> DW set changed to '..sets.TP.index[TP_index]..' ')
  751.         equip(sets.TP[sets.TP.index[TP_index]])
  752.    
  753.    
  754.     elseif command == 'toggle Weaponskill sets' then
  755.         Resolution_index = Resolution_index +1
  756.         if Resolution_index > #sets.Resolution.index then Resolution_index = 1 end
  757.         Requiescat_index = Requiescat_index +1
  758.         if Requiescat_index > #sets.Requiescat.index then Requiescat_index = 1 end
  759.         Ruinator_index = Ruinator_index +1
  760.         if Ruinator_index > #sets.Ruinator.index then Ruinator_index = 1 end
  761.         Dimidiation_index = Dimidiation_index +1
  762.         if Dimidiation_index > #sets.Dimidiation.index then Dimidiation_index = 1 end
  763.         send_command('@ input /echo >>> All Weaponskill sets changed to '..sets.Dimidiation.index[Dimidiation_index]..' ')
  764.        
  765.     elseif command == 'toggle JP set' then
  766.         if TP_index < 10 and TP_index > 0 then
  767.         TP_index = 10 end
  768.         send_command('@ input /echo >>> TP set changed to '..sets.TP.index[TP_index]..' ')
  769.         equip(sets.TP[sets.TP.index[TP_index]])
  770.    
  771.     elseif command == 'toggle Multi set' then
  772.         if TP_index < 11 and TP_index > 0 then
  773.         TP_index = 11 end
  774.         send_command('@ input /echo >>> TP set change to '..sets.TP.index[TP_index]..' ')
  775.         equip(sets.TP[sets.TP.index[TP_index]])
  776.    
  777.     elseif command == 'toggle Magic set' then
  778.         if TP_index < 12 and TP_index > 0 then
  779.         TP_index = 12 end
  780.         send_command('@ input /echo >>> Defense set changed to '..sets.TP.index[TP_index]..' ')
  781.         equip(sets.TP[sets.TP.index[TP_index]])
  782.    
  783.     elseif command == 'toggle Idle set' then
  784.         Idle_index = Idle_index +1
  785.         if Idle_index > #sets.Idle.index then Idle_index = 1 end
  786.         send_command('@ input /echo >>> Idle set changed to '..sets.Idle.index[Idle_index]..' ')
  787.         equip(sets.Idle[sets.Idle.index[Idle_index]])
  788.  
  789.     end
  790.    
  791. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement