Guest User

DRK_LUA

a guest
Jul 4th, 2017
2,414
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. include('organizer-lib')
  2. include('Include/AugmentedGear.lua') -- my personal augs file, remove
  3.  
  4. --[[
  5. Things I need to add/ could use help adding are....
  6.  
  7. 1.) line ~1280 : how to get holy waters to equip rings
  8. 2.) Add a rule that when doomed - will auto matically use holy waters w/ rings
  9. 3.) a Toggle to lock weapon/sub for when I was to use sword/shield/gax manuallly for armor break etc
  10. 4.) rule that when arcane circle is up, locks founder's body for tp and ws gear w/ added stp for difference
  11. 5.) a check to make sure sams roll is lucky or not, so only use .STP sets when lucky rolls and not-unlucky
  12. 6.) figure out weapon customized PDT sets, hybrid works currently, PDT does not and idk why.
  13. 7.) when using a ws, will let me know self sc options through chat
  14.  
  15. ]]--
  16.  
  17.  
  18. function get_sets()
  19.    
  20. -- 3 Levels Of Accuracy Sets For TP/WS/Hybrid/Stun. First Set Is LowACC.
  21. --Add More ACC Sets If Needed Then Create Your New ACC Below.
  22.     AccIndex = 1
  23.     AccArray = {"LowACC","MidACC","HighACC"}
  24.     MaccIndex = 1
  25.     MaccArray = {"Potency","Resist","Duration"}
  26. --Can Delete Any Weapons/Sets That You Don't Need Or Replace/Add The New Weapons That You Want To Use. --
  27.     WeaponIndex = 1
  28.     WeaponArray = {"Ragnarok","Caladbolg","Apocalypse","Anguta"} --,"Liberator"
  29.     IdleIndex = 1
  30.     IdleArray = {"Movement","Regen","Refresh","Regain"} -- Default Idle Set Is Movement --
  31.     DarkSealIndex = 0 --Index for Dark Seal headpiece Potency(0) vs Duration(1)
  32.     --add_to_chat(158,'DarkSeal Potency: [On]')
  33.     Armor = 'None'
  34.     Twilight = 'None'
  35.     Samurai_Roll = 'ON' -- Set Default SAM Roll ON or OFF Here --
  36.     target_distance = 5 -- Set Default Distance Here --
  37.     select_default_macro_book() -- Change Default Macro Book At The End --
  38.  
  39.     Ankou={}
  40.     Ankou.WSDSTR=   { name="Ankou's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','Weapon skill damage +10%',}}
  41.     Ankou.DA=       { name="Ankou's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Dbl.Atk."+10',}}
  42.     Ankou.WSDVIT=   { name="Ankou's Mantle", augments={'VIT+20','Accuracy+20 Attack+20','VIT+10','Weapon skill damage +10%',}}
  43.     Ankou.ACC=      { name="Ankou's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}}
  44.     Ankou.FC=       { name="Ankou's Mantle", augments={'INT+20','Mag. Acc+20 /Mag. Dmg.+20','"Fast Cast"+10',}}
  45.     Ankou.STP=      { name="Ankou's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Store TP"+10',}}
  46.     Ankou.INTDA=    { name="Ankou's Mantle", augments={'INT+20','Accuracy+20 Attack+20','INT+10','"Dbl.Atk."+10',}}
  47.     Ankou.MEVA=     { name="Ankou's Mantle", augments={'INT+20','Mag. Acc+20 /Mag. Dmg.+20','"Fast Cast"+10',}}
  48.    
  49.     sets.Idle = {          
  50.         ammo="Ginsen",
  51.         neck="Sanctity necklace",
  52.         ammo="Staunch Tathlum",
  53.         ear1="Genmei Earring",
  54.         ear2="Infused Earring",
  55.         body="Lugra cloak +1",
  56.         hands="Sulevia's Gauntlets +2",
  57.         left_ring="Defending Ring",
  58.         right_ring="Moonbeam Ring",
  59.         back="Moonbeam Cape",
  60.         waist="Flume belt",
  61.         legs="Carmine cuisses +1",
  62.         feet=ValoFeet.REFRESH}
  63.  
  64.         -- Regen Set --
  65.     sets.Idle.Regen = set_combine(sets.Idle,{ring2="Chirich Ring"})
  66.     sets.Idle.Regen.Liberator = set_combine(sets.Idle.Regen,{main="Liberator"})
  67.     sets.Idle.Regen.Ragnarok = set_combine(sets.Idle.Regen,{main="Ragnarok"})
  68.     sets.Idle.Regen.Caladbolg = set_combine(sets.Idle.Regen,{main="Caladbolg"})
  69.     sets.Idle.Regen.Apocalypse = set_combine(sets.Idle.Regen,{main="Apocalypse"})
  70.     sets.Idle.Regen.Anguta = set_combine(sets.Idle.Regen,{main="Anguta"})
  71.  
  72.         -- Movement Sets --
  73.     sets.Idle.Movement = set_combine(sets.Idle,{legs="Carmine Cuisses +1"})
  74.     sets.Idle.Movement.Liberator = set_combine(sets.Idle.Movement,{main="Liberator"})
  75.     sets.Idle.Movement.Ragnarok = set_combine(sets.Idle.Movement,{main="Ragnarok"})
  76.     sets.Idle.Movement.Caladbolg = set_combine(sets.Idle.Movement,{main="Caladbolg"})
  77.     sets.Idle.Movement.Apocalypse = set_combine(sets.Idle.Movement,{main="Apocalypse"})
  78.     sets.Idle.Movement.Anguta = set_combine(sets.Idle.Movement,{main="Anguta"})
  79.  
  80.         -- Refresh Sets --
  81.     sets.Idle.Refresh = set_combine(sets.Idle,{neck="Vim Torque +1",body="Lugra Cloak +1"})
  82.     sets.Idle.Refresh.Liberator = set_combine(sets.Idle.Refresh,{main="Liberator"})
  83.     sets.Idle.Refresh.Ragnarok = set_combine(sets.Idle.Refresh,{main="Ragnarok"})
  84.     sets.Idle.Refresh.Caladbolg = set_combine(sets.Idle.Refresh,{main="Caladbolg"})
  85.     sets.Idle.Refresh.Apocalypse = set_combine(sets.Idle.Refresh,{main="Apocalypse"})
  86.     sets.Idle.Refresh.Anguta = set_combine(sets.Idle.Refresh,{main="Anguta"})
  87.  
  88.         -- Regain Sets --
  89.     sets.Idle.Regain = set_combine(sets.Idle,{head="Ratri Sallet",
  90.         ammo="Ginsen",
  91.         hands=ValoHands.STP,
  92.         legs=OdysLegs.STP,
  93.         feet=ValoFeet.STPACC,
  94.         neck="Ainia Collar",
  95.         body=ValoBody.STP,
  96.         waist="Kentarch Belt +1",
  97.         right_ear="Telos Earring",
  98.         left_ear="Enervating Earring",
  99.         left_ring="Petrov Ring",
  100.         right_ring="Chirich Ring",
  101.         back=Ankou.STP})
  102.     sets.Idle.Regain.Liberator = set_combine(sets.Idle.Regain,{main="Liberator"})
  103.     sets.Idle.Regain.Ragnarok = set_combine(sets.Idle.Regain,{main="Ragnarok"})
  104.     sets.Idle.Regain.Caladbolg = set_combine(sets.Idle.Regain,{main="Caladbolg"})
  105.     sets.Idle.Regain.Apocalypse = set_combine(sets.Idle.Regain,{main="Apocalypse"})
  106.     sets.Idle.Regain.Anguta = set_combine(sets.Idle.Regain,{main="Anguta"})
  107.  
  108.     sets.Twilight = set_combine(sets.Idle.Regen,{head="Twilight Helm",body="Twilight Mail"})
  109.  
  110.     -- JA Sets --
  111.     sets.JA = {}
  112.     sets.JA['Diabolic Eye'] = {hands="Fallen's finger gauntlets +1"}
  113.     sets.JA['Arcane Circle'] = {feet="Ignominy Sollerets +3"}
  114.     sets.JA['Nether Void'] = {legs="Heath. Flanchard +1"}
  115.     sets.JA['Souleater'] = {head="Ignominy Burgonet +3"}
  116.     sets.JA['Weapon Bash'] = {hands="Ignominy Gauntlets +3"}
  117.     sets.JA['Last Resort'] = {back="Ankou's Mantle",feet="Fallen's Sollerets"}
  118.     sets.JA['Dark Seal'] = {head="Fallen's Burgeonet +1"}
  119.     sets.JA['Blood Weapon'] = {body="Fallen's Cuirass +1"}
  120.  
  121.     sets.Precast = {}
  122.     -- Fastcast Set --
  123.     sets.Precast.FastCast = {
  124.         ammo="Sapience Orb",
  125.         head="Carmine Mask +1", --14
  126.         neck="Voltsurge Torque", --4
  127.         ear1="Loquacious Earring", --2
  128.         ear2="Eabani Earring",
  129.         body=OdysBody.FC, --10
  130.         hands="Leyline Gloves", --8
  131.         ring1="Kishar Ring", --4
  132.         ring2="Weatherspoon Ring", --5
  133.         back=Ankou.FC, --10
  134.         waist="Tempus Fugit",
  135.         legs=OdysLegs.FC, --8
  136.         feet=OdysFeet.FC,} -- 11
  137.         --72 FC
  138.  
  139.     -- Precast Dark Magic --
  140.     sets.Precast['Dark Magic'] = set_combine(sets.Precast.FastCast,{})
  141.  
  142.     -- Midcast Base Set --
  143.     sets.Midcast = {}
  144.    
  145.     -- Magic Haste Set --
  146.     sets.Midcast.Haste = set_combine(sets.PDT,{})
  147.  
  148.     -- Dark Magic Set --
  149.     sets.Midcast['Dark Magic'] = {
  150.         ammo="Pemphredo Tathlum",
  151.         head="Ignominy Burgonet +3",
  152.         body="Carmine Scale Mail",
  153.         hands="Fallen's finger gauntlets +1",
  154.         legs="Eschite cuisses",
  155.         feet="Ignominy Sollerets +3",
  156.         neck="Erra Pendant",
  157.         waist="Casso sash",
  158.         left_ear="Hermetic Earring",
  159.         right_ear="Dark Earring",
  160.         left_ring="Stikini Ring",
  161.         right_ring="Evanescence Ring",
  162.         back="Niht Mantle",}
  163.    
  164.     -- Absorb Set --
  165.     sets.Midcast.Absorb = {
  166.         ammo="Pemphredo Tathlum",
  167.         head="Ignominy Burgonet +3",
  168.         body="Carmine Scale Mail",
  169.         legs="Eschite cuisses",
  170.         feet="Ratri Sollerets",
  171.         neck="Erra Pendant",
  172.         waist="Casso Sash",
  173.         left_ear="Hermetic Earring",
  174.         right_ear="Dark Earring",
  175.         right_ring="Kishar Ring",
  176.         hands="Pavor Gauntlets",
  177.         left_ring="Evanescence Ring",
  178.         back="Chuparrosa Mantle",}
  179.     sets.Midcast.Absorb.Resist = set_combine(sets.Midcast.Absorb,{
  180.         head="Carmine Mask +1",
  181.         hands="Leyline Gloves",
  182.         left_ring="Regal Ring",
  183.         right_ring="Stikini Ring",
  184.         waist="Eschan Stone",
  185.         feet="Ignominy Sollerets +3",
  186.         back=Ankou.FC})
  187.     sets.Midcast.Absorb.Duration = set_combine(sets.Midcast.Absorb,{hands="Onyx Gadlings", legs="Black Cuisses"})
  188.            
  189.     -- Absorb-TP Set --
  190.     sets.Midcast['Absorb-TP'] = set_combine(sets.Midcast.Absorb,{hands="Heathen's Gauntlets +1"})
  191.  
  192.     -- Stun Sets --
  193.     sets.Midcast.Stun = set_combine(sets.Midcast['Dark Magic'],{
  194.         head="Carmine Mask +1",
  195.         hands="Leyline Gloves",
  196.         left_ring="Regal Ring",
  197.         waist="Eschan Stone",
  198.         legs="Eschite cuisses",
  199.         feet="Ignominy Sollerets +3",
  200.         back=Ankou.FC})
  201.     sets.Midcast.Stun.Resist = set_combine(sets.Midcast.Stun,{})
  202.     sets.Midcast.Stun.Duration = set_combine(sets.Midcast.Stun,{left_ring="Stikini Ring",feet="Ratri Sollerets",})
  203.  
  204.     -- Endark Set --
  205.     sets.Midcast['Endark II'] = {
  206.         head="Ignominy Burgonet +3",
  207.         neck="Erra Pendant",
  208.         ear2="Dark Earring",
  209.         ear1="Loquacious Earring",
  210.         body="Carmine Scale Mail",
  211.         hands="Fallen's finger gauntlets +1",
  212.         left_ring="Stikini Ring",
  213.         right_ring="Evanescence Ring",
  214.         waist="Casso sash",
  215.         legs="Eschite cuisses",
  216.         feet="Ratri Sollerets",
  217.         back="Niht Mantle",}
  218.  
  219.     -- Enfeebling Magic Set --
  220.     sets.Midcast['Enfeebling Magic'] = {
  221.         ammo="Pemphredo Tathlum",
  222.         head="Carmine Mask +1",
  223.         body="Ignominy Cuirass +3",
  224.         hands="Leyline Gloves",
  225.         legs="Eschite cuisses",
  226.         feet="Ignominy Sollerets +3",
  227.         neck="Sanctity necklace",
  228.         waist="Eschan Stone",
  229.         left_ear="Loquacious Earring",
  230.         right_ear="Hermetic Earring",
  231.         left_ring="Stikini Ring",
  232.         right_ring="Stikini Ring",
  233.         back=Ankou.FC,}
  234.  
  235.     -- Elemental Magic Set --
  236.     sets.Midcast['Elemental Magic'] = {
  237.         ammo="Pemphredo Tathlum",
  238.         head="Carmine Mask +1",
  239.         body="Carmine Scale Mail",
  240.         hands="Leyline gloves",
  241.         legs="Eschite Cuisses",
  242.         feet="Ignominy Sollerets +3",
  243.         neck="Sanctity necklace",
  244.         waist="Eschan Stone",
  245.         left_ear="Hecate's Earring",
  246.         right_ear="Friomisi Earring",
  247.         left_ring="Stikini Ring",
  248.         right_ring="Shiva Ring",
  249.         back=Ankou.FC,}
  250.  
  251.     -- Dread Spikes Set --
  252.     sets.Midcast['Dread Spikes'] = {
  253.         ammo="Egoist's Tathlum",
  254.         head="Ratri Sallet",
  255.         body="Heathen's Cuirass +1",
  256.         hands="Ratri Gadlings",
  257.         legs="Ratri Cuisses",
  258.         feet="Ratri Sollerets",
  259.         neck="Sanctity necklace",
  260.         waist="Eschan Stone",
  261.         left_ear="Odnowa Earring",
  262.         right_ear="Odnowa Earring +1",
  263.         left_ring="Meridian Ring",
  264.         right_ring="Moonbeam Ring",
  265.         back="Moonbeam Cape",}
  266.        
  267.     sets.Midcast.Drain = {
  268.         ammo="Pemphredo Tathlum",
  269.         neck="Erra Pendant",
  270.         left_ear="Hermetic Earring", -- higer macc earring if you got
  271.         right_ear="Hirudinea Earring",
  272.         head="Pixie Hairpin +1",
  273.         body="Carmine Scale Mail",
  274.         hands="Fallen's finger gauntlets +1",
  275.         left_ring="Archon Ring", -- use archon if you have it
  276.         right_ring="Evanescence Ring",
  277.         back="Niht Mantle",
  278.         waist="Austerity belt +1",
  279.         legs="Eschite cuisses",
  280.         feet="Ratri Sollerets"}
  281.  
  282.     sets.Midcast.Aspir = set_combine(sets.Midcast.Drain, {})
  283.    
  284.     sets.MAXDrain = {main="Misanthropy",}
  285.    
  286.         -- TP Base Set --
  287.     sets.TP = {}
  288. -------------------------------------------------------------------------------------------------------------------------------------------------------------------
  289. ---------------------------------------------------------------- LIBERATOR SETS -----------------------------------------------------------------------------------
  290. -------------------------------------------------------------------------------------------------------------------------------------------------------------------
  291.    
  292.     -- Liberator(AM3 Down) TP Sets --
  293.     sets.TP.Liberator = {main="Liberator",}
  294.     sets.TP.Liberator.MidACC = set_combine(sets.TP.Liberator,{})
  295.     sets.TP.Liberator.HighACC = set_combine(sets.TP.Liberator.MidACC,{})
  296.  
  297.     -- Liberator(AM3 Up) TP Sets --
  298.     sets.TP.Liberator.AM3 = set_combine(sets.TP.Liberator,{})
  299.     sets.TP.Liberator.MidACC.AM3 = set_combine(sets.TP.Liberator.AM3,{})
  300.     sets.TP.Liberator.HighACC.AM3 = set_combine(sets.TP.Liberator.MidACC.AM3,{})
  301.  
  302.     -- Liberator(AM3 Down: High Haste) TP Sets --
  303.     sets.TP.Liberator.HighHaste = set_combine(sets.TP.Liberator,{})
  304.     sets.TP.Liberator.MidACC.HighHaste = set_combine(sets.TP.Liberator.HighHaste,{})
  305.     sets.TP.Liberator.HighACC.HighHaste = set_combine(sets.TP.Liberator.MidACC.HighHaste,{})
  306.  
  307.     -- Liberator(AM3 Up: High Haste) TP Sets --
  308.     sets.TP.Liberator.AM3_HighHaste = set_combine(sets.TP.Liberator.AM3,{})
  309.     sets.TP.Liberator.MidACC.AM3_HighHaste = set_combine(sets.TP.Liberator.AM3_HighHaste,{})
  310.     sets.TP.Liberator.HighACC.AM3_HighHaste = set_combine(sets.TP.Liberator.MidACC.AM3_HighHaste,{})
  311.  
  312.     -- Liberator(AM3 Down: SAM Roll) TP Sets --
  313.     sets.TP.Liberator.STP = set_combine(sets.TP.Liberator,{})
  314.     sets.TP.Liberator.MidACC.STP = set_combine(sets.TP.Liberator.MidACC,{})
  315.     sets.TP.Liberator.HighACC.STP = set_combine(sets.TP.Liberator.HighACC,{})
  316.  
  317.     -- Liberator(AM3 Up: SAM Roll) TP Sets --
  318.     sets.TP.Liberator.AM3.STP = set_combine(sets.TP.Liberator.AM3,{})
  319.     sets.TP.Liberator.MidACC.AM3.STP = set_combine(sets.TP.Liberator.MidACC.AM3,{})
  320.     sets.TP.Liberator.HighACC.AM3.STP = set_combine(sets.TP.Liberator.HighACC.AM3,{})
  321.  
  322.     -- Liberator(AM3 Down: High Haste + SAM Roll) TP Sets --
  323.     sets.TP.Liberator.HighHaste.STP = set_combine(sets.TP.Liberator.HighHaste,{})
  324.     sets.TP.Liberator.MidACC.HighHaste.STP = set_combine(sets.TP.Liberator.MidACC.HighHaste,{})
  325.     sets.TP.Liberator.HighACC.HighHaste.STP = set_combine(sets.TP.Liberator.HighACC.HighHaste,{})
  326.  
  327.     -- Liberator(AM3 Up: High Haste + SAM Roll) TP Sets --
  328.     sets.TP.Liberator.AM3_HighHaste.STP = set_combine(sets.TP.Liberator.HighHaste,{})
  329.     sets.TP.Liberator.MidACC.AM3_HighHaste.STP = set_combine(sets.TP.Liberator.MidACC.HighHaste,{})
  330.     sets.TP.Liberator.HighACC.AM3_HighHaste.STP = set_combine(sets.TP.Liberator.HighACC.HighHaste,{})
  331.  
  332.     ---------------------------------- /sam sets --------------------------------------
  333.    
  334.     -- Liberator(AM3 Down) /SAM TP Sets --
  335.     sets.TP.Liberator.SAM = {main="Liberator",}
  336.     sets.TP.Liberator.SAM.MidACC = set_combine(sets.TP.Liberator.SAM,{})
  337.     sets.TP.Liberator.SAM.HighACC = set_combine(sets.TP.Liberator.SAM.MidACC,{})
  338.  
  339.     -- Liberator(AM3 Up) /SAM TP Sets --
  340.     sets.TP.Liberator.SAM.AM3 = set_combine(sets.TP.Liberator.SAM,{})
  341.     sets.TP.Liberator.SAM.MidACC.AM3 = set_combine(sets.TP.Liberator.SAM.AM3,{})
  342.     sets.TP.Liberator.SAM.HighACC.AM3 = set_combine(sets.TP.Liberator.SAM.MidACC.AM3,{})
  343.  
  344.     -- Liberator(AM3 Down: High Haste) /SAM TP Sets --
  345.     sets.TP.Liberator.SAM.HighHaste = set_combine(sets.TP.Liberator.SAM,{waist="Windbuffet Belt +1",})
  346.     sets.TP.Liberator.SAM.MidACC.HighHaste = set_combine(sets.TP.Liberator.SAM.HighHaste,{})
  347.     sets.TP.Liberator.SAM.HighACC.HighHaste = set_combine(sets.TP.Liberator.SAM.MidACC.HighHaste,{})
  348.  
  349.     -- Liberator(AM3 Up: High Haste) /SAM TP Sets --
  350.     sets.TP.Liberator.SAM.AM3_HighHaste = set_combine(sets.TP.Liberator.SAM.AM3,{waist="Windbuffet Belt +1",})
  351.     sets.TP.Liberator.SAM.MidACC.AM3_HighHaste = set_combine(sets.TP.Liberator.SAM.AM3_HighHaste,{})
  352.     sets.TP.Liberator.SAM.HighACC.AM3_HighHaste = set_combine(sets.TP.Liberator.SAM.MidACC.AM3_HighHaste,{})
  353.  
  354.     -- Liberator(AM3 Down: SAM Roll) /SAM TP Sets --
  355.     sets.TP.Liberator.SAM.STP = set_combine(sets.TP.Liberator.SAM,{})
  356.     sets.TP.Liberator.SAM.MidACC.STP = set_combine(sets.TP.Liberator.SAM.MidACC,{})
  357.     sets.TP.Liberator.SAM.HighACC.STP = set_combine(sets.TP.Liberator.SAM.HighACC,{})
  358.  
  359.     -- Liberator(AM3 Up: SAM Roll) /SAM TP Sets --
  360.     sets.TP.Liberator.SAM.AM3.STP = set_combine(sets.TP.Liberator.SAM.AM3,{})
  361.     sets.TP.Liberator.SAM.MidACC.AM3.STP = set_combine(sets.TP.Liberator.SAM.MidACC.AM3,{})
  362.     sets.TP.Liberator.SAM.HighACC.AM3.STP = set_combine(sets.TP.Liberator.SAM.HighACC.AM3,{})
  363.  
  364.     -- Liberator(AM3 Down: High Haste + SAM Roll) /SAM TP Sets --
  365.     sets.TP.Liberator.SAM.HighHaste.STP = set_combine(sets.TP.Liberator.SAM.HighHaste,{})
  366.     sets.TP.Liberator.SAM.MidACC.HighHaste.STP = set_combine(sets.TP.Liberator.SAM.MidACC.HighHaste,{})
  367.     sets.TP.Liberator.SAM.HighACC.HighHaste.STP = set_combine(sets.TP.Liberator.SAM.HighACC.HighHaste,{})
  368.  
  369.     -- Liberator(AM3 Up: High Haste + SAM Roll) /SAM TP Sets --
  370.     sets.TP.Liberator.SAM.AM3_HighHaste.STP = set_combine(sets.TP.Liberator.SAM.HighHaste,{})
  371.     sets.TP.Liberator.SAM.MidACC.AM3_HighHaste.STP = set_combine(sets.TP.Liberator.SAM.MidACC.HighHaste,{})
  372.     sets.TP.Liberator.SAM.HighACC.AM3_HighHaste.STP = set_combine(sets.TP.Liberator.SAM.HighACC.HighHaste,{})
  373.  
  374. -------------------------------------------------------------------------------------------------------------------------------------------------------------------
  375. ---------------------------------------------------------------- RAGNAROK SETS -----------------------------------------------------------------------------------
  376. -------------------------------------------------------------------------------------------------------------------------------------------------------------------
  377.  
  378.     -- Ragnarok TP Sets --
  379.     sets.TP.Ragnarok = {main="Ragnarok",
  380.         ammo="Ginsen",
  381.         head="Argosy Celata +1",
  382.         hands="Argosy Mufflers +1",
  383.         legs=OdysLegs.STP,
  384.         feet=ValoFeet.STPACC,
  385.         neck="Ainia Collar",
  386.         body=ValoBody.DA,
  387.         waist="Ioskeha belt",
  388.         right_ear="Telos Earring",
  389.         left_ear="Brutal earring",
  390.         left_ring="Petrov Ring",
  391.         right_ring="Niqmaddu Ring",
  392.         back=Ankou.ACC}
  393.        
  394.     sets.TP.Ragnarok.MidACC = set_combine(sets.TP.Ragnarok,{
  395.         hands="Emicho Gauntlets",
  396.         left_ear="Cessance earring",
  397.         left_ring="Chirich Ring",})
  398.        
  399.     sets.TP.Ragnarok.HighACC = set_combine(sets.TP.Ragnarok.MidACC,{
  400.         head="Ignominy Burgonet +3",
  401.         neck="Lissome Necklace",
  402.         body="Ignominy Cuirass +3",
  403.         hands="Ignominy Gauntlets +3",
  404.         legs="Ignominy Flanchard +3",
  405.         left_ring="Regal Ring",})
  406.        
  407.     -- Ragnarok(High Haste) TP Sets --
  408.     sets.TP.Ragnarok.HighHaste = set_combine(sets.TP.Ragnarok,{waist="Windbuffet Belt +1",})
  409.     sets.TP.Ragnarok.MidACC.HighHaste = set_combine(sets.TP.Ragnarok.HighHaste,{waist="Windbuffet Belt +1",})
  410.     sets.TP.Ragnarok.HighACC.HighHaste = set_combine(sets.TP.Ragnarok.MidACC.HighHaste,{ammo="Seething Bomblet",waist="Kentarch Belt +1",})
  411.    
  412.     -- Ragnarok(SAM Roll) TP Sets --
  413.     sets.TP.Ragnarok.STP = set_combine(sets.TP.Ragnarok,{left_ear="Cessance earring",})
  414.     sets.TP.Ragnarok.MidACC.STP = set_combine(sets.TP.Ragnarok.STP,{})
  415.     sets.TP.Ragnarok.HighACC.STP = set_combine(sets.TP.Ragnarok.MidACC.STP,{
  416.         ammo="Seething Bomblet",
  417.         neck="Lissome Necklace",
  418.         ear1="Mache Earring",
  419.         feet="Flamma Gambieras +1"})
  420.                            
  421.     -- Ragnarok(High Haste + SAM Roll) TP Sets --
  422.     sets.TP.Ragnarok.HighHaste.STP = set_combine(sets.TP.Ragnarok.STP,{waist="Windbuffet Belt +1",})
  423.     sets.TP.Ragnarok.MidACC.HighHaste.STP = set_combine(sets.TP.Ragnarok.MidACC.STP,{waist="Windbuffet Belt +1",})
  424.     sets.TP.Ragnarok.HighACC.HighHaste.STP = set_combine(sets.TP.Ragnarok.HighACC.STP,{waist="Windbuffet Belt +1",})
  425.    
  426.     ------------------- /sam sets -----------------------------
  427.    
  428.     -- Ragnarok /SAM TP Sets --
  429.     sets.TP.Ragnarok.SAM = {main="Ragnarok",
  430.         ammo="Ginsen",
  431.         head="Argosy Celata +1",
  432.         hands="Argosy Mufflers +1",
  433.         legs=OdysLegs.STP,
  434.         feet=ValoFeet.STPACC,
  435.         neck="Ainia Collar",
  436.         body=ValoBody.DA,
  437.         waist="Ioskeha belt",
  438.         right_ear="Telos Earring",
  439.         left_ear="Brutal earring",
  440.         left_ring="Petrov Ring",
  441.         right_ring="Niqmaddu Ring",
  442.         back=Ankou.ACC}
  443.    
  444.     sets.TP.Ragnarok.SAM.MidACC = set_combine(sets.TP.Ragnarok.SAM,{
  445.         hands="Emicho Gauntlets",
  446.         left_ear="Cessance earring",
  447.         left_ring="Chirich Ring",})
  448.    
  449.     sets.TP.Ragnarok.SAM.HighACC = set_combine(sets.TP.Ragnarok.SAM.MidACC,{
  450.         head="Ignominy Burgonet +3",
  451.         neck="Lissome Necklace",
  452.         body="Ignominy Cuirass +3",
  453.         hands="Ignominy Gauntlets +3",
  454.         legs="Ignominy Flanchard +3",
  455.         left_ring="Regal Ring",})
  456.  
  457.     -- Ragnarok(High Haste) /SAM TP Sets --
  458.     sets.TP.Ragnarok.SAM.HighHaste = set_combine(sets.TP.Ragnarok.SAM,{waist="Windbuffet Belt +1",})
  459.     sets.TP.Ragnarok.SAM.MidACC.HighHaste = set_combine(sets.TP.Ragnarok.SAM.MidACC,{waist="Windbuffet Belt +1",})
  460.     sets.TP.Ragnarok.SAM.HighACC.HighHaste = set_combine(sets.TP.Ragnarok.SAM.HighACC,{ammo="Seething Bomblet",waist="Kentarch Belt +1",})
  461.  
  462.     -- Ragnarok(SAM Roll) /SAM TP Sets --
  463.     sets.TP.Ragnarok.SAM.STP = set_combine(sets.TP.Ragnarok.SAM,{left_ear="Cessance earring",})
  464.     sets.TP.Ragnarok.SAM.MidACC.STP = set_combine(sets.TP.Ragnarok.SAM.MidACC,{})
  465.     sets.TP.Ragnarok.SAM.HighACC.STP = set_combine(sets.TP.Ragnarok.SAM.HighACC,{
  466.         ammo="Seething Bomblet",
  467.         neck="Lissome Necklace",
  468.         ear1="Mache Earring",
  469.         feet="Flamma Gambieras +1"})
  470.  
  471.     -- Ragnarok(High Haste + SAM Roll) /SAM TP Sets --
  472.     sets.TP.Ragnarok.SAM.HighHaste.STP = set_combine(sets.TP.Ragnarok.SAM.STP,{waist="Windbuffet Belt +1",})
  473.     sets.TP.Ragnarok.SAM.MidACC.HighHaste.STP = set_combine(sets.TP.Ragnarok.SAM.MidACC.STP,{waist="Windbuffet Belt +1",})
  474.     sets.TP.Ragnarok.SAM.HighACC.HighHaste.STP = set_combine(sets.TP.Ragnarok.SAM.HighACC.STP,{waist="Windbuffet Belt +1",})
  475.    
  476. -------------------------------------------------------------------------------------------------------------------------------------------------------------------
  477. ---------------------------------------------------------------- APOCALYPSE SETS -----------------------------------------------------------------------------------
  478. -------------------------------------------------------------------------------------------------------------------------------------------------------------------
  479.  
  480.     -- Apocalypse(AM Down) TP Sets --
  481.     sets.TP.Apocalypse = {main="Apocalypse",
  482.         ammo="Ginsen",
  483.         head="Flamma Zucchetto +1",
  484.         hands="Sulevia's Gauntlets +2",
  485.         legs="Ignominy Flanchard +3",
  486.         feet="Flamma Gambieras +1",
  487.         neck="Lissome Necklace",
  488.         body=ValoBody.DA,
  489.         waist="Ioskeha belt",
  490.         right_ear="Telos Earring",
  491.         left_ear="Cessance earring",
  492.         left_ring="Petrov Ring",
  493.         right_ring="Niqmaddu Ring",
  494.         back=Ankou.ACC}
  495.        
  496.     sets.TP.Apocalypse.MidACC = set_combine(sets.TP.Apocalypse,{
  497.         ammo="Seething Bomblet",
  498.         hands="Emicho Gauntlets",})
  499.        
  500.     sets.TP.Apocalypse.HighACC = set_combine(sets.TP.Apocalypse.MidACC,{
  501.         ammo="Ginsen",
  502.         head="Ignominy Burgonet +3",
  503.         body="Ignominy Cuirass +3",
  504.         legs="Ignominy Flanchard +3",
  505.         left_ring="Regal Ring",
  506.         feet=ValoFeet.STPACC,})
  507.  
  508.     -- Apocalypse(AM Down: High Haste) TP Sets --
  509.     sets.TP.Apocalypse.HighHaste = set_combine(sets.TP.Apocalypse,{waist="Windbuffet Belt +1",})
  510.     sets.TP.Apocalypse.MidACC.HighHaste = set_combine(sets.TP.Apocalypse.MidACC,{waist="Windbuffet Belt +1",})
  511.     sets.TP.Apocalypse.HighACC.HighHaste = set_combine(sets.TP.Apocalypse.HighACC,{waist="Windbuffet Belt +1",})
  512.    
  513.     -- Apocalypse(AM Down: SAM Roll) TP Sets --
  514.     sets.TP.Apocalypse.STP = set_combine(sets.TP.Apocalypse,{neck="Ganesha's Mala",left_ear="Brutal earring",})
  515.     sets.TP.Apocalypse.MidACC.STP = set_combine(sets.TP.Apocalypse.MidACC,{neck="Ganesha's Mala",left_ring="Regal Ring",})
  516.     sets.TP.Apocalypse.HighACC.STP = set_combine(sets.TP.Apocalypse.HighACC,{ammo="Seething Bomblet",})
  517.    
  518.     -- Apocalypse(AM Down: High Haste + SAM Roll) TP Sets --
  519.     sets.TP.Apocalypse.HighHaste.STP = set_combine(sets.TP.Apocalypse.STP,{waist="Windbuffet Belt +1",})
  520.     sets.TP.Apocalypse.MidACC.HighHaste.STP = set_combine(sets.TP.Apocalypse.MidACC.STP,{waist="Windbuffet Belt +1",})
  521.     sets.TP.Apocalypse.HighACC.HighHaste.STP = set_combine(sets.TP.Apocalypse.HighACC.STP,{waist="Windbuffet Belt +1",})
  522.    
  523.     -- Apocalypse(AM Up) TP Sets --
  524.     sets.TP.Apocalypse.AM = set_combine(sets.TP.Apocalypse,{waist="Windbuffet Belt +1",})
  525.     sets.TP.Apocalypse.MidACC.AM = set_combine(sets.TP.Apocalypse.MidACC,{waist="Windbuffet Belt +1",})
  526.     sets.TP.Apocalypse.HighACC.AM = set_combine(sets.TP.Apocalypse.HighACC,{waist="Windbuffet Belt +1",})
  527.  
  528.     -- Apocalypse(AM Up: High Haste) TP Sets --
  529.     sets.TP.Apocalypse.AM.HighHaste = set_combine(sets.TP.Apocalypse.AM,{waist="Windbuffet Belt +1",})
  530.     sets.TP.Apocalypse.MidACC.AM.HighHaste = set_combine(sets.TP.Apocalypse.MidACC.AM,{waist="Windbuffet Belt +1",})
  531.     sets.TP.Apocalypse.HighACC.AM.HighHaste = set_combine(sets.TP.Apocalypse.HighACC.AM,{waist="Windbuffet Belt +1",})
  532.  
  533.     -- Apocalypse(AM Up: SAM Roll) TP Sets --
  534.     sets.TP.Apocalypse.AM.STP = set_combine(sets.TP.Apocalypse.AM,{neck="Ganesha's Mala",left_ear="Brutal earring",})
  535.     sets.TP.Apocalypse.MidACC.AM.STP = set_combine(sets.TP.Apocalypse.MidACC.AM,{neck="Ganesha's Mala",left_ring="Regal Ring",})
  536.     sets.TP.Apocalypse.HighACC.AM.STP = set_combine(sets.TP.Apocalypse.HighACC.AM,{ammo="Seething Bomblet",})
  537.  
  538.     -- Apocalypse(AM Up: High Haste + SAM Roll) TP Sets --
  539.     sets.TP.Apocalypse.AM.HighHaste.STP = set_combine(sets.TP.Apocalypse.AM.STP,{waist="Windbuffet Belt +1",})
  540.     sets.TP.Apocalypse.MidACC.AM.HighHaste.STP = set_combine(sets.TP.Apocalypse.MidACC.AM.STP,{waist="Windbuffet Belt +1",})
  541.     sets.TP.Apocalypse.HighACC.AM.HighHaste.STP = set_combine(sets.TP.Apocalypse.HighACC.AM.STP,{waist="Windbuffet Belt +1",})
  542.  
  543.     ------------ /sam sets --------------------------------
  544.    
  545.     -- Apocalypse(AM Down) /SAM TP Sets --
  546.     sets.TP.Apocalypse.SAM = {main="Apocalypse",
  547.         ammo="Ginsen",
  548.         head="Flamma Zucchetto +1",
  549.         hands="Sulevia's Gauntlets +2",
  550.         legs="Ignominy Flanchard +3",
  551.         feet="Flamma Gambieras +1",
  552.         neck="Lissome Necklace",
  553.         body=ValoBody.DA,
  554.         waist="Ioskeha belt",
  555.         right_ear="Telos Earring",
  556.         left_ear="Cessance earring",
  557.         left_ring="Petrov Ring",
  558.         right_ring="Niqmaddu Ring",
  559.         back=Ankou.ACC}
  560.        
  561.     sets.TP.Apocalypse.SAM.MidACC = set_combine(sets.TP.Apocalypse.SAM,{
  562.         ammo="Seething Bomblet",
  563.         hands="Emicho Gauntlets",})
  564.        
  565.     sets.TP.Apocalypse.SAM.HighACC = set_combine(sets.TP.Apocalypse.SAM.MidACC,{
  566.         ammo="Ginsen",
  567.         head="Ignominy Burgonet +3",
  568.         body="Ignominy Cuirass +3",
  569.         legs="Ignominy Flanchard +3",
  570.         left_ring="Regal Ring",
  571.         feet=ValoFeet.STPACC,})
  572.  
  573.     -- Apocalypse(AM Down: High Haste) /SAM TP Sets --
  574.     sets.TP.Apocalypse.SAM.HighHaste = set_combine(sets.TP.Apocalypse.SAM,{waist="Windbuffet Belt +1",})
  575.     sets.TP.Apocalypse.SAM.MidACC.HighHaste = set_combine(sets.TP.Apocalypse.SAM.MidACC,{waist="Windbuffet Belt +1",})
  576.     sets.TP.Apocalypse.SAM.HighACC.HighHaste = set_combine(sets.TP.Apocalypse.SAM.HighACC,{waist="Windbuffet Belt +1",})
  577.  
  578.     -- Apocalypse(AM Down: SAM Roll) /SAM TP Sets --
  579.     sets.TP.Apocalypse.SAM.STP = set_combine(sets.TP.Apocalypse.SAM,{neck="Ganesha's Mala",left_ear="Brutal earring",})
  580.     sets.TP.Apocalypse.SAM.MidACC.STP = set_combine(sets.TP.Apocalypse.SAM.MidACC,{neck="Ganesha's Mala",left_ring="Regal Ring",})
  581.     sets.TP.Apocalypse.SAM.HighACC.STP = set_combine(sets.TP.Apocalypse.SAM.HighACC,{ammo="Seething Bomblet",})
  582.    
  583.     -- Apocalypse(AM Down: High Haste + SAM Roll) /SAM TP Sets --
  584.     sets.TP.Apocalypse.SAM.HighHaste.STP = set_combine(sets.TP.Apocalypse.SAM.STP,{waist="Windbuffet Belt +1",})
  585.     sets.TP.Apocalypse.SAM.MidACC.HighHaste.STP = set_combine(sets.TP.Apocalypse.SAM.MidACC.STP,{waist="Windbuffet Belt +1",})
  586.     sets.TP.Apocalypse.SAM.HighACC.HighHaste.STP = set_combine(sets.TP.Apocalypse.SAM.HighACC.STP,{waist="Windbuffet Belt +1",})
  587.    
  588.     -- Apocalypse(AM Up) /SAM TP Sets --
  589.     sets.TP.Apocalypse.SAM.AM = set_combine(sets.TP.Apocalypse.SAM,{})
  590.     sets.TP.Apocalypse.SAM.MidACC.AM = set_combine(sets.TP.Apocalypse.SAM.AM,{})
  591.     sets.TP.Apocalypse.SAM.HighACC.AM = set_combine(sets.TP.Apocalypse.SAM.MidACC.AM,{})
  592.  
  593.     -- Apocalypse(AM Up: High Haste) /SAM TP Sets --
  594.     sets.TP.Apocalypse.SAM.AM.HighHaste = set_combine(sets.TP.Apocalypse.SAM.AM,{waist="Windbuffet Belt +1",})
  595.     sets.TP.Apocalypse.SAM.MidACC.AM.HighHaste = set_combine(sets.TP.Apocalypse.SAM.MidACC.AM,{waist="Windbuffet Belt +1",})
  596.     sets.TP.Apocalypse.SAM.HighACC.AM.HighHaste = set_combine(sets.TP.Apocalypse.SAM.HighACC.AM,{waist="Windbuffet Belt +1",})
  597.  
  598.     -- Apocalypse(AM Up: SAM Roll) /SAM TP Sets --
  599.     sets.TP.Apocalypse.SAM.AM.STP = set_combine(sets.TP.Apocalypse.SAM.AM,{neck="Ganesha's Mala",left_ear="Brutal earring",})
  600.     sets.TP.Apocalypse.SAM.MidACC.AM.STP = set_combine(sets.TP.Apocalypse.SAM.MidACC.AM,{neck="Ganesha's Mala",left_ring="Regal Ring",})
  601.     sets.TP.Apocalypse.SAM.HighACC.AM.STP = set_combine(sets.TP.Apocalypse.SAM.HighACC.AM,{ammo="Seething Bomblet",})
  602.  
  603.     -- Apocalypse(AM Up: High Haste + SAM Roll) /SAM TP Sets --
  604.     sets.TP.Apocalypse.SAM.AM.HighHaste.STP = set_combine(sets.TP.Apocalypse.SAM.AM.STP,{waist="Windbuffet Belt +1",})
  605.     sets.TP.Apocalypse.SAM.MidACC.AM.HighHaste.STP = set_combine(sets.TP.Apocalypse.SAM.MidACC.AM.STP,{waist="Windbuffet Belt +1",})
  606.     sets.TP.Apocalypse.SAM.HighACC.AM.HighHaste.STP = set_combine(sets.TP.Apocalypse.SAM.HighACC.AM.STP,{waist="Windbuffet Belt +1",})
  607.  
  608. -------------------------------------------------------------------------------------------------------------------------------------------------------------------
  609. ---------------------------------------------------------------- CALADBOLG SETS -----------------------------------------------------------------------------------
  610. -------------------------------------------------------------------------------------------------------------------------------------------------------------------
  611.    
  612.     -- Caladbolg(AM Down) TP Sets --
  613.     sets.TP.Caladbolg = {main="Caladbolg",
  614.         ammo="Ginsen",
  615.         head="Argosy Celata +1",
  616.         hands="Argosy Mufflers +1",
  617.         legs=OdysLegs.STP,
  618.         feet=ValoFeet.STPACC,
  619.         neck="Ainia Collar",
  620.         body=ValoBody.DA,
  621.         waist="Ioskeha belt",
  622.         right_ear="Telos Earring",
  623.         left_ear="Brutal earring",
  624.         left_ring="Petrov Ring",
  625.         right_ring="Niqmaddu Ring",
  626.         back=Ankou.ACC}
  627.        
  628.     sets.TP.Caladbolg.MidACC = set_combine(sets.TP.Caladbolg,{
  629.         hands="Emicho Gauntlets",
  630.         left_ear="Cessance earring",
  631.         left_ring="Chirich Ring",})
  632.        
  633.     sets.TP.Caladbolg.HighACC = set_combine(sets.TP.Caladbolg.MidACC,{
  634.         head="Ignominy Burgonet +3",
  635.         neck="Lissome Necklace",
  636.         body="Ignominy Cuirass +3",
  637.         hands="Ignominy Gauntlets +3",
  638.         legs="Ignominy Flanchard +3",
  639.         left_ring="Regal Ring",})
  640.        
  641.     -- Caladbolg(AM Down: High Haste) TP Sets --
  642.     sets.TP.Caladbolg.HighHaste = set_combine(sets.TP.Caladbolg,{waist="Windbuffet Belt +1",})
  643.     sets.TP.Caladbolg.MidACC.HighHaste = set_combine(sets.TP.Caladbolg.MidACC,{waist="Windbuffet Belt +1",})
  644.     sets.TP.Caladbolg.HighACC.HighHaste = set_combine(sets.TP.Caladbolg.HighACC,{ammo="Seething Bomblet",waist="Kentarch Belt +1",})
  645.  
  646.     -- Caladbolg(AM Down: SAM Roll) TP Sets --
  647.     sets.TP.Caladbolg.STP = set_combine(sets.TP.Caladbolg,{left_ear="Cessance earring",})
  648.     sets.TP.Caladbolg.MidACC.STP = set_combine(sets.TP.Caladbolg.MidACC,{})
  649.     sets.TP.Caladbolg.HighACC.STP = set_combine(sets.TP.Caladbolg.HighACC,{
  650.         ammo="Seething Bomblet",
  651.         neck="Lissome Necklace",
  652.         ear1="Mache Earring",
  653.         feet="Flamma Gambieras +1"})
  654.  
  655.     -- Caladbolg(AM Down: High Haste + SAM Roll) TP Sets --
  656.     sets.TP.Caladbolg.HighHaste.STP = set_combine(sets.TP.Caladbolg.STP,{waist="Windbuffet Belt +1",})
  657.     sets.TP.Caladbolg.MidACC.HighHaste.STP = set_combine(sets.TP.Caladbolg.MidACC.STP,{waist="Windbuffet Belt +1",})
  658.     sets.TP.Caladbolg.HighACC.HighHaste.STP = set_combine(sets.TP.Caladbolg.HighACC.STP,{waist="Windbuffet Belt +1",})
  659.    
  660.     -- Caladbolg(AM Up) TP Sets --
  661.     sets.TP.Caladbolg.AM = set_combine(sets.TP.Caladbolg,{
  662.         ammo="Ginsen",
  663.         head="Argosy Celata +1",
  664.         hands="Argosy Mufflers +1",
  665.         legs=OdysLegs.STP,
  666.         feet=ValoFeet.STPACC,
  667.         neck="Ainia Collar",
  668.         body=ValoBody.DA,
  669.         waist="Ioskeha belt",
  670.         right_ear="Telos Earring",
  671.         left_ear="Brutal earring",
  672.         left_ring="Petrov Ring",
  673.         right_ring="Niqmaddu Ring",
  674.         back=Ankou.ACC})
  675.        
  676.     sets.TP.Caladbolg.MidACC.AM = set_combine(sets.TP.Caladbolg.AM,{
  677.         hands="Emicho Gauntlets",
  678.         left_ear="Cessance earring",
  679.         left_ring="Chirich Ring",})
  680.        
  681.     sets.TP.Caladbolg.HighACC.AM = set_combine(sets.TP.Caladbolg.MidACC.AM,{
  682.         head="Ignominy Burgonet +3",
  683.         neck="Lissome Necklace",
  684.         body="Ignominy Cuirass +3",
  685.         hands="Ignominy Gauntlets +3",
  686.         legs="Ignominy Flanchard +3",
  687.         left_ring="Regal Ring",})
  688.  
  689.     -- Caladbolg(AM Up: High Haste) TP Sets --
  690.     sets.TP.Caladbolg.AM.HighHaste = set_combine(sets.TP.Caladbolg.AM,{waist="Windbuffet Belt +1",})
  691.     sets.TP.Caladbolg.MidACC.AM.HighHaste = set_combine(sets.TP.Caladbolg.AM.MidACC,{waist="Windbuffet Belt +1",})
  692.     sets.TP.Caladbolg.HighACC.AM.HighHaste = set_combine(sets.TP.Caladbolg.HighACC.AM,{ammo="Seething Bomblet",waist="Kentarch Belt +1",})
  693.  
  694.     -- Caladbolg(AM Up: SAM Roll) TP Sets --
  695.     sets.TP.Caladbolg.AM.STP = set_combine(sets.TP.Caladbolg.STP,{left_ear="Cessance earring",})
  696.     sets.TP.Caladbolg.MidACC.AM.STP = set_combine(sets.TP.Caladbolg.MidACC.AM,{})
  697.     sets.TP.Caladbolg.HighACC.AM.STP = set_combine(sets.TP.Caladbolg.HighACC.AM,{
  698.         ammo="Seething Bomblet",
  699.         neck="Lissome Necklace",
  700.         ear1="Mache Earring",
  701.         feet="Flamma Gambieras +1"})
  702.  
  703.     -- Caladbolg(AM Up: High Haste + SAM Roll) TP Sets --
  704.     sets.TP.Caladbolg.AM.HighHaste.STP = set_combine(sets.TP.Caladbolg.HighHaste.STP,{waist="Windbuffet Belt +1",})
  705.     sets.TP.Caladbolg.MidACC.AM.HighHaste.STP = set_combine(sets.TP.Caladbolg.MidACC.STP,{waist="Windbuffet Belt +1",})
  706.     sets.TP.Caladbolg.HighACC.AM.HighHaste.STP = set_combine(sets.TP.Caladbolg.HighACC.STP,{waist="Windbuffet Belt +1",})
  707.    
  708.    
  709.     -- Caladbolg /SAM TP Sets -------------------------------------------------------------------
  710.  
  711.     -- Caladbolg(AM Down) TP Sets --  /SAM
  712.     --[ACC: 1150 STP: 61]--
  713.     sets.TP.Caladbolg.SAM = {main="Caladbolg",
  714.         ammo="Ginsen",
  715.         head="Argosy Celata +1",
  716.         hands="Argosy Mufflers +1",
  717.         legs=OdysLegs.STP,
  718.         feet=ValoFeet.STPACC,
  719.         neck="Ainia Collar",
  720.         body=ValoBody.DA,
  721.         waist="Ioskeha belt",
  722.         right_ear="Telos Earring",
  723.         left_ear="Brutal earring",
  724.         left_ring="Petrov Ring",
  725.         right_ring="Niqmaddu Ring",
  726.         back=Ankou.ACC}
  727.        
  728.     --[ACC: 1184 STP: 63]--
  729.     sets.TP.Caladbolg.SAM.MidACC = set_combine(sets.TP.Caladbolg.SAM,{
  730.         hands="Emicho Gauntlets",
  731.         left_ear="Cessance earring",
  732.         left_ring="Chirich Ring",})
  733.        
  734.     --[ACC: 1264 STP: 27]--    
  735.     sets.TP.Caladbolg.SAM.HighACC = set_combine(sets.TP.Caladbolg.SAM.MidACC,{
  736.         head="Ignominy Burgonet +3",
  737.         neck="Lissome Necklace",
  738.         body="Ignominy Cuirass +3",
  739.         hands="Ignominy Gauntlets +3",
  740.         legs="Ignominy Flanchard +3",
  741.         left_ring="Regal Ring",})
  742.  
  743.     -- Caladbolg(AM Down: High Haste) TP Sets -- /SAM
  744.     sets.TP.Caladbolg.SAM.HighHaste = set_combine(sets.TP.Caladbolg.SAM,{waist="Windbuffet Belt +1",})
  745.     sets.TP.Caladbolg.SAM.MidACC.HighHaste = set_combine(sets.TP.Caladbolg.SAM.MidACC,{waist="Windbuffet Belt +1",})
  746.     sets.TP.Caladbolg.SAM.HighACC.HighHaste = set_combine(sets.TP.Caladbolg.SAM.HighACC,{ammo="Seething Bomblet",waist="Kentarch Belt +1",})
  747.    
  748.     -- Caladbolg(AM Down: SAM Roll) TP Sets -- /SAM
  749.     sets.TP.Caladbolg.SAM.STP = set_combine(sets.TP.Caladbolg.SAM,{left_ear="Cessance earring",})
  750.     sets.TP.Caladbolg.SAM.MidACC.STP = set_combine(sets.TP.Caladbolg.SAM.MidACC,{})
  751.     sets.TP.Caladbolg.SAM.HighACC.STP = set_combine(sets.TP.Caladbolg.SAM.HighACC,{
  752.         ammo="Seething Bomblet",
  753.         neck="Lissome Necklace",
  754.         ear1="Mache Earring",
  755.         feet="Flamma Gambieras +1"})
  756.  
  757.     -- Caladbolg(AM Down: High Haste + SAM Roll) TP Sets -- /SAM
  758.     sets.TP.Caladbolg.SAM.HighHaste.STP = set_combine(sets.TP.Caladbolg.SAM.STP,{waist="Windbuffet Belt +1",})
  759.     sets.TP.Caladbolg.SAM.MidACC.HighHaste.STP = set_combine(sets.TP.Caladbolg.SAM.MidACC.STP,{waist="Windbuffet Belt +1",})
  760.     sets.TP.Caladbolg.SAM.HighACC.HighHaste.STP = set_combine(sets.TP.Caladbolg.SAM.HighACC.STP,{waist="Windbuffet Belt +1",})
  761.    
  762.     -- Caladbolg(AM Up) TP Sets -- /SAM
  763.     --[ACC: 1150 STP: 61]--
  764.     sets.TP.Caladbolg.SAM.AM = set_combine(sets.TP.Caladbolg.SAM,{
  765.         ammo="Ginsen",
  766.         head="Argosy Celata +1",
  767.         hands="Argosy Mufflers +1",
  768.         legs=OdysLegs.STP,
  769.         feet=ValoFeet.STPACC,
  770.         neck="Ainia Collar",
  771.         body=ValoBody.DA,
  772.         waist="Ioskeha belt",
  773.         right_ear="Telos Earring",
  774.         left_ear="Brutal earring",
  775.         left_ring="Petrov Ring",
  776.         right_ring="Niqmaddu Ring",
  777.         back=Ankou.ACC})
  778.        
  779.     --[ACC: 1184 STP: 63]--    
  780.     sets.TP.Caladbolg.SAM.MidACC.AM = set_combine(sets.TP.Caladbolg.SAM.AM,{
  781.         hands="Emicho Gauntlets",
  782.         left_ear="Cessance earring",
  783.         left_ring="Chirich Ring",})
  784.    
  785.     --[ACC: 1264 STP: 27]--    
  786.     sets.TP.Caladbolg.SAM.HighACC.AM = set_combine(sets.TP.Caladbolg.SAM.MidACC.AM,{
  787.         head="Ignominy Burgonet +3",
  788.         neck="Lissome Necklace",
  789.         body="Ignominy Cuirass +3",
  790.         hands="Ignominy Gauntlets +3",
  791.         legs="Ignominy Flanchard +3",
  792.         left_ring="Regal Ring",})
  793.    
  794.     -- Caladbolg(AM Up: High Haste) TP Sets -- /SAM
  795.     sets.TP.Caladbolg.SAM.AM.HighHaste = set_combine(sets.TP.Caladbolg.SAM.AM,{waist="Windbuffet Belt +1",})
  796.     sets.TP.Caladbolg.SAM.MidACC.AM.HighHaste = set_combine(sets.TP.Caladbolg.SAM.MidACC.AM,{waist="Windbuffet Belt +1",})
  797.     sets.TP.Caladbolg.SAM.HighACC.AM.HighHaste = set_combine(sets.TP.Caladbolg.SAM.HighACC.AM,{ammo="Seething Bomblet",waist="Kentarch Belt +1",})
  798.  
  799.     -- Caladbolg(AM Up: SAM Roll) TP Sets -- /SAM
  800.     sets.TP.Caladbolg.SAM.AM.STP = set_combine(sets.TP.Caladbolg.SAM.STP,{left_ear="Cessance earring",})
  801.     sets.TP.Caladbolg.SAM.MidACC.AM.STP = set_combine(sets.TP.Caladbolg.SAM.MidACC.AM,{})
  802.     sets.TP.Caladbolg.SAM.HighACC.AM.STP = set_combine(sets.TP.Caladbolg.SAM.HighACC.AM,{
  803.         ammo="Seething Bomblet",
  804.         neck="Lissome Necklace",
  805.         ear1="Mache Earring",
  806.         feet="Flamma Gambieras +1"})
  807.  
  808.     -- Caladbolg(AM Up: High Haste + SAM Roll) TP Sets --
  809.     sets.TP.Caladbolg.SAM.AM.HighHaste.STP = set_combine(sets.TP.Caladbolg.SAM.HighHaste.STP,{waist="Windbuffet Belt +1",})
  810.     sets.TP.Caladbolg.SAM.MidACC.AM.HighHaste.STP = set_combine(sets.TP.Caladbolg.SAM.MidACC.STP,{waist="Windbuffet Belt +1",})
  811.     sets.TP.Caladbolg.SAM.HighACC.AM.HighHaste.STP = set_combine(sets.TP.Caladbolg.SAM.HighACC.STP,{waist="Windbuffet Belt +1",})
  812.  
  813. -------------------------------------------------------------------------------------------------------------------------------------------------------------------
  814. ---------------------------------------------------------------- ANGUTA SETS -----------------------------------------------------------------------------------
  815. -------------------------------------------------------------------------------------------------------------------------------------------------------------------    
  816.  
  817.     -- Anguta TP Sets --
  818.     sets.TP.Anguta = {main="Anguta",}
  819.     sets.TP.Anguta.MidACC = set_combine(sets.TP.Anguta,{})
  820.     sets.TP.Anguta.HighACC = set_combine(sets.TP.Anguta.MidACC,{})
  821.  
  822.     -- Anguta(High Haste) TP Sets --
  823.     sets.TP.Anguta.HighHaste = set_combine(sets.TP.Anguta,{})
  824.     sets.TP.Anguta.MidACC.HighHaste = set_combine(sets.TP.Anguta.MidACC,{})
  825.     sets.TP.Anguta.HighACC.HighHaste = set_combine(sets.TP.Anguta.HighACC,{})
  826.  
  827.     -- Anguta(SAM Roll) TP Sets --
  828.     sets.TP.Anguta.STP = set_combine(sets.TP.Anguta,{})
  829.     sets.TP.Anguta.MidACC.STP = set_combine(sets.TP.Anguta.MidACC,{})
  830.     sets.TP.Anguta.HighACC.STP = set_combine(sets.TP.Anguta.HighACC,{})
  831.  
  832.     -- Anguta(High Haste + SAM Roll) TP Sets --
  833.     sets.TP.Anguta.HighHaste.STP = set_combine(sets.TP.Anguta.STP,{})
  834.     sets.TP.Anguta.MidACC.HighHaste.STP = set_combine(sets.TP.Anguta.MidACC.STP,{})
  835.     sets.TP.Anguta.HighACC.HighHaste.STP = set_combine(sets.TP.Anguta.HighACC.STP,{})
  836.  
  837.     ----------------- /sam sets -----------------------------
  838.    
  839.     -- Anguta /SAM TP Sets --
  840.     sets.TP.Anguta.SAM = {main="Anguta",
  841.         ammo="Ginsen",
  842.         head="Argosy Celata +1",
  843.         hands="Argosy Mufflers +1",
  844.         legs=OdysLegs.STP,
  845.         feet=ValoFeet.STPACC,
  846.         neck="Ainia Collar",
  847.         body=ValoBody.DA,
  848.         waist="Ioskeha belt",
  849.         right_ear="Telos Earring",
  850.         left_ear="Brutal earring",
  851.         left_ring="Petrov Ring",
  852.         right_ring="Niqmaddu Ring",
  853.         back=Ankou.ACC}
  854.     sets.TP.Anguta.SAM.MidACC = set_combine(sets.TP.Anguta.SAM,{
  855.         neck="Lissome Necklace",
  856.         hands=ValoHands.STP,
  857.         left_ear="Cessance earring",
  858.         left_ring="Chirich Ring",})
  859.     sets.TP.Anguta.SAM.HighACC = set_combine(sets.TP.Anguta.SAM.MidACC,{
  860.         head="Ignominy Burgonet +3",
  861.         body="Ignominy Cuirass +3",
  862.         hands="Ignominy Gauntlets +3",
  863.         legs="Ignominy Flanchard +3",
  864.         left_ring="Regal Ring",
  865.         feet="Flamma Gambieras +1"})
  866.  
  867.     -- Anguta(High Haste) /SAM TP Sets --
  868.     sets.TP.Anguta.SAM.HighHaste = set_combine(sets.TP.Anguta.SAM,{waist="Windbuffet Belt +1",})
  869.     sets.TP.Anguta.SAM.MidACC.HighHaste = set_combine(sets.TP.Anguta.SAM.MidACC,{})
  870.     sets.TP.Anguta.SAM.HighACC.HighHaste = set_combine(sets.TP.Anguta.SAM.HighACC,{})
  871.  
  872.     -- Anguta(SAM Roll) /SAM TP Sets --
  873.     sets.TP.Anguta.SAM.STP = set_combine(sets.TP.Anguta.SAM,{
  874.         ammo="Ginsen",
  875.         head="Flam. Zucchetto +1",
  876.         neck="Ganesha's Mala",
  877.         ear1="Cessance Earring",
  878.         ear2="Brutal Earring",
  879.         body=ValoBody.DA,
  880.         hands=OdysHands.QA,
  881.         ring1="Petrov Ring",
  882.         ring2="Niqmaddu Ring",
  883.         back=Ankou.ACC,
  884.         waist="Ioskeha Belt",
  885.         legs=OdysLegs.QA,
  886.         feet=ValoFeet.STPACC})
  887.     sets.TP.Anguta.SAM.MidACC.STP = set_combine(sets.TP.Anguta.SAM.MidACC,{
  888.         head="Argosy Celata +1",
  889.         hands="Emicho Gauntlets",
  890.         legs=OdysLegs.STP,
  891.         neck="Ainia Collar",
  892.         body=ValoBody.DA,
  893.         right_ear="Telos Earring",})
  894.     sets.TP.Anguta.SAM.HighACC.STP = set_combine(sets.TP.Anguta.SAM.HighACC,{
  895.         head="Argosy Celata +1",
  896.         hands="Ignominy Gauntlets +3",
  897.         legs="Ignominy Flanchard +3",
  898.         left_ring="Regal Ring",
  899.         neck="Lissome Necklace",
  900.         feet=ValoFeet.STPACC})
  901.  
  902.     -- Anguta(High Haste + SAM Roll) /SAM TP Sets --
  903.     sets.TP.Anguta.SAM.HighHaste.STP = set_combine(sets.TP.Anguta.SAM.STP,{waist="Windbuffet Belt +1",})
  904.     sets.TP.Anguta.SAM.MidACC.HighHaste.STP = set_combine(sets.TP.Anguta.SAM.MidACC.STP,{})
  905.     sets.TP.Anguta.SAM.HighACC.HighHaste.STP = set_combine(sets.TP.Anguta.SAM.HighACC.STP,{})
  906.    
  907. ----------------------------------------------------------------------------------------------------------------------
  908. ----------------------------------------------------------------------------------------------------------------------
  909. ----------------------------------------------------------------------------------------------------------------------
  910.  
  911.     -- PDT/MDT Sets --
  912.     sets.PDT = {
  913.         ammo="Staunch Tathlum",
  914.         head="Sulevia's Mask +2",
  915.         body="Sulevia's Platemail +2",
  916.         hands="Sulevia's Gauntlets +2",
  917.         legs="Sulevia's Cuisses +2",
  918.         feet="Sulevia's Leggings +2",
  919.         neck="Loricate Torque +1",
  920.         waist="Flume belt",
  921.         right_ear="Eabani Earring",
  922.         left_ear="Genmei earring",
  923.         left_ring="Moonbeam Ring",
  924.         right_ring="Warden's Ring",
  925.         back="Reiki Cloak",}
  926.        
  927.         -- all these specialize PDT sets seems to not be working
  928.     sets.PDT.Liberator = set_combine(sets.PDT,{main="Liberator",
  929.         ammo="Seething Bomblet",
  930.         right_ear="Cessance Earring",
  931.         left_ear="Brutal earring",
  932.         waist="Tempus Fugit",
  933.         right_ring="Moonbeam Ring",
  934.         back=Ankou.DA})
  935.     sets.PDT.Ragnarok = set_combine(sets.PDT,{main="Ragnarok",
  936.         ammo="Seething Bomblet",
  937.         right_ear="Cessance Earring",
  938.         left_ear="Brutal earring",
  939.         waist="Tempus Fugit",
  940.         right_ring="Moonbeam Ring",
  941.         back=Ankou.DA})
  942.     sets.PDT.Caladbolg = set_combine(sets.PDT,{main="Caladbolg",
  943.         ammo="Seething Bomblet",
  944.         right_ear="Cessance Earring",
  945.         left_ear="Brutal earring",
  946.         waist="Tempus Fugit",
  947.         right_ring="Moonbeam Ring",
  948.         back=Ankou.DA})
  949.     sets.PDT.Apocalypse = set_combine(sets.PDT,{main="Apocalypse",
  950.         ammo="Seething Bomblet",
  951.         right_ear="Telos Earring",
  952.         left_ear="Cessance earring",
  953.         waist="Tempus Fugit",
  954.         right_ring="Moonbeam Ring",
  955.         back=Ankou.DA})
  956.     sets.PDT.Anguta = set_combine(sets.PDT,{main="Anguta",
  957.         ammo="Seething Bomblet",
  958.         right_ear="Cessance Earring",
  959.         left_ear="Brutal earring",
  960.         waist="Tempus Fugit",
  961.         right_ring="Moonbeam Ring",
  962.         back=Ankou.DA})
  963.        
  964.     sets.MDT = set_combine(sets.PDT,{back="Moonbeam Cape", waist="Tempus Fugit", right_ring="Shadow Ring",})
  965.                            
  966.     sets.Scarlet = set_combine(sets.PDT,{})
  967.  
  968.     -- Hybrid Set --
  969.     sets.TP.Hybrid = set_combine(sets.PDT,{
  970.         ammo="Staunch Tathlum",
  971.         head="Sulevia's Mask +2",
  972.         body=ValoBody.DA,
  973.         hands="Sulevia's Gauntlets +2",
  974.         legs="Sulevia's Cuisses +2",
  975.         feet=ValoFeet.STPACC,
  976.         neck="Loricate Torque +1",
  977.         waist="Tempus Fugit",
  978.         right_ear="Telos Earring",
  979.         left_ear="Odnowa earring +1",
  980.         left_ring="Defending Ring",
  981.         right_ring="Moonbeam Ring",
  982.         back=Ankou.DA})
  983.        
  984.     sets.TP.Hybrid.Liberator = set_combine(sets.TP.Hybrid,{main="Liberator",ammo="Seething Bomblet",})
  985.     sets.TP.Hybrid.Ragnarok = set_combine(sets.TP.Hybrid,{main="Ragnarok", ammo="Seething Bomblet",})
  986.     sets.TP.Hybrid.Caladbolg = set_combine(sets.TP.Hybrid,{main="Caladbolg", ammo="Seething Bomblet",})
  987.     sets.TP.Hybrid.Apocalypse = set_combine(sets.TP.Hybrid,{main="Apocalypse", ammo="Seething Bomblet",})
  988.     sets.TP.Hybrid.Anguta = set_combine(sets.TP.Hybrid,{main="Anguta", ammo="Seething Bomblet",})
  989.        
  990.     sets.TP.Hybrid.MidACC = set_combine(sets.TP.Hybrid,{
  991.         left_ear="Cessance Earring",
  992.         body="Sulevia's Platemail +2",
  993.         hands="Ignominy Gauntlets +3",
  994.         legs="Ignominy Flanchard +3"})
  995.        
  996.     sets.TP.Hybrid.HighACC = set_combine(sets.TP.Hybrid.MidACC,{
  997.         ammo="Seething Bomblet",
  998.         head="Ignominy Burgonet +3",
  999.         feet="Sulevia's Leggings +2"})
  1000.  
  1001. --[[ Scythe Light:
  1002.     Insurgency > Vorpal Scythe > Entropy > Guillotine > Entropy > Insurgency
  1003.     Vorpal Scythe > Entropy > Guillotine > Entropy > Insurgency
  1004.     Entropy > Guillotine > Entropy > Insurgency
  1005.     Guillotine > Entropy > Insurgency
  1006.    
  1007. -- Scythe Darkness:
  1008.     Insurgency (M) > Vorpal Scythe > Vorpal Scythe > Insurgency (M) > Entropy (MM) > Cross Reaper
  1009.     Entropy (MM) > Guillotine > Entropy (MM) > Cross Reaper > Entropy (MM)
  1010.     Cross Reaper > Insurgency (M) > Entropy (MM) > Cross Reaper
  1011.     Insurgency (M) > Entropy (MM) > Cross Reaper
  1012.     Cross Reaper > Entropy (MM)
  1013.     Entropy (MM) > Cross Reaper
  1014.  
  1015. -- Apoc Darkness
  1016.     Entropy (MM) > Guillotine > Entropy (MM) > Cross Reaper > Entropy (MM) > Catastrophe (R)
  1017.     Entropy (MM) > Guillotine > Entropy (MM) > Cross Reaper > Entropy (MM)
  1018.     Insurgency (M) > Entropy (MM) > Cross Reaper > Catastrophe (R)
  1019.     Insurgency (M) > Catastrophe (R) > Cross Reaper > Catastrophe (R)
  1020.     Cross Reaper > Insurgency (M) > Catastrophe (R) > Cross Reaper
  1021.     Catastrophe (R) > Cross Reaper > Catastrophe (R)
  1022.     Insurgency (M) > Catastrophe (R) > Cross Reaper
  1023.     Cross Reaper > Catastrophe (R) > Catastrophe (R)
  1024.     Cross Reaper > Entropy (MM) > Catastrophe (R)
  1025.     Entropy (MM) > Cross Reaper > Catastrophe (R)
  1026.     Catastrophe (R) > Catastrophe (R)
  1027.     Catastrophe (R) > Cross Reaper
  1028.     Cross Reaper > Catastrophe (R)
  1029.  
  1030. -- Other Light
  1031.     Catastrophe (R) > Savage Blade (Q) > Insurgency (M)
  1032.     Entropy (MM) > Savage Blade (Q) > Insurgency (M)
  1033.     Savage Blade (Q) > Insurgency (M)
  1034.     Chant du Cygne (E) > Torcleaver (E)
  1035.  
  1036. -- Other Dark
  1037.     Atonement (M) > Entropy (MM) > Cross Reaper
  1038.     Savage Blade (Q) > Cross Reaper > Entropy (MM)
  1039.     Chant du Cygne (E) > Catastrophe (R)
  1040.     Chant du Cygne (E) > Entropy (MM)
  1041.     Requiescat (MM) > Cross Reaper
  1042.     Requiescat (MM) > Torcleaver (E)
  1043.  
  1044. -- GreatSword
  1045.     Resolution (MM) > Torcleaver (E) > Scourge (R) > Resolution (MM) > Torcleaver (E)
  1046.     Resolution (MM) > Torcleaver (E) > Scourge (R) > Resolution (MM)
  1047.     Resolution (MM) > Scourge (R) > Torcleaver (E)
  1048.     Scourge (R) > Resolution (MM) > Torcleaver (E)
  1049.     Torcleaver (E) > Torcleaver (E)
  1050.     Scourge (R) > Resolution (MM)
  1051. --]]
  1052.  
  1053.     -- WS Base Set --
  1054.     sets.WS = {
  1055.         ammo="Seething Bomblet",
  1056.         head="Argosy Celata +1",
  1057.         body="Ignominy Cuirass +3",
  1058.         hands="Argosy Mufflers +1",
  1059.         legs="Ignominy Flanchard +3",
  1060.         feet="Argosy Sollerets +1",
  1061.         neck="Fotia Gorget",
  1062.         waist="Fotia Belt",
  1063.         left_ear="Moonshade earring",
  1064.         right_ear="Telos earring",
  1065.         left_ring="Regal Ring",
  1066.         right_ring="Niqmaddu Ring",
  1067.         back=Ankou.WSDSTR}
  1068.  
  1069.     -- Resolution Sets --
  1070.     --Description:  Delivers a fivefold attack. Damage varies with TP.
  1071.     --Stat Modifier:    73~85% STR fTP: 0.71875 1.5 2.25
  1072.     sets.WS.Resolution = {     
  1073.         ammo="Seething Bomblet",
  1074.         head="Argosy Celata +1",
  1075.         body="Ignominy Cuirass +3",
  1076.         hands="Argosy Mufflers +1",
  1077.         legs="Ignominy Flanchard +3",
  1078.         feet="Argosy Sollerets +1",
  1079.         neck="Fotia Gorget",
  1080.         waist="Fotia Belt",
  1081.         left_ear="Moonshade earring",
  1082.         right_ear="Brutal earring",
  1083.         left_ring="Regal Ring",
  1084.         right_ring="Niqmaddu Ring",
  1085.         back=Ankou.DA}
  1086.    
  1087.     sets.WS.Resolution.MidACC = set_combine(sets.WS.Resolution,{
  1088.         hands="Ignominy Gauntlets +3",
  1089.         back=Ankou.DA})
  1090.        
  1091.     sets.WS.Resolution.HighACC = set_combine(sets.WS.Resolution.MidACC,{})
  1092.    
  1093.     -- Torcleaver Sets --
  1094.     -- Description: Deals triple damage. Damage varies with TP.
  1095.     -- Stat Modifier:   80% VIT fTP:    4.75    7.5 10
  1096.     sets.WS.Torcleaver = {
  1097.         ammo="Knobkierrie",
  1098.         head=OdysHead.WSD,
  1099.         body="Ignominy Cuirass +3",
  1100.         hands=OdysHands.WSDVIT,
  1101.         legs=OdysLegs.WSD,
  1102.         feet="Sulevia's Leggings +2",
  1103.         neck="Fotia Gorget",
  1104.         waist="Fotia Belt",
  1105.         left_ear="Moonshade earring",
  1106.         right_ear="Ishvara Earring",
  1107.         left_ring="Regal Ring",
  1108.         right_ring="Niqmaddu Ring",
  1109.         back=Ankou.WSDVIT}
  1110.        
  1111.     sets.WS.Torcleaver.MidACC = set_combine(sets.WS.Torcleaver,{
  1112.         ammo="Knobkierrie",
  1113.         head="Ignominy Burgonet +3",
  1114.         hands=OdysHands.WSDVITACC,
  1115.         right_ear="Telos Earring",})
  1116.        
  1117.     sets.WS.Torcleaver.HighACC = set_combine(sets.WS.Torcleaver.MidACC,{})
  1118.  
  1119.     -- Scourge Sets --
  1120.     --Relic Aftermath: +5% Critical Hit Rate 15 acc
  1121.     --Stat Modifier:    40% STR / 40% VIT   fTP:    3.0
  1122.     sets.WS.Scourge = {
  1123.         ammo="Knobkierrie",
  1124.         head=OdysHead.WSD,
  1125.         body="Ignominy Cuirass +3",
  1126.         hands=OdysHands.WSDVIT,
  1127.         legs=OdysLegs.WSD,
  1128.         feet="Sulevia's Leggings +2",
  1129.         neck="Fotia Gorget",
  1130.         waist="Fotia Belt",
  1131.         left_ear="Brutal earring",
  1132.         right_ear="Ishvara Earring",
  1133.         left_ring="Regal Ring",
  1134.         right_ring="Niqmaddu Ring",
  1135.         back=Ankou.WSDSTR}
  1136.        
  1137.     sets.WS.Scourge.MidACC = set_combine(sets.WS.Scourge,{
  1138.         hands=OdysHands.WSDVITACC,
  1139.         legs=OdysLegs.WSD,
  1140.         left_ear="Cessance earring",
  1141.         right_ear="Telos Earring",})
  1142.        
  1143.     sets.WS.Scourge.HighACC = set_combine(sets.WS.Scourge.MidACC,{})   
  1144.  
  1145.     sets.WS.Shockwave = {
  1146.         ammo="Pemphredo Tathlum",
  1147.         head="Carmine Mask +1",
  1148.         body="Carmine Scale Mail",
  1149.         hands="Leyline Gloves",
  1150.         legs="Eschite cuisses",
  1151.         feet="Ignominy Sollerets +3",
  1152.         neck="Erra Pendant",
  1153.         waist="Eschan Stone",
  1154.         left_ear="Hermetic Earring",
  1155.         right_ear="Telos Earring",
  1156.         left_ring="Regal Ring",
  1157.         right_ring="Stikini Ring",
  1158.         back=Ankou.INTDA,} 
  1159.  
  1160.     -- Catastrophe Sets --
  1161.     --Stat Modifier:    40% STR / 40% INT   fTP:    2.75
  1162.     --Relic Aftermath: 10% Equipment Haste (+102/1024) AG 10% Ability
  1163.     sets.WS.Catastrophe = {
  1164.         ammo="Knobkierrie",
  1165.         head="Ratri Sallet",
  1166.         body="Ignominy Cuirass +3",
  1167.         hands="Ratri Gadlings",
  1168.         legs="Ratri Cuisses",
  1169.         feet="Ratri Sollerets",
  1170.         neck="Fotia Gorget",
  1171.         waist="Fotia Belt",
  1172.         left_ear="Brutal earring",
  1173.         right_ear="Ishvara Earring",
  1174.         left_ring="Regal Ring",
  1175.         right_ring="Niqmaddu Ring",
  1176.         back=Ankou.WSDSTR}
  1177.        
  1178.     sets.WS.Catastrophe.MidACC = set_combine(sets.WS.Catastrophe,{
  1179.         right_ear="Telos Earring",})
  1180.        
  1181.     sets.WS.Catastrophe.HighACC = set_combine(sets.WS.Catastrophe.MidACC,{})
  1182.  
  1183.     -- Entropy Sets --
  1184.     --Delivers a fourfold attack. Converts some of the damage into MP. Damage varies with TP.
  1185.     --Stat Modifier:    73~85% INT fTP: 0.75    1.25    2.0
  1186.     sets.WS.Entropy = {
  1187.         ammo="Pemphredo Tathlum",
  1188.         head="Ignominy Burgonet +3",
  1189.         body=ValoBody.DA,
  1190.         hands="Ignominy Gauntlets +3",
  1191.         legs="Ignominy Flanchard +3",
  1192.         feet=ValoFeet.INT,
  1193.         neck="Fotia Gorget",
  1194.         waist="Fotia Belt",
  1195.         left_ear="Moonshade earring",
  1196.         right_ear="Brutal Earring",
  1197.         left_ring="Shiva Ring",
  1198.         right_ring="Shiva Ring",
  1199.         back=Ankou.INTDA}
  1200.        
  1201.     sets.WS.Entropy.MidACC = set_combine(sets.WS.Entropy,{
  1202.         right_ear="Telos earring",})
  1203.        
  1204.     sets.WS.Entropy.HighACC = set_combine(sets.WS.Entropy.MidACC,{
  1205.         ammo="Seething Bomblet",
  1206.         body="Ignominy Cuirass +3",})
  1207.                            
  1208.     -- CrossReaper Sets --
  1209.     --Delivers a two-hit attack. Damage varies with TP.
  1210.     --Stat Modifier:    60% STR / 60% MND fTP:  2.0 4.0 7.0
  1211.     sets.WS['Cross Reaper'] = {
  1212.         ammo="Knobkierrie",
  1213.         head="Ratri Sallet",
  1214.         body="Ignominy Cuirass +3",
  1215.         hands="Ratri Gadlings",
  1216.         legs="Ratri Cuisses",
  1217.         feet="Ratri Sollerets",
  1218.         neck="Fotia Gorget",
  1219.         waist="Fotia Belt",
  1220.         left_ear="Moonshade earring",
  1221.         right_ear="Ishvara earring",
  1222.         left_ring="Regal Ring",
  1223.         right_ring="Niqmaddu Ring",
  1224.         back=Ankou.WSDSTR}
  1225.        
  1226.     sets.WS['Cross Reaper'].MidACC = set_combine(sets.WS['Cross Reaper'],{
  1227.         legs="Ignominy Flanchard +3",
  1228.         hands="Ignominy Gauntlets +3",})
  1229.        
  1230.     sets.WS['Cross Reaper'].HighACC = set_combine(sets.WS['Cross Reaper'].MidACC,{
  1231.         head="Ignominy Burgonet +3",
  1232.         right_ear="Telos earring",})                           
  1233.  
  1234.     -- Insurgency Sets --
  1235.     --Delivers a fourfold attack. Damage varies with TP.
  1236.     --Stat Modifier:    20% STR / 20% INT fTP:  0.5 3.25    6.0
  1237.     sets.WS.Insurgency = {
  1238.         ammo="Seething Bomblet",
  1239.         head="Ratri Sallet",
  1240.         body="Ignominy Cuirass +3",
  1241.         hands="Argosy Mufflers +1",
  1242.         legs="Ignominy Flanchard +3",
  1243.         feet="Argosy Sollerets +1",
  1244.         neck="Fotia Gorget",
  1245.         waist="Fotia Belt",
  1246.         left_ear="Moonshade earring",
  1247.         right_ear="Brutal earring",
  1248.         left_ring="Regal Ring",
  1249.         right_ring="Niqmaddu Ring",
  1250.         back=Ankou.DA}
  1251.        
  1252.     sets.WS.Insurgency.MidACC = set_combine(sets.WS.Insurgency,{
  1253.         hands="Ignominy Gauntlets +3",
  1254.         feet="Ratri Sollerets",})
  1255.        
  1256.     sets.WS.Insurgency.HighACC = set_combine(sets.WS.Insurgency.MidACC,{
  1257.         head="Ignominy Burgonet +3",
  1258.         right_ear="Telos earring",})
  1259.    
  1260.     -- Quietus Sets --
  1261.     --Delivers a triple damage attack that ignores target's defense. Amount ignored varies with TP.
  1262.     --Stat Modifier:    60% STR / 60% MND Defense ignored:  10% 30% 50% fTP:    3.0
  1263.     sets.WS.Quietus = {
  1264.         ammo="Knobkierrie",
  1265.         head="Ratri Sallet",
  1266.         body="Ignominy Cuirass +3",
  1267.         hands="Ratri Gadlings",
  1268.         legs="Ratri Cuisses",
  1269.         feet="Ratri Sollerets",
  1270.         neck="Fotia Gorget",
  1271.         waist="Fotia Belt",
  1272.         left_ear="Moonshade earring",
  1273.         right_ear="Ishvara earring",
  1274.         left_ring="Regal Ring",
  1275.         right_ring="Niqmaddu Ring",
  1276.         back=Ankou.WSDSTR}
  1277.  
  1278.     sets.WS.Quietus.MidACC = set_combine(sets.WS.Quietus, {
  1279.         right_ear="Telos Earring",})
  1280.        
  1281.     sets.WS.Quietus.HighACC = set_combine(sets.WS.Quietus.MidACC, {})
  1282.  
  1283.     -----------------------------------------------------------------------------------------------------------------
  1284.     -- works in motes based, not sure how to get it to work here
  1285.     sets.Item = {HolyWater}
  1286.     sets.Item['Holy Water'] = {ring1="Blenmot's Ring", ring2="Blenmot's Ring"}
  1287.    
  1288.     --react sets
  1289.     sets.Meva = {
  1290.     ammo="Staunch Tathlum",
  1291.     head="Ratri Sallet",
  1292.     neck="Warder's Charm",
  1293.     left_ear="Hearty Earring",
  1294.     right_ear="Eabani Earring",
  1295.     left_ring="Defending Ring",
  1296.     right_ring="Shadow Ring",
  1297.     legs="Ratri Cuisses",
  1298.     feet="Ratri Sollerets",
  1299.     hands="Ratri Gadlings",
  1300.     waist="Asklepian Belt",
  1301.     back=Ankou.MEVA,}
  1302.     sets.CurePotencyRecieved = {waist="Gishdubar sash", neck="Phalaina Locket", ring1="Kunaji Ring", hands="Buremte Gloves",}
  1303.     sets.PhalanxRecieved = {legs=OdysLegs.ENM, hands=OdysHands.PHALANX,}
  1304.     sets.RefreshRecieved = {waist="Gishdubar sash",} --feet="Inspirited boots"
  1305.     sets.CursnaRecieved = {waist="Gishdubar sash", legs="Shabti Cuisses +1", ring1="Eshmun's Ring", ring2="Eshmun's Ring"}
  1306.     sets.ResistStun = set_combine(sets.Meva, {right_ear="Arete del Luna", left_ear="Hearty Earring", body="Onca Suit", })
  1307.     sets.ProShellRecieved = {ear1="Brachyura Earring",}
  1308.     sets.ResistTerror = set_combine(sets.Meva,{feet="Founder's Greaves",})
  1309.    
  1310. end
  1311.  
  1312. function pretarget(spell,action)
  1313.     if spell.action_type == 'Magic' and buffactive.silence then -- Auto Use Echo Drops If You Are Silenced --
  1314.         cancel_spell()
  1315.         send_command('input /item "Echo Drops" <me>')
  1316.     elseif spell.english == "Berserk" and buffactive.Berserk then -- Change Berserk To Aggressor If Berserk Is On --
  1317.         cancel_spell()
  1318.         send_command('Aggressor')
  1319.     elseif spell.english == "Seigan" and buffactive.Seigan then -- Change Seigan To Third Eye If Seigan Is On --
  1320.         cancel_spell()
  1321.         send_command('ThirdEye')
  1322.     elseif spell.english == "Meditate" and player.tp > 2900 then -- Cancel Meditate If TP Is Above 2900 --
  1323.         cancel_spell()
  1324.         add_to_chat(123, spell.name .. ' Canceled: ['..player.tp..' TP]')
  1325.     elseif spell.type == "WeaponSkill" and spell.target.distance > target_distance and player.status == 'Engaged' then -- Cancel WS If You Are Out Of Range --
  1326.         cancel_spell()
  1327.         add_to_chat(123, spell.name..' Canceled: [Out of Range]')
  1328.         return
  1329.     end
  1330. end
  1331.  
  1332. function precast(spell,action)
  1333.     if spell.type == "WeaponSkill" then
  1334.             equipSet = sets.WS
  1335.             if equipSet[spell.english] then
  1336.                 equipSet = equipSet[spell.english]
  1337.             end
  1338.             if equipSet[AccArray[AccIndex]] then
  1339.                 equipSet = equipSet[AccArray[AccIndex]]
  1340.             end
  1341.             if buffactive['Reive Mark'] then -- Equip Ygnas's Resolve +1 During Reive --
  1342.                 equipSet = set_combine(equipSet,{neck="Ygnas's Resolve +1"})
  1343.             end
  1344.             if (spell.english == "Entropy" or spell.english == "Resolution" or spell.english == "Insurgency") and (player.tp > 2990 or buffactive.Sekkanoki) then
  1345.                 if world.time <= (7*60) or world.time >= (17*60) then
  1346.                     equipSet = set_combine(equipSet,{ear1="Lugra Earring +1"})
  1347.                 else
  1348.                     equipSet = set_combine(equipSet,{ear1="Ishvara Earring"})
  1349.                 end
  1350.             end
  1351.             equip(equipSet)
  1352.     elseif spell.type == "JobAbility" then
  1353.         if sets.JA[spell.english] then
  1354.             equip(sets.JA[spell.english])
  1355.         end
  1356.     elseif spell.action_type == 'Magic' then
  1357.         if buffactive.silence or spell.target.distance > 16+target_distance then -- Cancel Magic or Ninjutsu If You Are Silenced or Out of Range --
  1358.             cancel_spell()
  1359.             add_to_chat(123, spell.name..' Canceled: [Silenced or Out of Casting Range]')
  1360.             return
  1361.         else
  1362.             if spell.english == 'Utsusemi: Ni' then
  1363.                 if buffactive['Copy Image (3)'] then
  1364.                     cancel_spell()
  1365.                     add_to_chat(123, spell.name .. ' Canceled: [3 Images]')
  1366.                     return
  1367.                 else
  1368.                     equip(sets.Precast.FastCast)
  1369.                 end
  1370.             elseif sets.Precast[spell.skill] then
  1371.                 equip(sets.Precast[spell.skill])
  1372.             else
  1373.                 equip(sets.Precast.FastCast)
  1374.             end
  1375.         end
  1376.     elseif spell.english == 'Spectral Jig' and buffactive.Sneak then
  1377.         cast_delay(0.2)
  1378.         send_command('cancel Sneak')
  1379.     end
  1380.     if Twilight == 'Twilight' then
  1381.         equip(sets.Twilight)
  1382.     end
  1383. end
  1384.  
  1385. function midcast(spell,action)
  1386.     equipSet = {}
  1387.     if spell.action_type == 'Magic' then
  1388.         equipSet = sets.Midcast
  1389.         if spell.english:startswith('Absorb') and spell.english ~= "Absorb-TP" then
  1390.             equipSet = sets.Midcast.Absorb
  1391.             if equipSet[MaccArray[MaccIndex]] then
  1392.                 equipSet = equipSet[MaccArray[MaccIndex]]
  1393.             end
  1394.         elseif spell.english:startswith('Drain') or spell.english:startswith('Aspir') or spell.english:startswith('Bio') then
  1395.             if world.day == "Darksday" or world.weather_element == "Dark" then -- Equip Hachirin-no-Obi On Darksday or Dark Weather --
  1396.                 equipSet = set_combine(equipSet,{waist="Hachirin-no-Obi"})
  1397.             end
  1398.             equipSet =  sets.Midcast.Drain
  1399.         elseif spell.english == "Stoneskin" then
  1400.             if buffactive.Stoneskin then
  1401.                 send_command('@wait 1.7;cancel stoneskin')
  1402.             end
  1403.             equipSet = equipSet.Stoneskin
  1404.         elseif spell.english == "Sneak" then
  1405.             if spell.target.name == player.name and buffactive['Sneak'] then
  1406.                 send_command('cancel sneak')
  1407.             end
  1408.             equipSet = equipSet.Haste
  1409.         elseif spell.english:startswith('Utsusemi') then
  1410.             if spell.english == 'Utsusemi: Ichi' and (buffactive['Copy Image'] or buffactive['Copy Image (2)'] or buffactive['Copy Image (3)']) then
  1411.                 send_command('@wait 1.7;cancel Copy Image*')
  1412.             end
  1413.             equipSet = equipSet.Haste
  1414.         elseif spell.english == 'Monomi: Ichi' then
  1415.             if buffactive['Sneak'] then
  1416.                 send_command('@wait 1.7;cancel sneak')
  1417.             end
  1418.             equipSet = equipSet.Haste
  1419.         else
  1420.             if equipSet[spell.english] then
  1421.                 equipSet = equipSet[spell.english]
  1422.             end
  1423.             if equipSet[MaccArray[MaccIndex]] then
  1424.                 equipSet = equipSet[MaccArray[MaccIndex]]
  1425.             end
  1426.             if equipSet[spell.skill] then
  1427.                 equipSet = equipSet[spell.skill]
  1428.             end
  1429.             if equipSet[spell.type] then
  1430.                 equipSet = equipSet[spell.type]
  1431.             end
  1432.         end
  1433.     elseif equipSet[spell.english] then
  1434.         equipSet = equipSet[spell.english]
  1435.     end
  1436.     if buffactive["Dark Seal"] and DarkSealIndex==0 then -- Equip Aug'd Fall. Burgeonet +1 When You Have Dark Seal Up --
  1437.         equipSet = set_combine(equipSet,{head="Fall. Burgeonet +1",})
  1438.     end
  1439.     if buffactive['Dark Seal'] and buffactive['Nether Void'] and S{"Drain II","Drain III"}:contains(spell.english) and player.tp<600 then
  1440.         equipSet = set_combine(equipSet,(sets.MAXDrain))
  1441.         add_to_chat(100,'WARNING: Misanthropy is on now *****')
  1442.     end
  1443.     equip(equipSet)
  1444. end
  1445.  
  1446. function aftercast(spell,action)
  1447.  
  1448.         if spell.type == "WeaponSkill" then
  1449.             send_command('wait 0.2;gs c TP')
  1450.         elseif spell.english == "Arcane Circle" then -- Arcane Circle Countdown --
  1451.             send_command('wait 260;input /echo '..spell.name..': [WEARING OFF IN 10 SEC.];wait 10;input /echo '..spell.name..': [OFF]')
  1452.         elseif spell.english == "Sleep II" then -- Sleep II Countdown --
  1453.             send_command('wait 60;input /echo Sleep Effect: [WEARING OFF IN 30 SEC.];wait 15;input /echo Sleep Effect: [WEARING OFF IN 15 SEC.];wait 10;input /echo Sleep Effect: [WEARING OFF IN 5 SEC.]')
  1454.         elseif spell.english == "Sleep" then -- Sleep Countdown --
  1455.             send_command('wait 30;input /echo Sleep Effect: [WEARING OFF IN 30 SEC.];wait 15;input /echo Sleep Effect: [WEARING OFF IN 15 SEC.];wait 10;input /echo Sleep Effect: [WEARING OFF IN 5 SEC.]')
  1456.         end
  1457.         status_change(player.status)
  1458.     end
  1459.    
  1460.  
  1461. function status_change(new,old)
  1462.     if Armor == 'PDT' then
  1463.         equip(sets.PDT)
  1464.     elseif Armor == 'MDT' then
  1465.         equip(sets.MDT)
  1466.     elseif Armor == 'Scarlet' then
  1467.         equip(sets.Scarlet)
  1468.     elseif new == 'Engaged' then
  1469.         equipSet = sets.TP
  1470.         if Armor == 'Hybrid' and equipSet["Hybrid"] then
  1471.             equipSet = equipSet["Hybrid"]
  1472.         end
  1473.         if equipSet[WeaponArray[WeaponIndex]] then
  1474.             equipSet = equipSet[WeaponArray[WeaponIndex]]
  1475.         end
  1476.         if equipSet[player.sub_job] then
  1477.             equipSet = equipSet[player.sub_job]
  1478.         end
  1479.         if equipSet[AccArray[AccIndex]] then
  1480.             equipSet = equipSet[AccArray[AccIndex]]
  1481.         end
  1482.         if buffactive["Aftermath: Lv.3"] and equipSet["AM3"] then
  1483.                 if buffactive["Last Resort"] and ((buffactive.Haste and buffactive.March == 2) or (buffactive.Embrava and (buffactive.March == 2 or (buffactive.March and buffactive.Haste) or (buffactive.March and buffactive['Mighty Guard']) or (buffactive['Mighty Guard'] and buffactive.Haste))) or (buffactive[580] and (buffactive.March or buffactive.Haste or buffactive.Embrava or buffactive['Mighty Guard']))) and equipSet["HighHaste"] then
  1484.                     equipSet = equipSet["AM3_HighHaste"]
  1485.                 else
  1486.                     equipSet = equipSet["AM3"]
  1487.                 end
  1488.         end
  1489.         if buffactive.Aftermath and equipSet["AM"] then
  1490.             equipSet = equipSet["AM"]
  1491.         end
  1492.         if buffactive["Last Resort"] and ((buffactive.Haste and buffactive.March == 2) or (buffactive.Embrava and (buffactive.March == 2 or (buffactive.March and buffactive.Haste) or (buffactive.March and buffactive['Mighty Guard']) or (buffactive['Mighty Guard'] and buffactive.Haste))) or (buffactive[580] and (buffactive.March or buffactive.Haste or buffactive.Embrava or buffactive['Mighty Guard']))) and equipSet["HighHaste"] then
  1493.             equipSet = equipSet["HighHaste"]
  1494.         end
  1495.         if buffactive["Samurai Roll"] and equipSet["STP"] and Samurai_Roll == 'ON' then
  1496.             equipSet = equipSet["STP"]
  1497.         end
  1498.         equip(equipSet)
  1499.     else
  1500.         equipSet = sets.Idle
  1501.         if equipSet[IdleArray[IdleIndex]] then
  1502.             equipSet = equipSet[IdleArray[IdleIndex]]
  1503.         end
  1504.         if equipSet[WeaponArray[WeaponIndex]] then
  1505.             equipSet = equipSet[WeaponArray[WeaponIndex]]
  1506.         end
  1507.         if equipSet[player.sub_job] then
  1508.             equipSet = equipSet[player.sub_job]
  1509.         end
  1510.         if buffactive['Reive Mark'] then -- Equip Ygnas's Resolve +1 During Reive --
  1511.             equipSet = set_combine(equipSet,{neck="Ygnas's Resolve +1"})
  1512.         end
  1513.         if world.area:endswith('Adoulin') then
  1514.             equipSet = set_combine(equipSet,{body="Councilor's Garb"})
  1515.         end
  1516.         equip(equipSet)
  1517.     end
  1518.     if Twilight == 'Twilight' then
  1519.         equip(sets.Twilight)
  1520.     end
  1521. end
  1522.  
  1523. function buff_change(buff,gain)
  1524.     buff = string.lower(buff)
  1525.     if buff == "aftermath: lv.3" then -- AM3 Timer/Countdown --
  1526.         if gain then
  1527.             send_command('timers create "Aftermath: Lv.3" 180 down;wait 150;input /echo Aftermath: Lv.3 [WEARING OFF IN 30 SEC.];wait 15;input /echo Aftermath: Lv.3 [WEARING OFF IN 15 SEC.];wait 5;input /echo Aftermath: Lv.3 [WEARING OFF IN 10 SEC.]')
  1528.         else
  1529.             send_command('timers delete "Aftermath: Lv.3"')
  1530.             add_to_chat(123,'AM3: [OFF]')
  1531.         end
  1532.     elseif buff == 'weakness' then -- Weakness Timer --
  1533.         if gain then
  1534.             send_command('timers create "Weakness" 300 up')
  1535.         else
  1536.             send_command('timers delete "Weakness"')
  1537.         end
  1538.     end
  1539.     if buff == "sleep" and gain and player.hp > 200 and player.status == "Engaged" then -- Equip Berserker's Torque When You Are Asleep & Have 200+ HP --
  1540.         equip({neck="Vim Torque +1"})
  1541.     else
  1542.         if not midaction() then
  1543.             status_change(player.status)
  1544.         end
  1545.     end
  1546. end
  1547.  
  1548. -- In Game: //gs c (command), Macro: /console gs c (command), Bind: gs c (command) --
  1549. function self_command(command)
  1550.     if command == 'C1' then -- Accuracy Level Toggle --
  1551.         AccIndex = (AccIndex % #AccArray) + 1
  1552.         status_change(player.status)
  1553.         add_to_chat(158,'Accuracy Level: '..AccArray[AccIndex])
  1554.     elseif command == 'C17' then -- Main Weapon Toggle --
  1555.         WeaponIndex = (WeaponIndex % #WeaponArray) + 1
  1556.         add_to_chat(158,'Main Weapon: '..WeaponArray[WeaponIndex])
  1557.         status_change(player.status)
  1558.     elseif command == 'C14' then -- Macc Toggle --
  1559.         MaccIndex = (MaccIndex % #MaccArray) + 1
  1560.         add_to_chat(158,'Macc Level: '..MaccArray[MaccIndex])
  1561.         status_change(player.status)
  1562.     elseif command == 'C5' then -- Auto Update Gear Toggle --
  1563.         status_change(player.status)
  1564.         add_to_chat(158,'Auto Update Gear')
  1565.     elseif command == 'C2' then -- Hybrid Toggle --
  1566.         if Armor == 'Hybrid' then
  1567.             Armor = 'None'
  1568.             add_to_chat(123,'Hybrid Set: [Unlocked]')
  1569.         else
  1570.             Armor = 'Hybrid'
  1571.             add_to_chat(158,'Hybrid Set: '..AccArray[AccIndex])
  1572.         end
  1573.         status_change(player.status)
  1574.         elseif command == 'C10' then -- DarkSeal Toggle --
  1575.         if DarkSealIndex == 1 then
  1576.                         DarkSealIndex = 0
  1577.                         add_to_chat(158,'DarkSeal Duration: [On]')
  1578.         else
  1579.                         DarkSealIndex = 1
  1580.                         add_to_chat(158,'DarkSeal Potency: [On]')
  1581.         end
  1582.         status_change(player.status)
  1583.     elseif command == 'C7' then -- PDT Toggle --
  1584.         if Armor == 'PDT' then
  1585.             Armor = 'None'
  1586.             add_to_chat(123,'PDT Set: [Unlocked]')
  1587.         else
  1588.             Armor = 'PDT'
  1589.             add_to_chat(158,'PDT Set: [Locked]')
  1590.         end
  1591.         status_change(player.status)
  1592.     elseif command == 'C15' then -- MDT Toggle --
  1593.         if Armor == 'MDT' then
  1594.             Armor = 'None'
  1595.             add_to_chat(123,'MDT Set: [Unlocked]')
  1596.         else
  1597.             Armor = 'MDT'
  1598.             add_to_chat(158,'MDT Set: [Locked]')
  1599.         end
  1600.         status_change(player.status)
  1601.     elseif command == 'C9' then -- Scarlet Toggle --
  1602.         if Armor == 'Scarlet' then
  1603.             Armor = 'None'
  1604.             add_to_chat(123,'Scarlet Set: [Unlocked]')
  1605.         else
  1606.             Armor = 'Scarlet'
  1607.             add_to_chat(158,'Scarlet Set: [Locked]')
  1608.         end
  1609.         status_change(player.status)
  1610.     elseif command == 'C3' then -- Twilight Toggle --
  1611.         if Twilight == 'Twilight' then
  1612.             Twilight = 'None'
  1613.             add_to_chat(123,'Twilight Set: [Unlocked]')
  1614.         else
  1615.             Twilight = 'Twilight'
  1616.             add_to_chat(158,'Twilight Set: [locked]')
  1617.         end
  1618.         status_change(player.status)
  1619.     elseif command == 'C8' then -- Distance Toggle --
  1620.         if player.target.distance then
  1621.             target_distance = math.floor(player.target.distance*10)/10
  1622.             add_to_chat(158,'Distance: '..target_distance)
  1623.         else
  1624.             add_to_chat(123,'No Target Selected')
  1625.         end
  1626.     elseif command == 'C6' then -- Idle Toggle --
  1627.         IdleIndex = (IdleIndex % #IdleArray) + 1
  1628.         status_change(player.status)
  1629.         add_to_chat(158,'Idle Set: '..IdleArray[IdleIndex])
  1630.     elseif command == 'TP' then
  1631.         add_to_chat(158,'TP Return: ['..tostring(player.tp)..']')
  1632.     elseif command:match('^SC%d$') then
  1633.         send_command('//' .. sc_map[command])
  1634.     end
  1635. end
  1636.  
  1637. function sub_job_change(newSubjob, oldSubjob)
  1638.     select_default_macro_book()
  1639. end
  1640.  
  1641. function set_macro_page(set,book)
  1642.     if not tonumber(set) then
  1643.         add_to_chat(123,'Error setting macro page: Set is not a valid number ('..tostring(set)..').')
  1644.         return
  1645.     end
  1646.     if set < 1 or set > 10 then
  1647.         add_to_chat(123,'Error setting macro page: Macro set ('..tostring(set)..') must be between 1 and 10.')
  1648.         return
  1649.     end
  1650.    
  1651.     if book then
  1652.         if not tonumber(book) then
  1653.             add_to_chat(123,'Error setting macro page: book is not a valid number ('..tostring(book)..').')
  1654.             return
  1655.         end
  1656.         if book < 1 or book > 20 then
  1657.             add_to_chat(123,'Error setting macro page: Macro book ('..tostring(book)..') must be between 1 and 20.')
  1658.             return
  1659.         end
  1660.         send_command('@input /macro book '..tostring(book)..';wait .1;input /macro set '..tostring(set))
  1661.     else
  1662.         send_command('@input /macro set '..tostring(set))
  1663.     end
  1664. end
  1665.  
  1666. function select_default_macro_book()
  1667.     -- Default macro set/book
  1668.     if player.sub_job == 'SAM' then
  1669.         set_macro_page(2, 8)
  1670.     else
  1671.         set_macro_page(1, 8)
  1672.     end
  1673. end
RAW Paste Data