Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.78 KB | None | 0 0
  1. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  2. --------------------------------------------------------------------------------------- S c h o l a r -- K e v t a r u ---------------------------------------------------------------------------------------------------------
  3. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  4.  
  5. function get_sets()
  6.  
  7. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  8. --------------------------------------
  9. -- KEYBINDS
  10. --------------------------------------
  11. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  12.  
  13. send_command('bind f9 gs c toggle Idle set')
  14. send_command('bind f10 gs c toggle Nuke set')
  15.  
  16. function file_unload()
  17.  
  18. send_command('unbind ^f9')
  19. send_command('unbind ^f10')
  20.  
  21. send_command('unbind !f9')
  22. send_command('unbind !f10')
  23.  
  24. send_command('unbind f9')
  25. send_command('unbind f10')
  26.  
  27. end
  28.  
  29. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  30. --------------------------------------
  31. -- IDLE SETS
  32. --------------------------------------
  33. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  34.  
  35. sets.Idle = {}
  36. sets.Idle.index = {'Refresh', 'PDT', 'MDT'}
  37. Idle_ind = 1
  38.  
  39. sets.Idle.Refresh = {
  40. main="Terra's Staff",
  41. sub="Vivid Strap +1",
  42. range="",
  43. ammo="Phantom Tathlum",
  44. head="Scholar's Mortarboard",
  45. neck="Mrc.Mjr. Charm",
  46. ear1="Colossus's Earring",
  47. ear2="Loquacious Earring",
  48. body="Argute Gown +1",
  49. hands="Merman's Bangles",
  50. ring1="Defending Ring",
  51. ring2="Balrahn's Ring",
  52. back="Shadow Mantle",
  53. waist="Lieutenant's Sash",
  54. legs="Goliard Trews",
  55. feet="Herald's Gaiters"
  56. }
  57.  
  58. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  59.  
  60. sets.Idle.PDT = {
  61. main="Terra's Staff",
  62. sub="Staff Strap",
  63. range="",
  64. ammo="Hedgehog Bomb",
  65. head="Scholar's Mortarboard",
  66. neck="Mrc.Mjr. Charm",
  67. ear1="Colossus's Earring",
  68. ear2="Loquacious Earring",
  69. body="Argute Gown +1",
  70. hands="Merman's Bangles",
  71. ring1="Defending Ring",
  72. ring2="Jelly Ring",
  73. back="Shadow Mantle",
  74. waist="Lieutenant's Sash",
  75. legs="Goliard Trews",
  76. feet="Herald's Gaiters"
  77. }
  78.  
  79. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  80.  
  81. sets.Idle.MDT = {
  82. main="Kebbie",
  83. sub="Vivid Strap +1",
  84. range="",
  85. ammo="Phantom Tathlum",
  86. head="Scholar's Mortarboard",
  87. neck="Jeweled Collar +1",
  88. ear1="Merman's Earring",
  89. ear2="Merman's Earring",
  90. body="Argute Gown +1",
  91. hands="Merman's Bangles",
  92. ring1="Defending Ring",
  93. ring2="Shadow Ring",
  94. back="Hexerei Cape",
  95. waist="Lieutenant's Sash",
  96. legs="Goliard Trews",
  97. feet="Herald's Gaiters"
  98. }
  99.  
  100. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  101.  
  102. sets.Idle.Healing = {
  103. main="Chatoyant Staff",
  104. sub="Staff Strap",
  105. range="",
  106. ammo="Hedgehog Bomb",
  107. head="Scholar's Mortarboard",
  108. neck="Mrc.Mjr. Charm",
  109. ear1="Relaxing Earring",
  110. ear2="Antivenom Earring",
  111. body="Mahatma Houppelande",
  112. hands="Genie Gages",
  113. ring1="Celestial Ring",
  114. ring2="Balrahn's Ring",
  115. back="Invigorating Cape",
  116. waist="Qiqirn Sash +1",
  117. legs="Baron's Slops",
  118. feet="Goliard Clogs"
  119. }
  120.  
  121. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  122. --------------------------------------
  123. -- PRECAST SETS
  124. --------------------------------------
  125. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  126.  
  127. sets.precast = {}
  128.  
  129. sets.precast.FC = {
  130. main="Terra's Staff",
  131. sub="Vivid Strap +1",
  132. range="",
  133. ammo="Phantom Tathlum",
  134. head="Walahra Turban",
  135. neck="Mrc.Mjr. Charm",
  136. ear1="Beta Earring",
  137. ear2="Loquacious Earring",
  138. body="Goliard Saio",
  139. hands="Merman's Bangles",
  140. ring1="Imperial Ring",
  141. ring2="Pi Ring",
  142. back="Veela Cape",
  143. waist="Ninurta's Sash",
  144. legs="Neit's Slops",
  145. feet="Rostrum Pumps"
  146. }
  147.  
  148. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  149. --------------------------------------
  150. -- MIDCAST SETS
  151. --------------------------------------
  152. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  153.  
  154. sets.midcast = {}
  155.  
  156. sets.midcast.Haste = {
  157. main="Terra's Staff",
  158. sub="Vivid Strap +1",
  159. range="",
  160. ammo="Phantom Tathlum",
  161. head="Walahra Turban",
  162. neck="Mrc.Mjr. Charm",
  163. ear1="Beta Earring",
  164. ear2="Loquacious Earring",
  165. body="Goliard Saio",
  166. hands="Merman's Bangles",
  167. ring1="Imperial Ring",
  168. ring2="Pi Ring",
  169. back="Veela Cape",
  170. waist="Ninurta's Sash",
  171. legs="Neit's Slops",
  172. feet="Rostrum Pumps",
  173. }
  174.  
  175. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  176. --------------------------------------
  177. -- CURING SETS
  178. --------------------------------------
  179. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  180.  
  181. sets.midcast.Cure = {
  182. ----midcast check for lightarts/equip Scholar's Pants/else Mahatma
  183. main="Chatoyant Staff",
  184. sub="Vivid Strap +1",
  185. range="",
  186. ammo="Hedgehog Bomb",
  187. head="Walahra Turban",
  188. neck="Fylgja torque +1",
  189. ear1="Celestial Earring",
  190. ear2="Loquacious Earring",
  191. body="Goliard Saio",
  192. hands="Bricta's Cuffs",
  193. ring1="Karka Ring",
  194. ring2="Pi Ring",
  195. back="Dew Silk Cape +1",
  196. waist="Pythia Sash +1",
  197. legs="Mahatma Slops",
  198. feet="Argute Loafers"
  199. }
  200.  
  201. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  202.  
  203. sets.midcast.CureStorm = {
  204. ----midcast check for lightarts/equip Scholar's Pants/else Mahatma
  205. main="Chatoyant Staff",
  206. sub="Vivid Strap +1",
  207. range="",
  208. ammo="Hedgehog Bomb",
  209. head="Walahra Turban",
  210. neck="Fylgja torque +1",
  211. ear1="Celestial Earring",
  212. ear2="Loquacious Earring",
  213. body="Goliard Saio",
  214. hands="Bricta's Cuffs",
  215. ring1="Karka Ring",
  216. ring2="Pi Ring",
  217. back="Dew Silk Cape +1",
  218. waist="Hachirin-no-Obi",
  219. legs="Mahatma Slops",
  220. feet="Argute Loafers"
  221. }
  222.  
  223. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  224. --------------------------------------
  225. -- ENHANCING SETS
  226. --------------------------------------
  227. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  228.  
  229. sets.midcast.Enhancing = {
  230. main="Terra's Staff",
  231. sub="Vivid Strap +1",
  232. range="",
  233. ammo="Hedgehog Bomb",
  234. head="Walahra Turban",
  235. neck="Enhancing torque",
  236. ear1="Augmenting Earring",
  237. ear2="Loquacious Earring",
  238. body="Goliard Saio",
  239. hands="Merman's Bangles",
  240. ring1="Defending Ring",
  241. ring2="Pi Ring",
  242. back="Merciful Cape",
  243. waist="Ninurta's Sash",
  244. legs="Scholar's Pants",
  245. feet="Rostrum Pumps"
  246. }
  247.  
  248. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  249.  
  250. sets.midcast.Stoneskin = {
  251. main="Alkalurops",
  252. sub="Vivid Strap +1",
  253. range="",
  254. ammo="Hedgehog Bomb",
  255. head="Walahra Turban",
  256. neck="Stone Gorget",
  257. ear1="Celestial Earring",
  258. ear2="Loquacious Earring",
  259. body="Mahatma Houppelande",
  260. hands="Devotee's Mitts +1",
  261. ring1="Karka Ring",
  262. ring2="Pi Ring",
  263. back="Dew Silk Cape +1",
  264. waist="Pythia Sash +1",
  265. legs="Mahatma Slops",
  266. feet="Rostrum Pumps"
  267. }
  268.  
  269. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  270. --------------------------------------
  271. -- ENFEEBLING SETS
  272. --------------------------------------
  273. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  274.  
  275. sets.midcast.INTenfeeble = {
  276. main="Chatoyant Staff",
  277. sub="Vivid Strap +1",
  278. range="Aureole",
  279. ammo="",
  280. head="Elite Beret +1",
  281. neck="Enfeebling Torque",
  282. ear1="Incubus Earring +1",
  283. ear2="Enfeebling Earring",
  284. body="Scholar's Gown +1",
  285. hands="Argute Bracers +1",
  286. ring1="Omega Ring",
  287. ring2="Balrahn's Ring",
  288. back="Altruistic Cape",
  289. waist="Penitent's Rope",
  290. legs="Mahatma Slops",
  291. feet="Goliard Clogs"
  292. }
  293.  
  294. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  295.  
  296. sets.midcast.MNDenfeeble = {}
  297.  
  298. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  299.  
  300. sets.midcast.Silence = {
  301. main="Chatoyant Staff",
  302. sub="Wind Grip",
  303. range="Aureole",
  304. ammo="",
  305. head="Elite Beret +1",
  306. neck="Enfeebling Torque",
  307. ear1="Incubus Earring +1",
  308. ear2="Enfeebling Earring",
  309. body="Scholar's Gown +1",
  310. hands="Argute Bracers +1",
  311. ring1="Omega Ring",
  312. ring2="Balrahn's Ring",
  313. back="Altruistic Cape",
  314. waist="Pythia Sash +1",
  315. legs="Mahatma Slops",
  316. feet="Goliard Clogs"
  317. }
  318.  
  319. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  320.  
  321. sets.midcast.StunUp = {
  322. main="Chatoyant Staff",
  323. sub="Vivid Strap +1",
  324. range="Aureole",
  325. ammo="",
  326. head="Argute Mortarboard +1",
  327. neck="Aesir Torque",
  328. ear1="Dark Earring",
  329. ear2="Abyssal Earring",
  330. body="Scholar's Gown +1",
  331. hands="Goliard Cuffs",
  332. ring1="Omega Ring",
  333. ring2="Balrahn's Ring",
  334. back="Merciful Cape",
  335. waist="Ninurta's Sash",
  336. legs="Argute Pants +1",
  337. feet="Argute Loafers"
  338. }
  339.  
  340. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  341.  
  342. sets.midcast.StunDown = {
  343. main="Chatoyant Staff",
  344. sub="Vivid Strap +1",
  345. range="Aureole",
  346. ammo="",
  347. head="Argute Mortarboard +1",
  348. neck="Aesir Torque",
  349. ear1="Dark Earring",
  350. ear2="Abyssal Earring",
  351. body="Scholar's Gown +1",
  352. hands="Goliard Cuffs",
  353. ring1="Omega Ring",
  354. ring2="Balrahn's Ring",
  355. back="Merciful Cape",
  356. waist="Ninurta's Sash",
  357. legs="Argute Pants +1",
  358. feet="Scholar's Loafers"
  359. }
  360.  
  361. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  362.  
  363. sets.midcast.Drain = {
  364. main="Chatoyant Staff",
  365. sub="Vivid Strap +1",
  366. range="Aureole",
  367. ammo="",
  368. head="Walahra Turban",
  369. neck="Aesir Torque",
  370. ear1="Dark Earring",
  371. ear2="Abyssal Earring",
  372. body="Scholar's Gown +1",
  373. hands="Vampiric Mitts",
  374. ring1="Omega Ring",
  375. ring2="Balrahn's Ring",
  376. back="Merciful Cape",
  377. waist="Ninurta's Sash",
  378. legs="Argute Pants +1",
  379. feet="Vampiric Boots"
  380. }
  381.  
  382. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  383. --------------------------------------
  384. -- NUKING SETS
  385. --------------------------------------
  386. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  387.  
  388. sets.Nuke = {}
  389. sets.Nuke.index = {'NoResist', 'Resist'}
  390. Nuke_ind = 1
  391.  
  392. sets.Nuke.NoResist = {
  393. main="Chatoyant Staff",
  394. sub="Vivid Strap +1",
  395. range="",
  396. ammo="Phantom Tathlum",
  397. head="Ree's Headgear",
  398. neck="Lemegeton Medallion +1",
  399. ear1="Moldavite Earring",
  400. ear2="Novio Earring",
  401. body="Mahatma Houppelande",
  402. hands="Yigit Gages",
  403. ring1="Galdr Ring",
  404. ring2="Tamas Ring",
  405. back="Hecate's Cape",
  406. waist="Penitent's Rope",
  407. legs="Mahatma Slops",
  408. feet="Yigit Crackows"
  409. }
  410.  
  411. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  412.  
  413. sets.Nuke.Resist = {
  414. ----Placeholder, need to create/test a resist set that matters/works
  415. main="Chatoyant Staff",
  416. sub="Vivid Strap +1",
  417. range="",
  418. ammo="Phantom Tathlum",
  419. head="Ree's Headgear",
  420. neck="Lemegeton Medallion +1",
  421. ear1="Moldavite Earring",
  422. ear2="Novio Earring",
  423. body="Mahatma Houppelande",
  424. hands="Yigit Gages",
  425. ring1="Galdr Ring",
  426. ring2="Tamas Ring",
  427. back="Hecate's Cape",
  428. waist="Penitent's Rope",
  429. legs="Mahatma Slops",
  430. feet="Yigit Crackows"
  431. }
  432.  
  433. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  434.  
  435. sets.Nuke.Helix = {
  436. main="Chatoyant Staff",
  437. sub="Vivid Strap +1",
  438. range="",
  439. ammo="Phantom Tathlum",
  440. head="Ree's Headgear",
  441. neck="Uggalepih Pendant",
  442. ear1="Moldavite Earring",
  443. ear2="Novio Earring",
  444. body="Mahatma Houppelande",
  445. hands="Yigit Gages",
  446. ring1="Galdr Ring",
  447. ring2="Tamas Ring",
  448. back="Hecate's Cape",
  449. waist="Penitent's Rope",
  450. legs="Mahatma Slops",
  451. feet="Yigit Crackows"
  452. }
  453.  
  454. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  455.  
  456. sets.Obi = {}
  457. sets.Obi = {waist='Hachirin-no-Obi'}
  458.  
  459. end
  460.  
  461.  
  462. --------------------------------------
  463. -- RULES
  464. --------------------------------------
  465.  
  466. function status_change(new,old)
  467. if new == 'Resting'
  468. then equip(sets.Idle.Healing)
  469. end
  470. end
  471.  
  472. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  473. --------------------------------------
  474. -- SPELL TABLES
  475. --------------------------------------
  476. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  477.  
  478. Barspells = S{'Barfira','Barfire','Barwatera','Barwater','Barstonra','Barstone','Baraera','Baraero','Barblizzara','Barblizzard','Barthundra','Barthunder','Phalanx','Embrava'}
  479.  
  480. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  481.  
  482. Cure = S{'Cure','Cure II','Cure III','Cure IV','Curaga','Curaga II'}
  483.  
  484. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  485.  
  486. Debuffs = S{'Bind','Blind','Dispel','Gravity','Sleep','Poison','Poison II','Sleep II','Sleepga'}
  487.  
  488. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  489.  
  490. General = S{'Paralyna','Silena','Viruna','Erase','Stona','Blindna','Poisona','Cursna','Protect','Protect II','Protect III','Protect IV','Protectra','Protectra II','Shell','Shell II','Shell III','Shell IV','Shellra','Shellra II','Regen','Regen II','Regen III','Blink','Aquaveil','Warp','Utsusemi: Ichi','Utsusemi: Ni','Klimaform','Sandstorm','Firestorm','Rainstorm','Windstorm','Hailstorm','Thunderstorm','Voidstorm','Aurorastorm'}
  491.  
  492. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  493.  
  494. Helix = S{'Geohelix','Hydrohelix','Anemohelix','Pyrohelix','Cryohelix','Ionohelix','Noctohelix','Luminohelix','Kaustra'}
  495.  
  496. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  497.  
  498. Nukes = S{'Stone','Stone II','Stone III','Stone IV','Stonega','Stonega II','Stonega III','Quake','Quake II','Water','Water II','Water III','Water IV','Waterga','Waterga II','Waterga III','Flood','Flood II','Aero','Aero II','Aero III','Aero IV','Aeroga','Aeroga II','Aeroga III','Tornado','Tornado II','Fire','Fire II','Fire III','Fire IV','Firaga','Firaga II','Firaga III','Flare','Flare II','Blizzard','Blizzard II','Blizzard III','Blizzard IV','Blizzaga','Blizzaga II','Blizzaga III','Freeze','Freeze II','Thunder','Thunder II','Thunder III','Thunder IV','Thundaga','Thundaga II','Thundaga III','Burst','Burst II'}
  499.  
  500. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  501. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  502.  
  503. function precast(spell)
  504.  
  505. if spell.type == 'WhiteMagic'
  506. or spell.type == 'BlackMagic'
  507. or spell.type == 'Ninjutsu'
  508. then equip(sets.precast.FC)
  509. end
  510. end
  511.  
  512. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  513.  
  514. function midcast(spell)
  515.  
  516. if General:contains(spell.name)
  517. then equip(sets.midcast.Haste)
  518. end
  519.  
  520. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  521.  
  522. if Cure:contains(spell.name)
  523. then if (spell.element == world.day_element or spell.element == world.weather_element)
  524. or buffactive == "Aurorastorm"
  525. then equip(sets.midcast.CureStorm)
  526. else equip(sets.midcast.Cure)
  527. end
  528. end
  529.  
  530. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  531.  
  532. if Barspells:contains(spell.name)
  533. then equip(sets.midcast.Enhancing)
  534. end
  535.  
  536. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  537.  
  538. if spell.english == 'Stoneskin'
  539. then equip(sets.midcast.Stoneskin)
  540. end
  541.  
  542. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  543.  
  544. if Debuffs:contains(spell.name)
  545. then equip(sets.midcast.INTenfeeble)
  546. end
  547.  
  548. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  549.  
  550. if spell.english == 'Paralyze'
  551. or spell.english == 'Slow'
  552. then equip(sets.midcast.MNDenfeeble)
  553. end
  554.  
  555. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  556.  
  557. if spell.english == 'Silence'
  558. then equip(sets.midcast.Silence)
  559. end
  560.  
  561. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  562.  
  563. if spell.english == 'Drain'
  564. or spell.english == 'Aspir'
  565. then equip(sets.midcast.Drain)
  566. end
  567.  
  568. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  569.  
  570. if Helix:contains(spell.name)
  571. then equip(sets.Nuke.Helix)
  572. end
  573.  
  574. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  575.  
  576. if spell.english == 'Stun'
  577. then if (buffactive.alacrity)
  578. then equip(sets.midcast.StunUp)
  579. else equip(sets.midcast.StunDown)
  580. end
  581. end
  582.  
  583. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  584.  
  585. if Nukes:contains(spell.name)
  586. then if (spell.element == world.day_element or spell.element == world.weather_element)
  587. then equip(equip(sets.Nuke[sets.Nuke.index[Nuke_ind]]), sets.Obi)
  588. else equip(sets.Nuke[sets.Nuke.index[Nuke_ind]])
  589. end
  590. end
  591. end
  592.  
  593. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  594.  
  595. function aftercast(spell)
  596. if player.status == 'Engaged'
  597. then equip(sets.TP)
  598. else equip(sets.Idle[sets.Idle.index[Idle_ind]])
  599. end
  600.  
  601. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  602.  
  603. if spell.english == 'Sleep' or spell.english == 'Sleepga'
  604. then send_command('@wait 50;input /echo ------- '..spell.english..' is wearing off in 10 seconds -------')
  605. elseif spell.english == 'Sleep II' or spell.english == 'Sleepga II'
  606. then send_command('@wait 80;input /echo ------- '..spell.english..' is wearing off in 10 seconds -------')
  607. end
  608.  
  609. end
  610.  
  611. ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  612.  
  613. function self_command(command)
  614. if command == 'toggle Idle set'
  615. then Idle_ind = Idle_ind +1
  616. if Idle_ind > #sets.Idle.index
  617. then Idle_ind = 1
  618. end
  619. send_command('@input /echo -------- Idle ('..sets.Idle.index[Idle_ind]..') --------')
  620. equip(sets.Idle[sets.Idle.index[Idle_ind]])
  621. elseif command == 'toggle Nuke set'
  622. then Nuke_ind = Nuke_ind +1
  623. if Nuke_ind > #sets.Nuke.index then Nuke_ind = 1
  624. end
  625. send_command('@input /echo -------- Nuke ('..sets.Nuke.index[Nuke_ind]..') --------')
  626. equip(sets.Nuke[sets.Nuke.index[Nuke_ind]])
  627. elseif command == 'equip Idle set'
  628. then equip(sets.Idle[sets.Idle.index[Idle_ind]])
  629. elseif command == 'equip Nuke set'
  630. then equip(sets.Nuke[sets.Nuke.index[Nuke_ind]])
  631. end
  632. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement