Advertisement
Guest User

drk.lua

a guest
Dec 25th, 2016
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 40.51 KB | None | 0 0
  1. -- Initialization function for this job file.
  2. function get_sets()
  3.     mote_include_version = 2
  4.     include('Mote-Include.lua')
  5. end
  6.  
  7. -- //gs debugmode
  8. -- //gs showswaps
  9. function binds_on_load()
  10. -- F9-F12
  11.     send_command('bind f9 gs c cycle OffenseMode')
  12.     send_command('bind f10 gs c cycle HybridMode')
  13.     send_command('bind f11 gs c cycle CastingMode')
  14.     send_command('bind f12 gs c update user')
  15. -- CTRL F9-F12
  16.    
  17. -- ALT F9-12
  18.     send_command('bind !f9 gs c cycle IdleMode')
  19.     send_command('bind !f10 gs c cycle RangedMode')
  20.     send_command('bind ^f9 gs c cycle WeaponskillMode')
  21.     send_command('bind !f12 gs c cycle Kiting')
  22. end
  23.  
  24. -- Setup vars that are user-independent.
  25. function job_setup()
  26.     state.Buff.Aftermath = buffactive.Aftermath or false
  27.     state.Buff.Souleater = buffactive.Souleater or false
  28.     state.Buff.Doom = buffactive.Doom or false
  29.     state.Buff.Curse = buffactive.Curse or false
  30.     state.Buff['Dark Seal'] = buffactive['Dark Seal'] or false
  31.     state.Buff['Last Resort'] = buffactive['Last Resort'] or false
  32. end
  33.  
  34. -- Setup vars that are user-dependent.  Can override this function in a sidecar file.
  35. function user_setup()
  36.     -- Options: Override default values
  37.     state.OffenseMode:options('Normal', 'LowAcc', 'MidAcc', 'HighAcc') --F9
  38.     state.WeaponskillMode:options('Normal', 'Acc') --Ctrl+F9
  39.     state.HybridMode:options('Normal', 'DT', 'PDT', 'FDT') --F10
  40.     state.CastingMode:options('Normal', 'Resistant') --F11
  41.     state.IdleMode:options('Normal','PDT') --Alt+F9
  42.     state.PhysicalDefenseMode:options('PDT', 'MDT')
  43.  
  44.     Apoc_weapons = S{'Apocalypse'}
  45.     Rag_weapons = S{'Ragnarok'}
  46.     Ang_weapons = S{'Anguta'}
  47.    
  48.     LowTierNuke = S{
  49.         'Stone', 'Water', 'Aero', 'Fire', 'Blizzard', 'Thunder',
  50.         'Stone II', 'Water II', 'Aero II', 'Fire II', 'Blizzard II', 'Thunder II',
  51.         'Stone III', 'Water III', 'Aero III', 'Fire III', 'Blizzard III', 'Thunder III',
  52.         'Stonega', 'Waterga', 'Aeroga', 'Firaga', 'Blizzaga', 'Thundaga',
  53.         'Stonega II', 'Waterga II', 'Aeroga II', 'Firaga II', 'Blizzaga II', 'Thundaga II'}
  54.            
  55.     update_combat_form()
  56.     select_default_macro_book()
  57. end
  58.  
  59. -- Called when this job file is unloaded (eg: job change)
  60. function file_unload()
  61.     if binds_on_unload then
  62.         binds_on_unload()
  63.     end
  64. end
  65.  
  66. -- Define sets and vars used by this job file.
  67. function init_gear_sets()
  68. -- Augmented Gear
  69.     -- Back
  70.     Ank_STP = { name="Ankou's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','"Store TP"+10',}}
  71.     Ank_WSdmg = { name="Ankou's Mantle", augments={'STR+20','Accuracy+20 Attack+20','Weapon skill damage +10%',}}
  72.     Ank_DA = { name="Ankou's Mantle", augments={'STR+20','Accuracy+20 Attack+20','"Dbl.Atk."+10',}}
  73.  
  74. -- Multi Hit
  75.     -- Valorous
  76.     Val_DA_head = { name="Valorous Mask", augments={'Accuracy+27','"Dbl.Atk."+5','AGI+3',}}
  77.     Val_DA_body = { name="Valorous Mail", augments={'Accuracy+23 Attack+23','"Dbl.Atk."+1','VIT+4','Accuracy+12','Attack+11',}}
  78.     Val_QA_body = { name="Valorous Mail", augments={'Pet: VIT+1','Pet: DEX+4','Quadruple Attack +2','Mag. Acc.+8 "Mag.Atk.Bns."+8',}}
  79.     -- Odyssean
  80.     Ody_QA_legs ={ name="Odyssean Cuisses", augments={'MND+8','Pet: Accuracy+24 Pet: Rng. Acc.+24','Quadruple Attack +1','Accuracy+20 Attack+20','Mag. Acc.+1 "Mag.Atk.Bns."+1',}}
  81.  
  82. -- STP
  83.     -- Valorous
  84.     Val_STP_hands = { name="Valorous Mitts", augments={'"Store TP"+6','VIT+10','Accuracy+15',}}
  85.     Val_STP_feet = { name="Valorous Greaves", augments={'Accuracy+20 Attack+20','"Store TP"+6','MND+6','Accuracy+11',}}
  86.     -- Odyssean
  87.     Ody_STP_legs = { name="Odyssean Cuisses", augments={'Accuracy+21','"Store TP"+7','STR+4','Attack+12',}}
  88.     Ody_STP_Feet = { name="Odyssean Greaves", augments={'Accuracy+26','"Store TP"+7',}}
  89.  
  90. --WSdmg
  91.     -- Valorous
  92.     Val_WSdmg_head = { name="Valorous Mask", augments={'Attack+28','Weapon skill damage +5%','STR+9','Accuracy+9',}}
  93.     Val_WSdmg_legs = { name="Valor. Hose", augments={'Accuracy+8 Attack+8','Weapon skill damage +4%','Accuracy+9','Attack+7',}}
  94.     -- Odyssean
  95.     Ody_WSdmg_body = { name="Odyss. Chestplate", augments={'Accuracy+24 Attack+24','Weapon skill damage +3%','VIT+3','Accuracy+6',}}
  96.     Ody_WSdmg_hands = { name="Odyssean Gauntlets", augments={'Accuracy+12 Attack+12','Weapon skill damage +4%','Accuracy+14',}}
  97.  
  98. -- STR ACC ATK MISC
  99.     -- Valorous
  100.     Val_STRpdt_head = { name="Valorous Mask", augments={'Accuracy+11 Attack+11','Magic dmg. taken -3%','STR+6','Accuracy+11','Attack+9',}}
  101.     Val_STR_head = { name="Valorous Mask", augments={'Accuracy+24 Attack+24','STR+6','Accuracy+4','Attack+2',}}
  102.     Val_STRpdt_hands = { name="Valorous Mitts", augments={'Accuracy+23 Attack+23','Phys. dmg. taken -1%','STR+7','Attack+7',}}
  103.    
  104. -- DEX ACC ATK MISC
  105.     -- Valorous
  106.     Val_DEX_legs = { name="Valor. Hose", augments={'Accuracy+24 Attack+24','DEX+15',}}
  107.  
  108. -- WSacc
  109.     --Valorous
  110.     Val_WSacc_legs = { name="Valor. Hose", augments={'Accuracy+22 Attack+22','Weapon Skill Acc.+3','DEX+9','Accuracy+7','Attack+5',}}
  111.     -- Odyssean
  112.     Ody_WSacc_legs = { name="Odyssean Cuisses", augments={'Accuracy+22 Attack+22','Weapon Skill Acc.+15','STR+10','Attack+15',}}
  113.  
  114. -- Crit Hit Valorous
  115.     Val_Crit_head = { name="Valorous Mask", augments={'Accuracy+20','Crit. hit damage +3%','DEX+3','Attack+9',}}
  116.     Val_Crit_hands = { name="Valorous Mitts", augments={'Attack+15','Crit. hit damage +3%','VIT+11','Accuracy+10',}}
  117.     Val_Crit_legs = { name="Valor. Hose", augments={'Accuracy+14','Crit. hit damage +3%','MND+3','Attack+14',}}
  118.  
  119. -- Fast Cast Odyssean
  120.     Ody_FC_body = { name="Odyss. Chestplate", augments={'"Fast Cast"+6','MND+1','Mag. Acc.+6','"Mag.Atk.Bns."+6',}}
  121.     Ody_FC_feet = { name="Odyssean Greaves", augments={'Mag. Acc.+11','"Fast Cast"+5','MND+1','"Mag.Atk.Bns."+10',}}
  122.  
  123. -- MAB Odyssean
  124.     Ody_MAB_feet = { name="Odyssean Greaves", augments={'Mag. Acc.+18 "Mag.Atk.Bns."+18','CHR+4','Mag. Acc.+13','"Mag.Atk.Bns."+14',}}
  125.  
  126. -- DT Odyssean
  127.     Ody_DT_head = { name="Odyssean Helm", augments={'Damage taken-3%','VIT+6','Attack+12',}}
  128.     Ody_DT_Body = { name="Odyss. Chestplate", augments={'Mag. Acc.+25','Damage taken-3%',}}
  129.     Ody_DT_feet = { name="Odyssean Greaves", augments={'Attack+13','Damage taken-4%','VIT+8',}}
  130.    
  131. -- Precast sets
  132.     sets.precast.JA['Diabolic Eye'] = {hands="Fallen's Finger Gauntlets"}
  133.     sets.precast.JA['Arcane Circle'] = {feet="Ignominy Sollerets +1"}
  134.     sets.precast.JA['Nether Void'] = {legs="Heathen's Flanchard +1"}
  135.     sets.precast.JA['Souleater'] = {head="Ignominy Burgeonet +1"}
  136.     sets.precast.JA['Last Resort'] = {feet="Fallen's Sollerets +1", back="Ankou's Mantle"}
  137.     sets.precast.JA['Weapon Bash'] = {hands="Ignominy Gauntlets +1"}
  138.     sets.precast.JA['Dark Seal'] = {head="Fallen's Burgeonet +1"}
  139.  
  140. -- Waltz set (chr and vit)
  141.     sets.precast.Waltz = {}
  142.  
  143. -- Fast cast sets for spells
  144.     sets.precast.FC = {
  145.         ammo="Impatiens",
  146.     head={ name="Carmine Mask +1", augments={'Accuracy+12','DEX+12','MND+20',}},
  147.     body={ name="Odyss. Chestplate", augments={'Mag. Acc.+21','"Fast Cast"+6',}},
  148.     hands={ name="Leyline Gloves", augments={'Accuracy+1','Mag. Acc.+5','"Mag.Atk.Bns."+5','"Fast Cast"+1',}},
  149.     legs={ name="Eschite Cuisses", augments={'"Mag.Atk.Bns."+25','"Conserve MP"+6','"Fast Cast"+5',}},
  150.     feet={ name="Odyssean Greaves", augments={'Mag. Acc.+9','"Fast Cast"+5','INT+6',}},
  151.     neck="Orunmila's Torque",
  152.     waist="Ioskeha Belt +1",
  153.     left_ear="Enchntr. Earring +1",
  154.     right_ear="Loquac. Earring",
  155.     left_ring="Prolix Ring",
  156.     right_ring="Veneficium Ring",
  157.     back={ name="Ankou's Mantle", augments={'INT+20','Mag. Acc+20 /Mag. Dmg.+20','"Fast Cast"+10',}}}
  158.  
  159.     sets.precast.FC['Dark Magic'] = sets.precast.FC
  160.  
  161.     sets.precast.FC.Impact = set_combine(sets.precast.FC, {
  162.         head=empty,body="Twilight Cloak"})
  163.  
  164. -- Midcast Sets
  165.     sets.midcast.FastRecast = {
  166.         ammo="Impatiens",
  167.     head={ name="Carmine Mask +1", augments={'Accuracy+12','DEX+12','MND+20',}},
  168.     body={ name="Odyss. Chestplate", augments={'Mag. Acc.+21','"Fast Cast"+6',}},
  169.     hands={ name="Leyline Gloves", augments={'Accuracy+1','Mag. Acc.+5','"Mag.Atk.Bns."+5','"Fast Cast"+1',}},
  170.     legs={ name="Eschite Cuisses", augments={'"Mag.Atk.Bns."+25','"Conserve MP"+6','"Fast Cast"+5',}},
  171.     feet={ name="Odyssean Greaves", augments={'Mag. Acc.+9','"Fast Cast"+5','INT+6',}},
  172.     neck="Orunmila's Torque",
  173.     waist="Ioskeha Belt +1",
  174.     left_ear="Enchntr. Earring +1",
  175.     right_ear="Loquac. Earring",
  176.     left_ring="Prolix Ring",
  177.     right_ring="Veneficium Ring",
  178.     back={ name="Ankou's Mantle", augments={'INT+20','Mag. Acc+20 /Mag. Dmg.+20','"Fast Cast"+10',}}}
  179.  
  180. -- Specific spells
  181.     sets.midcast['Dark Magic'] = {
  182.         ammo="Pemphredo Tathlum",
  183.         head="Ignominy Burgeonet +1", body="Carmine Scale Mail +1",
  184.         back="Niht Mantle", neck="Incanter's Torque",
  185.         hands="Fallen's Finger Gauntlets +1", waist="Casso Sash",
  186.         legs="Eschite Cuisses", feet="Heathen's Sollerets +1",
  187.         ring1="Evanescence Ring", Ring2="Sangoma Ring",
  188.         ear1="Enchanter Earring +1", ear2="Gwati Earring"}
  189.  
  190.     sets.midcast['Enfeebling Magic'] = {
  191.         ammo="Quartz Tathlum +1",
  192.         head="Carmine Mask +1", body="Carmine Scale Mail +1",
  193.         back="Chuparrosa Mantle", neck="Incanter's Torque",
  194.         hands="Leyline Gloves", waist="Eschan Stone",
  195.         legs="Eschite Cuisses", feet="Heathen's Sollerets +1",
  196.         ring1="Globidonta Ring", Ring2="Sangoma Ring",
  197.         ear1="Enchanter Earring +1", ear2="Gwati Earring"}
  198.  
  199.     sets.midcast['Dread Spikes'] = {
  200.         ammo="Impatiens",
  201.         head="Ignominy Burgeonet +1", body="Heathen's Cuirass +1",
  202.         back="Niht Mantle", neck="Incanter's Torque",
  203.         hands="Fallen's Finger Gauntlets +1", waist="Eschan Stone",
  204.         legs="Eschite Cuisses", feet="Heathen's Sollerets +1",
  205.         ring1="Evanescence Ring", Ring2="Sangoma Ring",
  206.         ear1="Enchanter Earring +1", ear2="Gwati Earring"}
  207.  
  208.     sets.midcast.Absorb = {
  209.         ammo="Pemphredo Tathlum",
  210.         head="Carmine Mask +1", body="Carmine Scale Mail +1",
  211.         back="Chuparrosa Mantle", neck="Incanter's Torque",
  212.         hands="Flamma Manopolas +1", waist="Casso Sash",
  213.         legs="Flamma Dirs +1", feet="Flamma Gambieras +1",
  214.         Ring1="Evanescence Ring", Ring2="Sangoma Ring",
  215.         ear1="Dignitary's Earring", ear2="Gwati Earring"}
  216.     sets.midcast.Absorb.Resistant = {
  217.         ammo="Pemphredo Tathlum",
  218.         head="Carmine Mask", body="Carmine Scale Mail",
  219.         back={ name="Ankou's Mantle", augments={'INT+20','Mag. Acc+20 /Mag. Dmg.+20','"Fast Cast"+10',}}, neck="Incanter's Torque",
  220.         hands="Flamma Manopolas +1", waist="Eschan Stone",
  221.         legs="Eschite Cuisses", feet="Flamma Gambieras +1",
  222.         Ring1="Evanescence Ring", Ring2="Sangoma Ring",
  223.         ear1="Enchanter Earring +1", ear2="Gwati Earring"}
  224.  
  225.     sets.midcast['Absorb-TP'] = set_combine(sets.midcast.Absorb, {hands="Heathen's Gauntlets +1"})
  226.     sets.midcast['Absorb-TP'].Resistant = set_combine(sets.midcast.Absorb.Resistant, {hands="Heathen's Gauntlets +1"})
  227.  
  228.     sets.midcast['Absorb-STR'] = sets.midcast.Absorb
  229.     sets.midcast['Absorb-STR'].Resistant = sets.midcast.Absorb.Resistant
  230.        
  231.     sets.midcast['Absorb-DEX'] = sets.midcast.Absorb
  232.     sets.midcast['Absorb-DEX'].Resistant = sets.midcast.Absorb.Resistant
  233.        
  234.     sets.midcast['Absorb-AGI'] = sets.midcast.Absorb
  235.     sets.midcast['Absorb-AGI'].Resistant = sets.midcast.Absorb.Resistant
  236.  
  237.     sets.midcast['Absorb-MND'] = sets.midcast.Absorb
  238.     sets.midcast['Absorb-MND'].Resistant = sets.midcast.Absorb.Resistant
  239.        
  240.     sets.midcast['Absorb-VIT'] = sets.midcast.Absorb
  241.     sets.midcast['Absorb-VIT'].Resistant = sets.midcast.Absorb.Resistant
  242.    
  243.     sets.midcast['Absorb-Acc'] = sets.midcast.Absorb
  244.     sets.midcast['Absorb-Acc'].Resistant = sets.midcast.Absorb.Resistant
  245.        
  246.     sets.midcast['Absorb-Attri'] = sets.midcast.Absorb
  247.     sets.midcast['Absorb-Attri'].Resistant = sets.midcast.Absorb.Resistant
  248.  
  249.     sets.midcast.Stun = {
  250.         ammo="Pemphredo Tathlum",
  251.     head={ name="Carmine Mask +1", augments={'Accuracy+12','DEX+12','MND+20',}},
  252.     body={ name="Carm. Sc. Mail +1", augments={'Attack+20','"Mag.Atk.Bns."+12','"Dbl.Atk."+4',}},
  253.     hands="Flam. Manopolas +1",
  254.     legs="Flamma Dirs +1",
  255.     feet="Flam. Gambieras +1",
  256.     neck="Sanctity Necklace",
  257.     waist="Ioskeha Belt +1",
  258.     left_ear="Enchntr. Earring +1",
  259.     right_ear="Gwati Earring",
  260.     left_ring="Etana Ring",
  261.     right_ring="Sangoma Ring",
  262.     back={ name="Ankou's Mantle", augments={'INT+20','Mag. Acc+20 /Mag. Dmg.+20','"Fast Cast"+10',}}}
  263.        
  264.     sets.midcast.Drain = set_combine(sets.midcast['Dark Magic'], {
  265.         head="Pixie Hairpin +1",ammo="Pemphredo Tathlum",ring1="Evanescence Ring",ring2="Archon Ring",
  266.         body="Carmine Scale Mail +1",neck="Incanter's Torque",ear1="Dignitary's Earring",ear2="Hirudinea Earring",hands="Fallen's Finger Gauntlets +1",
  267.         back="Niht Mantle", waist="Austerity Belt +1",legs="Eschite Cuisses",feet="Flamma Gambieras +1"})
  268.  
  269.     sets.midcast.Aspir = sets.midcast.Drain
  270.    
  271.     sets.midcast['Drain III'] = sets.midcast.Drain
  272.  
  273.     sets.midcast.Impact = set_combine(sets.midcast['Dark Magic'], {head=empty, body="Twilight Cloak"})
  274.  
  275. -- Elemental Magic sets are default for handling low-tier nukes.
  276.     sets.midcast.LowTierNuke = {
  277.         ammo="Pemphredo Tathlum",
  278.         head="Carmine Mask", body="Carmine Scale Mail",
  279.         back="Izdubar Mantle", neck="Sanctity Necklace",
  280.         hands="Leyline Gloves", waist="Eschan Stone",
  281.         legs="Eschite Cuisses",feet=Ody_MAB_feet,
  282.         ring1="Shiva Ring +1", ring2="Shiva Ring +1",
  283.         ear1="Crematio Earring", ear2="Friomisi Earring"}
  284.  
  285.     sets.midcast.LowTierNuke.Resistant = {
  286.         ammo="Pemphredo Tathlum",
  287.         head="Carmine Mask", body="Carmine Scale Mail",
  288.         back="Izdubar Mantle", neck="Sanctity Necklace",
  289.         hands="Fallen's Finger Gauntlets", waist="Eschan Stone",
  290.         legs="Eschite Cuisses",feet=Ody_MAB_feet,
  291.         ring1="Shiva Ring +1", ring2="Shiva Ring +1",
  292.         ear1="Crematio Earring", ear2="Friomisi Earring"}
  293.  
  294.     -- Custom classes for high-tier nukes.
  295.     sets.midcast.HighTierNuke = sets.midcast.LowTierNuke
  296.     sets.midcast.HighTierNuke.Resistant = sets.midcast.LowTierNuke.Resistant
  297.  
  298. -- Resting sets
  299.     sets.resting = {
  300.         ammo="Ginsen",
  301.         head="", body="Lugra Cloak +1",
  302.         back="Xucau Mantle", neck="Sanctity Necklace",
  303.         hands="Sulevia's Gauntlets +1", waist="Flume Belt +1",
  304.         legs="Carmine Cuisses +1",feet="Amm Greaves",
  305.         ring1="Sheltered Ring", ring2="Paguroidea Ring",
  306.         ear1="Infused Earring", ear2="Genmei Earring"}
  307.  
  308. -- Idle sets
  309.     sets.idle = {
  310.         ammo="Seething Bomblet +1",
  311.         head="", body="Lugra Cloak +1",
  312.         back="Xucau Mantle", neck="Bathy Choker +1",
  313.         hands="Sulevia's Gauntlets +1", waist="Flume Belt +1",
  314.         legs="Carmine Cuisses +1", feet="Amm Greaves",
  315.         ring1="Paguroidea Ring", ring2="Chirich Ring +1",
  316.         ear1="Infused Earring", ear2="Dawn Earring"}
  317.  
  318.     sets.idle.PDT = {
  319.         ammo="Seething Bomblet +1",
  320.         head="Sulevia's Mask +1", body="Sulevia's Platemail +1",
  321.         back="Xucau Mantle", neck="Twili Torque",
  322.         hands="Sulevia's Gauntlets +1", waist="Flume Belt +1",
  323.         legs="Sulevia's Cuisses +1", feet="Amm Greaves",
  324.         ring1="Defending Ring", ring2="Patricius Ring",
  325.         ear1="Odnowa Earring +1", ear2="Genmei Earring"}
  326.  
  327.     sets.idle.Town = {
  328.         ammo="Brigantia Pebble",
  329.         head="Sulevia's Mask +1", body="Sulevia's Platemail +1",
  330.         back="Reiki Cloak", neck="Bathy Choker +1",
  331.         hands="Sulevia's Gauntlets +1", waist="Flume Belt +1",
  332.         legs="Carmine Cuisses +1", feet="Amm Greaves",
  333.         ring1="Paguroidea Ring", ring2="Chirich Ring +1",
  334.         ear1="Infused Earring", ear2="Dawn Earring"}
  335.  
  336.     sets.idle.Weak = {
  337.         ammo="Seething Bomblet +1",
  338.         head="Twilight Helm", body="Twilight Mail",
  339.         back="Xucau Mantle", neck="Twilight Torque",
  340.         hands="Sulevia's Gauntlets +1", waist="Flume Belt +1",
  341.         legs="Sulevia's Cuisses +1", feet="Amm Greaves",
  342.         ring1="Defending Ring", ring2="Patricius Ring",
  343.         ear1="Odnowa Earring +1", ear2="Genmei Earring"}
  344.  
  345.     sets.Kiting = {legs="Carmine Cuisses +1"}
  346.    
  347.     sets.latent_refresh = {waist="Fucho-no-Obi"}
  348.  
  349. -- Custom buff sets
  350.     sets.Aftermath = {}
  351.     sets.Doom = {waist="Gishdubar Sash", ring1={name="Saida Ring", bag="wardrobe1"}, ring2={name="Saida Ring", bag="wardrobe4"}}
  352.     sets.Curse = sets.Doom
  353.     sets['Dark Seal'] = {}
  354.     sets['Last Resort'] = {}
  355.  
  356. -- Scythe Darkness:
  357.     -- Cross Reaper > Insurgency > Entropy > Cross Reaper > Quietus
  358.     -- Catastrophe > Catastrophe
  359.     -- Quietus > Quietus
  360.     -- Entropy > Entropy
  361.     -- Entropy > Cross Reaper - Strong.
  362. -- Scythe Light:
  363.     -- CDC > Insurgency
  364. -- Other:
  365.     -- CDC > Entropy > Entropy
  366.     -- CDC > Catastrophe
  367.  
  368. -- Apoc 513 Delay - /sam gives 15stp.
  369.     --5 hit
  370.         -- tp 205 per hit. 30 stp +15 = 5 hit = 1025tp
  371.         -- tp 220 per hit. 40 stp +15 = 5 hit = 1100tp
  372.         -- tp 234 per hit. 50 stp +15 = 5 hit = 1170tp
  373.         -- tp 248 per hit. 60 stp +15 = 5 hit = 1240tp
  374.     --4 hit
  375.         -- tp 251 per hit. 62 stp +15 = 4 hit = 1004tp
  376.  
  377. -- Anguta 528 Delay 10 stp
  378.     -- 5 hit
  379.         -- tp 211 per hit. 30 stp +15 = 5 hit = 1055tp
  380.         -- tp 226 per hit. 40 stp +15 = 5 hit = 1130tp
  381.         -- tp 240 per hit. 50 stp +15 = 5 hit = 1200tp
  382.     -- 4 hit
  383.         -- tp 258 per hit. 62 stp +15 = 4 hit = 1032tp
  384.  
  385.     -- Need 77 STP on gear to hit 1032TP /war.
  386.  
  387. --Engaged Anguta
  388.     -- 1035ACC 64STP
  389.     sets.engaged.Anguta = {
  390.     ammo="Ginsen",
  391.     head={ name="Valorous Mask", augments={'Accuracy+30','"Store TP"+6','DEX+5','Attack+12',}},
  392.     body={ name="Valorous Mail", augments={'Accuracy+22','"Store TP"+7','VIT+6','Attack+11',}},
  393.     hands={ name="Emicho Gauntlets", augments={'HP+50','DEX+10','Accuracy+15',}},
  394.     legs={ name="Odyssean Cuisses", augments={'Accuracy+16 Attack+16','"Store TP"+5','STR+10','Accuracy+8',}},
  395.     feet={ name="Valorous Greaves", augments={'Accuracy+20 Attack+20','"Store TP"+7','DEX+4','Accuracy+12',}},
  396.     neck="Lissome Necklace",
  397.     waist="Sarissapho. Belt",
  398.     left_ear="Telos Earring",
  399.     right_ear="Cessance Earring",
  400.     left_ring="Petrov Ring",
  401.     right_ring="Chirich Ring +1",
  402.     back={ name="Ankou's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','"Store TP"+10',}},
  403. }  
  404.     -- 1086ACC 65STP
  405.     sets.engaged.Anguta.LowAcc = {
  406.         ammo="Ginsen",
  407.         head="Argosy Celata", body=Val_DA_body,
  408.         back=Ank_STP, neck="Ganesha's Mala",
  409.         hands="Argosy Mufflers", waist="Windbuffet Belt +1",
  410.         legs=Ody_QA_legs, feet=Val_STP_feet,
  411.         ring1="Ramuh Ring +1", ring2="Hetairoi Ring",
  412.         ear1="Telos Earring", ear2="Brutal Earring"}
  413.     -- 1202ACC 62STP
  414.     sets.engaged.Anguta.MidAcc = {
  415.         ammo="Seething Bomblet +1",
  416.         head="Carmine Mask +1", body="Emicho Haubert",
  417.         back=Ank_STP, neck="Combatant's Torque",
  418.         hands="Emicho Gauntlets", waist="Kentarch Belt +1",
  419.         legs="Carmine Cuisses +1", feet={ name="Valorous Greaves", augments={'Accuracy+20 Attack+20','"Store TP"+7','DEX+4','Accuracy+12',}},
  420.         ring1="Petrov Ring", ring2="Chirich Ring +1",
  421.         ear1="Telos Earring", ear2="Dignitary's Earring"}
  422.     -- 1173ACC 64STP
  423.     sets.engaged.Anguta.HighAcc = {
  424.         ammo="Seething Bomblet +1",
  425.         head="Argosy Celata", body=Val_DA_body,
  426.         back=Ank_STP, neck="Sanctity Necklace",
  427.         hands=Val_STP_hands, waist="Olseni Belt",
  428.         legs="Carmine Cuisses +1", feet=Val_STP_feet,
  429.         ring1="Ramuh Ring +1", ring2="Ramuh Ring +1",
  430.         ear1="Telos Earring", ear2="Dignitary's Earring"}
  431.        
  432. --Engaged Ragnarok
  433.     -- 1100ACC 57STP
  434.     sets.engaged.Ragnarok = {
  435.         ammo="Ginsen",
  436.     head={ name="Argosy Celata +1", augments={'STR+12','DEX+12','Attack+20',}},
  437.     body={ name="Valorous Mail", augments={'Accuracy+23','"Dbl.Atk."+5','DEX+8','Attack+13',}},
  438.     hands={ name="Argosy Mufflers +1", augments={'STR+12','DEX+12','Attack+20',}},
  439.     legs="Ignominy Flanchard +2",
  440.     feet="Flamma Gambieras +1",
  441.     neck="Lissome Necklace",
  442.     waist="Ioskeha Belt +1",
  443.     left_ear="Cessance Earring",
  444.     right_ear="Brutal Earring",
  445.     left_ring="Petrov Ring",
  446.     right_ring="Chirich Ring +1",
  447.     back={ name="Ankou's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}}} 
  448.     -- 1086ACC 65STP
  449.     sets.engaged.Ragnarok.LowAcc = {
  450.         ammo="Ginsen",
  451.         head="Flamma Zucchetto +1",
  452.         body={ name="Valorous Mail", augments={'Accuracy+23','"Dbl.Atk."+5','DEX+8','Attack+13',}},
  453.         back={ name="Ankou's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}}, neck="Lissome Necklace",
  454.         hands="Flamma Manopolas +1",waist="Ioskeha Belt +1",
  455.         legs="Ignominy Flanchard +2",
  456.         feet={ name="Valorous Greaves", augments={'Accuracy+20 Attack+20','"Store TP"+7','DEX+4','Accuracy+12',}},
  457.         left_ring="Chirich Ring",right_ring="Chirich Ring +1",
  458.         left_ear="Cessance Earring", ear2="Brutal Earring"}
  459.     -- 1208ACC 52STP
  460.     sets.engaged.Ragnarok.MidAcc = {
  461.         ammo="Seeth. Bomblet +1",
  462.     head={ name="Carmine Mask +1", augments={'Accuracy+12','DEX+12','MND+20',}},
  463.     body={ name="Valorous Mail", augments={'Accuracy+23','"Dbl.Atk."+5','DEX+8','Attack+13',}},
  464.     hands={ name="Emicho Gauntlets", augments={'HP+50','DEX+10','Accuracy+15',}},
  465.     legs="Ignominy Flanchard +2",
  466.     feet={ name="Valorous Greaves", augments={'Accuracy+20 Attack+20','"Store TP"+7','DEX+4','Accuracy+12',}},
  467.     neck="Combatant's Torque",
  468.     waist="Kentarch Belt +1",
  469.     left_ear="Telos Earring",
  470.     right_ear="Mache Earring +1",
  471.     left_ring="Petrov Ring",
  472.     right_ring="Chirich Ring +1",
  473.     back={ name="Ankou's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}}}
  474.     -- 1173ACC 64STP
  475.     sets.engaged.Ragnarok.HighAcc = {
  476.         ammo="Seething Bomblet +1",
  477.         head="Argosy Celata", body=Val_DA_body,
  478.         back=Ank_STP, neck="Sanctity Necklace",
  479.         hands=Val_STP_hands, waist="Olseni Belt",
  480.         legs="Carmine Cuisses +1", feet=Val_STP_feet,
  481.         ring1="Ramuh Ring +1", ring2="Ramuh Ring +1",
  482.         ear1="Telos Earring", ear2="Dignitary's Earring"}
  483.  
  484. -- Engaged Apocalypse
  485.     sets.engaged.Apocalypse = {
  486.         ammo="Ginsen",
  487.         head="Argosy Celata", body=Val_QA_Body,
  488.         back=Ank_STP, neck="Ganesha's Mala",
  489.         hands="Argosy Mufflers", waist="Windbuffet Belt +1",
  490.         legs=Ody_STP_legs, feet="Argosy Sollerets",
  491.         ring1="Petrov Ring", ring2="Hetairoi Ring",
  492.         ear1="Telos Earring", ear2="Brutal Earring"}
  493.  
  494.     sets.engaged.Apocalypse.LowAcc = {
  495.         ammo="Seething Bomblet +1",
  496.         head="Flamma Zucchetto +1", body={ name="Valorous Mail", augments={'Accuracy+23','"Dbl.Atk."+5','DEX+8','Attack+13',}},
  497.         back={ name="Ankou's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}}, neck="Lissome Necklace",
  498.         hands="Flamma Manopolas +1", waist="Ioskeha Belt +1",
  499.         legs={ name="Odyssean Cuisses", augments={'Accuracy+29','"Dbl.Atk."+5',}}, feet="Flamma Gambieras +1",
  500.         ring1="Petrov Ring", ring2="Hetairoi Ring",
  501.         ear1="Cessance Earring", ear2="Brutal Earring"}
  502.  
  503.     sets.engaged.Apocalypse.MidAcc = {
  504.         ammo="Seeth. Bomblet +1",
  505.     head="Flam. Zucchetto +1",
  506.     body={ name="Emicho Haubert", augments={'HP+50','DEX+10','Accuracy+15',}},
  507.     hands={ name="Emicho Gauntlets", augments={'HP+50','DEX+10','Accuracy+15',}},
  508.     legs={ name="Odyssean Cuisses", augments={'Accuracy+29','"Dbl.Atk."+5',}},
  509.     feet="Flam. Gambieras +1",
  510.     neck="Lissome Necklace",
  511.     waist="Ioskeha Belt +1",
  512.     left_ear="Cessance Earring",
  513.     right_ear="Telos Earring",
  514.     left_ring="Petrov Ring",
  515.     right_ring="Chirich Ring +1",
  516.     back={ name="Ankou's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}}
  517.     }
  518.    
  519.     sets.engaged.Apocalypse.HighAcc = {
  520.         ammo="Ginsen",
  521.         head="Argosy Celata", body=Val_DA_body,
  522.         back=Ank_STP, neck="Sanctity Necklace",
  523.         hands=Val_Crit_hands, waist="Olseni Belt",
  524.         legs=Ody_STP_legs, feet=Val_STP_feet,
  525.         ring1="Ramuh Ring +1", ring2="Ramuh Ring +1",
  526.         ear1="Telos Earring", ear2="Dignitary's Earring"}
  527.        
  528.     --Engaged PDT
  529.     sets.engaged.Ragnarok.DT = {
  530.         ammo="Eluder's Sachet",
  531.         head="Onyx Sallet",
  532.         body="Plastron +1",
  533.         back="Rancorous Mantle", neck="Kubira Bead Necklace",
  534.         hands="Onyx Gadlings",waist="Ioskeha Belt +1",
  535.         legs="Onyx Cuisses",
  536.         feet="Onyx Sollerets",
  537.         left_ring="Chirich Ring",right_ring="Chirich Ring +1",
  538.         left_ear="Cessance Earring", ear2="Brutal Earring"}
  539.        
  540.     sets.engaged.Ragnarok.PDT = {
  541.         ammo="Staunch Tathlum",
  542.     head="Sulevia's Mask +1",
  543.     body="Founder's Breastplate",
  544.     hands="Sulev. Gauntlets +1",
  545.     legs="Sulevi. Cuisses +1",
  546.     feet={ name="Amm Greaves", augments={'HP+50','VIT+10','Accuracy+15','Damage taken-2%',}},
  547.     neck="Loricate Torque +1",
  548.     waist="Ioskeha Belt +1",
  549.     left_ear="Cessance Earring",
  550.     right_ear="Brutal Earring",
  551.     left_ring="Defending Ring",
  552.     right_ring="Chirich Ring +1",
  553.     back={ name="Ankou's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}}
  554.     }
  555.    
  556.     sets.engaged.Ragnarok.LowAcc.PDT = {
  557.         ammo="Staunch Tathlum",
  558.     head="Sulevia's Mask +1",
  559.     body="Founder's Breastplate",
  560.     hands="Sulev. Gauntlets +1",
  561.     legs="Sulevi. Cuisses +1",
  562.     feet={ name="Amm Greaves", augments={'HP+50','VIT+10','Accuracy+15','Damage taken-2%',}},
  563.     neck="Loricate Torque +1",
  564.     waist="Ioskeha Belt +1",
  565.     left_ear="Cessance Earring",
  566.     right_ear="Telos Earring",
  567.     left_ring="Defending Ring",
  568.     right_ring="Chirich Ring +1",
  569.     back={ name="Ankou's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}}
  570.     }
  571.    
  572.     sets.engaged.Ragnarok.MidAcc.PDT = {
  573.         ammo="Staunch Tathlum",
  574.     head="Sulevia's Mask +1",
  575.     body="Founder's Breastplate",
  576.     hands="Sulev. Gauntlets +1",
  577.     legs="Sulevi. Cuisses +1",
  578.     feet={ name="Amm Greaves", augments={'HP+50','VIT+10','Accuracy+15','Damage taken-2%',}},
  579.     neck="Loricate Torque +1",
  580.     waist="Ioskeha Belt +1",
  581.     left_ear="Cessance Earring",
  582.     right_ear="Telos Earring",
  583.     left_ring="Defending Ring",
  584.     right_ring="Chirich Ring +1",
  585.     back={ name="Ankou's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}}
  586.     }
  587.    
  588.     sets.engaged.Ragnarok.FDT = {
  589.         ammo="Staunch Tathlum",
  590.     head="Sulevia's Mask +1",
  591.     body="Sulevia's Plate. +1",
  592.     hands="Sulev. Gauntlets +1",
  593.     legs="Sulevi. Cuisses +1",
  594.     feet={ name="Amm Greaves", augments={'HP+50','VIT+10','Accuracy+15','Damage taken-2%',}},
  595.     neck="Loricate Torque +1",
  596.     waist="Ioskeha Belt +1",
  597.     left_ear="Cessance Earring",
  598.     right_ear="Telos Earring",
  599.     left_ring="Defending Ring",
  600.     right_ring="Chirich Ring +1",
  601.     back={ name="Ankou's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}}
  602.     }
  603.    
  604.     sets.engaged.Ragnarok.LowAcc.FDT = {
  605.         ammo="Staunch Tathlum",
  606.     head="Sulevia's Mask +1",
  607.     body="Sulevia's Plate. +1",
  608.     hands="Sulev. Gauntlets +1",
  609.     legs="Sulevi. Cuisses +1",
  610.     feet={ name="Amm Greaves", augments={'HP+50','VIT+10','Accuracy+15','Damage taken-2%',}},
  611.     neck="Loricate Torque +1",
  612.     waist="Ioskeha Belt +1",
  613.     left_ear="Cessance Earring",
  614.     right_ear="Telos Earring",
  615.     left_ring="Defending Ring",
  616.     right_ring="Chirich Ring +1",
  617.     back={ name="Ankou's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}}
  618.     }
  619.    
  620.     sets.engaged.Ragnarok.MidAcc.FDT = {
  621.         ammo="Staunch Tathlum",
  622.     head="Sulevia's Mask +1",
  623.     body="Sulevia's Plate. +1",
  624.     hands="Sulev. Gauntlets +1",
  625.     legs="Sulevi. Cuisses +1",
  626.     feet={ name="Amm Greaves", augments={'HP+50','VIT+10','Accuracy+15','Damage taken-2%',}},
  627.     neck="Loricate Torque +1",
  628.     waist="Ioskeha Belt +1",
  629.     left_ear="Cessance Earring",
  630.     right_ear="Telos Earring",
  631.     left_ring="Defending Ring",
  632.     right_ring="Chirich Ring +1",
  633.     back={ name="Ankou's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Dbl.Atk."+10',}}
  634.     }
  635.  
  636. -- Weaponskill sets
  637.     sets.precast.WS = {
  638.         ammo="Seething Bomblet +1",
  639.         head=Val_WSdmg_head, body=Ody_WSdmg_body,
  640.         back=Ank_WSdmg, neck="Fotia Gorget",
  641.         hands=Ody_WSdmg_hands, waist="Fotia Belt",
  642.         legs=Val_WSdmg_legs, feet="Sulevia's Leggings +1",
  643.         ring1="Ifrit Ring +1", ring2="Ifrit Ring +1",
  644.         ear1="Ishvara Earring", ear2="Moonshade Earring"}
  645.     sets.precast.WS.Acc = set_combine(sets.precast.WS, {
  646.         head="Argosy Celata", body=Val_DA_body,
  647.         legs=Ody_WSacc_legs,
  648.         ring1="Ramuh Ring +1", ring2="Ramuh Ring +1",
  649.         ear1="Telos Earring"})
  650.  
  651.     -- Catastrophe - FTP 2.75 - STR 40%, INT 40% - WSdmg%- 1-2 Hit WS ok.
  652.     -- Darkness/Gravitation
  653.     sets.precast.WS['Catastrophe'] = {
  654.         ammo="Knobkierrie",
  655.     head={ name="Odyssean Helm", augments={'Accuracy+21','Weapon skill damage +5%','STR+9','Attack+14',}},
  656.     body={ name="Valorous Mail", augments={'Accuracy+28','Weapon skill damage +5%',}},
  657.     hands={ name="Odyssean Gauntlets", augments={'Accuracy+29','Weapon skill damage +5%','AGI+5','Attack+5',}},
  658.     legs={ name="Valor. Hose", augments={'Accuracy+28','Weapon skill damage +5%','STR+10','Attack+5',}},
  659.     feet="Sulev. Leggings +1",
  660.     neck="Caro Necklace",
  661.     waist="Prosilio Belt +1",
  662.     left_ear="Telos Earring",
  663.     right_ear="Ishvara Earring",
  664.     left_ring="Rufescent Ring",
  665.     right_ring="Shukuyu Ring",
  666.     back={ name="Ankou's Mantle", augments={'VIT+20','Accuracy+20 Attack+20','Weapon skill damage +10%',}}
  667.     }
  668.     sets.precast.WS['Catastrophe'].Acc = set_combine(sets.precast.WS.Acc, {
  669.         head="Argosy Celata", body=Val_DA_body,
  670.         legs=Ody_WSacc_legs,
  671.         ring1="Ramuh Ring +1", ring2="Ramuh Ring +1",
  672.         ear1="Telos Earring", ear2="Moonshade Earring"})
  673.  
  674.     -- Cross Reaper - FTP 2.75 - STR 40%, INT 40% - WSdmg%- 1-2 Hit WS ok.
  675.     -- Darkness/Gravitation
  676.     sets.precast.WS['Cross Reaper'] = {
  677.         ammo="Knobkierrie",
  678.     head={ name="Argosy Celata +1", augments={'STR+12','DEX+12','Attack+20',}},
  679.     body={ name="Argosy Hauberk +1", augments={'STR+12','Attack+20','"Store TP"+6',}},
  680.     hands={ name="Valorous Mitts", augments={'Accuracy+18 Attack+18','Weapon skill damage +4%','AGI+8','Accuracy+9','Attack+12',}},
  681.     legs="Sulevi. Cuisses +1",
  682.     feet="Sulev. Leggings +1",
  683.     neck="Caro Necklace",
  684.     waist="Grunfeld Rope",
  685.     left_ear="Ishvara Earring",
  686.     right_ear="Brutal Earring",
  687.     left_ring="Rufescent Ring",
  688.     right_ring="Shukuyu Ring",
  689.     back={ name="Ankou's Mantle", augments={'VIT+20','Accuracy+20 Attack+20','Weapon skill damage +10%',}}
  690.     }
  691.     sets.precast.WS['Cross Reaper'].Acc = set_combine(sets.precast.WS.Acc, {
  692.         head="Argosy Celata", body=Val_DA_body,
  693.         legs=Ody_WSacc_legs,
  694.         ring1="Ramuh Ring +1", ring2="Ramuh Ring +1",
  695.         ear1="Telos Earring"})
  696.        
  697.     -- FTP 0.75, 1.25, 2.0, - INT 85%
  698.     -- Gravitation/Reverberation
  699.     sets.precast.WS['Entropy'] = set_combine(sets.precast.WS, {
  700.         ammo="Pemphredo Tathlum",
  701.         head=Val_WSdmg_head, body=Ody_WSdmg_body,
  702.         back=Ank_DA, neck="Fotia Gorget",
  703.         hands=Ody_WSdmg_hands, waist="Fotia Belt",
  704.         legs=Val_WSdmg_legs, feet="Sulevia's Leggings +1",
  705.         ring1="Shiva Ring +1", ring2="Shiva Ring +1",
  706.         ear1="Telos Earring", ear2="Moonshade Earring"})
  707.     sets.precast.WS['Entropy'].Acc = set_combine(sets.precast.WS.Acc, {
  708.         head="Argosy Celata", body=Val_DA_body,
  709.         legs=Ody_WSacc_legs,
  710.         ring1="Ramuh Ring +1", ring2="Ramuh Ring +1",
  711.         ear1="Telos Earring"})
  712.    
  713.     -- Insurgency - FTP 0.5, 3.25, 6.0 - STR 20%, INT 20%
  714.     -- Fusion/Compression
  715.     sets.precast.WS['Insurgency'] = set_combine(sets.precast.WS, {
  716.         ammo="Ginsen",
  717.         head=Val_WSdmg_head, body=Ody_WSdmg_body,
  718.         back=Ank_DA, neck="Fotia Gorget",
  719.         hands=Ody_WSdmg_hands, waist="Fotia Belt",
  720.         legs=Val_WSdmg_legs, feet="Sulevia's Leggings +1",
  721.         ring1="Ifrit Ring +1", ring2="Ifrit Ring +1",
  722.         ear1="Telos Earring", ear2="Moonshade Earring"})
  723.     sets.precast.WS['Insurgency'].Acc = set_combine(sets.precast.WS.Acc, {
  724.         head="Argosy Celata", body=Val_DA_body,
  725.         legs=Ody_WSacc_legs,
  726.         ring1="Ramuh Ring +1", ring2="Ramuh Ring +1",
  727.         ear1="Telos Earring"})
  728.  
  729.     -- Quietus - FTP 3.0, - STR 60% MND 60% - Triple Dmg, Ignores Defense
  730.     -- Darkness/Distortion
  731.     sets.precast.WS['Quietus'] = set_combine(sets.precast.WS, {
  732.         ammo="Ginsen",
  733.         head=Val_WSdmg_head, body=Ody_WSdmg_body,
  734.         back=Ank_WSdmg, neck="Fotia Gorget",
  735.         hands=Ody_WSdmg_hands, waist="Fotia Belt",
  736.         legs=Val_WSdmg_legs, feet="Sulevia's Leggings +1",
  737.         ring1="Ifrit Ring +1", ring2="Ifrit Ring +1",
  738.         ear1="Ishvara Earring", ear2="Moonshade Earring"})
  739.     sets.precast.WS['Quietus'].Acc = set_combine(sets.precast.WS.Acc, {
  740.         head="Argosy Celata", body=Val_DA_body,
  741.         legs=Ody_WSacc_legs,
  742.         ring1="Ramuh Ring +1", ring2="Ramuh Ring +1",
  743.         ear1="Telos Earring"})
  744.        
  745.     -- Vorpal Scythe - FTP 1.0 - STR 100% - Singe Hit Crit
  746.     -- Transfixion/Scission
  747.     sets.precast.WS['Vorpal Scythe'] = set_combine(sets.precast.WS, {
  748.         ammo="Ginsen",
  749.         head=Val_WSdmg_head, body=Ody_WSdmg_body,
  750.         back=Ank_WSdmg, neck="Fotia Gorget",
  751.         hands=Ody_WSdmg_hands, waist="Fotia Belt",
  752.         legs=Val_WSdmg_legs, feet="Sulevia's Leggings +1",
  753.         ring1="Ifrit Ring +1", ring2="Ifrit Ring +1",
  754.         ear1="Ishvara Earring", ear2="Moonshade Earring"})
  755.     sets.precast.WS['Vorpal Scythe'].Acc = set_combine(sets.precast.WS.Acc, {
  756.         head="Argosy Celata", body=Val_DA_body,
  757.         legs=Ody_WSacc_legs,
  758.         ring1="Ramuh Ring +1", ring2="Ramuh Ring +1",
  759.         ear1="Telos Earring"})
  760.  
  761.     -- Guillotine - FTP 0.875 - STR 30% MND 50%
  762.     -- Induration
  763.     sets.precast.WS['Guillotine'] = set_combine(sets.precast.WS, {
  764.         ammo="Ginsen",
  765.         head=Val_WSdmg_head, body=Ody_WSdmg_body,
  766.         back=Ank_DA, neck="Fotia Gorget",
  767.         hands=Ody_WSdmg_hands, waist="Fotia Belt",
  768.         legs=Val_WSdmg_legs, feet="Sulevia's Leggings +1",
  769.         ring1="Ifrit Ring +1", ring2="Ifrit Ring +1",
  770.         ear1="Telos Earring", ear2="Moonshade Earring"})
  771.     sets.precast.WS['Guillotine'].Acc = set_combine(sets.precast.WS.Acc, {
  772.         head="Argosy Celata", body=Val_DA_body,
  773.         legs=Ody_WSacc_legs,
  774.         ring1="Ramuh Ring +1", ring2="Ramuh Ring +1",
  775.         ear1="Telos Earring"})
  776.  
  777.     -- Spiral Hell - FTP 1.375, 2.75, 4.75, - STR 50% INT 50%
  778.     -- Distortion/Scission
  779.     sets.precast.WS['Spiral Hell'] = set_combine(sets.precast.WS, {
  780.         ammo="Ginsen",
  781.         head=Val_WSdmg_head, body=Ody_WSdmg_body,
  782.         back=Ank_DA, neck="Fotia Gorget",
  783.         hands=Ody_WSdmg_hands, waist="Fotia Belt",
  784.         legs=Val_WSdmg_legs, feet="Sulevia's Leggings +1",
  785.         ring1="Ifrit Ring +1", ring2="Ifrit Ring +1",
  786.         ear1="Ishvara Earring", ear2="Moonshade Earring"})
  787.     sets.precast.WS['Spiral Hell'].Acc = set_combine(sets.precast.WS.Acc, {
  788.         head="Argosy Celata", body=Val_DA_body,
  789.         legs=Ody_WSacc_legs,
  790.         ring1="Ramuh Ring +1", ring2="Ramuh Ring +1",
  791.         ear1="Telos Earring"})
  792.  
  793.     -- Resolution - FTP .71, 1.5, 2.25, - STR 85%
  794.     -- Fragmentation/Scission
  795.     sets.precast.WS['Resolution'] = {
  796.         ammo="Seething Bomblet +1",
  797.         head="Argosy Celata +1", body="Argosy Hauberk +1",
  798.         back={ name="Ankou's Mantle", augments={'STR+20','Accuracy+20 Attack+20','"Dbl.Atk."+10',}}, neck="Fotia Gorget",
  799.         hands="Argosy Mufflers +1", waist="Fotia Belt",
  800.         legs="Argosy Breeches +1", feet="Argosy Sollerets +1",
  801.         ring1="Ifrit Ring +1", ring2="Shukuyu Ring",
  802.         ear1="Brutal Earring",ear2="Cessance Earring"
  803.     }
  804.     sets.precast.WS['Resolution'].Acc = set_combine(sets.precast.WS.Acc, {
  805.         head="Argosy Celata", body=Val_DA_body,
  806.         legs=Ody_WSacc_legs,
  807.         ring1="Ifrit Ring +1", ring2="Shukuyu Ring",
  808.         ear1="Telos Earring"})
  809.  
  810.     -- Torcleaver - FTP 4.75, 7.5, 10, - VIT 80%
  811.     -- Light/Distortion
  812.     sets.precast.WS['Torcleaver'] = {
  813.         ammo="Knobkierrie",
  814.         head={ name="Odyssean Helm", augments={'Accuracy+21','Weapon skill damage +5%','STR+9','Attack+14',}},
  815.         body={ name="Odyss. Chestplate", augments={'Accuracy+25','Weapon skill damage +3%','VIT+14','Attack+14',}},
  816.         back={ name="Ankou's Mantle", augments={'VIT+20','Accuracy+20 Attack+20','Weapon skill damage +10%',}}, neck="Fotia Gorget",
  817.         hands={ name="Odyssean Gauntlets", augments={'Accuracy+29','Weapon skill damage +5%','AGI+5','Attack+5',}}, waist="Fotia Belt",
  818.         legs={ name="Valor. Hose", augments={'Accuracy+28','Weapon skill damage +5%','STR+10','Attack+5',}}, feet="Sulevia's Leggings +1",
  819.         ring1="Titan Ring +1", ring2="Titan Ring +1",
  820.         ear1="Ishvara Earring", ear2="Handler's Earring +1"}
  821.     sets.precast.WS['Torcleaver'].Acc = set_combine(sets.precast.WS.Acc, {
  822.         head="Argosy Celata", body=Val_DA_body,
  823.         legs=Ody_WSacc_legs,
  824.         ring1="Ramuh Ring +1", ring2="Ramuh Ring +1",
  825.         ear1="Telos Earring"})
  826.     sets.precast.WS['Scourge'] = {
  827.         ammo="Knobkierrie",
  828.     head={ name="Odyssean Helm", augments={'Accuracy+21','Weapon skill damage +5%','STR+9','Attack+14',}},
  829.     body={ name="Valorous Mail", augments={'Accuracy+28','Weapon skill damage +5%',}},
  830.     hands={ name="Odyssean Gauntlets", augments={'Accuracy+29','Weapon skill damage +5%','AGI+5','Attack+5',}},
  831.     legs={ name="Valor. Hose", augments={'Accuracy+28','Weapon skill damage +5%','STR+10','Attack+5',}},
  832.     feet="Sulev. Leggings +1",
  833.     neck="Caro Necklace",
  834.     waist="Prosilio Belt +1",
  835.     left_ear="Telos Earring",
  836.     right_ear="Ishvara Earring",
  837.     left_ring="Rufescent Ring",
  838.     right_ring="Shukuyu Ring",
  839.     back={ name="Ankou's Mantle", augments={'VIT+20','Accuracy+20 Attack+20','Weapon skill damage +10%',}}}
  840. end
  841.  
  842. -- Job-specific hooks for standard casting events.
  843. function job_midcast(spell, action, spellMap, eventArgs)
  844.  
  845. end
  846.  
  847. -- Called when the player's status changes.
  848. function job_state_change(field, new_value, old_value)
  849.  
  850. end
  851.  
  852. function display_current_job_state(eventArgs)
  853. local msg = 'Melee'
  854.     if state.HybridMode.value ~= 'Normal' then
  855.         msg = msg .. '/' .. state.HybridMode.value
  856.     end
  857. end
  858.  
  859. function update_combat_form()
  860.     -- Check Weapontype
  861.     if  Apoc_weapons:contains(player.equipment.main) then
  862.         state.CombatForm:set('Apocalypse')
  863.     elseif
  864.         Rag_weapons:contains(player.equipment.main) then
  865.         state.CombatForm:set('Ragnarok')
  866.     elseif
  867.         Ang_weapons:contains(player.equipment.main) then
  868.         state.CombatForm:set('Anguta')
  869.     else
  870.         state.CombatForm:reset()
  871.     end
  872. end
  873.  
  874. function job_update(cmdParams, eventArgs)
  875.     update_combat_form()
  876. end
  877.  
  878. -- Called by the 'update' self-command, for common needs.
  879. -- Set eventArgs.handled to true if we don't want automatic equipping of gear.
  880. function job_update(cmdParams, eventArgs)
  881.     update_combat_form()
  882. end
  883.  
  884. function job_buff_change(buff, gain)
  885.     if buff == "Aftermath" then
  886.         handle_equipping_gear(player.status)
  887.     end
  888.     if buff == "Souleater" then
  889.         handle_equipping_gear(player.status)
  890.     end
  891.     if buff == "Doom" then
  892.         handle_equipping_gear(player.status)
  893.     end
  894.     if buff == "Curse" then
  895.         handle_equipping_gear(player.status)
  896.     end
  897.     if buff == "Dark Seal" then
  898.         handle_equipping_gear(player.status)
  899.     end
  900.     if buff == "Last Resort" then
  901.         handle_equipping_gear(player.status)
  902.     end
  903. end
  904.  
  905. function customize_idle_set(idleSet)
  906.     if player.mpp < 51 then
  907.         return set_combine(idleSet, sets.latent_refresh)
  908.     end
  909.     if state.Buff.Doom or state.Buff.Curse then
  910.         return set_combine(idleSet, sets.Doom)
  911.     else
  912.         return idleSet
  913.     end
  914. end
  915.  
  916. -- Modify the default melee set after it was constructed.
  917. function customize_melee_set(meleeSet)
  918.     if state.Buff.Aftermath then
  919.         return set_combine(meleeSet, sets.Aftermath)
  920.     end
  921.     if state.Buff.Souleater then
  922.         return set_combine(meleeSet, sets.Souleater)
  923.     end
  924.     if state.Buff.Doom then
  925.         return set_combine(meleeSet, sets.Doom)
  926.     end
  927.     if state.Buff.Curse then
  928.         return set_combine(meleeSet, sets.Curse)
  929.     end
  930.     if state.Buff['Dark Seal'] then
  931.         return set_combine(meleeSet, sets['Dark Seal'])
  932.     end
  933.     if state.Buff['Last Resort'] then
  934.         return set_combine(meleeSet, sets['Last Resort'])
  935.     else
  936.         return meleeSet
  937.     end
  938. end
  939.  
  940. -- Custom spell mapping.
  941. function job_get_spell_map(spell, default_spell_map)
  942.     if spell.skill == 'Elemental Magic' and default_spell_map ~= 'ElementalEnfeeble' then
  943.         if LowTierNuke:contains(spell.english) then
  944.             return 'LowTierNuke'
  945.         else
  946.             return 'HighTierNuke'
  947.         end
  948.     end
  949. end
  950.  
  951. -- eventArgs is the same one used in job_precast, in case information needs to be persisted.
  952. moonshade_WS = S{"Resolution", "Torcleaver", "Catastrophe"}
  953.  
  954. function job_post_precast(spell, action, spellMap, eventArgs)
  955.     if spell.type == 'WeaponSkill' then
  956.         if world.time >= (17*60) or world.time <= (7*60) then
  957.             equip({ear1="Lugra Earring +1",ear2="Lugra Earring"})
  958.         end
  959.         if moonshade_WS:contains(spell.english) and player.tp<2950 then
  960.             equip({ear2="Moonshade Earring"})
  961.             end
  962.         end
  963.     end
  964.    
  965. -- eventArgs is the same one used in job_midcast, in case information needs to be persisted.
  966. function job_post_midcast(spell, action, spellMap, eventArgs)
  967.     if spellMap == 'Cure' and spell.target.type == 'SELF' then
  968.         equip(sets.midcast.CureSelf)
  969.     end
  970. end
  971. -- Select default macro book on initial load or subjob change.
  972. function select_default_macro_book()
  973.     -- Default macro set/book
  974.     if player.sub_job == 'WAR' then
  975.         set_macro_page(1, 9)
  976.     elseif player.sub_job == 'NIN' then
  977.         set_macro_page(1, 9)
  978.     elseif player.sub_job == 'RDM' then
  979.         set_macro_page(1, 9)
  980.     elseif player.sub_job == 'THF' then
  981.         set_macro_page(1, 9)
  982.     else
  983.         set_macro_page(1, 9)
  984.     end
  985. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement