SHARE
TWEET

Untitled

a guest Mar 10th, 2019 100 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. require 'organizer-lib'
  2. ---------------------------------------------------------------------------------------------------------------------------------------
  3. -------------------------------- Initialization function that defines sets and variables to be used -----------------------------------
  4. ---------------------------------------------------------------------------------------------------------------------------------------
  5.  
  6. -- IMPORTANT: Make sure to also get the Mote-Include.lua file to go with this.
  7.  
  8. -- Initialization function for this job file.
  9. function get_sets()
  10.     -- Load and initialize the include file.
  11.     include('Mote-IncludePLD.lua')
  12. end
  13.  
  14.  
  15. -- Setup vars that are user-dependent.  Can override this function in a sidecar file.
  16. function user_setup()
  17.     -- Options: Override default values
  18.     options.OffenseModes = {'Normal', 'Acc'}
  19.     options.DefenseModes = {'Normal', 'PDT'}
  20.     options.WeaponskillModes = {'Normal', 'Acc'}
  21.     options.CastingModes = {'Normal', 'DT'}
  22.     options.IdleModes = {'Normal',}
  23.     options.RestingModes = {'Normal'}
  24.     options.PhysicalDefenseModes = {'Aegis', 'Srivatsa', 'Ochain'}
  25.     options.MagicalDefenseModes = {'MDT' ,'BDT','ResistCharm'}
  26.     options.HybridDefenseModes = {'None', 'Reraise',}
  27.     options.BreathDefenseModes = {'BDT'}
  28.     state.Defense.PhysicalMode = 'Aegis'
  29.     state.HybridDefenseMode = 'None'
  30.     state.BreathDefenseModes = 'BDT'
  31.     send_command('bind f12 gs c cycle MagicalDefense')
  32.     send_command('bind ^= gs c activate MDT')
  33.     select_default_macro_book()
  34. end
  35.  
  36.  function user_unload()
  37.     send_command('unbind `')
  38.     send_command('unbind ^`')
  39.     send_command('unbind !`')
  40.     send_command('unbind ^-')
  41.     send_command('unbind !-')  
  42.     send_command('unbind ^=')
  43.     send_command('unbind !=')      
  44.     send_command('unbind delete')
  45.     send_command('unbind end')
  46.     send_command('unbind home')
  47. end
  48.  
  49. -- Define sets and vars used by this job file.
  50. function job_setup()
  51.     include('caster_buffWatcher.lua')
  52. buffWatcher.watchList =
  53. {
  54.                        ["Enlight"]="Enlight II",
  55.                        ["Enmity Boost"]="Crusade",
  56.                        ["Phalanx"]="Phalanx",
  57.                        ["Protect"]="Protect V",
  58.                        ["Shell"]="Shell IV",                               
  59. }
  60. include('common_info.status.lua')  
  61. end
  62.  
  63. --------------------------------------------------------------------------------------------------------------------------------------
  64. ---------------------------------------------------------------Precast sets-----------------------------------------------------------
  65. --------------------------------------------------------------------------------------------------------------------------------------
  66.  
  67. function init_gear_sets()
  68.  
  69.      -- Precast sets to enhance JAs
  70.     sets.precast.JA['Invincible'] = set_combine(sets.precast.JA['Provoke'], {legs="Cab. Breeches +1"})
  71.    
  72.     sets.precast.JA['Holy Circle'] = set_combine(sets.precast.JA['Provoke'], {feet="Rev. Leggings +3"})
  73.          
  74.     sets.precast.JA['Shield Bash'] = set_combine(sets.precast.JA['Provoke'], {sub="Aegis", hands="Cab. Gauntlets +2", left_ear="Knightly Earring", left_ring="Guardian's Ring",right_ring="Fenian Ring"})
  75.      
  76.     sets.precast.JA['Intervene'] = sets.precast.JA['Shield Bash']
  77.    
  78.     sets.precast.JA['Sentinel'] = set_combine(sets.precast.JA['Provoke'], {feet="Cab. Leggings +3"})  
  79.      
  80.     --The amount of damage absorbed is variable, determined by VIT*2
  81.     sets.precast.JA['Rampart'] =    
  82. {
  83.    
  84.     ammo="Iron Gobbet",
  85.     head={ name="Cab. Coronet +2", augments={'Enhances "Iron Will" effect',}},
  86.     body={ name="Souv. Cuirass +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  87.     hands="Sulev. Gauntlets +2",
  88.     legs={ name="Odyssean Cuisses", augments={'Damage taken-2%','VIT+15',}},
  89.     feet={ name="Odyssean Greaves", augments={'Accuracy+5 Attack+5','"Dbl.Atk."+4','VIT+15',}},
  90.     neck="Unmoving Collar +1",
  91.     waist="Latria Sash",
  92.     left_ear="Terra's Pearl",
  93.     right_ear="Terra's Pearl",
  94.     left_ring="Titan Ring +1",
  95.     right_ring="Regal Ring",
  96.     back={ name="Rudianos's Mantle", augments={'VIT+20','Eva.+20 /Mag. Eva.+20','VIT+10','Enmity+10',}},
  97. }
  98.      
  99.     sets.buff['Rampart'] = sets.precast.JA['Rampart']
  100.    
  101.     sets.precast.JA['Fealty'] = set_combine(sets.precast.JA['Provoke'], {body="Cab. Surcoat +1",})
  102.      
  103.     sets.precast.JA['Divine Emblem'] = set_combine(sets.precast.JA['Provoke'], {feet="Chev. Sabatons +1"})
  104.      
  105.     --15 + min(max(floor((user VIT + user MND - target VIT*2)/4),0),15)
  106.     sets.precast.JA['Cover'] = set_combine(sets.precast.JA['Rampart'], {head="Rev. Coronet +3", body="Cab. Surcoat +1"})
  107.    
  108.     sets.buff['Cover'] = sets.precast.JA['Cover']
  109.      
  110.     -- add MND for Chivalry
  111.     sets.precast.JA['Chivalry'] =
  112. {
  113.     ammo="Strobilus",
  114.     head="Jumalik Helm",
  115.     body="Rev. Surcoat +3",
  116.     hands={ name="Cab. Gauntlets +2", augments={'Enhances "Chivalry" effect',}},
  117.     legs={ name="Cab. Breeches +1", augments={'Enhances "Invincible" effect',}},
  118.     feet="Odyssean Greaves",
  119.     neck="Dualism Collar +1",
  120.     waist="Creed Baudrier",
  121.     left_ear="Halasz Earring",
  122.     right_ear="Nourish. Earring +1",
  123.     left_ring="Levia. Ring +1",
  124.     right_ring="Stikini Ring +1",
  125.     back={ name="Weard Mantle", augments={'VIT+5','DEX+3','Phalanx +5',}}
  126. }
  127.      
  128.     ------------------------ Sub WAR ------------------------
  129.     sets.precast.JA['Provoke'] =    --enmity +152
  130. {
  131.    
  132.     ammo="Iron Gobbet",
  133.     head="Loess Barbuta +1",
  134.     body={ name="Souv. Cuirass +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  135.     hands={ name="Yorium Gauntlets", augments={'Enmity+10','Phalanx +3',}},
  136.     legs={ name="Odyssean Cuisses", augments={'Attack+24','Enmity+8','Accuracy+10',}},
  137.     feet={ name="Eschite Greaves", augments={'HP+80','Enmity+7','Phys. dmg. taken -4',}},
  138.     neck="Moonlight Necklace",
  139.     waist="Creed Baudrier",
  140.     left_ear="Trux Earring",
  141.     right_ear="Cryptic Earring",
  142.     left_ring="Apeile Ring",
  143.     right_ring="Apeile Ring +1",
  144.     back={ name="Rudianos's Mantle", augments={'VIT+20','Eva.+20 /Mag. Eva.+20','VIT+10','Enmity+10',}},
  145. }  
  146.  
  147.     sets.precast.JA['Warcry'] = sets.precast.JA['Provoke']
  148.      
  149.     sets.precast.JA['Defender'] = sets.precast.JA['Provoke']
  150.  
  151.     ------------------------ Sub DNC ------------------------
  152.      
  153.     -- Waltz set (chr and vit)
  154.     sets.precast.Waltz =
  155. {
  156.     ammo="Iron Gobbet",
  157.     head={ name="Jumalik Helm", augments={'MND+10','"Mag.Atk.Bns."+15','Magic burst dmg.+10%','"Refresh"+1',}},
  158.     body={ name="Found. Breastplate", augments={'Accuracy+11','Mag. Acc.+10','Attack+10','"Mag.Atk.Bns."+9',}},
  159.     hands={ name="Founder's Gauntlets", augments={'STR+10','Attack+15','"Mag.Atk.Bns."+15','Phys. dmg. taken -5%',}},
  160.     legs="Dashing Subligar",
  161.     feet={ name="Odyssean Greaves", augments={'Accuracy+5 Attack+5','"Dbl.Atk."+4','VIT+15',}},
  162.     neck="Unmoving Collar +1",
  163.     waist="Latria Sash",
  164.     left_ear="Terra's Pearl",
  165.     right_ear="Terra's Pearl",
  166.     left_ring="Valseur's Ring",
  167.     right_ring="Asklepian Ring",
  168.     back={ name="Rudianos's Mantle", augments={'VIT+20','Accuracy+20 Attack+20','VIT+10','Enmity+10',}},
  169. }
  170.          
  171.     -- Special gear for Healing Waltz.
  172.     sets.precast.Waltz['Healing Waltz'] = sets.precast.Waltz
  173.      
  174.     sets.precast.Step = sets.precast.JA['Provoke']
  175.        
  176.     sets.precast.Flourish1 = sets.precast.Step
  177.      
  178.     ------------------------ Sub RUN ------------------------
  179.     sets.precast.JA['Ignis'] = sets.precast.JA['Provoke']  
  180.     sets.precast.JA['Gelus'] = sets.precast.JA['Provoke']
  181.     sets.precast.JA['Flabra'] = sets.precast.JA['Provoke']
  182.     sets.precast.JA['Tellus'] = sets.precast.JA['Provoke']  
  183.     sets.precast.JA['Sulpor'] = sets.precast.JA['Provoke']
  184.     sets.precast.JA['Unda'] = sets.precast.JA['Provoke']
  185.     sets.precast.JA['Lux'] = sets.precast.JA['Provoke']    
  186.     sets.precast.JA['Tenebrae'] = sets.precast.JA['Provoke']
  187.      
  188.     sets.precast.JA['Vallation'] = sets.precast.JA['Provoke']
  189.      
  190.     sets.precast.JA['Pflug'] = sets.precast.JA['Provoke']
  191.          
  192.     -- Fast cast sets for spells   2844HP FC+80/80
  193.     sets.precast.FC =
  194. {
  195.    
  196.     ammo="Incantor Stone",
  197.     head="Carmine Mask",
  198.     body="Rev. Surcoat +3",
  199.     hands="Leyline gloves",
  200.     legs={ name="Odyssean Cuisses", augments={'AGI+1','Pet: DEX+1','"Fast Cast"+7','Mag. Acc.+9 "Mag.Atk.Bns."+9',}},
  201.     feet="Carmine Greaves +1",
  202.     neck="Orunmila's Torque",
  203.     waist="Oneiros Belt",
  204.     left_ear="Odnowa Earring +1",
  205.     right_ear="Odnowa Earring",
  206.     left_ring="Moonlight Ring",
  207.     right_ring="Defending Ring",
  208.     back={ name="Rudianos's Mantle", augments={'HP+60','Eva.+20 /Mag. Eva.+20','HP+20','"Fast Cast"+10',}},
  209. }  
  210.      
  211.     sets.precast.FC.DT =
  212. {
  213.     ammo="Impatiens",
  214.     head={ name="Carmine Mask +1", augments={'Accuracy+20','Mag. Acc.+12','"Fast Cast"+4',priority=5}},
  215.     body="Rev. Surcoat +3",
  216.     hands={ name="Leyline Gloves", augments={'Accuracy+15','Mag. Acc.+15','"Mag.Atk.Bns."+15','"Fast Cast"+3',}},
  217.     legs={ name="Odyssean Cuisses", augments={'AGI+1','Pet: DEX+1','"Fast Cast"+7','Mag. Acc.+9 "Mag.Atk.Bns."+9',priority=4}},
  218.     feet={ name="Odyssean Greaves", augments={'"Mag.Atk.Bns."+10','"Fast Cast"+6',priority=6}},
  219.     neck="Loricate Torque +1",
  220.     waist={"Oneiros Belt",priority=3},
  221.     left_ear="Loquac. Earring",
  222.     right_ear="Enchntr. Earring +1",
  223.     left_ring="Moonlight Ring",
  224.     right_ring="Defending Ring",
  225.     back={ name="Rudianos's Mantle", augments={'HP+60','Eva.+20 /Mag. Eva.+20','HP+20','"Fast Cast"+10',priority=2}},
  226. }
  227.      
  228.     sets.precast.FC.Phalanx = set_combine(sets.precast.FC , {waist="Siegel Sash",})
  229.     sets.precast.FC.Enlight = sets.precast.FC.Phalanx
  230.     sets.precast.FC['Enlight II'] = sets.precast.FC.Phalanx
  231.     sets.precast.FC.Protect = sets.precast.FC.Phalanx
  232.     sets.precast.FC.Shell = sets.precast.FC.Phalanx
  233.     sets.precast.FC.Crusade = sets.precast.FC.Phalanx
  234.          
  235.     sets.precast.FC.Cure =
  236. {
  237.     ammo="Impatiens",
  238.     head="Carmine Mask",
  239.     body="Jumalik Mail",
  240.     hands="Leyline Gloves",
  241.     legs={ name="Odyssean Cuisses", augments={'AGI+1','Pet: DEX+1','"Fast Cast"+7','Mag. Acc.+9 "Mag.Atk.Bns."+9'}},
  242.     feet="Carmine Greaves +1",
  243.     neck="Orunmila's Torque",
  244.     waist="Acerbic Sash +1",
  245.     left_ear="Nourish. Earring +1",
  246.     right_ear="Mendi. Earring",
  247.     left_ring="Lebeche Ring",
  248.     right_ring="Kishar Ring",
  249.     back={ name="Rudianos's Mantle", augments={'HP+60','Eva.+20 /Mag. Eva.+20','HP+20','"Fast Cast"+10',}},
  250. }      
  251.     -- Weaponskill sets
  252.     -- Default set for any weaponskill that isn't any more specifically defined
  253.     sets.precast.WS =
  254. {
  255.     ammo="Paeapua",
  256.     head="Ynglinga Sallet",
  257.     body={ name="Valorous Mail", augments={'Accuracy+22 Attack+22','Weapon Skill Acc.+10','DEX+3','Accuracy+6',}},
  258.     hands="Flam. Manopolas +2",
  259.     legs="Sulev. Cuisses +2",
  260.     feet="Sulev. Leggings +2",
  261.     neck="Fotia Gorget",
  262.     waist="Fotia Belt",
  263.     left_ear="Odnowa Earring +1",
  264.     right_ear="Odnowa Earring",
  265.     left_ring="Rajas Ring",
  266.     right_ring="Regal Ring",
  267.     back={ name="Rudianos's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','Weapon skill damage +10%',}},
  268. }
  269.  
  270.     -- Specific weaponskill sets.  Uses the base set if an appropriate WSMod version isn't found.
  271.  
  272.     --Stat Modifier:     73~85% MND  fTP:    1.0
  273.  sets.precast.WS['Requiescat'] =
  274. {
  275.    ammo="Cheruski Needle",
  276.     head="Flam. Zucchetto +2",
  277.     body={ name="Found. Breastplate", augments={'Accuracy+15','Mag. Acc.+15','Attack+15','"Mag.Atk.Bns."+15',}},
  278.     hands="Sulev. Gauntlets +1",
  279.     legs={ name="Acro Breeches", augments={'Accuracy+10','Haste+3','STR+3 VIT+3',}},
  280.     feet="Sulev. Leggings +1",
  281.     neck="Fotia Gorget",
  282.     waist="Metalsinger Belt",
  283.     left_ear="Zwazo Earring",
  284.     right_ear={ name="Moonshade Earring", augments={'Attack+4','TP Bonus +250',}},
  285.     left_ring="Karieyh Ring",
  286.     right_ring="Flamma Ring",
  287.     back="Letalis Mantle",
  288. }
  289.    
  290.    --Stat Modifier:  50%MND / 30%STR MAB+    fTP:2.75
  291.     sets.precast.WS['Sanguine Blade'] =
  292. {
  293.     ammo="Pemphredo Tathlum",
  294.     head={ name="Jumalik Helm", augments={'MND+10','"Mag.Atk.Bns."+15','Magic burst dmg.+10%','"Refresh"+1',}},
  295.     body={ name="Found. Breastplate", augments={'Accuracy+11','Mag. Acc.+10','Attack+10','"Mag.Atk.Bns."+9',}},
  296.     hands={ name="Founder's Gauntlets", augments={'STR+10','Attack+15','"Mag.Atk.Bns."+15','Phys. dmg. taken -5%',}},
  297.     legs={ name="Odyssean Cuisses", augments={'"Mag.Atk.Bns."+29','Accuracy+24','Accuracy+17 Attack+17','Mag. Acc.+10 "Mag.Atk.Bns."+10',}},
  298.     feet={ name="Founder's Greaves", augments={'VIT+10','Accuracy+15','"Mag.Atk.Bns."+15','Mag. Evasion+15',}},
  299.     neck="Fotia Gorget",
  300.     waist="Fotia Belt",
  301.     left_ear="Crematio Earring",
  302.     right_ear="Friomisi Earring",
  303.     left_ring="Shiva Ring +1",
  304.     right_ring="Shiva Ring +1",
  305.     back={ name="Rudianos's Mantle", augments={'INT+20','Mag. Acc+20 /Mag. Dmg.+20','INT+10','Weapon skill damage +10%',}},
  306. }  
  307.    
  308.      
  309.     sets.precast.WS['Aeolian Edge'] =
  310. {
  311.     ammo="Pemphredo Tathlum",
  312.     head={ name="Jumalik Helm", augments={'MND+10','"Mag.Atk.Bns."+15','Magic burst dmg.+10%','"Refresh"+1',}},
  313.     body={ name="Found. Breastplate", augments={'Accuracy+11','Mag. Acc.+10','Attack+10','"Mag.Atk.Bns."+9',}},
  314.     hands={ name="Founder's Gauntlets", augments={'STR+10','Attack+15','"Mag.Atk.Bns."+15','Phys. dmg. taken -5%',}},
  315.     legs={ name="Odyssean Cuisses", augments={'"Mag.Atk.Bns."+29','Accuracy+24','Accuracy+17 Attack+17','Mag. Acc.+10 "Mag.Atk.Bns."+10',}},
  316.     feet={ name="Founder's Greaves", augments={'VIT+10','Accuracy+15','"Mag.Atk.Bns."+15','Mag. Evasion+15',}},
  317.     neck="Eddy Necklace",
  318.     waist="Eschan Stone",
  319.     left_ear="Crematio Earring",
  320.     right_ear="Friomisi Earring",
  321.     left_ring="Shiva Ring +1",
  322.     right_ring="Shiva Ring +1",
  323.     back={ name="Rudianos's Mantle", augments={'INT+20','Mag. Acc+20 /Mag. Dmg.+20','INT+10','Weapon skill damage +10%',}},
  324. }  
  325.  
  326.     --Stat Modifier: 50%MND / 50%STR fTP: 1000:4.0 2000:10.25 3000:13.75
  327.     sets.precast.WS['Savage Blade'] =
  328. {
  329.     ammo="Cheruski Needle",
  330.     head="Flam. Zucchetto +2",
  331.     body="Sulevia's platemail",
  332.     hands="Sulevia's gauntlets +1",
  333.     legs="Acro Breeches",
  334.     feet="Sulev. Leggings +1",
  335.     neck="Fotia Gorget",
  336.     waist="Metalsinger Belt",
  337.     left_ear="Ishvara Earring",
  338.     right_ear="Moonshade Earring",
  339.     left_ring="Flamma Ring",
  340.     right_ring="Rajas Ring",
  341.     back="Letalis Mantle",
  342. }
  343.  
  344.    --Stat Modifier:  80%DEX  fTP:2.25
  345.    sets.precast.WS['Chant du Cygne'] =
  346. {  
  347.     ammo="Ginsen",
  348.     head="Ynglinga Sallet",
  349.     body={ name="Valorous Mail", augments={'Accuracy+22 Attack+22','Weapon Skill Acc.+10','DEX+3','Accuracy+6',}},
  350.     hands="Flam. Manopolas +2",
  351.     legs="Sulev. Cuisses +2",
  352.     feet="Sulev. Leggings +2",
  353.     neck="Fotia Gorget",
  354.     waist="Fotia Belt",
  355.     left_ear="Brutal Earring",
  356.     right_ear="Telos Earring",
  357.     left_ring="Rajas Ring",
  358.     right_ring="Regal Ring",
  359.     back={ name="Rudianos's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','DEX+10','Crit.hit rate+10',}},
  360. }
  361.    
  362.     --Stat Modifier: WS damage + 30/31%   2211DMG maxaggro
  363.     sets.precast.WS['Atonement'] =
  364. {
  365.     ammo="Iron Gobbet",
  366.     head={ name="Odyssean Helm", augments={'Attack+25','Weapon skill damage +5%','Accuracy+2',}},                  
  367.     body="Phorcys Korazin",                                                                                            
  368.     hands={ name="Odyssean Gauntlets", augments={'Weapon skill damage +5%','VIT+4','Accuracy+11','Attack+14',}},   
  369.     legs={ name="Odyssean Cuisses", augments={'MND+1','AGI+5','Weapon skill damage +6%','Mag. Acc.+17 "Mag.Atk.Bns."+17',}},
  370.     feet="Sulevia's Leggings +2",                                                                                      
  371.     neck="Fotia Gorget",
  372.     waist="Fotia Belt",
  373.     left_ear="Cryptic Earring",
  374.     right_ear="Ishvara Earring",                                                                                   
  375.     left_ring="Apeile Ring",
  376.     right_ring="Apeile Ring +1",
  377.     back={ name="Rudianos's Mantle", augments={'DEX+20','Accuracy+20 Attack+20','DEX+10','Crit.hit rate+10',}},
  378. }
  379.            
  380.     ------------------------------------------------------------------------------------------------
  381.     -----------------------------------------Midcast sets-------------------------------------------
  382.     ------------------------------------------------------------------------------------------------
  383.     sets.midcast.FastRecast =
  384. {
  385.     ammo="Staunch Tathlum +1",
  386.     head={ name="Jumalik Helm", augments={'MND+10','"Mag.Atk.Bns."+15','Magic burst dmg.+10%','"Refresh"+1',}},
  387.     body={ name="Souv. Cuirass +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  388.     hands="Chev. Gauntlets +1",
  389.     legs="Founder's Hose",
  390.     feet="Chev. Sabatons +1",
  391.     neck="Loricate Torque +1",
  392.     waist="Rumination sash",
  393.     left_ear="Knightly Earring",
  394.     right_ear="Halasz Earring",
  395.     left_ring="Moonlight Ring",
  396.     right_ring="Defending Ring",
  397.     back={ name="Weard Mantle", augments={'VIT+5','DEX+3','Phalanx +5',}},
  398. }
  399.    
  400.     -- Divine Skill 590/594 142 Acc
  401.     sets.midcast.Divine =
  402. {
  403.    
  404.     ammo="Staunch Tathlum +1",
  405.     head={ name="Jumalik Helm", augments={'MND+10','"Mag.Atk.Bns."+15','Magic burst dmg.+10%','"Refresh"+1',}},
  406.     body="Rev. Surcoat +3",
  407.     hands={ name="Eschite Gauntlets", augments={'Mag. Evasion+15','Spell interruption rate down +15%','Enmity+7',}},
  408.     legs={ name="Kaiser Diechlings", augments={'Magic dmg. taken -3%','Divine magic skill +5',}},
  409.     feet="Templar Sabatons",
  410.     neck="Incanter's Torque",
  411.     waist="Asklepian Belt",
  412.     left_ear="Knight's Earring",
  413.     right_ear="Beatific Earring",
  414.     left_ring="Stikini Ring +1",
  415.     right_ring="Stikini Ring +1",
  416.     back="Altruistic Cape",
  417. }
  418.  
  419.     sets.midcast.Divine.DT =
  420. {
  421.     ammo="Staunch Tathlum +1",
  422.     head={ name="Jumalik Helm", augments={'MND+10','"Mag.Atk.Bns."+15','Magic burst dmg.+10%','"Refresh"+1',}},
  423.     body="Rev. Surcoat +3",
  424.     hands={ name="Souv. Handsch. +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  425.     legs={ name="Souv. Diechlings +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  426.     feet={ name="Souveran Schuhs +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  427.     neck="Loricate Torque +1",
  428.     waist="Flume Belt +1",
  429.     left_ear="Odnowa Earring +1",
  430.     right_ear="Odnowa Earring",
  431.     left_ring="Moonlight Ring",
  432.     right_ring="Defending Ring",
  433.     back="Solemnity Cape",
  434. }
  435.  
  436.    
  437.     --skill 401/402
  438.     sets.midcast['Enhancing Magic'] =
  439. {
  440.     ammo="Staunch Tathlum +1",
  441.     head={ name="Carmine Mask +1", augments={'Accuracy+20','Mag. Acc.+12','"Fast Cast"+4',}},
  442.     legs={ name="Carmine Cuisses +1", augments={'HP+80','STR+12','INT+12',}},
  443.     neck="Incanter's Torque",
  444.     waist="Olympus Sash",
  445.     left_ear="Andoaa Earring",
  446.     right_ear="Augment. Earring",
  447.     left_ring="Evanescence Ring",
  448.     right_ring="Stikini Ring +1",
  449.  
  450. }
  451.  
  452.     sets.midcast.MAB =
  453. {
  454.     ammo="Pemphredo Tathlum",
  455.     head={ name="Odyssean Helm", augments={'Attack+18','"Mag.Atk.Bns."+29','Accuracy+5 Attack+5','Mag. Acc.+19 "Mag.Atk.Bns."+19',}},
  456.     body={ name="Found. Breastplate", augments={'Accuracy+11','Mag. Acc.+10','Attack+10','"Mag.Atk.Bns."+9',}},
  457.     hands={ name="Founder's Gauntlets", augments={'STR+10','Attack+15','"Mag.Atk.Bns."+15','Phys. dmg. taken -5%',}},
  458.     legs={ name="Odyssean Cuisses", augments={'"Mag.Atk.Bns."+29','Accuracy+24','Accuracy+17 Attack+17','Mag. Acc.+10 "Mag.Atk.Bns."+10',}},
  459.     feet={ name="Founder's Greaves", augments={'VIT+10','Accuracy+15','"Mag.Atk.Bns."+15','Mag. Evasion+15',}},
  460.     neck="Eddy Necklace",
  461.     waist="Yamabuki-no-Obi",
  462.     left_ear="Crematio Earring",
  463.     right_ear="Friomisi Earring",
  464.     left_ring="Shiva Ring +1",
  465.     right_ring="Shiva Ring +1",
  466.     back={ name="Rudianos's Mantle", augments={'INT+20','Mag. Acc+20 /Mag. Dmg.+20','INT+10','Weapon skill damage +10%',}},
  467. }
  468.      
  469.     sets.midcast.Flash =
  470. {
  471.     ammo="Iron Gobbet",
  472.     head={ name="Jumalik Helm", augments={'MND+10','"Mag.Atk.Bns."+15','Magic burst dmg.+10%','"Refresh"+1',}},
  473.     body="Rev. Surcoat +3",
  474.     hands={ name="Eschite Gauntlets", augments={'Mag. Evasion+15','Spell interruption rate down +15%','Enmity+7',}},
  475.     legs={ name="Odyssean Cuisses", augments={'Attack+24','Enmity+8','Accuracy+10',}},
  476.     feet={ name="Eschite Greaves", augments={'HP+80','Enmity+7','Phys. dmg. taken -4',}},
  477.     neck="Unmoving Collar +1",
  478.     waist="Goading Belt",
  479.     left_ear="Trux Earring",
  480.     right_ear="Cryptic Earring",
  481.     left_ring="Apeile Ring",
  482.     right_ring="Apeile Ring +1",
  483.     back={ name="Rudianos's Mantle", augments={'VIT+20','Eva.+20 /Mag. Eva.+20','VIT+10','Enmity+10',}},
  484. }  
  485.  
  486.     sets.midcast.Flash.DT =
  487. {
  488.     ammo="Staunch Tathlum +1",
  489.     head={ name="Jumalik Helm", augments={'MND+10','"Mag.Atk.Bns."+15','Magic burst dmg.+10%','"Refresh"+1',}},
  490.     body="Rev. Surcoat +3",
  491.     hands={ name="Souv. Handsch. +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  492.     legs={ name="Souv. Diechlings +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  493.     feet={ name="Souveran Schuhs +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  494.     neck="Loricate Torque +1",
  495.     waist="Flume Belt +1",
  496.     left_ear="Odnowa Earring +1",
  497.     right_ear="Odnowa Earring",
  498.     left_ring="Moonlight Ring",
  499.     right_ring="Defending Ring",
  500.     back="Solemnity Cape",
  501. }  
  502.          
  503.     sets.midcast.Enlight = sets.midcast.Divine --+95 accu
  504.     sets.midcast['Enlight II'] = sets.midcast.Enlight--+142 accu (+2 acc each 20 divine skill)
  505.      
  506.     --Max HP+ set for reprisal 3951HP / war so 7902+ damage reflect before it off (8k+ with food)
  507.     sets.midcast.Reprisal =
  508. {
  509.    
  510.     ammo="Egoist's Tathlum",
  511.     head="Flam. Zucchetto +2",
  512.     body={ name="Souv. Cuirass +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  513.     hands={ name="Souv. Handsch. +1", augments={'HP+65','Shield skill +15','Phys. dmg. taken -4',}},
  514.     legs={ name="Acro Breeches", augments={'Accuracy+10','Haste+3','STR+3 VIT+3',}},
  515.     feet={ name="Carmine Greaves +1", augments={'HP+80','MP+80','Phys. dmg. taken -4',}},
  516.     neck="Orunmila's Torque",
  517.     waist="Sailfi Belt +1",
  518.     left_ear="Odnowa Earring +1",
  519.     right_ear="Odnowa Earring",
  520.     left_ring="K'ayres Ring",
  521.     right_ring="Meridian Ring",
  522.     back="Moonbeam Cape",
  523. }
  524.      
  525.     --Phalanx skill 386/386 = 31/31  + phalanx + 30/31 total 61/62
  526.     sets.midcast.Phalanx =
  527. {
  528.    
  529.     ammo="Egoist's Tathlum",
  530.     head={ name="Yorium Barbuta", augments={'Spell interruption rate down -4%','Phalanx +3',}},
  531.     body={ name="Yorium Cuirass", augments={'"Drain" and "Aspir" potency +3','Phalanx +3',}},
  532.     hands={ name="Souv. Handsch. +1", augments={'HP+65','Shield skill +15','Phys. dmg. taken -4',}},
  533.     legs={ name="Yorium Cuisses", augments={'Spell interruption rate down -1%','Phalanx +3',}},
  534.     feet={ name="Carmine Greaves +1", augments={'HP+80','MP+80','Phys. dmg. taken -4',}},
  535.     neck="Diemer Gorget",
  536.     waist="Sailfi Belt +1",
  537.     left_ear="Odnowa Earring +1",
  538.     right_ear="Andoaa Earring",
  539.     left_ring="K'ayres Ring",
  540.     right_ring="Meridian Ring",
  541.     back={ name="Weard Mantle", augments={'VIT+1','DEX+3','Enmity+2','Phalanx +5',}},
  542. }
  543.      
  544.     sets.midcast.Banish =
  545. {
  546.     ammo="Pemphredo Tathlum",
  547.     head="Wh. Rarab Cap +1",
  548.     body={ name="Odyss. Chestplate", augments={'Pet: "Subtle Blow"+9','Pet: Mag. Acc.+13 Pet: "Mag.Atk.Bns."+13','"Treasure Hunter"+1',}},
  549.     hands={ name="Founder's Gauntlets", augments={'STR+10','Attack+15','"Mag.Atk.Bns."+15','Phys. dmg. taken -5%',}},
  550.     legs={ name="Odyssean Cuisses", augments={'Pet: "Dbl.Atk."+1 Pet: Crit.hit rate +1','AGI+14','"Treasure Hunter"+2',}},
  551.     feet={ name="Founder's Greaves", augments={'VIT+10','Accuracy+15','"Mag.Atk.Bns."+15','Mag. Evasion+15',}},
  552.     neck="Eddy Necklace",
  553.     waist="Chaac Belt",
  554.     left_ear="Crematio Earring",
  555.     right_ear="Friomisi Earring",
  556.     left_ring="Shiva Ring +1",
  557.     right_ring="Fenian Ring",
  558.     back={ name="Rudianos's Mantle", augments={'INT+20','Mag. Acc+20 /Mag. Dmg.+20','INT+10','Weapon skill damage +10%',}},
  559. }
  560.    
  561.    
  562.     sets.midcast['Banish II'] = set_combine(sets.midcast.MAB, {right_ring="Fenian Ring"})
  563.      
  564.     sets.midcast.Holy = sets.midcast.MAB
  565.     sets.midcast['Holy II'] = sets.midcast.Holy
  566.      
  567.     sets.midcast.Crusade =
  568. {
  569.     ammo="Staunch Tathlum +1",
  570.     head="Loess Barbuta +1",
  571.     body={ name="Souv. Cuirass +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  572.     hands={ name="Yorium Gauntlets", augments={'Enmity+10','Phalanx +3',}},
  573.     legs={ name="Founder's Hose", augments={'MND+8','Mag. Acc.+14','Attack+13','Breath dmg. taken -3%',}},
  574.     feet={ name="Eschite Greaves", augments={'HP+80','Enmity+7','Phys. dmg. taken -4',}},
  575.     neck="Unmoving Collar +1",
  576.     waist="Rumination Sash",
  577.     left_ear="Halasz Earring",
  578.     right_ear="Knightly Earring",
  579.     left_ring="Evanescence Ring",
  580.     right_ring="Apeile Ring +1",
  581.     back={ name="Rudianos's Mantle", augments={'VIT+20','Eva.+20 /Mag. Eva.+20','VIT+10','Enmity+10',}},
  582. }
  583.      
  584. -- Cure1=120; Cure2=266; Cure3=600; Cure4=1123; cure potency caps at 50/50% received caps at 32/30%. sans signet
  585.     sets.midcast.Cure =
  586. {
  587.     ammo="Staunch Tathlum +1",
  588.     head={ name="Souv. Schaller +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  589.     body={ name="Jumalik Mail", augments={'HP+50','Attack+15','Enmity+9','"Refresh"+2',}},
  590.     hands="Macabre Gaunt. +1",
  591.     legs={ name="Founder's Hose", augments={'MND+8','Mag. Acc.+14','Attack+13','Breath dmg. taken -3%',}},
  592.     feet={ name="Odyssean Greaves", augments={'Potency of "Cure" effect received+6%','MND+2','Mag. Acc.+8','"Mag.Atk.Bns."+3',}},
  593.     neck="Incanter's Torque",
  594.     waist="Hachirin-no-obi",
  595.     left_ear="Nourish. Earring +1",
  596.     right_ear="Mendi. Earring",
  597.     left_ring="Moonlight Ring",
  598.     right_ring="Moonlight Ring",
  599.     back="Solemnity Cape",
  600. }  
  601.  
  602.     sets.midcast.Cure.DT =
  603. {
  604.     ammo="Staunch Tathlum +1",
  605.     head={ name="Souv. Schaller +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  606.     body={ name="Jumalik Mail", augments={'HP+50','Attack+15','Enmity+9','"Refresh"+2',}},
  607.     hands="Macabre Gaunt. +1",
  608.     legs={ name="Souv. Diechlings +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  609.     feet={ name="Souveran Schuhs +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  610.     neck="Loricate Torque +1",
  611.     waist="Flume Belt +1",
  612.     left_ear="Nourish. Earring +1",
  613.     right_ear="Mendi. Earring",
  614.     left_ring="Moonlight Ring",
  615.     right_ring="Moonlight Ring",
  616.     back="Solemnity Cape",
  617. }
  618. -- 630 HP (curecheat)
  619.     sets.self_healing =
  620. {
  621.     ammo="Staunch Tathlum +1",
  622.     head={ name="Souv. Schaller +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  623.     body={ name="Jumalik Mail", augments={'HP+50','Attack+15','Enmity+9','"Refresh"+2',priority=4}},
  624.     hands="Macabre Gaunt. +1",
  625.     legs={ name="Souv. Diechlings +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',priority=3}},
  626.     feet={ name="Souveran Schuhs +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',priority=2}},
  627.     neck="Phalaina Locket",
  628.     waist="Oneiros Belt",
  629.     left_ear="Odnowa Earring +1",
  630.     right_ear="Odnowa Earring",
  631.     left_ring="Moonlight Ring",
  632.     right_ring="Moonlight Ring",
  633.     back="Solemnity Cape",
  634. }
  635.    
  636.     sets.self_healing.DT =
  637. {
  638.     ammo="Staunch Tathlum +1",
  639.     head={ name="Souv. Schaller +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  640.     body={ name="Jumalik Mail", augments={'HP+50','Attack+15','Enmity+9','"Refresh"+2',}},
  641.     hands="Macabre Gaunt. +1",
  642.     legs={ name="Souv. Diechlings +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  643.     feet={ name="Souveran Schuhs +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  644.     neck="Phalaina Locket",
  645.     waist="Gishdubar Sash",
  646.     left_ear="Nourish. Earring +1",
  647.     right_ear="Oneiros Earring",
  648.     left_ring="Moonlight Ring",
  649.     right_ring="Defending Ring",
  650.     back="Solemnity Cape",
  651. }
  652.  
  653.     sets.midcast.Protect =
  654. {
  655.     ammo="Staunch Tathlum +1",
  656.     head={ name="Souv. Schaller +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  657.     body="Shab. Cuirass +1",
  658.     hands={ name="Souv. Handsch. +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  659.     legs={ name="Founder's Hose", augments={'MND+8','Mag. Acc.+14','Attack+13','Breath dmg. taken -3%',}},
  660.     feet={ name="Odyssean Greaves", augments={'"Fast Cast"+6','"Mag.Atk.Bns."+10',}},
  661.     neck="Incanter's Torque",
  662.     waist="Rumination Sash",
  663.     left_ear="Halasz Earring",
  664.     right_ear="Knightly Earring",
  665.     left_ring="Evanescence Ring",
  666.     right_ring="Sheltered Ring",
  667.     back="Solemnity Cape",
  668. }
  669.     sets.midcast.Shell =
  670. {
  671.     ammo="Staunch Tathlum +1",
  672.     head={ name="Souv. Schaller +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  673.     body="Shab. Cuirass +1",
  674.     hands={ name="Souv. Handsch. +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  675.     legs={ name="Founder's Hose", augments={'MND+8','Mag. Acc.+14','Attack+13','Breath dmg. taken -3%',}},
  676.     feet={ name="Odyssean Greaves", augments={'"Fast Cast"+6','"Mag.Atk.Bns."+10',}},
  677.     neck="Incanter's Torque",
  678.     waist="Rumination Sash",
  679.     left_ear="Halasz Earring",
  680.     right_ear="Knightly Earring",
  681.     left_ring="Evanescence Ring",
  682.     right_ring="Sheltered Ring",
  683.     back="Solemnity Cape",
  684. }
  685.     sets.midcast.Raise =
  686. {
  687.     ammo="Staunch Tathlum +1",
  688.     head={ name="Souv. Schaller +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  689.     body={ name="Souv. Cuirass +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  690.     hands={ name="Souv. Handsch. +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  691.     legs={ name="Founder's Hose", augments={'MND+8','Mag. Acc.+14','Attack+13','Breath dmg. taken -3%',}},
  692.     feet={ name="Odyssean Greaves", augments={'"Mag.Atk.Bns."+10','"Fast Cast"+6',}},
  693.     neck="Moonlight Necklace",
  694.     waist="Rumination Sash",
  695.     left_ear="Halasz Earring",
  696.     right_ear="Knightly Earring",
  697.     left_ring="Moonlight Ring",
  698.     right_ring="Defending Ring",
  699.     back="Moonlight Cape",
  700. }  
  701.     sets.midcast.Stun = sets.midcast.Flash
  702.    
  703.     --Spell interupt down (pro shell raise)104/102
  704.     sets.SID =
  705. {
  706.     ammo="Staunch Tathlum +1",
  707.     head={ name="Souv. Schaller +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  708.     body={ name="Souv. Cuirass +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  709.     hands={ name="Souv. Handsch. +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  710.     legs={ name="Founder's Hose", augments={'MND+8','Mag. Acc.+14','Attack+13','Breath dmg. taken -3%',}},
  711.     feet={ name="Odyssean Greaves", augments={'"Mag.Atk.Bns."+10','"Fast Cast"+6',}},
  712.     neck="Incanter's Torque",
  713.     waist="Rumination Sash",
  714.     left_ear="Halasz Earring",
  715.     right_ear="Knightly Earring",
  716.     left_ring="Evanescence Ring",
  717.     right_ring="Defending Ring",
  718.     back="Solemnity Cape",
  719. }
  720.  
  721. ---------- NIN Spell    --------------
  722.     sets.midcast.Utsusemi =
  723. {
  724.     ammo="Staunch Tathlum +1",
  725.     head={ name="Souv. Schaller +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  726.     body={ name="Souv. Cuirass +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  727.     hands={ name="Souv. Handsch. +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  728.     legs={ name="Founder's Hose", augments={'MND+8','Mag. Acc.+14','Attack+13','Breath dmg. taken -3%',}},
  729.     feet={ name="Odyssean Greaves", augments={'"Mag.Atk.Bns."+10','"Fast Cast"+6',}},
  730.     neck="Incanter's Torque",
  731.     waist="Rumination Sash",
  732.     left_ear="Halasz Earring",
  733.     right_ear="Knightly Earring",
  734.     left_ring="Evanescence Ring",
  735.     right_ring="Defending Ring",
  736.     back="Solemnity Cape",
  737. }
  738.  
  739.    
  740. ---------- BLU Spell    --------------
  741.     sets.midcast['Geist Wall'] =
  742. {
  743.     ammo="Staunch Tathlum +1",
  744.     head={ name="Souv. Schaller +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  745.     body={ name="Souv. Cuirass +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  746.     hands={ name="Souv. Handsch. +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  747.     legs={ name="Founder's Hose", augments={'MND+8','Mag. Acc.+14','Attack+13','Breath dmg. taken -3%',}},
  748.     feet={ name="Odyssean Greaves", augments={'"Mag.Atk.Bns."+10','"Fast Cast"+6',}},
  749.     neck="Incanter's Torque",
  750.     waist="Rumination Sash",
  751.     left_ear="Halasz Earring",
  752.     right_ear="Knightly Earring",
  753.     left_ring="Evanescence Ring",
  754.     right_ring="Defending Ring",
  755.     back="Solemnity Cape",
  756. }
  757.    
  758.  
  759.     sets.midcast['Sheep Song'] =
  760. {
  761.     ammo="Staunch Tathlum +1",
  762.     head={ name="Souv. Schaller +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  763.     body={ name="Souv. Cuirass +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  764.     hands={ name="Souv. Handsch. +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  765.     legs={ name="Founder's Hose", augments={'MND+8','Mag. Acc.+14','Attack+13','Breath dmg. taken -3%',}},
  766.     feet={ name="Odyssean Greaves", augments={'"Mag.Atk.Bns."+10','"Fast Cast"+6',}},
  767.     neck="Incanter's Torque",
  768.     waist="Rumination Sash",
  769.     left_ear="Halasz Earring",
  770.     right_ear="Knightly Earring",
  771.     left_ring="Evanescence Ring",
  772.     right_ring="Defending Ring",
  773.     back="Solemnity Cape",
  774. }
  775.  
  776.    
  777.     sets.midcast.Soporific =
  778. {
  779.     ammo="Staunch Tathlum +1",
  780.     head={ name="Souv. Schaller +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  781.     body={ name="Souv. Cuirass +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  782.     hands={ name="Souv. Handsch. +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  783.     legs={ name="Founder's Hose", augments={'MND+8','Mag. Acc.+14','Attack+13','Breath dmg. taken -3%',}},
  784.     feet={ name="Odyssean Greaves", augments={'"Mag.Atk.Bns."+10','"Fast Cast"+6',}},
  785.     neck="Incanter's Torque",
  786.     waist="Rumination Sash",
  787.     left_ear="Halasz Earring",
  788.     right_ear="Knightly Earring",
  789.     left_ring="Evanescence Ring",
  790.     right_ring="Defending Ring",
  791.     back="Solemnity Cape",
  792. }
  793.  
  794.    
  795.     sets.midcast['Stinking Gas'] =
  796. {
  797.     ammo="Staunch Tathlum +1",
  798.     head={ name="Souv. Schaller +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  799.     body={ name="Souv. Cuirass +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  800.     hands={ name="Souv. Handsch. +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  801.     legs={ name="Founder's Hose", augments={'MND+8','Mag. Acc.+14','Attack+13','Breath dmg. taken -3%',}},
  802.     feet={ name="Odyssean Greaves", augments={'"Mag.Atk.Bns."+10','"Fast Cast"+6',}},
  803.     neck="Incanter's Torque",
  804.     waist="Rumination Sash",
  805.     left_ear="Halasz Earring",
  806.     right_ear="Knightly Earring",
  807.     left_ring="Evanescence Ring",
  808.     right_ring="Defending Ring",
  809.     back="Solemnity Cape",
  810. }
  811.  
  812.    
  813.     sets.midcast['Bomb Toss'] =
  814. {
  815.     ammo="Staunch Tathlum +1",
  816.     head={ name="Souv. Schaller +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  817.     body={ name="Souv. Cuirass +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  818.     hands={ name="Souv. Handsch. +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  819.     legs={ name="Founder's Hose", augments={'MND+8','Mag. Acc.+14','Attack+13','Breath dmg. taken -3%',}},
  820.     feet={ name="Odyssean Greaves", augments={'"Mag.Atk.Bns."+10','"Fast Cast"+6',}},
  821.     neck="Incanter's Torque",
  822.     waist="Rumination Sash",
  823.     left_ear="Halasz Earring",
  824.     right_ear="Knightly Earring",
  825.     left_ring="Evanescence Ring",
  826.     right_ring="Defending Ring",
  827.     back="Solemnity Cape",
  828. }
  829.  
  830.    
  831.    
  832.    
  833.    
  834.    
  835.    
  836.     --------------------------------------
  837.     -- Idle/resting/defense/etc sets
  838.     --------------------------------------
  839.     sets.Cover = set_combine(sets.precast.JA['Rampart'], {main="Kheshig Blade", head="Rev. Coronet +3", body="Cab. Surcoat +1"})
  840.     sets.Doom = {legs="Shabti Cuisses +1",left_ring="Eshmun's Ring",right_ring="Eshmun's Ring", waist="Gishdubar Sash"} -- +65%
  841.     sets.Petri = {back="Sand Mantle"}
  842.     sets.Reraise = {head="Twilight Helm", body="Twilight Mail"}
  843.     sets.Sleep = {neck="Vim Torque +1",}
  844.     sets.Breath =
  845. {
  846.     ammo="Staunch Tathlum +1",
  847.     head={ name="Souv. Schaller +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  848.     body={ name="Souv. Cuirass +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  849.     hands={ name="Souv. Handsch. +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  850.     legs={ name="Souv. Diechlings +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  851.     feet={ name="Amm Greaves", augments={'HP+50','VIT+10','Accuracy+15','Damage taken-2%',}},
  852.     neck="Loricate Torque +1",
  853.     waist="Creed Baudrier",
  854.     left_ear="Odnowa Earring +1",
  855.     right_ear="Odnowa Earring",
  856.     left_ring="Moonlight Ring",
  857.     right_ring="Defending Ring",
  858.     back="Moonlight Cape",
  859. }
  860.    
  861.     sets.resting =
  862. {
  863.     ammo="Homiliary",
  864.     head={ name="Jumalik Helm", augments={'MND+10','"Mag.Atk.Bns."+15','Magic burst dmg.+10%','"Refresh"+1',}},
  865.     body={ name="Souv. Cuirass +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  866.     hands={ name="Odyssean Gauntlets", augments={'Pet: DEX+2','Pet: STR+6','"Refresh"+1',}},
  867.     legs= "Carmine Cuisses +1",
  868.     feet={ name="Amm Greaves", augments={'HP+50','VIT+10','Accuracy+15','Damage taken-2%',}},
  869.     neck="Creed Collar",
  870.     waist="Fucho-no-Obi",
  871.     left_ear="Infused Earring",
  872.     right_ear="Ethereal Earring",
  873.     left_ring="Sheltered Ring",
  874.     right_ring="Stikini Ring +1",
  875.     back={ name="Rudianos's Mantle", augments={'VIT+20','Accuracy+20 Attack+20','VIT+10','Enmity+10',}},
  876. }
  877.      
  878.     -- Idle sets
  879.     sets.idle =
  880. {
  881.     ammo="Homiliary",
  882.     head={ name="Odyssean Helm", augments={'INT+1','Accuracy+18','"Refresh"+2',}},
  883.     body={ name="Souv. Cuirass +1", augments={'VIT+12','Attack+25','"Refresh"+3',}},
  884.     hands={ name="Odyssean Gauntlets", augments={'Pet: DEX+2','Pet: STR+6','"Refresh"+1',}},
  885.     legs={ name="Carmine Cuisses +1", augments={'HP+80','STR+12','INT+12',}},
  886.     feet={ name="Amm Greaves", augments={'HP+50','VIT+10','Accuracy+15','Damage taken-2%',}},
  887.     neck="Creed Collar",
  888.     waist="Fucho-no-Obi",
  889.     left_ear="Infused Earring",
  890.     right_ear="Ethereal Earring",
  891.     left_ring="Sheltered Ring",
  892.     right_ring="Stikini Ring +1",
  893.     back="Moonlight Cape",
  894. }
  895.  
  896.     sets.idle.Town =
  897. {      
  898.    
  899.     ammo="Homiliary",
  900.     head={ name="Odyssean Helm", augments={'INT+1','Accuracy+18','"Refresh"+2',}},
  901.     body={ name="Souv. Cuirass +1", augments={'VIT+12','Attack+25','"Refresh"+3',}},
  902.     hands={ name="Odyssean Gauntlets", augments={'Pet: DEX+2','Pet: STR+6','"Refresh"+1',}},
  903.     legs={ name="Carmine Cuisses +1", augments={'HP+80','STR+12','INT+12',}},
  904.     feet={ name="Souveran Schuhs +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  905.     neck="Loricate Torque +1",
  906.     waist="Fucho-no-Obi",
  907.     left_ear="Infused Earring",
  908.     right_ear="Ethereal Earring",
  909.     right_ring="Dim. Ring (Holla)",
  910.     left_ring="Sheltered Ring",
  911.     back="Moonlight Cape",
  912. }
  913.      
  914.     sets.idle.Weak =
  915. {
  916.     main="Burtgang",
  917.     ammo="Homiliary",
  918.     head="Twilight helm",
  919.     neck="Loricate Torque +1",
  920.     ear1="Infused Earring",
  921.     ear2="Ethereal Earring",
  922.     body="Twilight mail",
  923.     hands={ name="Odyssean Gauntlets", augments={'Pet: DEX+2','Pet: STR+6','"Refresh"+1',}},
  924.     ring1="Sheltered Ring",
  925.     ring2="Stikini Ring +1",
  926.     back="Moonlight Cape",
  927.     waist="Fucho-no-obi",
  928.     legs={ name="Odyssean Cuisses", augments={'Pet: INT+11','"Mag.Atk.Bns."+18','"Refresh"+2','Mag. Acc.+7 "Mag.Atk.Bns."+7',}},
  929.     feet="Amm Greaves"
  930. }
  931.      
  932.     sets.idle.Weak.Reraise = set_combine(sets.idle.Weak, sets.Reraise)
  933.    
  934.     sets.HQ =
  935. {
  936.    
  937.     ammo="Homiliary",
  938.     head="Magnifying Specs.",
  939.     body="Tanner's Apron",
  940.     hands="Tanner's Gloves",
  941.     legs={ name="Carmine Cuisses +1", augments={'HP+80','STR+12','INT+12',}},
  942.     feet={ name="Souveran Schuhs +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  943.     neck="Tanner's Torque",
  944.     waist="Fucho-no-Obi",
  945.     left_ear="Infused Earring",
  946.     right_ear="Ethereal Earring",
  947.     left_ring="Orvail Ring +1",
  948.     right_ring="Craftmaster's Ring",
  949.     back="Moonlight Cape",
  950. }
  951.    
  952.  
  953.      
  954.     --   Physical
  955.     --     PDT
  956.     --     Aegis
  957.     -- Defense sets
  958.     --   Magical
  959.     --     MDT
  960.     --   Hybrid (on top of either physical or magical)
  961.     --     Repulse  
  962.     --     Reraise
  963.     --     RepulseReraise
  964.     --   Custom
  965.      
  966.     -- sets.Repulse = {back="Repulse Mantle"}
  967.   --3367 HP  
  968.     sets.defense.PDT =
  969. {
  970.    
  971.     ammo="Staunch Tathlum +1",
  972.     head="Sulevia's Mask +1",
  973.     body="Souveran Cuirass +1",
  974.     hands="Souveran handschuhs +1",
  975.     legs="Sulevia's cuisses +1",
  976.     feet="Carmine Greaves +1",
  977.     neck="Diemer gorget",
  978.     waist="Sailfi belt +1",
  979.     left_ear="Odnowa Earring +1",
  980.     right_ear="Odnowa Earring",
  981.     left_ring="Dark Ring",
  982.     right_ring="Defending Ring",
  983.     back="Moonbeam Cape",
  984. }
  985.     -- To cap MDT with Shell IV (52/256), need 76/256 in gear. Current gear set is 248/256.
  986.     -- Shellra V can provide 75/256.
  987.     sets.defense.MDT =
  988. {
  989.  
  990.     ammo="Iron Gobbet",
  991.     head="Sulevia's Mask +1",
  992.     body={ name="Souv. Cuirass +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  993.     hands="Souveran handschuhs +1",
  994.     legs={ name="Acro Breeches", augments={'Accuracy+10','Haste+3','STR+3 VIT+3',}},
  995.     feet="Sulev. Leggings +1",
  996.     neck="Loricate Torque +1",
  997.     waist="Sailfi Belt +1",
  998.     left_ear="Odnowa Earring +1",
  999.     right_ear="Odnowa Earring",
  1000.     left_ring={ name="Dark Ring", augments={'Enemy crit. hit rate -2','Magic dmg. taken -6%','Phys. dmg. taken -6%',}},
  1001.     right_ring="Defending Ring",
  1002.     back="Moonbeam Cape",
  1003. }
  1004.  
  1005.     sets.defense.BDT =
  1006. {  
  1007.    
  1008.     ammo="Staunch Tathlum +1",
  1009.     head={ name="Souv. Schaller +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  1010.     body={ name="Souv. Cuirass +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  1011.     hands={ name="Souv. Handsch. +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  1012.     legs={ name="Souv. Diechlings +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  1013.     feet={ name="Souveran Schuhs +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  1014.     neck="Loricate Torque +1",
  1015.     waist="Creed Baudrier",
  1016.     left_ear="Odnowa Earring +1",
  1017.     right_ear="Odnowa Earring",
  1018.     left_ring="Moonlight Ring",
  1019.     right_ring="Defending Ring",
  1020.     back={ name="Rudianos's Mantle", augments={'VIT+20','Eva.+20 /Mag. Eva.+20','VIT+10','Enmity+10',}},
  1021. }
  1022.  
  1023.     sets.defense.ResistCharm =
  1024. {
  1025.    
  1026.     ammo="Staunch Tathlum +1",
  1027.     head={ name="Souv. Schaller +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  1028.     body={ name="Souv. Cuirass +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  1029.     hands={ name="Souv. Handsch. +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  1030.     legs={ name="Souv. Diechlings +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  1031.     feet={ name="Souveran Schuhs +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  1032.     neck="Unmoving Collar +1",
  1033.     waist="Asklepian Belt",
  1034.     left_ear="Eabani Earring",
  1035.     right_ear="Volunt. Earring",
  1036.     left_ring="Unyielding Ring",
  1037.     right_ring="Wuji Ring",
  1038.     back="Solemnity Cape",
  1039. }  
  1040.    
  1041.     sets.defense.Ochain =
  1042. {
  1043.    
  1044.     ammo="Staunch Tathlum +1",
  1045.     head={ name="Souv. Schaller +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  1046.     body={ name="Souv. Cuirass +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  1047.     hands={ name="Souv. Handsch. +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  1048.     legs={ name="Souv. Diechlings +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  1049.     feet={ name="Souveran Schuhs +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  1050.     neck="Creed Collar",
  1051.     waist="Flume Belt +1",
  1052.     left_ear="Odnowa Earring +1",
  1053.     right_ear="Odnowa Earring",
  1054.     left_ring="Moonlight Ring",
  1055.     right_ring="Defending Ring",
  1056.     back={ name="Rudianos's Mantle", augments={'VIT+20','Eva.+20 /Mag. Eva.+20','VIT+10','Enmity+10',}},
  1057. }
  1058.          
  1059.     sets.defense.Aegis =
  1060. {
  1061.    
  1062.     ammo="Staunch Tathlum +1",
  1063.     head={ name="Souv. Schaller +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  1064.     body={ name="Souv. Cuirass +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  1065.     hands={ name="Souv. Handsch. +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  1066.     legs={ name="Souv. Diechlings +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  1067.     feet={ name="Souveran Schuhs +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  1068.     neck="Creed Collar",
  1069.     waist="Flume Belt +1",
  1070.     left_ear="Odnowa Earring +1",
  1071.     right_ear="Odnowa Earring",
  1072.     left_ring="Moonlight Ring",
  1073.     right_ring="Defending Ring",
  1074.     back={ name="Rudianos's Mantle", augments={'VIT+20','Eva.+20 /Mag. Eva.+20','VIT+10','Enmity+10',}},
  1075. }  
  1076.  
  1077.     sets.defense.Srivatsa =
  1078. {
  1079.    
  1080.     ammo="Staunch Tathlum +1",
  1081.     head={ name="Souv. Schaller +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  1082.     body={ name="Souv. Cuirass +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  1083.     hands={ name="Souv. Handsch. +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  1084.     legs={ name="Souv. Diechlings +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  1085.     feet={ name="Souveran Schuhs +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  1086.     neck="Creed Collar",
  1087.     waist="Flume Belt +1",
  1088.     left_ear="Thureous Earring",
  1089.     right_ear="Odnowa Earring +1",
  1090.     left_ring="Moonlight Ring",
  1091.     right_ring="Defending Ring",
  1092.     back={ name="Rudianos's Mantle", augments={'VIT+20','Eva.+20 /Mag. Eva.+20','VIT+10','Enmity+10',}},
  1093. }
  1094.  
  1095. --Doom/RR",
  1096.      
  1097.     sets.defense.PDT.Reraise = set_combine(sets.defense.PDT, sets.Reraise)
  1098.     sets.defense.Aegis.Reraise = set_combine(sets.defense.Aegis, sets.Reraise)
  1099.     sets.defense.MDT.Reraise = set_combine(sets.defense.MDT, sets.Reraise)
  1100.     sets.defense.Aegis.Reraise = set_combine(sets.defense.Aegis, sets.Reraise)
  1101.      
  1102.     sets.defense.PDT.Doom = set_combine(sets.defense.PDT, sets.Doom)
  1103.     sets.defense.Aegis.Doom = set_combine(sets.defense.Aegis, sets.Doom)
  1104.     sets.defense.MDT.Doom = set_combine(sets.defense.PDT, sets.Doom)
  1105.     sets.defense.Aegis.Doom = set_combine(sets.defense.Aegis, sets.Doom)
  1106.      
  1107.     sets.Kiting = {legs="Carmine Cuisses +1"}
  1108.  
  1109.  
  1110.  
  1111.     --------------------------------------
  1112.     -- Engaged sets
  1113.     --------------------------------------
  1114.      
  1115.     sets.engaged = --1124 / 1264 avec enlight up
  1116. {
  1117.     ammo="Ginsen",
  1118.     head="Flam. Zucchetto +2",
  1119.     body="Vatic Byrnie",
  1120.     hands="Sulev. Gauntlets +1",
  1121.     legs="Sulevia's Cuisses",
  1122.     feet={ name="Carmine Greaves +1", augments={'HP+80','MP+80','Phys. dmg. taken -4',}},
  1123.     neck="Asperity Necklace",
  1124.     waist="Sailfi Belt +1",
  1125.     left_ear="Cessance Earring",
  1126.     right_ear="Brutal Earring",
  1127.     left_ring="Rajas Ring",
  1128.     right_ring="Petrov Ring",
  1129.     back="Letalis Mantle",
  1130. }
  1131.  
  1132.     sets.engaged.Acc = --1179 / 1315 avec enlight up
  1133. {
  1134.     ammo="Ginsen",
  1135.     head="Flam. Zucchetto +2",
  1136.     body={ name="Souv. Cuirass +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  1137.     hands="Sulev. Gauntlets +1",
  1138.     legs="Sulevia's Cuisses",
  1139.     feet="Flam. Gambieras +1",
  1140.     neck="Subtlety Spec.",
  1141.     waist="Sailfi Belt +1",
  1142.     left_ear="Cessance Earring",
  1143.     right_ear="Zennaroi Earring",
  1144.     left_ring="Mars's Ring",
  1145.     right_ring="Flamma Ring",
  1146.     back="Letalis Mantle",
  1147. }
  1148. end
  1149. ------------------------------------------------------------------------------------------------------------------------------------------
  1150. ----------------------------------------Job-specific hooks that are called to process player actions at specific points in time-----------
  1151. ------------------------------------------------------------------------------------------------------------------------------------------
  1152.  
  1153.  
  1154.  
  1155. function job_update(cmdParams, eventArgs)
  1156.     update_defense_mode()
  1157. end
  1158.  
  1159. -- Modify the default idle set after it was constructed.
  1160. function customize_idle_set(idleSet)
  1161.     if player.mpp < 51 then
  1162.         idleSet = set_combine(idleSet, sets.latent_refresh)
  1163.     end
  1164.     if state.Buff.Doom then
  1165.         idleSet = set_combine(idleSet, sets.buff.Doom)
  1166.     end
  1167.      
  1168.     return idleSet
  1169. end
  1170.  
  1171.  
  1172.  
  1173. function customize_defense_set(defenseSet)
  1174.     if state.ExtraDefenseMode.value ~= 'None' then
  1175.         defenseSet = set_combine(defenseSet, sets[state.ExtraDefenseMode.value])
  1176.     end
  1177.      
  1178.     if state.EquipShield.value == true then
  1179.         defenseSet = set_combine(defenseSet, sets[state.DefenseMode.current .. 'Shield'])
  1180.     end
  1181.      
  1182.     return defenseSet
  1183. end
  1184.  
  1185. -------------------------------------------------------------------------------------------------------------------
  1186. -- Customization hooks for idle and melee sets, after they've been automatically constructed.
  1187. -------------------------------------------------------------------------------------------------------------------
  1188. -------------------------------------------------------------------------------------------------------------------
  1189. -- General hooks for change events.
  1190. -------------------------------------------------------------------------------------------------------------------
  1191.  
  1192. -- Run after the default precast() is done.
  1193. -- eventArgs is the same one used in job_precast, in case information needs to be persisted.
  1194. function job_post_precast(spell, action, spellMap, eventArgs)
  1195.  refine_various_spells(spell, action, spellMap, eventArgs)
  1196. end
  1197. -- Set eventArgs.handled to true if we don't want any automatic gear equipping to be done.
  1198. function job_midcast(spell, action, spellMap, eventArgs)
  1199.  
  1200. end
  1201. -- Run after the default midcast() is done.
  1202. -- eventArgs is the same one used in job_midcast, in case information needs to be persisted.
  1203. function job_post_midcast(spell, action, spellMap, eventArgs)
  1204.  
  1205. end
  1206. -- Set eventArgs.handled to true if we don't want any automatic gear equipping to be done.
  1207. function job_aftercast(spell, action, spellMap, eventArgs)
  1208.     if state.Buff[spell.english] ~= nil then
  1209.         state.Buff[spell.english] = not spell.interrupted or buffactive[spell.english]
  1210.     end
  1211. end
  1212. -- Modify the default idle set after it was constructed.
  1213. function customize_idle_set(idleSet)
  1214.     if player.mpp < 51 then
  1215.         idleSet = set_combine(idleSet, sets.latent_refresh)
  1216.     end
  1217.  
  1218.     return idleSet
  1219. end
  1220. -- Modify the default melee set after it was constructed.
  1221. function customize_melee_set(meleeSet)
  1222.     return meleeSet
  1223. end
  1224. -- Called when a player gains or loses a buff.
  1225. -- buff == buff gained or lost
  1226. -- gain == true if the buff was gained, false if it was lost.
  1227.  
  1228.         --print( buff )
  1229.         --print( state.Buff[buff] )
  1230.  
  1231. -- Called by the 'update' self-command, for common needs.
  1232. -- Set eventArgs.handled to true if we don't want automatic equipping of gear.
  1233. function job_update(cmdParams, eventArgs)
  1234.     update_defense_mode()
  1235. end
  1236. -- Called when the player's status changes.
  1237. function job_state_change(field, new_value, old_value)
  1238.     if field == 'HybridDefenseMode' then
  1239.         classes.CustomDefenseGroups:clear()
  1240.         classes.CustomDefenseGroups:append(new_value)
  1241.     end
  1242. end
  1243. -- Set eventArgs.handled to true if we don't want the automatic display to be run.
  1244. function display_current_job_state(eventArgs)
  1245.  
  1246. end
  1247. function update_defense_mode()
  1248.     if player.equipment.main == 'Burtgang' and not classes.CustomDefenseGroups:contains('Burtgang') then
  1249.         classes.CustomDefenseGroups:append('Burtgang')
  1250.     end
  1251.      
  1252.     if player.sub_job == 'NIN' or player.sub_job == 'DNC' then
  1253.         if player.equipment.sub and not player.equipment.sub:endswith('Shield') and
  1254.         player.equipment.sub ~= 'Aegis' and player.equipment.sub ~= 'Ochain' then
  1255.         state.CombatForm = 'DW'
  1256.         else
  1257.         state.CombatForm = nil
  1258.         end
  1259.     end
  1260. end
  1261.  
  1262. function job_buff_change(buff, gain)
  1263.         if buff == "Cover" then
  1264.                 if gain then
  1265.                         equip (sets.Cover)
  1266.                         disable('Body','Head')
  1267.                 else
  1268.                         enable('Body','Head')
  1269.                         handle_equipping_gear(player.status)
  1270.                 end
  1271.         elseif buff == "doom" then
  1272.                 if gain then          
  1273.                         equip(sets.Doom)
  1274.                         send_command('@input /p Doomed, please Cursna.')
  1275.                         send_command('@input /item "Holy Water" <me>')                 
  1276.                         disable('legs','ring1','ring2','waist')
  1277.                 elseif not gain and not player.status == "Dead" and not player.status == "Engaged Dead" then
  1278.                         enable('legs','ring1','ring2','waist')
  1279.                         send_command('input /p Doom removed, Thank you.')
  1280.                         handle_equipping_gear(player.status)
  1281.                 else
  1282.                         enable('legs','ring1','ring2','waist')
  1283.                         send_command('input /p '..player.name..' is no longer Doom Thank you !')
  1284.                 end
  1285.                  elseif buff == "petrification" then
  1286.                 if gain then    
  1287.                         equip(sets.Petri)
  1288.                         disable('back')            
  1289.                         send_command('@input /p Petrification, please Stona.')     
  1290.                 else
  1291.                         enable('back')
  1292.                         send_command('input /p '..player.name..' is no longer Petrify Thank you !')
  1293.                     end
  1294.                  elseif buff == "Charm" then
  1295.                  if gain then          
  1296.                         send_command('@input /p Charmd, please Sleep me.')     
  1297.                 else   
  1298.                         send_command('input /p '..player.name..' is no longer Charmed, please wake me up!')
  1299.                     end
  1300.                 elseif buff == "paralysis" then
  1301.                  if gain then
  1302.                        
  1303.                         send_command('@input /p '..player.name..' Paralysed, please Paralyna.')
  1304.                         send_command('@input /item "Remedy" <me>') 
  1305.                 else                        
  1306.                         send_command('input /p '..player.name..' is no longer Paralysed Thank you !')
  1307.                     end
  1308.  
  1309.         end
  1310.     for index,value in pairs(buffWatcher.watchList) do
  1311.     if index==buff then
  1312.       buffWatch()
  1313.       break
  1314.     end
  1315.   end
  1316. end
  1317.  
  1318. -- Select default macro book on initial load or subjob change.
  1319. function select_default_macro_book()
  1320.     -- Default macro set/book
  1321.     if player.sub_job == 'DNC' then
  1322.         set_macro_page(2, 9)
  1323.     elseif player.sub_job == 'NIN' then
  1324.         set_macro_page(2, 9)
  1325.     elseif player.sub_job == 'RDM' then
  1326.         set_macro_page(2, 9)
  1327.     elseif player.sub_job == 'RUN' then
  1328.         set_macro_page(2, 9)
  1329.     elseif player.sub_job == 'WAR' then
  1330.         set_macro_page(2, 9)   
  1331.     elseif player.sub_job == 'BLU' then
  1332.         set_macro_page(2, 9)   
  1333.     else
  1334.         set_macro_page(2, 9)
  1335.     end
  1336. end
  1337.  
  1338. function job_post_midcast(spell, action, spellMap, eventArgs)
  1339.   if spellMap == 'Cure' and spell.target.type == 'SELF' then
  1340.     if options.CastingModes.value == 'DT' then
  1341.       equip(sets.self_healing.DT)
  1342.     else
  1343.       equip(sets.self_healing)
  1344.   end
  1345. end
  1346.   end
  1347.  
  1348.  
  1349. function job_self_command(cmdParams, eventArgs)
  1350. if cmdParams[1] == 'buffWatcher' then
  1351.       buffWatch(cmdParams[2],cmdParams[3])
  1352.   end
  1353.   if cmdParams[1] == 'stopBuffWatcher' then
  1354.       stopBuffWatcher()
  1355.   end
  1356. end
  1357.  
  1358.  
  1359. -- Curing rules
  1360. function refine_various_spells(spell,action,spell_map,event_args)
  1361.  
  1362.   cures = S{'Cure','Cure II','Cure III','Cure IV'}
  1363.   banish = S{'Banish','Banish II'}
  1364.       if not cures:contains(spell.english) and not banish:contains(spell.english) then
  1365.         return
  1366.     end
  1367.  
  1368.     local newSpell = spell.english
  1369.     local spell_recasts = windower.ffxi.get_spell_recasts()
  1370.     local cancelling = 'All '..spell.english..' spells are on cooldown. Cancelling spell casting.'
  1371.  
  1372.     if spell_recasts[spell.recast_id] > 0 then
  1373.         if cures:contains(spell.english) then
  1374.             if spell.english == 'Cure' then
  1375.                 eventArgs.cancel = true
  1376.             return
  1377.             elseif spell.english == 'Cure IV' then
  1378.                 newSpell = 'Cure III'
  1379.             elseif spell.english == 'Cure III' then
  1380.                 newSpell = 'Cure II'
  1381.             elseif spell.english == 'Cure II' then
  1382.                 newSpell = 'Cure'
  1383.             end
  1384.         elseif banish:contains(spell.english) then
  1385.             if spell.english == 'Banish' then
  1386.                 add_to_chat(122,cancelling)
  1387.                 eventArgs.cancel = true
  1388.             return
  1389.             elseif spell.english == 'Banish II' then
  1390.                 newSpell = 'Banish'
  1391.             end
  1392.         end
  1393.     end
  1394.         if newSpell ~= spell.english then
  1395.             send_command('@input /ma "'..newSpell..'" '..tostring(spell.target.raw))
  1396.             return
  1397.         end
  1398.     end
  1399.  
  1400.  
  1401. -- -------------------------------------Aspir,Sleep/ga Nuke's refine rules (thanks Asura.Vafruvant for this code)-----------------------------------
  1402. -- function refine_various_spells(spell, action, spellMap, eventArgs)
  1403.  
  1404.     -- Enmity = S{'Geist Wall', 'Sheep Song', 'Soporific'}
  1405.  
  1406.     -- if not Enmitys:contains(spell.english) then
  1407.         -- return
  1408.     -- end
  1409.  
  1410.     -- local newSpell = spell.english
  1411.     -- local spell_recasts = windower.ffxi.get_spell_recasts()
  1412.     -- local cancelling = 'All '..spell.english..' spells are on cooldown. Cancelling spell casting.'
  1413.  
  1414.     -- if spell_recasts[spell.recast_id] > 0 then
  1415.         -- if aspirs:contains(spell.english) then
  1416.             -- if spell.english == 'Geist Wall' then
  1417.                 -- add_to_chat(122,cancelling)
  1418.                 -- eventArgs.cancel = true
  1419.                 -- return
  1420.                 -- elseif spell.english == 'Geist Wall' then
  1421.                 -- newSpell = 'Sheep Song'
  1422.                 -- elseif spell.english == 'Sheep Song' then
  1423.                 -- newSpell = 'Soporific'
  1424.  
  1425.             -- end        
  1426.  
  1427.         -- end
  1428.     -- end
  1429.  
  1430.     -- if newSpell ~= spell.english then
  1431.         -- send_command('@input /ma "'..newSpell..'" '..tostring(spell.target.raw))
  1432.         -- eventArgs.cancel = true
  1433.         -- return
  1434.     -- end
  1435. -- end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top