Fendarin86shiva

rdm.lua

Oct 27th, 2017
1,045
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.Saboteur = buffactive.saboteur or false
  17. end
  18.  
  19. -------------------------------------------------------------------------------------------------------------------
  20. -- User setup functions for this job. Recommend that these be overridden in a sidecar file.
  21. -------------------------------------------------------------------------------------------------------------------
  22.  
  23. -- Setup vars that are user-dependent. Can override this function in a sidecar file.
  24. function user_setup()
  25. state.OffenseMode:options('TP', 'ACC', 'DTACC')
  26. state.HybridMode:options('Normal')
  27. state.CastingMode:options('Normal', 'enmity')
  28. state.IdleMode:options('Normal')
  29.  
  30. state.WeaponLock = M(false, 'Weapon Lock')
  31. state.MagicBurst = M(false, 'Magic Burst')
  32.  
  33. send_command('bind !a gs c cycle CastingMode')
  34. send_command('bind !q gs c cycle MagicBurst')
  35. send_command('bind !z gs c cycle OffenseMode')
  36. send_command('bind !w gs c toggle WeaponLock')
  37.  
  38. select_default_macro_book()
  39. end
  40.  
  41.  
  42. -- Define sets and vars used by this job file.
  43. function init_gear_sets()
  44. --------------------------------------
  45. -- Start defining the sets
  46. --------------------------------------
  47.  
  48. -- Precast Sets
  49.  
  50. -- Precast sets to enhance JAs
  51. sets.precast.JA['Chainspell'] = {body="Vitivation Tabard"}
  52.  
  53.  
  54. -- Waltz set (chr and vit)
  55. sets.precast.Waltz = {}
  56.  
  57. -- Don't need any special gear for Healing Waltz.
  58. sets.precast.Waltz['Healing Waltz'] = {}
  59.  
  60. -- Fast cast sets for spells
  61.  
  62. -- 80% Fast Cast (including trait) for all spells, plus 5% quick cast
  63. -- No other FC sets necessary.
  64. sets.precast.FC = {
  65. main={ name="Grioavolr", augments={'Enfb.mag. skill +16','CHR+7','Mag. Acc.+21','Magic Damage +9',}},
  66. head="Atro. Chapeau +1",
  67. body={ name="Vitivation Tabard", augments={'Enhances "Chainspell" effect',}},
  68. hands="Gende. Gages +1",
  69. legs={ name="Artsieq Hose", augments={'MP+30','Mag. Acc.+20','MND+7',}},
  70. right_ear="Loquac. Earring",
  71. left_ring="Kishar Ring",
  72. right_ring="Prolix Ring",
  73. back={ name="Sucellos's Cape", augments={'MND+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10',}},}
  74.  
  75. sets.precast.FC['Enhancing Magic'] = set_combine(sets.precast.FC, {waist="Siegel Sash",})
  76.  
  77. sets.precast.FC.Stoneskin = set_combine(sets.precast.FC, {main="Pukulatmuj +1",hands="Carapacho Cuffs",waist="Siegel Sash",head="Umuthi Hat",})
  78.  
  79. sets.precast.FC.Impact = set_combine(sets.precast.FC, {head=empty,body="Twilight Cloak"})
  80.  
  81. -- Weaponskill sets
  82. -- Default set for any weaponskill that isn't any more specifically defined
  83. sets.precast.WS = {}
  84.  
  85.  
  86. -- Specific weaponskill sets. Uses the base set if an appropriate WSMod version isn't found.
  87. sets.precast.WS['Requiescat'] = {}
  88.  
  89. sets.precast.WS['Sanguine Blade'] = {}
  90.  
  91.  
  92. -- Midcast Sets
  93. sets.midcast.enmity = {
  94. ammo="Paeapua",
  95. head={ name="Despair Helm", augments={'STR+15','Enmity+7','"Store TP"+3',}},
  96. body="Emet Harness +1",
  97. hands={ name="Merlinic Dastanas", augments={'"Mag.Atk.Bns."+8','Magic burst dmg.+8%','Mag. Acc.+2',}},
  98. legs="Aya. Cosciales +1",
  99. feet="Rager Ledel. +1",
  100. neck="Warder's Charm +1",
  101. left_ring="Begrudging Ring",
  102. right_ring="Petrov Ring",
  103. }
  104.  
  105. sets.midcast.Cure = {
  106. main="Chatoyant Staff",
  107. sub="Arbuda Grip",
  108. ammo="Ghastly Tathlum",
  109. head="Gende. Caubeen +1",
  110. body={ name="Vitivation Tabard", augments={'Enhances "Chainspell" effect',}},
  111. hands="Bokwus Gloves",
  112. legs="Atrophy Tights +1",
  113. feet="Gende. Galosh. +1",
  114. neck="Nodens Gorget",
  115. waist="Gishdubar Sash",
  116. left_ear="Roundel Earring",
  117. right_ear="Psystorm Earring",
  118. left_ring="Sirona's Ring",
  119. right_ring="Ephedra Ring",
  120. back="Vates Cape +1",}
  121.  
  122. sets.midcast.Curaga = sets.midcast.Cure
  123.  
  124. sets.midcast.CureSelf = set_combine(sets.midcast.Cure, {
  125. waist="Gishdubar Sash",}) -- (10)
  126.  
  127. sets.midcast.Cursna = set_combine(sets.midcast.StatusRemoval, {waist="Gishdubar Sash"})
  128.  
  129.  
  130. sets.midcast['Enhancing Magic'] = {
  131. main="Pukulatmuj +1",
  132. sub="Arendsi Fleuret",
  133. head="Umuthi Hat",
  134. body={ name="Viti. Tabard +1", augments={'Enhances "Chainspell" effect',}},
  135. hands={ name="Viti. Gloves +1", augments={'Enhances "Phalanx II" effect',}},
  136. legs="Atrophy Tights +1",
  137. feet="Leth. Houseaux +1",
  138. neck="Enhancing Torque",
  139. waist="Olympus Sash",
  140. right_ear="Andoaa Earring",
  141. left_ring={name="Stikini Ring", bag="wardrobe2"},
  142. right_ring={name="Stikini Ring", bag="wardrobe3"},
  143. back={ name="Ghostfyre Cape", augments={'Enfb.mag. skill +10','Enha.mag. skill +9','Enh. Mag. eff. dur. +11',}},
  144. }
  145.  
  146. --sets.midcast.Refresh =
  147.  
  148. sets.midcast['Stoneskin'] = {
  149. main="Pukulatmuj +1",
  150. sub="Ammurapi Shield",
  151. legs="Haven Hose",
  152. feet="Leth. Houseaux +1",
  153. neck="Nodens Gorget",
  154. waist="Siegel Sash",
  155. left_ear="Earthcry Earring",
  156. left_ring={name="Stikini Ring", bag="wardrobe2"},
  157. right_ring={name="Stikini Ring", bag="wardrobe3"},
  158. back={ name="Sucellos's Cape", augments={'MND+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10',}},}
  159.  
  160. ------ MND Enfeebling skill ----
  161.  
  162. sets.midcast['Frazzle II'] = {
  163. main={ name="Grioavolr", augments={'Enfb.mag. skill +16','CHR+7','Mag. Acc.+21','Magic Damage +9',}},
  164. sub="Enki Strap",
  165. ammo="Regal Gem",
  166. head={ name="Chironic Hat", augments={'Mag. Acc.+21 "Mag.Atk.Bns."+21','MND+13','Mag. Acc.+10',}},
  167. body="Lethargy Sayon +1",
  168. hands={ name="Kaykaus Cuffs", augments={'MP+60','MND+10','Mag. Acc.+15',}},
  169. legs={ name="Chironic Hose", augments={'Mag. Acc.+27','MND+15',}},
  170. feet={ name="Vitivation Boots +1", augments={'Enhances "Paralyze II" effect',}},
  171. neck="Henic Torque",
  172. waist="Luminary Sash",
  173. left_ear="Digni. Earring",
  174. right_ear="Regal Earring",
  175. left_ring={name="Stikini Ring", bag="wardrobe2"},
  176. right_ring={name="Stikini Ring", bag="wardrobe3"},
  177. back={ name="Sucellos's Cape", augments={'MND+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10',}},
  178. }
  179.  
  180. sets.midcast['Slow II'] = {
  181. main={ name="Grioavolr", augments={'Enfb.mag. skill +16','CHR+7','Mag. Acc.+21','Magic Damage +9',}},
  182. sub="Enki Strap",
  183. ammo="Regal Gem",
  184. head={ name="Chironic Hat", augments={'Mag. Acc.+21 "Mag.Atk.Bns."+21','MND+13','Mag. Acc.+10',}},
  185. body="Lethargy Sayon +1",
  186. hands={ name="Kaykaus Cuffs", augments={'MP+60','MND+10','Mag. Acc.+15',}},
  187. legs={ name="Chironic Hose", augments={'Mag. Acc.+27','MND+15',}},
  188. feet={ name="Vitivation Boots +1", augments={'Enhances "Paralyze II" effect',}},
  189. neck="Henic Torque",
  190. waist="Luminary Sash",
  191. left_ear="Digni. Earring",
  192. right_ear="Regal Earring",
  193. left_ring={name="Stikini Ring", bag="wardrobe2"},
  194. right_ring={name="Stikini Ring", bag="wardrobe3"},
  195. back={ name="Sucellos's Cape", augments={'MND+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10',}},
  196. }
  197.  
  198. sets.midcast['Paralyze II'] = {
  199. main={ name="Grioavolr", augments={'Enfb.mag. skill +16','CHR+7','Mag. Acc.+21','Magic Damage +9',}},
  200. sub="Enki Strap",
  201. ammo="Regal Gem",
  202. head={ name="Chironic Hat", augments={'Mag. Acc.+21 "Mag.Atk.Bns."+21','MND+13','Mag. Acc.+10',}},
  203. body="Lethargy Sayon +1",
  204. hands={ name="Kaykaus Cuffs", augments={'MP+60','MND+10','Mag. Acc.+15',}},
  205. legs={ name="Chironic Hose", augments={'Mag. Acc.+27','MND+15',}},
  206. feet={ name="Vitivation Boots +1", augments={'Enhances "Paralyze II" effect',}},
  207. neck="Henic Torque",
  208. waist="Luminary Sash",
  209. left_ear="Digni. Earring",
  210. right_ear="Regal Earring",
  211. left_ring={name="Stikini Ring", bag="wardrobe2"},
  212. right_ring={name="Stikini Ring", bag="wardrobe3"},
  213. back={ name="Sucellos's Cape", augments={'MND+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10',}},
  214. }
  215.  
  216. --- Enfeebling potancy ----
  217.  
  218. sets.midcast['Distract III'] = {
  219. main={ name="Grioavolr", augments={'Enfb.mag. skill +16','CHR+7','Mag. Acc.+21','Magic Damage +9',}},
  220. sub="Mephitis Grip",
  221. ammo="Regal Gem",
  222. head={ name="Viti. Chapeau +1", augments={'Enhances "Dia III" effect','Enhances "Slow II" effect',}},
  223. body="Lethargy Sayon +1",
  224. hands="Leth. Gantherots +1",
  225. legs={ name="Psycloth Lappas", augments={'Mag. Acc.+10','Spell interruption rate down +15%','MND+7',}},
  226. feet={ name="Vitivation Boots +1", augments={'Enhances "Paralyze II" effect',}},
  227. neck="Henic Torque",
  228. waist="Rumination Sash",
  229. left_ear="Enfeebling Earring",
  230. right_ear="Regal Earring",
  231. left_ring={name="Stikini Ring", bag="wardrobe2"},
  232. right_ring={name="Stikini Ring", bag="wardrobe3"},
  233. back={ name="Sucellos's Cape", augments={'MND+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10',}},
  234. }
  235.  
  236.  
  237. sets.midcast['Frazzle III'] = {
  238. main={ name="Grioavolr", augments={'Enfb.mag. skill +16','CHR+7','Mag. Acc.+21','Magic Damage +9',}},
  239. sub="Mephitis Grip",
  240. ammo="Regal Gem",
  241. head={ name="Viti. Chapeau +1", augments={'Enhances "Dia III" effect','Enhances "Slow II" effect',}},
  242. body="Lethargy Sayon +1",
  243. hands="Leth. Gantherots +1",
  244. legs={ name="Psycloth Lappas", augments={'Mag. Acc.+10','Spell interruption rate down +15%','MND+7',}},
  245. feet={ name="Vitivation Boots +1", augments={'Enhances "Paralyze II" effect',}},
  246. neck="Henic Torque",
  247. waist="Rumination Sash",
  248. left_ear="Enfeebling Earring",
  249. right_ear="Regal Earring",
  250. left_ring={name="Stikini Ring", bag="wardrobe2"},
  251. right_ring={name="Stikini Ring", bag="wardrobe3"},
  252. back={ name="Sucellos's Cape", augments={'MND+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10',}},
  253. }
  254.  
  255.  
  256. sets.midcast['Poison II'] = {
  257. main={ name="Grioavolr", augments={'Enfb.mag. skill +16','CHR+7','Mag. Acc.+21','Magic Damage +9',}},
  258. sub="Mephitis Grip",
  259. ammo="Regal Gem",
  260. head={ name="Viti. Chapeau +1", augments={'Enhances "Dia III" effect','Enhances "Slow II" effect',}},
  261. body="Lethargy Sayon +1",
  262. hands="Leth. Gantherots +1",
  263. legs={ name="Psycloth Lappas", augments={'Mag. Acc.+10','Spell interruption rate down +15%','MND+7',}},
  264. feet={ name="Vitivation Boots +1", augments={'Enhances "Paralyze II" effect',}},
  265. neck="Henic Torque",
  266. waist="Rumination Sash",
  267. left_ear="Enfeebling Earring",
  268. right_ear="Regal Earring",
  269. left_ring={name="Stikini Ring", bag="wardrobe2"},
  270. right_ring={name="Stikini Ring", bag="wardrobe3"},
  271. back={ name="Sucellos's Cape", augments={'MND+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10',}},
  272. }
  273.  
  274. sets.midcast['Addle II'] = {
  275. main={ name="Grioavolr", augments={'Enfb.mag. skill +16','CHR+7','Mag. Acc.+21','Magic Damage +9',}},
  276. sub="Enki Strap",
  277. ammo="Regal Gem",
  278. head={ name="Chironic Hat", augments={'Mag. Acc.+21 "Mag.Atk.Bns."+21','MND+13','Mag. Acc.+10',}},
  279. body="Atrophy Tabard +2",
  280. hands={ name="Kaykaus Cuffs", augments={'MP+60','MND+10','Mag. Acc.+15',}},
  281. legs={ name="Psycloth Lappas", augments={'Mag. Acc.+10','Spell interruption rate down +15%','MND+7',}},
  282. feet={ name="Vitivation Boots +1", augments={'Enhances "Paralyze II" effect',}},
  283. neck="Henic Torque",
  284. waist="Luminary Sash",
  285. left_ear="Digni. Earring",
  286. right_ear="Regal Earring",
  287. left_ring={name="Stikini Ring", bag="wardrobe2"},
  288. right_ring={name="Stikini Ring", bag="wardrobe3"},
  289. back={ name="Sucellos's Cape", augments={'MND+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10',}},
  290. }
  291.  
  292. ---- MACC Enfeebling magic ----
  293.  
  294. sets.midcast['Inundation'] = {
  295. main={ name="Grioavolr", augments={'Enfb.mag. skill +16','CHR+7','Mag. Acc.+21','Magic Damage +9',}},
  296. sub="Enki Strap",
  297. ammo="Regal Gem",
  298. head={ name="Chironic Hat", augments={'Mag. Acc.+21 "Mag.Atk.Bns."+21','MND+13','Mag. Acc.+10',}},
  299. body="Atrophy Tabard +2",
  300. hands={ name="Kaykaus Cuffs", augments={'MP+60','MND+10','Mag. Acc.+15',}},
  301. legs={ name="Chironic Hose", augments={'Mag. Acc.+25 "Mag.Atk.Bns."+25','CHR+2','Mag. Acc.+14','"Mag.Atk.Bns."+7',}},
  302. feet={ name="Vitivation Boots +1", augments={'Enhances "Paralyze II" effect',}},
  303. neck="Erra Pendant",
  304. waist="Luminary Sash",
  305. left_ear="Digni. Earring",
  306. right_ear="Regal Earring",
  307. left_ring="Kishar Ring",
  308. right_ring={name="Stikini Ring", bag="wardrobe3"},
  309. back={ name="Sucellos's Cape", augments={'MND+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10',}},
  310. }
  311. sets.midcast['Sleepga'] = {
  312. main={ name="Grioavolr", augments={'Enfb.mag. skill +16','CHR+7','Mag. Acc.+21','Magic Damage +9',}},
  313. sub="Enki Strap",
  314. ammo="Regal Gem",
  315. head={ name="Chironic Hat", augments={'Mag. Acc.+21 "Mag.Atk.Bns."+21','MND+13','Mag. Acc.+10',}},
  316. body="Atrophy Tabard +2",
  317. hands={ name="Kaykaus Cuffs", augments={'MP+60','MND+10','Mag. Acc.+15',}},
  318. legs={ name="Chironic Hose", augments={'Mag. Acc.+25 "Mag.Atk.Bns."+25','CHR+2','Mag. Acc.+14','"Mag.Atk.Bns."+7',}},
  319. feet={ name="Vitivation Boots +1", augments={'Enhances "Paralyze II" effect',}},
  320. neck="Erra Pendant",
  321. waist="Luminary Sash",
  322. left_ear="Digni. Earring",
  323. right_ear="Regal Earring",
  324. left_ring="Kishar Ring",
  325. right_ring={name="Stikini Ring", bag="wardrobe3"},
  326. back={ name="Sucellos's Cape", augments={'MND+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10',}},
  327. }
  328.  
  329. sets.midcast['Sleep'] = {
  330. main={ name="Grioavolr", augments={'Enfb.mag. skill +16','CHR+7','Mag. Acc.+21','Magic Damage +9',}},
  331. sub="Enki Strap",
  332. ammo="Regal Gem",
  333. head={ name="Chironic Hat", augments={'Mag. Acc.+21 "Mag.Atk.Bns."+21','MND+13','Mag. Acc.+10',}},
  334. body="Atrophy Tabard +2",
  335. hands={ name="Kaykaus Cuffs", augments={'MP+60','MND+10','Mag. Acc.+15',}},
  336. legs={ name="Chironic Hose", augments={'Mag. Acc.+25 "Mag.Atk.Bns."+25','CHR+2','Mag. Acc.+14','"Mag.Atk.Bns."+7',}},
  337. feet={ name="Vitivation Boots +1", augments={'Enhances "Paralyze II" effect',}},
  338. neck="Erra Pendant",
  339. waist="Luminary Sash",
  340. left_ear="Digni. Earring",
  341. right_ear="Regal Earring",
  342. left_ring="Kishar Ring",
  343. right_ring={name="Stikini Ring", bag="wardrobe3"},
  344. back={ name="Sucellos's Cape", augments={'MND+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10',}},
  345. }
  346.  
  347. sets.midcast['Sleep II'] = {
  348. main={ name="Grioavolr", augments={'Enfb.mag. skill +16','CHR+7','Mag. Acc.+21','Magic Damage +9',}},
  349. sub="Enki Strap",
  350. ammo="Regal Gem",
  351. head={ name="Chironic Hat", augments={'Mag. Acc.+21 "Mag.Atk.Bns."+21','MND+13','Mag. Acc.+10',}},
  352. body="Atrophy Tabard +2",
  353. hands={ name="Kaykaus Cuffs", augments={'MP+60','MND+10','Mag. Acc.+15',}},
  354. legs={ name="Chironic Hose", augments={'Mag. Acc.+25 "Mag.Atk.Bns."+25','CHR+2','Mag. Acc.+14','"Mag.Atk.Bns."+7',}},
  355. feet={ name="Vitivation Boots +1", augments={'Enhances "Paralyze II" effect',}},
  356. neck="Erra Pendant",
  357. waist="Luminary Sash",
  358. left_ear="Digni. Earring",
  359. right_ear="Regal Earring",
  360. left_ring="Kishar Ring",
  361. right_ring={name="Stikini Ring", bag="wardrobe3"},
  362. back={ name="Sucellos's Cape", augments={'MND+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10',}},
  363. }
  364.  
  365. sets.midcast['Silence'] = {
  366. main={ name="Grioavolr", augments={'Enfb.mag. skill +16','CHR+7','Mag. Acc.+21','Magic Damage +9',}},
  367. sub="Enki Strap",
  368. ammo="Regal Gem",
  369. head={ name="Chironic Hat", augments={'Mag. Acc.+21 "Mag.Atk.Bns."+21','MND+13','Mag. Acc.+10',}},
  370. body="Atrophy Tabard +2",
  371. hands={ name="Kaykaus Cuffs", augments={'MP+60','MND+10','Mag. Acc.+15',}},
  372. legs={ name="Chironic Hose", augments={'Mag. Acc.+25 "Mag.Atk.Bns."+25','CHR+2','Mag. Acc.+14','"Mag.Atk.Bns."+7',}},
  373. feet={ name="Vitivation Boots +1", augments={'Enhances "Paralyze II" effect',}},
  374. neck="Erra Pendant",
  375. waist="Luminary Sash",
  376. left_ear="Digni. Earring",
  377. right_ear="Regal Earring",
  378. left_ring={name="Stikini Ring", bag="wardrobe2"},
  379. right_ring={name="Stikini Ring", bag="wardrobe3"},
  380. back={ name="Sucellos's Cape", augments={'MND+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10',}},
  381. }
  382.  
  383. sets.midcast['Gravity II'] = {
  384. main={ name="Grioavolr", augments={'Enfb.mag. skill +16','CHR+7','Mag. Acc.+21','Magic Damage +9',}},
  385. sub="Enki Strap",
  386. ammo="Regal Gem",
  387. head={ name="Chironic Hat", augments={'Mag. Acc.+21 "Mag.Atk.Bns."+21','MND+13','Mag. Acc.+10',}},
  388. body="Atrophy Tabard +2",
  389. hands={ name="Kaykaus Cuffs", augments={'MP+60','MND+10','Mag. Acc.+15',}},
  390. legs={ name="Chironic Hose", augments={'Mag. Acc.+25 "Mag.Atk.Bns."+25','CHR+2','Mag. Acc.+14','"Mag.Atk.Bns."+7',}},
  391. feet={ name="Vitivation Boots +1", augments={'Enhances "Paralyze II" effect',}},
  392. neck="Erra Pendant",
  393. waist="Luminary Sash",
  394. left_ear="Digni. Earring",
  395. right_ear="Regal Earring",
  396. left_ring="Kishar Ring",
  397. right_ring={name="Stikini Ring", bag="wardrobe3"},
  398. back={ name="Sucellos's Cape", augments={'MND+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10',}},
  399. }
  400.  
  401. sets.midcast['Dispel'] = {
  402. main={ name="Grioavolr", augments={'Enfb.mag. skill +16','CHR+7','Mag. Acc.+21','Magic Damage +9',}},
  403. sub="Enki Strap",
  404. ammo="Regal Gem",
  405. head={ name="Chironic Hat", augments={'Mag. Acc.+21 "Mag.Atk.Bns."+21','MND+13','Mag. Acc.+10',}},
  406. body="Atrophy Tabard +2",
  407. hands={ name="Kaykaus Cuffs", augments={'MP+60','MND+10','Mag. Acc.+15',}},
  408. legs={ name="Chironic Hose", augments={'Mag. Acc.+25 "Mag.Atk.Bns."+25','CHR+2','Mag. Acc.+14','"Mag.Atk.Bns."+7',}},
  409. feet={ name="Vitivation Boots +1", augments={'Enhances "Paralyze II" effect',}},
  410. neck="Erra Pendant",
  411. waist="Luminary Sash",
  412. left_ear="Digni. Earring",
  413. right_ear="Regal Earring",
  414. left_ring={name="Stikini Ring", bag="wardrobe2"},
  415. right_ring={name="Stikini Ring", bag="wardrobe3"},
  416. back={ name="Sucellos's Cape", augments={'MND+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10',}},
  417. }
  418. --- Enhancing ---
  419.  
  420. sets.midcast.EnhancingDuration = {
  421. main="Pukulatmuj +1",
  422. sub="Ammurapi Shield",
  423. head={ name="Telchine Cap", augments={'Enh. Mag. eff. dur. +10',}},
  424. body={ name="Telchine Chas.", augments={'Enh. Mag. eff. dur. +10',}},
  425. hands="Atrophy Gloves +3",
  426. legs={ name="Telchine Braconi", augments={'Enh. Mag. eff. dur. +9',}},
  427. feet="Leth. Houseaux +1",
  428. neck="Enhancing Torque",
  429. waist="Gishdubar Sash",
  430. back={ name="Sucellos's Cape", augments={'MND+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10',}},
  431. }
  432.  
  433. sets.midcast['Haste II'] = set_combine(sets.midcast['EnhancingDuration'], {})
  434. sets.midcast['[Regen II'] = set_combine(sets.midcast["EnhancingDuration"], {main="Bolelabunga"})
  435. sets.midcast['Flurry II'] = set_combine(sets.midcast['EnhancingDuration'], {})
  436. sets.midcast.Aquaveil = set_combine(sets.midcast['EnhancingDuration'], {})
  437.  
  438. sets.midcast['Refresh II'] = {
  439. head={ name="Amalric Coif", augments={'MP+60','Mag. Acc.+15','"Mag.Atk.Bns."+15',}},
  440. body="Atrophy Tabard +2",
  441. hands="Atrophy Gloves +3",
  442. legs="Leth. Fuseau",
  443. feet="Leth. Houseaux +1",
  444. waist="Gishdubar Sash",
  445. back={ name="Sucellos's Cape", augments={'INT+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Mag.Atk.Bns."+10',}},
  446. }
  447.  
  448. sets.midcast['Refresh III'] = {
  449. head={ name="Amalric Coif", augments={'MP+60','Mag. Acc.+15','"Mag.Atk.Bns."+15',}},
  450. body="Atrophy Tabard +2",
  451. hands="Atrophy Gloves +3",
  452. legs="Leth. Fuseau",
  453. feet="Leth. Houseaux +1",
  454. waist="Gishdubar Sash",
  455. back={ name="Sucellos's Cape", augments={'INT+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Mag.Atk.Bns."+10',}},
  456. }
  457.  
  458. sets.midcast['Elemental Magic'] = {
  459. main={ name="Grioavolr", augments={'Enfb.mag. skill +16','CHR+7','Mag. Acc.+21','Magic Damage +9',}},
  460. sub="Enki Strap",
  461. ammo="Ghastly Tathlum",
  462. head="Jhakri Coronal +1",
  463. body="Jhakri Robe +2",
  464. hands={ name="Amalric Gages", augments={'INT+10','Mag. Acc.+15','"Mag.Atk.Bns."+15',}},
  465. legs={ name="Merlinic Shalwar", augments={'Mag. Acc.+23 "Mag.Atk.Bns."+23','"Fast Cast"+4','MND+10','Mag. Acc.+15','"Mag.Atk.Bns."+15',}},
  466. feet={ name="Merlinic Crackows", augments={'Mag. Acc.+23 "Mag.Atk.Bns."+23','"Conserve MP"+3','INT+8','Mag. Acc.+4','"Mag.Atk.Bns."+14',}},
  467. neck="Sanctity Necklace",
  468. waist="Yamabuki-no-Obi",
  469. left_ear="Friomisi Earring",
  470. right_ear="Regal Earring",
  471. left_ring="Shiva Ring",
  472. right_ring="Shiva Ring",
  473. back={ name="Sucellos's Cape", augments={'INT+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Mag.Atk.Bns."+10',}},
  474. }
  475.  
  476. sets.magicburst = {
  477. main={ name="Grioavolr", augments={'Enfb.mag. skill +16','CHR+7','Mag. Acc.+21','Magic Damage +9',}},
  478. sub="Enki Strap",
  479. ammo="Ghastly Tathlum",
  480. head={ name="Merlinic Hood", augments={'Mag. Acc.+23 "Mag.Atk.Bns."+23','Magic burst dmg.+8%','MND+9',}},
  481. body={ name="Merlinic Jubbah", augments={'Mag. Acc.+7 "Mag.Atk.Bns."+7','Magic burst dmg.+9%','CHR+3','"Mag.Atk.Bns."+6',}},
  482. hands={ name="Amalric Gages", augments={'INT+10','Mag. Acc.+15','"Mag.Atk.Bns."+15',}},
  483. legs={ name="Merlinic Shalwar", augments={'Mag. Acc.+23 "Mag.Atk.Bns."+23','"Fast Cast"+4','MND+10','Mag. Acc.+15','"Mag.Atk.Bns."+15',}},
  484. feet={ name="Merlinic Crackows", augments={'Mag. Acc.+14','Magic burst dmg.+10%','MND+6','"Mag.Atk.Bns."+14',}},
  485. neck="Mizu. Kubikazari",
  486. waist="Yamabuki-no-Obi",
  487. left_ear="Friomisi Earring",
  488. right_ear="Regal Earring",
  489. left_ring="Locus Ring",
  490. right_ring="Mujin Band",
  491. back={ name="Sucellos's Cape", augments={'INT+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Mag.Atk.Bns."+10',}},
  492. }
  493.  
  494. sets.midcast.Impact = set_combine(sets.midcast['Elemental Magic'], {head=empty,body="Twilight Cloak"})
  495.  
  496. sets.midcast['Dark Magic'] = sets.precast.FC
  497.  
  498. --sets.midcast.Stun = sets.precast.FC
  499.  
  500. sets.midcast.Drain = sets.precast.FC
  501.  
  502. sets.midcast.Aspir = sets.precast.FC
  503.  
  504. sets.enmity = {
  505. ammo="Paeapua",
  506. head={ name="Despair Helm", augments={'STR+15','Enmity+7','"Store TP"+3',}},
  507. body="Emet Harness +1",
  508. hands={ name="Merlinic Dastanas", augments={'"Mag.Atk.Bns."+8','Magic burst dmg.+8%','Mag. Acc.+2',}},
  509. legs="Aya. Cosciales +1",
  510. feet="Rager Ledel. +1",
  511. neck="Warder's Charm +1",
  512. left_ring="Begrudging Ring",
  513. right_ring="Petrov Ring",
  514. }
  515.  
  516. -- sets.midcast['Healing Magic'].enmity = set_combine(sets.enmity, {})
  517. -- sets.midcast['Dark Magic'].enmity = set_combine(sets.enmity, {})
  518. -- sets.midcast['Elemental Magic'].enmity = set_combine(sets.enmity, {})
  519. -- sets.midcast['Enfeebling Magic'].enmity = set_combine(sets.enmity, {})
  520. -- Sets for special buff conditions on spells.
  521.  
  522. --sets.midcast.EnhancingDuration = {
  523. --main="Bolelabunga",
  524. --ammo="Ghastly Tathlum",
  525. --head={ name="Telchine Cap", augments={'Enh. Mag. eff. dur. +10',}},
  526. --body={ name="Telchine Chas.", augments={'Enh. Mag. eff. dur. +10',}},
  527. --hands="Atrophy Gloves",
  528. --legs={ name="Telchine Braconi", augments={'Enh. Mag. eff. dur. +9',}},
  529. --feet="Leth. Houseaux",
  530. --neck="Enhancing Torque",
  531. --waist="Gishdubar Sash",
  532. --left_ear="Lifestorm Earring",
  533. --right_ear="Loquac. Earring",
  534. --left_ring="Stikini Ring",
  535. --right_ring="Stikini Ring",
  536. --back="Sucellos's Cape",}
  537.  
  538. sets.buff.ComposureOther = {
  539. main="Arendsi Fleuret",
  540. sub="Pukulatmuj +1",
  541. head="Lethargy Chappel",
  542. body="Lethargy Sayon +1",
  543. hands="Atrophy Gloves +2",
  544. legs="Leth. Fuseau",
  545. feet="Leth. Houseaux +1",
  546. neck="Enhancing Torque",
  547. waist="Olympus Sash",
  548. left_ear="Andoaa Earring",
  549. left_ring="Stikini Ring",
  550. right_ring="Stikini Ring",
  551. back={ name="Sucellos's Cape", augments={'MND+20','Mag. Acc+20 /Mag. Dmg.+20','Mag. Acc.+10','"Fast Cast"+10',}},
  552. }
  553.  
  554. sets.buff.Saboteur = set_combine(sets.midcast['Enfeebling Magic'], {hands="lethargy gantherots"})
  555.  
  556.  
  557. -- Sets to return to when not performing an action.
  558.  
  559. -- Idle sets
  560. sets.idle.Field = {
  561. head={ name="Viti. Chapeau +1", augments={'Enhances "Dia III" effect','Enhances "Slow II" effect',}},
  562. body="Jhakri Robe +2",
  563. hands="Serpentes Cuffs",
  564. legs="Blood Cuisses",
  565. feet="Leth. Houseaux +1",
  566. neck="Twilight Torque",
  567. waist="Gishdubar Sash",
  568. left_ring="Defending Ring",
  569. right_ring="Sheltered Ring",
  570. back="Solemnity Cape",
  571. }
  572.  
  573. sets.idle.Town = {}
  574.  
  575. -- Defense sets
  576.  
  577. sets.Kiting = {legs="Blood Cuisses"}
  578.  
  579. -- Engaged sets
  580.  
  581. -- Variations for TP weapon and (optional) offense/defense modes. Code will fall back on previous
  582. -- sets if more refined versions aren't defined.
  583. -- If you create a set with both offense and defense modes, the offense mode should be first.
  584. -- EG: sets.engaged.Dagger.Accuracy.Evasion
  585.  
  586. -- Normal melee group
  587. --acc1036 att966
  588. sets.engaged.TP = {
  589. main={ name="Colada", augments={'Weapon skill damage +2%','Accuracy+18','Attack+19','DMG:+15',}},
  590. sub="Ternion Dagger +1",
  591. ammo="Ginsen",
  592. head={ name="Taeon Chapeau", augments={'Accuracy+16 Attack+16','"Triple Atk."+2','DEX+9',}},
  593. body="Ayanmo Corazza +1",
  594. hands={ name="Taeon Gloves", augments={'Accuracy+17 Attack+17','"Triple Atk."+2','DEX+10',}},
  595. legs={ name="Taeon Tights", augments={'Accuracy+20 Attack+20','"Triple Atk."+2','STR+10',}},
  596. feet={ name="Carmine Greaves", augments={'Accuracy+10','DEX+10','MND+15',}},
  597. neck="Anu Torque",
  598. waist="Windbuffet Belt +1",
  599. left_ear="Sherida Earring",
  600. right_ear="Dedition Earring",
  601. left_ring="Hetairoi Ring",
  602. right_ring="Ilabrat Ring",
  603. back={ name="Sucellos's Cape", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Dual Wield"+10',}},
  604. }
  605. --acc1131 att1010
  606. sets.engaged.ACC ={
  607. main={ name="Colada", augments={'Weapon skill damage +2%','Accuracy+18','Attack+19','DMG:+15',}},
  608. sub="Ternion Dagger +1",
  609. ammo="Ginsen",
  610. head="Aya. Zucchetto +1",
  611. body="Jhakri Robe +2",
  612. hands="Atrophy Gloves +3",
  613. legs="Jhakri Slops +2",
  614. feet="Jhakri Pigaches +2",
  615. neck="Anu Torque",
  616. waist="Windbuffet Belt +1",
  617. left_ear="Sherida Earring",
  618. right_ear="Cessance Earring",
  619. left_ring="Hetairoi Ring",
  620. right_ring="Ilabrat Ring",
  621. back={ name="Sucellos's Cape", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Dual Wield"+10',}},
  622. }
  623.  
  624. sets.engaged.DTACC ={
  625. main={ name="Colada", augments={'Weapon skill damage +2%','Accuracy+18','Attack+19','DMG:+15',}},
  626. sub="Ternion Dagger +1",
  627. ammo="Ginsen",
  628. head="Aya. Zucchetto +1",
  629. body="Ayanmo Corazza +1",
  630. hands="Aya. Manopolas +1",
  631. legs="Aya. Cosciales +1",
  632. feet="Aya. Gambieras +1",
  633. neck="Twilight Torque",
  634. waist="Windbuffet Belt +1",
  635. left_ear="Sherida Earring",
  636. right_ear="Cessance Earring",
  637. left_ring="Defending Ring",
  638. right_ring="Patricius Ring",
  639. back={ name="Sucellos's Cape", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Dual Wield"+10',}},
  640. }
  641.  
  642. sets.buff.Doom = {waist="Gishdubar Sash"}
  643.  
  644. sets.precast.WS = {
  645. main={ name="Colada", augments={'Weapon skill damage +2%','Accuracy+18','Attack+19','DMG:+15',}},
  646. sub="Ternion Dagger +1",
  647. ammo="Yetshila",
  648. head={ name="Taeon Chapeau", augments={'Accuracy+16 Attack+16','"Triple Atk."+2','DEX+9',}},
  649. body={ name="Taeon Tabard", augments={'Accuracy+25','"Triple Atk."+2','STR+8',}},
  650. hands={ name="Taeon Gloves", augments={'Accuracy+17 Attack+17','"Triple Atk."+2','DEX+10',}},
  651. legs={ name="Taeon Tights", augments={'Accuracy+20 Attack+20','"Triple Atk."+2','STR+10',}},
  652. feet="Thereoid Greaves",
  653. neck="Fotia Gorget",
  654. waist="Fotia Belt",
  655. left_ear="Sherida Earring",
  656. right_ear="Brutal Earring",
  657. left_ring="Begrudging Ring",
  658. right_ring="Ilabrat Ring",
  659. back={ name="Sucellos's Cape", augments={'DEX+20','Accuracy+20 Attack+20','Accuracy+10','"Dual Wield"+10',}},
  660. }
  661.  
  662. sets.precast.WS['Red Lotus Blade'] = {
  663. main={ name="Colada", augments={'Weapon skill damage +2%','Accuracy+18','Attack+19','DMG:+15',}},
  664. sub="Ternion Dagger +1",
  665. ammo="Yetshila",
  666. head={ name="Despair Helm", augments={'STR+15','Enmity+7','"Store TP"+3',}},
  667. body="Jhakri Robe +2",
  668. hands="Atrophy Gloves +3",
  669. legs="Jhakri Slops +2",
  670. feet="Jhakri Pigaches +2",
  671. neck="Fotia Gorget",
  672. waist="Fotia Belt",
  673. left_ear="Sherida Earring",
  674. right_ear="Ishvara Earring",
  675. left_ring="Rufescent Ring",
  676. right_ring="Karieyh Ring",
  677. back={ name="Sucellos's Cape", augments={'STR+20','Accuracy+20 Attack+20','STR+10','Weapon skill damage +10%',}},
  678. }
  679.  
  680. sets.precast.WS['Volpal Blade'] = {
  681. main={ name="Colada", augments={'Weapon skill damage +2%','Accuracy+18','Attack+19','DMG:+15',}},
  682. sub="Ternion Dagger +1",
  683. ammo="Yetshila",
  684. head={ name="Despair Helm", augments={'STR+15','Enmity+7','"Store TP"+3',}},
  685. body="Jhakri Robe +2",
  686. hands="Atrophy Gloves +3",
  687. legs={ name="Taeon Tights", augments={'Accuracy+20 Attack+20','"Triple Atk."+2','STR+10',}},
  688. feet="Thereoid Greaves",
  689. neck="Fotia Gorget",
  690. waist="Fotia Belt",
  691. left_ear="Sherida Earring",
  692. right_ear="Ishvara Earring",
  693. left_ring="Rufescent Ring",
  694. right_ring="Begrudging Ring",
  695. back={ name="Sucellos's Cape", augments={'STR+20','Accuracy+20 Attack+20','STR+10','Weapon skill damage +10%',}},
  696. }
  697.  
  698. sets.precast.WS['Savage Blade'] = {
  699. main={ name="Colada", augments={'Weapon skill damage +2%','Accuracy+18','Attack+19','DMG:+15',}},
  700. sub="Ternion Dagger +1",
  701. ammo="Ginsen",
  702. head={ name="Despair Helm", augments={'STR+15','Enmity+7','"Store TP"+3',}},
  703. body="Jhakri Robe +2",
  704. hands="Atrophy Gloves +3",
  705. legs="Jhakri Slops +2",
  706. feet={ name="Chironic Slippers", augments={'"Store TP"+2','Accuracy+21','Weapon skill damage +7%',}},
  707. neck="Fotia Gorget",
  708. waist="Fotia Belt",
  709. left_ear="Regal Earring",
  710. right_ear="Ishvara Earring",
  711. left_ring="Rufescent Ring",
  712. right_ring="Karieyh Ring",
  713. back={ name="Sucellos's Cape", augments={'STR+20','Accuracy+20 Attack+20','STR+10','Weapon skill damage +10%',}},
  714. }
  715.  
  716. end
  717.  
  718. -------------------------------------------------------------------------------------------------------------------
  719. -- Job-specific hooks for standard casting events.
  720. -------------------------------------------------------------------------------------------------------------------
  721.  
  722. -- Run after the default midcast() is done.
  723. -- eventArgs is the same one used in job_midcast, in case information needs to be persisted.
  724.  
  725. function job_post_midcast(spell, action, spellMap, eventArgs)
  726. if spell.skill == 'Enfeebling Magic' and state.Buff.Saboteur then
  727. equip(sets.buff.Saboteur)
  728. end
  729. if spell.skill == 'Elemental Magic' and state.MagicBurst.value == true then
  730. equip(sets.magicburst)
  731. end
  732. if spellMap == 'Cure' and spell.target.type == 'SELF' then
  733. equip(sets.midcast.CureSelf)
  734. end
  735. if ( spell.action_type == 'Magic' and state.CastingMode.value == 'enmity' ) then
  736. equip(sets.enmity)
  737. end
  738. end
  739. --if buffactive.composure and spell.target.type == 'PLAYER' then
  740. -- equip(sets.buff.ComposureOther)
  741. --end
  742. -- end
  743.  
  744. -------------------------------------------------------------------------------------------------------------------
  745. -- Job-specific hooks for non-casting events.
  746. -------------------------------------------------------------------------------------------------------------------
  747.  
  748. -- Handle notifications of general user state change.
  749. --function job_state_change(stateField, newValue, oldValue)
  750. -- if stateField == 'Offense Mode' then
  751. -- if newValue == 'None' then
  752. -- enable('main','sub','range')
  753. -- else
  754. -- disable('main','sub','range')
  755. -- end
  756. -- end
  757. --end
  758.  
  759. -- Handle notifications of general user state change.
  760. function job_state_change(stateField, newValue, oldValue)
  761. if state.WeaponLock.value == true then
  762. disable('main','sub','range')
  763. else
  764. enable('main','sub')
  765. end
  766. end
  767.  
  768.  
  769. -------------------------------------------------------------------------------------------------------------------
  770. -- User code that supplements standard library decisions.
  771. -------------------------------------------------------------------------------------------------------------------
  772.  
  773. -- Modify the default idle set after it was constructed.
  774.  
  775. -- Set eventArgs.handled to true if we don't want the automatic display to be run.
  776. function display_current_job_state(eventArgs)
  777. display_current_caster_state()
  778. eventArgs.handled = true
  779. end
  780.  
  781. -------------------------------------------------------------------------------------------------------------------
  782. -- Utility functions specific to this job.
  783. -------------------------------------------------------------------------------------------------------------------
  784.  
  785. -- Select default macro book on initial load or subjob change.
  786. function select_default_macro_book()
  787. -- Default macro set/book
  788. if player.sub_job == 'DNC' then
  789. set_macro_page(2, 4)
  790. elseif player.sub_job == 'NIN' then
  791. set_macro_page(3, 10)
  792. elseif player.sub_job == 'THF' then
  793. set_macro_page(4, 4)
  794. else
  795. set_macro_page(3, 3)
  796. end
  797. end
RAW Paste Data