Advertisement
ErC8D

Geo_GS

Mar 5th, 2015
1,438
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 11.55 KB | None | 0 0
  1. function get_sets ()
  2.  
  3. --JA Sets --
  4.  
  5. sets.JA = {}
  6.  
  7. sets.JA['Bolster'] = {body="Bagua Tunic +3"}
  8. sets.JA['Life Cycle'] = {body="Geomancy Tunic +3",head="Azimuth Hood +1",back="Nantosuelta's Cape"}
  9.  
  10. sets.JA['Mending Halation'] = {head="Vanya Hood",
  11.     body="Bagua Tunic +3",
  12.     hands="Geo. Mitaines +2",
  13.     legs={ name="Bagua Pants +3", augments={'Enhances "Mending Halation" effect',}},
  14.     feet="Medium's Sabots",
  15.     neck="Eddy Necklace",
  16.     waist="Yamabuki-no-Obi",
  17.     left_ear="Psystorm Earring",
  18.     right_ear="Lifestorm Earring",
  19.     left_ring="Weatherspoon Ring +1",
  20.     right_ring="Globidonta Ring",
  21.     back="Pahtli Cape",}
  22.    
  23.    
  24. sets.JA['Radial Arcana'] ={head="Merlinic Hood",
  25.     body={ name="Bagua Tunic +3", augments={'Enhances "Bolster" effect',}},
  26.     hands="Geo. Mitaines +2",
  27.     legs="Merlinic Shalwar",
  28.     neck="Eddy Necklace",
  29.     waist="Yamabuki-no-Obi",
  30.     left_ear="Friomisi Earring",
  31.     right_ear="Hecate's Earring",
  32.     left_ring="Acumen Ring",
  33.     right_ring="Fenrir Ring +1",
  34.     back="Lifestream Cape",
  35.     feet="Bagua Sandals +3"}
  36.    
  37. sets.JA['Full Circle'] = {head="Azimuth Hood +1",hands="Bagua Mitaines +3"}
  38.  
  39. --TP
  40. sets.TP = {}
  41. sets.TP.index = {'Reg','Acc','CP'}
  42. TP_Index = 1
  43.  
  44. sets.TP.Reg = {main="Idris",
  45.     sub={ name="Genbu's Shield", augments={'"Cure" potency +4%','"Cure" spellcasting time -8%','Mag. Acc.+3',}},
  46.     range={ name="Dunna", augments={'MP+20','Mag. Acc.+10','"Fast Cast"+3',}},
  47.     head="Jhakri Coronal +1",
  48.     body={ name="Bagua Tunic +3", augments={'Enhances "Bolster" effect',}},
  49.     hands={ name="Bagua Mitaines +3", augments={'Enhances "Curative Recantation" effect',}},
  50.     legs="Bagua Pants +3",
  51.     feet={ name="Bagua Sandals +3", augments={'Enhances "Radial Arcana" effect',}},
  52.     neck="Clotharius Torque",
  53.     waist="Windbuffet Belt +1",
  54.     left_ear="Cessance Earring",
  55.     right_ear="Digni. Earring",
  56.     left_ring="Rajas Ring",
  57.     right_ring="K'ayres Ring",
  58.     back="Buquwik Cape"}
  59.    
  60. sets.TP.Acc = {main="Idris",
  61.     sub={ name="Genbu's Shield", augments={'"Cure" potency +4%','"Cure" spellcasting time -8%','Mag. Acc.+3',}},
  62.     range={ name="Dunna", augments={'MP+20','Mag. Acc.+10','"Fast Cast"+3',}},
  63.     head="Jhakri Coronal +1",
  64.     body={ name="Bagua Tunic +3", augments={'Enhances "Bolster" effect',}},
  65.     hands={ name="Bagua Mitaines +3", augments={'Enhances "Curative Recantation" effect',}},
  66.     legs="Bagua Pants +3",
  67.     feet={ name="Bagua Sandals +3", augments={'Enhances "Radial Arcana" effect',}},
  68.     neck="Clotharius Torque",
  69.     waist="Windbuffet Belt +1",
  70.     left_ear="Cessance Earring",
  71.     right_ear="Digni. Earring",
  72.     left_ring="Ramuh Ring +1",
  73.     right_ring="Ramuh Ring +1",
  74.     back="Buquwik Cape"}
  75.  
  76. sets.TP.CP = set_combine(sets.TP.Reg,{back="Mecistopins Mantle"})
  77.  
  78. sets.Idle = {}
  79. sets.Idle.index = {'Refresh','PDT','LuoR','CP'}
  80. Idle_Index = 1
  81.  
  82. sets.Idle.Refresh = {main="Bolelabunga",
  83.     ranged="Dunna",
  84.     head="Amalric Coif +1",
  85.     body="Jhakri Robe +2",
  86.     hands="Bagua Mitaines +3",
  87.     waist="Fucho-no-obi",
  88.     feet="Geomancy Sandals +3"}
  89.  
  90. sets.Idle.PDT = {main="Idris",
  91.     sub="Genbu's Shield",
  92.     ranged="Dunna",
  93.     head="Hagondes Hat +1",
  94.     ear1="Rimeice Earring",
  95.     body="Hagondes Coat +1",
  96.     hands="Geomancy Mitaines +2",
  97.     legs="Hagondes pants +1",
  98.     ring1="Defending Ring",
  99.     ring2="Patricius Ring",
  100.     back="Solemnity Cape",
  101.     waist="Isa Belt",
  102.     feet="Azimuth Gaiters +1",
  103.     neck="Twilight Torque"}
  104.  
  105. sets.Idle.LuoR = set_combine(sets.Idle.PDT,{head="Azimuth Hood +1",body="Geomancy Tunic +3",legs="Bagua Pants +3",feet="Bagua Sandals +3",back="Nantosuelta's Cape",neck="Bagua Charm +2"})
  106.  
  107. sets.Idle.CP = set_combine(sets.Idle.PDT,{back="Mecistopins Mantle"})              
  108.    
  109.  
  110. --Precast sets
  111. sets.FC = {}
  112.  
  113. sets.FC.S = {ammo="Impatiens",
  114.     head={ name="Amalric Coif +1", augments={'MP+80','Mag. Acc.+20','"Mag.Atk.Bns."+20',}},
  115.     body={ name="Merlinic Jubbah", augments={'"Fast Cast"+7','MND+8',}},
  116.     hands={ name="Bagua Mitaines +3", augments={'Enhances "Curative Recantation" effect',}},
  117.     legs="Geomancy Pants +2",
  118.     feet={ name="Merlinic Crackows", augments={'Mag. Acc.+13','"Fast Cast"+5','MND+7',}},
  119.     neck="Erra Pendant",
  120.     waist="Witful Belt",
  121.     left_ear="Regal Earring",
  122.     right_ear="Hirudinea Earring",
  123.     left_ring="Weather. Ring +1",
  124.     right_ring="Kishar Ring",
  125.     back="Perimede Cape",
  126. }
  127.  
  128. sets.FC.Enh = set_combine(sets.FC.S,{head="Umuthi Hat",waist="Siegel Sash"})
  129.  
  130.  
  131. --Midcast sets
  132. sets.MC = {}
  133.  
  134. sets.MC.Geo = {main="Idris",
  135.     sub="Ammurapi Shield",
  136.     range="Dunna",
  137.     head="Azimuth Hood +1",
  138.     body="Azimuth Coat +1",
  139.     hands="Geo. Mitaines +2",
  140.     legs={ name="Bagua Pants +3", augments={'Enhances "Mending Halation" effect',}},
  141.     feet="Azimuth Gaiters +1",
  142.     neck="Bagua Charm +2",
  143.     waist="Witful Belt",
  144.     left_ear="Gifted Earring",
  145.     right_ear="Psystorm Earring",
  146.     left_ring="Weather. Ring +1",
  147.     right_ring="Stikini Ring",
  148.     back="Lifestream Cape"}
  149.    
  150. sets.MC.Indi = set_combine(sets.MC.Geo,{feet="Azimuth Gaiters +1"})
  151.  
  152. sets.MC.Drk = {main={ name="Rubicundity", augments={'Mag. Acc.+10','"Mag.Atk.Bns."+10','Dark magic skill +10','"Conserve MP"+7',}},
  153.     sub={ name="Genbu's Shield", augments={'"Cure" potency +4%','"Cure" spellcasting time -8%','Mag. Acc.+3',}},
  154.     range={ name="Dunna", augments={'MP+20','Mag. Acc.+10','"Fast Cast"+3',}},
  155.     head="Pixie Hairpin +1",
  156.     body="Geomancy Tunic +3",
  157.     hands="Azimuth Gloves +1",
  158.     legs="Azimuth Tights +1",
  159.     feet={ name="Merlinic Crackows", augments={'"Drain" and "Aspir" potency +9','Mag. Acc.+12','"Mag.Atk.Bns."+15',}},
  160.     neck="Erra Pendant",
  161.     waist="Fucho-no-Obi",
  162.     left_ear="Regal Earring",
  163.     right_ear="Hirudinea Earring",
  164.     left_ring="Evanescence Ring",
  165.     right_ring="Archon Ring",
  166.     back={ name="Nantosuelta's Cape", augments={'Pet: "Regen"+10','Pet: "Regen"+5',}},
  167. }
  168.  
  169. sets.MC.Enf = {ear1="Regal Earring",
  170.     ear2="Barkarole Earring",
  171.     head="Merlinic Hood",
  172.     body="Amalric Doublet +1",
  173.     hands="Azimuth Gloves +1",
  174.     legs="Merlinic Shalwar",
  175.     ring1="Weatherspoon Ring +1",
  176.     ring2="Stikini Ring",
  177.     feet="Bagua Sandals +3",
  178.     ammo="Pemphredo Tathlum",
  179.     back="Lifestream Cape"}
  180.  
  181. sets.MC.Enh = {sub="Ammurapi Shield",
  182.     head="Umuthi Hat",
  183.     body="Telchine Chasuble",
  184.     legs="Telchine Braconi",
  185.     neck="Nodens Gorget",
  186.     ring2="Stikini Ring",
  187.     waist="Siegel Sash"}
  188.  
  189. sets.MC.Ele = {main="Idris",
  190.     sub="Ammurapi Shield",
  191.     ammo="Pemphredo Tathlum",
  192.     head="Amalric Coif +1",
  193.     body="Amalric Doublet +1",
  194.     hands="Amalric Gages +1",
  195.     legs="Amalric Slops +1",
  196.     feet="Amalric Nails +1",
  197.     neck="Bagua Charm +2",
  198.     waist="Refoccilation Stone",
  199.     left_ear="Regal Earring",
  200.     right_ear="Barkarole Earring",
  201.     left_ring="Vertigo Ring",
  202.     right_ring="Shiva Ring +1",
  203.     back="Toro Cape",}
  204.  
  205. sets.MC.Cur = {main="Tamaxchi",
  206.     sub="Genbu's Shield",
  207.     ammo="Pemphredo Tathlum",
  208.     head="Vanya Hood",
  209.     body="Bagua Tunic +3",
  210.     hands="Bagua Mitaines +3",
  211.     legs="Bagua Pants +2",
  212.     feet="Medium's Sabots",
  213.     neck="Reti Pendant",
  214.     waist="Witful Belt",
  215.     left_ear="Regal Earring",
  216.     right_ear="Lifestorm Earring",
  217.     left_ring="Stikini Ring",
  218.     right_ring="Globidonta Ring",
  219.     back="Pahtli Cape"}
  220.    
  221. --WS sets
  222.  
  223. sets.WS = {}
  224.  
  225. sets.WS['Hexa Strike'] = {head="Jhakri Coronal +1",
  226.     body="Jhakri Robe +2",
  227.     hands="Jhakri Cuffs +1",
  228.     neck="Fotia Gorget",
  229.     back="Rancorous Mantle",
  230.     ring1="Rajas Ring",
  231.     ring2="Ifrit Ring +1",
  232.     ear1="Moonshade Earring",
  233.     ear2="Cessance Earring",
  234.     waist="Fotia Belt",
  235.     legs="Bagua Pants +3",
  236.     feet="Jhakri Pigaches +1"}
  237.  
  238. sets.WS['Exudation'] = set_combine(sets.WS['Hexa Strike'],{back="Refraction Cape"})
  239.  
  240. sets.WS['Flash Nova'] = {head="Amalric Coif +1",
  241.     neck="Fotia Gorget",
  242.     ear1="Regal Earring",
  243.     ear2="Barkarole Earring",
  244.     body="Amalric Doublet +1",
  245.     hands="Amalric Gages +1",
  246.     ring1="Weatherspoon Ring",
  247.     ring2="Shiva Ring +1",
  248.     back="Toro Cape",
  249.     waist="Fotia Belt",
  250.     legs="Amalric Slops +1",
  251.     feet="Amalric Nails +1"}
  252.  
  253. sets.WS['Hexa Strike'].R = set_combine(sets.WS['Hexa Strike'],{neck="Ygnas's Resolve +1"})
  254.  
  255.  
  256. end
  257.  
  258. function precast(spell)
  259.   if spell.type == 'JobAbility' then
  260.         if sets.JA[spell.english] then
  261.             equip(sets.JA[spell.english])
  262.         end
  263.     end
  264.  
  265.   if spell.action_type == 'Magic' then
  266.         equip(sets.FC.S)
  267.     end
  268.    
  269.    if spell.action_type == 'Enhacing' then
  270.         equip(sets.FC.Enh)
  271.     end
  272.    
  273.     if spell.name == 'Hexa Strike' then
  274.         equip(sets.WS['Hexa Strike'])
  275.     end
  276.    
  277.     if spell.name == 'Exudation' then
  278.     equip(sets.WS['Exudation'])
  279.     end
  280.    
  281.     if spell.name == "Flash Nova" or spell.name == "Seraph Strike" or spell.name == "Shining Strike" then
  282.         equip(sets.WS['Flash Nova'])
  283.     end
  284.    
  285.     if buffactive['Reive Mark'] and spell.name == 'Hexa Strike' then
  286.         equip(sets.WS['Hexa Strike'].R)
  287.     end
  288.    
  289.     if buffactive['Reive Mark'] and spell.name == 'Exudation' then
  290.         equip(sets.WS['Exudation'],{neck="Ygnas's Resolve +1"})
  291.     end
  292.    
  293.     if buffactive['Reive Mark'] and spell.name == 'Flash Nova' or spell.name == "Seraph Strike" or spell.name == "Shining Strike" then
  294.         equip(sets.WS['Flash Nova'],{neck="Ygnas's Resolve +1"})
  295.     end
  296. end
  297.  
  298. function midcast(spell)
  299.    
  300.     if spell.english:sub(1,4) == 'Geo-' then
  301.         equip(sets.MC.Geo)
  302.     elseif spell.english:sub(1,5) == 'Indi-' then
  303.         equip(sets.MC.Indi)
  304.     end
  305.    
  306.    
  307.     if spell.skill== 'Healing Magic' then  
  308.          equip(sets.MC.Cur)
  309.     end
  310.    
  311.     if spell.skill == 'Elemental Magic' then
  312.        equip(sets.MC.Ele)
  313.     end
  314.    
  315.     if spell.skill == 'Dark Magic' then
  316.         equip(sets.MC.Drk)
  317.     end
  318.    
  319.     if spell.skill == 'Enfeebling Magic' then
  320.         equip(sets.MC.Enf)
  321.     end
  322.    
  323.     if spell.skill == 'Enhancing Magic' then
  324.         equip(sets.MC.Enh)
  325.     end
  326.    
  327.     if spell.name == 'Drain' or spell.name == 'Aspir' or spell.name == 'Aspir II' or spell.name == 'Aspir III' then
  328.         equip(sets.MC.Drk,{head="Bagua Galero +2"})
  329.     end
  330.    
  331.     if buffactive['Reive Mark'] and spell.name == 'Hexa Strike' then
  332.         equip(sets.WS['Hexa Strike'].R)
  333.     end
  334.    
  335.     if spell.name == "Flash Nova" or spell.name == "Seraph Strike" or spell.name == "Shining Strike" then
  336.         equip(sets.WS['Flash Nova'])
  337.     end
  338.    
  339.     if buffactive['Reive Mark'] and spell.name == 'Exudation' then
  340.         equip(sets.WS['Exudation'],{neck="Ygnas's Resolve +1"})
  341.     end
  342.    
  343.     if buffactive['Reive Mark'] and spell.name == 'Flash Nova' or spell.name == "Seraph Strike" or spell.name == "Shining Strike" then
  344.         equip(sets.WS['Flash Nova'],{neck="Ygnas's Resolve +1"})
  345.     end
  346. end
  347.  
  348. function pet_midcast(spell)
  349.     if spell.name == "Mending Halation" then   
  350.         equip(sets.JA['Mending Halation'])
  351.     end
  352.    
  353.     if spell.name == "Radial Arcana" then
  354.         equip(sets.JA['Radial Arcana'])
  355.     end
  356. end
  357.  
  358. function aftercast(spell)
  359.    if player.status == 'Engaged' then
  360.         equip(sets.TP[sets.TP.index[TP_Index]])
  361.     end
  362.    
  363.     if player.status == 'Idle' then
  364.         equip(sets.Idle[sets.Idle.index[Idle_Index]])
  365.     end
  366.    
  367.     if player.status == 'Engaged' and buffactive['Reive Mark'] then
  368.                 equip{neck="Ygnas's Resolve +1"}
  369.        end
  370.    
  371.     if midaction() or (spell and (spell.name == 'Mending Halation' or spell.name == 'Radial Arcana')) then
  372.     if sets.JA[spell.english] then
  373.             equip(sets.JA[spell.english])
  374.         end
  375.     end
  376.  end
  377.  
  378. function pet_aftercast(spell)
  379.     if spell.name == "Mending Halation" then   
  380.         equip(sets.JA['Mending Halation'])
  381.     end
  382.    
  383.     if spell.name == "Radial Arcana" then
  384.         equip(sets.JA['Radial Arcana'])
  385.     end
  386. end
  387.  
  388.  
  389.  function buff_change(new,old)
  390.  
  391.  if player.status == 'Engaged' and buffactive['Reive Mark'] then
  392.              equip{neck="Ygnas's Resolve +1"}
  393.         end
  394.  end
  395.  
  396.  
  397.  
  398.  function status_change(new,old)
  399.      if player.status == 'Engaged' then
  400.         equip(sets.TP[sets.TP.index[TP_Index]])
  401.     end
  402.    
  403.      if player.status == 'Idle' then
  404.         equip(sets.Idle[sets.Idle.index[Idle_Index]])
  405.    end
  406.    
  407.    if player.status == 'Engaged' and buffactive['Reive Mark'] then
  408.         equip{neck="Ygnas's Resolve +1"}
  409.    end
  410. end
  411.  
  412. function self_command(command)
  413.    
  414.     if command == 'toggle TP set' then 
  415.         TP_Index = TP_Index +1
  416.         if TP_Index > #sets.TP.index then TP_Index = 1 end
  417.         send_command('@ input /echo >>> TP set changed to: '..sets.TP.index[TP_Index]..' ')
  418.         equip(sets.TP[sets.TP.index[TP_Index]])
  419.    
  420.     elseif command == 'toggle Idle set' then
  421.         Idle_Index = Idle_Index +1
  422.         if Idle_Index > #sets.Idle.index then Idle_Index = 1 end
  423.         send_command('@ input /echo >>> Idle set changed to '..sets.Idle.index[Idle_Index]..' ')
  424.         equip(sets.Idle[sets.Idle.index[Idle_Index]])
  425.         end
  426. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement