detlef11

rainhat_sch

Jan 17th, 2015
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 36.32 KB | None | 0 0
  1. function get_sets()
  2. --Variables
  3. idleset = 1 --(1 = Standard, 2 = DT)
  4. stunset = 1 --(1 = Recast, 2 = Hybrid, 3 = M.acc)
  5. nukeset = 1 --(1 = Standard, 2 = High Acc)
  6. enhanceskill = S{'Phalanx', 'Aquaveil', 'Enfire', 'Enwater', 'Enthunder', 'Enstone', 'Enaero', 'Enblizzard', 'Barfire', 'Barfira', 'Barwater', 'Barwatera', 'Barthunder', 'Barthundra', 'Barstone', 'Barstonra', 'Baraero', 'Baraera', 'Barblizzard', 'Barblizzara'}
  7. Whiteenfeeble = S{'Slow', 'Paralyze', 'Addle', 'Silence'}
  8. Blackenfeeble = S{'Bind', 'Blind', 'Gravity', 'Poison', 'Poisonga', 'Poison II', 'Break', 'Sleep', 'Sleep II', 'Sleepga', 'Dispel', 'Frazzle', 'Distract'}
  9.  
  10. --Idle Sets
  11. sets.idle = {}
  12.  
  13. sets.idle.standard = {main="Tupsimati",sub="Oneiros Grip",range="Aureole",
  14. head="Spurrina Coif",neck="Twilight Torque",ear1="Moonshade Earring",ear2="Loquac. Earring",
  15. body="Acad. Gown +1",hands="Serpentes Cuffs",ring1="Dark Ring",ring2="Defending Ring",
  16. back="Umbra Cape",waist="Fucho-no-Obi",legs="Assid. Pants +1",feet="Herald's Gaiters"}
  17.  
  18. sets.idle.sublimation = set_combine(sets.idle.standard, {head="Acad. Mortar. +1", body="Pedagogy Gown", lear="Savant's Earring"})
  19.  
  20. sets.idle.MP = set_combine(sets.idle.standard, {legs="Assiduity Pants"})
  21.  
  22. sets.idle.sublimationMP = set_combine(sets.idle.MP, {head="Acad. Mortar. +1", body="Pedagogy Gown", lear="Savant's Earring"})
  23.  
  24. sets.idle.DT = {main="Earth Staff", sub="Oneiros Grip", ammo="Incantor Stone",
  25. head="", neck="Twilight Torque", lear="Gifted Earring", rear="Loquac. Earring",
  26. body="Respite Cloak", hands="Yaoyotl Gloves", lring="Dark Ring", rring="Dark Ring",
  27. back="Umbra Cape", waist="Fucho-no-Obi", legs="Assiduity Pants", feet="Umbani Boots"}
  28.  
  29. sets.idle.DTsub = set_combine(sets.idle.DT, {head="Acad. Mortar. +1", body="Pedagogy Gown", lear="Savant's Earring"})
  30.  
  31. sets.idle.hmp = {main="Chatoyant Staff", sub="Oneiros Grip",
  32. neck="Eidolon Pendant",
  33. waist="Austerity Belt", legs="Assiduity Pants", feet="Chelona Boots"}
  34.  
  35. --Precast Sets
  36. sets.precast = {}
  37.  
  38. sets.precast.FC = {main="Marin Staff +1",sub="Vivid Strap",ammo="Impatiens",
  39. head="Nahtirah Hat",neck="Orunmila's Torque",ear1="Enchntr. Earring +1",ear2="Loquac. Earring",
  40. body="Shango Robe",hands="Gende. Gages +1",ring1="Prolix Ring",ring2="Defending Ring",
  41. back="Swith Cape +1",waist="Witful Belt",legs="Psycloth Lappas",feet="Acad. Loafers +1"}
  42.  
  43. sets.precast.IFC = {main="Marin Staff +1",sub="Vivid Strap",ammo="Impatiens",
  44. head=none,neck="Orunmila's Torque",ear1="Enchntr. Earring +1",ear2="Loquac. Earring",
  45. body="Twilight Cloak",hands="Gende. Gages +1",ring1="Prolix Ring",ring2="Defending Ring",
  46. back="Swith Cape +1",waist="Witful Belt",legs="Psycloth Lappas",feet="Acad. Loafers +1"}
  47.  
  48. --Midcast Sets
  49. sets.midcast = {}
  50.  
  51. sets.midcast.nuke = {main="Tupsimati",sub="Elder's Grip +1",ammo="Ombre Tathlum +1",
  52. head="Helios Band",neck="Eddy Necklace",ear1="Crematio Earring",ear2="Friomisi Earring",
  53. body="Seidr Cotehardie",hands="Helios Gloves",ring1="Shiva Ring +1",ring2="Shiva Ring +1",
  54. back="Bookworm's Cape",waist="Yamabuki-no-Obi",legs="Hagondes Pants +1",feet="Helios Boots"}
  55.  
  56. sets.midcast.lowtier = {main="Tupsimati",sub="Zuuxowu Grip",ammo="Ghastly Tathlum +1",
  57. head="Helios Band",neck="Eddy Necklace",ear1="Crematio Earring",ear2="Friomisi Earring",
  58. body="Seidr Cotehardie",hands="Helios Gloves",ring1="Shiva Ring +1",ring2="Shiva Ring +1",
  59. back="Bookworm's Cape",waist="Yamabuki-no-Obi",legs="Hagondes Pants +1",feet="Umbani Boots"}
  60.  
  61. sets.midcast.resistnuke = set_combine(sets.midcast.nuke, {ammo="Savant's Treatise",
  62. body="Seidr Cotehardie", lring="Sangoma Ring", rring="Weatherspoon Ring",
  63. waist="Aswang Sash"})
  64.  
  65. sets.midcast.helix = {main="Tupsimati",sub="Zuuxowu Grip",ammo="Ghastly Tathlum +1",
  66. head="Helios Band",neck="Eddy Necklace",ear1="Crematio Earring",ear2="Friomisi Earring",
  67. body="Shango Robe",hands="Helios Gloves",ring1="Shiva Ring +1",ring2="Shiva Ring +1",
  68. back="Bookworm's Cape",waist="Yamabuki-no-Obi",legs="Hagondes Pants +1",feet="Umbani Boots"}
  69.  
  70. sets.midcast.dot = {main="Tupsimati",sub="Zuuxowu Grip",ammo="Ghastly Tathlum +1",
  71. head="Helios Band",neck="Incanter's Torque",ear1="Crematio Earring",ear2="Friomisi Earring",
  72. body="Shango Robe",hands="Helios Gloves",ring1="Shiva Ring +1",ring2="Shiva Ring +1",
  73. back="Bookworm's Cape",waist="Yamabuki-no-Obi",legs="Hagondes Pants +1",feet="Umbani Boots"}
  74.  
  75. sets.midcast.impact = {main="Tupsimati",sub="Zuuxowu Grip",ammo="Ghastly Tathlum +1",
  76. head=none,neck="Incanter's Torque",ear1="Crematio Earring",ear2="Friomisi Earring",
  77. body="Twilight Cloak",hands="Helios Gloves",ring1="Shiva Ring +1",ring2="Shiva Ring +1",
  78. back="Bookworm's Cape",waist="Yamabuki-no-Obi",legs="Hagondes Pants +1",feet="Umbani Boots"}
  79.  
  80. sets.midcast.enhancing = {main="Kirin's Pole",sub="Fulcio Grip",ammo="Savant's Treatise",
  81. head="Arbatel Bonnet +1",neck="Incanter's Torque",ear2="Andoaa Earring",
  82. body="Telchine Chas.",hands="Arbatel Bracers +1",
  83. back="Merciful Cape",waist="Olympus Sash",legs="Acad. Pants +1", feet="Regal Pumps +1"}
  84.  
  85. sets.midcast.stoneskin = {
  86. head="Umuthi Hat",neck="Stone Gorget",
  87. waist="Siegel Sash",legs="Haven Hose"}
  88.  
  89. sets.midcast.regen = set_combine(sets.midcast.enhancing,{main="Coeus",
  90. head="Arbatel Bonnet +1",
  91. body="Telchine Chas.",
  92. back="Bookworm's Cape"})
  93.  
  94. sets.midcast.embrava = {main="Kirin's Pole",sub="Fulcio Grip",ammo="Savant's Treatise",
  95. head="Arbatel Bonnet +1",neck="Incanter's Torque",ear2="Andoaa Earring",
  96. body="Telchine Chas.",hands="Arbatel Bracers +1",
  97. back="Merciful Cape",waist="Olympus Sash",legs="Acad. Pants +1", feet="Regal Pumps +1"}
  98.  
  99. sets.midcast.enfeebling = {main="Tupsimati",sub="Mephitis Grip",range="Aureole",
  100. head="Befouled Crown",neck="Incanter's Torque",ear1="Enchntr. Earring +1",ear2="Gwati Earring",
  101. body="Shango Robe",hands="Lurid Mitts",ring1="Perception Ring",ring2="Sangoma Ring",
  102. back="Refraction Cape",waist="Ovate Rope",legs="Psycloth Lappas",feet="Uk'uxkaj Boots"}
  103.  
  104. sets.midcast.cure = {main="Tamaxchi",sub="Genbu's Shield",ammo="Incantor Stone",
  105. head="Gende. Caubeen",neck="Incanter's Torque",ear1="Enchntr. Earring +1",ear2="Loquac. Earring",
  106. body="Vrikodara Jupon",hands="Telchine Gloves",ring1="Haoma's Ring",ring2="Sirona's Ring",
  107. back="Twilight Cape",waist="Bishop's Sash",legs="Acad. Pants +1",feet="Acad. Loafers +1"}
  108.  
  109. sets.midcast.weathercure = {main="Chatoyant Staff",sub="Achaq Grip",ammo="Incantor Stone",
  110. head="Gende. Caubeen",neck="Incanter's Torque",ear1="Enchntr. Earring +1",ear2="Loquac. Earring",
  111. body="Shango Robe",hands="Telchine Gloves",ring1="Haoma's Ring",ring2="Sirona's Ring",
  112. back="Twilight Cape",waist="Korin Obi",legs="Nares Trews",feet="Acad. Loafers +1"}
  113.  
  114. sets.midcast.cursna = {head="Nahtirah Hat", neck="Incanter's Torque",
  115. body="Pedagogy Gown", hands="Telchine Gloves", lring="Sirona's Ring", rring="Ephedra Ring",
  116. waist="Witful Belt", legs="Academic's Pants", feet="Pedagogy Loafers"}
  117.  
  118. sets.midcast.dark = {main="Tupsimati", sub="Mephitis Grip", ammo="Kalboron Stone",
  119. head="Striga Crown", neck="Eddy Necklace", lear="Enchanter Earring +1", rear="Gwati Earring",
  120. body="Shango Robe", hands="Lurid Mitts", lring="Sangoma Ring", rring="Balrahn's Ring",
  121. back="Bookworm's Cape", waist="Demonry Sash", legs="Arbatel Pants +1", feet="Helios Boots"}
  122.  
  123. sets.midcast.stunspeed = {main="Apamajas II",sub="Arbuda Grip",ammo="Incantor Stone",
  124. head="Nahtirah Hat",neck="Orunmila's Torque",ear1="Enchntr. Earring +1",ear2="Gwati Earring",
  125. body="Shango Robe",hands="Gende. Gages +1",ring1="Prolix Ring",ring2="Sangoma Ring",
  126. back="Swith Cape +1",waist="Ninurta's Sash",legs="Psycloth Lappas",feet="Peda. Loafers +1"}
  127.  
  128. sets.midcast.stunhybrid = set_combine(sets.midcast.stunspeed, {ammo="Kalboron Stone",
  129. back="Bookworm's Cape", waist="Demonry Sash", legs="Arbatel Pants +1"})
  130.  
  131. sets.midcast.stunacc = set_combine(sets.midcast.stunspeed, {main="Twebuliij", ammo="Kalboron Stone",
  132. back="Bookworm's Cape", waist="Demonry Sash", legs="Arbatel Pants +1"})
  133.  
  134. sets.midcast.kaustra = {main="Tupsimati",sub="Elder's Grip +1",ammo="Ombre Tathlum +1",
  135. head="Helios Band",neck="Eddy Necklace",ear1="Crematio Earring",ear2="Friomisi Earring",
  136. body="Shango Robe",hands="Helios Gloves",ring1="Shiva Ring +1",ring2="Shiva Ring +1",
  137. back="Toro Cape",waist="Yamabuki-no-Obi",legs="Hagondes Pants +1",feet="Umbani Sabots"}
  138.  
  139. sets.midcast.recast = {main="Marin Staff +1",sub="Vivid Strap",ammo="Incantor Stone",
  140. head="Nahtirah Hat", neck="Orunmila's Torque",ear1="Enchntr. Earring +1",ear2="Loquac. Earring",
  141. body="Anhur Robe", hands="Gende. Gages +1", ring1="Weatherspoon Ring",ring2="Prolix Ring",
  142. back="Swith Cape +1", waist="Witful Belt", legs="Psycloth Lappas", feet="Peda. Loafers +1"}
  143.  
  144. --JA Sets
  145. sets.JA = {}
  146. sets.JA['Enlightenment'] = {body="Peda. Gown +1"}
  147. sets.JA['Tabula Rasa'] = {legs="Pedagogy Pants"}
  148.  
  149. --Utility Sets
  150. sets.Obi = {}
  151. sets.Obi.Fire = {waist='Hachirin-no-Obi',back='Twilight Cape'}
  152. sets.Obi.Earth = {waist='Hachirin-no-Obi',back='Twilight Cape'}
  153. sets.Obi.Water = {waist='Hachirin-no-Obi',back='Twilight Cape'}
  154. sets.Obi.Wind = {waist='Hachirin-no-Obi',back='Twilight Cape'}
  155. sets.Obi.Ice = {waist='Hachirin-no-Obi',back='Twilight Cape'}
  156. sets.Obi.Lightning = {waist='Hachirin-no-Obi',back='Twilight Cape'}
  157. sets.Obi.Light = {waist='Hachirin-no-Obi',back='Twilight Cape'}
  158. sets.Obi.Dark = {waist='Hachirin-no-Obi',back='Twilight Cape'}
  159.  
  160. end
  161.  
  162. function precast(spell)
  163. if spell.action_type == 'Magic' and spell.type ~= "Trust" then
  164. if spell.english == "Impact" then
  165. equip(sets.precast.IFC)
  166. elseif spell.skill == 'Enhancing Magic' then
  167. equip(sets.precast.FC, {waist="Siegel Sash"})
  168. elseif spell.skill == 'Healing Magic' then
  169. equip(sets.precast.FC, {body="Heka's Kalasiris"})
  170. else
  171. equip(sets.precast.FC)
  172. end
  173. elseif spell.type == "JobAbility" then
  174. if sets.JA[spell.english] then
  175. equip(sets.JA[spell.english])
  176. end
  177. end
  178. end
  179.  
  180. function midcast(spell)
  181. if spell.action_type == 'Magic' then
  182.  
  183. --Enhancing Magic--
  184. if spell.skill == 'Enhancing Magic' then
  185.  
  186. if spell.english == "Stoneskin" then
  187. send_command('@wait 1.5;input //cancel Stoneskin')
  188. if buffactive['Penury'] then
  189. equip(sets.midcast.stoneskin, {legs="Arbatel Pants +1"})
  190. else
  191. equip(sets.midcast.stoneskin)
  192. end
  193.  
  194. elseif string.find(spell.english,'Regen') then
  195. if buffactive['Penury'] then
  196. if buffactive['Perpetuance'] then
  197. equip(sets.midcast.regen, {main="Coeus", hands="Arbatel Bracers +1", legs="Arbatel Pants +1"})
  198. else
  199. equip(sets.midcast.regen, {main="Coeus", legs="Arbatel Pants +1"})
  200. end
  201. elseif buffactive['Perpetuance'] then
  202. equip(sets.midcast.regen, {main="Coeus", hands="Arbatel Bracers +1"})
  203. else
  204. equip(sets.midcast.regen, {main="Coeus"})
  205. end
  206.  
  207. elseif enhanceskill:contains(spell.name) then
  208. if buffactive['Penury'] then
  209. if buffactive['Perpetuance'] then
  210. equip(sets.midcast.enhancing, {hands="Arbatel Bracers +1", legs="Arbatel Pants +1"})
  211. else
  212. equip(sets.midcast.enhancing, {legs="Arbatel Pants +1"})
  213. end
  214. elseif buffactive['Perpetuance'] then
  215. equip(sets.midcast.enhancing,{hands="Arbatel Bracers +1"})
  216. else
  217. equip(sets.midcast.enhancing)
  218. end
  219.  
  220. elseif spell.english == "Embrava" then
  221. if buffactive['Perpetuance'] then
  222. equip(sets.midcast.embrava, {hands="Arbatel Bracers +1"})
  223. else
  224. equip(sets.midcast.embrava)
  225. end
  226.  
  227. elseif string.find(spell.english,"Storm") then
  228. if buffactive['Perpetuance'] then
  229. equip(sets.midcast.recast, {hands="Arbatel Bracers +1", feet="Pedagogy Loafers"})
  230. else
  231. equip(sets.midcast.recast, {feet="Pedagogy Loafers"})
  232. end
  233.  
  234. else
  235. if buffactive['Penury'] then
  236. if buffactive['Perpetuance'] then
  237. equip(sets.midcast.recast, {hands="Arbatel Bracers +1", legs="Arbatel Pants +1"})
  238. else
  239. equip(sets.midcast.recast, {legs="Arbatel Pants +1"})
  240. end
  241. elseif buffactive['Perpetuance'] then
  242. equip(sets.midcast.recast, {hands="Arbatel Bracers +1"})
  243. else
  244. equip(sets.midcast.recast)
  245. end
  246. end
  247.  
  248. --Elemental Magic--
  249. elseif spell.skill == 'Elemental Magic' then
  250.  
  251. if spell.english == "Anemohelix" or spell.english == "Cryohelix" or spell.english == "Pyrohelix" or spell.english == "Hydrohelix" or spell.english == "Ionohelix" or spell.english == "Geohelix" or spell.english == "Noctohelix" or spell.english == "Luminohelix" then
  252. if buffactive['Parsimony'] then
  253. if buffactive['Ebullience'] then
  254. equip(sets.midcast.helix, {head="Arbatel Bonnet +1", legs="Arbatel Pants +1"})
  255. if spell.element == world.weather_element or spell.element == world.day_element then
  256. equip(sets.Obi[spell.element], {waist="Yamabuki-no-Obi"})
  257. if buffactive['Klimaform'] then
  258. equip(sets.midcast.lowtier, {feet="Arbatel Loafers +1"})
  259. end
  260. end
  261. else
  262. equip(sets.midcast.helix, {legs="Arbatel Pants +1"})
  263. if spell.element == world.weather_element or spell.element == world.day_element then
  264. equip(sets.Obi[spell.element], {waist="Yamabuki-no-Obi"})
  265. if buffactive['Klimaform'] then
  266. equip(sets.midcast.lowtier, {feet="Arbatel Loafers +1"})
  267. end
  268. end
  269. end
  270. elseif buffactive['Ebullience'] then
  271. equip(sets.midcast.helix, {head="Arbatel Bonnet +1"})
  272. if spell.element == world.weather_element or spell.element == world.day_element then
  273. equip(sets.Obi[spell.element], {waist="Yamabuki-no-Obi"})
  274. if buffactive['Klimaform'] then
  275. equip(sets.midcast.lowtier, {feet="Arbatel Loafers +1"})
  276. end
  277. end
  278. else
  279. equip(sets.midcast.helix)
  280. if spell.element == world.weather_element or spell.element == world.day_element then
  281. equip(sets.Obi[spell.element], {waist="Yamabuki-no-Obi"})
  282. if buffactive['Klimaform'] then
  283. equip(sets.midcast.lowtier, {feet="Arbatel Loafers +1"})
  284. end
  285. end
  286. end
  287.  
  288. elseif spell.english == 'Impact' then
  289. equip(sets.midcast.impact)
  290.  
  291. elseif spell.english == 'Rasp' or spell.english == 'Choke' or spell.english == 'Frost' or spell.english == 'Burn' or spell.english == 'Drown' or spell.english == 'Shock' then
  292. if buffactive['Parsimony'] then
  293. equip(sets.midcast.dot, {legs="Arbatel Pants +1"})
  294. else
  295. equip(sets.midcast.dot)
  296. end
  297.  
  298. elseif spell.english == "Stone" or spell.english == "Stone II" or spell.english == "Aero" or spell.english == "Aero II" or spell.english == "Blizzard" or spell.english == "Blizzard II" or spell.english == "Fire" or spell.english == "Fire II" or spell.english == "Water" or spell.english == "Water II" or spell.english == "Thunder" or spell.english == "Thunder II" then
  299. if buffactive['Parsimony'] then
  300. if buffactive['Ebullience'] then
  301. if nukeset == 1 then
  302. equip(sets.midcast.lowtier, {head="Arbatel Bonnet +1", legs="Arbatel Pants +1"})
  303. if spell.element == world.weather_element or spell.element == world.day_element then
  304. equip(sets.Obi[spell.element])
  305. if buffactive['Klimaform'] then
  306. equip(sets.midcast.lowtier, {feet="Arbatel Loafers +1"})
  307. end
  308. end
  309. else
  310. equip(sets.midcast.resistnuke, {head="Arbatel Bonnet +1", legs="Arbatel Pants +1"})
  311. if spell.element == world.weather_element or spell.element == world.day_element then
  312. equip(sets.Obi[spell.element])
  313. if buffactive['Klimaform'] then
  314. equip(sets.midcast.lowtier, {feet="Arbatel Loafers +1"})
  315. end
  316. end
  317. end
  318. else
  319. if nukeset == 1 then
  320. equip(sets.midcast.lowtier, {legs="Arbatel Pants +1"})
  321. if spell.element == world.weather_element or spell.element == world.day_element then
  322. equip(sets.Obi[spell.element])
  323. if buffactive['Klimaform'] then
  324. equip(sets.midcast.lowtier, {feet="Arbatel Loafers +1"})
  325. end
  326. end
  327. else
  328. equip(sets.midcast.resistnuke, {legs="Arbatel Pants +1"})
  329. if spell.element == world.weather_element or spell.element == world.day_element then
  330. equip(sets.Obi[spell.element])
  331. if buffactive['Klimaform'] then
  332. equip(sets.midcast.lowtier, {feet="Arbatel Loafers +1"})
  333. end
  334. end
  335. end
  336. end
  337. elseif buffactive['Ebullience'] then
  338. if nukeset == 1 then
  339. equip(sets.midcast.lowtier, {head="Arbatel Bonnet +1"})
  340. if spell.element == world.weather_element or spell.element == world.day_element then
  341. equip(sets.Obi[spell.element])
  342. if buffactive['Klimaform'] then
  343. equip(sets.midcast.lowtier, {feet="Arbatel Loafers +1"})
  344. end
  345. end
  346. else
  347. equip(sets.midcast.resistnuke, {head="Arbatel Bonnet +1"})
  348. if spell.element == world.weather_element or spell.element == world.day_element then
  349. equip(sets.Obi[spell.element])
  350. if buffactive['Klimaform'] then
  351. equip(sets.midcast.lowtier, {feet="Arbatel Loafers +1"})
  352. end
  353. end
  354. end
  355. else
  356. if nukeset == 1 then
  357. equip(sets.midcast.lowtier)
  358. if spell.element == world.weather_element or spell.element == world.day_element then
  359. equip(sets.Obi[spell.element])
  360. if buffactive['Klimaform'] then
  361. equip(sets.midcast.lowtier, {feet="Arbatel Loafers +1"})
  362. end
  363. end
  364. else
  365. equip(sets.midcast.resistnuke)
  366. if spell.element == world.weather_element or spell.element == world.day_element then
  367. equip(sets.Obi[spell.element])
  368. if buffactive['Klimaform'] then
  369. equip(sets.midcast.lowtier, {feet="Arbatel Loafers +1"})
  370. end
  371. end
  372. end
  373. end
  374. else
  375. if buffactive['Parsimony'] then
  376. if buffactive['Ebullience'] then
  377. if nukeset == 1 then
  378. equip(sets.midcast.nuke, {head="Arbatel Bonnet +1", legs="Arbatel Pants +1"})
  379. if spell.element == world.weather_element or spell.element == world.day_element then
  380. equip(sets.Obi[spell.element])
  381. if buffactive['Klimaform'] then
  382. equip(sets.midcast.lowtier, {feet="Arbatel Loafers +1"})
  383. end
  384. end
  385. else
  386. equip(sets.midcast.resistnuke, {head="Arbatel Bonnet +1", legs="Arbatel Pants +1"})
  387. if spell.element == world.weather_element or spell.element == world.day_element then
  388. equip(sets.Obi[spell.element])
  389. if buffactive['Klimaform'] then
  390. equip(sets.midcast.lowtier, {feet="Arbatel Loafers +1"})
  391. end
  392. end
  393. end
  394. else
  395. if nukeset == 1 then
  396. equip(sets.midcast.nuke, {legs="Arbatel Pants +1"})
  397. if spell.element == world.weather_element or spell.element == world.day_element then
  398. equip(sets.Obi[spell.element])
  399. if buffactive['Klimaform'] then
  400. equip(sets.midcast.lowtier, {feet="Arbatel Loafers +1"})
  401. end
  402. end
  403. else
  404. equip(sets.midcast.resistnuke, {legs="Arbatel Pants +1"})
  405. if spell.element == world.weather_element or spell.element == world.day_element then
  406. equip(sets.Obi[spell.element])
  407. if buffactive['Klimaform'] then
  408. equip(sets.midcast.lowtier, {feet="Arbatel Loafers +1"})
  409. end
  410. end
  411. end
  412. end
  413. elseif buffactive['Ebullience'] then
  414. if nukeset == 1 then
  415. equip(sets.midcast.nuke, {head="Arbatel Bonnet +1"})
  416. if spell.element == world.weather_element or spell.element == world.day_element then
  417. equip(sets.Obi[spell.element])
  418. if buffactive['Klimaform'] then
  419. equip(sets.midcast.lowtier, {feet="Arbatel Loafers +1"})
  420. end
  421. end
  422. else
  423. equip(sets.midcast.resistnuke, {head="Arbatel Bonnet +1"})
  424. if spell.element == world.weather_element or spell.element == world.day_element then
  425. equip(sets.Obi[spell.element])
  426. if buffactive['Klimaform'] then
  427. equip(sets.midcast.lowtier, {feet="Arbatel Loafers +1"})
  428. end
  429. end
  430. end
  431. else
  432. if nukeset == 1 then
  433. equip(sets.midcast.nuke)
  434. if spell.element == world.weather_element or spell.element == world.day_element then
  435. equip(sets.Obi[spell.element])
  436. if buffactive['Klimaform'] then
  437. equip(sets.midcast.lowtier, {feet="Arbatel Loafers +1"})
  438. end
  439. end
  440. else
  441. equip(sets.midcast.resistnuke)
  442. if spell.element == world.weather_element or spell.element == world.day_element then
  443. equip(sets.Obi[spell.element])
  444. if buffactive['Klimaform'] then
  445. equip(sets.midcast.lowtier, {feet="Arbatel Loafers +1"})
  446. end
  447. end
  448. end
  449. end
  450. end
  451.  
  452. --Healing Magic--
  453. elseif spell.skill == 'Healing Magic' then
  454. if string.find(spell.english,'Cur') and spell.name ~= 'Cursna' then
  455. if buffactive['Penury'] then
  456. if buffactive['Rapture'] then
  457. equip(sets.midcast.cure, {head="Arbatel Bonnet +1", legs="Arbatel Pants +1"})
  458. if spell.element == world.weather_element or spell.element == world.day_element then
  459. equip(sets.midcast.weathercure)
  460. end
  461. else
  462. equip(sets.midcast.cure, {legs="Arbatel Pants +1"})
  463. if spell.element == world.weather_element or spell.element == world.day_element then
  464. equip(sets.midcast.weathercure)
  465. end
  466. end
  467. elseif buffactive['Rapture'] then
  468. equip(sets.midcast.cure, {head="Arbatel Bonnet +1"})
  469. if spell.element == world.weather_element or spell.element == world.day_element then
  470. equip(sets.midcast.weathercure)
  471. end
  472. else
  473. equip(sets.midcast.cure)
  474. if spell.element == world.weather_element or spell.element == world.day_element then
  475. equip(sets.midcast.weathercure)
  476. end
  477. end
  478.  
  479. elseif spell.english == "Cursna" then
  480. equip(sets.midcast.cursna)
  481.  
  482. else
  483. if buffactive['Penury'] then
  484. equip(sets.midcast.recast, {legs="Arbatel Pants +1"})
  485. else
  486. equip(sets.midcast.recast)
  487. end
  488. end
  489.  
  490.  
  491. --Dark Magic--
  492. elseif spell.skill == 'Dark Magic' then
  493. if spell.english == 'Stun' then
  494. if stunset == 1 then
  495. equip(sets.midcast.stunspeed)
  496. elseif stunset == 2 then
  497. equip(sets.midcast.stunhybrid)
  498. elseif stunset == 3 then
  499. equip(sets.midcast.stunacc)
  500. end
  501.  
  502. elseif string.find(spell.english,'Aspir') or spell.english == 'Drain' then
  503. equip(sets.midcast.dark, {waist="Fucho-no-obi"})
  504.  
  505. elseif spell.english == 'Kaustra' then
  506. if buffactive['Ebullience'] then
  507. equip(sets.midcast.kaustra, {head="Arbatel Bonnet +1"})
  508. if spell.element == world.weather_element or spell.element == world.day_element then
  509. equip(sets.Obi[spell.element])
  510. end
  511. else
  512. equip(sets.midcast.kaustra)
  513. if spell.element == world.weather_element or spell.element == world.day_element then
  514. equip(sets.Obi[spell.element])
  515. end
  516. end
  517.  
  518. else
  519. equip(sets.midcast.dark)
  520. end
  521.  
  522. --Enfeebling Magic--
  523. elseif spell.skill == 'Enfeebling Magic' then
  524. if Whiteenfeeble:contains(spell.name) then
  525. equip(sets.midcast.enfeebling)
  526. elseif Blackenfeeble:contains(spell.name) then
  527. equip(sets.midcast.enfeebling)
  528. end
  529. end
  530. end
  531. end
  532.  
  533. function aftercast(spell)
  534. if idleset == 1 then
  535. if buffactive['Sublimation: Activated'] then
  536. if player.mp < 400 then
  537. equip(sets.idle.sublimationMP)
  538. else
  539. equip(sets.idle.sublimation)
  540. end
  541. else
  542. if player.mp < 400 then
  543. equip(sets.idle.MP)
  544. else
  545. equip(sets.idle.standard)
  546. end
  547. end
  548. elseif idleset == 2 then
  549. if buffactive['Sublimation: Activated'] then
  550. equip(sets.idle.DTsub)
  551. else
  552. equip(sets.idle.DT)
  553. end
  554. end
  555. end
  556.  
  557. function aftercast(spell,action)
  558. if not spell.interrupted then
  559. if spell.english == "Sleep II" then -- Sleep II Countdown --
  560. send_command('wait 45;input /echo Sleep II Effect: [WEARING OFF IN 45 SEC.];wait 30;input /echo Sleep II Effect: [WEARING OFF IN 15 SEC.];wait 10;input /echo Sleep IIEffect: [WEARING OFF IN 5 SEC.]')
  561. elseif spell.english == "Sleep" or spell.english == "Sleepga" then -- Sleep & Sleepga Countdown --
  562. 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.]')
  563. elseif spell.english == "Banish II" then -- Banish II Countdown --
  564. send_command('wait 20;input /echo Banish Effect: [WEARING OFF IN 10 SEC.]')
  565. end
  566. end
  567. status_change(player.status)
  568. end
  569.  
  570. function buff_change(buff, gain)
  571. if buff == "Sublimation: Activated" then
  572. if gain then
  573. if idleset == 1 then
  574. if player.mp < 400 then
  575. send_command('@input /echo ----- Sublimation - Low MP -----')
  576. equip(sets.idle.sublimationMP)
  577. else
  578. send_command('@input /echo ----- Sublimation - Standard -----')
  579. equip(sets.idle.sublimation)
  580. end
  581. elseif idleset == 2 then
  582. send_command('@input /echo ----- Sublimation - DT -----')
  583. equip(sets.idle.DTsub)
  584. end
  585. else
  586. if idleset == 1 then
  587. if player.mp < 400 then
  588. send_command('@input /echo ----- Idle - Low MP -----')
  589. equip(sets.idle.MP)
  590. else
  591. send_command('@input /echo ----- Idle - Standard -----')
  592. equip(sets.idle.standard)
  593. end
  594. elseif idleset == 2 then
  595. send_command('@input /echo ----- Idle - DT -----')
  596. equip(sets.idle.DT)
  597. end
  598. end
  599. end
  600. end
  601.  
  602. function status_change(new,tab)
  603. if new == "Idle" then
  604. if idleset == 1 then
  605. if player.mp < 400 then
  606. if buffactive['Sublimation: Activated'] then
  607. equip(sets.idle.sublimationMP)
  608. else
  609. equip(sets.idle.MP)
  610. end
  611. else
  612. if buffactive['Sublimation: Activated'] then
  613. equip(sets.idle.sublimation)
  614. else
  615. equip(sets.idle.standard)
  616. end
  617. end
  618. elseif idleset == 2 then
  619. if buffactive['Sublimation: Activated'] then
  620. equip(sets.idle.DTsub)
  621. else
  622. equip(sets.idle.DT)
  623. end
  624. end
  625. elseif new == "Resting" then
  626. equip(sets.idle.hmp)
  627. end
  628. end
  629.  
  630. function self_command(command)
  631. if command == 'toggle idle' then
  632. idleset = idleset +1
  633. if idleset > 2 then
  634. idleset = 1
  635. if player.mp < 400 then
  636. if buffactive['Sublimation: Activated'] then
  637. send_command('@input /echo ----- Sublimation - Low MP -----')
  638. equip(sets.idle.sublimationMP)
  639. else
  640. send_command('@input /echo ----- Idle - Low MP -----')
  641. equip(sets.idle.MP)
  642. end
  643. else
  644. if buffactive['Sublimation: Activated'] then
  645. send_command('@input /echo ----- Sublimation - Standard -----')
  646. equip(sets.idle.sublimation)
  647. else
  648. send_command('@input /echo ----- Idle - Standard -----')
  649. equip(sets.idle.standard)
  650. end
  651. end
  652. elseif idleset == 2 then
  653. if buffactive['Sublimation: Activated'] then
  654. send_command('@input /echo ----- Sublimation - DT -----')
  655. equip(sets.idle.DTsub)
  656. else
  657. send_command('@input /echo ---- Idle - DT -----')
  658. equip(sets.idle.DT)
  659. end
  660. end
  661. end
  662. if command == 'toggle stun' then
  663. stunset = stunset +1
  664. if stunset > 3 then
  665. stunset = 1
  666. send_command('@input /echo ----- Stuns - Speed -----')
  667. elseif stunset == 2 then
  668. send_command('@input /echo ----- Stuns - Hybrid -----')
  669. elseif stunset == 3 then
  670. send_command('@input /echo ----- Stuns - M.acc -----')
  671. end
  672. end
  673. if command == 'toggle nuke' then
  674. nukeset = nukeset +1
  675. if nukeset > 2 then
  676. nukeset = 1
  677. send_command('@input /echo ----- Nukes - Damage -----')
  678. elseif nukeset == 2 then
  679. send_command('@input /echo ----- Nukes - Acc -----')
  680. end
  681. end
  682. end
Advertisement
Add Comment
Please, Sign In to add comment