Guest User

Kensagaku_BRD

a guest
May 30th, 2014
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.49 KB | None | 0 0
  1. function get_sets()
  2.  
  3. --Variables
  4. instrument = 1 --1 = Gjallarhorn, 2 = Terpander
  5. idleset = 1 --1 = Standard, 2 = PDT
  6. debuff = S{'Battlefield Elegy', 'Carnage Elegy', 'Pining Nocturne', 'Water Threnody', 'Lightning Threnody', 'Fire Threnody', 'Wind Threnody', 'Dark Threnody', 'Light Threnody', 'Ice Threnody', 'Earth Threnody', 'Magic Finale'}
  7.  
  8. --Idle Sets
  9. sets.idle = {}
  10.  
  11. sets.idle.standard = {main="Felibre's Dague", sub="Genbu's Shield", range="Gjallarhorn",
  12. head="Wivre Hairpin", neck="Twilight Torque", lear="Gifted Earring", rear="Loquac. Earring",
  13. body="Artsieq Jubbah", hands="Artsieq Cuffs", lring="Sangoma Ring", rring="Balrahn's Ring",
  14. back="Rhapsode's Cape", waist="Fucho-no-Obi", legs="Nares Trews", feet="Aoidos' Cothurnes +2"}
  15.  
  16. sets.idle.PDT = {main="Earth Staff", sub="Mephitis Grip", range="Gjallarhorn",
  17. head="Wivre Hairpin", neck="Twilight Torque", lear="Gifted Earring", rear="Loquac. Earring",
  18. body="Bihu Justaucorps", hands="Artsieq Cuffs", lring="Dark Ring", rring="Dark Ring",
  19. back="Cheviot Cape", waist="Fucho-no-Obi", legs="Bihu Cannions", feet="Bihu Slippers"}
  20.  
  21. --Precast Sets
  22. sets.precast = {}
  23.  
  24. sets.precast.song = {main="Felibre's Dague", sub="Genbu's Shield", range="Gjallarhorn",
  25. head="Aoidos' Calot +2", neck="Aoidos' Matinee", rear="Loquac. Earring",
  26. body="Sha'ir Manteel", hands="Schellenband",
  27. back="Swith Cape", waist="Aoidos' Belt", legs="Gendewitha Spats", feet="Bihu Slippers"}
  28.  
  29. sets.precast.cure = {head="Nahtirah Hat", rear="Loquac. Earring",
  30. body="Heka's Kalasiris", hands="Repartie Gloves",
  31. back="Swith Cape", feet="Chelona Boots"}
  32.  
  33. sets.precast.FC = {"Nahtirah Hat", rear="Loquac. Earring",
  34. body="Anhur Robe", hands="Repartie Gloves",
  35. back="Swith Cape", feet="Chelona Boots"}
  36.  
  37. --Midcast sets
  38. sets.midcast = {}
  39.  
  40. sets.midcast.scherzo = {main="Legato Dagger", sub="Genbu's Shield", range="Gjallarhorn",
  41. head="Aoidos' Calot +2", neck="Aoidos' Matinee", rear="Musical Earring",
  42. body="Aoidos' Hongreline +2", hands="Aoidos' Manchettes +2",
  43. back="Harmony Cape", waist="Corvax Sash", legs="Marduk's Shalwar +1", feet="Brioso Slippers"}
  44.  
  45. sets.midcast.noskill = {main="Legato Dagger", sub="Genbu's Shield", range="Gjallarhorn",
  46. head="Aoidos' Calot +2", neck="Aoidos' Matinee",
  47. body="Aoidos' Hongreline +2", hands="Aoidos' Manchettes +2",
  48. back="Harmony Cape", waist="Corvax Sash", legs="Marduk's Shalwar +1", feet="Brioso Slippers"}
  49.  
  50. sets.midcast.recast = {main="Legato Dagger", sub="Genbu's Shield", range="Gjallarhorn",
  51. head="Shedir Turban", neck="Aoidos' Matinee",
  52. body="Aoidos' Hongreline +2", hands="Espial Bracers",
  53. back="Harmony Cape", waist="Corvax Sash", legs="Aoidos' Rhingrave +2", feet="Brioso Slippers"}
  54.  
  55. sets.midcast.ballad = {range="Gjallarhorn", legs="Aoidos' Rhingrave +2"}
  56.  
  57. sets.midcast.cure = {main="Arka IV",
  58. head="Nahtirah Hat", neck="Colossus's Torque", rear="Lifestorm Earring", lear="Psystorm Earring",
  59. body="Heka's Kalasiris", hands="Serpentes Cuffs", rring="Sirona's ring", lring="Aquasoul Ring",
  60. back="Oretania's Cape", legs="Nares Trews", feet="Serpentes Sabots"}
  61.  
  62. sets.midcast.stoneskin = {head="Nahtirah Hat", neck="Colossus's Torque", rear="Gifted Earring",
  63. body="Heka's Kalasiris", rring="Sirona's Ring", lring="Aquasoul Ring",
  64. back="Refraction Cape", waist="Siegel Sash", legs="Haven Hose", feet="Chelona Boots"}
  65.  
  66. sets.midcast.debuff = {main="Twebuliij", sub="Mephitis Grip", range="Gjallarhorn",
  67. head="Nahtirah Hat", neck="Aoidos' Matinee", rear="Lifestorm Earring", lear="Psystorm Earring",
  68. body="Aoidos' Hongreline +2", hands="Aoidos' Manchettes +2", lring="Balrahn's Ring", rring="Sangoma Ring",
  69. back="Rhapsode's Cape", waist="Demonry Sash", legs="Bihu Cannions", feet="Bokwus Boots"}
  70.  
  71. sets.midcast.harp = {range="Terpander"}
  72.  
  73. --JA Sets
  74. sets.precast.JA = {}
  75. sets.precast.JA['Nightingale'] = {body="Bihu Slippers"}
  76. sets.precast.JA['Troubadour'] = {feet="Bihu Justaucorps"}
  77. sets.precast.JA['Soul Voice'] = {legs="Bihu Cannions"}
  78. end
  79.  
  80. function precast(spell)
  81. if spell.action_type == 'Magic' then
  82.  
  83. if spell.type == 'BardSong' and buffactive.Nightingale then
  84. if string.find(spell.english,'Valor Minuet') then
  85. if instrument == 2 then
  86. equip(sets.midcast.noskill,{range="Terpander", body="Aoidos' Hongreline +2"})
  87. else
  88. equip(sets.midcast.noskill,{body="Aoidos' Hongreline +2"})
  89. end
  90.  
  91. elseif string.find(spell.english,"Knight's Minne") then
  92. if instrument == 2 then
  93. equip(sets.midcast.noskill,{range="Terpander"})
  94. else
  95. equip(sets.midcast.noskill)
  96. end
  97.  
  98. elseif spell.english == "Victory March" or spell.english == "Advancing March" then
  99. if instrument == 2 then
  100. equip(sets.midcast.noskill,{range="Terpander", hands="Aoidos' Manchettes +2"})
  101. else
  102. equip(sets.midcast.noskill,{hands="Aoidos' Manchettes +2"})
  103. end
  104.  
  105. elseif spell.english == 'Blade Madrigal' or spell.english == 'Sword Madrigal' then
  106. if instrument == 2 then
  107. equip(sets.midcast.noskill,{range="Terpander", head="Aoidos' Calot +2"})
  108. else
  109. equip(sets.midcast.noskill,{head="Aoidos' Calot +2"})
  110. end
  111.  
  112. elseif string.find(spell.english,"Mage's Ballad") then
  113. if instrument == 2 then
  114. equip(sets.midcast.recast,sets.midcast.ballad,{range="Terpander"})
  115. else
  116. equip(sets.midcast.recast,sets.midcast.ballad)
  117. end
  118.  
  119. elseif spell.english == "Sentinel's Scherzo" then
  120. if instrument == 2 then
  121. equip(sets.midcast.scherzo, {range="Terpander", "Aoidos' Cothurnes +2"})
  122. else
  123. equip(sets.midcast.scherzo,{"Aoidos' Cothurnes +2"})
  124. end
  125.  
  126. elseif string.find(spell.english,'Carol') then
  127. if instrument == 2 then
  128. equip(sets.midcast.scherzo, {range="Terpander"})
  129. else
  130. equip(sets.midcast.scherzo)
  131. end
  132.  
  133. elseif string.find(spell.english,'Mambo') or string.find(spell.english,'Prelude') or string.find(spell.english,'Etude') then
  134. if instrument == 2 then
  135. equip(sets.midcast.noskill,{range="Terpander"})
  136. else
  137. equip(sets.midcast.noskill)
  138. end
  139.  
  140. elseif string.find(spell.english,'Mazurka') or string.find(spell.english,'Hymnus') or string.find(spell.english,'Paeon') then
  141. if instrument == 2 then
  142. equip(sets.midcast.recast,{range="Terpander"})
  143. else
  144. equip(sets.midcast.recast)
  145. end
  146.  
  147. elseif string.find(spell.english,'Elegy') or string.find(spell.english,"Nocturne") or string.find(spell.english,'Threnody') or string.find(spell.english,'Finale') then
  148. if instrument == 2 then
  149. instrument = 1
  150. equip(sets.midcast.debuff)
  151. end
  152.  
  153. elseif spell.english == 'Foe Lullaby' then
  154. if instrument == 2 then
  155. instrument = 1
  156. equip(sets.midcast.debuff,sets.midcast.recast)
  157. end
  158.  
  159. elseif string.find(spell.english,'Horde Lullaby') then
  160. equip(sets.midcast.debuff,sets.midcast.recast,{range="Terpander"})
  161. end
  162.  
  163. elseif spell.type == 'BardSong' then
  164. if instrument == 2 then
  165. equip(sets.precast.song,{range="Terpander"})
  166. else
  167. equip(sets.precast.song)
  168. end
  169.  
  170. elseif spell.skill == "Healing Magic" then
  171. if string.find(spell.english,'Cur') and spell.name ~= 'Cursna' then
  172. equip(sets.precast.cure)
  173. else
  174. equip(sets.precast.FC)
  175. end
  176.  
  177. else
  178. equip(sets.precast.FC)
  179. end
  180.  
  181. elseif spell.action_type == 'JobAbility' then
  182. if sets.precast.JA[spell.english] then equip(sets.precast.JA[spell.english]) end
  183. end
  184. end
  185.  
  186. function midcast(spell)
  187. if spell.action_type == 'Magic' then
  188. if spell.type == 'BardSong' then
  189. if string.find(spell.english,'Valor Minuet') then
  190. if instrument == 2 then
  191. equip(sets.midcast.noskill,{range="Terpander", body="Aoidos' Hongreline +2"})
  192. else
  193. equip(sets.midcast.noskill,{body="Aoidos' Hongreline +2"})
  194. end
  195.  
  196. elseif string.find(spell.english,"Knight's Minne") then
  197. if instrument == 2 then
  198. equip(sets.midcast.noskill,{range="Terpander"})
  199. else
  200. equip(sets.midcast.noskill)
  201. end
  202.  
  203. elseif string.find(spell.english,'March') then
  204. if instrument == 2 then
  205. equip(sets.midcast.noskill, {range="Terpander", hands="Aoidos' Manchettes +2"})
  206. else
  207. equip(sets.midcast.noskill,{hands="Aoidos' Manchettes +2"})
  208. end
  209.  
  210. elseif string.find(spell.english,'Madrigal') then
  211. if instrument == 2 then
  212. equip(sets.midcast.noskill,{range="Terpander", head="Aoidos' Calot +2"})
  213. else
  214. equip(sets.midcast.noskill,{head="Aoidos' Calot +2"})
  215. end
  216.  
  217. elseif string.find(spell.english,'Ballad') then
  218. if instrument == 2 then
  219. equip(sets.midcast.recast,sets.midcast.ballad,{range="Terpander"})
  220. else
  221. equip(sets.midcast.recast,sets.midcast.ballad)
  222. end
  223.  
  224. elseif string.find(spell.english,'Scherzo') then
  225. if instrument == 2 then
  226. equip(sets.midcast.scherzo,{range="Terpander", "Aoidos' Cothurnes +2"})
  227. else
  228. equip(sets.midcast.scherzo,{"Aoidos' Cothurnes +2"})
  229. end
  230.  
  231. elseif string.find(spell.english,'Carol') then
  232. if instrument == 2 then
  233. equip(sets.midcast.scherzo, {range="Terpander"})
  234. else
  235. equip(sets.midcast.scherzo)
  236. end
  237.  
  238. elseif string.find(spell.english,'Mambo') or string.find(spell.english,'Prelude') or string.find(spell.english,'Etude') then
  239. if instrument == 2 then
  240. equip(sets.midcast.noskill, {range="Terpander"})
  241. else
  242. equip(sets.midcast.noskill)
  243. end
  244.  
  245. elseif string.find(spell.english,'Mazurka') or string.find(spell.english,'Hymnus') or string.find(spell.english,'Paeon') then
  246. if instrument == 2 then
  247. equip(sets.midcast.recast,{range="Terpander"})
  248. else
  249. equip(sets.midcast.recast)
  250. end
  251.  
  252. elseif debuff:contains(spell.name) then
  253. if instrument == 2 then
  254. instrument = 1
  255. equip(sets.midcast.debuff)
  256. end
  257.  
  258. elseif string.find(spell.english,'Foe Lullaby') then
  259. if instrument == 2 then
  260. instrument = 1
  261. equip(sets.midcast.debuff,sets.midcast.recast)
  262. end
  263.  
  264. elseif string.find(spell.english,'Horde Lullaby') then
  265. equip(sets.midcast.debuff,{range="Terpander"})
  266. end
  267.  
  268. elseif spell.skill == 'Healing Magic' then
  269. if string.find(spell.english,'Cur') and spell.name ~= 'Cursna' then
  270. equip(sets.midcast.cure)
  271. else
  272. equip(sets.midcast.recast)
  273. end
  274.  
  275. elseif spell.skill == 'Enhancing Magic' then
  276. if string.find(spell.english,'Stoneskin') then
  277. equip(sets.midcast.stoneskin)
  278. end
  279. end
  280. end
  281. end
  282.  
  283. function aftercast(spell)
  284. if idleset == 1 then
  285. equip(sets.idle.standard)
  286. elseif idleset == 2 then
  287. equip(sets.idle.PDT)
  288. end
  289. end
  290.  
  291. function self_command(command)
  292. if command == 'toggle self set' then
  293. idleset = idleset +1
  294. if idleset > 2 then
  295. idleset = 1
  296. send_command('@input /echo ----- Standard Set -----')
  297. equip(sets.idle.standard)
  298. elseif idleset == 2 then
  299. send_command('@input /echo ----- PDT Set -----')
  300. equip(sets.idle.PDT)
  301. end
  302. elseif command == 'set idle' then
  303. if idleset == 1 then
  304. send_command('@input /echo ----- Idle Set -----')
  305. equip(sets.idle.standard)
  306. elseif idleset == 2 then
  307. send_command('@input /echo ----- PDT Set -----')
  308. equip(sets.idle.PDT)
  309. end
  310. elseif command == 'toggle harp' then
  311. instrument = instrument +1
  312. if instrument > 2 then
  313. instrument = 1
  314. send_command('@input /echo ----- Third Song Disabled -----')
  315. elseif instrument == 2 then
  316. send_command('@input /echo ----- Third Song Enabled -----')
  317. end
  318. end
  319. end
Advertisement
Add Comment
Please, Sign In to add comment