Advertisement
lucky_flame

blu lua

Dec 30th, 2017
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.07 KB | None | 0 0
  1. -------------------------------------------------------------------------------------------------------------------
  2. -- Setup functions for this job. Generally should not be modified.
  3. -------------------------------------------------------------------------------------------------------------------
  4.  
  5. -- Initialization function for this job file.
  6. function get_sets()
  7. mote_include_version = 2
  8.  
  9. -- Load and initialize the include file.
  10. include('Mote-Include.lua')
  11. end
  12.  
  13.  
  14. -- Setup vars that are user-independent. state.Buff vars initialized here will automatically be tracked.
  15. function job_setup()
  16. state.Buff['Burst Affinity'] = buffactive['Burst Affinity'] or false
  17. state.Buff['Chain Affinity'] = buffactive['Chain Affinity'] or false
  18. state.Buff.Convergence = buffactive.Convergence or false
  19. state.Buff.Diffusion = buffactive.Diffusion or false
  20. state.Buff.Efflux = buffactive.Efflux or false
  21.  
  22. state.Buff['Unbridled Learning'] = buffactive['Unbridled Learning'] or false
  23.  
  24.  
  25. blue_magic_maps = {}
  26.  
  27. -- Mappings for gear sets to use for various blue magic spells.
  28. -- While Str isn't listed for each, it's generally assumed as being at least
  29. -- moderately signficant, even for spells with other mods.
  30.  
  31. -- Physical Spells --
  32.  
  33. -- Physical spells with no particular (or known) stat mods
  34. blue_magic_maps.Physical = S{
  35. 'Bilgestorm'
  36. }
  37.  
  38. -- Spells with heavy accuracy penalties, that need to prioritize accuracy first.
  39. blue_magic_maps.PhysicalAcc = S{
  40. 'Heavy Strike',
  41. }
  42.  
  43. -- Physical spells with Str stat mod
  44. blue_magic_maps.PhysicalStr = S{
  45. 'Battle Dance','Bloodrake','Death Scissors','Dimensional Death',
  46. 'Empty Thrash','Quadrastrike','Sinker Drill','Spinal Cleave',
  47. 'Uppercut','Vertical Cleave'
  48. }
  49.  
  50. -- Physical spells with Dex stat mod
  51. blue_magic_maps.PhysicalDex = S{
  52. 'Amorphic Spikes','Asuran Claws','Barbed Crescent','Claw Cyclone','Disseverment',
  53. 'Foot Kick','Frenetic Rip','Goblin Rush','Hysteric Barrage','Paralyzing Triad',
  54. 'Seedspray','Sickle Slash','Smite of Rage','Terror Touch','Thrashing Assault',
  55. 'Vanity Dive'
  56. }
  57.  
  58. -- Physical spells with Vit stat mod
  59. blue_magic_maps.PhysicalVit = S{
  60. 'Body Slam','Cannonball','Delta Thrust','Glutinous Dart','Grand Slam',
  61. 'Power Attack','Quad. Continuum','Sprout Smack','Sub-zero Smash'
  62. }
  63.  
  64. -- Physical spells with Agi stat mod
  65. blue_magic_maps.PhysicalAgi = S{
  66. 'Benthic Typhoon','Feather Storm','Helldive','Hydro Shot','Jet Stream',
  67. 'Pinecone Bomb','Spiral Spin','Wild Oats'
  68. }
  69.  
  70. -- Physical spells with Int stat mod
  71. blue_magic_maps.PhysicalInt = S{
  72. 'Mandibular Bite','Queasyshroom'
  73. }
  74.  
  75. -- Physical spells with Mnd stat mod
  76. blue_magic_maps.PhysicalMnd = S{
  77. 'Ram Charge','Screwdriver','Tourbillion'
  78. }
  79.  
  80. -- Physical spells with Chr stat mod
  81. blue_magic_maps.PhysicalChr = S{
  82. 'Bludgeon'
  83. }
  84.  
  85. -- Physical spells with HP stat mod
  86. blue_magic_maps.PhysicalHP = S{
  87. 'Final Sting'
  88. }
  89.  
  90. -- Magical Spells --
  91.  
  92. -- Magical spells with the typical Int mod
  93. blue_magic_maps.Magical = S{
  94. 'Blastbomb','Blazing Bound','Bomb Toss','Cursed Sphere','Dark Orb','Death Ray',
  95. 'Diffusion Ray','Droning Whirlwind','Embalming Earth','Firespit','Foul Waters',
  96. 'Ice Break','Leafstorm','Maelstrom','Rail Cannon','Regurgitation','Rending Deluge',
  97. 'Retinal Glare','Subduction','Tem. Upheaval','Water Bomb','Spectal Floe','Subduction'
  98. }
  99.  
  100. -- Magical spells with a primary Mnd mod
  101. blue_magic_maps.MagicalMnd = S{
  102. 'Acrid Stream','Evryone. Grudge','Magic Hammer','Mind Blast'
  103. }
  104.  
  105. -- Magical spells with a primary Chr mod
  106. blue_magic_maps.MagicalChr = S{
  107. 'Eyes On Me','Mysterious Light'
  108. }
  109.  
  110. -- Magical spells with a Vit stat mod (on top of Int)
  111. blue_magic_maps.MagicalVit = S{
  112. 'Thermal Pulse'
  113. }
  114.  
  115. -- Magical spells with a Dex stat mod (on top of Int)
  116. blue_magic_maps.MagicalDex = S{
  117. 'Charged Whisker','Gates of Hades'
  118. }
  119.  
  120. -- Magical spells (generally debuffs) that we want to focus on magic accuracy over damage.
  121. -- Add Int for damage where available, though.
  122. blue_magic_maps.MagicAccuracy = S{
  123. '1000 Needles','Absolute Terror','Actinic Burst','Auroral Drape','Awful Eye',
  124. 'Blank Gaze','Blistering Roar','Blood Drain','Blood Saber','Chaotic Eye',
  125. 'Cimicine Discharge','Cold Wave','Corrosive Ooze','Demoralizing Roar','Digest',
  126. 'Dream Flower','Enervation','Feather Tickle','Filamented Hold','Frightful Roar',
  127. 'Geist Wall','Hecatomb Wave','Infrasonics','Jettatura','Light of Penance',
  128. 'Lowing','Mind Blast','Mortal Ray','MP Drainkiss','Osmosis','Reaving Wind',
  129. 'Sandspin','Sandspray','Sheep Song','Soporific','Sound Blast','Stinking Gas',
  130. 'Sub-zero Smash','Venom Shell','Voracious Trunk','Yawn'
  131. }
  132.  
  133. -- Breath-based spells
  134. blue_magic_maps.Breath = S{
  135. 'Bad Breath','Flying Hip Press','Frost Breath','Heat Breath',
  136. 'Hecatomb Wave','Magnetite Cloud','Poison Breath','Radiant Breath','Self-Destruct',
  137. 'Thunder Breath','Vapor Spray','Wind Breath'
  138. }
  139.  
  140. -- Stun spells
  141. blue_magic_maps.Stun = S{
  142. 'Blitzstrahl','Frypan','Head Butt','Sudden Lunge','Tail slap','Temporal Shift',
  143. 'Thunderbolt','Whirl of Rage'
  144. }
  145.  
  146. -- Healing spells
  147. blue_magic_maps.Healing = S{
  148. 'Healing Breeze','Magic Fruit','Plenilune Embrace','Pollen','Restoral','White Wind',
  149. 'Wild Carrot'
  150. }
  151.  
  152. -- Buffs that depend on blue magic skill
  153. blue_magic_maps.SkillBasedBuff = S{
  154. 'Barrier Tusk','Diamondhide','Magic Barrier','Metallic Body','Plasma Charge',
  155. 'Pyric Bulwark','Reactor Cool','Occultation','Mighty Guard'
  156. }
  157.  
  158. -- Other general buffs
  159. blue_magic_maps.Buff = S{
  160. 'Amplification','Animating Wail','Battery Charge','Carcharian Verve','Cocoon',
  161. 'Erratic Flutter','Exuviation','Fantod','Feather Barrier','Harden Shell',
  162. 'Memento Mori','Nat. Meditation','Orcish Counterstance','Refueling',
  163. 'Regeneration','Saline Coat','Triumphant Roar','Warm-Up','Winds of Promyvion',
  164. 'Zephyr Mantle'
  165. }
  166.  
  167.  
  168. -- Spells that require Unbridled Learning to cast.
  169. unbridled_spells = S{
  170. 'Absolute Terror','Bilgestorm','Blistering Roar','Bloodrake','Carcharian Verve',
  171. 'Crashing Thunder','Droning Whirlwind','Gates of Hades','Harden Shell','Polar Roar',
  172. 'Pyric Bulwark','Thunderbolt','Tourbillion','Uproot'
  173. }
  174. end
  175.  
  176. -------------------------------------------------------------------------------------------------------------------
  177. -- User setup functions for this job. Recommend that these be overridden in a sidecar file.
  178. -------------------------------------------------------------------------------------------------------------------
  179.  
  180. -- Setup vars that are user-dependent. Can override this function in a sidecar file.
  181. function user_setup()
  182. state.OffenseMode:options('Normal', 'Acc', 'Refresh')
  183. state.WeaponskillMode:options('Normal', 'Acc')
  184. state.CastingMode:options('Normal', 'Resistant', 'Magical')
  185. state.IdleMode:options('Normal', 'PDT', 'Learning')
  186.  
  187. gear.macc_hagondes = {name="Hagondes Cuffs", augments={'Phys. dmg. taken -3%','Mag. Acc.+29'}}
  188.  
  189. -- Additional local binds
  190. send_command('bind ^` input /ja "Chain Affinity" <me>')
  191. send_command('bind !` input /ja "Efflux" <me>')
  192. send_command('bind @` input /ja "Burst Affinity" <me>')
  193.  
  194. update_combat_form()
  195. select_default_macro_book()
  196. end
  197.  
  198.  
  199. -- Called when this job file is unloaded (eg: job change)
  200. function user_unload()
  201. send_command('unbind ^`')
  202. send_command('unbind !`')
  203. send_command('unbind @`')
  204. end
  205.  
  206.  
  207. -- Set up gear sets.
  208. function init_gear_sets()
  209. --------------------------------------
  210. -- Start defining the sets
  211. --------------------------------------
  212.  
  213. sets.buff['Burst Affinity'] = {feet="Herculean Boots"}
  214. sets.buff['Chain Affinity'] = {head="Herculean Helm", feet="Herculean Boots"}
  215. sets.buff.Convergence = {head="Herculean Helm"}
  216. sets.buff.Diffusion = {feet="Luhlaza charuqs +1"}
  217. sets.buff.Enchainment = {}
  218. sets.buff.Efflux = {legs="Herculean Trousers"}
  219.  
  220.  
  221. -- Precast Sets
  222.  
  223. -- Precast sets to enhance JAs
  224. sets.precast.JA['Azure Lore'] = {hands="Assimilator's Bazubands +1"}
  225.  
  226.  
  227. -- Waltz set (chr and vit)
  228. sets.precast.Waltz = {ammo="Honed Tathlum",
  229. head="Telchine Cap",neck="Nuna Gorget +1",ear1="Brutal Earring",ear2="Suppanomimi",
  230. body="Passion Jacket",hands="Ayanmo Manopolas +1",ring1="Asklepian Ring",ring2="Valseur's Ring",
  231. back="Refraction Cape",waist="Royal Knight's Belt +1",legs="Doyen Pants",feet="Rawhide Boots"}
  232.  
  233.  
  234. -- Fast cast sets for spells
  235.  
  236. sets.precast.FC = {ammo="Honed Tathlum",
  237. head="Herculean Helm",neck="Jeweled Collar",ear1="Loquacious Earring",ear2="Suppanomimi",
  238. body="Taeon Tabard",hands="Leyline Gloves",ring1="Kishar Ring",ring2="Weatherspoon Ring",
  239. back="Swith Cape",waist="Rumination Sash",legs="Ayanmo Cosciales +1",feet="Herculean Boots"}
  240.  
  241. sets.precast.FC['Blue Magic'] = set_combine(sets.precast.FC, {"Ayanmo Cosciales +1"})
  242.  
  243.  
  244. -- Weaponskill sets
  245. -- Default set for any weaponskill that isn't any more specifically defined
  246. sets.precast.WS = {ammo="Cheruski Needle",
  247. head="Herculean Helm",neck="Fotia Gorget",ear1="Pixie Earring",ear2="Brutal Earring",
  248. body="Ayanmo Corazza +2",hands="Adhemar Wristbands",ring1="Epona's Ring",ring2="Begrudging Ring",
  249. back="Rosmerta's Cape",waist="Fotia Belt",legs="Samnuha Tights",feet="Herculean Boots"}
  250.  
  251. sets.precast.WS.acc = set_combine(sets.precast.WS, {hands="Adhemar Wristbands"})
  252.  
  253. -- Specific weaponskill sets. Uses the base set if an appropriate WSMod version isn't found.
  254. sets.precast.WS['Requiescat'] = set_combine(sets.precast.WS, {ring1="Epona's Ring"})
  255.  
  256. sets.precast.WS['Sanguine Blade'] = {ammo="Ombre Tathlum",
  257. head="Herculean Helm",neck="Sanctity Necklace",ear1="Friomisi Earring",ear2="Hecate's Earring",
  258. body="Jhakri Robe +2",hands="Amalric Gages",ring1="Acumen Ring",ring2="Shiva Ring",
  259. back="Izdubar Mantle",waist="Salire Belt",legs="Jhakri Slops",feet="Helios Boots"}
  260.  
  261.  
  262. -- Midcast Sets
  263.  
  264. sets.midcast.Refresh = {ammo="Honed Tathlum",
  265. head="Herculean Helm",neck="Jeweled Collar",ear1="Loquacious Earring",ear2="Suppanomimi",
  266. body="Taeon Tabard",hands="Leyline Gloves",ring1="Kishar Ring",ring2="Weatherspoon Ring",
  267. back="Swith Cape",waist="Gishdubar Sash",legs="Ayanmo Cosciales +1",feet="Herculean Boots"}
  268.  
  269. sets.midcast['Blue Magic'] = {ammo="Ombre Tathlum",
  270. head="Herculean Helm",neck="Sanctity Necklace",ear1="Friomisi Earring",ear2="Hecate's Earring",
  271. body="Jhakri Robe +2",hands="Amalric Gages",ring1="Acumen Ring",ring2="Weatherspoon Ring",
  272. back="Izdubar Mantle",waist="Salire Belt",legs="Jhakri Slops",feet="Helios Boots"}
  273.  
  274. -- Physical Spells --
  275.  
  276. sets.midcast['Blue Magic'].Physical = {ammo="Cheruski Needle",
  277. head="Herculean Helm",neck="Lacono Necklace",ear1="Tati Earring",ear2="Kuwunga Earring",
  278. body="Herculean Vest",hands="Adhemar Wristbands",ring1="Apate Ring",ring2="Ifrit Ring",
  279. back="Rosmerta's Cape",waist="Prosilio Belt",legs="Samnuha Tights",feet="Herculean Boots"}
  280.  
  281. sets.midcast['Blue Magic'].PhysicalAcc = set_combine(sets.midcast['Blue Magic'].Physical,
  282. {ammo="Cheruski Needle",head="Herculean Helm",neck="Lacono Necklace",ear1="Tati Earring",
  283. ear2="Kuwunga Earring",body="Herculean Vest",hands="Adhemar Wristbands",ring1="Apate Ring",
  284. ring2="Ifrit Ring", back="Rosmerta's Cape",waist="Prosilio Belt",legs="Samnuha Tights",
  285. feet="Herculean Boots"})
  286.  
  287. sets.midcast['Blue Magic'].PhysicalStr = set_combine(sets.midcast['Blue Magic'].Physical,
  288. {body="Herculean Vest",hands="Adhemar Wristbands"})
  289.  
  290. sets.midcast['Blue Magic'].PhysicalDex = set_combine(sets.midcast['Blue Magic'].Physical,
  291. {ammo="Cheruski Needle",body="Herculean Vest",hands="Adhemar Wristbands",
  292. waist="Prosilio Belt",legs="Samnuha Tights"})
  293.  
  294. sets.midcast['Blue Magic'].PhysicalVit = set_combine(sets.midcast['Blue Magic'].Physical,
  295. {body="Herculean Vest",hands="Adhemar Wristbands",back="Rosmerta's Cape"})
  296.  
  297. sets.midcast['Blue Magic'].PhysicalAgi = set_combine(sets.midcast['Blue Magic'].Physical,
  298. {body="Herculean Vest",hands="Adhemar Wristbands",ring2="Ifrit Ring",
  299. waist="Prosilio Belt",feet="Herculean Boots"})
  300.  
  301. sets.midcast['Blue Magic'].PhysicalInt = set_combine(sets.midcast['Blue Magic'].Physical,
  302. {ear1="Tati Earring",body="Herculean Vest",hands="Adhemar Wristbands",
  303. ring2="Ifrit Ring",back="Rosmerta's Cape",feet="Herculean Helm"})
  304.  
  305. sets.midcast['Blue Magic'].PhysicalMnd = set_combine(sets.midcast['Blue Magic'].Physical,
  306. {ear1="Tati Earring",body="Herculean Vest",hands="Adhemar Wristbands",
  307. ring2="Ifrit Ring",back="Rosmerta's Cape"})
  308.  
  309. sets.midcast['Blue Magic'].PhysicalChr = set_combine(sets.midcast['Blue Magic'].Physical,
  310. {body="Herculean Vest",hands="Adhemar Wristbands",back="Rosmerta's Cape",
  311. waist="Prosilio Belt"})
  312.  
  313. sets.midcast['Blue Magic'].PhysicalHP = set_combine(sets.midcast['Blue Magic'].Physical)
  314.  
  315.  
  316. -- Magical Spells --
  317.  
  318. sets.midcast['Blue Magic'].Magical = {ammo="Ombre Tathlum",
  319. head="Herculean Helm",neck="Sanctity Necklace",ear1="Friomisi Earring",ear2="Hecate's Earring",
  320. body="Jhakri Robe +2",hands="Amalric Gages",ring1="Acumen Ring",ring2="Weatherspoon Ring",
  321. back="Izdubar Mantle",waist="Salire Belt",legs="Jhakri Slops",feet="Helios Boots"}
  322.  
  323. sets.midcast['Blue Magic'].Magical.Resistant = set_combine(sets.midcast['Blue Magic'].Magical,
  324. {ammo="Ombre Tathlum",
  325. head="Herculean Helm",neck="Sanctity Necklace",ear1="Friomisi Earring",ear2="Hecate's Earring",
  326. body="Jhakri Robe +2",hands="Amalric Gages",ring1="Acumen Ring",ring2="Weatherspoon Ring",
  327. back="Izdubar Mantle",waist="Salire Belt",legs="Jhakri Slops",feet="Helios Boots"})
  328.  
  329. sets.midcast['Blue Magic'].MagicalMnd = set_combine(sets.midcast['Blue Magic'].Magical,
  330. {ammo="Ombre Tathlum",
  331. head="Herculean Helm",neck="Sanctity Necklace",ear1="Friomisi Earring",ear2="Hecate's Earring",
  332. body="Jhakri Robe +2",hands="Amalric Gages",ring1="Acumen Ring",ring2="Weatherspoon Ring",
  333. back="Izdubar Mantle",waist="Salire Belt",legs="Jhakri Slops",feet="Helios Boots"})
  334.  
  335. sets.midcast['Blue Magic'].MagicalChr = set_combine(sets.midcast['Blue Magic'].Magical,
  336. {ammo="Ombre Tathlum",
  337. head="Herculean Helm",neck="Sanctity Necklace",ear1="Friomisi Earring",ear2="Hecate's Earring",
  338. body="Jhakri Robe +2",hands="Amalric Gages",ring1="Acumen Ring",ring2="Weatherspoon Ring",
  339. back="Izdubar Mantle",waist="Salire Belt",legs="Jhakri Slops",feet="Helios Boots"})
  340.  
  341. sets.midcast['Blue Magic'].MagicalVit = set_combine(sets.midcast['Blue Magic'].Magical,
  342. {ammo="Ombre Tathlum",
  343. head="Herculean Helm",neck="Sanctity Necklace",ear1="Friomisi Earring",ear2="Hecate's Earring",
  344. body="Jhakri Robe +2",hands="Amalric Gages",ring1="Acumen Ring",ring2="Weatherspoon Ring",
  345. back="Izdubar Mantle",waist="Salire Belt",legs="Jhakri Slops",feet="Helios Boots"})
  346.  
  347. sets.midcast['Blue Magic'].MagicalDex = set_combine(sets.midcast['Blue Magic'].Magical,
  348. {ammo="Ombre Tathlum",
  349. head="Herculean Helm",neck="Sanctity Necklace",ear1="Friomisi Earring",ear2="Hecate's Earring",
  350. body="Jhakri Robe +2",hands="Amalric Gages",ring1="Acumen Ring",ring2="Weatherspoon Ring",
  351. back="Izdubar Mantle",waist="Salire Belt",legs="Jhakri Slops",feet="Helios Boots"})
  352.  
  353. sets.midcast['Blue Magic'].MagicAccuracy = {ammo="Ombre Tathlum",
  354. head="Ayanmo Zucchetto +1",neck="Sanctity Necklace",ear1="Lifestorm Earring",ear2="Psystorm Earring",
  355. body="Jhakri Robe +2",hands="Ayanmo Manopolas +1",ring1="Kishar Ring",ring2="Weatherspoon Ring",
  356. back="Izdubar Mantle",waist="Salire Belt",legs="Ayanmo Cosciales +1",feet="Ayanmo Gambieras +1"}
  357.  
  358. -- Breath Spells --
  359.  
  360. sets.midcast['Blue Magic'].Breath = {ammo="Ombre Tathlum",
  361. head="Herculean Helm",neck="Sanctity Necklace",ear1="Friomisi Earring",ear2="Hecate's Earring",
  362. body="Jhakri Robe +2",hands="Amalric Gages",ring1="Acumen Ring",ring2="Shiva Ring",
  363. back="Izdubar Mantle",waist="Salire Belt",legs="Jhakri Slops",feet="Helios Boots"}
  364.  
  365. -- Other Types --
  366.  
  367. sets.midcast['Blue Magic'].Stun = set_combine(sets.midcast['Blue Magic'].MagicAccuracy,
  368. {waist="Salire Belt"})
  369.  
  370. sets.midcast['Blue Magic']['White Wind'] = {ammo="Quartz Tathlum",
  371. head="Telchine Cap",neck="Nuna Gorget +1",ear1="Mendicant's Earring",ear2="Lifestorm Earring",
  372. body="Jhakri Robe +2",hands="Amalric Gages",ring1="Leviathan Ring",ring2="Asklepian Ring",
  373. back="Solemnity Cape",waist="Gishdubar Sash",legs="Doyen Pants",feet="Telchine Pigaches"}
  374.  
  375. sets.midcast['Blue Magic'].Healing = {ammo="Quartz Tathlum",
  376. head="Telchine Cap",neck="Nuna Gorget +1",ear1="Mendicant's Earring",ear2="Lifestorm Earring",
  377. body="Jhakri Robe +2",hands="Amalric Gages",ring1="Leviathan Ring",ring2="Asklepian Ring",
  378. back="Solemnity Cape",waist="Gishdubar Sash",legs="Doyen Pants",feet="Telchine Pigaches"}
  379.  
  380. sets.midcast['Blue Magic'].SkillBasedBuff = {ammo="Honed Tathlum",
  381. head="Herculean Helm",neck="Jeweled Collar",ear1="Loquacious Earring",ear2="Suppanomimi",
  382. body="Taeon Tabard",hands="Leyline Gloves",ring1="Kishar Ring",ring2="Weatherspoon Ring",
  383. back="Swith Cape",waist="Rumination Sash",legs="Ayanmo Cosciales +1",feet="Luhlaza charuqs +1"}
  384.  
  385. sets.midcast['Blue Magic'].Buff = {ammo="Honed Tathlum",
  386. head="Herculean Helm",neck="Jeweled Collar",ear1="Loquacious Earring",ear2="Suppanomimi",
  387. body="Taeon Tabard",hands="Leyline Gloves",ring1="Kishar Ring",ring2="Weatherspoon Ring",
  388. back="Swith Cape",waist="Rumination Sash",legs="Ayanmo Cosciales +1",feet="Luhlaza charuqs +1"}
  389.  
  390. sets.midcast.Protect = {ring1="Leviathan Ring"}
  391. sets.midcast.Protectra = {ring1="Leviathan Ring"}
  392. sets.midcast.Shell = {ring1="Leviathan Ring"}
  393. sets.midcast.Shellra = {ring1="Leviathan Ring"}
  394.  
  395.  
  396.  
  397.  
  398. -- Sets to return to when not performing an action.
  399.  
  400. -- Gear for learning spells: +skill and AF hands.
  401. sets.Learning = {hands="Assimilator's Bazubands +1"}
  402. --head="Luhlaza Keffiyeh",
  403. --body="Assimilator's Jubbah",hands="Assimilator's Bazubands +1",
  404. --back="Cornflower Cape",legs="Mavi Tayt +2",feet="Luhlaza Charuqs"}
  405.  
  406.  
  407. sets.latent_refresh = {waist="Moonshade Earring"}
  408.  
  409. -- Resting sets
  410. sets.resting = {ammo="Honed Tathlum",
  411. head="Rawhide Mask",neck="Twilight Torque",ear1="Moonshade Earring",ear2="Suppanomimi",
  412. body="Jhakri Robe +2",hands="Serpentes Cuffs",ring1="Petrov Ring",ring2="Epona's Ring",
  413. back="Solemnity Cape",waist="Windbuffet Belt +1",legs="Ayanmo Cosciales +1",feet="Serpentes Sabots"}
  414.  
  415. -- Idle sets
  416. sets.idle = {ammo="Honed Tathlum",
  417. head="Rawhide Mask",neck="Twilight Torque",ear1="Moonshade Earring",ear2="Suppanomimi",
  418. body="Jhakri Robe +2",hands="Serpentes Cuffs",ring1="Petrov Ring",ring2="Epona's Ring",
  419. back="Solemnity Cape",waist="Windbuffet Belt +1",legs="Ayanmo Cosciales +1",feet="Serpentes Sabots"}
  420.  
  421. sets.idle.PDT = {ammo="Honed Tathlum",
  422. head="Rawhide Mask",neck="Twilight Torque",ear1="Moonshade Earring",ear2="Suppanomimi",
  423. body="Jhakri Robe +2",hands="Serpentes Cuffs",ring1="Petrov Ring",ring2="Epona's Ring",
  424. back="Solemnity Cape",waist="Windbuffet Belt +1",legs="Ayanmo Cosciales +1",feet="Serpentes Sabots"}
  425.  
  426. sets.idle.Town = {ammo="Honed Tathlum",
  427. head="Rawhide Mask",neck="Twilight Torque",ear1="Moonshade Earring",ear2="Suppanomimi",
  428. body="Jhakri Robe +2",hands="Serpentes Cuffs",ring1="Petrov Ring",ring2="Epona's Ring",
  429. back="Solemnity Cape",waist="Windbuffet Belt +1",legs="Ayanmo Cosciales +1",feet="Serpentes Sabots"}
  430.  
  431. sets.idle.Learning = set_combine(sets.idle, sets.Learning)
  432.  
  433.  
  434. -- Defense sets
  435. sets.defense.PDT = {ammo="Honed Tathlum",
  436. head="Ayanmo Zucchetto +1",neck="Twilight Torque",ear1="Moonshade Earring",ear2="Suppanomimi",
  437. body="Ayanmo Corazza +2",hands="Ayanmo Manopolas +1",ring1="Petrov Ring",ring2="Epona's Ring",
  438. back="Solemnity Cape",waist="Windbuffet Belt +1",legs="Ayanmo Cosciales +1",feet="Ayanmo Gambieras +1"}
  439.  
  440. sets.defense.MDT = {ammo="Honed Tathlum",
  441. head="Ayanmo Zucchetto +1",neck="Twilight Torque",ear1="Moonshade Earring",ear2="Suppanomimi",
  442. body="Ayanmo Corazza +2",hands="Ayanmo Manopolas +1",ring1="Petrov Ring",ring2="Epona's Ring",
  443. back="Solemnity Cape",waist="Windbuffet Belt +1",legs="Ayanmo Cosciales +1",feet="Ayanmo Gambieras +1"}
  444.  
  445. sets.Kiting = {legs="Ayanmo Cosciales +1"}
  446.  
  447. -- Engaged sets
  448.  
  449. -- Variations for TP weapon and (optional) offense/defense modes. Code will fall back on previous
  450. -- sets if more refined versions aren't defined.
  451. -- If you create a set with both offense and defense modes, the offense mode should be first.
  452. -- EG: sets.engaged.Dagger.Accuracy.Evasion
  453.  
  454. -- Normal melee group
  455. sets.engaged = {ammo="Honed Tathlum",
  456. head="Herculean Helm",neck="Asperity Necklace",ear1="Brutal Earring",ear2="Suppanomimi",
  457. body="Herculean Vest",hands="Adhemar Wristbands",ring1="Petrov Ring",ring2="Epona's Ring",
  458. back="Rosmerta's Cape",waist="Windbuffet Belt +1",legs="Herculean Trousers",feet="Herculean Boots"}
  459.  
  460. sets.engaged.Acc = {ammo="Honed Tathlum",
  461. head="Herculean Helm",neck="Asperity Necklace",ear1="Brutal Earring",ear2="Suppanomimi",
  462. body="Herculean Vest",hands="Adhemar Wristbands",ring1="Petrov Ring",ring2="Epona's Ring",
  463. back="Rosmerta's Cape",waist="Windbuffet Belt +1",legs="Herculean Trousers",feet="Herculean Boots"}
  464.  
  465. sets.engaged.Refresh = {ammo="Honed Tathlum",
  466. head="Herculean Helm",neck="Asperity Necklace",ear1="Brutal Earring",ear2="Suppanomimi",
  467. body="Herculean Vest",hands="Adhemar Wristbands",ring1="Petrov Ring",ring2="Epona's Ring",
  468. back="Rosmerta's Cape",waist="Windbuffet Belt +1",legs="Herculean Trousers",feet="Herculean Boots"}
  469.  
  470. sets.engaged.DW = {ammo="Honed Tathlum",
  471. head="Herculean Helm",neck="Asperity Necklace",ear1="Brutal Earring",ear2="Suppanomimi",
  472. body="Herculean Vest",hands="Adhemar Wristbands",ring1="Petrov Ring",ring2="Epona's Ring",
  473. back="Rosmerta's Cape",waist="Windbuffet Belt +1",legs="Herculean Trousers",feet="Herculean Boots"}
  474.  
  475. sets.engaged.DW.Acc = {ammo="Honed Tathlum",
  476. head="Herculean Helm",neck="Asperity Necklace",ear1="Brutal Earring",ear2="Suppanomimi",
  477. body="Herculean Vest",hands="Adhemar Wristbands",ring1="Petrov Ring",ring2="Epona's Ring",
  478. back="Rosmerta's Cape",waist="Windbuffet Belt +1",legs="Herculean Trousers",feet="Herculean Boots"}
  479.  
  480. sets.engaged.DW.Refresh = {ammo="Honed Tathlum",
  481. head="Herculean Helm",neck="Asperity Necklace",ear1="Brutal Earring",ear2="Suppanomimi",
  482. body="Herculean Vest",hands="Adhemar Wristbands",ring1="Petrov Ring",ring2="Epona's Ring",
  483. back="Rosmerta's Cape",waist="Windbuffet Belt +1",legs="Herculean Trousers",feet="Herculean Boots"}
  484.  
  485. sets.engaged.Learning = set_combine(sets.engaged, sets.Learning)
  486. sets.engaged.DW.Learning = set_combine(sets.engaged.DW, sets.Learning)
  487.  
  488.  
  489. sets.self_healing = {ring1="Valseur's Ring",ring2="Asklepian Ring"}
  490. end
  491.  
  492. -------------------------------------------------------------------------------------------------------------------
  493. -- Job-specific hooks for standard casting events.
  494. -------------------------------------------------------------------------------------------------------------------
  495.  
  496. -- Set eventArgs.handled to true if we don't want any automatic gear equipping to be done.
  497. -- Set eventArgs.useMidcastGear to true if we want midcast gear equipped on precast.
  498. function job_precast(spell, action, spellMap, eventArgs)
  499. if unbridled_spells:contains(spell.english) and not state.Buff['Unbridled Learning'] then
  500. eventArgs.cancel = true
  501. windower.send_command('@input /ja "Unbridled Learning" <me>; wait 1.5; input /ma "'..spell.name..'" '..spell.target.name)
  502. end
  503. end
  504.  
  505. -- Run after the default midcast() is done.
  506. -- eventArgs is the same one used in job_midcast, in case information needs to be persisted.
  507. function job_post_midcast(spell, action, spellMap, eventArgs)
  508. -- Add enhancement gear for Chain Affinity, etc.
  509. if spell.skill == 'Blue Magic' then
  510. for buff,active in pairs(state.Buff) do
  511. if active and sets.buff[buff] then
  512. equip(sets.buff[buff])
  513. end
  514. end
  515. if spellMap == 'Healing' and spell.target.type == 'SELF' and sets.self_healing then
  516. equip(sets.self_healing)
  517. end
  518. end
  519.  
  520. -- If in learning mode, keep on gear intended to help with that, regardless of action.
  521. if state.OffenseMode.value == 'Learning' then
  522. equip(sets.Learning)
  523. end
  524. end
  525.  
  526.  
  527. -------------------------------------------------------------------------------------------------------------------
  528. -- Job-specific hooks for non-casting events.
  529. -------------------------------------------------------------------------------------------------------------------
  530.  
  531. -- Called when a player gains or loses a buff.
  532. -- buff == buff gained or lost
  533. -- gain == true if the buff was gained, false if it was lost.
  534. function job_buff_change(buff, gain)
  535. if state.Buff[buff] ~= nil then
  536. state.Buff[buff] = gain
  537. end
  538. end
  539.  
  540. -------------------------------------------------------------------------------------------------------------------
  541. -- User code that supplements standard library decisions.
  542. -------------------------------------------------------------------------------------------------------------------
  543.  
  544. -- Custom spell mapping.
  545. -- Return custom spellMap value that can override the default spell mapping.
  546. -- Don't return anything to allow default spell mapping to be used.
  547. function job_get_spell_map(spell, default_spell_map)
  548. if spell.skill == 'Blue Magic' then
  549. for category,spell_list in pairs(blue_magic_maps) do
  550. if spell_list:contains(spell.english) then
  551. return category
  552. end
  553. end
  554. end
  555. end
  556.  
  557. -- Modify the default idle set after it was constructed.
  558. function customize_idle_set(idleSet)
  559. if player.mpp < 51 then
  560. set_combine(idleSet, sets.latent_refresh)
  561. end
  562. return idleSet
  563. end
  564.  
  565. -- Called by the 'update' self-command, for common needs.
  566. -- Set eventArgs.handled to true if we don't want automatic equipping of gear.
  567. function job_update(cmdParams, eventArgs)
  568. update_combat_form()
  569. end
  570.  
  571.  
  572. -------------------------------------------------------------------------------------------------------------------
  573. -- Utility functions specific to this job.
  574. -------------------------------------------------------------------------------------------------------------------
  575.  
  576.  
  577. function update_combat_form()
  578. -- Check for H2H or single-wielding
  579. if player.equipment.sub == "Genbu's Shield" or player.equipment.sub == 'empty' then
  580. state.CombatForm:reset()
  581. else
  582. state.CombatForm:set('DW')
  583. end
  584. end
  585.  
  586.  
  587. -- Select default macro book on initial load or subjob change.
  588. function select_default_macro_book()
  589. -- Default macro set/book
  590. if player.sub_job == 'DNC' then
  591. set_macro_page(1, 14)
  592. else
  593. set_macro_page(1, 13)
  594. end
  595. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement