Advertisement
Guest User

Untitled

a guest
Oct 4th, 2014
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.64 KB | None | 0 0
  1. -------------------------------------------------------------------------------------------------------------------
  2. -------------------------------------------------------------------------------------------------------------------
  3.  
  4. -- Aeolus of Fairy, Aeo of Sylph: Gearswap LUA file
  5. -- Job: Blue Mage
  6.  
  7. -------------------------------------------------------------------------------------------------------------------
  8. -------------------------------------------------------------------------------------------------------------------
  9.  
  10.  
  11. -------------------------------------------------------------------------------------------------------------------
  12. -- Equipment sets for each spell/Ability/Job Ability and Scenario
  13. -------------------------------------------------------------------------------------------------------------------
  14. function get_sets ()
  15.  
  16. send_command('input /macro book 14;wait .1;input /macro set 1')
  17.  
  18.  
  19. -------------------------------------------------------------------------------------------------------------------
  20. --Idle Sets--
  21. sets.Idle = {}
  22.  
  23.  
  24. sets.Idle.index = {'Standard','DT'}
  25. Idle_index = 1
  26.  
  27. sets.Idle.Standard = {
  28. ammo="Jukukik Feather",
  29. head="Auspex Coif",
  30. body="Assim. Jubbah +1",
  31. hands="Serpentes Cuffs",
  32. legs="Crimson Cuisses",
  33. feet="Serpentes Sabots",
  34. neck="Twilight Torque",
  35. waist="Flume Belt",
  36. left_ear="Brutal Earring",
  37. right_ear="Suppanomimi",
  38. left_ring="Dark Ring",
  39. right_ring="Dark Ring",
  40. back="Cheviot Cape"}
  41.  
  42. sets.Idle.DT = {
  43. ammo="Jukukik Feather",
  44. head="Hagondes Hat",
  45. body="Hagondes Coat",
  46. hands="Iuitl Wristbands",
  47. legs="Iuitl Tights",
  48. feet="Iuitl Gaiters",
  49. neck="Twilight Torque",
  50. waist="Flume Belt",
  51. left_ear="Brutal Earring",
  52. right_ear="Suppanomimi",
  53. left_ring="Dark Ring",
  54. right_ring="Dark Ring",
  55. back="Cheviot Cape"}
  56.  
  57. sets.Idle.Lockstyle = {}
  58.  
  59.  
  60.  
  61. -------------------------------------------------------------------------------------------------------------------
  62. --Engaged Sets--
  63. sets.Engaged = {}
  64.  
  65.  
  66. sets.Engaged.index = {'Attack', 'Accuracy', 'DT'}
  67. Engaged_index = 1
  68.  
  69. sets.Engaged.Attack = {
  70. ammo="Jukukik Feather",
  71. head="Iuitl Headgear +1",
  72. body="Qaaxo Harness",
  73. hands="Qaaxo Mitaines",
  74. legs="Iuitl Tights +1",
  75. feet="Manibozho Boots",
  76. neck="Asperity Necklace",
  77. waist="Windbuffet Belt",
  78. left_ear="Heartseeker Earring",
  79. right_ear="Dudgeon Earring",
  80. left_ring="Rajas Ring",
  81. right_ring="Epona's Ring",
  82. back="Atheling Mantle",}
  83.  
  84. sets.Engaged.Accuracy = {
  85. ammo="Honed Tathlum",
  86. head="Whirlpool Mask",
  87. body="Qaaxo Harness",
  88. hands="Qaaxo Mitaines",
  89. legs="Manibozho Brais",
  90. feet="Manibozho boots",
  91. neck="Iqabi Necklace",
  92. waist="Hurch'lan Sash",
  93. left_ear="Heartseeker Earring",
  94. right_ear="Dudgeon Earring",
  95. left_ring="Rajas Ring",
  96. right_ring="Epona's Ring",
  97. back="Letalis Mantle"}
  98.  
  99. sets.Engaged.DT = {
  100. ammo="Honed Tathlum",
  101. head="Lithelimb Cap",
  102. body="Qaaxo Harness",
  103. hands="Qaaxo Mitaines",
  104. legs="Iuitl Tights +1",
  105. feet="Hagondes Sabots",
  106. neck="Twilight Torque",
  107. waist="Flume Belt",
  108. left_ear="Brutal Earring",
  109. right_ear="Suppanomimi",
  110. left_ring="Rajas Ring",
  111. right_ring="Dark Ring",
  112. back="Cheviot Cape"}
  113.  
  114. sets.Engaged.Marches = {
  115. ammo="Jukukik Feather",
  116. head="Iuitl Headgear +1",
  117. body="Qaaxo Harness",
  118. hands="Qaaxo Mitaines",
  119. legs="Iuitl Tights +1",
  120. feet="Manibozho Boots",
  121. neck="Asperity Necklace",
  122. waist="Windbuffet Belt",
  123. left_ear="Brutal Earring",
  124. right_ear="Suppanomimi",
  125. left_ring="Rajas Ring",
  126. right_ring="Epona's Ring",
  127. back="Atheling Mantle",}
  128.  
  129.  
  130. -------------------------------------------------------------------------------------------------------------------
  131. --Precast Sets--
  132. sets.Precast = {}
  133.  
  134.  
  135. --Weaponskill Sets--
  136.  
  137. --Requiescat--
  138. sets.Requiescat = {}
  139.  
  140. sets.Requiescat.index = {'Attack','Accuracy', 'DT'}
  141. Requiescat_index = 1
  142.  
  143. sets.Requiescat.Attack = {
  144. ammo="Jukukik Feather",
  145. head="Uk'uxkaj Cap",
  146. body="Vanir Cotehardie",
  147. hands="Iuitl Wristbands",
  148. legs="Quiahuiz Trousers",
  149. feet="Hagondes Sabots",
  150. neck="Shadow Gorget",
  151. waist="Windbuffet Belt",
  152. left_ear="Steelflash Earring",
  153. right_ear="Brutal Earring",
  154. left_ring="Karka Ring",
  155. right_ring="Epona's Ring",
  156. back="Atheling Mantle"}
  157.  
  158. sets.Requiescat.Accuracy = {
  159. ammo="Inlamvuyeso",
  160. head="Whirlpool Mask",
  161. body="Vanir Cotehardie",
  162. hands="Iuitl Wristbands",
  163. legs="Quiahuiz Trousers",
  164. feet="Hagondes Sabots",
  165. neck="Shadow Gorget",
  166. waist="Windbuffet Belt",
  167. left_ear="Steelflash Earring",
  168. right_ear="Brutal Earring",
  169. left_ring="Karka Ring",
  170. right_ring="Epona's Ring",
  171. back="Atheling Mantle"}
  172.  
  173.  
  174. --Chant Du Cygne--
  175. sets.ChantDuCygne = {}
  176.  
  177. sets.ChantDuCygne.index = {'Attack','Accuracy', 'DT'}
  178. ChantDuCygne_index = 1
  179.  
  180. sets.ChantDuCygne.Attack = {
  181. ammo="Jukukik Feather",
  182. head="Uk'uxkaj Cap",
  183. body="Assim. Jubbah +1",
  184. hands="Qaaxo Mitaines",
  185. legs="Manibozho Brais",
  186. feet="Manibozho Boots",
  187. neck="Light Gorget",
  188. waist="Windbuffet Belt",
  189. left_ear="Moonshade Earring",
  190. right_ear="Brutal Earring",
  191. left_ring="Rajas Ring",
  192. right_ring="Epona's Ring",
  193. back="Rancorous Mantle"}
  194.  
  195. sets.ChantDuCygne.Accuracy = {
  196. ammo="Honed Tathlum",
  197. head="Whirlpool Mask",
  198. body="Assim. Jubbah +1",
  199. hands="Qaaxo Mitaines",
  200. legs="Manibozho Brais",
  201. feet="Manibozho Boots",
  202. neck="Light Gorget",
  203. waist="Windbuffet Belt",
  204. left_ear="Moonshade Earring",
  205. right_ear="Brutal Earring",
  206. left_ring="Rajas Ring",
  207. right_ring="Epona's Ring",
  208. back="Letalis Mantle"}
  209.  
  210.  
  211. --Sanguine Blade--
  212. sets.SanguineBlade = {}
  213.  
  214. sets.SanguineBlade.index = {'Attack', 'Accuracy', 'DT'}
  215. SanguineBlade_index = 1
  216.  
  217. sets.SanguineBlade.Attack = {
  218. ammo="",
  219. head="Hagondes Hat",
  220. body="Hagondes Coat",
  221. hands="Mv. Bazubands +2",
  222. legs="Hagondes Pants",
  223. feet="Hagondes Sabots",
  224. neck="Eddy Necklace",
  225. waist="Penitent's Rope",
  226. left_ear="Novio Earring",
  227. right_ear="Hecate's Earring",
  228. left_ring="Strendu Ring",
  229. right_ring="Acumen Ring",
  230. back="Cornflower Cape"}
  231.  
  232. sets.SanguineBlade.Accuracy = {
  233. ammo="",
  234. head="Hagondes Hat",
  235. body="Hagondes Coat",
  236. hands="Mv. Bazubands +2",
  237. legs="Hagondes Pants",
  238. feet="Hagondes Sabots",
  239. neck="Eddy Necklace",
  240. waist="Penitent's Rope",
  241. left_ear="Novio Earring",
  242. right_ear="Hecate's Earring",
  243. left_ring="Strendu Ring",
  244. right_ring="Acumen Ring",
  245. back="Cornflower Cape"}
  246.  
  247.  
  248. --Job Ability Sets--
  249.  
  250. --Abilities requiring swap BEFORE use--
  251.  
  252. sets.Precast['Lunge'] = {
  253. head="Hagondes Hat",
  254. body="Hagondes Coat",
  255. hands="Mv. Bazubands +2",
  256. legs="Hagondes Pants",
  257. feet="Hagondes Sabots",
  258. neck="Eddy Necklace",
  259. waist="Penitent's Rope",
  260. left_ear="Novio Earring",
  261. right_ear="Hecate's Earring",
  262. left_ring="Strendu Ring",
  263. right_ring="Acumen Ring",
  264. back="Cornflower Cape"}
  265.  
  266. sets.Precast['Swipe'] = {
  267. head="Hagondes Hat",
  268. body="Hagondes Coat",
  269. hands="Mv. Bazubands +2",
  270. legs="Hagondes Pants",
  271. feet="Hagondes Sabots",
  272. neck="Eddy Necklace",
  273. waist="Penitent's Rope",
  274. left_ear="Novio Earring",
  275. right_ear="Hecate's Earring",
  276. left_ring="Strendu Ring",
  277. right_ring="Acumen Ring",
  278. back="Cornflower Cape"}
  279.  
  280. sets.Precast['Quickstep'] = {
  281. ammo="Honed Tathlum",
  282. head="Whirlpool Mask",
  283. body="Qaaxo Harness",
  284. hands="Qaaxo Mitaines",
  285. legs="Manibozho Brais",
  286. feet="Manibozho boots",
  287. neck="Iqabi Necklace",
  288. waist="Chaac Belt",
  289. left_ear="Heartseeker Earring",
  290. right_ear="Dudgeon Earring",
  291. left_ring="Rajas Ring",
  292. right_ring="Epona's Ring",
  293. back="Letalis Mantle"}
  294.  
  295. sets.Precast['Box Step'] = {
  296. ammo="Honed Tathlum",
  297. head="Whirlpool Mask",
  298. body="Qaaxo Harness",
  299. hands="Qaaxo Mitaines",
  300. legs="Manibozho Brais",
  301. feet="Manibozho boots",
  302. neck="Iqabi Necklace",
  303. waist="Chaac Belt",
  304. left_ear="Heartseeker Earring",
  305. right_ear="Dudgeon Earring",
  306. left_ring="Rajas Ring",
  307. right_ring="Epona's Ring",
  308. back="Letalis Mantle"}
  309.  
  310. sets.Precast['Animated Flourish'] = {
  311. ammo="Honed Tathlum",
  312. head="Whirlpool Mask",
  313. body="Qaaxo Harness",
  314. hands="Qaaxo Mitaines",
  315. legs="Manibozho Brais",
  316. feet="Manibozho boots",
  317. neck="Iqabi Necklace",
  318. waist="Chaac Belt",
  319. left_ear="Heartseeker Earring",
  320. right_ear="Dudgeon Earring",
  321. left_ring="Rajas Ring",
  322. right_ring="Epona's Ring",
  323. back="Letalis Mantle"}
  324.  
  325. sets.Precast['Violent Flourish'] = {
  326. ammo="Honed Tathlum",
  327. head="Whirlpool Mask",
  328. body="Qaaxo Harness",
  329. hands="Qaaxo Mitaines",
  330. legs="Manibozho Brais",
  331. feet="Manibozho boots",
  332. neck="Iqabi Necklace",
  333. waist="Chaac Belt",
  334. left_ear="Heartseeker Earring",
  335. right_ear="Dudgeon Earring",
  336. left_ring="Rajas Ring",
  337. right_ring="Epona's Ring",
  338. back="Letalis Mantle"}
  339.  
  340.  
  341. --Abilities requiring swap AFTER use--
  342.  
  343.  
  344. sets.Precast.ChainAffinity = {
  345. feet="Mavi Kavuk +2"}
  346.  
  347. sets.Precast.BurstAffinity = {
  348. feet="Mavi Basmak +1"}
  349.  
  350. sets.Precast.Efflux = {
  351. legs="Mavi tayt +2"}
  352.  
  353.  
  354. --Other Precast Sets--
  355.  
  356. sets.Precast.FastCast = {
  357. body="Vanir Cotehardie",
  358. hands="Mv. Bazubands +2",
  359. legs="Orvail Pants +1",
  360. feet="Chelona Boots",
  361. neck="Orunmila's Torque",
  362. waist="Cetl Belt",
  363. right_ear="Loquac. Earring",
  364. back="Swith Cape"}
  365.  
  366. sets.Precast.BlueMagic =
  367. set_combine(
  368. sets.Precast.FastCast,
  369. {body="Mavi Mintan +1"})
  370.  
  371.  
  372. -------------------------------------------------------------------------------------------------------------------
  373. --Midcast Sets--
  374. sets.Midcast = {}
  375.  
  376. sets.TH = {}
  377. TH_index = 1
  378.  
  379.  
  380. --Physical Spells--
  381. sets.Physical ={}
  382.  
  383. sets.Physical.index = {'Attack', 'Accuracy', 'DT'}
  384. Physical_index = 1
  385.  
  386. sets.Physical.Attack = {
  387. ammo="Jukukik Feather",
  388. head="Uk'uxkaj Cap",
  389. body="Assim. Jubbah +1",
  390. hands="Qaaxo Mitaines",
  391. legs="Quiahuiz Trousers",
  392. feet="Iuitl Gaiters",
  393. neck="Iqabi Necklace",
  394. waist="Warwolf Belt",
  395. left_ear="Heartseeker Earring",
  396. right_ear="Flame Pearl",
  397. left_ring="Rajas Ring",
  398. right_ring="Pyrosoul Ring",
  399. back="Cornflower Cape"}
  400.  
  401. sets.Physical.Accuracy = {
  402. ammo="Honed Tathlum",
  403. head="Whirlpool Mask",
  404. body="Assim. Jubbah +1",
  405. hands="Qaaxo Mitaines",
  406. legs="Quiahuiz Trousers",
  407. feet="Iuitl Gaiters",
  408. neck="Iqabi Necklace",
  409. waist="Hurch'lan Sash",
  410. left_ear="Heartseeker Earring",
  411. right_ear="Flame Pearl",
  412. left_ring="Rajas Ring",
  413. right_ring="Pyrosoul Ring",
  414. back="Cornflower Cape"}
  415.  
  416. sets.Physical.DT = {
  417. ammo="Jukukik Feather",
  418. head="Uk'uxkaj Cap",
  419. body="Assim. Jubbah",
  420. hands="Iuitl Wristbands",
  421. legs="Quiahuiz Trousers",
  422. feet="Iuitl Gaiters",
  423. neck="Iqabi Necklace",
  424. waist="Warwolf Belt",
  425. left_ear="Heartseeker Earring",
  426. right_ear="Flame Pearl",
  427. left_ring="Rajas Ring",
  428. right_ring="Pyrosoul Ring",
  429. back="Potentia Cape"}
  430.  
  431.  
  432. --Magical Spells--
  433. sets.Magical = {}
  434.  
  435. sets.Magical.index = {'Attack', 'Accuracy', 'DT'}
  436. Magical_index = 1
  437.  
  438. sets.Magical.Attack = {
  439. head="Hagondes Hat",
  440. body="Hagondes Coat",
  441. hands="Mv. Bazubands +2",
  442. legs="Hagondes Pants",
  443. feet="Hagondes Sabots",
  444. neck="Eddy Necklace",
  445. waist="Penitent's Rope",
  446. left_ear="Novio Earring",
  447. right_ear="Hecate's Earring",
  448. left_ring="Strendu Ring",
  449. right_ring="Acumen Ring",
  450. back="Cornflower Cape"}
  451.  
  452. sets.Magical.Accuracy = {
  453. head="Hagondes Hat",
  454. body="Hagondes Coat",
  455. hands="Mv. Bazubands +2",
  456. legs="Hagondes Pants",
  457. feet="Hagondes Sabots",
  458. neck="Eddy Necklace",
  459. waist="Penitent's Rope",
  460. left_ear="Psystorm Earring",
  461. right_ear="Lifestorm Earring",
  462. left_ring="Perception Ring",
  463. right_ring="Sangoma Ring",
  464. back="Cornflower Cape"}
  465.  
  466. sets.Magical.DT = {
  467. head="Hagondes Hat",
  468. body="Hagondes Coat",
  469. hands="Hagondes Cuffs",
  470. legs="Hagondes Pants",
  471. feet="Hagondes Sabots",
  472. neck="Eddy Necklace",
  473. waist="Penitent's Rope",
  474. left_ear="Novio Earring",
  475. right_ear="Hecate's Earring",
  476. left_ring="Strendu Ring",
  477. right_ring="Acumen Ring",
  478. back="Cornflower Cape"}
  479.  
  480.  
  481. --Utility--
  482. sets.Midcast.Skill = {
  483. head="Mirage keffiyeh +2",
  484. neck="Jeweled collar",
  485. left_ear="Loquac. earring",
  486. body="Assim. Jubbah",
  487. hands="Mv. Bazubands +2",
  488. waist="Twilight belt",
  489. legs="Mavi tayt +2",
  490. feet="Iuitl gaiters",
  491. back="Cornflower Cape"}
  492.  
  493. sets.Midcast.Cures = {
  494. head="Hagondes Hat",
  495. body="Assim. Jubbah +1",
  496. hands="Hagondes Cuffs",
  497. legs="Mavi Tayt +2",
  498. feet="Hagondes Sabots",
  499. neck="Imbodla Necklace",
  500. neck="Imbodla Necklace",
  501. waist="Penitent's Rope",
  502. left_ear="Heartseeker Earring",
  503. right_ear="Loquac. Earring",
  504. left_ring="Rajas Ring",
  505. right_ring="Karka Ring",
  506. back="Swith Cape"}
  507.  
  508.  
  509. --Other Magic Sets--
  510.  
  511.  
  512. sets.Midcast.Stoneskin = {
  513. head="Uk'uxkaj Cap",
  514. body="Vanir Cotehardie",
  515. hands="Iuitl Wristbands",
  516. legs="Quiahuiz Trousers",
  517. feet="Hagondes Sabots",
  518. neck="Stone Gorget",
  519. waist="Cetl Belt",
  520. left_ear="Steelflash Earring",
  521. right_ear="Brutal Earring",
  522. left_ring="Karka Ring",
  523. right_ring="Epona's Ring",
  524. back="Atheling Mantle"}
  525.  
  526. sets.Midcast.TH =
  527. set_combine(
  528. sets.Physical.Accuracy,
  529. {waist="Chaac Belt"})
  530.  
  531.  
  532. -------------------------------------------------------------------------------------------------------------------
  533. --Obis--
  534. sets.Obi = {}
  535.  
  536.  
  537. sets.Obi.Fire =
  538. set_combine(
  539. sets.Magical.Attack,
  540. {waist="Karin Obi",
  541. back="Twilight Cape"})
  542.  
  543. sets.Obi.Earth =
  544. set_combine(
  545. sets.Magical.Attack,
  546. {waist="Dorin Obi",
  547. back="Twilight Cape"})
  548.  
  549. sets.Obi.Water =
  550. set_combine(
  551. sets.Magical.Attack,
  552. {waist="Suirin Obi",
  553. back="Twilight Cape"})
  554.  
  555. sets.Obi.Windex=
  556. set_combine(
  557. sets.Magical.Attack,
  558. {waist="Furin Obi",
  559. back="Twilight Cape"})
  560.  
  561. sets.Obi.Ice =
  562. set_combine(
  563. sets.Magical.Attack,
  564. {waist="Hyorin Obi",
  565. back="Twilight Cape"})
  566.  
  567. sets.Obi.Thunder =
  568. set_combine(
  569. sets.Magical.Attack,
  570. {waist="Rarin Obi",
  571. back="Twilight Cape"})
  572.  
  573. sets.Obi.Light =
  574. set_combine(
  575. sets.Magical.Attack,
  576. {waist="Korin Obi",
  577. back="Twilight Cape"})
  578.  
  579. sets.Obi.Dark =
  580. set_combine(
  581. sets.Magical.Attack,
  582. {waist="Anrin Obi",
  583. back="Twilight Cape"})
  584. end
  585.  
  586.  
  587. -------------------------------------------------------------------------------------------------------------------
  588. --Rules to govern when and how to use sets
  589. -------------------------------------------------------------------------------------------------------------------
  590.  
  591.  
  592. -------------------------------------------------------------------------------------------------------------------
  593. --Precast Actions--
  594. function Precast(spell)
  595.  
  596. if spell.action_type == 'Magic' then
  597. equip(sets.Precast.FastCast)
  598. end
  599.  
  600. if spell.type == 'WeaponSkill' then
  601.  
  602. if spell.target.distance > 6.0 then
  603. add_to_chat(167,''..spell.target.name..' is too far can not use '..spell.name..'!!!. Cancelling WeaponSkill ')
  604. cancel_spell()
  605. return
  606.  
  607. elseif spell.name == "Requiescat" then
  608. equip(sets.Requiescat[sets.Requiescat.index[Requiescat_index]])
  609.  
  610. elseif spell.english == "Chant du Cygne" then
  611. equip(sets.ChantDuCygne[sets.ChantDuCygne.index[ChantDuCygne_index]])
  612.  
  613. elseif spell.english == "Sanguine Blade" then
  614. equip(sets.SanguineBlade[sets.SanguineBlade.index[SanguineBlade_index]])
  615.  
  616. else equip(sets.ChantDuCygne.Attack)
  617. end
  618. end
  619.  
  620. --Abilities requiring swap BEFORE use--
  621. if sets.Precast[spell.english] then
  622. equip(sets.Precast[spell.english])
  623. end
  624. end
  625.  
  626. -------------------------------------------------------------------------------------------------------------------
  627. --Midcast Actions--
  628. function midcast(spell,act)
  629.  
  630.  
  631. --Physical Blue Spells--
  632. if
  633. spell.english == 'Foot Kick' or
  634. spell.english == 'Sprout Smack' or
  635. spell.english == 'Wild Oats' or
  636. spell.english == 'Power Attack' or
  637. spell.english == 'Queasyshroom' or
  638. spell.english == 'Battle Dance' or
  639. spell.english == 'Feather Storm' or
  640. spell.english == 'Helldive' or
  641. spell.english == 'Bludgeon' or
  642. spell.english == 'Claw Cyclone' or
  643. spell.english == 'Screwdriver' or
  644. spell.english == 'Grand Slam' or
  645. spell.english == 'Smite of Rage' or
  646. spell.english == 'Pinecome Bomb' or
  647. spell.english == 'Jet Stream' or
  648. spell.english == 'Uppercut' or
  649. spell.english == 'Terror Touch' or
  650. spell.english == 'Mandibular Bite' or
  651. spell.english == 'Sickle Slash' or
  652. spell.english == 'Vertical Cleave' or
  653. spell.english == 'Death Scissors' or
  654. spell.english == 'Empty Thrash' or
  655. spell.english == 'Dimensional Death' or
  656. spell.english == 'Quadrastrike' or
  657. spell.english == 'Bloodrake' or
  658. spell.english == 'Disseverment' or
  659. spell.english == 'Hysteric Barrage' or
  660. spell.english == 'Frenetic Rip' or
  661. spell.english == 'Seedspray' or
  662. spell.english == 'Vanity Dive' or
  663. spell.english == 'Goblin Rush' or
  664. spell.english == 'Paralyzing Triad' or
  665. spell.english == 'Quad. Continuum' or
  666. spell.english == 'Delta Thrust' or
  667. spell.english == 'Cannonball' or
  668. spell.english == 'Glutinous Dart' or
  669. spell.english == 'Benthic Typhoon' or
  670. spell.english == 'Final Sting' or
  671. spell.english == 'Thrashing Assault' or
  672. spell.english == 'Spiral Spin' then
  673.  
  674. equip(sets.Physical[sets.Physical.index[Physical_index]])
  675.  
  676. if buffactive['Chain Affinity'] then
  677. equip(sets.Precast.ChainAffinity)
  678. send_command('@input /echo <----- Chain Affinity gear applied! ----->')
  679. end
  680.  
  681. if buffactive['Efflux'] then
  682. equip(sets.Precast.Efflux)
  683. send_command('@input /echo <----- Efflux gear applied! ----->')
  684. end
  685.  
  686.  
  687. elseif
  688. spell.english == 'Head Butt' or
  689. spell.english == 'Sudden Lunge' or
  690. spell.english == 'Whirl of Rage' or
  691. spell.english == 'Heavy Strike' then
  692.  
  693. if TH_index == 1 then
  694. equip(sets.Physical.Accuracy)
  695.  
  696. elseif TH_index == 2 then
  697. equip(sets.Midcast.TH)
  698. send_command('@input /echo <----- TH applied! ----->')
  699. end
  700.  
  701. if buffactive['Chain Affinity'] then
  702. equip(sets.Precast.ChainAffinity)
  703. send_command('@input /echo <----- Chain Affinity gear applied! ----->')
  704. end
  705.  
  706. if buffactive['Efflux'] then
  707. equip(sets.Precast.Efflux)
  708. send_command('@input /echo <----- Efflux gear applied! ----->')
  709. end
  710.  
  711.  
  712. --Magical Blue Spells--
  713. elseif
  714. spell.english == 'Cursed Sphere' or
  715. spell.english == 'Blastbomb' or
  716. spell.english == 'Poison Breath' or
  717. spell.english == 'Bomb Toss' or
  718. spell.english == 'Death Ray' or
  719. spell.english == 'Digest'or
  720. spell.english == 'Venom Shell' or
  721. spell.english == 'Stinking Gas' or
  722. spell.english == 'Blitzstrahl' or
  723. spell.english == 'Gates of Hades' or
  724. spell.english == 'Leafstorm' or
  725. spell.english == 'Firespit' or
  726. spell.english == 'Acrid Stream' or
  727. spell.english == 'Regurgitation' or
  728. spell.english == 'Corrosive Ooze' or
  729. spell.english == 'Thermal Pulse' or
  730. spell.english == 'Magic Hammer' or
  731. spell.english == 'Evryone. Grudge' or
  732. spell.english == 'Water Bomb' or
  733. spell.english == 'Dark Orb' or
  734. spell.english == 'Thunderbolt' or
  735. spell.english == 'Tem. Upheaval' or
  736. spell.english == 'Embalming Earth' or
  737. spell.english == 'Foul Waters' or
  738. spell.english == 'Rending Deluge' or
  739. spell.english == 'Droning Whirlwind' or
  740. spell.english == 'Charged Whisker' then
  741.  
  742. equip(sets.Magical[sets.index[Magical_index]])
  743.  
  744.  
  745. if spell.element == world.weather_element or spell_element == world.day_element then
  746. equip(sets.Obi[spell.element])
  747. send_command('@input /echo <----- Weather/Day detected!----->')
  748.  
  749. end
  750.  
  751. if buffactive['Burst Affinity'] then
  752. equip(sets.Precast.BurstAffinity)
  753. send_command('@input /echo <----- Burst Affinity gear applied! ----->')
  754. end
  755.  
  756. elseif
  757. spell.english == 'Soporific' or
  758. spell.english == 'Chaotic Eye' or
  759. spell.english == 'Blank Gaze' or
  760. spell.english == 'Sound Blast' or
  761. spell.english == 'Mysterious Light' or
  762. spell.english == 'MP Drainkiss' or
  763. spell.english == 'Frightful Roar' or
  764. spell.english == 'Infrasonics' or
  765. spell.english == 'Barbed Crescent' or
  766. spell.english == 'Tourbillion' or
  767. spell.english == 'Cimicine Discharge' or
  768. spell.english == 'Sub-zero smash' or
  769. spell.english == 'Filamented Hold' or
  770. spell.english == 'MindexBlast' or
  771. spell.english == 'Sandspin' or
  772. spell.english == 'Hecatomb Wave' or
  773. spell.english == 'Dream Flower' or
  774. spell.english == 'Yawn' or
  775. spell.english == 'Sheep Song' or
  776. spell.english == 'Cold Wave' then
  777.  
  778. equip(sets.Magical.Accuracy)
  779.  
  780.  
  781. if spell.element == world.weather_element or spell_element == world.day_element then
  782. equip(sets.Obi[spell.element])
  783. send_command('@input /echo <----- Weather/Day detected!----->')
  784.  
  785. end
  786.  
  787. if buffactive['Burst Affinity'] then
  788. equip(sets.Precast.BurstAffinity)
  789. send_command('@input /echo <----- Burst Affinity gear applied! ----->')
  790. end
  791.  
  792.  
  793. --Others, like cures etc.--
  794. elseif
  795. spell.english == 'Magic Fruit' or
  796. spell.english == 'Plenilune Embrace' or
  797. spell.english == 'Wild Carrot' or
  798. spell.english == 'Healing Breeze' or
  799. spell.english == 'Pollen' then
  800.  
  801. equip(sets.Midcast.Cures)
  802.  
  803. if spell.element == world.weather_element or spell_element == world.day_element then
  804. equip(sets.Obi[spell.element])
  805. send_command('@input /echo <----- Weather/Day detected!----->')
  806. end
  807.  
  808. elseif
  809. spell.english == 'Digest' or
  810. spell.english == 'Blood Saber' or
  811. spell.english == 'Blood Drain' or
  812. spell.english == 'Osmosis' or
  813. spell.english == 'Occultation' or
  814. spell.english == 'Magic Barrier' or
  815. spell.english == 'Diamondhide' or
  816. spell.english == 'Metallic Body' or
  817. spell.english == 'Retinal Glare' then
  818.  
  819. equip(sets.Midcast.Skill)
  820.  
  821. elseif
  822. spell.english == 'Cocoon' or
  823. spell.english == 'Metallic Body' then
  824.  
  825. equip(sets.Midcast.FastCast)
  826. end
  827.  
  828. if spell.type == "Magic" and spell.skill ~= "Blue Magic" then
  829. if spell.english == "Stoneskin" then
  830. equip(sets.Midcast.Stoneskin)
  831.  
  832. else equip(sets.Midcast.FastCast)
  833. end
  834. end
  835. end
  836.  
  837.  
  838. -------------------------------------------------------------------------------------------------------------------
  839. --Aftercast Actions--
  840. function aftercast(spell)
  841.  
  842. --Warnings when crowd control is wearing off--
  843. if spell.english == 'Dream Flower' or spell.english == "Sheep Song"
  844. then send_command('@wait 50;input /echo <----- '.Spell.english..' is wearing off in 10 seconds ----->')
  845. elseif spell.english == 'Soporific'
  846. then send_command('@wait 80;input /echo <----- '.Spell.english..' is wearing off in 10 seconds ----->')
  847. end
  848.  
  849. if player.status == 'Engaged'
  850. then equip(sets.Engaged[sets.Engaged.index[Engaged_index]])
  851. else equip(sets.Idle[sets.Idle.index[Idle_index]])
  852. end
  853. end
  854.  
  855.  
  856. function status_change(new,old)
  857. if new == 'Engaged'
  858. then equip(sets.Engaged[sets.Engaged.index[Engaged_index]])
  859. else equip(sets.Idle[sets.Idle.index[Idle_index]])
  860. end
  861. end
  862.  
  863. function equip_Engaged_set()
  864. if Engaged_index == 1 and ( (buffactive['march'] == 2 and buffactive['haste']) or (buffactive['embrava'] and buffactive['haste']) )
  865. then equip(sets.Engaged.Marches)
  866. else equip(sets.Engaged[sets.Engaged.index[Engaged_index]])
  867. end
  868. end
  869.  
  870.  
  871. -------------------------------------------------------------------------------------------------------------------
  872. -- New commands created by GearSwap for use in-game
  873. -------------------------------------------------------------------------------------------------------------------
  874.  
  875.  
  876. --//gs c melee toggles Melee and WS sets between Attack, Accuracy, and DT
  877. --//gs c physical toggles Physical Blue Magic between Attack, Accuracy, and DT
  878. --//gs c magical toggles Magical Blue Magic between Attack, Accuracy, and DT
  879. --//gs c idle toggles Idle set between Standard and DT
  880. --//gs c th toggles on/off TH for stun moves
  881. --//gs c active Lists settings for all variable sets
  882. --//gs c lockstyle Puts on lockstyle set and locks it
  883.  
  884.  
  885. function self_command(command)
  886.  
  887.  
  888. if command == 'melee' then
  889. Engaged_index = Engaged_index +1
  890. Requiescat_index = Requiescat_index +1
  891. ChantDuCygne_index = ChantDuCygne_index +1
  892. SanguineBlade_index = SanguineBlade_index +1
  893.  
  894. if Engaged_index > #sets.Engaged.index then
  895. Engaged_index = 1
  896. end
  897.  
  898. if Requiescat_index > #sets.Requiescat.index then
  899. Requiescat_index = 1
  900. end
  901.  
  902. if ChantDuCygne_index > #sets.ChantDuCygne.index then
  903. ChantDuCygne_index = 1
  904. end
  905.  
  906. if SanguineBlade_index > #sets.SanguineBlade.index then
  907. SanguineBlade_index = 1
  908. end
  909.  
  910. send_command('@input /echo <----- Engaged Set changed to '..sets.Engaged.index[Engaged_index]..' ----->')
  911. send_command('@input /echo <----- Requiescat Set changed to '..sets.Requiescat.index[Requiescat_index]..' ----->')
  912. send_command('@input /echo <----- Chant du Cygne Set changed to '..sets.ChantDuCygne.index[ChantDuCygne_index]..' ----->')
  913. send_command('@input /echo <----- Sanguine Blade set changed to '..sets.SanguineBlade.index[SanguineBlade_index]..' ----->')
  914.  
  915. equip(sets.Engaged[sets.Engaged.index[Engaged_index]])
  916.  
  917.  
  918. elseif command == 'physical' then
  919. Midcast.BlueMagic.Physical_index = Midcast.BlueMagic.Physical_index +1
  920.  
  921. if Midcast.BlueMagic.Physical_index > #sets.Midcast.BlueMagic.Physical.index then
  922. Midcast.BlueMagic.Physical_index = 1
  923. end
  924.  
  925. send_command('@input /echo <----- Physical Blue Magic set changed to '..sets.Midcast.BlueMagic.Physical.index[Midcast.BlueMagic.Physical_index]..' ----->')
  926.  
  927. equip(sets.Midcast.BlueMagic.Physical[sets.Midcast.BlueMagic.Physical.index[Midcast.BlueMagic.Physical_index]])
  928.  
  929.  
  930. elseif command == 'magical' then
  931. Midcast.BlueMagic.Magical_index = Midcast.BlueMagic.Magical_index +1
  932.  
  933. if Midcast.BlueMagic.Magical_index > #sets.Midcast.BlueMagic.Magical.index then
  934. Midcast.BlueMagic.Magical_index = 1
  935. end
  936.  
  937. send_command('@input / echo <----- Magical Blue Magic set changed to '..sets.Midcast.BlueMagic.Magical.index[Midcast.BlueMagic.Magical_index]..' ----->')
  938.  
  939. equip(sets.Midcast.BlueMagic.Magical[sets.Midcast.BlueMagic.Magical.index[Midcast.BlueMagic.Magical_index]])
  940.  
  941.  
  942. elseif command == 'idle' then
  943. Idle_index= Idle_index +1
  944.  
  945. if Idle_index> #sets.Idle.index then
  946. Idle_index = 1
  947. end
  948.  
  949. send_command('@input /echo <----- Idle Set changed to '..sets.Idle.index[Idle_index]..' ----->')
  950.  
  951. equip(sets.Idle[sets.Idle.index[Idle_index]])
  952.  
  953.  
  954. elseif command == 'th' then
  955. TH_index = TH_index +1
  956.  
  957. if TH_index == 1 then
  958. send_command('@input /echo <----- TH on stun spells: OFF ----->')
  959.  
  960. elseif TH_index == 2 then
  961. send_command('@input /echo <----- TH on stun spells: ON ----->')
  962.  
  963. elseif TH_index > 2 then
  964. TH_index = 1
  965. send_command('@input /echo <----- TH on stun spells: OFF ----->')
  966. end
  967.  
  968.  
  969. elseif command == 'active' then
  970. add_to_chat(207, 'Idle Set: '..sets.Idle.index[Idle_index]..'')
  971. add_to_chat(207, 'Melee Set: '..sets.Engaged.index[Engaged_index]..'')
  972. add_to_chat(207, 'Requiescat Set: '..sets.Requiescat.index[Requiescat_index]..'')
  973. add_to_chat(207, 'Chant du Cygne Set: '..sets.ChantDuCygne.index[ChantDuCygne_index]..'')
  974. add_to_chat(207, 'Sanguine Blade Set: '..sets.SanguineBlade.index[SanguineBlade_index]..'')
  975. add_to_chat(207, 'Physical Spell Set: '..sets.Midcast.BlueMagic.Physical.index[Midcast.BlueMagic.Physical_index]..'')
  976. add_to_chat(207, 'Magical Spell Set: '..sets.Midcast.BlueMagic.Magical.index[Midcast.BlueMagic.Magical_index]..'')
  977.  
  978. if TH_index == 2 then
  979. add_to_chat(207, 'TH gear is being applied to stun spells')
  980. end
  981.  
  982.  
  983. elseif command == 'lockstyle' then
  984. equip(sets.Idle.Lockstyle)
  985. send_command('@input /lockstyle on')
  986.  
  987. if player.status == 'Engaged' then
  988. if Engaged_index == 1 and ( (buffactive['march'] == 2 and buffactive['haste']) or (buffactive['embrava'] and buffactive['haste']) ) then
  989. equip(sets.Engaged['Marches'])
  990. else equip(sets.Engaged[sets.Engaged.index[Engaged_index]])
  991. end
  992.  
  993. else equip(sets.Idle[sets.Idle.index[Idle_index]])
  994. end
  995. end
  996. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement