Guest User

Kensagaku BLU

a guest
Jun 30th, 2015
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 22.57 KB | None | 0 0
  1. function get_sets()
  2. --Spell Classification
  3. Healing = S{'Pollen', 'Healing Breeze', 'Wild Carrot', 'Magic Fruit', 'White Wind', 'Plenilune Embrace', 'Restoral'}
  4. Recast = S{'Cocoon', 'Metallic Body', 'Refueling', 'Feather Barrier', 'Memento Mori', 'Zephyr Mantle', 'Warm-Up', 'Amplification', 'Triumphant Roar', 'Saline Coat', 'Reactor Cool', 'Exuviation', 'Regeneration', 'Animating Wail', 'Battery Charge', 'Fantod', 'Barrier Tusk', 'Orcish Counterstance', 'Harden Shell', 'Pyric Bulwark', 'Carcharian Verve', 'Erratic Flutter', 'Winds of Promy.', 'Self-Destruct'}
  5. RecastSkill = S{'Diamondhide', 'Magic Barrier', 'Occultation'}
  6. Debuff = S{'Sheep Song', 'Soporific', 'Chaotic Eye', 'Sound Blast', 'Blank Gaze', 'Venom Shell', 'Stinking Gas', 'Awful Eye', 'Geist Wall', 'Jettatura', 'Frightful Roar', 'Cold Wave', 'Filamented Hold', 'Light of Penance', 'Voracious Trunk', 'Feather Tickle', 'Yawn', 'Infrasonics', 'Sandspray', 'Enervation', 'Lowing', 'Temporal Shift', 'Actinic Burst', 'Cimicine Discharge', 'Demoralizing Roar', 'Auroral Drape', 'Dream Flower', 'Reaving Wind', 'Mortal Ray', 'Blistering Roar', 'Absolute Terror', '1000 Needles'}
  7. Magical = S{'Sandspin', 'Cursed Sphere', 'Blastbomb', 'Bomb Toss', 'Death Ray', 'Mysterious Light', 'Blitzstrahl', 'Magnetite Cloud', 'Ice Break', 'Hecatomb Wave', 'Eyes on Me', 'Maelstrom', 'Corrosive Ooze', 'Firespit', 'Regurgitation', 'Mind Blast', 'Magic Hammer', 'Acrid Stream', 'Leafstorm', 'Blazing Bound', 'Thermal Pulse', 'Charged Whisker', "Everyone's Grudge", 'Water Bomb', 'Dark Orb', 'Thunderbolt', 'Vapor Spray', 'Gates of Hades', 'Tempestuous Upheaval', 'Embalming Earth', 'Rending Deluge', 'Foul Waters', 'Retinal Glare', 'Droning Whirlwind', 'Subduction', 'Diffusion Ray', 'Rail Cannon', 'Uproot', 'Crashing Thunder', 'Polar Roar', 'Molting Plumage', 'Nectarous Deluge', 'Searing Tempest', 'Blinding Fulgor', 'Spectral Floe', 'Scouring Spate', 'Anvil Lightning', 'Silent Storm', 'Entomb', 'Tenebral Crush', 'Palling Salvo'}
  8. SkillDrain = S{'Blood Drain', 'Digest', 'MP Drainkiss', 'Blood Saber', 'Osmosis', 'Atra. Libations'}
  9. Breath = S{'Poison Breath', 'Radiant Breath', 'Flying Hip Press', 'Bad Breath', 'Frost Breath', 'Heat Breath', 'Thunder Breath', 'Wind Breath'}
  10. Stuns = S{'Head Butt', 'Frypan', 'Whirl of Rage', 'Tail Slap', 'Sudden Lunge'}
  11. Physical = S{'Foot Kick', 'Sprout Smack', 'Wild Oats', 'Power Attack', 'Queasyshroom', 'Battle Dance', 'Feather Storm', 'Helldive', 'Bludgeon', 'Claw Cyclone', 'Screwdriver', 'Grand Slam', 'Smite of Rage', 'Pinecomb Bomb', 'Jet Stream', 'Uppercut', 'Terror Touch', 'Mandibular Bite', 'Sickle Slash', 'Dimensional Death', 'Spiral Spin', 'Death Scissors', 'Seedspray', 'Body Slam', 'Hydro Shot', 'Frenetic Rip', 'Spinal Cleave', 'Hysteric Barrage', 'Asuran Claws', 'Cannonball', 'Disseverment', 'Sub-Zero Smash', 'Vertical Cleave', 'Final Sting', 'Goblin Rush', 'Vanity Dive', 'Benthic Typhoon', 'Quad. Continuum', 'Empty Thrash', 'Delta Thrust', 'Heavy Strike', 'Quadrastrike', 'Tourbillon', 'Amorphic Spikes', 'Barbed Crescent', 'Bilgestorm', 'Bloodrake', 'Glutinous Dart', 'Paralyzing Triad', 'Thrashing Assault', 'Sinker Drill', 'Sweeping Gouge', 'Saurian Slide'}
  12.  
  13. --Variables
  14. idleset = 1 --1 = Standard, 2 = DT
  15. accmode = 1 -- 1 = Standard, 2 = Light Acc, 3 = Heavy Acc
  16. engagemode = 1 -- 1 = Standard, 2 = DT
  17.  
  18. --Idle Sets
  19. sets.idle = {}
  20.  
  21. sets.idle.standard = {ammo="Vanir Battery",
  22. head="", neck="Twilight Torque", lear="Brutal Earring", rear="Ethereal Earring",
  23. body="Respite Cloak", hands="Serpentes Cuffs", lring="Dark Ring", rring="Dark Ring",
  24. back="Iximulew Cape", waist="Flume Belt", legs="Blood Cuisses", feet="Serpentes Sabots"}
  25.  
  26. sets.idle.DT = {ammo="Vanir Battery",
  27. head="Whirlpool Mask", neck="Twilight Torque", lear="Brutal Earring", rear="Ethereal Earring",
  28. body="Emet Harness", hands="Umuthi Glovse", lring="Dark Ring", rring="Dark Ring",
  29. back="Iximulew Cape", waist="Flume Belt", legs="Quiahuiz Trousers", feet="Qaaxo Leggings"}
  30.  
  31. --Precast Sets
  32. sets.precast = {}
  33.  
  34. sets.precast.FC = {head="Athos's Chapeau", neck="Jeweled Collar", lear="Enchntr. Earring +1", rear="Loquac. Earring",
  35. body="Dread Jupon", hands="Thaumas Gloves", lring="Weatherspoon Ring",
  36. back="Swith Cape", waist="Witful Belt", legs="Blood Cuisses", feet="Chelona Boots"}
  37.  
  38. sets.precast.blue = set_combine(sets.precast.FC, {body="Mavi Mintan +2"})
  39.  
  40. sets.precast.stoneskin = set_combine(sets.precast.FC, {waist="Siegel Sash"})
  41.  
  42. --Midcast Sets
  43. sets.midcast = {}
  44.  
  45. sets.midcast.cure = {head="Assimilator's Keffiyeh +1", neck="Phalaina Locket", lear="Enchntr. Earring +1", rear="Loquac. Earring",
  46. body="Vanir Cotehardie", hands="Umuthi Gloves", lring="Weatherspoon Ring", rring="Sirona's Ring",
  47. back="Oretania's Cape", waist="Witful Belt", legs="Quiahuiz Trousers", feet="Manabyss Pigaches"}
  48.  
  49. sets.midcast.wind = {ammo="Mavi Tathlum",
  50. head="Luhlaza Keffiyeh +1", neck="Phalaina Locket", lear="Ethereal Earring", rear="Loquac. Earring",
  51. body="Assimilator's Jubbah +1", hands="Umuthi Gloves", lring="Meridian Ring", rring="Sirona's Ring",
  52. back="Oretania's Cape", waist="Witful Belt", legs="Assimilator's Shalwar +1", feet="Assimilator's Charuqs +1"}
  53.  
  54. sets.midcast.recast = {head="Athos's Chapeau", neck="Jeweled Collar", lear="Enchntr. Earring +1", rear="Loquac. Earring",
  55. body="Dread Jupon", hands="Thaumas Gloves", lring="Weatherspoon Ring",
  56. back="Swith Cape", waist="Witful Belt", legs="Taeon Tights", feet="Assimilator's Charuqs +1"}
  57.  
  58. sets.midcast.recastskill = {ammo="Mavi Tathlum",
  59. head="Luhlaza Keffiyeh +1", neck="Jeweled Collar", lear="Enchntr. Earring +1", rear="Loquac. Earring",
  60. body="Assimilator's Jubbah +1", hands="Thaumas Gloves", lring="Weatherspoon Ring",
  61. back="Cornflower Cape", waist="Witful Belt", legs="Mavi Tayt +2", feet="Luhlaza Charuqs +1"}
  62.  
  63. sets.midcast.debuff = {ammo="Mavi Tathlum",
  64. head="Assimilator's Keffiyeh +1", neck="Eddy Necklace", lear="Enchntr. Earring +1", rear="Gwati Earring",
  65. body="Vanir Cotehardie", hands="Hagondes Cuffs", lring="Weatherspoon Ring", rring="Sangoma Ring",
  66. back="Cornflower Cape", waist="Rumination Sash", legs="Mavi Tayt +2", feet="Hagondes Sabots"}
  67.  
  68. sets.midcast.nuke = {ammo="Erlene's Notebook",
  69. head="Assimilator's Keffiyeh +1", neck="Eddy Necklace", lear="Friomisi Earring", rear="Crematio Earring",
  70. body="Vanir Cotehardie", hands="Helios Gloves", lring="Acumen Ring", rring="Strendu Ring",
  71. back="Cornflower Cape", waist="Yamabuki-no-Obi", legs="Hagondes Pants", feet="Manabyss Pigaches"}
  72.  
  73. sets.midcast.drain = {ammo="Mavi Tathlum",
  74. head="Luhlaza Keffiyeh +1", neck="Eddy Necklace", lear="Enchntr. Earring +1", rear="Loquac. Earring",
  75. body="Assimilator's Jubbah +1", hands="Ayao Gages", lring="Weatherspoon Ring", rring="Sangoma Ring",
  76. back="Cornflower Cape", waist="Rumination Sash", legs="Mavi Tayt +2", feet="Luhlaza Charuqs +1"}
  77.  
  78. sets.midcast.breath = {ammo="Mavi Tathlum",
  79. head="Luhlaza Keffiyeh +1", neck="Eddy Necklace", lear="Ethereal Earring", rear="Loquac. Earring",
  80. body="Assimilator's Jubbah +1", hands="Umuthi Gloves", lring="Meridian Ring", rring="Sirona's Ring",
  81. back="Oretania's Cape", waist="Witful Belt", legs="Assimilator's Shalwar +1", feet="Assimilator's Charuqs +1"}
  82.  
  83. sets.midcast.stun = {ammo="Honed Tathlum",
  84. head="Whirlpool Mask", neck="Eddy Necklace", lear="Enchntr. Earring +1", rear="Gwati Earring",
  85. body="Mekosuchinae Harness", hands="Mavi Bazubands +2", lring="Mars's Ring", rring="Weatherspoon Ring",
  86. back="Cornflower Cape", waist="Hurch'lan Sash", legs="Taeon Tights", feet="Assimilator's Charuqs +1"}
  87.  
  88. sets.midcast.physical = {ammo="Ginsen",
  89. head="Whirlpool Mask", neck="Ire Torque +1", lear="Kuwunga Earring", rear="Heartseeker Earring",
  90. body="Assimilator's Jubbah +1", hands="Umuthi Gloves", lring="Rajas Ring", rring="Ifrit's Ring",
  91. back="Cornflower Cape", waist="Wanion Belt", legs="Quiahuiz Trousers", feet="Assimilator's Charuqs +1"}
  92.  
  93. sets.midcast.obi = {back="Twilight Cape", waist="Hachirin-no-Obi"}
  94.  
  95. sets.midcast.stoneskin = {waist="Siegel Sash", legs="Haven Hose"}
  96.  
  97. --Engaged Sets
  98. sets.engaged = {}
  99.  
  100. sets.engaged.standard = {ammo="Ginsen",
  101. head="Whirlpool Mask", neck="Asperity Necklace", lear="Dudgeon Earring", rear="Heartseeker Earring",
  102. body="Qaaxo Harness", hands="Taeon Gloves", lring="Rajas Ring", rring="Epona's Ring",
  103. back="Bleating Mantle", waist="Windbuffet Belt", legs="Taeon Tights", feet="Qaaxo Leggings"}
  104.  
  105. sets.engaged.DT = set_combine(sets.engaged.standard,{ammo="Inlamvuyeso",
  106. neck="Twilight Torque", lring="Dark Ring", rring="Patricius Ring",
  107. back="Iximulew Cape", waist="Flume Belt"})
  108.  
  109. sets.engaged.lowacc = {ammo="Honed Tathlum",
  110. head="Whirlpool Mask", neck="Asperity Necklace", lear="Dudgeon Earring", rear="Heartseeker Earring",
  111. body="Dread Jupon", hands="Taeon Gloves", lring="Rajas Ring", rring="Epona's Ring",
  112. back="Letalis Mantle", waist="Windbuffet Belt", legs="Taeon Tights", feet="Qaaxo Leggings"}
  113.  
  114. sets.engaged.lowDT = set_combine(sets.engaged.lowacc,{ammo="Inlamvuyeso",
  115. neck="Twilight Torque", lring="Dark Ring", rring="Patricius Ring",
  116. back="Iximulew Cape", waist="Flume Belt"})
  117.  
  118. sets.engaged.highacc = {ammo="Honed Tathlum",
  119. head="Whirlpool Mask", neck="Asperity Necklace", lear="Dudgeon Earring", rear="Heartseeker Earring",
  120. body="Luhlaza Jubbah +1", hands="Buremte Gloves", lring="Mars's Ring", rring="Patricius Ring",
  121. back="Letalis Mantle", waist="Hurch'lan Sash", legs="Taeon Tights", feet="Assimilator's Charuqs +1"}
  122.  
  123. sets.engaged.highDT = set_combine(sets.engaged.highacc,{ammo="Inlamvuyeso",
  124. neck="Twilight Torque", lring="Dark Ring", rring="Patricius Ring",
  125. back="Iximulew Cape", waist="Flume Belt"})
  126.  
  127. --WS Sets
  128. sets.WS = {}
  129.  
  130. sets.WS.CDC = {ammo="Jukukik Feather",
  131. head="Uk'uxkaj Cap", neck="Fotia Gorget", lear="Brutal Earring", rear="Moonshade Earring",
  132. body="Dread Jupon", hands="Buremte Gloves", lring="Jupiter's Ring", rring="Epona's Ring",
  133. back="Rancorous Mantle", waist="Fotia Belt", legs="Manibozho Brais", feet="Assimilator's Charuqs +1"}
  134.  
  135. sets.WS.CDCAcc = {ammo="Jukukik Feather",
  136. head="Whirlpool Mask", neck="Fotia Gorget", lear="Brutal Earring", rear="Moonshade Earring",
  137. body="Luhlaza Jubbah +1", hands="Buremte Gloves", lring="Mars's Ring", rring="Epona's Ring",
  138. back="Kayapa Cape", waist="Fotia Belt", legs="Manibozho Brais", feet="Assimilator's Charuqs +1"}
  139.  
  140. sets.WS.Req = {ammo="Ginsen",
  141. head="Whirlpool Mask", neck="Fotia Gorget", lear="Brutal Earring", rear="Moonshade Earring",
  142. body="Luhlaza Jubbah +1", hands="Umuthi Gloves", lring="Aquasoul Ring", rring="Epona's Ring",
  143. back="Bleating Mantle", waist="Fotia Belt", legs="Quiahuiz Trousers", feet="Assimilator's Charuqs +1"}
  144.  
  145. sets.WS.ReqAcc = {ammo="Honed Tathlum",
  146. head="Whirlpool Mask", neck="Fotia Gorget", lear="Brutal Earring", rear="Moonshade Earring",
  147. body="Luhlaza Jubbah +1", hands="Buremte Gloves", lring="Aquasoul Ring", rring="Epona's Ring",
  148. back="Letalis Mantle", waist="Fotia Belt", legs="Manibozho Brais", feet="Assimilator's Charuqs +1"}
  149.  
  150. sets.WS.SB = {ammo="Cheruski Needle",
  151. head="Whirlpool Mask", neck="Fotia Gorget", lear="Brutal Earring", rear="Moonshade Earring",
  152. body="Luhlaza Jubbah +1", hands="Umuthi Gloves", lring="Rajas Ring", rring="Epona's Ring",
  153. back="Bleating Mantle", waist="Fotia Belt", legs="Quiahuiz Trousers", feet="Assimilator's Charuqs +1"}
  154.  
  155. sets.WS.SBAcc = {ammo="Honed Tathlum",
  156. head="Whirlpool Mask", neck="Fotia Gorget", lear="Brutal Earring", rear="Moonshade Earring",
  157. body="Luhlaza Jubbah +1", hands="Umuthi Gloves", lring="Mars's Ring", rring="Epona's Ring",
  158. back="Letalis Mantle", waist="Fotia Belt", legs="Manibozho Brais", feet="Assimilator's Charuqs +1"}
  159.  
  160. sets.WS["Sanguine Blade"] = {ammo="Erlene's Notebook",
  161. head="Assimilator's Keffiyeh +1", neck="Eddy Necklace", lear="Friomisi Earring", rear="Crematio Earring",
  162. body="Vanir Cotehardie", hands="Mavi Bazubands +2", lring="Acumen Ring", rring="Strendu Ring",
  163. back="Cornflower Cape", waist="Yamabuki-no-Obi", legs="Hagondes Pants", feet="Manabyss Pigaches"}
  164.  
  165. sets.WS["Realmrazer"] = {ammo="Ginsen",
  166. head="Whirlpool Mask", neck="Fotia Gorget", lear="Brutal Earring", rear="Moonshade Earring",
  167. body="Luhlaza Jubbah +1", hands="Umuthi Gloves", lring="Aquasoul Ring", rring="Epona's Ring",
  168. back="Bleating Mantle", waist="Fotia Belt", legs="Quiahuiz Trousers", feet="Assimilator's Charuqs +1"}
  169.  
  170. sets.WS["Flash Nova"] = {ammo="Erlene's Notebook",
  171. head="Assimilator's Keffiyeh +1", neck="Eddy Necklace", lear="Friomisi Earring", rear="Crematio Earring",
  172. body="Vanir Cotehardie", hands="Mavi Bazubands +2", lring="Weatherspoon Ring", rring="Strendu Ring",
  173. back="Cornflower Cape", waist="Yamabuki-no-Obi", legs="Hagondes Pants", feet="Manabyss Pigaches"}
  174.  
  175. sets.WS.other = {ammo="Cheruski Needle",
  176. head="Whirlpool Mask", neck="Fotia Gorget", lear="Brutal Earring", rear="Moonshade Earring",
  177. body="Luhlaza Jubbah +1", hands="Umuthi Gloves", lring="Rajas Ring", rring="Epona's Ring",
  178. back="Buquwik Cape", waist="Fotia Belt", legs="Quiahuiz Trousers", feet="Assimilator's Charuqs +1"}
  179.  
  180. --JA Sets
  181. sets.JA = {}
  182.  
  183. sets.JA.CA = {head="Mavi Kavuk +2", feet="Assimilator's Charuqs +1"}
  184.  
  185. sets.JA.BA = {legs="Assimilator's Shalwar +1", feet="Mavi Basmak +2"}
  186.  
  187. sets.JA.Efflux = {legs="Mavi Tayt +2"}
  188.  
  189. sets.JA["Azure Lore"] = {hands="Luhlaza Bazubands"}
  190.  
  191. sets.JA["Diffusion"] = {feet="Luhlaza Charuqs +1"}
  192.  
  193. sets.JA["Convergence"] = {head="Luhlaza Keffiyeh +1"}
  194.  
  195. sets.JA.step = {ammo="Honed Tathlum",
  196. head="Whirlpool Mask", lear="Steelflash Earring", rear="Heartseeker Earring",
  197. body="Luhlaza Jubbah +1", hands="Buremte Gloves", lring="Mars's Ring", rring="Patricius Ring",
  198. back="Letalis Mantle", waist="Chaac Belt", legs="Taeon Tights", feet="Assimilator's Charuqs +1"}
  199.  
  200. sets.JA.waltz = {head="Uk'uxkaj Cap", lear="Enchntr. Earring +1",
  201. body="Vanir Cotehardie", hands="Umuthi Gloves", rring="Sirona's Ring",
  202. back="Swith Cape", waist="Chaac Belt", legs="Desultor Tassets", feet="Manabyss Pigaches"}
  203.  
  204. end
  205.  
  206. function precast(spell)
  207. if spell.action_type == "Magic" then
  208. if spell.skill == "Blue Magic" then
  209. equip(sets.precast.blue)
  210. elseif spell.skill == "Stoneskin" then
  211. equip(sets.precast.stoneskin)
  212. else
  213. equip(sets.precast.FC)
  214. end
  215. elseif spell.type == "WeaponSkill" then
  216. if spell.english == "Chant Du Cygne" then
  217. if accmode == 1 then
  218. equip(sets.WS.CDC)
  219. elseif accmode == 2 or accmode == 3 then
  220. equip(sets.WS.CDCAcc)
  221. end
  222. elseif spell.english == "Requiescat" then
  223. if accmode == 1 then
  224. equip(sets.WS.Req)
  225. elseif accmode == 2 or accmode == 3 then
  226. equip(sets.WS.ReqAcc)
  227. end
  228. elseif spell.english == "Savage Blade" then
  229. if accmode == 1 then
  230. equip(sets.WS.SB)
  231. elseif accmode == 2 or accmode == 3 then
  232. equip(sets.WS.SBAcc)
  233. end
  234. elseif sets.WS[spell.english] then
  235. equip(sets.WS[spell.english])
  236. else
  237. equip(sets.WS.other)
  238. end
  239. elseif spell.type == "JobAbility" then
  240. if spell.english == "Azure Lore" then
  241. equip(sets.JA["Azure Lore"])
  242. end
  243. elseif spell.type == "Step" then
  244. equip(sets.JA.step)
  245. elseif spell.type == "Waltz" then
  246. if string.find(spell.english,"Curing") or spell.english == "Divine Waltz" then
  247. equip(sets.JA.waltz)
  248. elseif spell.english == "Healing Waltz" then
  249. equip({legs="Desultor Tassets"})
  250. end
  251. elseif spell.type == "Flourish" then
  252. if spell.english == "Violent Flourish" then
  253. equip(sets.JA.step)
  254. end
  255. end
  256. end
  257.  
  258. function midcast(spell)
  259. if spell.skill == "Blue Magic" then
  260. if Healing:contains(spell.name) then
  261. if spell.english == "White Wind" then
  262. if spell.element == world.weather_element or spell.element == world.day_element then
  263. equip(sets.midcast.wind, sets.midcast.obi)
  264. else
  265. equip(sets.midcast.wind)
  266. end
  267. else
  268. if spell.element == world.weather_element or spell.element == world.day_element then
  269. equip(sets.midcast.cure, sets.midcast.obi)
  270. else
  271. equip(sets.midcast.cure)
  272. end
  273. end
  274. elseif Recast:contains(spell.name) then
  275. if buffactive["Diffusion"] then
  276. equip(sets.midcast.recast, sets.JA["Diffusion"], {hands="Mavi Bazubands +2"})
  277. else
  278. equip(sets.midcast.recast, {hands="Mavi Bazubands +2"})
  279. end
  280. elseif RecastSkill:contains(spell.name) then
  281. if buffactive["Diffusion"] then
  282. equip(sets.midcast.recastskill, sets.JA["Diffusion"])
  283. else
  284. equip(sets.midcast.recastskill)
  285. end
  286. elseif Debuff:contains(spell.name) then
  287. equip(sets.midcast.debuff)
  288. elseif Magical:contains(spell.name) then
  289. if buffactive["Burst Affinity"] then
  290. if spell.element == world.weather_element or spell.element == world.day_element then
  291. equip(sets.midcast.nuke, sets.midcast.obi, {feet="Mavi Basmak +2"})
  292. else
  293. equip(sets.midcast.nuke, {feet="Mavi Basmak +2"})
  294. end
  295. else
  296. if spell.element == world.weather_element or spell.element == world.day_element then
  297. equip(sets.midcast.nuke, sets.midcast.obi)
  298. else
  299. equip(sets.midcast.nuke)
  300. end
  301. end
  302. elseif SkillDrain:contains(spell.name) then
  303. equip(sets.midcast.drain)
  304. elseif Breath:contains(spell.name) then
  305. equip(sets.midcast.breath)
  306. elseif Stuns:contains(spell.name) then
  307. equip(sets.midcast.stun)
  308. elseif Physical:contains(spell.name) then
  309. if buffactive["Chain Affinity"] then
  310. if buffactive["Efflux"] then
  311. equip(sets.midcast.physical, sets.JA["Chain Affinty"], sets.JA["Efflux"])
  312. else
  313. equip(sets.midcast.physical, sets.JA["Chain Affinty"])
  314. end
  315. elseif buffactive["Efflux"] then
  316. equip(sets.midcast.physical, sets.JA["Efflux"])
  317. else
  318. equip(sets.midcast.physical)
  319. end
  320. end
  321. elseif spell.skill == "Ninjutsu" then
  322. if spell.english == "Utsusemi: Ni" then
  323. equip(sets.midcast.recast)
  324. elseif spell.english == "Utsusemi: Ichi" then
  325. send_command('@wait 2.0;input //cancel Copy Image*')
  326. equip(sets.midcast.recast)
  327. end
  328. elseif spell.skill == "Healing Magic" then
  329. if string.find(spell.english,"Cur") and spell.english ~= "Cursna" then
  330. if spell.element == world.weather_element or spell.element == world.day_element then
  331. equip(sets.midcast.cure, sets.midcast.obi)
  332. else
  333. equip(sets.midcast.cure)
  334. end
  335. end
  336. elseif spell.skill == "Enfeebling Magic" then
  337. if string.find(spell.english, "Sleep") or spell.english == "Paralyze" or spell.english == "Slow" or spell.english == "Distract" or spell.english == "Frazzle" or spell.english == "Silence" or spell.english == "Dispel" or spell.english == "Bind" or string.find(spell.english,"Poison") then
  338. equip(sets.midcast.debuff)
  339. end
  340. elseif spell.skill == "Elemental Magic" then
  341. if spell.element == world.weather_element or spell.element == world.day_element then
  342. equip(sets.midcast.nuke, sets.midcast.obi)
  343. else
  344. equip(sets.midcast.nuke)
  345. end
  346. elseif spell.english == "Stoneskin" then
  347. equip(sets.midcast.stoneskin)
  348. else
  349. equip(sets.midcast.recast)
  350. end
  351. end
  352.  
  353. function aftercast(spell)
  354. if player.status == "Idle" then
  355. if idleset == 1 then
  356. equip(sets.idle.standard)
  357. elseif idleset == 2 then
  358. equip(sets.idle.standard)
  359. end
  360. elseif player.status == "Engaged" then
  361. if engagemode == 1 then
  362. if accmode == 1 then
  363. equip(sets.engaged.standard)
  364. elseif accmode == 2 then
  365. equip(sets.engaged.lowacc)
  366. elseif accmode == 3 then
  367. equip(sets.engaged.highacc)
  368. end
  369. elseif engagemode == 2 then
  370. if accmode == 1 then
  371. equip(sets.engaged.DT)
  372. elseif accmode == 2 then
  373. equip(sets.engaged.lowDT)
  374. elseif accmode == 3 then
  375. equip(sets.engaged.highDT)
  376. end
  377. end
  378. end
  379. end
  380.  
  381. function status_change(new, tab)
  382. if new == "Idle" then
  383. if idleset == 1 then
  384. equip(sets.idle.standard)
  385. elseif idleset == 2 then
  386. equip(sets.idle.standard)
  387. end
  388. elseif new == "Engaged" then
  389. if engagemode == 1 then
  390. if accmode == 1 then
  391. equip(sets.engaged.standard)
  392. elseif accmode == 2 then
  393. equip(sets.engaged.lowacc)
  394. elseif accmode == 3 then
  395. equip(sets.engaged.highacc)
  396. end
  397. elseif engagemode == 2 then
  398. if accmode == 1 then
  399. equip(sets.engaged.DT)
  400. elseif accmode == 2 then
  401. equip(sets.engaged.lowDT)
  402. elseif accmode == 3 then
  403. equip(sets.engaged.highDT)
  404. end
  405. end
  406. end
  407. end
  408.  
  409. function self_command(command)
  410. if command == 'idle' then
  411. if idleset == 1 then
  412. equip(sets.idle.standard)
  413. send_command('@input /echo ----- Idle: Standard -----')
  414. elseif idleset == 2 then
  415. equip(sets.idle.DT)
  416. send_command('@input /echo ----- Idle: DT -----')
  417. end
  418. end
  419.  
  420. if command == 'toggle idle' then
  421. idleset = idleset +1
  422. if idleset > 2 then
  423. idleset = 1
  424. equip(sets.idle.standard)
  425. send_command('@input /echo ----- Idle: Standard -----')
  426. elseif idleset == 2 then
  427. equip(sets.idle.DT)
  428. send_command('@input /echo ----- Idle: DT -----')
  429. end
  430. end
  431.  
  432. if command == 'toggle acc' then
  433. accmode = accmode +1
  434. if accmode > 3 then
  435. accmode = 1
  436. if engagemode == 1 then
  437. equip(sets.engaged.standard)
  438. send_command('@input /echo ----- Engaged: Standard -----')
  439. elseif engagemode == 2 then
  440. equip(sets.engaged.DT)
  441. send_command('@input /echo ----- Engaged: DT -----')
  442. end
  443. elseif accmode == 2 then
  444. if engagemode == 1 then
  445. equip(sets.engaged.lowacc)
  446. send_command('@input /echo ----- Engaged: Low Accuracy -----')
  447. elseif engagemode == 2 then
  448. equip(sets.engaged.lowDT)
  449. send_command('@input /echo ----- Engaged: Low Accuracy/DT -----')
  450. end
  451. elseif accmode == 3 then
  452. if engagemode == 1 then
  453. equip(sets.engaged.highacc)
  454. send_command('@input /echo ----- Engaged: High Accuracy -----')
  455. elseif engagemode == 2 then
  456. equip(sets.engaged.highDT)
  457. send_command('@input /echo ----- Engaged: High Accuracy/DT -----')
  458. end
  459. end
  460. end
  461.  
  462. if command == 'toggle engage' then
  463. engagemode = engagemode +1
  464. if engagemode > 2 then
  465. engagemode = 1
  466. if accmode == 1 then
  467. equip(sets.engaged.standard)
  468. send_command('@input /echo ----- Engaged: Standard -----')
  469. elseif accmode == 2 then
  470. equip(sets.engaged.lowacc)
  471. send_command('@input /echo ----- Engaged: Low Accuracy -----')
  472. elseif accmode == 3 then
  473. equip(sets.engaged.highacc)
  474. send_command('@input /echo ----- Engaged: High Accuracy -----')
  475. end
  476. elseif engagemode == 2 then
  477. if accmode == 1 then
  478. equip(sets.engaged.DT)
  479. send_command('@input /echo ----- Engaged: DT -----')
  480. elseif accmode == 2 then
  481. equip(sets.engaged.lowDT)
  482. send_command('@input /echo ----- Engaged: Low Accuracy/DT -----')
  483. elseif accmode == 3 then
  484. equip(sets.engaged.highDT)
  485. send_command('@input /echo ----- Engaged: High Accuracy/DT -----')
  486. end
  487. end
  488. end
  489. end
Advertisement
Add Comment
Please, Sign In to add comment