Advertisement
Guest User

Deathblossoms Rng Lua 2

a guest
Jul 3rd, 2014
437
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 46.48 KB | None | 0 0
  1. -- *** Credit goes to Flippant for helping me with Gearswap *** --
  2. -- ** I Use Some of Motenten's Functions ** --
  3. -- Last Updated: 05/02/14 10:00 PM *Fixed Aftercast Rule* --
  4.  
  5. function get_sets()
  6.     AccIndex = 1
  7.     AccArray = {"LowACC","MidACC","HighACC"} -- 3 Levels Of Accuracy Sets For Shooting/TP/WS. First Set Is LowACC. Add More ACC Sets If Needed Then Create Your New ACC Below. Most of These Sets Are Empty So You Need To Edit Them On Your Own. Remember To Check What The Combined Set Is For Each Sets. --
  8.     WeaponIndex = 1
  9.     WeaponArray = {"Eminent Bow","Eminent Gun"} -- Default Ranged Weapon Is Annihilator. Can Delete Any Weapons/Sets That You Don't Need Or Replace/Add The New Weapons That You Want To Use. --
  10.     IdleIndex = 1
  11.     IdleArray = {"Movement","Regen"} -- Default Idle Set Is Movement --
  12.     Armor = 'None'
  13.     warning = false
  14.     AutoMode = 'OFF' -- Set Default Auto RA/WS ON or OFF Here --
  15.     Attack = 'OFF' -- Set Default Attack Set ON or OFF Here --
  16.     Enmity = 'OFF' -- Set Default Enmity Set ON or OFF Here --
  17.     ammo_warning_limit = 10 -- Set Ammo Limit Check Here --
  18.     Samurai_Roll = 'ON' -- Set Default SAM Roll ON or OFF Here --
  19.     target_distance = 5 -- Set Default Distance Here --
  20.     select_default_macro_book() -- Change Default Macro Book At The End --
  21.  
  22.     sc_map = {SC1="LastStand", SC2="Ranged", SC3="Jishnu'sRadiance", SC4="ApexArrow"} -- 3 Additional Binds. Can Change Whatever JA/WS/Spells You Like Here. Remember Not To Use Spaces. --
  23.  
  24.     sets.Idle = {}
  25.     -- Idle/Town Sets --
  26.     sets.Idle.Regen = {
  27.             head="Oce. Headpiece +1",
  28.             neck="Wiglen Gorget",
  29.             ear1="Clearview Earring",
  30.             ear2="Volley Earring",
  31.             body="Arcadian Jerkin +1",
  32.             hands="Arcadian Bracers +1",
  33.             ring1="Paguroidea Ring",
  34.             ring2="Sheltered Ring",
  35.             back="Libeccio Mantle",
  36.             waist="Impulse Belt",
  37.             legs="Orion Braccae +1",
  38.             feet="Fajin Boots"}
  39.     sets.Idle.Regen['Eminent Bow'] = set_combine(sets.Idle.Regen,{
  40.             main="Hurlbat",
  41.             sub="Antican Axe",
  42.             range="Eminent Bow",
  43.             ammo="Adlivun Arrow"})
  44.     sets.Idle.Regen['Eminent Gun'] = set_combine(sets.Idle.Regen,{
  45.             main="Hurlbat",
  46.             sub="Antican Axe",
  47.             range="Eminent Gun",
  48.             ammo="Adlivun Bullet"})
  49.     sets.Idle.Regen['Eminent Bow'].NIN = set_combine(sets.Idle.Regen,{
  50.             main="Hurlbat",
  51.             sub="Antican Axe",
  52.             range="Eminent Bow",
  53.             ammo="Adlivun Arrow"})
  54.     sets.Idle.Regen['Eminent Gun'].NIN = set_combine(sets.Idle.Regen,{
  55.             main="Hurlbat",
  56.             sub="Antican Axe",
  57.             range="Eminent Gun",
  58.             ammo="Adlivun Bullet"})
  59.  
  60.     sets.Idle.Movement = set_combine(sets.Idle.Regen,{
  61.             head="Arcadian Beret +1",
  62.             neck="Twilight Torque",
  63.             ear1="Vulcan's Pearl",
  64.             body="Orion Jerkin +1",
  65.             ring1="Patricius Ring",
  66.             ring2="Paguroidea Ring"})
  67.     sets.Idle.Movement['Eminent Bow'] = set_combine(sets.Idle.Movement,{
  68.             range="Eminent Bow",
  69.             ammo="Adlivun Arrow"})
  70.     sets.Idle.Movement['Eminent Gun'] = set_combine(sets.Idle.Movement,{
  71.             range="Eminent Gun",
  72.             ammo="Adlivun Bullet"})
  73.     sets.Idle.Movement['Eminent Bow'].NIN = set_combine(sets.Idle.Movement,{
  74.             main="Hurlbat",
  75.             sub="Antican Axe",
  76.             range="Eminent Bow",
  77.             ammo="Adlivun Arrow"})
  78.     sets.Idle.Movement['Eminent Gun'].NIN = set_combine(sets.Idle.Movement,{
  79.             main="Hurlbat",
  80.             sub="Antican Axe",
  81.             range="Eminent Gun",
  82.             ammo="Adlivun Bullet"})
  83.  
  84.     -- Preshot --
  85.     sets.Preshot = {
  86.             head="Sylvan Gapette +2",
  87.             body="Sylvan Caban +2",
  88.             hands="Arcadian Bracers +1",
  89.             waist="Impulse Belt",
  90.             legs="Mustela Brais",
  91.             feet="Orion Socks +1"}
  92.  
  93.     -- Barrage Base Set. This Set Takes Priority Over Other Pieces. --
  94.     Barrage = {
  95.             hands="Orion Bracers +1"}
  96.  
  97.     -- Shooting Base Set --
  98.     sets.Midshot = {
  99.              head="Sylvan Gapette +2",
  100.              body="Arcadian Jerkin +1",
  101.              hands="Arcadian bracers +1",
  102.              ring1="Jalzahn's Ring",
  103.              waist="Impulse Belt",
  104.              legs="Arcadian braccae +1"}
  105.  
  106.     -- Eminent Bow(Decoy Down) Sets --
  107.     sets.Midshot['Eminent Bow'] = {
  108.             main="Hurlbat",
  109.             sub="Antican Axe",
  110.             range="Eminent Bow",
  111.             ammo="Adlivun Arrow",
  112.             head="Arcadian Beret +1",
  113.             neck="Arctier's Torque",
  114.             ear1="Suppanomimi",
  115.             ear2="Volley Earring",
  116.             body="Arcadian Jerkin +1",
  117.             hands="Arc. Bracers +1",
  118.             ring1="Paqichikaji Ring",
  119.             ring2="Rajas Ring",
  120.             back="Libeccio Mantle",
  121.             waist="Impulse Belt",
  122.             legs="Arcadian Braccae +1",
  123.             feet="Orion Socks +1"}
  124.     sets.Midshot['Eminent Bow'].MidACC = set_combine(sets.Midshot['Eminent Bow'],{
  125.             ear1="Clearview Earring",
  126.             legs="Orion Braccae +1",
  127.             feet="Orion Socks +1"})
  128.     sets.Midshot['Eminent Bow'].HighACC = set_combine(sets.Midshot['Eminent Bow'].MidACC,{
  129.             neck="Peacock Charm",
  130.             hands="Seiryu's Kote",
  131.             ring2="Arewe Ring"})
  132.  
  133.     -- Eminent Bow(Decoy Up) Sets --
  134.     sets.Midshot['Eminent Bow'].Decoy = set_combine(sets.Midshot['Eminent Bow'],{})
  135.     sets.Midshot['Eminent Bow'].MidACC.Decoy = set_combine(sets.Midshot['Eminent Bow'].MidACC,{})
  136.     sets.Midshot['Eminent Bow'].HighACC.Decoy = set_combine(sets.Midshot['Eminent Bow'].HighACC,{})
  137.  
  138.     -- Eminent Bow(Enmity) Sets --
  139.     sets.Midshot['Eminent Bow'].Enmity = set_combine(sets.Midshot['Eminent Bow'],{})
  140.     sets.Midshot['Eminent Bow'].MidACC.Enmity = set_combine(sets.Midshot['Eminent Bow'].MidACC,{})
  141.     sets.Midshot['Eminent Bow'].HighACC.Enmity = set_combine(sets.Midshot['Eminent Bow'].HighACC,{})
  142.  
  143.     -- Eminent Bow(AM) Sets --
  144.     sets.Midshot['Eminent Bow'].AM = set_combine(sets.Midshot['Eminent Bow'],{})
  145.     sets.Midshot['Eminent Bow'].MidACC.AM = set_combine(sets.Midshot['Eminent Bow'].MidACC,{})
  146.     sets.Midshot['Eminent Bow'].HighACC.AM = set_combine(sets.Midshot['Eminent Bow'].HighACC,{})
  147.  
  148.     -- Eminent Bow(Decoy Down: Ionis) Sets --
  149.     sets.Midshot['Eminent Bow'].Ionis = set_combine(sets.Midshot['Eminent Bow'],{})
  150.     sets.Midshot['Eminent Bow'].MidACC.Ionis = set_combine(sets.Midshot['Eminent Bow'].MidACC,{})
  151.     sets.Midshot['Eminent Bow'].HighACC.Ionis = set_combine(sets.Midshot['Eminent Bow'].HighACC,{})
  152.  
  153.     -- Eminent Bow(Decoy Up: Ionis) Sets --
  154.     sets.Midshot['Eminent Bow'].Decoy.Ionis = set_combine(sets.Midshot['Eminent Bow'],{})
  155.     sets.Midshot['Eminent Bow'].MidACC.Decoy.Ionis = set_combine(sets.Midshot['Eminent Bow'].MidACC,{})
  156.     sets.Midshot['Eminent Bow'].HighACC.Decoy.Ionis = set_combine(sets.Midshot['Eminent Bow'].HighACC,{})
  157.  
  158.     -- Eminent Bow(Decoy Down: SAM Roll) Sets --
  159.     sets.Midshot['Eminent Bow'].STP = set_combine(sets.Midshot['Eminent Bow'],{})
  160.     sets.Midshot['Eminent Bow'].MidACC.STP = set_combine(sets.Midshot['Eminent Bow'].MidACC,{})
  161.     sets.Midshot['Eminent Bow'].HighACC.STP = set_combine(sets.Midshot['Eminent Bow'].HighACC,{})
  162.  
  163.     -- Eminent Bow(Decoy Up: SAM Roll) Sets --
  164.     sets.Midshot['Eminent Bow'].Decoy.STP = set_combine(sets.Midshot['Eminent Bow'],{})
  165.     sets.Midshot['Eminent Bow'].MidACC.Decoy.STP = set_combine(sets.Midshot['Eminent Bow'].MidACC,{})
  166.     sets.Midshot['Eminent Bow'].HighACC.Decoy.STP = set_combine(sets.Midshot['Eminent Bow'].HighACC,{})
  167.  
  168.     -- Eminent Bow(Decoy Down: Ionis + SAM Roll) Sets --
  169.     sets.Midshot['Eminent Bow'].Ionis.STP = set_combine(sets.Midshot['Eminent Bow'],{})
  170.     sets.Midshot['Eminent Bow'].MidACC.Ionis.STP = set_combine(sets.Midshot['Eminent Bow'].MidACC,{})
  171.     sets.Midshot['Eminent Bow'].HighACC.Ionis.STP = set_combine(sets.Midshot['Eminent Bow'].HighACC,{})
  172.  
  173.     -- Eminent Bow(Decoy Up: Ionis + SAM Roll) Sets --
  174.     sets.Midshot['Eminent Bow'].Decoy.Ionis.STP = set_combine(sets.Midshot['Eminent Bow'],{})
  175.     sets.Midshot['Eminent Bow'].MidACC.Decoy.Ionis.STP = set_combine(sets.Midshot['Eminent Bow'].MidACC,{})
  176.     sets.Midshot['Eminent Bow'].HighACC.Decoy.Ionis.STP = set_combine(sets.Midshot['Eminent Bow'].HighACC,{})
  177.  
  178.     -- Eminent Bow Barrage Sets --
  179.     sets.Midshot['Eminent Bow'].Barrage = set_combine(sets.Midshot['Eminent Bow'],{},Barrage)
  180.     sets.Midshot['Eminent Bow'].MidACC.Barrage = set_combine(sets.Midshot['Eminent Bow'].MidACC,{},Barrage)
  181.     sets.Midshot['Eminent Bow'].HighACC.Barrage = set_combine(sets.Midshot['Eminent Bow'].HighACC,{},Barrage)
  182.  
  183.     -- Eminent Gun(Decoy Down) Sets --
  184.     sets.Midshot['Eminent Gun'] = {
  185.             main="Hurlbat",
  186.             sub="Antican Axe",
  187.             range="Eminent Gun",
  188.             ammo="Adlivun Bullet",
  189.             head="Arcadian Beret +1",
  190.             neck="Arctier's Torque",
  191.             ear1="Suppanomimi",
  192.             ear2="Volley Earring",
  193.             body="Arcadian Jerkin +1",
  194.             hands="Arc. Bracers +1",
  195.             ring1="Paqichikaji Ring",
  196.             ring2="Rajas Ring",
  197.             back="Libeccio Mantle",
  198.             waist="Impulse Belt",
  199.             legs="Arcadian Braccae +1",
  200.             feet="Orion Socks +1"}
  201.     sets.Midshot['Eminent Gun'].MidACC = set_combine(sets.Midshot['Eminent Gun'],{
  202.             ear1="Clearview Earring",
  203.             legs="Orion Braccae +1",
  204.             feet="Orion Socks +1"})
  205.     sets.Midshot['Eminent Bow'].HighACC = set_combine(sets.Midshot['Eminent Gun'].MidACC,{
  206.             neck="Peacock Charm",
  207.             hands="Seiryu's Kote",
  208.             ring2="Arewe Ring"})
  209.  
  210.     -- Eminent Gun(Decoy Up) Sets --
  211.     sets.Midshot['Eminent Gun'].Decoy = set_combine(sets.Midshot['Eminent Gun'],{})
  212.     sets.Midshot['Eminent Gun'].MidACC.Decoy = set_combine(sets.Midshot['Eminent Gun'].MidACC,{})
  213.     sets.Midshot['Eminent Gun'].HighACC.Decoy = set_combine(sets.Midshot['Eminent Gun'].HighACC,{})
  214.  
  215.     -- Eminent Gun(Enmity) Sets --
  216.     sets.Midshot['Eminent Gun'].Enmity = set_combine(sets.Midshot['Eminent Gun'],{})
  217.     sets.Midshot['Eminent Gun'].MidACC.Enmity = set_combine(sets.Midshot['Eminent Gun'].MidACC,{})
  218.     sets.Midshot['Eminent Gun'].HighACC.Enmity = set_combine(sets.Midshot['Eminent Gun'].HighACC,{})
  219.  
  220.     -- Eminent Gun(AM) Sets --
  221.     sets.Midshot['Eminent Gun'].AM = set_combine(sets.Midshot['Eminent Gun'],{})
  222.     sets.Midshot['Eminent Gun'].MidACC.AM = set_combine(sets.Midshot['Eminent Gun'].MidACC,{})
  223.     sets.Midshot['Eminent Gun'].HighACC.AM = set_combine(sets.Midshot['Eminent Gun'].HighACC,{})
  224.  
  225.     -- Eminent Gun(Decoy Down: Ionis) Sets --
  226.     sets.Midshot['Eminent Gun'].Ionis = set_combine(sets.Midshot['Eminent Gun'],{})
  227.     sets.Midshot['Eminent Gun'].MidACC.Ionis = set_combine(sets.Midshot['Eminent Gun'].MidACC,{})
  228.     sets.Midshot['Eminent Gun'].HighACC.Ionis = set_combine(sets.Midshot['Eminent Gun'].HighACC,{})
  229.  
  230.     -- Eminent Gun(Decoy Up: Ionis) Sets --
  231.     sets.Midshot['Eminent Gun'].Decoy.Ionis = set_combine(sets.Midshot['Eminent Gun'],{})
  232.     sets.Midshot['Eminent Gun'].MidACC.Decoy.Ionis = set_combine(sets.Midshot['Eminent Gun'].MidACC,{})
  233.     sets.Midshot['Eminent Gun'].HighACC.Decoy.Ionis = set_combine(sets.Midshot['Eminent Gun'].HighACC,{})
  234.  
  235.     -- Eminent Gun(Decoy Down: SAM Roll) Sets --
  236.     sets.Midshot['Eminent Gun'].STP = set_combine(sets.Midshot['Eminent Gun'],{})
  237.     sets.Midshot['Eminent Gun'].MidACC.STP = set_combine(sets.Midshot['Eminent Gun'].MidACC,{})
  238.     sets.Midshot['Eminent Gun'].HighACC.STP = set_combine(sets.Midshot['Eminent Gun'].HighACC,{})
  239.  
  240.     -- Eminent Gun(Decoy Up: SAM Roll) Sets --
  241.     sets.Midshot['Eminent Gun'].Decoy.STP = set_combine(sets.Midshot['Eminent Gun'],{})
  242.     sets.Midshot['Eminent Gun'].MidACC.Decoy.STP = set_combine(sets.Midshot['Eminent Gun'].MidACC,{})
  243.     sets.Midshot['Eminent Gun'].HighACC.Decoy.STP = set_combine(sets.Midshot['Eminent Gun'].HighACC,{})
  244.  
  245.     -- Eminent Gun(Decoy Down: Ionis + SAM Roll) Sets --
  246.     sets.Midshot['Eminent Gun'].Ionis.STP = set_combine(sets.Midshot['Eminent Gun'],{})
  247.     sets.Midshot['Eminent Gun'].MidACC.Ionis.STP = set_combine(sets.Midshot['Eminent Gun'].MidACC,{})
  248.     sets.Midshot['Eminent Gun'].HighACC.Ionis.STP = set_combine(sets.Midshot['Eminent Gun'].HighACC,{})
  249.  
  250.     -- Eminent Gun(Decoy Up: Ionis + SAM Roll) Sets --
  251.     sets.Midshot['Eminent Gun'].Decoy.Ionis.STP = set_combine(sets.Midshot['Eminent Gun'],{})
  252.     sets.Midshot['Eminent Gun'].MidACC.Decoy.Ionis.STP = set_combine(sets.Midshot['Eminent Gun'].MidACC,{})
  253.     sets.Midshot['Eminent Gun'].HighACC.Decoy.Ionis.STP = set_combine(sets.Midshot['Eminent Gun'].HighACC,{})
  254.  
  255.     -- Eminent Gun Barrage Sets --
  256.     sets.Midshot['Eminent Gun'].Barrage = set_combine(sets.Midshot['Eminent Gun'],{},Barrage)
  257.     sets.Midshot['Eminent Gun'].MidACC.Barrage = set_combine(sets.Midshot['Eminent Gun'].MidACC,{},Barrage)
  258.     sets.Midshot['Eminent Gun'].HighACC.Barrage = set_combine(sets.Midshot['Eminent Gun'].HighACC,{},Barrage)
  259.  
  260.     -- Eminent Bow(Decoy Down) /SAM Sets --
  261.     sets.Midshot['Eminent Bow'].SAM = {
  262.             main="Hurlbat",
  263.             sub="Antican Axe",
  264.             range="Eminent Bow",
  265.             ammo="Adlivun Arrow",
  266.             head="Arcadian Beret +1",
  267.             neck="Arctier's Torque",
  268.             ear1="Suppanomimi",
  269.             ear2="Volley Earring",
  270.             body="Arcadian Jerkin +1",
  271.             hands="Arc. Bracers +1",
  272.             ring1="Paqichikaji Ring",
  273.             ring2="Rajas Ring",
  274.             back="Libeccio Mantle",
  275.             waist="Impulse Belt",
  276.             legs="Arcadian Braccae +1",
  277.             feet="Orion Socks +1"}
  278.     sets.Midshot['Eminent Bow'].SAM.MidACC = set_combine(sets.Midshot['Eminent Bow'].SAM,{
  279.             ear1="Clearview Earring",
  280.             legs="Orion Braccae +1",
  281.             feet="Orion Socks +1"})
  282.     sets.Midshot['Eminent Bow'].SAM.HighACC = set_combine(sets.Midshot['Eminent Bow'].SAM.MidACC,{
  283.             neck="Peacock Charm",
  284.             hands="Seiryu's Kote",
  285.             ring2="Arewe Ring"})
  286.  
  287.     -- Eminent Bow(Decoy Up) Sets --
  288.     sets.Midshot['Eminent Bow'].SAM.Decoy = set_combine(sets.Midshot['Eminent Bow'].SAM,{})
  289.     sets.Midshot['Eminent Bow'].SAM.MidACC.Decoy = set_combine(sets.Midshot['Eminent Bow'].SAM.MidACC,{})
  290.     sets.Midshot['Eminent Bow'].SAM.HighACC.Decoy = set_combine(sets.Midshot['Eminent Bow'].SAM.HighACC,{})
  291.  
  292.     -- Eminent Bow(Enmity) Sets --
  293.     sets.Midshot['Eminent Bow'].SAM.Enmity = set_combine(sets.Midshot['Eminent Bow'].SAM,{})
  294.     sets.Midshot['Eminent Bow'].SAM.MidACC.Enmity = set_combine(sets.Midshot['Eminent Bow'].SAM.MidACC,{})
  295.     sets.Midshot['Eminent Bow'].SAM.HighACC.Enmity = set_combine(sets.Midshot['Eminent Bow'].SAM.HighACC,{})
  296.  
  297.     -- Eminent Bow(AM) Sets --
  298.     sets.Midshot['Eminent Bow'].SAM.AM = set_combine(sets.Midshot['Eminent Bow'].SAM,{})
  299.     sets.Midshot['Eminent Bow'].SAM.MidACC.AM = set_combine(sets.Midshot['Eminent Bow'].SAM.MidACC,{})
  300.     sets.Midshot['Eminent Bow'].SAM.HighACC.AM = set_combine(sets.Midshot['Eminent Bow'].SAM.HighACC,{})
  301.  
  302.     -- Eminent Bow(Decoy Down: Ionis) Sets --
  303.     sets.Midshot['Eminent Bow'].SAM.Ionis = set_combine(sets.Midshot['Eminent Bow'].SAM,{})
  304.     sets.Midshot['Eminent Bow'].SAM.MidACC.Ionis = set_combine(sets.Midshot['Eminent Bow'].SAM.MidACC,{})
  305.     sets.Midshot['Eminent Bow'].SAM.HighACC.Ionis = set_combine(sets.Midshot['Eminent Bow'].SAM.HighACC,{})
  306.  
  307.     -- Eminent Bow(Decoy Up: Ionis) Sets --
  308.     sets.Midshot['Eminent Bow'].SAM.Decoy.Ionis = set_combine(sets.Midshot['Eminent Bow'].SAM,{})
  309.     sets.Midshot['Eminent Bow'].SAM.MidACC.Decoy.Ionis = set_combine(sets.Midshot['Eminent Bow'].SAM.MidACC,{})
  310.     sets.Midshot['Eminent Bow'].SAM.HighACC.Decoy.Ionis = set_combine(sets.Midshot['Eminent Bow'].SAM.HighACC,{})
  311.  
  312.     -- Eminent Bow(Decoy Down: SAM Roll) Sets --
  313.     sets.Midshot['Eminent Bow'].SAM.STP = set_combine(sets.Midshot['Eminent Bow'].SAM,{})
  314.     sets.Midshot['Eminent Bow'].SAM.MidACC.STP = set_combine(sets.Midshot['Eminent Bow'].SAM.MidACC,{})
  315.     sets.Midshot['Eminent Bow'].SAM.HighACC.STP = set_combine(sets.Midshot['Eminent Bow'].SAM.HighACC,{})
  316.  
  317.     -- Eminent Bow(Decoy Up: SAM Roll) Sets --
  318.     sets.Midshot['Eminent Bow'].SAM.Decoy.STP = set_combine(sets.Midshot['Eminent Bow'].SAM,{})
  319.     sets.Midshot['Eminent Bow'].SAM.MidACC.Decoy.STP = set_combine(sets.Midshot['Eminent Bow'].SAM.MidACC,{})
  320.     sets.Midshot['Eminent Bow'].SAM.HighACC.Decoy.STP = set_combine(sets.Midshot['Eminent Bow'].SAM.HighACC,{})
  321.  
  322.     -- Eminent Bow(Decoy Down: Ionis + SAM Roll) Sets --
  323.     sets.Midshot['Eminent Bow'].SAM.Ionis.STP = set_combine(sets.Midshot['Eminent Bow'].SAM,{})
  324.     sets.Midshot['Eminent Bow'].SAM.MidACC.Ionis.STP = set_combine(sets.Midshot['Eminent Bow'].SAM.MidACC,{})
  325.     sets.Midshot['Eminent Bow'].SAM.HighACC.Ionis.STP = set_combine(sets.Midshot['Eminent Bow'].SAM.HighACC,{})
  326.  
  327.     -- Eminent Bow(Decoy Up: Ionis + SAM Roll) Sets --
  328.     sets.Midshot['Eminent Bow'].SAM.Decoy.Ionis.STP = set_combine(sets.Midshot['Eminent Bow'].SAM,{})
  329.     sets.Midshot['Eminent Bow'].SAM.MidACC.Decoy.Ionis.STP = set_combine(sets.Midshot['Eminent Bow'].SAM.MidACC,{})
  330.     sets.Midshot['Eminent Bow'].SAM.HighACC.Decoy.Ionis.STP = set_combine(sets.Midshot['Eminent Bow'].SAM.HighACC,{})
  331.  
  332.     -- Eminent Bow Barrage Sets --
  333.     sets.Midshot['Eminent Bow'].SAM.Barrage = set_combine(sets.Midshot['Eminent Bow'].SAM,{},Barrage)
  334.     sets.Midshot['Eminent Bow'].SAM.MidACC.Barrage = set_combine(sets.Midshot['Eminent Bow'].SAM.MidACC,{},Barrage)
  335.     sets.Midshot['Eminent Bow'].SAM.HighACC.Barrage = set_combine(sets.Midshot['Eminent Bow'].SAM.HighACC,{},Barrage)
  336.  
  337.     -- Eminent Gun(Decoy Down) /SAM Sets --
  338.     sets.Midshot['Eminent Gun'].SAM = {
  339.             main="Hurlbat",
  340.             sub="Antican Axe",
  341.             range="Eminent Gun",
  342.             ammo="Adlivun Bullet",
  343.             head="Arcadian Beret +1",
  344.             neck="Arctier's Torque",
  345.             ear1="Suppanomimi",
  346.             ear2="Volley Earring",
  347.             body="Arcadian Jerkin +1",
  348.             hands="Arc. Bracers +1",
  349.             ring1="Paqichikaji Ring",
  350.             ring2="Rajas Ring",
  351.             back="Libeccio Mantle",
  352.             waist="Impulse Belt",
  353.             legs="Arcadian Braccae +1",
  354.             feet="Orion Socks +1"}
  355.     sets.Midshot['Eminent Gun'].SAM.MidACC = set_combine(sets.Midshot['Eminent Gun'].SAM,{
  356.             ear1="Clearview Earring",
  357.             legs="Orion Braccae +1",
  358.             feet="Orion Socks +1"})
  359.     sets.Midshot['Eminent Gun'].SAM.HighACC = set_combine(sets.Midshot['Eminent Gun'].SAM.MidACC,{
  360.             neck="Peacock Charm",
  361.             hands="Seiryu's Kote",
  362.             ring2="Arewe Ring"})
  363.  
  364.     -- Eminent Gun(Decoy Up) Sets --
  365.     sets.Midshot['Eminent Gun'].SAM.Decoy = set_combine(sets.Midshot['Eminent Gun'].SAM,{})
  366.     sets.Midshot['Eminent Gun'].SAM.MidACC.Decoy = set_combine(sets.Midshot['Eminent Gun'].SAM.MidACC,{})
  367.     sets.Midshot['Eminent Gun'].SAM.HighACC.Decoy = set_combine(sets.Midshot['Eminent Gun'].SAM.HighACC,{})
  368.  
  369.     -- Eminent Gun(Enmity) Sets --
  370.     sets.Midshot['Eminent Gun'].SAM.Enmity = set_combine(sets.Midshot['Eminent Gun'].SAM,{})
  371.     sets.Midshot['Eminent Gun'].SAM.MidACC.Enmity = set_combine(sets.Midshot['Eminent Gun'].SAM.MidACC,{})
  372.     sets.Midshot['Eminent Gun'].SAM.HighACC.Enmity = set_combine(sets.Midshot['Eminent Gun'].SAM.HighACC,{})
  373.  
  374.     -- Eminent Gun(AM) Sets --
  375.     sets.Midshot['Eminent Gun'].SAM.AM = set_combine(sets.Midshot['Eminent Gun'].SAM,{})
  376.     sets.Midshot['Eminent Gun'].SAM.MidACC.AM = set_combine(sets.Midshot['Eminent Gun'].SAM.MidACC,{})
  377.     sets.Midshot['Eminent Gun'].SAM.HighACC.AM = set_combine(sets.Midshot['Eminent Gun'].SAM.HighACC,{})
  378.  
  379.     -- Eminent Gun(Decoy Down: Ionis) Sets --
  380.     sets.Midshot['Eminent Gun'].SAM.Ionis = set_combine(sets.Midshot['Eminent Gun'].SAM,{})
  381.     sets.Midshot['Eminent Gun'].SAM.MidACC.Ionis = set_combine(sets.Midshot['Eminent Gun'].SAM.MidACC,{})
  382.     sets.Midshot['Eminent Gun'].SAM.HighACC.Ionis = set_combine(sets.Midshot['Eminent Gun'].SAM.HighACC,{})
  383.  
  384.     -- Eminent Gun(Decoy Up: Ionis) Sets --
  385.     sets.Midshot['Eminent Gun'].SAM.Decoy.Ionis = set_combine(sets.Midshot['Eminent Gun'].SAM,{})
  386.     sets.Midshot['Eminent Gun'].SAM.MidACC.Decoy.Ionis = set_combine(sets.Midshot['Eminent Gun'].SAM.MidACC,{})
  387.     sets.Midshot['Eminent Gun'].SAM.HighACC.Decoy.Ionis = set_combine(sets.Midshot['Eminent Gun'].SAM.HighACC,{})
  388.  
  389.     -- Eminent Gun(Decoy Down: SAM Roll) Sets --
  390.     sets.Midshot['Eminent Gun'].SAM.STP = set_combine(sets.Midshot['Eminent Gun'].SAM,{})
  391.     sets.Midshot['Eminent Gun'].SAM.MidACC.STP = set_combine(sets.Midshot['Eminent Gun'].SAM.MidACC,{})
  392.     sets.Midshot['Eminent Gun'].SAM.HighACC.STP = set_combine(sets.Midshot['Eminent Gun'].SAM.HighACC,{})
  393.  
  394.     -- Eminent Gun(Decoy Up: SAM Roll) Sets --
  395.     sets.Midshot['Eminent Gun'].SAM.Decoy.STP = set_combine(sets.Midshot['Eminent Gun'].SAM,{})
  396.     sets.Midshot['Eminent Gun'].SAM.MidACC.Decoy.STP = set_combine(sets.Midshot['Eminent Gun'].SAM.MidACC,{})
  397.     sets.Midshot['Eminent Gun'].SAM.HighACC.Decoy.STP = set_combine(sets.Midshot['Eminent Gun'].SAM.HighACC,{})
  398.  
  399.     -- Eminent Gun(Decoy Down: Ionis + SAM Roll) Sets --
  400.     sets.Midshot['Eminent Gun'].SAM.Ionis.STP = set_combine(sets.Midshot['Eminent Gun'].SAM,{})
  401.     sets.Midshot['Eminent Gun'].SAM.MidACC.Ionis.STP = set_combine(sets.Midshot['Eminent Gun'].SAM.MidACC,{})
  402.     sets.Midshot['Eminent Gun'].SAM.HighACC.Ionis.STP = set_combine(sets.Midshot['Eminent Gun'].SAM.HighACC,{})
  403.  
  404.     -- Eminent Gun(Decoy Up: Ionis + SAM Roll) Sets --
  405.     sets.Midshot['Eminent Gun'].SAM.Decoy.Ionis.STP = set_combine(sets.Midshot['Eminent Gun'].SAM,{})
  406.     sets.Midshot['Eminent Gun'].SAM.MidACC.Decoy.Ionis.STP = set_combine(sets.Midshot['Eminent Gun'].SAM.MidACC,{})
  407.     sets.Midshot['Eminent Gun'].SAM.HighACC.Decoy.Ionis.STP = set_combine(sets.Midshot['Eminent Gun'].SAM.HighACC,{})
  408.  
  409.     -- Eminent Gun Barrage Sets --
  410.     sets.Midshot['Eminent Gun'].SAM.Barrage = set_combine(sets.Midshot['Eminent Gun'].SAM,{},Barrage)
  411.     sets.Midshot['Eminent Gun'].SAM.MidACC.Barrage = set_combine(sets.Midshot['Eminent Gun'].SAM.MidACC,{},Barrage)
  412.     sets.Midshot['Eminent Gun'].SAM.HighACC.Barrage = set_combine(sets.Midshot['Eminent Gun'].SAM.HighACC,{},Barrage)
  413.    
  414.     -- Eminent Bow(Decoy Down) /NIN Sets --
  415.     sets.Midshot['Eminent Bow'].NIN = {
  416.             main="Hurlbat",
  417.             sub="Antican Axe",
  418.             range="Eminent Bow",
  419.             ammo="Adlivun Arrow",
  420.             head="Arcadian Beret +1",
  421.             neck="Arctier's Torque",
  422.             ear1="Suppanomimi",
  423.             ear2="Volley Earring",
  424.             body="Arcadian Jerkin +1",
  425.             hands="Arc. Bracers +1",
  426.             ring1="Paqichikaji Ring",
  427.             ring2="Rajas Ring",
  428.             back="Libeccio Mantle",
  429.             waist="Impulse Belt",
  430.             legs="Arcadian Braccae +1",
  431.             feet="Orion Socks +1"}
  432.     sets.Midshot['Eminent Bow'].NIN.MidACC = set_combine(sets.Midshot['Eminent Bow'].NIN,{
  433.             ear1="Clearview Earring",
  434.             legs="Orion Braccae +1",
  435.             feet="Orion Socks +1"})
  436.     sets.Midshot['Eminent Bow'].NIN.HighACC = set_combine(sets.Midshot['Eminent Bow'].NIN.MidACC,{
  437.             neck="Peacock Charm",
  438.             hands="Seiryu's Kote",
  439.             ring2="Arewe Ring"})
  440.  
  441.     -- Eminent Bow(Decoy Up) Sets --
  442.     sets.Midshot['Eminent Bow'].NIN.Decoy = set_combine(sets.Midshot['Eminent Bow'].NIN,{})
  443.     sets.Midshot['Eminent Bow'].NIN.MidACC.Decoy = set_combine(sets.Midshot['Eminent Bow'].NIN.MidACC,{})
  444.     sets.Midshot['Eminent Bow'].NIN.HighACC.Decoy = set_combine(sets.Midshot['Eminent Bow'].NIN.HighACC,{})
  445.  
  446.     -- Eminent Bow(Enmity) Sets --
  447.     sets.Midshot['Eminent Bow'].NIN.Enmity = set_combine(sets.Midshot['Eminent Bow'].NIN,{})
  448.     sets.Midshot['Eminent Bow'].NIN.MidACC.Enmity = set_combine(sets.Midshot['Eminent Bow'].NIN.MidACC,{})
  449.     sets.Midshot['Eminent Bow'].NIN.HighACC.Enmity = set_combine(sets.Midshot['Eminent Bow'].NIN.HighACC,{})
  450.  
  451.     -- Eminent Bow(AM) Sets --
  452.     sets.Midshot['Eminent Bow'].NIN.AM = set_combine(sets.Midshot['Eminent Bow'].NIN,{})
  453.     sets.Midshot['Eminent Bow'].NIN.MidACC.AM = set_combine(sets.Midshot['Eminent Bow'].NIN.MidACC,{})
  454.     sets.Midshot['Eminent Bow'].NIN.HighACC.AM = set_combine(sets.Midshot['Eminent Bow'].NIN.HighACC,{})
  455.  
  456.     -- Eminent Bow(Decoy Down: Ionis) Sets --
  457.     sets.Midshot['Eminent Bow'].NIN.Ionis = set_combine(sets.Midshot['Eminent Bow'].NIN,{})
  458.     sets.Midshot['Eminent Bow'].NIN.MidACC.Ionis = set_combine(sets.Midshot['Eminent Bow'].NIN.MidACC,{})
  459.     sets.Midshot['Eminent Bow'].NIN.HighACC.Ionis = set_combine(sets.Midshot['Eminent Bow'].NIN.HighACC,{})
  460.  
  461.     -- Eminent Bow(Decoy Up: Ionis) Sets --
  462.     sets.Midshot['Eminent Bow'].NIN.Decoy.Ionis = set_combine(sets.Midshot['Eminent Bow'].NIN,{})
  463.     sets.Midshot['Eminent Bow'].NIN.MidACC.Decoy.Ionis = set_combine(sets.Midshot['Eminent Bow'].NIN.MidACC,{})
  464.     sets.Midshot['Eminent Bow'].NIN.HighACC.Decoy.Ionis = set_combine(sets.Midshot['Eminent Bow'].NIN.HighACC,{})
  465.  
  466.     -- Eminent Bow(Decoy Down: SAM Roll) Sets --
  467.     sets.Midshot['Eminent Bow'].NIN.STP = set_combine(sets.Midshot['Eminent Bow'].NIN,{})
  468.     sets.Midshot['Eminent Bow'].NIN.MidACC.STP = set_combine(sets.Midshot['Eminent Bow'].NIN.MidACC,{})
  469.     sets.Midshot['Eminent Bow'].NIN.HighACC.STP = set_combine(sets.Midshot['Eminent Bow'].NIN.HighACC,{})
  470.  
  471.     -- Eminent Bow(Decoy Up: SAM Roll) Sets --
  472.     sets.Midshot['Eminent Bow'].NIN.Decoy.STP = set_combine(sets.Midshot['Eminent Bow'].NIN,{})
  473.     sets.Midshot['Eminent Bow'].NIN.MidACC.Decoy.STP = set_combine(sets.Midshot['Eminent Bow'].NIN.MidACC,{})
  474.     sets.Midshot['Eminent Bow'].NIN.HighACC.Decoy.STP = set_combine(sets.Midshot['Eminent Bow'].NIN.HighACC,{})
  475.  
  476.     -- Eminent Bow(Decoy Down: Ionis + SAM Roll) Sets --
  477.     sets.Midshot['Eminent Bow'].NIN.Ionis.STP = set_combine(sets.Midshot['Eminent Bow'].NIN,{})
  478.     sets.Midshot['Eminent Bow'].NIN.MidACC.Ionis.STP = set_combine(sets.Midshot['Eminent Bow'].NIN.MidACC,{})
  479.     sets.Midshot['Eminent Bow'].NIN.HighACC.Ionis.STP = set_combine(sets.Midshot['Eminent Bow'].NIN.HighACC,{})
  480.  
  481.     -- Eminent Bow(Decoy Up: Ionis + SAM Roll) Sets --
  482.     sets.Midshot['Eminent Bow'].NIN.Decoy.Ionis.STP = set_combine(sets.Midshot['Eminent Bow'].NIN,{})
  483.     sets.Midshot['Eminent Bow'].NIN.MidACC.Decoy.Ionis.STP = set_combine(sets.Midshot['Eminent Bow'].NIN.MidACC,{})
  484.     sets.Midshot['Eminent Bow'].NIN.HighACC.Decoy.Ionis.STP = set_combine(sets.Midshot['Eminent Bow'].NIN.HighACC,{})
  485.  
  486.     -- Eminent Bow Barrage Sets --
  487.     sets.Midshot['Eminent Bow'].NIN.Barrage = set_combine(sets.Midshot['Eminent Bow'].NIN,{},Barrage)
  488.     sets.Midshot['Eminent Bow'].NIN.MidACC.Barrage = set_combine(sets.Midshot['Eminent Bow'].NIN.MidACC,{},Barrage)
  489.     sets.Midshot['Eminent Bow'].NIN.HighACC.Barrage = set_combine(sets.Midshot['Eminent Bow'].NIN.HighACC,{},Barrage)
  490.  
  491.     -- Eminent Gun(Decoy Down) /NIN Sets --
  492.     sets.Midshot['Eminent Gun'].NIN = {
  493.             main="Hurlbat",
  494.             sub="Antican Axe",
  495.             range="Eminent Gun",
  496.             ammo="Adlivun Bullet",
  497.             head="Arcadian Beret +1",
  498.             neck="Arctier's Torque",
  499.             ear1="Suppanomimi",
  500.             ear2="Volley Earring",
  501.             body="Arcadian Jerkin +1",
  502.             hands="Arc. Bracers +1",
  503.             ring1="Paqichikaji Ring",
  504.             ring2="Rajas Ring",
  505.             back="Libeccio Mantle",
  506.             waist="Impulse Belt",
  507.             legs="Arcadian Braccae +1",
  508.             feet="Orion Socks +1"}
  509.     sets.Midshot['Eminent Gun'].NIN.MidACC = set_combine(sets.Midshot['Eminent Gun'].NIN,{
  510.             ear1="Clearview Earring",
  511.             legs="Orion Braccae +1",
  512.             feet="Orion Socks +1"})
  513.     sets.Midshot['Eminent Gun'].NIN.HighACC = set_combine(sets.Midshot['Eminent Gun'].NIN.MidACC,{
  514.             neck="Peacock Charm",
  515.             hands="Seiryu's Kote",
  516.             ring2="Arewe Ring"})
  517.  
  518.     -- Eminent Gun(Decoy Up) Sets --
  519.     sets.Midshot['Eminent Gun'].NIN.Decoy = set_combine(sets.Midshot['Eminent Gun'].NIN,{})
  520.     sets.Midshot['Eminent Gun'].NIN.MidACC.Decoy = set_combine(sets.Midshot['Eminent Gun'].NIN.MidACC,{})
  521.     sets.Midshot['Eminent Gun'].NIN.HighACC.Decoy = set_combine(sets.Midshot['Eminent Gun'].NIN.HighACC,{})
  522.  
  523.     -- Eminent Gun(Enmity) Sets --
  524.     sets.Midshot['Eminent Gun'].NIN.Enmity = set_combine(sets.Midshot['Eminent Gun'].NIN,{})
  525.     sets.Midshot['Eminent Gun'].NIN.MidACC.Enmity = set_combine(sets.Midshot['Eminent Gun'].NIN.MidACC,{})
  526.     sets.Midshot['Eminent Gun'].NIN.HighACC.Enmity = set_combine(sets.Midshot['Eminent Gun'].NIN.HighACC,{})
  527.  
  528.     -- Eminent Gun(AM) Sets --
  529.     sets.Midshot['Eminent Gun'].NIN.AM = set_combine(sets.Midshot['Eminent Gun'].NIN,{})
  530.     sets.Midshot['Eminent Gun'].NIN.MidACC.AM = set_combine(sets.Midshot['Eminent Gun'].NIN.MidACC,{})
  531.     sets.Midshot['Eminent Gun'].NIN.HighACC.AM = set_combine(sets.Midshot['Eminent Gun'].NIN.HighACC,{})
  532.  
  533.     -- Eminent Gun(Decoy Down: Ionis) Sets --
  534.     sets.Midshot['Eminent Gun'].NIN.Ionis = set_combine(sets.Midshot['Eminent Gun'].NIN,{})
  535.     sets.Midshot['Eminent Gun'].NIN.MidACC.Ionis = set_combine(sets.Midshot['Eminent Gun'].NIN.MidACC,{})
  536.     sets.Midshot['Eminent Gun'].NIN.HighACC.Ionis = set_combine(sets.Midshot['Eminent Gun'].NIN.HighACC,{})
  537.  
  538.     -- Eminent Gun(Decoy Up: Ionis) Sets --
  539.     sets.Midshot['Eminent Gun'].NIN.Decoy.Ionis = set_combine(sets.Midshot['Eminent Gun'].NIN,{})
  540.     sets.Midshot['Eminent Gun'].NIN.MidACC.Decoy.Ionis = set_combine(sets.Midshot['Eminent Gun'].NIN.MidACC,{})
  541.     sets.Midshot['Eminent Gun'].NIN.HighACC.Decoy.Ionis = set_combine(sets.Midshot['Eminent Gun'].NIN.HighACC,{})
  542.  
  543.     -- Eminent Gun(Decoy Down: SAM Roll) Sets --
  544.     sets.Midshot['Eminent Gun'].NIN.STP = set_combine(sets.Midshot['Eminent Gun'].NIN,{})
  545.     sets.Midshot['Eminent Gun'].NIN.MidACC.STP = set_combine(sets.Midshot['Eminent Gun'].NIN.MidACC,{})
  546.     sets.Midshot['Eminent Gun'].NIN.HighACC.STP = set_combine(sets.Midshot['Eminent Gun'].NIN.HighACC,{})
  547.  
  548.     -- Eminent Gun(Decoy Up: SAM Roll) Sets --
  549.     sets.Midshot['Eminent Gun'].NIN.Decoy.STP = set_combine(sets.Midshot['Eminent Gun'].NIN,{})
  550.     sets.Midshot['Eminent Gun'].NIN.MidACC.Decoy.STP = set_combine(sets.Midshot['Eminent Gun'].NIN.MidACC,{})
  551.     sets.Midshot['Eminent Gun'].NIN.HighACC.Decoy.STP = set_combine(sets.Midshot['Eminent Gun'].NIN.HighACC,{})
  552.  
  553.     -- Eminent Gun(Decoy Down: Ionis + SAM Roll) Sets --
  554.     sets.Midshot['Eminent Gun'].NIN.Ionis.STP = set_combine(sets.Midshot['Eminent Gun'].NIN,{})
  555.     sets.Midshot['Eminent Gun'].NIN.MidACC.Ionis.STP = set_combine(sets.Midshot['Eminent Gun'].NIN.MidACC,{})
  556.     sets.Midshot['Eminent Gun'].NIN.HighACC.Ionis.STP = set_combine(sets.Midshot['Eminent Gun'].NIN.HighACC,{})
  557.  
  558.     -- Eminent Gun(Decoy Up: Ionis + SAM Roll) Sets --
  559.     sets.Midshot['Eminent Gun'].NIN.Decoy.Ionis.STP = set_combine(sets.Midshot['Eminent Gun'].NIN,{})
  560.     sets.Midshot['Eminent Gun'].NIN.MidACC.Decoy.Ionis.STP = set_combine(sets.Midshot['Eminent Gun'].NIN.MidACC,{})
  561.     sets.Midshot['Eminent Gun'].NIN.HighACC.Decoy.Ionis.STP = set_combine(sets.Midshot['Eminent Gun'].NIN.HighACC,{})
  562.  
  563.     -- Eminent Gun Barrage Sets --
  564.     sets.Midshot['Eminent Gun'].NIN.Barrage = set_combine(sets.Midshot['Eminent Gun'].NIN,{},Barrage)
  565.     sets.Midshot['Eminent Gun'].NIN.MidACC.Barrage = set_combine(sets.Midshot['Eminent Gun'].NIN.MidACC,{},Barrage)
  566.     sets.Midshot['Eminent Gun'].NIN.HighACC.Barrage = set_combine(sets.Midshot['Eminent Gun'].NIN.HighACC,{},Barrage)
  567.    
  568.     -- PDT/MDT Sets --
  569.     sets.PDT = {}
  570.     sets.MDT = set_combine(sets.PDT,{})
  571.  
  572.     -- Melee Sets --
  573.     sets.Melee = {}
  574.     sets.Melee.MidACC = set_combine(sets.Melee,{})
  575.     sets.Melee.HighACC = set_combine(sets.Melee.MidACC,{})
  576.  
  577.     -- WS Base Set --
  578.     sets.WS = {}
  579.  
  580.     -- Last Stand Sets --
  581.     sets.WS["Last Stand"] = {
  582.             ammo="Adlivun Bullet",
  583.             head="Arcadian Beret +1",
  584.             neck="Light Gorget",
  585.             ear1="Suppanomimi",
  586.             ear2="Sylvan Earring",
  587.             body="Orion Jerkin +1",
  588.             hands="Arc. Bracers +1",
  589.             ring1="Stormsoul Ring",
  590.             ring2="Stormsoul Ring",
  591.             back="Terebellum Mantle",
  592.             waist="Light Belt",
  593.             legs="Arcadian Braccae +1",
  594.             feet="Orion Socks +1"}
  595.     sets.WS["Last Stand"].MidACC = set_combine(sets.WS["Last Stand"],{
  596.             feet="Orion Socks +1"})
  597.     sets.WS["Last Stand"].HighACC = set_combine(sets.WS["Last Stand"].MidACC,{
  598.             ear1="Clearview Earring",
  599.             hands="Seiryu Kote",
  600.             legs="Orion Braccae +1"})
  601.  
  602.     -- Last Stand(Attack) Set. This Set Takes Priority Over Other Sets. --
  603.     sets.WS["Last Stand"].ATT = set_combine(sets.WS["Last Stand"],{})
  604.  
  605.     -- Last Stand(Enmity) Sets --
  606.     sets.WS["Last Stand"].Enmity = set_combine(sets.WS["Last Stand"],{
  607.             hands="Arc. Bracers +1",
  608.             legs="Arc. Braccae +1",
  609.             feet="Arcadian Socks"})
  610.     sets.WS["Last Stand"].MidACC.Enmity = set_combine(sets.WS["Last Stand"].MidACC,{})
  611.     sets.WS["Last Stand"].HighACC.Enmity = set_combine(sets.WS["Last Stand"].HighACC,{})
  612.  
  613.     -- Last Stand(AM) Sets --
  614.     sets.WS["Last Stand"].AM = set_combine(sets.WS["Last Stand"],{})
  615.     sets.WS["Last Stand"].MidACC.AM = set_combine(sets.WS["Last Stand"].MidACC,{})
  616.     sets.WS["Last Stand"].HighACC.AM = set_combine(sets.WS["Last Stand"].HighACC,{})
  617.  
  618.     -- Last Stand(SAM Roll) Sets --
  619.     sets.WS["Last Stand"].STP = set_combine(sets.WS["Last Stand"],{})
  620.     sets.WS["Last Stand"].MidACC.STP = set_combine(sets.WS["Last Stand"].MidACC,{})
  621.     sets.WS["Last Stand"].HighACC.STP = set_combine(sets.WS["Last Stand"].HighACC,{})
  622.  
  623.     -- Jishnu's Radiance Sets --
  624.     sets.WS["Jishnu's Radiance"] = {
  625.             ammo="Adlivun Arrow",
  626.             head="Arcadian Beret +1",
  627.             neck="Light Gorget",
  628.             ear1="Clearview Earring",
  629.             ear2="Pixie Earring",
  630.             body="Orion Jerkin +1",
  631.             hands="Arc. Bracers +1",
  632.             ring1="Thundersoul Ring",
  633.             ring2="Thundersoul Ring",
  634.             back="Terebellum Mantle",
  635.             waist="Light Belt",
  636.             legs="Arcadian Braccae +1",
  637.             feet="Arcadian Socks"}
  638.     sets.WS["Jishnu's Radiance"].MidACC = set_combine(sets.WS["Jishnu's Radiance"],{
  639.             legs="Orion Braccae +1",
  640.             feet="Orion Socks +1"})
  641.     sets.WS["Jishnu's Radiance"].HighACC = set_combine(sets.WS["Jishnu's Radiance"].MidACC,{})
  642.  
  643.     -- Jishnu's Radiance(Attack) Set. This Set Takes Priority Over Other Sets. --
  644.     sets.WS["Jishnu's Radiance"].ATT = set_combine(sets.WS["Jishnu's Radiance"],{})
  645.  
  646.     -- Jishnu's Radiance(Enmity) Sets --
  647.     sets.WS["Jishnu's Radiance"].Enmity = set_combine(sets.WS["Jishnu's Radiance"],{})
  648.     sets.WS["Jishnu's Radiance"].MidACC.Enmity = set_combine(sets.WS["Jishnu's Radiance"].MidACC,{})
  649.     sets.WS["Jishnu's Radiance"].HighACC.Enmity = set_combine(sets.WS["Jishnu's Radiance"].HighACC,{})
  650.  
  651.     -- Jishnu's Radiance(AM) Sets --
  652.     sets.WS["Jishnu's Radiance"].AM = set_combine(sets.WS["Jishnu's Radiance"],{})
  653.     sets.WS["Jishnu's Radiance"].MidACC.AM = set_combine(sets.WS["Jishnu's Radiance"].MidACC,{})
  654.     sets.WS["Jishnu's Radiance"].HighACC.AM = set_combine(sets.WS["Jishnu's Radiance"].HighACC,{})
  655.  
  656.     -- Jishnu's Radiance(SAM Roll) Sets --
  657.     sets.WS["Jishnu's Radiance"].STP = set_combine(sets.WS["Jishnu's Radiance"],{})
  658.     sets.WS["Jishnu's Radiance"].MidACC.STP = set_combine(sets.WS["Jishnu's Radiance"].MidACC,{})
  659.     sets.WS["Jishnu's Radiance"].HighACC.STP = set_combine(sets.WS["Jishnu's Radiance"].HighACC,{})
  660.  
  661.     -- Apex Arrow Sets --
  662.     sets.WS["Apex Arrow"] = {
  663.             ammo="Adlivun Arrow",
  664.             head="Orion Beret +1",
  665.             neck="Light Gorget",
  666.             ear1="Suppanomimi",
  667.             ear2="Volley Earring",
  668.             body="Orion Jerkin +1",
  669.             hands="Orion Bracers +1",
  670.             ring1="Stormsoul Ring",
  671.             ring2="Stormsoul Ring",
  672.             back="Terebellum Mantle",
  673.             waist="Light Belt",
  674.             legs="Arcadian Braccae +1",
  675.             feet="Orion Socks +1"}
  676.     sets.WS["Apex Arrow"].MidACC = set_combine(sets.WS["Apex Arrow"],{
  677.             legs="Orion Braccae +1",
  678.             feet="Orion Socks +1"})
  679.     sets.WS["Apex Arrow"].HighACC = set_combine(sets.WS["Apex Arrow"].MidACC,{})
  680.  
  681.     -- Wildfire Set --
  682.     sets.WS.Wildfire = {}
  683.  
  684.     -- JA Sets --
  685.     sets.JA = {}
  686.     sets.JA.Shadowbind = {
  687.             head="Sylvan Gapette +2",
  688.             neck="Peacock Charm",
  689.             ear1="Clearview Earring",
  690.             ear2="Volley Earring",
  691.             body="Orion Jerkin +1",
  692.             hands="Orion Bracers +1",
  693.             ring1="Paqichikaji Ring",
  694.             ring2="Arewe Ring",
  695.             back="Libeccio Mantle",
  696.             waist="Impulse Belt",
  697.             legs="Orion Braccae +1",
  698.             feet="Orion Socks +1"}
  699.  
  700.     sets.JA.Scavenge = {feet="Orion Socks +1"}
  701.     sets.JA.Camouflage = {body="Orion Jerkin +1"}
  702.     sets.JA.Sharpshot = {legs="Orion Braccae +1"}
  703.     sets.JA["Bounty Shot"] = {hands="Syl. Glvltte. +2"}
  704.     sets.JA["Eagle Eye Shot"] = {
  705.             head="Orion Beret +1",
  706.             neck="Peacock Charm",
  707.             ear1="Clearview Earring",
  708.             ear2="Volley Earring",
  709.             body="Orion Jerkin +1",
  710.             hands="Arc. Bracers +1",
  711.             ring1="Pyrosoul Ring",
  712.             ring2="Rajas Ring",
  713.             back="Buquwik Cape",
  714.             waist="Impulse Belt",
  715.             legs="Arcadian Braccae +1",
  716.             feet="Orion Socks +1"}
  717.  
  718.     -- Waltz Set --
  719.     sets.Waltz = {}
  720.  
  721.     sets.Precast = {}
  722.     -- Fastcast Set --
  723.     sets.Precast.FastCast = {
  724.             head="Haruspex Hat +1",
  725.             neck="Orunmila's Torque",
  726.             ear1="Loquac. Earring",
  727.             hands="Thaumas Gloves",
  728.             ring1="Prolix Ring",
  729.             ring2="Veneficium Ring"}
  730.     -- Utsusemi Precast Set --
  731.     sets.Precast.Utsusemi = set_combine(sets.Precast.FastCast,{neck="Magoraga Beads"})
  732.  
  733.     sets.Midcast = {}
  734.     -- Magic Haste Set --
  735.     sets.Midcast.Haste = set_combine(sets.PDT,{})
  736. end
  737.  
  738. function pretarget(spell,action)
  739.     if spell.action_type == 'Magic' and buffactive.silence then -- Auto Use Echo Drops If You Are Silenced --
  740.         cancel_spell()
  741.         send_command('input /item "Echo Drops" <me>')
  742.     elseif spell.english == "Berserk" and buffactive.Berserk then -- Change Berserk To Aggressor If Berserk Is On --
  743.         cancel_spell()
  744.         send_command('Aggressor')
  745.     elseif spell.english == "Seigan" and buffactive.Seigan then -- Change Seigan To Third Eye If Seigan Is On --
  746.         cancel_spell()
  747.         send_command('ThirdEye')
  748.     elseif spell.english == "Meditate" and player.tp > 290 then -- Cancel Meditate If TP Is Above 290 --
  749.         cancel_spell()
  750.         add_to_chat(123, spell.name .. ' Canceled: ['..player.tp..' TP]')
  751.     elseif spell.action_type == 'Ranged Attack' and not buffactive.amnesia then -- Auto WS/Decoy Shot/Double Shot --
  752.         if player.tp >= 100 and AutoMode == 'ON' then
  753.             cancel_spell()
  754.             autoWS()
  755.         else
  756.             local recasts = windower.ffxi.get_ability_recasts()
  757.             if recasts[52] < 1 then
  758.                 cancel_spell()
  759.                 send_command('DecoyShot')
  760.             elseif recasts[126] < 1 then
  761.                 cancel_spell()
  762.                 send_command('DoubleShot')
  763.             end
  764.         end
  765.     elseif spell.action_type == 'Ranged Attack' and spell.target.distance > 24.9 then
  766.         cancel_spell()
  767.         add_to_chat(123, spell.name..' Canceled: [Out of Range]')
  768.         return
  769.     elseif spell.type == 'WeaponSkill' and player.status == 'Engaged' then
  770.         if spell.skill == 'Archery' or spell.skill == 'Marksmanship' then
  771.             if spell.target.distance > 16+target_distance then
  772.                 cancel_spell()
  773.                 add_to_chat(123, spell.name..' Canceled: [Out of Range]')
  774.                 return
  775.             end
  776.         else
  777.             if spell.target.distance > target_distance then
  778.                 cancel_spell()
  779.                 add_to_chat(123, spell.name..' Canceled: [Out of Range]')
  780.                 return
  781.             end
  782.         end
  783.     end
  784. end
  785.  
  786. function precast(spell,action)
  787.     local check_ammo
  788.     local check_ammo_count = 1
  789.     if spell.action_type == 'Ranged Attack' then
  790.         check_ammo = player.equipment.ammo
  791.         if player.equipment.ammo == 'empty' or player.inventory[check_ammo].count <= check_ammo_count then
  792.             add_to_chat(123, spell.name..' Canceled: [Out of Ammo]')
  793.             cancel_spell()
  794.             return
  795.         else
  796.             equip(sets.Preshot)
  797.             if player.inventory[check_ammo].count <= ammo_warning_limit and player.inventory[check_ammo].count > 1 and not warning then
  798.                 add_to_chat(123, '***** [Low Ammo Warning!] *****')
  799.                 warning = true
  800.             elseif player.inventory[check_ammo].count > ammo_warning_limit and warning then
  801.                 warning = false
  802.             end
  803.         end
  804.     elseif spell.type == "WeaponSkill" then
  805.         if player.status ~= 'Engaged' then -- Cancel WS If You Are Not Engaged. Can Delete It If You Don't Need It --
  806.             cancel_spell()
  807.             add_to_chat(123,'Unable To Use WeaponSkill: [Disengaged]')
  808.             return
  809.         else
  810.             equipSet = sets.WS
  811.             if equipSet[spell.english] then
  812.                 equipSet = equipSet[spell.english]
  813.             end
  814.             if Attack == 'ON' then
  815.                 equipSet = equipSet["ATT"]
  816.             end
  817.             if equipSet[AccArray[AccIndex]] then
  818.                 equipSet = equipSet[AccArray[AccIndex]]
  819.             end
  820.             if equipSet["Enmity"] and Enmity == 'ON' then
  821.                 equipSet = equipSet["Enmity"]
  822.             end
  823.             if buffactive.Aftermath and equipSet["AM"] then
  824.                 equipSet = equipSet["AM"]
  825.             end
  826.             if buffactive["Samurai Roll"] and equipSet["STP"] and Samurai_Roll == 'ON' then
  827.                 equipSet = equipSet["STP"]
  828.             end
  829.             if player.tp > 299 or buffactive.Sekkanoki then
  830.                 if spell.english == "Last Stand" then -- Equip Altdorf's Earring and Wilhelm's Earring When You Have 300 TP or Sekkanoki For Last Stand --
  831.                     equipSet = set_combine(equipSet,{ear1="Altdorf's Earring",ear2="Wilhelm's Earring"})
  832.                 elseif spell.english == "Jishnu's Radiance" then -- Equip Jupiter's Pearl When You Have 300 TP or Sekkanoki For Jishnu's Radiance --
  833.                     equipSet = set_combine(equipSet,{ear1="Jupiter's Pearl"})
  834.                 end
  835.             end
  836.             equip(equipSet)
  837.         end
  838.     elseif spell.type == "JobAbility" then
  839.         if sets.JA[spell.english] then
  840.             equip(sets.JA[spell.english])
  841.         end
  842.     elseif spell.action_type == 'Magic' then
  843.         if string.find(spell.english,'Utsusemi') then
  844.             if buffactive['Copy Image (3)'] or buffactive['Copy Image (4)'] then
  845.                 cancel_spell()
  846.                 add_to_chat(123, spell.name .. ' Canceled: [3+ Images]')
  847.                 return
  848.             else
  849.                 equip(sets.Precast.Utsusemi)
  850.             end
  851.         else
  852.             equip(sets.Precast.FastCast)
  853.         end
  854.     elseif spell.type == "Waltz" then
  855.         equip(sets.Waltz)
  856.     elseif spell.english == 'Spectral Jig' and buffactive.Sneak then
  857.         cast_delay(0.2)
  858.         send_command('cancel Sneak')
  859.     end
  860. end
  861.  
  862. function midcast(spell,action)
  863.     if spell.action_type == 'Ranged Attack' then
  864.         equipSet = sets.Midshot
  865.         if equipSet[WeaponArray[WeaponIndex]] then
  866.             equipSet = equipSet[WeaponArray[WeaponIndex]]
  867.         end
  868.         if equipSet[player.sub_job] then
  869.             equipSet = equipSet[player.sub_job]
  870.         end
  871.         if equipSet[AccArray[AccIndex]] then
  872.             equipSet = equipSet[AccArray[AccIndex]]
  873.         end
  874.         if buffactive.Barrage and equipSet["Barrage"] then
  875.             equipSet = equipSet["Barrage"]
  876.         end
  877.         if buffactive["Decoy Shot"] and equipSet["Decoy"] then
  878.             equipSet = equipSet["Decoy"]
  879.         end
  880.         if equipSet["Enmity"] and Enmity == 'ON' then
  881.             equipSet = equipSet["Enmity"]
  882.         end
  883.         if buffactive.Aftermath and equipSet["AM"] then
  884.             equipSet = equipSet["AM"]
  885.         end
  886.         if buffactive.Ionis and equipSet["Ionis"] then
  887.             equipSet = equipSet["Ionis"]
  888.         end
  889.         if buffactive["Samurai Roll"] and equipSet["STP"] and Samurai_Roll == 'ON' then
  890.             equipSet = equipSet["STP"]
  891.         end
  892.         equip(equipSet)
  893.     elseif spell.action_type == 'Magic' then
  894.         if string.find(spell.english,'Utsusemi') then
  895.             if spell.english == 'Utsusemi: Ichi' and (buffactive['Copy Image'] or buffactive['Copy Image (2)']) then
  896.                 send_command('@wait 1.7;cancel Copy Image*')
  897.             end
  898.             equip(sets.Midcast.Haste)
  899.         elseif spell.english == 'Monomi: Ichi' then
  900.             if buffactive['Sneak'] then
  901.                 send_command('@wait 1.7;cancel sneak')
  902.             end
  903.             equip(sets.Midcast.Haste)
  904.         else
  905.             equip(sets.Midcast.Haste)
  906.         end
  907.     end
  908. end
  909.  
  910. function aftercast(spell,action)
  911.     if spell.action_type == 'Ranged Attack' and AutoMode == 'ON' then
  912.         autoRA()
  913.     else
  914.         status_change(player.status)
  915.     end
  916.     if spell.type == "WeaponSkill" and not spell.interrupted then
  917.         send_command('wait 0.2;gs c TP')
  918.     end
  919. end
  920.  
  921. function status_change(new,old)
  922.     if Armor == 'PDT' then
  923.         equip(sets.PDT)
  924.     elseif Armor == 'MDT' then
  925.         equip(sets.MDT)
  926.     elseif new == 'Engaged' then
  927.         equipSet = sets.Melee
  928.         if equipSet[AccArray[AccIndex]] then
  929.             equipSet = equipSet[AccArray[AccIndex]]
  930.         end
  931.         equip(equipSet)
  932.     else
  933.         equipSet = sets.Idle
  934.         if equipSet[IdleArray[IdleIndex]] then
  935.             equipSet = equipSet[IdleArray[IdleIndex]]
  936.         end
  937.         if equipSet[WeaponArray[WeaponIndex]] then
  938.             equipSet = equipSet[WeaponArray[WeaponIndex]]
  939.         end
  940.         if equipSet[player.sub_job] then
  941.             equipSet = equipSet[player.sub_job]
  942.         end
  943.         equip(equipSet)
  944.     end
  945. end
  946.  
  947. function buff_change(buff,gain)
  948.     buff = string.lower(buff)
  949.     if buff == "overkill" then -- Overkill Timer --
  950.         if gain then
  951.             send_command('timers create "Overkill" 60 down')
  952.         else
  953.             send_command('timers delete "Overkill"')
  954.             add_to_chat(123,'Overkill: [OFF]')
  955.         end
  956.     elseif buff == "decoy shot" then -- Decoy Shot Timer --
  957.         if gain then
  958.             send_command('timers create "Decoy Shot" 180 down')
  959.         else
  960.             send_command('timers delete "Decoy Shot"')
  961.             add_to_chat(123,'Decoy Shot: [OFF]')
  962.         end
  963.     elseif buff == 'weakness' then -- Weakness Timer --
  964.         if gain then
  965.             send_command('timers create "Weakness" 300 up')
  966.         else
  967.             send_command('timers delete "Weakness"')
  968.         end
  969.     end
  970.     if not midaction() then
  971.         status_change(player.status)
  972.     end
  973. end
  974.  
  975. -- In Game: //gs c (command), Macro: /console gs c (command), Bind: gs c (command) --
  976. function self_command(command)
  977.     if command == 'C1' then -- Accuracy Level Toggle --
  978.         AccIndex = (AccIndex % #AccArray) + 1
  979.         add_to_chat(158,'Accuracy Level: ' .. AccArray[AccIndex])
  980.         status_change(player.status)
  981.     elseif command == 'C17' then -- Ranged Weapon Toggle --
  982.         WeaponIndex = (WeaponIndex % #WeaponArray) + 1
  983.         add_to_chat(158,'Ranged Weapon: '..WeaponArray[WeaponIndex])
  984.         status_change(player.status)
  985.     elseif command == 'C5' then -- Auto Update Gear Toggle --
  986.         status_change(player.status)
  987.         add_to_chat(158,'Auto Update Gear')
  988.     elseif command == 'C7' then -- PDT Toggle --
  989.         if Armor == 'PDT' then
  990.             Armor = 'None'
  991.             add_to_chat(123,'PDT Set: [Unlocked]')
  992.         else
  993.             Armor = 'PDT'
  994.             add_to_chat(158,'PDT Set: [Locked]')
  995.         end
  996.         status_change(player.status)
  997.     elseif command == 'C15' then -- MDT Toggle --
  998.         if Armor == 'MDT' then
  999.             Armor = 'None'
  1000.             add_to_chat(123,'MDT Set: [Unlocked]')
  1001.         else
  1002.             Armor = 'MDT'
  1003.             add_to_chat(158,'MDT Set: [Locked]')
  1004.         end
  1005.         status_change(player.status)
  1006.     elseif command == 'C11' then -- SAM Roll Toggle --
  1007.         if Samurai_Roll == 'ON' then
  1008.             Samurai_Roll = 'OFF'
  1009.             add_to_chat(123,'SAM Roll: [OFF]')
  1010.         else
  1011.             Samurai_Roll = 'ON'
  1012.             add_to_chat(158,'SAM Roll: [ON]')
  1013.         end
  1014.         status_change(player.status)
  1015.     elseif command == 'C10' then -- Enmity Toggle --
  1016.         if Enmity == 'ON' then
  1017.             Enmity = 'OFF'
  1018.             add_to_chat(123,'Enmity Set: [OFF]')
  1019.         else
  1020.             Enmity = 'ON'
  1021.             add_to_chat(158,'Enmity Set: [ON]')
  1022.         end
  1023.         status_change(player.status)
  1024.     elseif command == 'C9' then -- Attack Toggle --
  1025.         if Attack == 'ON' then
  1026.             Attack = 'OFF'
  1027.             add_to_chat(123,'Attack: [OFF]')
  1028.         else
  1029.             Attack = 'ON'
  1030.             add_to_chat(158,'Attack: [ON]')
  1031.         end
  1032.         status_change(player.status)
  1033.     elseif command == 'C3' then -- Overkill Toggle --
  1034.         send_command('Overkill')
  1035.         add_to_chat(158,'Overkill: [ON]')
  1036.     elseif command == 'C8' then -- Distance Toggle --
  1037.         if player.target.distance then
  1038.             target_distance = math.floor(player.target.distance*10)/10
  1039.             add_to_chat(158,'Distance: '..target_distance)
  1040.         else
  1041.             add_to_chat(123,'No Target Selected')
  1042.         end
  1043.     elseif command == 'C6' then -- Idle Toggle --
  1044.         IdleIndex = (IdleIndex % #IdleArray) + 1
  1045.         add_to_chat(158,'Idle Set: ' .. IdleArray[IdleIndex])
  1046.         status_change(player.status)
  1047.     elseif command == 'C2' then -- Auto RA/WS Toggle --
  1048.         if AutoMode == 'ON' then
  1049.             AutoMode = 'OFF'
  1050.             add_to_chat(123,'Auto Mode: [OFF]')
  1051.         else
  1052.             AutoMode = 'ON'
  1053.             add_to_chat(158,'Auto Mode: [ON]')
  1054.         end
  1055.     elseif command == 'TP' then
  1056.         add_to_chat(158,'TP Return: ['..tostring(player.tp)..']')
  1057.     elseif command:match('^SC%d$') then
  1058.         send_command('//' .. sc_map[command])
  1059.     end
  1060. end
  1061.  
  1062. function autoRA()
  1063.     send_command('@wait 2.7; input /ra <t>')
  1064. end
  1065.  
  1066. function autoWS() -- Change Auto WS Here --
  1067.     send_command('input /ws "Coronach" <t>')
  1068. end
  1069.  
  1070. function sub_job_change(newSubjob, oldSubjob)
  1071.     select_default_macro_book()
  1072. end
  1073.  
  1074. function set_macro_page(set,book)
  1075.     if not tonumber(set) then
  1076.         add_to_chat(123,'Error setting macro page: Set is not a valid number ('..tostring(set)..').')
  1077.         return
  1078.     end
  1079.     if set < 1 or set > 10 then
  1080.         add_to_chat(123,'Error setting macro page: Macro set ('..tostring(set)..') must be between 1 and 10.')
  1081.         return
  1082.     end
  1083.     if book then
  1084.         if not tonumber(book) then
  1085.             add_to_chat(123,'Error setting macro page: book is not a valid number ('..tostring(book)..').')
  1086.             return
  1087.         end
  1088.         if book < 1 or book > 20 then
  1089.             add_to_chat(123,'Error setting macro page: Macro book ('..tostring(book)..') must be between 1 and 20.')
  1090.             return
  1091.         end
  1092.         send_command('@input /macro book '..tostring(book)..';wait .1;input /macro set '..tostring(set))
  1093.     else
  1094.         send_command('@input /macro set '..tostring(set))
  1095.     end
  1096. end
  1097.  
  1098. function select_default_macro_book()
  1099.     -- Default macro set/book
  1100.     if player.sub_job == 'WAR' then
  1101.         set_macro_page(3, 19)
  1102.     elseif player.sub_job == 'DNC' then
  1103.         set_macro_page(2, 19)
  1104.     elseif player.sub_job == 'SAM' then
  1105.         set_macro_page(4, 19)
  1106.     elseif player.sub_job == 'DRG' then
  1107.         set_macro_page(10, 19)
  1108.     elseif player.sub_job == 'NIN' then
  1109.         set_macro_page(1, 19)
  1110.     else
  1111.         set_macro_page(1, 19)
  1112.     end
  1113. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement