Advertisement
Guest User

Yellowbear_BLU

a guest
Jun 29th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 29.69 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. include('organizer-lib')
  12. end
  13.  
  14.  
  15. -- Setup vars that are user-independent. state.Buff vars initialized here will automatically be tracked.
  16. function job_setup()
  17. state.Buff['Burst Affinity'] = buffactive['Burst Affinity'] or false
  18. state.Buff['Chain Affinity'] = buffactive['Chain Affinity'] or false
  19. state.Buff.Convergence = buffactive.Convergence or false
  20. state.Buff.Diffusion = buffactive.Diffusion or false
  21. state.Buff.Efflux = buffactive.Efflux or false
  22.  
  23. state.Buff['Unbridled Learning'] = buffactive['Unbridled Learning'] or false
  24.  
  25. state.autoWS = M(false, '***Automatic Weaponskills***')
  26.  
  27. blue_magic_maps = {}
  28.  
  29. -- Mappings for gear sets to use for various blue magic spells.
  30. -- While Str isn't listed for each, it's generally assumed as being at least
  31. -- moderately signficant, even for spells with other mods.
  32.  
  33. -- Physical Spells --
  34.  
  35. -- Physical spells with no particular (or known) stat mods
  36. blue_magic_maps.Physical = S{
  37. 'Bilgestorm'
  38. }
  39.  
  40. -- Spells with heavy accuracy penalties, that need to prioritize accuracy first.
  41. blue_magic_maps.PhysicalAcc = S{
  42. 'Heavy Strike',
  43. }
  44.  
  45. -- Physical spells with Str stat mod
  46. blue_magic_maps.PhysicalStr = S{
  47. 'Battle Dance','Bloodrake','Death Scissors','Dimensional Death',
  48. 'Empty Thrash','Quadrastrike','Sinker Drill','Spinal Cleave',
  49. 'Uppercut','Vertical Cleave'
  50. }
  51.  
  52. -- Physical spells with Dex stat mod
  53. blue_magic_maps.PhysicalDex = S{
  54. 'Amorphic Spikes','Asuran Claws','Barbed Crescent','Claw Cyclone','Disseverment',
  55. 'Foot Kick','Frenetic Rip','Goblin Rush','Hysteric Barrage','Paralyzing Triad',
  56. 'Seedspray','Sickle Slash','Smite of Rage','Terror Touch','Thrashing Assault',
  57. 'Vanity Dive'
  58. }
  59.  
  60. -- Physical spells with Vit stat mod
  61. blue_magic_maps.PhysicalVit = S{
  62. 'Body Slam','Cannonball','Delta Thrust','Glutinous Dart','Grand Slam',
  63. 'Power Attack','Quad. Continuum','Sprout Smack','Sub-zero Smash'
  64. }
  65.  
  66. -- Physical spells with Agi stat mod
  67. blue_magic_maps.PhysicalAgi = S{
  68. 'Benthic Typhoon','Feather Storm','Helldive','Hydro Shot','Jet Stream',
  69. 'Pinecone Bomb','Spiral Spin','Wild Oats'
  70. }
  71.  
  72. -- Physical spells with Int stat mod
  73. blue_magic_maps.PhysicalInt = S{
  74. 'Mandibular Bite','Queasyshroom'
  75. }
  76.  
  77. -- Physical spells with Mnd stat mod
  78. blue_magic_maps.PhysicalMnd = S{
  79. 'Ram Charge','Screwdriver','Tourbillion'
  80. }
  81.  
  82. -- Physical spells with Chr stat mod
  83. blue_magic_maps.PhysicalChr = S{
  84. 'Bludgeon'
  85. }
  86.  
  87. -- Physical spells with HP stat mod
  88. blue_magic_maps.PhysicalHP = S{
  89. 'Final Sting'
  90. }
  91.  
  92. -- Magical Spells --
  93.  
  94. -- Magical spells with the typical Int mod
  95. blue_magic_maps.Magical = S{
  96. 'Blastbomb','Blazing Bound','Bomb Toss','Cursed Sphere','Dark Orb','Death Ray',
  97. 'Diffusion Ray','Droning Whirlwind','Embalming Earth','Firespit','Foul Waters',
  98. 'Ice Break','Leafstorm','Maelstrom','Rail Cannon','Regurgitation','Rending Deluge',
  99. 'Retinal Glare','Subduction','Tem. Upheaval','Water Bomb', 'Searing Tempest', 'Blinding Fulgor',
  100. 'Spectral Floe', 'Scouring Spate', 'Anvil Lightning', 'Silent Storm', 'Entomb', 'Tenebral Crush'
  101. }
  102.  
  103. -- Magical spells with a primary Mnd mod
  104. blue_magic_maps.MagicalMnd = S{
  105. 'Acrid Stream','Evryone. Grudge','Magic Hammer','Mind Blast'
  106. }
  107.  
  108. -- Magical spells with a primary Chr mod
  109. blue_magic_maps.MagicalChr = S{
  110. 'Eyes On Me','Mysterious Light'
  111. }
  112.  
  113. -- Magical spells with a Vit stat mod (on top of Int)
  114. blue_magic_maps.MagicalVit = S{
  115. 'Thermal Pulse'
  116. }
  117.  
  118. -- Magical spells with a Dex stat mod (on top of Int)
  119. blue_magic_maps.MagicalDex = S{
  120. 'Charged Whisker','Gates of Hades'
  121. }
  122.  
  123. -- Magical spells (generally debuffs) that we want to focus on magic accuracy over damage.
  124. -- Add Int for damage where available, though.
  125. blue_magic_maps.MagicAccuracy = S{
  126. '1000 Needles','Absolute Terror','Actinic Burst','Auroral Drape','Awful Eye',
  127. 'Blank Gaze','Blistering Roar','Blood Drain','Blood Saber','Chaotic Eye',
  128. 'Cimicine Discharge','Cold Wave','Corrosive Ooze','Demoralizing Roar','Digest',
  129. 'Dream Flower','Enervation','Feather Tickle','Filamented Hold','Frightful Roar',
  130. 'Geist Wall','Hecatomb Wave','Infrasonics','Jettatura','Light of Penance',
  131. 'Lowing','Mind Blast','Mortal Ray','MP Drainkiss','Osmosis','Reaving Wind',
  132. 'Sandspin','Sandspray','Sheep Song','Soporific','Sound Blast','Stinking Gas',
  133. 'Sub-zero Smash','Venom Shell','Voracious Trunk','Yawn'
  134. }
  135.  
  136. -- Breath-based spells
  137. blue_magic_maps.Breath = S{
  138. 'Bad Breath','Flying Hip Press','Frost Breath','Heat Breath',
  139. 'Hecatomb Wave','Magnetite Cloud','Poison Breath','Radiant Breath','Self-Destruct',
  140. 'Thunder Breath','Vapor Spray','Wind Breath'
  141. }
  142.  
  143. -- Stun spells
  144. blue_magic_maps.Stun = S{
  145. 'Blitzstrahl','Frypan','Head Butt','Sudden Lunge','Tail slap','Temporal Shift',
  146. 'Thunderbolt','Whirl of Rage'
  147. }
  148.  
  149. -- Healing spells
  150. blue_magic_maps.Healing = S{
  151. 'Healing Breeze','Magic Fruit','Plenilune Embrace','Pollen','Restoral','White Wind',
  152. 'Wild Carrot'
  153. }
  154.  
  155. -- Buffs that depend on blue magic skill
  156. blue_magic_maps.SkillBasedBuff = S{
  157. 'Barrier Tusk','Diamondhide','Magic Barrier','Metallic Body','Plasma Charge',
  158. 'Pyric Bulwark','Reactor Cool',
  159. }
  160.  
  161. -- Other general buffs
  162. blue_magic_maps.Buff = S{
  163. 'Amplification','Animating Wail','Battery Charge','Carcharian Verve','Cocoon',
  164. 'Erratic Flutter','Exuviation','Fantod','Feather Barrier','Harden Shell',
  165. 'Memento Mori','Nat. Meditation','Occultation','Orcish Counterstance','Refueling',
  166. 'Regeneration','Saline Coat','Triumphant Roar','Warm-Up','Winds of Promyvion',
  167. 'Zephyr Mantle'
  168. }
  169.  
  170.  
  171. -- Spells that require Unbridled Learning to cast.
  172. unbridled_spells = S{
  173. 'Absolute Terror','Bilgestorm','Blistering Roar','Bloodrake','Carcharian Verve',
  174. 'Crashing Thunder','Droning Whirlwind','Gates of Hades','Harden Shell','Polar Roar',
  175. 'Pyric Bulwark','Thunderbolt','Tourbillion','Uproot','Mighty Guard','Cruel Joke','Cesspool','Tearing Gust'
  176. }
  177. end
  178.  
  179. -------------------------------------------------------------------------------------------------------------------
  180. -- User setup functions for this job. Recommend that these be overridden in a sidecar file.
  181. -------------------------------------------------------------------------------------------------------------------
  182.  
  183. -- Setup vars that are user-dependent. Can override this function in a sidecar file.
  184. function user_setup()
  185. state.OffenseMode:options('Normal', 'Acc','HiAcc')
  186. state.WeaponskillMode:options('Normal', 'Acc')
  187. state.CastingMode:options('Normal', 'Resistant')
  188. state.IdleMode:options('Normal', 'PDT', 'Refresh')
  189. state.HybridMode:options('Normal', 'PDT')
  190.  
  191. state.MagicBurst = M(false, 'Magic Burst')
  192.  
  193. -- Additional local binds
  194. send_command('bind !` gs c toggle MagicBurst')
  195. send_command('bind ^` gs c toggle autoWS') -- Alt ` turns magic burst set on and off
  196.  
  197. update_combat_form()
  198. select_default_macro_book()
  199.  
  200. target_distance = 5.5 -- Set Default Distance Here --
  201. end
  202.  
  203. -- Called when this job file is unloaded (eg: job change)
  204. function user_unload()
  205. send_command('unbind `')
  206. send_command('unbind !`')
  207. end
  208.  
  209. -- Set up gear sets.
  210. function init_gear_sets()
  211. --------------------------------------
  212. -- Start defining the sets
  213. --------------------------------------
  214.  
  215. sets.buff['Burst Affinity'] = {hands="Amalric Gages",back="Seshaw Cape",ring1="Mujin Band",ring2="Locus Ring"}
  216. sets.buff['Chain Affinity'] = {head="Hashishin Kavuk", feet="Assimilator's Charuqs"}
  217. sets.buff.Convergence = {}
  218. sets.buff.Enchainment = {}
  219. sets.buff.Diffusion = {feet="Luhlaza Charuqs +1"}
  220. sets.buff.Efflux = {legs="Hashishin Tayt +1"}
  221.  
  222.  
  223. -- Precast Sets
  224. organizer_items = {
  225. colada="Colada",
  226. colada2="Buramenk'ah",
  227. tanmo="Tanmogayi",
  228. nclub="Nibiru Cudgel",
  229. nclub2="Nibiru Cudgel"}
  230.  
  231. -- Precast sets to enhance JAs
  232. sets.precast.JA['Azure Lore'] = {hands="Luhlaza Bazubands"}
  233.  
  234.  
  235. -- Waltz set (chr and vit)
  236. sets.precast.Waltz = {}
  237.  
  238. -- Don't need any special gear for Healing Waltz.
  239. sets.precast.Waltz['Healing Waltz'] = {}
  240.  
  241. -- Fast cast sets for spells
  242.  
  243. -- Quick Magic 10%, FC 64% (71~74% FC Tanmogayi+1 & Colada)
  244. sets.precast.FC = {
  245. head="Carmine Mask",neck="Orunmila's Torque",ear1="Etiolation Earring",ear2="Loquacious Earring",
  246. body="Vanir Cotehardie",hands="Leyline Gloves",ring1="Weatherspoon Ring",ring2="Prolix Ring",
  247. back="Perimede Cape",waist="Witful Belt",legs="Psycloth Lappas",feet="Carmine Greaves"}
  248.  
  249. sets.precast.FC['Blue Magic'] = set_combine(sets.precast.FC, {body="Hashishin Mintan +1"})
  250.  
  251. -- Weaponskill sets
  252. -- Default set for any weaponskill that isn't any more specifically defined
  253. sets.precast.WS = {ammo="Jukukik Feather",
  254. neck="Fotia Gorget",ear1="Moonshade Earring",ear2="Brutal Earring",
  255. ring1="Hetairoi Ring",ring2="Epona's Ring",
  256. back="Rancorous Mantle",waist="Fotia Belt",
  257. head={ name="Herculean Helm", augments={'Attack+14','Weapon skill damage +5%','Accuracy+5',}},
  258. body={ name="Herculean Vest", augments={'Accuracy+20 Attack+20','Weapon skill damage +3%','Accuracy+6','Attack+2',}},
  259. hands={ name="Herculean Gloves", augments={'Accuracy+2','Weapon skill damage +5%',}},
  260. legs={ name="Herculean Trousers", augments={'Accuracy+19','Weapon skill damage +3%','DEX+7',}},
  261. feet={ name="Herculean Boots", augments={'Attack+28','Weapon skill damage +5%','MND+5','Accuracy+14',}}
  262. }
  263.  
  264. sets.precast.WS.acc = set_combine(sets.precast.WS, {})
  265.  
  266. -- Specific weaponskill sets. Uses the base set if an appropriate WSMod version isn't found.
  267. sets.precast.WS['Chant du Cygne'] = set_combine(sets.precast.WS, {
  268. ammo="Jukukik Feather",
  269. head={ name="Adhemar Bonnet", augments={'DEX+10','AGI+10','Accuracy+15',}},
  270. --body="Abnoba Kaftan",
  271. body={ name="Herculean Vest", augments={'Accuracy+20 Attack+20','Weapon skill damage +3%','Accuracy+6','Attack+2',}},
  272. hands="Adhemar Wristbands",
  273. legs={ name="Samnuha Tights", augments={'STR+10','DEX+10','"Dbl.Atk."+3','"Triple Atk."+3',}},
  274. feet="Thereoid Greaves",
  275. neck="Fotia Gorget",
  276. waist="Fotia Belt",
  277. left_ear={ name="Moonshade Earring", augments={'Accuracy+4','TP Bonus +25',}},
  278. right_ear="Brutal Earring",
  279. --left_ring="Hetairoi Ring",
  280. left_ring="Petrov Ring",
  281. right_ring="Epona's Ring",
  282. back={ name="Rosmerta's Cape", augments={'DEX+20','Accuracy+20 Attack+20','"Dbl.Atk."+10',}}
  283. })
  284.  
  285. sets.precast.WS['Chant du Cygne'].Acc = set_combine(sets.precast.WS, {
  286. ammo="Mantoptera Eye",
  287. head={ name="Carmine Mask", augments={'Accuracy+15','Mag. Acc.+10','"Fast Cast"+3',}},
  288. body={ name="Herculean Vest", augments={'Accuracy+20 Attack+20','Weapon skill damage +3%','Accuracy+6','Attack+2',}},
  289. hands={ name="Herculean Gloves", augments={'Accuracy+24 Attack+24','"Store TP"+2','AGI+9','Accuracy+7',}},
  290. legs={ name="Herculean Trousers", augments={'Accuracy+23 Attack+23','Weapon skill damage +1%','INT+10','Accuracy+6','Attack+3',}},
  291. feet={ name="Herculean Boots", augments={'Accuracy+24 Attack+24','"Counter"+3','STR+1','Accuracy+7',}},
  292. neck="Iqabi Necklace",
  293. waist="Grunfeld Rope",
  294. left_ear="Telos Earring",
  295. right_ear="Zennaroi Earring",
  296. left_ring="Ramuh Ring",
  297. right_ring="Ramuh Ring",
  298. back="Rosmerta's Cape"
  299. })
  300.  
  301. sets.precast.WS['Requiescat'] = set_combine(sets.precast.WS, {ammo="Hydrocera",
  302. head="Carmine Mask",ear1="Moonshade Earring",ring1="Rufescent Ring",
  303. back="Rosmerta's Cape",hands="Carmine Finger Gauntlets",feet="Carmine Greaves"})
  304.  
  305. sets.precast.WS['Savage Blade'] = set_combine(sets.precast.WS, {ammo="Ginsen",
  306. head={ name="Herculean Helm", augments={'Attack+14','Weapon skill damage +5%','Accuracy+5',}},
  307. body={ name="Herculean Vest", augments={'Accuracy+20 Attack+20','Weapon skill damage +3%','Accuracy+6','Attack+2',}},
  308. hands={ name="Herculean Gloves", augments={'Accuracy+2','Weapon skill damage +5%',}},
  309. ring1="Rufescent Ring",ring2="Ifrit Ring",
  310. legs={ name="Herculean Trousers", augments={'Accuracy+19','Weapon skill damage +3%','DEX+7',}},
  311. feet={ name="Herculean Boots", augments={'Attack+28','Weapon skill damage +5%','MND+5','Accuracy+14',}}
  312. })
  313.  
  314. sets.precast.WS['Sanguine Blade'] = {
  315. head="Pixie Hairpin +1",neck="Eddy Necklace",ear1="Friomisi Earring",ear2="Novio Earring",
  316. body="Amalric Doublet",hands="Amalric Gages",ring1="Shiva Ring",ring2="Shiva Ring",
  317. back="Cornflower Cape"}
  318.  
  319. sets.precast.WS['Flash Nova'] = set_combine(sets.precast.WS['Sanguine Blade'], {ring1="Weatherspoon Ring"})
  320.  
  321. sets.precast.WS['Realmrazer'] = sets.precast.WS['Requiescat']
  322.  
  323.  
  324. -- Midcast Sets
  325. sets.midcast.FastRecast = {back="Swith Cape +1"}
  326.  
  327. sets.midcast['Blue Magic'] = {}
  328.  
  329. -- Physical Spells --
  330.  
  331. sets.midcast['Blue Magic'].Physical = {ammo="Ginsen",
  332. head="Adhemar Bonnet",neck="Sanctity Necklace",
  333. body="Adhemar Jacket",hands="Adhemar Wristbands",ring1="Ifrit Ring",ring2="Ifrit Ring",
  334. back="Cornflower Cape",
  335. legs={ name="Herculean Trousers", augments={'Accuracy+23 Attack+23','Weapon skill damage +1%','INT+10','Accuracy+6','Attack+3',}},
  336. feet={ name="Herculean Boots", augments={'Accuracy+24 Attack+24','"Counter"+3','STR+1','Accuracy+7',}},
  337. }
  338.  
  339. sets.midcast['Blue Magic'].PhysicalAcc = set_combine(sets.midcast['Blue Magic'].Physical, {
  340. neck="Sanctity Necklace",hands="Leyline Gloves",back="Grounded Mantle +1",waist="Olseni Belt",
  341. feet={ name="Herculean Boots", augments={'Attack+28','Weapon skill damage +5%','MND+5','Accuracy+14',}}})
  342.  
  343. sets.midcast['Blue Magic'].PhysicalStr = set_combine(sets.midcast['Blue Magic'].Physical, {})
  344. sets.midcast['Blue Magic'].PhysicalDex = set_combine(sets.midcast['Blue Magic'].Physical, {ring1="Ramuh Ring"})
  345. sets.midcast['Blue Magic'].PhysicalVit = set_combine(sets.midcast['Blue Magic'].Physical, {})
  346. sets.midcast['Blue Magic'].PhysicalAgi = set_combine(sets.midcast['Blue Magic'].Physical, {})
  347. sets.midcast['Blue Magic'].PhysicalInt = set_combine(sets.midcast['Blue Magic'].Physical, {})
  348. sets.midcast['Blue Magic'].PhysicalMnd = set_combine(sets.midcast['Blue Magic'].Physical, {})
  349. sets.midcast['Blue Magic'].PhysicalChr = set_combine(sets.midcast['Blue Magic'].Physical, {})
  350. sets.midcast['Blue Magic'].PhysicalHP = set_combine(sets.midcast['Blue Magic'].Physical, {})
  351.  
  352.  
  353. -- Magical Spells --
  354.  
  355. sets.midcast['Blue Magic'].Magical = {ammo="Pemphredo Tathlum",
  356. head="Helios Band",neck="Sanctity Necklace",ear1="Friomisi Earring",ear2="Novio Earring",
  357. body="Amalric Doublet",hands="Amalric Gages",ring1="Shiva Ring",ring2="Shiva Ring",
  358. back="Cornflower Cape",waist="Eschan Stone",legs="Amalric Slops",feet="Amalric Nails"}
  359.  
  360. sets.midcast['Blue Magic'].Magical.Resistant = set_combine(sets.midcast['Blue Magic'].Magical,
  361. {ammo="Mavi Tathlum",ear1="Etiolation Earring",ear2="Gwati Earring",head="Carmine Mask",body="Hashishin Mintan +1",
  362. hands="Leyline Gloves",ring1="Weatherspoon Ring",legs="Psycloth Lappas",feet="Medium's Sabots"})
  363.  
  364. sets.midcast['Blue Magic'].MagicAccuracy = set_combine(sets.midcast['Blue Magic'].Magical, {ammo="Mavi Tathlum",
  365. head="Carmine Mask",ear1="Etiolation Earring",ear2="Gwati Earring",body="Hashishin Mintan +1",ring1="Weatherspoon Ring",legs="Psycloth Lappas"})
  366.  
  367. sets.midcast['Blue Magic'].MagicalMnd = set_combine(sets.midcast['Blue Magic'].Magical,
  368. {hands="Telchine Gloves",ring1="Leviathan Ring",ring2="Rufescent Ring",legs="Telchine Braconi",feet="Medium's Sabots"})
  369.  
  370. sets.midcast['Blue Magic'].MagicalChr = set_combine(sets.midcast['Blue Magic'].Magical)
  371. sets.midcast['Blue Magic'].MagicalVit = set_combine(sets.midcast['Blue Magic'].Magical, {})
  372. sets.midcast['Blue Magic'].MagicalDex = set_combine(sets.midcast['Blue Magic'].Magical, {})
  373. sets.midcast['Blue Magic']['Tenebral Crush'] = set_combine(sets.midcast['Blue Magic'].Magical, {head="Pixie Hairpin +1"})
  374.  
  375. -- Breath Spells --
  376.  
  377. sets.midcast['Blue Magic'].Breath = {ammo="Mavi Tathlum",
  378. neck="Sanctity Necklace",ear1="Etiolation Earring",ear2="Gwati Earring",
  379. hands="Amalric Gages",back="Cornflower Cape",legs="Psycloth Lappas",feet="Medium's Sabots"}
  380.  
  381. -- Other Types --
  382.  
  383. sets.midcast['Blue Magic'].Stun = set_combine(sets.midcast['Blue Magic'].MagicAccuracy, {ammo="Mantoptera Eye",
  384. neck="Sanctity Necklace",ear2="Dignitary's Earring",
  385. hands="Leyline Gloves",ring2="Sangoma Ring",waist="Olseni Belt",
  386. feet={ name="Herculean Boots", augments={'Accuracy+24 Attack+24','"Counter"+3','STR+1','Accuracy+7',}},
  387. })
  388.  
  389. sets.midcast['Blue Magic'].Healing = {ammo="Hydrocera",
  390. neck="Incanter's Torque",
  391. body="Hashishin Mintan +1",hands="Telchine Gloves",ring1="Leviathan Ring",ring2="Rufescent Ring",
  392. waist="Bishop's Sash",legs="Telchine Braconi",feet="Medium's Sabots"}
  393.  
  394. sets.midcast['Blue Magic']['White Wind'] = set_combine(sets.midcast['Blue Magic'].Healing, {})
  395.  
  396. sets.midcast['Blue Magic'].SkillBasedBuff = {ammo="Mavi Tathlum",
  397. neck="Incanter's Torque",body="Assimilator's Jubbah +1",back="Cornflower Cape",legs="Hashishin Tayt +1"}
  398.  
  399. sets.midcast['Blue Magic'].Buff = set_combine(sets.midcast['Blue Magic'].SkillBasedBuff, {})
  400.  
  401. sets.midcast['Blue Magic']['Mighty Guard'] = set_combine(sets.midcast['Blue Magic'].Buff, {ammo="Pemphredo Tathlum",
  402. neck="Incanter's Torque",ear2="Gwati Earring",
  403. body="Amalric Doublet",back="Solemnity Cape",legs="Lengo Pants",feet="Carmine Greaves"}) --Luminary Sash
  404.  
  405. sets.midcast.Protect = {ring1="Sheltered Ring"}
  406. sets.midcast.Protectra = {ring1="Sheltered Ring"}
  407. sets.midcast.Shell = {ring1="Sheltered Ring"}
  408. sets.midcast.Shellra = {ring1="Sheltered Ring"}
  409.  
  410.  
  411. -- Sets to return to when not performing an action.
  412.  
  413. -- Gear for learning spells: +skill and AF hands.
  414. sets.Learning = {ammo="Mavi Tathlum",body="Assimilator's Jubbah +1", --hands="Assimilator's Bazubands",
  415. neck="Incanter's Torque",back="Cornflower Cape",legs="Hashishin Tayt +1"}
  416. --head="Luhlaza Keffiyeh"
  417.  
  418.  
  419. sets.latent_refresh = {}
  420.  
  421. -- Resting sets
  422. sets.resting = {
  423. head="Rawhide Mask",neck="Bathy Choker",
  424. body="Respite Cloak",ring1="Sheltered Ring",ring2="Paguroidea Ring",legs="Lengo Pants"}
  425.  
  426. -- Idle sets
  427. sets.idle = {
  428. head="Rawhide Mask",neck="Bathy Choker",ear1="Etiolation Earring",ear2="Loquacious Earring",
  429. --body="Assimilator's Jubbah +1",
  430. body="Hashishin Mintan +1",
  431. hands={ name="Herculean Gloves", augments={'Accuracy+24 Attack+24','"Store TP"+2','AGI+9','Accuracy+7',}},
  432. ring1="Sheltered Ring",ring2="Paguroidea Ring",
  433. back="Solemnity Cape",waist="Flume Belt",legs="Carmine Cuisses",
  434. feet={ name="Herculean Boots", augments={'Accuracy+24 Attack+24','"Counter"+3','STR+1','Accuracy+7',}},
  435. }
  436.  
  437. sets.idle.PDT = set_combine(sets.idle, {
  438. head="Adhemar Bonnet",neck="Twilight Torque",body="Emet Harness +1",hands="Umuthi Gloves",
  439. ring1="Dark Ring",ring2="Dark Ring",legs="Carmine Cuisses",
  440. feet={ name="Herculean Boots", augments={'Accuracy+24 Attack+24','"Counter"+3','STR+1','Accuracy+7',}},
  441. })
  442.  
  443. sets.idle.Town = {ammo="Ginsen",
  444. head="Adhemar Bonnet",neck="Incanter's Torque",ear1="Brutal Earring",ear2="Suppanomimi",
  445. body="Adhemar Jacket",
  446. hands={ name="Herculean Gloves", augments={'Accuracy+24 Attack+24','"Store TP"+2','AGI+9','Accuracy+7',}},
  447. ring2="Epona's Ring",ring1="Hetairoi Ring",
  448. back="Rosmerta's Cape",waist="Windbuffet Belt",legs="Carmine Cuisses",
  449. feet={ name="Herculean Boots", augments={'Attack+28','Weapon skill damage +5%','MND+5','Accuracy+14',}}}
  450.  
  451. sets.idle.Learning = set_combine(sets.idle, sets.Learning)
  452. sets.idle.Refresh = set_combine(sets.idle, {legs="Lengo Pants",body="Mekosu. Harness"})
  453.  
  454.  
  455. -- Defense sets
  456. sets.defense.PDT = {
  457. head="Adhemar Bonnet",neck="Twilight Torque",ear1="Genmei Earring",ear2="Loquacious Earring",
  458. body="Emet Harness +1",hands="Umuthi Gloves",ring1="Dark Ring",ring2="Dark Ring",
  459. back="Solemnity Cape",waist="Flume Belt",
  460. legs={ name="Herculean Trousers", augments={'Accuracy+19','Weapon skill damage +3%','DEX+7',}},
  461. feet={ name="Herculean Boots", augments={'Attack+28','Weapon skill damage +5%','MND+5','Accuracy+14',}}}
  462.  
  463. sets.defense.MDT = {
  464. head="Adhemar Bonnet",neck="Twilight Torque",ear1="Sanare Earring",ear2="Etiolation Earring",
  465. body="Hashishin Mintan +1",hands="Amalric Gages",ring1="Dark Ring",ring2="Shadow Ring",
  466. waist="Flume Belt",legs="Hashishin Tayt +1",feet="Amalric Nails"}
  467.  
  468. sets.Kiting = {legs="Carmine Cuisses"}
  469.  
  470. -- Engaged sets
  471.  
  472. -- Variations for TP weapon and (optional) offense/defense modes. Code will fall back on previous
  473. -- sets if more refined versions aren't defined.
  474. -- If you create a set with both offense and defense modes, the offense mode should be first.
  475. -- EG: sets.engaged.Dagger.Accuracy.Evasion
  476.  
  477. -- Normal melee group
  478. sets.engaged = {ammo="Ginsen",
  479. head="Adhemar Bonnet",
  480. neck="Asperity Necklace",ear1="Cessance Earring",ear2="Suppanomimi",
  481. body="Adhemar Jacket",
  482. hands={ name="Herculean Gloves", augments={'Accuracy+24 Attack+24','"Store TP"+2','AGI+9','Accuracy+7',}},
  483. ring1="Petrov Ring",ring2="Epona's Ring",
  484. back="Rosmerta's Cape",waist="Windbuffet Belt",
  485. legs="Samnuha Tights",
  486. feet={ name="Herculean Boots", augments={'Accuracy+24 Attack+24','"Counter"+3','STR+1','Accuracy+7',}}}
  487.  
  488.  
  489.  
  490.  
  491.  
  492. sets.engaged.Acc = set_combine(sets.engaged, {ammo="Mantoptera Eye",
  493. head="Carmine Mask",
  494. neck="Sanctity Necklace",
  495. --ear1="Dignitary's Earring",
  496. ear1="Dudgeon Earring",ear2="Heartseeker Earring",
  497. legs={ name="Herculean Trousers", augments={'Accuracy+23 Attack+23','Weapon skill damage +1%','INT+10','Accuracy+6','Attack+3',}},
  498. hands="Adhemar Wristbands",
  499. ring1="Ramuh Ring",ring2="Ramuh Ring",
  500. back="Rosmerta's Cape",waist="Olseni Belt"})
  501.  
  502. sets.engaged.HiAcc = set_combine(sets.engaged.Acc, {
  503. body={ name="Herculean Vest", augments={'Accuracy+20 Attack+20','Weapon skill damage +3%','Accuracy+6','Attack+2',}},
  504. hands={ name="Herculean Gloves", augments={'Accuracy+24 Attack+24','"Store TP"+2','AGI+9','Accuracy+7',}},
  505. legs="Carmine Cuisses",
  506. neck="Iqabi Necklace",
  507. ear1="Zennaroi Earring",
  508. feet={ name="Herculean Boots", augments={'Accuracy+24 Attack+24','"Counter"+3','STR+1','Accuracy+7',}}})
  509.  
  510.  
  511. sets.engaged.PDT = {
  512. head="Adhemar Bonnet",
  513. neck="Twilight Torque",
  514. ear1="Cessance Earring",ear2="Suppanomimi",
  515. body="Emet Harness +1",
  516. hands={ name="Herculean Gloves", augments={'Accuracy+24 Attack+24','"Store TP"+2','AGI+9','Accuracy+7',}},
  517. ring1="Dark Ring",ring2="Dark Ring",
  518. back="Rosmerta's Cape",waist="Windbuffet Belt",
  519. legs="Samnuha Tights",
  520. feet={ name="Herculean Boots", augments={'Accuracy+24 Attack+24','"Counter"+3','STR+1','Accuracy+7',}}}
  521.  
  522. sets.engaged.Refresh = set_combine(sets.engaged, {head="Rawhide Mask",body="Hashishin Mintan +1",legs="Lengo Pants"})
  523. sets.engaged.DW = set_combine(sets.engaged, {})
  524. sets.engaged.DW.Acc = set_combine(sets.engaged.Acc, {})
  525. sets.engaged.DW.Refresh = set_combine(sets.engaged.Refresh, {})
  526. sets.engaged.Learning = set_combine(sets.engaged, sets.Learning)
  527. sets.engaged.DW.Learning = set_combine(sets.engaged.DW, sets.Learning)
  528.  
  529. sets.self_healing = {}
  530.  
  531. sets.MagicBurst = {ring1="Locus Ring",ring2="Mujin Band",back="Seshaw Cape",neck="Mizu. Kubikazari"}
  532. end
  533.  
  534. -------------------------------------------------------------------------------------------------------------------
  535. -- Job-specific hooks for standard casting events.
  536. -------------------------------------------------------------------------------------------------------------------
  537.  
  538. -- Set eventArgs.handled to true if we don't want any automatic gear equipping to be done.
  539. -- Set eventArgs.useMidcastGear to true if we want midcast gear equipped on precast.
  540. function job_pretarget(spell,action)
  541. if spell.type == "WeaponSkill" and player.status == 'Engaged' and spell.target.distance > target_distance then -- Cancel WS If You Are Out Of Range --
  542. cancel_spell()
  543. add_to_chat(123, spell.name..' Canceled: [Out of Range]')
  544. return
  545. end
  546. end
  547.  
  548.  
  549. -- Run after the general precast() is done.
  550.  
  551.  
  552. -- Run after the default midcast() is done.
  553. -- eventArgs is the same one used in job_midcast, in case information needs to be persisted.
  554. function job_post_midcast(spell, action, spellMap, eventArgs)
  555. -- Add enhancement gear for Chain Affinity, etc.
  556. if spell.skill == 'Blue Magic' then
  557. for buff,active in pairs(state.Buff) do
  558. if active and sets.buff[buff] then
  559. print(buff) equip(sets.buff[buff])
  560. end
  561. end
  562. if spellMap == 'Healing' and spell.target.type == 'SELF' and sets.self_healing then
  563. equip(sets.self_healing)
  564. end
  565. end
  566.  
  567. -- If in learning mode, keep on gear intended to help with that, regardless of action.
  568. if state.OffenseMode.value == 'Learning' then
  569. equip(sets.Learning)
  570. end
  571.  
  572. if buffactive['Burst Affinity'] or buffactive['Azure Lore'] then
  573. if state.MagicBurst.value then
  574. equip(sets.MagicBurst)
  575. end
  576. end
  577.  
  578.  
  579. end
  580.  
  581.  
  582.  
  583.  
  584. -- Set eventArgs.handled to true if we don't want any automatic gear equipping to be done.
  585. function job_aftercast(spell, action, spellMap, eventArgs)
  586.  
  587. if not (buffactive['Burst Affinity'] or buffactive['Azure Lore']) then
  588. state.MagicBurst:reset()
  589. end
  590.  
  591. end
  592.  
  593.  
  594.  
  595. -------------------------------------------------------------------------------------------------------------------
  596. -- Job-specific hooks for non-casting events.
  597. -------------------------------------------------------------------------------------------------------------------
  598.  
  599. -- Called when a player gains or loses a buff.
  600. -- buff == buff gained or lost
  601. -- gain == true if the buff was gained, false if it was lost.
  602. function job_buff_change(buff, gain)
  603. if state.Buff[buff] ~= nil then
  604. state.Buff[buff] = gain
  605. end
  606. end
  607.  
  608. -------------------------------------------------------------------------------------------------------------------
  609. -- User code that supplements standard library decisions.
  610. -------------------------------------------------------------------------------------------------------------------
  611.  
  612. -- Custom spell mapping.
  613. -- Return custom spellMap value that can override the default spell mapping.
  614. -- Don't return anything to allow default spell mapping to be used.
  615. function job_get_spell_map(spell, default_spell_map)
  616. if spell.skill == 'Blue Magic' then
  617. for category,spell_list in pairs(blue_magic_maps) do
  618. if spell_list:contains(spell.english) then
  619. return category
  620. end
  621. end
  622. end
  623. end
  624.  
  625. -- Modify the default idle set after it was constructed.
  626. function customize_idle_set(idleSet)
  627. if player.mpp < 51 then
  628. set_combine(idleSet, sets.latent_refresh)
  629. end
  630.  
  631. if world.area:contains('Adoulin') then
  632. -- idleSet = set_combine(sets.idle.Town, {body="Councilor's Garb"})
  633. idleSet = set_combine(sets.idle.Town, {body="Hashishin Mintan +1"})
  634. end
  635.  
  636. return idleSet
  637. end
  638.  
  639. -- Called by the 'update' self-command, for common needs.
  640. -- Set eventArgs.handled to true if we don't want automatic equipping of gear.
  641. function job_update(cmdParams, eventArgs)
  642. update_combat_form()
  643. end
  644.  
  645.  
  646. -------------------------------------------------------------------------------------------------------------------
  647. -- Utility functions specific to this job.
  648. -------------------------------------------------------------------------------------------------------------------
  649.  
  650. function update_combat_form()
  651. -- Check for H2H or single-wielding
  652. if player.equipment.sub == "Genbu's Shield" or player.equipment.sub == 'empty' then
  653. state.CombatForm:reset()
  654. else
  655. state.CombatForm:set('DW')
  656. end
  657. end
  658.  
  659.  
  660. -- Select default macro book on initial load or subjob change.
  661. function select_default_macro_book()
  662. -- Default macro set/book
  663. if player.sub_job == 'WAR' or 'NIN' then
  664. set_macro_page(1, 9)
  665. else
  666. set_macro_page(1, 9)
  667. end
  668. end
  669.  
  670. --Added anywhere, pref at the end of the file though
  671. windower.register_event('tp change', function(tp)
  672. if state.autoWS.value then
  673. if not buffactive['amnesia'] then
  674. if player.tp >= 1000 and player.status == 'Engaged' then
  675. windower.send_command('input /ws "Chant du Cygne" <t>')
  676. end
  677. end
  678. end
  679. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement