Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2018
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 44.24 KB | None | 0 0
  1. function get_sets()
  2. AccIndex = 1
  3. AccArray = {"LowACC","MidACC","HighACC"} -- 3 Levels Of Accuracy Sets For TP/WS/Hybrid. Default ACC Set Is LowACC. The First TP Set Of Your Main Weapon Is LowACC. Add More ACC Sets If Needed Then Create Your New ACC Below --
  4. IdleIndex = 1
  5. IdleArray = {"Refresh","Movement"} -- Default Idle Set Is Refresh --
  6. Armor = 'None'
  7. canceled = false
  8. DC = false
  9. Lock_Main = 'OFF' -- Set Default Main Weapon ON or OFF Here --
  10. Obi = 'ON' -- Turn Default Obi ON or OFF Here --
  11. MB = 'OFF' -- Set Default MB ON or OFF Here --
  12. Nuke = 'OFF' -- Set Default Enmity Set ON or OFF Here --
  13. Kiting = 'OFF' -- Set Default Sublimation Kiting ON or OFF Here --
  14. target_distance = 5 -- Set Default Distance Here --
  15. select_default_macro_book() -- Change Default Macro Book At The End --
  16.  
  17. Non_Obi_Spells = S{
  18. 'Burn','Choke','Cursna','Paralyna','Viruna','Stona','Poisona','Blindna','Silena','Drown','Frost','Rasp','Shock','Impact','Anemohelix','Cryohelix',
  19. 'Geohelix','Hydrohelix','Ionohelix','Luminohelix','Noctohelix','Pyrohelix'}
  20.  
  21. Cure_Spells = {"Cure","Cure II","Cure III","Cure IV","Cure V","Cure VI"} -- Cure Degradation --
  22. Curaga_Spells = {"Curaga","Curaga II","Curaga III","Curaga IV","Curaga V"} -- Curaga Degradation --
  23. Na_Spells = S{"Paralyna","Silena","Poisona","Blindna","Viruna","Stona","Erase"} -- For Yagrush --
  24. sc_map = {SC1 = "LightArts", SC2 = "Celerity", SC3 = "Accession"} -- 3 Additional Binds. Can Change Whatever JA/WS/Spells You Like Here. Remember Not To Use Spaces. --
  25.  
  26. sets.Idle = {}
  27. -- Idle Sets --
  28. sets.Idle.Refresh = {
  29. main="Bolelabunga",
  30. sub="Genmei Shield",
  31. ammo="Homiliary",
  32. head="Befouled Crown",
  33. neck="Bathy Choker +1",
  34. ear1="Etiolation Earring",
  35. ear2="Hearty Earring",
  36. body="Kaykaus Bliaut +1",
  37. hands={ name="Chironic Gloves", augments={'Mag. Acc.+23','Weapon Skill Acc.+4','"Refresh"+1','Accuracy+8 Attack+8','Mag. Acc.+14 "Mag.Atk.Bns."+14',}},
  38. feet={ name="Chironic Slippers", augments={'Pet: Attack+22 Pet: Rng.Atk.+22','Magic dmg. taken -1%','"Refresh"+2',}},
  39. ring1="Sheltered Ring",
  40. ring2="Shneddick Ring +1",
  41. back="Kumbira Cape",
  42. waist="Fucho-No-Obi",
  43. legs="Assiduity Pants +1"}
  44. sets.Idle.Movement = set_combine(sets.Idle.Refresh,{
  45. neck="Bathy Choker +1",
  46. ring1="Sheltered Ring",
  47. waist="Slipor Sash",
  48. ring2="Shneddick Ring +1",
  49. feet="Hippo. Socks +1"})
  50. sets.Resting = {
  51. main="Boonwell Staff",
  52. ammo="Clarus Stone",
  53. head="Orvail Corona",
  54. neck="Eidolon Pendant",
  55. ear1="Etiolation Earring",
  56. ear2="Enchntr. Earring +1",
  57. body="Chelona Blazer +1",
  58. hands="Nares Cuffs",
  59. ring1="Angha Ring",
  60. ring2="Paguroidea Ring",
  61. back="Felicitas Cape",
  62. waist="Austerity Belt",
  63. legs="Nisse Slacks",
  64. feet="Regal Pumps +1"}
  65.  
  66. -- PDT Set --
  67. sets.PDT = {
  68. main="Bolelabunga",
  69. sub="Genmei Shield",
  70. neck="Loricate Torque +1",
  71. body="Ayanmo Corazza +2",
  72. head="Aya. Zucchetto +2",
  73. hands="Aya. Manopolas +2",
  74. legs="Aya. Cosciales +2",
  75. feet="Aya. Gambieras +2",
  76. ring1="Defending Ring",
  77. ring2="Dark Ring",
  78. ammo="Staunch tathlum",
  79. ear1="Etiolation Earring",
  80. ear2="Genmei Earring",
  81. back="Moonbeam Cape",
  82. waist="Slipor Sash"}
  83.  
  84. -- Sublimation Set --
  85. sets.Sublimation = {
  86. main="Bolelabunga",
  87. sub="Genmei Shield",
  88. head="Befouled Crown",
  89. ammo="Homiliary",
  90. neck="Bathy Choker +1",
  91. ear1="Etiolation Earring",
  92. ear2="Infused Earring",
  93. body="Kaykaus Bliaut +1",
  94. hands="Serpentes Cuffs",
  95. ring1="Sheltered Ring",
  96. ring2="Shneddick Ring +1",
  97. back="Kumbira Cape",
  98. waist="Fucho-No-Obi",
  99. legs="Assiduity Pants +1",
  100. feet="Serpentes Sabots"}
  101.  
  102. sets.Precast = {}
  103. -- Fastcast Set --
  104. sets.Precast.FastCast = {
  105. ammo="Impatiens",
  106. head="Nahtirah Hat",
  107. neck="Orunmila's Torque",
  108. ear1="Loquac. Earring",
  109. body="Zendik Robe",
  110. ear2="Enchntr. Earring +1",
  111. hands="Gende. Gages +1",
  112. ring1="Kishar Ring",
  113. ring2="Lebeche Ring",
  114. back="Perimede Cape",
  115. waist="Witful Belt";
  116. legs="Aya. Cosciales +2",
  117. feet="Regal Pumps +1"}
  118.  
  119. -- Elemental Staves --
  120. sets.Precast.Wind = {main='Vayuvata I'}
  121. sets.Precast.Light = {main='Arka I'}
  122.  
  123. sets.Precast.Stoneskin = set_combine(sets.Precast.FastCast,{head="Umuthi Hat",legs="Doyen Pants",waist="Siegel Sash"})
  124. sets.Precast['Enhancing Magic'] = set_combine(sets.Precast.FastCast,{main="Yagrush",waist="Siegel Sash"})
  125. sets.Precast['Healing Magic'] = set_combine(sets.Precast.FastCast,{main="Yagrush",sub="Ammurapi Shield",legs="Ebers Pantaloons +1"})
  126.  
  127. -- Cure Precast Set --
  128. sets.Precast.Cure = {
  129. main="Queller Rod",
  130. ammo="Impatiens",
  131. sub="Sors Shield",
  132. head="Nahtirah Hat",
  133. neck="Orunmila's Torque",
  134. ear1="Mendi. Earring",
  135. body="Zendik Robe",
  136. ear2="Enchntr. Earring +1",
  137. hands="Gende. Gages +1",
  138. ring1="Kishar Ring",
  139. ring2="Lebeche Ring",
  140. back="Pahtli Cape",
  141. waist="Witful Belt";
  142. legs="Doyen Pants",
  143. feet="Regal Pumps +1"}
  144.  
  145. -- Midcast Base Set --
  146. sets.Midcast = {
  147. main="Bolelabunga",
  148. ammo="Impatiens",
  149. head="Nahtirah Hat",
  150. neck="Orunmila's Torque",
  151. ear1="Loquac. Earring",
  152. ear2="Enchntr. Earring +1",
  153. body="Zendik Robe",
  154. hands="Inyan. Dastanas +2",
  155. ring1="Kishar Ring",
  156. ring2="Lebeche Ring",
  157. back="Perimede Cape",
  158. waist="Witful Belt",
  159. legs="Aya. Cosciales +2",
  160. feet="Regal Pumps +1"}
  161.  
  162. -- Haste Set --
  163. sets.Midcast.Haste = set_combine(sets.Precast.FastCast,{
  164. main="Gada",
  165. sub="Ammurapi Shield",
  166. ammo="Impatiens",
  167. head={ name="Telchine Cap", augments={'Accuracy+12','Potency of "Cure" effect received+6%','Enh. Mag. eff. dur. +10',}},
  168. neck="Orunmila's Torque",
  169. ear1="Loquac. Earring",
  170. ear2="Enchntr. Earring +1",
  171. body="Telchine Chas.",
  172. hands="Telchine Gloves",
  173. ring1="Kishar Ring",
  174. ring2="Lebeche Ring",
  175. back="Perimede Cape",
  176. waist="Witful Belt",
  177. legs="Telchine Braconi",
  178. feet="Theo. Duckbills +3"})
  179.  
  180. sets.Midcast.Flurry = set_combine(sets.Precast.FastCast,{
  181. main="Gada",
  182. sub="Ammurapi Shield",
  183. ammo="Impatiens",
  184. head={ name="Telchine Cap", augments={'Accuracy+12','Potency of "Cure" effect received+6%','Enh. Mag. eff. dur. +10',}},
  185. neck="Orunmila's Torque",
  186. ear1="Loquac. Earring",
  187. ear2="Enchntr. Earring +1",
  188. body="Telchine Chas.",
  189. hands="Telchine Gloves",
  190. ring1="Kishar Ring",
  191. ring2="Lebeche Ring",
  192. back="Perimede Cape",
  193. waist="Witful Belt",
  194. legs="Telchine Braconi",
  195. feet="Theo. Duckbills +3"})
  196. -- Cure Set --
  197. sets.Midcast.Cure = {
  198. main="Queller Rod",
  199. sub="Sors Shield",
  200. ammo="Esper Stone +1",
  201. head="Kaykaus Mitra",
  202. neck="Incanter's Torque",
  203. ear1="Mendi. Earring",
  204. ear2="Glorious Earring",
  205. body="Ebers Bliaud +1",
  206. hands="Theophany mitts +3",
  207. ring1="Sirona's Ring",
  208. ring2="Lebeche Ring",
  209. back={ name="Alaunus's Cape", augments={'MND+20','Mag. Acc+20 /Mag. Dmg.+20','Enmity-10',}},
  210. waist="Ninurta's Sash",
  211. legs="Ebers Pantaloons +1",
  212. feet="Kaykaus boots +1"}
  213.  
  214. sets.Midcast.Cure.Weather = set_combine(sets.Midcast.Cure,{
  215. main={name="chatoyant Staff",priority=16},
  216. sub={name="Enki Strap",priority=0},
  217. ring1="Kuchekula Ring",
  218. neck="Nodens Gorget",
  219. back={ name="Alaunus's Cape", augments={'MND+20','Mag. Acc+20 /Mag. Dmg.+20','Enmity-10',}},
  220. waist="Hachirin-no-Obi"})
  221. -- Cure Enmity Set --
  222. sets.Midcast.Cure.Nuke = set_combine(sets.Midcast.Cure,{
  223. main="Nibiru Cudgel",
  224. sub="Ammurapi Shield",
  225. ammo="Pemphredo Tathlum",
  226. head="Helios Band",
  227. neck="Mizu. Kubikazari",
  228. ear1="Static Earring",
  229. ear2="Regal Earring",
  230. body={ name="Chironic Doublet", augments={'Mag. Acc.+25 "Mag.Atk.Bns."+25','"Conserve MP"+4','INT+5','"Mag.Atk.Bns."+9',}},
  231. hands={ name="Chironic Gloves", augments={'Mag. Acc.+21 "Mag.Atk.Bns."+21','"Cure" potency +3%','"Mag.Atk.Bns."+13',}},
  232. ring1="Mujin Band",
  233. ring2="Locus Ring",
  234. back="Seshaw cape +1",
  235. waist="Refoccilation Stone",
  236. legs="Gyve Trousers",
  237. feet="Inspirited Boots"})
  238.  
  239. -- Curaga Set --
  240. sets.Midcast.Curaga = {
  241. main="Queller Rod",
  242. sub="Sors Shield",
  243. ammo="Esper Stone +1",
  244. head="Kaykaus Mitra",
  245. neck="Incanter's Torque",
  246. ear1="Mendi. Earring",
  247. ear2="Glorious Earring",
  248. body="Theo. Briault +3",
  249. hands="Theophany mitts +3",
  250. ring1="Sirona's Ring",
  251. ring2="Lebeche Ring",
  252. back={ name="Alaunus's Cape", augments={'MND+20','Mag. Acc+20 /Mag. Dmg.+20','Enmity-10',}},
  253. waist="Ninurta's Sash",
  254. legs="Ebers Pantaloons +1",
  255. feet="Kaykaus boots +1"}
  256.  
  257.  
  258.  
  259. sets.Midcast.Curaga.Weather = set_combine(sets.Midcast.Cure,{
  260. main={name="chatoyant Staff",priority=16},
  261. sub={name="Enki Strap",priority=0},
  262. ring1="Kuchekula Ring",
  263. neck="Nodens Gorget",
  264. back={ name="Alaunus's Cape", augments={'MND+20','Mag. Acc+20 /Mag. Dmg.+20','Enmity-10',}},
  265. waist="Hachirin-no-Obi"})
  266.  
  267.  
  268.  
  269. -- Curaga Enmity Set --
  270. sets.Midcast.Curaga.Enmity = set_combine(sets.Midcast.Curaga,{})
  271.  
  272. sets.Midcast['Enhancing Magic'] = {
  273. main="Gada",
  274. sub="Ammurapi Shield",
  275. ammo="Impatiens",
  276. head="Befouled Crown",
  277. ear1="Andoaa Earring",
  278. neck="Incanter's Torque",
  279. body="Zendik Robe",
  280. hands="Inyan. Dastanas +2",
  281. ring1="Kishar Ring",
  282. ring2="Stikini Ring",
  283. back="Mending Cape",
  284. waist="Olympus Sash",
  285. legs="Piety Pantaloons +1",
  286. feet="Ebers Duckbills +1"}
  287.  
  288. -- Barspells Set --
  289. sets.Midcast.Bar = {
  290. main="Beneficus",
  291. sub="Genmei Shield",
  292. ammo="Impatiens",
  293. head="Ebers Cap +1",
  294. neck="Incanter's Torque",
  295. ear1="Andoaa Earring",
  296. ear2="Enchntr. Earring +1",
  297. body="Ebers Bliaud +1",
  298. hands="Ebers mitts +1",
  299. ring1="Kishar Ring",
  300. ring2="Stikini Ring",
  301. back={ name="Alaunus's Cape", augments={'MND+20','Mag. Acc+20 /Mag. Dmg.+20','Enmity-10',}},
  302. waist="Olympus Sash",
  303. legs="Piety Pantaloons +1",
  304. feet="Ebers Duckbills +1"}
  305. -- Boost Set --
  306. sets.Midcast.Boost = {
  307. main="Gada",
  308. sub="Ammurapi Shield",
  309. ammo="Impatiens",
  310. head={ name="Telchine Cap", augments={'Accuracy+12','Potency of "Cure" effect received+6%','Enh. Mag. eff. dur. +10',}},
  311. neck="Incanter's Torque",
  312. ear1="Andoaa Earring",
  313. ear2="Enchntr. Earring +1",
  314. body="Telchine Chas.",
  315. hands="Telchine Gloves",
  316. ring1="Kishar Ring",
  317. ring2="Lebeche Ring",
  318. back="Mending Cape",
  319. waist="Olympus Sash",
  320. legs="Telchine Braconi",
  321. feet="Theo. Duckbills +3"}
  322.  
  323. -- Regen Set --
  324. sets.Midcast.Regen = set_combine(sets.Midcast.Haste,{
  325. main="Bolelabunga",
  326. sub="Ammurapi Shield",
  327. head="Inyanga Tiara +2",
  328. body="Telchine Chas.",
  329. hands="Ebers Mitts +1",
  330. legs="Th. Pant. +3"})
  331. sets.Midcast.Repose = set_combine(sets.Midcast.Haste,{
  332. main="Yagrush",
  333. sub="Ammurapi Shield",
  334. head="Befouled Crown",
  335. ear1="Regal Earring",
  336. ear2="Digni. Earring",
  337. neck="Erra Pendant",
  338. body="Theo. Briault +3",
  339. ammo="Pemphredo Tathlum",
  340. back={ name="Alaunus's Cape", augments={'MND+20','Mag. Acc+20 /Mag. Dmg.+20','Enmity-10',}},
  341. waist="Luminary Sash",
  342. ring1="Kishar Ring",
  343. hands="Inyan. Dastanas +2",
  344. ring2="Stikini Ring",
  345. legs={ name="Chironic Hose", augments={'Mag. Acc.+27','MND+13','"Mag.Atk.Bns."+12',}},
  346. feet="Theo. Duckbills +3"})
  347.  
  348.  
  349. sets.Midcast.Dia = set_combine(sets.Midcast.Haste,{
  350. main="Yagrush",
  351. sub="Ammurapi Shield",
  352. head="Wh. Rarab Cap +1",
  353. ear1="Regal Earring",
  354. ear2="Digni. Earring",
  355. neck="Erra Pendant",
  356. body="Theo. Briault +3",
  357. ammo="Pemphredo Tathlum",
  358. back={ name="Alaunus's Cape", augments={'MND+20','Mag. Acc+20 /Mag. Dmg.+20','Enmity-10',}},
  359. waist="Chaac Belt",
  360. ring1="Kishar Ring",
  361. hands="Regal Cuffs",
  362. ring2="Stikini Ring",
  363. legs={ name="Chironic Hose", augments={'Mag. Acc.+27','MND+13','"Mag.Atk.Bns."+12',}},
  364. feet="Theo. Duckbills +3"})
  365.  
  366. -- Stoneskin Set --
  367. sets.Midcast.Stoneskin = set_combine(sets.Midcast.Haste,{
  368. neck="Nodens Gorget",
  369. ear1="Earthcry Earring"})
  370.  
  371. -- Na Set --
  372. sets.Midcast.Na = set_combine(sets.Midcast.Haste,{
  373. main="Yagrush",
  374. ammo="Impatiens",
  375. sub="Ammurapi Shield",
  376. head="Nahtirah Hat",
  377. neck="Orunmila's Torque",
  378. ear1="Loquac. Earring",
  379. body="Zendik Robe",
  380. ear2="Enchntr. Earring +1",
  381. hands="Gende. Gages +1",
  382. ring1="Kishar Ring",
  383. ring2="Lebeche Ring",
  384. back="Perimede Cape",
  385. waist="Witful Belt";
  386. feet="Regal Pumps +1",
  387. legs="Ebers Pantaloons +1"})
  388.  
  389. -- Cursna Set --
  390. sets.Midcast.Cursna = {
  391. main="Yagrush",
  392. sub="Ammurapi Shield",
  393. ammo="Hasty Pinion +1",
  394. head="Kaykaus Mitra",
  395. neck="Debilis Medallion",
  396. ear1="Loquac. Earring",
  397. ear2="Enchntr Earring +1",
  398. body="Ebers Bliaud +1",
  399. hands="Fanatic Gloves",
  400. ring1="Ephedra Ring",
  401. ring2="Ephedra Ring",
  402. back={ name="Alaunus's Cape", augments={'MND+20','Mag. Acc+20 /Mag. Dmg.+20','Enmity-10',}},
  403. waist="Witful Belt",
  404. legs="Th. Pant. +3",
  405. feet="Gende. Galosh. +1"}
  406.  
  407. sets.Midcast.Divine = {
  408. main="Nibiru Cudgel",
  409. sub="Ammurapi Shield",
  410. ammo="Pemphredo Tathlum",
  411. head="Welkin Crown",
  412. neck="Eddy Necklace",
  413. ear1="Friomisi Earring",
  414. ear2="Regal Earring",
  415. body={ name="Chironic Doublet", augments={'Mag. Acc.+25 "Mag.Atk.Bns."+25','"Conserve MP"+4','INT+5','"Mag.Atk.Bns."+9',}},
  416. hands={ name="Chironic Gloves", augments={'Mag. Acc.+21 "Mag.Atk.Bns."+21','"Cure" potency +3%','"Mag.Atk.Bns."+13',}},
  417. ring1="Shiva ring +1",
  418. ring2="Shiva ring +1",
  419. back="Toro Cape",
  420. waist="Refoccilation Stone",
  421. legs="Gyve Trousers",
  422. feet="Inspirited Boots"}
  423.  
  424.  
  425.  
  426. sets.Midcast.Drain = {
  427. main="Rubicundity",
  428. sub="Ammurapi Shield",
  429. head="Befouled Crown",
  430. ammo="Pemphredo Tathlum",
  431. neck="Erra Pendant",
  432. ear1="Regal Earring",
  433. ear2="Digni. Earring",
  434. body="Shango Robe",
  435. hands="Inyan. Dastanas +2",
  436. ring1="Evanescence Ring",
  437. ring2="Stikini Ring",
  438. back={ name="Alaunus's Cape", augments={'MND+20','Mag. Acc+20 /Mag. Dmg.+20','Enmity-10',}},
  439. waist="Fucho-no-Obi",
  440. legs={ name="Chironic Hose", augments={'Mag. Acc.+27','MND+13','"Mag.Atk.Bns."+12',}},
  441. feet="Theo. Duckbills +3"}
  442.  
  443. sets.Midcast['Elemental Magic'] = {
  444. main="Nibiru Cudgel",
  445. sub="Ammurapi Shield",
  446. ammo="Pemphredo Tathlum",
  447. head="Welkin Crown",
  448. neck="Sanctity Necklace",
  449. ear1="Friomisi Earring",
  450. ear2="Regal Earring",
  451. body={ name="Chironic Doublet", augments={'Mag. Acc.+25 "Mag.Atk.Bns."+25','"Conserve MP"+4','INT+5','"Mag.Atk.Bns."+9',}},
  452. hands={ name="Chironic Gloves", augments={'Mag. Acc.+21 "Mag.Atk.Bns."+21','"Cure" potency +3%','"Mag.Atk.Bns."+13',}},
  453. ring1="Shiva Ring +1",
  454. ring2="Shiva Ring +1",
  455. back="Toro Cape",
  456. waist="Refoccilation Stone",
  457. legs="Gyve Trousers",
  458. feet="Inspirited Boots"}
  459.  
  460. sets.MB = {
  461. main="Nibiru Cudgel",
  462. sub="Ammurapi Shield",
  463. ammo="Pemphredo Tathlum",
  464. head="Helios Band",
  465. neck="Mizu. Kubikazari",
  466. ear1="Static Earring",
  467. ear2="Friomisi Earring",
  468. body={ name="Chironic Doublet", augments={'Mag. Acc.+25 "Mag.Atk.Bns."+25','"Conserve MP"+4','INT+5','"Mag.Atk.Bns."+9',}},
  469. hands={ name="Chironic Gloves", augments={'Mag. Acc.+21 "Mag.Atk.Bns."+21','"Cure" potency +3%','"Mag.Atk.Bns."+13',}},
  470. ring1="Mujin Band",
  471. ring2="Locus Ring",
  472. back="Seshaw cape +1",
  473. waist="Refoccilation Stone",
  474. legs="Gyve Trousers",
  475. feet="Inspirited Boots"}
  476.  
  477. sets.Midcast['Enfeebling Magic'] = set_combine(sets.Midcast['Divine Magic'],{
  478. main="Yagrush",
  479. sub="Ammurapi Shield",
  480. ear1="Regal Earring",
  481. ear2="Digni. Earring",
  482. neck="Erra Pendant",
  483. head="Befouled Crown",
  484. body="Theo. Briault +3",
  485. ammo="Pemphredo Tathlum",
  486. back={ name="Alaunus's Cape", augments={'MND+20','Mag. Acc+20 /Mag. Dmg.+20','Enmity-10',}},
  487. waist="Luminary Sash",
  488. ring1="Kishar Ring",
  489. hands="Regal Cuffs",
  490. ring2="Stikini Ring",
  491. legs={ name="Chironic Hose", augments={'Mag. Acc.+27','MND+13','"Mag.Atk.Bns."+12',}},
  492. feet="Theo. Duckbills +3",})
  493.  
  494. sets.Obi = {}
  495. sets.Obi.Thunder = {waist='Hachirin-no-Obi'}
  496. sets.Obi.Water = {waist='Hachirin-no-Obi'}
  497. sets.Obi.Fire = {waist='Hachirin-no-Obi'}
  498. sets.Obi.Ice = {waist='Hachirin-no-Obi'}
  499. sets.Obi.Wind = {waist='Hachirin-no-Obi'}
  500. sets.Obi.Earth = {waist='Hachirin-no-Obi'}
  501. sets.Obi.Light = {waist='Hachirin-no-Obi'}
  502. sets.Obi.Dark = {waist='Hachirin-no-Obi'}
  503.  
  504. sets.Midcast['Dark Magic'] = set_combine(sets.Midcast['Enfeebling Magic'],{})
  505.  
  506. sets.Midcast.Impact = {}
  507.  
  508. -- JA Sets --
  509. sets.JA = {}
  510. sets.JA.Benediction = {body="Clr. Briault +2"}
  511. sets.JA.Martyr = {hands="Clr. Mitts +2"}
  512. sets.JA.Devotion = {head="Clr. Cap +2"}
  513.  
  514. -- Divine Caress Set --
  515. sets['Divine Caress'] = {
  516. main="Yagrush",
  517. hands="Ebers Mitts +1",
  518. back="Mending Cape"}
  519.  
  520. -- Melee Set --
  521. sets.TP = {
  522. waist="Windbuffet Belt +1",
  523. neck="Lissome Necklace",
  524. ring1="Ilabrat Ring",
  525. ammo="Floestone",
  526. ring2="Petrov Ring",
  527. ear1="Cessance Earring",
  528. ear2="Telos Earring",
  529. body="Ayanmo Corazza +2",
  530. head="Aya. Zucchetto +2",
  531. hands="Aya. Manopolas +2",
  532. legs="Aya. Cosciales +2",
  533. feet="Aya. Gambieras +2",
  534. back={ name="Alaunus's Cape", augments={'DEX+20','Accuracy+20 Attack+20','"Store TP"+10',}},}
  535.  
  536. sets.TP.MidACC = set_combine(sets.TP,{
  537. neck="Combatant's Torque"})
  538.  
  539. sets.TP.HighACC = set_combine(sets.TP.MidACC,{
  540. ear1="Cessance Earring",
  541. ear2="Mache Earring +1",
  542. ring1="Ramuh Ring +1",
  543. ring2="Cacoethic Ring +1",
  544. waist="Olseni Belt"})
  545.  
  546. sets.TP.HighHaste = set_combine(sets.TP,{
  547. waist="Windbuffet Belt +1",
  548. ear1="Cessance Earring",
  549. ear2="Telos Earring"})
  550.  
  551.  
  552. sets.TP.MidACC.HighHaste = set_combine(sets.TP.HighHaste,{
  553. neck="Combatant's Torque"})
  554.  
  555. sets.TP.HighACC.HighHaste = set_combine(sets.TP.MidACC.HighHaste,{
  556. ear1="Cessance Earring",
  557. ear2="Mache Earring +1",
  558. ring1="Ramuh Ring +1",
  559. ring2="Cacoethic Ring +1",
  560. waist="Olseni Belt"})
  561.  
  562.  
  563. sets.TP.DNC = {
  564. waist="Shetal Stone",
  565. neck="Lissome Necklace",
  566. ring1="Ilabrat Ring",
  567. ammo="Floestone",
  568. ring2="Petrov Ring",
  569. ear1="Suppanomimi",
  570. ear2="Eabani Earring",
  571. body="Ayanmo Corazza +2",
  572. head="Aya. Zucchetto +2",
  573. hands="Aya. Manopolas +2",
  574. legs="Aya. Cosciales +2",
  575. feet="Aya. Gambieras +2",
  576. back={ name="Alaunus's Cape", augments={'DEX+20','Accuracy+20 Attack+20','"Store TP"+10',}},}
  577.  
  578. sets.TP.MidACC.DNC = set_combine(sets.TP.DNC,{
  579. neck="Combatant's Torque"})
  580.  
  581. sets.TP.HighACC.DNC = set_combine(sets.TP.MidACC.DNC,{
  582. ear1="Cessance Earring",
  583. ear2="Mache Earring +1",
  584. ring1="Ramuh Ring +1",
  585. ring2="Cacoethic Ring +1",
  586. waist="Olseni Belt"})
  587.  
  588. sets.TP.HighHaste.DNC = set_combine(sets.TP.DNC,{
  589. waist="Windbuffet Belt +1",
  590. ear1="Suppanomimi",
  591. ear2="Brutal Earring"})
  592.  
  593.  
  594. sets.TP.MidACC.HighHaste.DNC = set_combine(sets.TP.HighHaste.DNC,{
  595. neck="Combatant's Torque"})
  596.  
  597. sets.TP.HighACC.HighHaste.DNC = set_combine(sets.TP.MidACC.HighHaste.DNC,{
  598. ear1="Cessance Earring",
  599. ear2="Mache Earring +1",
  600. ring1="Ramuh Ring +1",
  601. ring2="Cacoethic Ring +1",
  602. waist="Olseni Belt"})
  603.  
  604. sets.TP.NIN = {
  605. waist="Shetal Stone",
  606. neck="Lissome Necklace",
  607. ring1="Ilabrat Ring",
  608. ammo="Floestone",
  609. ring2="Petrov Ring",
  610. ear1="Suppanomimi",
  611. ear2="Eabani Earring",
  612. body="Ayanmo Corazza +2",
  613. head="Aya. Zucchetto +2",
  614. hands="Aya. Manopolas +2",
  615. legs="Aya. Cosciales +2",
  616. feet="Aya. Gambieras +2",
  617. back={ name="Alaunus's Cape", augments={'DEX+20','Accuracy+20 Attack+20','"Store TP"+10',}}}
  618.  
  619. sets.TP.MidACC.NIN = set_combine(sets.TP.NIN,{
  620. neck="Combatant's Torque"})
  621.  
  622. sets.TP.HighACC.NIN = set_combine(sets.TP.MidACC.NIN,{
  623. ear1="Cessance Earring",
  624. ear2="Mache Earring +1",
  625. ring1="Ramuh Ring +1",
  626. ring2="Cacoethic Ring +1",
  627. waist="Olseni Belt"})
  628.  
  629. sets.TP.HighHaste.NIN = set_combine(sets.TP.NIN,{
  630. waist="Shetal Stone",
  631. ear1="Suppanomimi",
  632. ear2="Brutal Earring"})
  633.  
  634.  
  635. sets.TP.MidACC.HighHaste.NIN = set_combine(sets.TP.HighHaste.NIN,{
  636. neck="Combatant's Torque"})
  637.  
  638. sets.TP.HighACC.HighHaste.NIN = set_combine(sets.TP.MidACC.HighHaste.NIN,{
  639. ear1="Cessance Earring",
  640. ear2="Mache Earring +1",
  641. ring1="Ramuh Ring +1",
  642. ring2="Cacoethic Ring +1",
  643. waist="Olseni Belt"})
  644.  
  645. -- Lock Main Weapon --
  646. sets.MainWeapon = {
  647. main="Yagrush",
  648. sub="Genmei Shield"}
  649.  
  650. -- WS Base Set --
  651. sets.WS = {}
  652. sets.WS["Mystic Boon"] = {
  653. waist="Windbuffet Belt +1",
  654. neck="Imbodla Necklace",
  655. ring1="Rufescent Ring",
  656. ring2="Ifrit Ring +1",
  657. ear1="Moonshade Earring",
  658. ear2="Brutal Earring",
  659. head="Aya. Zucchetto +2",
  660. ammo="Floestone",
  661. body="Ayanmo Corazza +2",
  662. hands="Aya. Manopolas +2",
  663. legs="Aya. Cosciales +2",
  664. feet="Aya. Gambieras +2",
  665. back={ name="Alaunus's Cape", augments={'DEX+20','Accuracy+20 Attack+20','"Store TP"+10',}}}
  666. sets.WS["Hexa Strike"] = {
  667. waist="Fotia Belt",
  668. neck="Fotia gorget",
  669. ring1="Rufescent Ring",
  670. ammo="Floestone",
  671. ring2="Ifrit Ring +1",
  672. ear1="Moonshade Earring",
  673. ear2="Brutal Earring",
  674. head="Aya. Zucchetto +2",
  675. body="Ayanmo Corazza +2",
  676. hands="Aya. Manopolas +2",
  677. legs="Aya. Cosciales +2",
  678. feet="Aya. Gambieras +2",
  679. back="Rancorous Mantle"}
  680. sets.WS["Black Halo"] = {
  681. waist="Fotia Belt",
  682. neck="Fotia gorget",
  683. ring1="Ilabrat Ring",
  684. ammo="Floestone",
  685. ring2="Ifrit Ring +1",
  686. ear1="Moonshade Earring",
  687. ear2="Brutal Earring",
  688. head="Aya. Zucchetto +2",
  689. body="Ayanmo Corazza +2",
  690. hands="Aya. Manopolas +2",
  691. legs="Aya. Cosciales +2",
  692. feet="Aya. Gambieras +2",
  693. back={ name="Alaunus's Cape", augments={'DEX+20','Accuracy+20 Attack+20','"Store TP"+10',}},}
  694. sets.WS["True Strike"] = {
  695. waist="Fotia Belt",
  696. neck="Fotia gorget",
  697. ammo="Floestone",
  698. ring1="Petrov Ring",
  699. ring2="Ifrit Ring +1",
  700. ear1="Moonshade Earring",
  701. ear2="Brutal Earring",
  702. head="Aya. Zucchetto +2",
  703. body="Ayanmo Corazza +2",
  704. hands="Aya. Manopolas +2",
  705. legs="Aya. Cosciales +2",
  706. feet="Aya. Gambieras +2",
  707. back={ name="Alaunus's Cape", augments={'DEX+20','Accuracy+20 Attack+20','"Store TP"+10',}},}
  708. sets.WS["Judgement"] = {
  709. waist="Fotia Belt",
  710. neck="Fotia gorget",
  711. ring1="Petrov Ring",
  712. ammo="Floestone",
  713. ring2="Ifrit Ring +1",
  714. ear1="Moonshade Earring",
  715. ear2="Brutal Earring",
  716. head="Aya. Zucchetto +2",
  717. body="Ayanmo Corazza +2",
  718. hands="Aya. Manopolas +2",
  719. legs="Aya. Cosciales +2",
  720. feet="Aya. Gambieras +2",
  721. back={ name="Alaunus's Cape", augments={'DEX+20','Accuracy+20 Attack+20','"Store TP"+10',}}}
  722. sets.WS["Flash Nova"] = {
  723. waist="Refoccilation Stone",
  724. neck="Eddy Necklace",
  725. ring1="Shiva Ring +1",
  726. ring2="Shiva Ring +1",
  727. ear1="Fromisi Earring",
  728. ear2="Regal Earring",
  729. head="Welkin Crown",
  730. body={ name="Chironic Doublet", augments={'Mag. Acc.+25 "Mag.Atk.Bns."+25','"Conserve MP"+4','INT+5','"Mag.Atk.Bns."+9',}},
  731. hands={ name="Chironic Gloves", augments={'Mag. Acc.+21 "Mag.Atk.Bns."+21','"Cure" potency +3%','"Mag.Atk.Bns."+13',}},
  732. back="Toro Cape",
  733. ammo="Pemphredo Tathlum",
  734. legs="Gyve Trousers",
  735. feet="Inspirited Boots"}
  736. sets.WS["Shining Strike"] = {
  737. waist="Refoccilation Stone",
  738. neck="Eddy Necklace",
  739. ring1="Shiva Ring +1",
  740. ring2="Shiva Ring +1",
  741. ear1="Fromisi Earring",
  742. ear2="Regal Earring",
  743. head="Welkin Crown",
  744. body={ name="Chironic Doublet", augments={'Mag. Acc.+25 "Mag.Atk.Bns."+25','"Conserve MP"+4','INT+5','"Mag.Atk.Bns."+9',}},
  745. hands={ name="Chironic Gloves", augments={'Mag. Acc.+21 "Mag.Atk.Bns."+21','"Cure" potency +3%','"Mag.Atk.Bns."+13',}},
  746. back="Toro Cape",
  747. ammo="Pemphredo Tathlum",
  748. legs="Gyve Trousers",
  749. feet="Inspirited Boots"}
  750. sets.WS["Seraph Strike"] = {
  751. waist="Refoccilation Stone",
  752. neck="Eddy Necklace",
  753. ring1="Shiva Ring +1",
  754. ring2="Shiva Ring +1",
  755. ear1="Fromisi Earring",
  756. ear2="Regal Earring",
  757. head="Welkin Crown",
  758. body={ name="Chironic Doublet", augments={'Mag. Acc.+25 "Mag.Atk.Bns."+25','"Conserve MP"+4','INT+5','"Mag.Atk.Bns."+9',}},
  759. hands={ name="Chironic Gloves", augments={'Mag. Acc.+21 "Mag.Atk.Bns."+21','"Cure" potency +3%','"Mag.Atk.Bns."+13',}},
  760. back="Toro Cape",
  761. ammo="Pemphredo Tathlum",
  762. legs="Gyve Trousers",
  763. feet="Inspirited Boots"}
  764. sets.WS.Realmrazer = {
  765. waist="Fotia Belt",
  766. neck="Fotia gorget",
  767. ammo="Floestone",
  768. ring1="Rufescent Ring",
  769. ring2="Ifrit Ring +1",
  770. ear2="Telos Earring",
  771. ear1="Cessance Earring",
  772. waist="Fotia Belt",
  773. neck="Fotia gorget",
  774. head="Aya. Zucchetto +2",
  775. body="Ayanmo Corazza +2",
  776. hands="Aya. Manopolas +2",
  777. legs="Aya. Cosciales +2",
  778. feet="Aya. Gambieras +2",
  779. back={ name="Alaunus's Cape", augments={'DEX+20','Accuracy+20 Attack+20','"Store TP"+10',}}}
  780. end
  781.  
  782. function pretarget(spell,action)
  783. if midaction() then
  784. add_to_chat(123, '****** ['..spell.name..' CANCELED] ******')
  785. canceled = true
  786. return
  787. elseif spell.english == "Berserk" and buffactive.Berserk then -- Change Berserk To Aggressor If Berserk Is On --
  788. cancel_spell()
  789. send_command('Aggressor')
  790. elseif (spell.type:endswith('Magic') or spell.type == "Ninjutsu") and buffactive.silence then -- Auto Use Echo Drops If You Are Silenced --
  791. cancel_spell()
  792. send_command('input /item "Echo Drops" <me>')
  793. elseif spell.english:ifind("Cure") and player.mp<actualCost(spell.mp_cost) then
  794. degrade_spell(spell,Cure_Spells)
  795. elseif spell.english:ifind("Curaga") and player.mp<actualCost(spell.mp_cost) then
  796. degrade_spell(spell,Curaga_Spells)
  797. elseif Na_Spells:contains(spell.english) then -- Auto Divine Caress --
  798. if windower.ffxi.get_ability_recasts()[32] < 1 and (spell.target.type == 'PLAYER' or spell.target.name == player.name) and not buffactive.amnesia and not buffactive.charm and spell.english ~= "Erase" then
  799. cancel_spell()
  800. send_command('DivineCaress;wait 1.7;input /ma "'..spell.english..'" '..spell.target.name)
  801. end
  802. elseif buffactive['Light Arts'] or buffactive['Addendum: White'] then
  803. if spell.english == "Light Arts" and not buffactive['Addendum: White'] then
  804. cancel_spell()
  805. send_command('input /ja Addendum: White <me>')
  806. elseif spell.english == "Manifestation" then
  807. cancel_spell()
  808. send_command('input /ja Accession <me>')
  809. elseif spell.english == "Alacrity" then
  810. cancel_spell()
  811. send_command('input /ja Celerity <me>')
  812. elseif spell.english == "Parsimony" then
  813. cancel_spell()
  814. send_command('input /ja Penury <me>')
  815. end
  816. elseif buffactive['Dark Arts'] or buffactive['Addendum: Black'] then
  817. if spell.english == "Dark Arts" and not buffactive['Addendum: Black'] then
  818. cancel_spell()
  819. send_command('input /ja Addendum: Black <me>')
  820. elseif spell.english == "Accession" then
  821. cancel_spell()
  822. send_command('input /ja Manifestation <me>')
  823. elseif spell.english == "Celerity" then
  824. cancel_spell()
  825. send_command('input /ja Alacrity <me>')
  826. elseif spell.english == "Penury" then
  827. cancel_spell()
  828. send_command('input /ja Parsimony <me>')
  829. end
  830. end
  831. end
  832.  
  833. function precast(spell,action)
  834. if canceled then
  835. return
  836. elseif spell.type:endswith('Magic') or spell.type == "Ninjutsu" then
  837. if buffactive.silence or spell.target.distance > 16+target_distance then -- Cancel Magic or Ninjutsu If You Are Silenced or Out of Range --
  838. cancel_spell()
  839. add_to_chat(123, spell.name..' Canceled: [Silenced or Out of Casting Range]')
  840. return
  841. else
  842. if string.find(spell.english,'Cur') and spell.english ~= "Cursna" then
  843. equip(sets.Precast.Cure)
  844. elseif spell.english == "Stoneskin" then
  845. equip(sets.Precast[spell.english])
  846. elseif spell.english == "Impact" then
  847. equip(set_combine(sets.Precast.FastCast,{body="Twilight Cloak"}))
  848. elseif string.find(spell.english,'Utsusemi') then
  849. if buffactive['Copy Image (3)'] or buffactive['Copy Image (4)'] then
  850. cancel_spell()
  851. add_to_chat(123, spell.name .. ' Canceled: [3+ Images]')
  852. return
  853. else
  854. equip(sets.Precast.FastCast)
  855. end
  856. elseif sets.Precast[spell.skill] then
  857. equip(sets.Precast[spell.skill])
  858. else
  859. equip(sets.Precast.FastCast)
  860. end
  861. end
  862. elseif spell.type == "JobAbility" then
  863. if sets.JA[spell.english] then
  864. equip(sets.JA[spell.english])
  865. end
  866. elseif spell.type == "WeaponSkill" then
  867. if player.status ~= 'Engaged' then -- Cancel WS If You Are Not Engaged. Can Delete It If You Don't Need It --
  868. cancel_spell()
  869. add_to_chat(123,'Unable To Use WeaponSkill: [Disengaged]')
  870. return
  871. else
  872. if sets.WS[spell.english] then
  873. equip(sets.WS[spell.english])
  874. end
  875. end
  876. elseif spell.english == 'Spectral Jig' and buffactive.Sneak then
  877. cast_delay(0.2)
  878. send_command('cancel Sneak')
  879. end
  880. if sets.Precast[spell.element] and not Na_Spells:contains(spell.english) and ElementalStaff == 'ON' then
  881. equip(sets.Precast[spell.element])
  882. end
  883. if Main == 'ON' then
  884. equip(sets.MainWeapon)
  885. end
  886. end
  887.  
  888. function midcast(spell,action)
  889. equipSet = {}
  890. if spell.action_type == 'Magic' then
  891. equipSet = sets.Midcast
  892. if Na_Spells:contains(spell.english) then
  893. equipSet = equipSet.Na
  894. if DC then
  895. equipSet = set_combine(equipSet,sets['Divine Caress'])
  896. end
  897. elseif spell.english:startswith('Cur') and spell.english ~= "Cursna" then
  898. if spell.english:startswith('Cure') then
  899. if Nuke == 'ON' then
  900. equipSet = equipSet.Cure.Nuke
  901. else
  902. equipSet = equipSet.Cure
  903. end
  904. elseif spell.english:startswith('Cura') then
  905. if Nuke == 'ON' then
  906. equipSet = equipSet.Curaga.Nuke
  907. else
  908. equipSet = equipSet.Curaga
  909. end
  910. end
  911. if world.day_element == spell.element or world.weather_element == spell.element then
  912. equipSet = set_combine(equipSet,{waist="Hachirin-no-Obi"})
  913. end
  914.  
  915. elseif spell.english == "Protectra V" then
  916. equipSet = set_combine(equipSet,{main="Gada",sub="Ammurapi Shield",head={ name="Telchine Cap", augments={'Accuracy+12','Potency of "Cure" effect received+6%','Enh. Mag. eff. dur. +10',}},body="Telchine Chas.",hands="Telchine Gloves",legs="Telchine Braconi",feet="Theo. Duckbills +3"})
  917. elseif spell.english == "Protect V" then
  918. equipSet = set_combine(equipSet,{main="Gada",sub="Ammurapi Shield",head={ name="Telchine Cap", augments={'Accuracy+12','Potency of "Cure" effect received+6%','Enh. Mag. eff. dur. +10',}},body="Telchine Chas.",hands="Telchine Gloves",legs="Telchine Braconi",feet="Theo. Duckbills +3"})
  919. elseif spell.english == "Shell V" then
  920. equipSet = set_combine(equipSet,{main="Gada",sub="Ammurapi Shield",head={ name="Telchine Cap", augments={'Accuracy+12','Potency of "Cure" effect received+6%','Enh. Mag. eff. dur. +10',}},body="Telchine Chas.",hands="Telchine Gloves",legs="Telchine Braconi",feet="Theo. Duckbills +3"})
  921. elseif spell.skill == 'Elemental Magic' and MB == 'ON' then
  922. if Obi == 'ON' then
  923. equipSet = set_combine(equipSet,sets.MB,{waist="Hachirin-no-Obi"})
  924. else
  925. equipSet = set_combine(equipSet,sets.MB)
  926. end
  927. elseif spell.skill == 'Divine Magic' and MB == 'ON' then
  928. if Obi == 'ON' then
  929. equipSet = set_combine(equipSet,sets.MB,{waist="Hachirin-no-Obi"})
  930. else
  931. equipSet = set_combine(equipSet,sets.MB)
  932. end
  933. elseif spell.english == "Refresh" then
  934. equipSet = set_combine(equipSet,{main="Gada",sub="Ammurapi Shield",head={ name="Telchine Cap", augments={'Accuracy+12','Potency of "Cure" effect received+6%','Enh. Mag. eff. dur. +10',}},body="Telchine Chas.",hands="Telchine Gloves",back="Grapevine Cape",waist="Gishdubar Sash",feet="Inspirited boots"})
  935. elseif spell.english == "Refresh II" then
  936. equipSet = set_combine(equipSet,{main="Gada",sub="Ammurapi Shield",head={ name="Telchine Cap", augments={'Accuracy+12','Potency of "Cure" effect received+6%','Enh. Mag. eff. dur. +10',}},body="Telchine Chas.",hands="Telchine Gloves",back="Grapevine Cape",waist="Gishdubar Sash",feet="Inspirited boots"})
  937. elseif spell.english == "Shellra V" then
  938. equipSet = set_combine(equipSet,{main="Gada",sub="Ammurapi Shield",head={ name="Telchine Cap", augments={'Accuracy+12','Potency of "Cure" effect received+6%','Enh. Mag. eff. dur. +10',}},body="Telchine Chas.",hands="Telchine Gloves",feet="Theo. Duckbills +3",legs="Piety Pantaloons +1"})
  939. elseif spell.english:startswith('Banish') then
  940. equipSet = equipSet.Divine
  941. if world.day_element == spell.element or world.weather_element == spell.element then
  942. equipSet = set_combine(equipSet,{back="Twilight Cape",waist="Hachirin-no-Obi"})
  943. end
  944. elseif spell.english:startswith('Holy') then
  945. equipSet = equipSet.Divine
  946. if world.day_element == spell.element or world.weather_element == spell.element then
  947. equipSet = set_combine(equipSet,{back="Twilight Cape",waist="Hachirin-no-Obi"})
  948. end
  949. elseif spell.english == "Stoneskin" then
  950. if buffactive.Stoneskin then
  951. send_command('@wait 2.8;cancel stoneskin')
  952. end
  953. equipSet = equipSet.Stoneskin
  954. elseif spell.english == "Sneak" then
  955. if spell.target.name == player.name and buffactive['Sneak'] then
  956. send_command('cancel sneak')
  957. end
  958. equipSet = equipSet.Haste
  959. elseif string.find(spell.english,'Bar') then
  960. equipSet = equipSet.Bar
  961. elseif string.find(spell.english,'Dia') then
  962. equipSet = equipSet.Dia
  963. elseif string.find(spell.english,'Boost') then
  964. equipSet = equipSet.Boost
  965. elseif string.find(spell.english,'Regen') then
  966. equipSet = equipSet.Regen
  967. elseif string.find(spell.english,'Repose') then
  968. equipSet = equipSet.Repose
  969. elseif string.find(spell.english,'Drain') then
  970. equipSet = equipSet.Drain
  971.  
  972. elseif string.find(spell.english,'Aspir') then
  973. equipSet = equipSet.Drain
  974. elseif string.find(spell.english,'Cursna') then
  975. equipSet = equipSet.Cursna
  976. elseif string.find(spell.english,'storm') then
  977. equipSet = equipSet.Haste
  978. elseif string.find(spell.english,'Reraise') then
  979. equipSet = equipSet.Haste
  980. elseif string.find(spell.english,'Utsusemi') then
  981. if spell.english == 'Utsusemi: Ichi' and (buffactive['Copy Image'] or buffactive['Copy Image (2)']) then
  982. send_command('@wait 1.7;cancel Copy Image*')
  983. end
  984. equipSet = equipSet.Haste
  985. elseif spell.english == 'Monomi: Ichi' then
  986. if buffactive['Sneak'] then
  987. send_command('@wait 1.7;cancel sneak')
  988. end
  989. equipSet = equipSet.Haste
  990. else
  991. if equipSet[spell.english] then
  992. equipSet = equipSet[spell.english]
  993. end
  994.  
  995.  
  996.  
  997.  
  998. if equipSet[spell.skill] then
  999. equipSet = equipSet[spell.skill]
  1000. end
  1001.  
  1002. end
  1003. if (spell.skill == 'Elemental Magic' or string.find(spell.english,'Cur') or string.find(spell.english,'Bio') or string.find(spell.english,'Dia')) and not Non_Obi_Spells:contains(spell.english) and (world.day_element == spell.element or world.weather_element == spell.element) and sets.Obi[spell.element] and Obi == 'ON' then -- Use Obi Toggle To Equip Normal Waist Gear --
  1004. equipSet = set_combine(equipSet,sets.Obi[spell.element])
  1005. if equipSet[spell.type] then
  1006. equipSet = equipSet[spell.type]
  1007. end
  1008. end
  1009. elseif equipSet[spell.english] then
  1010. equipSet = equipSet[spell.english]
  1011. end
  1012. equip(equipSet)
  1013.  
  1014. if Main == 'ON' then
  1015. equip(sets.MainWeapon)
  1016. end
  1017.  
  1018. end
  1019.  
  1020. function aftercast(spell,action)
  1021. if canceled then
  1022. canceled = false
  1023. return
  1024. else
  1025. if not spell.interrupted then
  1026. if spell.type == "WeaponSkill" then
  1027. send_command('wait 0.2;gs c TP')
  1028. elseif (spell.english == "Repose" or spell.english == "Sleep II") then -- Repose & Sleep II Countdown --
  1029. send_command('wait 60;input /echo Sleep Effect: [WEARING OFF IN 30 SEC.];wait 15;input /echo Sleep Effect: [WEARING OFF IN 15 SEC.];wait 10;input /echo Sleep Effect: [WEARING OFF IN 5 SEC.]')
  1030. elseif (spell.english == "Sleep" or spell.english == "Sleepga") then -- Sleep & Sleepga Countdown --
  1031. send_command('wait 30;input /echo Sleep Effect: [WEARING OFF IN 30 SEC.];wait 15;input /echo Sleep Effect: [WEARING OFF IN 15 SEC.];wait 10;input /echo Sleep Effect: [WEARING OFF IN 5 SEC.]')
  1032. elseif spell.english == "Banish III" then -- Banish III Countdown --
  1033. send_command('wait 35;input /echo Banish Effect: [WEARING OFF IN 10 SEC.]')
  1034. end
  1035. end
  1036. status_change(player.status)
  1037. end
  1038. end
  1039.  
  1040. function status_change(new,old)
  1041. check_equip_lock()
  1042. if Armor == 'PDT' then
  1043. equip(sets.PDT)
  1044. elseif Armor == 'MDT' then
  1045. equip(sets.MDT)
  1046. elseif new == 'Engaged' then
  1047. equipSet = sets.TP
  1048. if equipSet[AccArray[AccIndex]] then
  1049. equipSet = equipSet[AccArray[AccIndex]]
  1050. end
  1051. if Main == 'ON' then
  1052. equip(sets.MainWeapon)
  1053. end
  1054. if buffactive.March == 2 or buffactive.March == 1 or buffactive[580] or buffactive['Mighty Guard'] and (buffactive.Embrava or buffactive.Haste) and equipSet["HighHaste"] then
  1055. equipSet = equipSet["HighHaste"]
  1056.  
  1057. end
  1058. if equipSet[player.sub_job] then
  1059. equipSet = equipSet[player.sub_job]
  1060. end
  1061. equip(equipSet)
  1062. elseif new == 'Idle' then
  1063. equipSet = sets.Idle
  1064. if equipSet[IdleArray[IdleIndex]] then
  1065. equipSet = equipSet[IdleArray[IdleIndex]]
  1066. end
  1067. if buffactive['Reive Mark'] then -- Equip Arciela's Grace +1 During Reive --
  1068. equipSet = set_combine(equipSet,sets.Reive)
  1069. end
  1070. if world.time >= (7*60) and world.time <= (17*60) then -- Equip Lycopodium Sash From Dusk To Dawn --
  1071. equipSet = set_combine(equipSet,{waist="Lycopodium Sash"})
  1072. end
  1073. if world.area:endswith('Adoulin') then
  1074. equipSet = set_combine(equipSet,{body="Councilor's Garb"})
  1075. end
  1076. equip(equipSet)
  1077. elseif new == 'Resting' then
  1078. equip(sets.Resting)
  1079. end
  1080.  
  1081.  
  1082. end
  1083.  
  1084.  
  1085.  
  1086. function buff_change(buff,gain)
  1087. buff = string.lower(buff)
  1088. if buff == "aftermath: lv.3" then -- AM3 Timer --
  1089. if gain then
  1090. send_command('timers create "Aftermath: Lv.3" 180 down AM3.png;wait 120;input /echo Aftermath: Lv.3 [WEARING OFF IN 60 SEC.];wait 30;input /echo Aftermath: Lv.3 [WEARING OFF IN 30 SEC.];wait 20;input /echo Aftermath: Lv.3 [WEARING OFF IN 10 SEC.]')
  1091. else
  1092. send_command('timers delete "Aftermath: Lv.3"')
  1093. add_to_chat(123,'AM3: [OFF]')
  1094. end
  1095. elseif buff == 'divine caress' then
  1096. DC = gain
  1097. elseif buff == 'weakness' then -- Weakness Timer --
  1098. if gain then
  1099. send_command('timers create "Weakness" 300 up')
  1100. else
  1101. send_command('timers delete "Weakness"')
  1102. end
  1103. end
  1104.  
  1105. end
  1106.  
  1107. -- In Game: //gs c (command), Macro: /console gs c (command), Bind: gs c (command) --
  1108. function self_command(command)
  1109. if command == 'C1' then -- MB Toggle --
  1110. if MB == 'ON' then
  1111. MB = 'OFF'
  1112. add_to_chat(123,'MB: [OFF]')
  1113. else
  1114. MB = 'ON'
  1115. add_to_chat(158,'MB: [ON]')
  1116. end
  1117. status_change(player.status)
  1118. elseif command == 'C2' then -- Obi Toggle --
  1119. if Obi == 'ON' then
  1120. Obi = 'OFF'
  1121. add_to_chat(123,'Obi: [OFF]')
  1122. else
  1123. Obi = 'ON'
  1124. add_to_chat(158,'Obi: [ON]')
  1125. end
  1126. status_change(player.status)
  1127. elseif command == 'C3' then -- Kiting Toggle --
  1128. if Kiting == 'ON' then
  1129. Kiting = 'OFF'
  1130. add_to_chat(123,'Kiting Set: [Unlocked]')
  1131. else
  1132. Kiting = 'ON'
  1133. add_to_chat(158,'Kiting Set: [Locked]')
  1134. end
  1135. status_change(player.status)
  1136. elseif command == 'C10' then -- Nuke Toggle --
  1137. if Nuke== 'ON' then
  1138. Nuke = 'OFF'
  1139. add_to_chat(123,'Nuke Set: [OFF]')
  1140. else
  1141. Nuke = 'ON'
  1142. add_to_chat(158,'Nuke Set: [ON]')
  1143. end
  1144. status_change(player.status)
  1145. elseif command == 'C5' then -- Auto Update Gear Toggle --
  1146. status_change(player.status)
  1147. add_to_chat(158,'Auto Update Gear')
  1148. elseif command == 'C9' then -- Accuracy Level Toggle --
  1149. AccIndex = (AccIndex % #AccArray) + 1
  1150. add_to_chat(158,'Accuracy Level: ' .. AccArray[AccIndex])
  1151. status_change(player.status)
  1152. elseif command == 'C7' then
  1153. if Armor == 'PDT' then -- PDT Toggle --
  1154. Armor = 'None'
  1155. add_to_chat(123,'PDT Set: [Unlocked]')
  1156. else
  1157. Armor = 'PDT'
  1158. add_to_chat(158,'PDT Set: [Locked]')
  1159. end
  1160. status_change(player.status)
  1161. elseif command == 'C17' then -- Main Weapon Toggle --
  1162. if Lock_Main == 'ON' then
  1163. Lock_Main = 'OFF'
  1164. add_to_chat(123,'Main Weapon: [Unlocked]')
  1165. else
  1166. Lock_Main = 'ON'
  1167. add_to_chat(158,'Main Weapon: [Locked]')
  1168. end
  1169. status_change(player.status)
  1170. elseif command == 'C8' then -- Distance Toggle --
  1171. if player.target.distance then
  1172. target_distance = math.floor(player.target.distance*10)/10
  1173. add_to_chat(158,'Distance: '..target_distance)
  1174. else
  1175. add_to_chat(123,'No Target Selected')
  1176. end
  1177. elseif command == 'C6' then -- Idle Toggle
  1178. IdleIndex = (IdleIndex % #IdleArray) + 1
  1179. add_to_chat(158,'Idle Set: '..IdleArray[IdleIndex])
  1180. status_change(player.status)
  1181. elseif command == 'TP' then
  1182. add_to_chat(158,'TP Return: '..tostring(player.tp))
  1183. elseif command:match('^SC%d$') then
  1184. send_command('//' .. sc_map[command])
  1185. end
  1186. end
  1187.  
  1188. function check_equip_lock() -- Lock Equipment Here --
  1189.  
  1190. if Lock_Main == 'ON' then
  1191. disable('main','sub')
  1192. else
  1193. enable('main','sub')
  1194. end
  1195. end
  1196.  
  1197. function actualCost(originalCost)
  1198. if buffactive["Penury"] then
  1199. return originalCost*.5
  1200. elseif buffactive["Light Arts"] then
  1201. return originalCost*.9
  1202. else
  1203. return originalCost
  1204. end
  1205. end
  1206.  
  1207. function degrade_spell(spell,degrade_array)
  1208. spell_index = table.find(degrade_array,spell.name)
  1209. if spell_index > 1 then
  1210. new_spell = degrade_array[spell_index - 1]
  1211. change_spell(new_spell,spell.target.raw)
  1212. add_to_chat(8,spell.name..' Canceled: ['..player.mp..'/'..player.max_mp..'MP::'..player.mpp..'%] Casting '..new_spell..' instead.')
  1213. end
  1214. end
  1215.  
  1216. function change_spell(spell_name,target)
  1217. cancel_spell()
  1218. send_command('//'..spell_name..' '..target)
  1219. end
  1220.  
  1221. function sub_job_change(newSubjob, oldSubjob)
  1222. select_default_macro_book()
  1223. end
  1224.  
  1225. function set_macro_page(set,book)
  1226. if not tonumber(set) then
  1227. add_to_chat(123,'Error setting macro page: Set is not a valid number ('..tostring(set)..').')
  1228. return
  1229. end
  1230. if set < 1 or set > 10 then
  1231. add_to_chat(123,'Error setting macro page: Macro set ('..tostring(set)..') must be between 1 and 10.')
  1232. return
  1233. end
  1234.  
  1235. if book then
  1236. if not tonumber(book) then
  1237. add_to_chat(123,'Error setting macro page: book is not a valid number ('..tostring(book)..').')
  1238. return
  1239. end
  1240. if book < 1 or book > 20 then
  1241. add_to_chat(123,'Error setting macro page: Macro book ('..tostring(book)..') must be between 1 and 20.')
  1242. return
  1243. end
  1244. send_command('@input /macro book '..tostring(book)..';wait .1;input /macro set '..tostring(set))
  1245. else
  1246. send_command('@input /macro set '..tostring(set))
  1247. end
  1248. end
  1249.  
  1250. function select_default_macro_book()
  1251. -- Default macro set/book
  1252. if player.sub_job == 'SCH' then
  1253. set_macro_page(6, 11)
  1254. elseif player.sub_job == 'BLM' then
  1255. set_macro_page(6, 11)
  1256. elseif player.sub_job == 'RDM' then
  1257. set_macro_page(6, 11)
  1258. elseif player.sub_job == 'DNC' then
  1259. set_macro_page(4, 11)
  1260. elseif player.sub_job == 'WAR' then
  1261. set_macro_page(4, 11)
  1262. elseif player.sub_job == 'NIN' then
  1263. set_macro_page(4, 11)
  1264. else
  1265. set_macro_page(6, 11)
  1266. end
  1267. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement