Boposhopo

WAR Lua

Jul 14th, 2025
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 22.42 KB | Gaming | 0 0
  1. -- Initialization function for this job file.
  2.  
  3. function get_sets()
  4.     mote_include_version = 2
  5.     include('Mote-Include.lua')
  6. end
  7.  
  8. -- //gs debugmode
  9. -- //gs showswaps
  10.  
  11. function binds_on_load()
  12.  
  13. end
  14.  
  15.  
  16. function user_setup()
  17. -- Options: Override default values
  18.     state.OffenseMode:options('Normal', 'OneHanded', 'STP')
  19.     state.WeaponskillMode:options('Normal', 'Attack')
  20.     state.IdleMode:options('Normal','PDT')
  21.     select_default_macro_book()
  22.     send_command('wait 6;input /lockstyleset 17')
  23. end
  24.  
  25. -- Called when this job file is unloaded (eg: job change)
  26. function file_unload()
  27.  
  28. end
  29.  
  30. -- Define sets and vars used by this job file.
  31. function init_gear_sets()
  32.  
  33. sets.enmity = {ammo="Sapience Orb",
  34.     head={ name="Souv. Schaller +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  35.     body={ name="Souv. Cuirass +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  36.     hands={ name="Souv. Handsch. +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  37.     legs={ name="Souv. Diechlings +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  38.     feet={ name="Souveran Schuhs +1", augments={'HP+105','Enmity+9','Potency of "Cure" effect received +15%',}},
  39.     neck="Moonlight Necklace",
  40.     left_ear="Trux Earring",
  41.     right_ear="Friomisi Earring",
  42.     left_ring="Apeile Ring +1",
  43.     right_ring="Petrov Ring",}
  44.    
  45. sets.precast.JA['Berserk'] = {body="Pummeler's Lorica +2", feet="Agoge Calligae +3"}
  46. sets.precast.JA['Warcry'] = {head="Agoge Mask +1"}
  47. sets.precast.JA['Aggressor'] = {head="Pummeler's Mask +2", body="Agoge Lorica +1"}
  48. sets.precast.JA['Blood Rage'] = {body="Boii Lorica +2"}
  49. sets.precast.JA['Retaliation'] = {}
  50. sets.precast.JA['Restraint'] = {hands="Boii Mufflers +3"}
  51. sets.precast.JA['Mighty Strikes'] = {hands="Agoge Mufflers +2"}
  52. sets.precast.JA["Warrior's Charge"] = {}
  53.  
  54. sets.precast.JA['Provoke'] = set_combine(sets.enmity, {})
  55.    
  56. sets.precast.JA['Tomahawk'] = {ammo="Throwing Tomahawk", feet="Agoge Calligae +3"}
  57.  
  58. -- Fast cast sets for spells
  59. sets.precast.FC = {ammo="Sapience Orb",
  60.     body="Sacro Breastplate",
  61.     hands={ name="Leyline Gloves", augments={'Accuracy+12','Mag. Acc.+14','"Mag.Atk.Bns."+15','"Fast Cast"+2',}},
  62.     feet={ name="Odyssean Greaves", augments={'STR+5','Spell interruption rate down -10%','Accuracy+3 Attack+3','Mag. Acc.+19 "Mag.Atk.Bns."+19',}},
  63.     left_ear="Etiolation Earring",
  64.     right_ear="Loquac. Earring",}
  65.  
  66. -- Midcast Sets
  67. sets.midcast.FastRecast = {ammo="Sapience Orb",
  68.     body="Sacro Breastplate",
  69.     hands={ name="Leyline Gloves", augments={'Accuracy+12','Mag. Acc.+14','"Mag.Atk.Bns."+15','"Fast Cast"+2',}},
  70.     feet={ name="Odyssean Greaves", augments={'STR+5','Spell interruption rate down -10%','Accuracy+3 Attack+3','Mag. Acc.+19 "Mag.Atk.Bns."+19',}},
  71.     left_ear="Etiolation Earring",
  72.     right_ear="Loquac. Earring",}
  73.  
  74. sets.midcast.Flash = set_combine(sets.enmity, {})
  75.    
  76. sets.midcast.Stun = set_combine(sets.enmity, {})
  77.    
  78. -- Resting sets
  79. sets.resting = {}
  80.  
  81. -- Idle sets
  82. sets.idle = {ammo="Staunch Tathlum",
  83.     head={ name="Sakpata's Helm", augments={'Path: A',}},
  84.     body="Sacro Breastplate",
  85.     hands={ name="Sakpata's Gauntlets", augments={'Path: A',}},
  86.     legs="Sakpata's Cuisses",
  87.     feet={ name="Sakpata's Leggings", augments={'Path: A',}},
  88.     neck="Loricate Torque +1",
  89.     waist="Carrier's Sash",
  90.     left_ear="Etiolation Earring",
  91.     right_ear="Infused Earring",
  92.     left_ring="Defending Ring",
  93.     right_ring="Shneddick Ring",
  94.     back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Store TP"+10','Phys. dmg. taken-10%',}},}
  95.  
  96. sets.idle.PDT = {}
  97.  
  98. sets.idle.Town = {ammo="Staunch Tathlum",
  99.     head={ name="Sakpata's Helm", augments={'Path: A',}},
  100.     body="Sacro Breastplate",
  101.     hands={ name="Sakpata's Gauntlets", augments={'Path: A',}},
  102.     legs="Sakpata's Cuisses",
  103.     feet={ name="Sakpata's Leggings", augments={'Path: A',}},
  104.     neck="Loricate Torque +1",
  105.     waist="Carrier's Sash",
  106.     left_ear="Etiolation Earring",
  107.     right_ear="Infused Earring",
  108.     left_ring="Defending Ring",
  109.     right_ring="Shneddick Ring",
  110.     back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Store TP"+10','Phys. dmg. taken-10%',}},}
  111.  
  112. --Engaged set, has lots of acc and 100 DA
  113. sets.engaged = {ammo={ name="Coiste Bodhar", augments={'Path: A',}},
  114.     head={ name="Sakpata's Helm", augments={'Path: A',}},
  115.     body={ name="Sakpata's Plate", augments={'Path: A',}},
  116.     hands={ name="Sakpata's Gauntlets", augments={'Path: A',}},
  117.     legs="Sakpata's Cuisses",
  118.     feet="Flam. Gambieras +2",
  119.     neck={ name="War. Beads +2", augments={'Path: A',}},
  120.     waist="Ioskeha Belt +1",
  121.     left_ear={ name="Schere Earring", augments={'Path: A',}},
  122.     right_ear={ name="Boii Earring +2", augments={'System: 1 ID: 1676 Val: 0','Accuracy+19','Mag. Acc.+19','Crit.hit rate+7','STR+13 VIT+13',}},
  123.     left_ring="Lehko's Ring",
  124.     right_ring="Petrov Ring",
  125.     back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','"Store TP"+10','Phys. dmg. taken-10%',}},}
  126.    
  127. -- Weaponskill sets
  128.     sets.precast.WS = {ammo="Knobkierrie",
  129.         head={ name="Nyame Helm", augments={'Path: B',}},
  130.         body={ name="Nyame Mail", augments={'Path: B',}},
  131.         hands="Nyame Gauntlets",
  132.         legs={ name="Nyame Flanchard", augments={'Path: B',}},
  133.         feet={ name="Nyame Sollerets", augments={'Path: B',}},
  134.         neck={ name="War. Beads +2", augments={'Path: A',}},
  135.         waist={ name="Sailfi Belt +1", augments={'Path: A',}},
  136.         left_ear={ name="Moonshade Earring", augments={'Attack+4','TP Bonus +250',}},
  137.         right_ear="Thrud Earring",
  138.         left_ring="Epaminondas's Ring",
  139.         right_ring="Regal Ring",
  140.         back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','Weapon skill damage +10%','Phys. dmg. taken-10%',}},}
  141.    
  142.     sets.precast.WS.Attack = set_combine(sets.precast.WS, {ammo="Crepuscular Pebble", legs="Boii Cuisses +3"})
  143.  
  144.     -- Great Axe weaponskill sets.
  145.    
  146.     --Description: Delivers a fourfold attack. Damage varies with TP.
  147.     --Modifiers: 85% VIT                1.0     3.5     6.5
  148.     sets.precast.WS['Upheaval'] = {ammo="Knobkierrie",
  149.         head={ name="Nyame Helm", augments={'Path: B',}},
  150.         body={ name="Nyame Mail", augments={'Path: B',}},
  151.         hands="Boii Mufflers +3",
  152.         legs={ name="Nyame Flanchard", augments={'Path: B',}},
  153.         feet={ name="Nyame Sollerets", augments={'Path: B',}},
  154.         neck={ name="War. Beads +2", augments={'Path: A',}},
  155.         waist={ name="Sailfi Belt +1", augments={'Path: A',}},
  156.         left_ear={ name="Moonshade Earring", augments={'Attack+4','TP Bonus +250',}},
  157.         right_ear="Thrud Earring",
  158.         left_ring="Epaminondas's Ring",
  159.         right_ring="Regal Ring",
  160.         back={ name="Cichol's Mantle", augments={'VIT+20','Accuracy+20 Attack+20','VIT+10','Weapon skill damage +10%','Phys. dmg. taken-10%',}},}
  161.        
  162.     sets.precast.WS['Upheaval'].Attack = set_combine(sets.precast.WS['Upheaval'], {head="Sakpata's Helm", legs="Boii Cuisses +3"})
  163.    
  164.     --Description: Delivers an area attack. Radius varies with TP.
  165.     --Modifiers: 60% STR               
  166.     sets.precast.WS['Fell Cleave'] = set_combine(sets.precast.WS, {})
  167.    
  168.     --Description: Delivers a threefold attack. Damage varies with TP.
  169.     --Modifiers: 50% STR                1.0     3.0     5.0
  170.     sets.precast.WS["King's Justice"] = set_combine(sets.precast.WS, {})
  171.    
  172.     --Description: Delivers a twofold attack. Attack varies with TP.
  173.     --Modifiers: 60% STR               
  174.     sets.precast.WS['Sturmwind']   = set_combine(sets.precast.WS, {})
  175.    
  176.     --Description: Delivers a single attack. Damage varies with TP.
  177.     --Modifiers: 60% STR / 60% VIT              1.5     2.5     4.0
  178.     sets.precast.WS["Steel Cyclone"]  = set_combine(sets.precast.WS, {})
  179.    
  180.     --Description: Lowers enemy's defense. Duration of effect varies with TP.
  181.     --Modifiers: 60% STR / 60% VIT
  182.     sets.precast.WS["Armor Break"]  = {ammo="Knobkierrie",
  183.         head={ name="Nyame Helm", augments={'Path: B',}},
  184.         body={ name="Nyame Mail", augments={'Path: B',}},
  185.         hands="Boii Mufflers +3",
  186.         legs={ name="Nyame Flanchard", augments={'Path: B',}},
  187.         feet={ name="Nyame Sollerets", augments={'Path: B',}},
  188.         neck="Moonlight Necklace",
  189.         waist="Eschan Stone",
  190.         left_ear="Crep. Earring",
  191.         right_ear="Digni. Earring",
  192.         left_ring="Stikini Ring",
  193.         right_ring="Stikini Ring",
  194.         back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','Weapon skill damage +10%','Phys. dmg. taken-10%',}},}
  195.    
  196.     --Description: Lowers enemy's Evasion. Duration of effect varies by TP.
  197.     --Modifiers: 60% STR / 60% VIT
  198.     sets.precast.WS["Shield Break"] = set_combine(sets.precast.WS["Armor Break"], {})
  199.    
  200.     --Description: Lowers enemy's attack. Duration of effect varies with TP.
  201.     --Modifiers: 60% STR / 60% VIT         
  202.     sets.precast.WS["Weapon Break"] = set_combine(sets.precast.WS["Armor Break"], {})
  203.    
  204.     --Description: Lowers target's attack, defense, accuracy and evasion.
  205.     --Modifiers: 50% STR / 50% VIT
  206.     sets.precast.WS["Full Break"] = set_combine(sets.precast.WS["Armor Break"], {})
  207.    
  208.     --Description: Delivers a three-hit attack. Chance of critical hit varies with TP.
  209.     --Modifiers: 50% STR
  210.     sets.precast.WS["Raging Rush"]   = {ammo="Yetshila +1",
  211.         head={ name="Nyame Helm", augments={'Path: B',}},
  212.         body="Hjarrandi Breast.",
  213.         hands="Boii Mufflers +3",
  214.         legs={ name="Nyame Flanchard", augments={'Path: B',}},
  215.         feet={ name="Valorous Greaves", augments={'Crit. hit damage +4%','STR+15','Accuracy+8',}},
  216.         neck={ name="War. Beads +2", augments={'Path: A',}},
  217.         waist={ name="Sailfi Belt +1", augments={'Path: A',}},
  218.         left_ear={ name="Moonshade Earring", augments={'Attack+4','TP Bonus +250',}},
  219.         right_ear="Thrud Earring",
  220.         left_ring="Lehko's Ring",
  221.         right_ring="Regal Ring",
  222.         back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','Weapon skill damage +10%','Phys. dmg. taken-10%',}},}
  223.    
  224.     --Description: Delivers a twofold attack that slows target. Chance of critical hit varies with TP.
  225.     --Modifiers: 80% STR
  226.     sets.precast.WS["Ukko's Fury"]   = {ammo="Yetshila +1",
  227.         head={ name="Nyame Helm", augments={'Path: B',}},
  228.         body="Hjarrandi Breast.",
  229.         hands="Boii Mufflers +3",
  230.         legs={ name="Nyame Flanchard", augments={'Path: B',}},
  231.         feet={ name="Valorous Greaves", augments={'Crit. hit damage +4%','STR+15','Accuracy+8',}},
  232.         neck={ name="War. Beads +2", augments={'Path: A',}},
  233.         waist={ name="Sailfi Belt +1", augments={'Path: A',}},
  234.         left_ear={ name="Moonshade Earring", augments={'Attack+4','TP Bonus +250',}},
  235.         right_ear="Thrud Earring",
  236.         left_ring="Lehko's Ring",
  237.         right_ring="Regal Ring",
  238.         back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','Weapon skill damage +10%','Phys. dmg. taken-10%',}},}
  239.            
  240.    
  241.     --Great Sword weaponskill sets.
  242.    
  243.     --Description: Delivers a fivefold attack. Damage varies with TP. Attack Modifier:  0.85
  244.     --Modifiers: 85% STR                0.71875     1.5     2.25    This weaponskill has its fTP transferred across all hits
  245.     sets.precast.WS["Resolution"]  = {ammo={ name="Coiste Bodhar", augments={'Path: A',}},
  246.         head={ name="Sakpata's Helm", augments={'Path: A',}},
  247.         body={ name="Sakpata's Plate", augments={'Path: A',}},
  248.         hands={ name="Sakpata's Gauntlets", augments={'Path: A',}},
  249.         legs="Sakpata's Cuisses",
  250.         feet={ name="Sakpata's Leggings", augments={'Path: A',}},
  251.         neck={ name="War. Beads +2", augments={'Path: A',}},
  252.         waist="Fotia Belt",
  253.         left_ear={ name="Moonshade Earring", augments={'Attack+4','TP Bonus +250',}},
  254.         right_ear="Thrud Earring",
  255.         left_ring="Niqmaddu Ring",
  256.         right_ring="Regal Ring",
  257.         back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','Weapon skill damage +10%','Phys. dmg. taken-10%',}},}
  258.    
  259.     --Description: Delivers an area of effect attack. Sleeps enemies. Duration varies with TP.
  260.     --Modifiers: 30% STR / 30% MND
  261.     sets.precast.WS["Shockwave"] = set_combine(sets.precast.WS["Armor Break"], {})
  262.    
  263.     --Magical weaponskill sets.
  264.    
  265.     --Description: Delivers an area attack that deals darkness elemental damage. Damage varies with TP.
  266.     --Modifiers: 30% STR / 30% INT              2.75    4.0     5.0
  267.     sets.precast.WS['Cataclysm'] = {ammo="Knobkierrie",
  268.         head="Pixie Hairpin +1",
  269.         body={ name="Nyame Mail", augments={'Path: B',}},
  270.         hands="Nyame Gauntlets",
  271.         legs={ name="Nyame Flanchard", augments={'Path: B',}},
  272.         feet={ name="Nyame Sollerets", augments={'Path: B',}},
  273.         neck="Sibyl Scarf",
  274.         waist="Eschan Stone",
  275.         left_ear={ name="Moonshade Earring", augments={'Attack+4','TP Bonus +250',}},
  276.         right_ear="Thrud Earring",
  277.         left_ring="Archon Ring",
  278.         right_ring="Epaminondas's Ring",
  279.         back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','Weapon skill damage +10%','Phys. dmg. taken-10%',}},}
  280.    
  281.     --Description: Delivers an area attack that deals wind elemental damage. Damage varies with TP.
  282.     --Modifiers: 40% DEX / 40% INT              2.0     3.0     4.5
  283.     sets.precast.WS['Aeolian Edge'] = {ammo={ name="Ghastly Tathlum +1", augments={'Path: A',}},
  284.         head={ name="Nyame Helm", augments={'Path: B',}},
  285.         body={ name="Nyame Mail", augments={'Path: B',}},
  286.         hands="Nyame Gauntlets",
  287.         legs={ name="Nyame Flanchard", augments={'Path: B',}},
  288.         feet={ name="Nyame Sollerets", augments={'Path: B',}},
  289.         neck="Sibyl Scarf",
  290.         waist="Eschan Stone",
  291.         left_ear={ name="Moonshade Earring", augments={'Attack+4','TP Bonus +250',}},
  292.         right_ear="Friomisi Earring",
  293.         left_ring={ name="Metamor. Ring +1", augments={'Path: A',}},
  294.         right_ring="Epaminondas's Ring",
  295.         back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','Weapon skill damage +10%','Phys. dmg. taken-10%',}},}
  296.    
  297.    
  298.     --Axe weaponskill sets.
  299.    
  300.     --Description: Deals lightning elemental damage. Damage varies with TP.
  301.     --Modifiers: 40% STR / 40% MND              3.75    6.69921875      8.5
  302.     sets.precast.WS['Cloudsplitter'] = {ammo={ name="Ghastly Tathlum +1", augments={'Path: A',}},
  303.         head={ name="Nyame Helm", augments={'Path: B',}},
  304.         body={ name="Nyame Mail", augments={'Path: B',}},
  305.         hands="Boii Mufflers +3",
  306.         legs={ name="Nyame Flanchard", augments={'Path: B',}},
  307.         feet={ name="Nyame Sollerets", augments={'Path: B',}},
  308.         neck="Sibyl Scarf",
  309.         waist="Eschan Stone",
  310.         left_ear={ name="Moonshade Earring", augments={'Attack+4','TP Bonus +250',}},
  311.         right_ear="Friomisi Earring",
  312.         left_ring={ name="Metamor. Ring +1", augments={'Path: A',}},
  313.         right_ring="Epaminondas's Ring",
  314.         back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','Weapon skill damage +10%','Phys. dmg. taken-10%',}},}
  315.    
  316.     --Description: Delivers a single-hit attack. Damage varies with TP.
  317.     --Modifiers: 50% STR / 50% VIT              2.5     6.5     10.375
  318.     sets.precast.WS['Calamity'] = {ammo="Knobkierrie",
  319.         head={ name="Nyame Helm", augments={'Path: B',}},
  320.         body={ name="Nyame Mail", augments={'Path: B',}},
  321.         hands="Boii Mufflers +3",
  322.         legs={ name="Nyame Flanchard", augments={'Path: B',}},
  323.         feet={ name="Nyame Sollerets", augments={'Path: B',}},
  324.         neck={ name="War. Beads +2", augments={'Path: A',}},
  325.         waist={ name="Sailfi Belt +1", augments={'Path: A',}},
  326.         left_ear={ name="Moonshade Earring", augments={'Attack+4','TP Bonus +250',}},
  327.         right_ear="Thrud Earring",
  328.         left_ring="Epaminondas's Ring",
  329.         right_ring="Regal Ring",
  330.         back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','Weapon skill damage +10%','Phys. dmg. taken-10%',}},}
  331.    
  332.     --Description: Delivers a fourfold attack. Accuracy varies with TP.
  333.     --Modifiers: 73~85% STR                                         This weaponskill has its fTP transferred across all hits
  334.     sets.precast.WS['Ruinator'] = {ammo={ name="Coiste Bodhar", augments={'Path: A',}},
  335.         head={ name="Sakpata's Helm", augments={'Path: A',}},
  336.         body={ name="Sakpata's Plate", augments={'Path: A',}},
  337.         hands={ name="Sakpata's Gauntlets", augments={'Path: A',}},
  338.         legs="Sakpata's Cuisses",
  339.         feet={ name="Sakpata's Leggings", augments={'Path: A',}},
  340.         neck={ name="War. Beads +2", augments={'Path: A',}},
  341.         waist="Fotia Belt",
  342.         left_ear="Thrud Earring",
  343.         right_ear="Boii Earring +2",
  344.         left_ring="Niqmaddu Ring",
  345.         right_ring="Regal Ring",
  346.         back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','Weapon skill damage +10%','Phys. dmg. taken-10%',}},}
  347.    
  348.     --Description: Delivers an aerial attack comprised of three hits. Accuracy varies with TP.
  349.     --Modifiers: 50% STR                                            This weaponskill has its fTP transferred across all hits
  350.     sets.precast.WS['Decimation'] = {ammo={ name="Coiste Bodhar", augments={'Path: A',}},
  351.         head={ name="Sakpata's Helm", augments={'Path: A',}},
  352.         body={ name="Sakpata's Plate", augments={'Path: A',}},
  353.         hands={ name="Sakpata's Gauntlets", augments={'Path: A',}},
  354.         legs="Sakpata's Cuisses",
  355.         feet={ name="Sakpata's Leggings", augments={'Path: A',}},
  356.         neck={ name="War. Beads +2", augments={'Path: A',}},
  357.         waist="Fotia Belt",
  358.         left_ear="Thrud Earring",
  359.         right_ear="Boii Earring +2",
  360.         left_ring="Niqmaddu Ring",
  361.         right_ring="Regal Ring",
  362.         back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','Weapon skill damage +10%','Phys. dmg. taken-10%',}},}
  363.    
  364.     --Description: Delivers a five-hit attack. Chance of critical varies with TP.
  365.     --Modifiers: 50% STR                                            This weaponskill has its fTP transferred across all hits
  366.     sets.precast.WS['Rampage'] = {ammo="Yetshila +1",
  367.         head={ name="Nyame Helm", augments={'Path: B',}},
  368.         body="Hjarrandi Breast.",
  369.         hands="Nyame Gauntlets",
  370.         legs={ name="Nyame Flanchard", augments={'Path: B',}},
  371.         feet={ name="Valorous Greaves", augments={'Crit. hit damage +4%','STR+15','Accuracy+8',}},
  372.         neck={ name="War. Beads +2", augments={'Path: A',}},
  373.         waist={ name="Sailfi Belt +1", augments={'Path: A',}},
  374.         left_ear={ name="Moonshade Earring", augments={'Attack+4','TP Bonus +250',}},
  375.         right_ear="Thrud Earring",
  376.         left_ring="Lehko's Ring",
  377.         right_ring="Regal Ring",
  378.         back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','Weapon skill damage +10%','Phys. dmg. taken-10%',}},}
  379.  
  380.    
  381.     -- Sword weaponskill sets.
  382.    
  383.     --Description: Delivers an aerial attack comprised of two hits. Damage varies with TP.
  384.     --Modifiers: 50% STR / 50% MND              4.0     10.25   13.75
  385.     sets.precast.WS['Savage Blade'] = {ammo="Knobkierrie",
  386.         head={ name="Nyame Helm", augments={'Path: B',}},
  387.         body={ name="Nyame Mail", augments={'Path: B',}},
  388.         hands="Boii Mufflers +3",
  389.         legs={ name="Nyame Flanchard", augments={'Path: B',}},
  390.         feet={ name="Nyame Sollerets", augments={'Path: B',}},
  391.         neck={ name="War. Beads +2", augments={'Path: A',}},
  392.         waist={ name="Sailfi Belt +1", augments={'Path: A',}},
  393.         left_ear={ name="Moonshade Earring", augments={'Attack+4','TP Bonus +250',}},
  394.         right_ear="Thrud Earring",
  395.         left_ring="Epaminondas's Ring",
  396.         right_ring="Regal Ring",
  397.         back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','Weapon skill damage +10%','Phys. dmg. taken-10%',}},}
  398.  
  399.     --Description: Drains target's HP. Amount drained varies with TP.
  400.     --Modifiers: 50% MND / 30% STR             
  401.     sets.precast.WS['Sanguine Blade'] = set_combine(sets.precast.WS['Cataclysm'], {})
  402.  
  403.     --Description: Delivers a twofold attack. Damage varies with TP.
  404.     --Modifiers: 70% MND / 30% STR              3.0     7.25    9.75
  405.     sets.precast.WS['Black Halo'] = set_combine(sets.precast.WS['Savage Blade'], {})
  406.  
  407.     --Description: Delivers a single hit attack. Damage varies with TP.
  408.     --Modifiers: 50% STR / 50% MND          3.5     8.75    12.0
  409.     sets.precast.WS['Judgement'] = set_combine(sets.precast.WS['Savage Blade'], {})
  410.  
  411.  
  412.     --Spear weaponskill sets.
  413.    
  414.     --Description: Delivers a fourfold attack. Decreases enemy critical hit evasion. Damage varies with TP.
  415.     --Modifiers: 85% STR                0.75    1.25    1.75        This weaponskill has its fTP transferred across all hits
  416.     sets.precast.WS["Stardiver"]   = set_combine(sets.precast.WS['Resolution'], {})
  417.    
  418.     --Description: Delivers an area attack. Damage varies with TP.
  419.     --Modifiers: 40% STR / 40% DEX              3.0     3.7     4.5
  420.     sets.precast.WS['Sonic Thrust']   = set_combine(sets.precast.WS, {})
  421.    
  422.     --Description: Delivers a twofold attack. Damage varies with TP.
  423.     --Modifiers: 100% STR               1.0     3.0     5.5
  424.     sets.precast.WS['Impulse Drive']   = {ammo="Yetshila +1",
  425.         head={ name="Nyame Helm", augments={'Path: B',}},
  426.         body="Hjarrandi Breast.",
  427.         hands="Boii Mufflers +3",
  428.         legs={ name="Nyame Flanchard", augments={'Path: B',}},
  429.         feet={ name="Nyame Sollerets", augments={'Path: B',}},
  430.         neck={ name="War. Beads +2", augments={'Path: A',}},
  431.         waist={ name="Sailfi Belt +1", augments={'Path: A',}},
  432.         left_ear={ name="Moonshade Earring", augments={'Attack+4','TP Bonus +250',}},
  433.         right_ear="Thrud Earring",
  434.         left_ring="Lehko's Ring",
  435.         right_ring="Regal Ring",
  436.         back={ name="Cichol's Mantle", augments={'STR+20','Accuracy+20 Attack+20','STR+10','Weapon skill damage +10%','Phys. dmg. taken-10%',}},}
  437.    
  438. end
  439.  
  440. -- Job-specific hooks for standard casting events.
  441.  
  442. function job_buff_change(buff, gain)
  443.     if state.Buff[buff] ~= nil then
  444.         state.Buff[buff] = gain
  445.     end
  446.     if buff:lower()=='sleep' then
  447.         if gain and player.hp > 120 and player.status == "Engaged" then -- Equip Berserker's Torque / frenzy When You Are Asleep
  448.            -- equip({head="Frenzy Sallet"})
  449.            equip({neck="Vim Torque +1"})
  450.         elseif not gain then -- Take Berserker's off
  451.             handle_equipping_gear(player.status)
  452.         end
  453.     end
  454. end
  455.  
  456. function customize_melee_set(meleeSet)
  457.     if state.Buff.Sleep and player.hp > 120 and player.status == "Engaged" then -- Equip Berserker's Torque When You Are Asleep
  458.         meleeSet = set_combine(meleeSet,{neck="Vim Torque +1"})
  459.     end
  460.     if state.Buff.Doom then
  461.         meleeSet = set_combine(meleeSet, sets.buff.Doom)
  462.     end
  463.     return meleeSet
  464. end
  465.  
  466. -- eventArgs is the same one used in job_precast, in case information needs to be persisted.
  467.  
  468. -- Modify the default idle set after it was constructed.
  469. function customize_idle_set(idleSet)
  470.     if player.mpp < 51 then
  471.         idleSet = set_combine(idleSet, sets.latent_refresh)
  472.     end
  473.     if player.hpp < 71 then
  474.         idleSet = set_combine(idleSet, {left_ring="Apeile Ring +1"})
  475.     end
  476.     if player.hpp < 61 then
  477.         idleSet = set_combine(idleSet, {right_ring="Apeile Ring"})
  478.     end
  479.     if state.Buff.Doom then
  480.         idleSet = set_combine(idleSet, sets.buff.Doom)
  481.     end
  482.    
  483.     return idleSet
  484. end
  485.  
  486. -- eventArgs is the same one used in job_midcast, in case information needs to be persisted.
  487.  
  488.  
  489. -- Select default macro book on initial load or subjob change.
  490. function select_default_macro_book()
  491.     -- Default macro set/book
  492.         set_macro_page(1, 16)
  493.     end
Advertisement
Add Comment
Please, Sign In to add comment