Guest User

Xodia_BRD

a guest
May 29th, 2014
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.31 KB | None | 0 0
  1. function get_sets()
  2.  
  3. Cycle1 = 'OFF'
  4. Cycle2 = 'OFF'
  5. Cycle3 = 'OFF'
  6. Cycle4 = 'OFF'
  7. Cycle5 = 'OFF'
  8. Cycle6 = 'OFF'
  9. Cycle7 = 'OFF'
  10. Cycle8 = 'OFF'
  11.  
  12. songcount = 3
  13.  
  14. sets.None = {}
  15.  
  16. sets.Idle = {main="Terra's Staff",sub="Mephitis Grip",
  17. head="Umuthi Hat",neck="Twilight Torque",ear1="Loquac. Earring",ear2="Ethereal Earring",
  18. body="Gendewitha Bilaut",hands="Serpentes Cuffs",ring1="Defending Ring",ring2="Dark Ring",
  19. back="Cheviot Cape",waist="Flume Belt",legs="Nares Trews",feet="Aoidos' Cothrn. +2"}
  20.  
  21. sets.DT = {}
  22.  
  23. sets.DT.Mode = sets.None
  24.  
  25. sets.precast = {}
  26.  
  27. sets.precast.FC = {head="Nahtirah Hat",neck="Jeweled Collar",ear1="Loquac. Earring",
  28. body="Anhur Robe",hands="Gendewitha Gages",ring1="Prolix Ring",
  29. back="Swith Cape",waist="Witful Belt",legs="Orvail Pants +1",feet="Chelona Boots",}
  30.  
  31. sets.precast.Singing = set_combine(sets.precast.FC,
  32. {main="Felibre's Dague",ammo="None",
  33. head="Aoidos' Calot +2",neck="Aoidos' Matinee",body="Sha'ir Manteel",ear2="Aoidos' Earring",
  34. legs="Gendewitha Spats",feet="Bihu Slippers"})
  35.  
  36. sets.precast.Cure = set_combine(sets.precast.FC,
  37. {body="Heka's Kalasiris",
  38. back="Pahtli Cape",
  39. legs="Nabu's Shalwar",
  40. feet="Gendewitha Galoshes"})
  41.  
  42. sets.precast.Enhancing = set_combine(sets.precast.FC,
  43. {waist="Siegel Sash"})
  44.  
  45. sets.precast.Stoneskin = set_combine(sets.precast.Enhancing,
  46. {hands="Carapacho Cuffs"})
  47.  
  48. sets.midcast = {}
  49.  
  50. sets.midcast.Singing = {main="Legato Dagger",ammo="None",
  51. head="Aoidos' Calot +2",neck="Aoidos' Matinee",
  52. body="Aoidos' Hngrln. +2",hands="Ad. Mnchtte. +2",
  53. legs="Marduk's Shalwar +1",feet="Brioso Slippers +1"}
  54.  
  55. sets.midcast.Cure = {main="Chatoyant Staff",
  56. head="Gende. Caubeen",neck="Colossus's Torque",ear1="Loquac. Earring",ear2="Lifestorm Earring",
  57. body="Heka's Kalasiris",hands="Bokwus Gloves",ring1="Balrahn's Ring",ring2="Sangoma Ring",
  58. back="Pahtli Cape",waist="Demonry Sash",legs="Nares Trews",feet="Gendewita Galoshes"}
  59.  
  60. sets.midcast.Enfeebling = {main="Lehbrailg +2",sub="Mephitis Grip",
  61. head="Bihu Roundlet +1",neck="Barcarolle Medal",ear1="Gwati Earring",ear2="Musical Earring",
  62. body="Brioso Just. +1",hands="Ad. Mnchtte. +2",ring1="Perception Ring",ring2="Sangoma Ring",
  63. back="Rhapsode's Cape",waist="Demonry Sash",legs="Bihu Cannions +1",feet="Brioso Slippers +1"}
  64.  
  65. sets.midcast.Recast = {head="Gende. Caubeen",neck="jeweled Collar",ear1="Loquac. Earring",
  66. body="Gendewitha Bilaut",hands="Genewitha Gages",ring1="Prolix Ring",
  67. back="Swith Cape",waist="Witful Belt",legs="Gendewitha Spats",feet="Brioso Slippers +1"}
  68.  
  69.  
  70. sets.JA = {}
  71.  
  72. sets.JA.Troubadour = {body="Bihu Justaucorps"}
  73.  
  74. sets.JA.Nightingale = {feet="Bihu Slippers"}
  75.  
  76. sets.JA['Soul Voice'] = {legs="Bihu Cannions +1"}
  77.  
  78. --Obis--
  79. sets.Obi = {}
  80.  
  81. sets.Obi.Fire = {waist="Karin Obi"}
  82. sets.Obi.Earth = {waist="Dorin Obi"}
  83. sets.Obi.Water = {waist="Suirin Obi"}
  84. sets.Obi.Wind = {waist="Furin Obi"}
  85. sets.Obi.Ice = {waist="Hyorin Obi"}
  86. sets.Obi.Thunder = {waist="Rairin Obi"}
  87. sets.Obi.Light = {waist="Korin Obi"}
  88. sets.Obi.Dark = {waist="Anrin Obi"}
  89.  
  90. Obi = {}
  91.  
  92. Obi.Fire = 'Karin Obi'
  93. Obi.Earth = 'Dorin Obi'
  94. Obi.Water = 'Suirin Obi'
  95. Obi.Wind = 'Furin Obi'
  96. Obi.Ice = 'Hyorin Obi'
  97. Obi.Thunder = 'Rairin Obi'
  98. Obi.Light = 'Korin Obi'
  99. Obi.Dark = 'Anrin Obi'
  100.  
  101. end
  102.  
  103. function build_sets()
  104.  
  105. send_command('@gs c Update')
  106.  
  107. end
  108.  
  109. function pretarget(spell)
  110.  
  111. if buffactive['Pianissimo'] and
  112. spell.skill == 'Singing' then
  113. if spell.target.raw == '<me>' then
  114. change_target('<t>')
  115. end
  116. end
  117.  
  118. end
  119.  
  120. function precast(spell)
  121.  
  122. if spell.english == 'Pianissimo' or
  123. spell.english == 'Tenuto' then
  124. return
  125. end
  126.  
  127. if spell.action_type == 'Magic' then
  128. equip(sets.precast.FC)
  129. if buffactive['silence'] then
  130. cancel_spell()
  131. add_to_chat(158,'== Silenced! Unable to cast spells! ==')
  132. end
  133. end
  134.  
  135. if spell.skill == 'Singing' then
  136. equip(sets.precast.Singing)
  137. if spell.target.type == 'MONSTER' then
  138. equip({main='Lehbrailg +2',sub='Mephitis Grip'})
  139. end
  140. if T{"Victory March","Advancing March"}:
  141. contains(spell.english) then
  142. equip({range="Gjallarhorn"})
  143. elseif T{"Archer's Prelude","Hunter's Prelude","Blade Madrigal","Sword Madrigal"}:
  144. contains(spell.english) then
  145. equip({range="Gjallarhorn"})
  146. elseif T{"Mage's Ballad","Mage's Ballad II","Mage's Ballad III"}:
  147. contains(spell.english) then
  148. equip({range="Gjallarhorn"})
  149. elseif T{"Magic Finale","Foe Lullaby","Foe Lullaby II"}:
  150. contains(spell.english) then
  151. equip({range="Gjallarhorn"})
  152. elseif T{"Valor Minuet","Valor Minuet II","Valor Minuet III","Valor Minuet IV","Valor Minuet V"}:
  153. contains(spell.english) then
  154. equip({range="Gjallarhorn"})
  155. elseif T{"Army's Paeon","Army's Paeon II","Army's Paeon III","Army's Paeon IV","Army's Paeon V","Army's Paeon VI"}:
  156. contains(spell.english) then
  157. equip({range="Terpander"})
  158. elseif T{"Horde Lullaby","Horde Lullaby II"}:
  159. contains(spell.english) then
  160. equip({range="Gjallarhorn",hands="Brioso Cuffs +1"})
  161. elseif T{'Foe Requiem','Foe Requiem II','Foe Requiem III','Foe Requiem IV','Foe Requiem V','Foe Requiem VI','Foe Requiem VII',}:
  162. contains(spell.english) then
  163. equip({range="Gjallarhorn"})
  164. else
  165. equip({range="Terpander"})
  166. end
  167. end
  168.  
  169. if T{'Cure','Cure II','Cure III','Cure IV','Curaga','Curaga II','Cura'}:
  170. contains(spell.english) then
  171. equip(sets.precast.Cure)
  172. end
  173.  
  174. if spell.skill == 'Enhancing Magic' then
  175. equip(sets.precast.Enhancing)
  176. if spell.english == 'Stoneskin' then
  177. equip(sets.precast.Stoneskin)
  178. end
  179. end
  180.  
  181. if sets.JA[spell.english] then
  182. equip(sets.JA[spell.english])
  183. end
  184.  
  185. end
  186.  
  187. function midcast(spell,act)
  188.  
  189. if spell.skill == 'Singing' then
  190. equip(sets.midcast.Singing)
  191. if spell.target.type == 'MONSTER' then
  192. equip(sets.midcast.Enfeebling)
  193. end
  194. end
  195.  
  196.  
  197. if T{"Mage's Ballad","Mage's Ballad II","Mage's Ballad III","Chocobo Mazurka","Raptor Mazurka"}:
  198. contains(spell.english) then
  199. equip({neck="Aoidos' Matinee",feet="Brioso Slippers +1"})
  200. end
  201.  
  202. if T{'Cure','Cure II','Cure III','Cure IV','Curaga','Curaga II','Cura'}:
  203. contains(spell.english) then
  204. equip(sets.midcast.Cure)
  205. if T{world.day_element,world.weather_element}:
  206. contains(spell.element) then
  207. equip({main="Chatoyant Staff",back="Twilight Cape"})
  208. if player.inventory[Obi[spell.element]] then
  209. equip(sets.Obi[spell.element])
  210. end
  211. end
  212. end
  213.  
  214. if T{'Haste','Raise','Paralyna','Silena','Blindna','Stona','Viruna','Poisona','Erase'}:
  215. contains(spell.english) then
  216. equip(sets.midcast.Recast)
  217. end
  218.  
  219. if spell.english == 'Cursna' then
  220. equip(sets.midcast.Cursna)
  221. end
  222.  
  223. if spell.english == 'Stoneskin' then
  224. equip(sets.midcast.Stoneskin)
  225. end
  226.  
  227. end
  228.  
  229. function aftercast(spell)
  230.  
  231. if spell.english == 'Pianissimo' or
  232. spell.english == 'Tenuto' then
  233. return
  234. end
  235.  
  236. if spell.english == 'Foe Lullaby' and
  237. not spell.interrupted then
  238. send_command('@timers c "'..spell.english..'['..spell.target.name..']" 39 down')
  239. end
  240.  
  241. if spell.english == 'Foe Lullaby II' and
  242. not spell.interrupted then
  243. send_command('@timers c "'..spell.english..'['..spell.target.name..']" 78 down')
  244. end
  245.  
  246. if spell.english == 'Horde Lullaby' and
  247. not spell.interrupted then
  248. send_command('@timers c "'..spell.english..'['..spell.target.name..']" 36 down')
  249. end
  250.  
  251. if spell.english == 'Horde Lullaby II' and
  252. not spell.interrupted then
  253. send_command('@timers c "'..spell.english..'['..spell.target.name..']" 72 down')
  254. end
  255.  
  256. if Cycle1 == 'ON' then
  257. if spell.english == "Archer's Prelude" then
  258. send_command('@wait 3;input /ma "Valor Minuet V" <me>')
  259. end
  260. if spell.english == 'Valor Minuet V' then
  261. if buffactive['Clarion Call'] or
  262. songcount == 4 then
  263. send_command("@wait 3;input /ma Hunter's Prelude <me>")
  264. else
  265. send_command("@wait 3;input /ma Army's Paeon VI <me>")
  266. end
  267. end
  268. if spell.english == "Hunter's Prelude" then
  269. send_command("@wait 3;input /ma Army's Paeon VI <me>")
  270. end
  271. if spell.english == "Army's Paeon VI" then
  272. send_command('@wait 3;input /ma "Valor Minuet IV" <me>')
  273. end
  274. if spell.english == 'Valor Minuet IV' then
  275. Cycle1 = 'OFF'
  276. add_to_chat(158,"Song Cycle 1: ["..Cycle1.."]")
  277. end
  278. end
  279. if Cycle2 == 'ON' then
  280. if spell.english == "Mage's Ballad III" then
  281. send_command("@wait 3;input /ja Pianissimo <me>;wait 1.5;input /ma Mage's Ballad II Oshawott")
  282. end
  283. if spell.english == "Mage's Ballad II" then
  284. if buffactive['Clarion Call'] or
  285. songcount == 4 then
  286. send_command("@wait 3;input /ja Pianissimo <me>;wait 1.5;input /ma Mage's Ballad Oshawott")
  287. else
  288. send_command("@wait 3;input /ja Pianissimo <me>;wait 1.5;input /ma Victory March Oshawott")
  289. end
  290. end
  291. if spell.english == "Mage's Ballad" then
  292. send_command("@wait 3;input /ja Pianissimo <me>;wait 1.5;input /ma Army's Paeon VI Oshawott")
  293. end
  294. if spell.english == "Army's Paeon VI" then
  295. send_command("@wait 3;input /ja Pianissimo <me>;wait 1.5;input /ma Victory March Oshawott")
  296. end
  297. if spell.english == "Victory March" then
  298. Cycle2 = 'OFF'
  299. add_to_chat(158,"Song Cycle 2: ["..Cycle2.."]")
  300. end
  301. end
  302. if Cycle3 == 'ON' then
  303. if spell.english == "Valor Minuet V" then
  304. send_command('@wait 3;input /ma "Advancing March" <me>')
  305. end
  306. if spell.english == 'Advancing March' then
  307. if buffactive['Clarion Call'] or
  308. songcount == 4 then
  309. send_command('@wait 3;input /ma "Valor Minuet IV" <me>')
  310. else
  311. send_command("@wait 3;input /ma Army's Paeon VI <me>")
  312. end
  313. end
  314. if spell.english == "Valor Minuet IV" then
  315. send_command("@wait 3;input /ma Army's Paeon VI <me>")
  316. end
  317. if spell.english == "Army's Paeon VI" then
  318. send_command('@wait 3;input /ma "Victory March" <me>')
  319. end
  320. if spell.english == 'Victory March' then
  321. Cycle3 = 'OFF'
  322. add_to_chat(158,"Song Cycle 3: ["..Cycle3.."]")
  323. end
  324. end
  325. if Cycle4 == 'ON' then
  326. if spell.english == "Mage's Ballad III" then
  327. send_command("@wait 3;input /ma Mage's Ballad II <me>")
  328. end
  329. if spell.english == "Mage's Ballad II" then
  330. if buffactive['Clarion Call'] or
  331. songcount == 4 then
  332. send_command('@wait 3;input /ma "Victory March" <me>')
  333. else
  334. send_command("@wait 3;input /ma Army's Paeon VI <me>")
  335. end
  336. end
  337. if spell.english == "Victory March" then
  338. send_command("@wait 3;input /ma Army's Paeon VI <me>")
  339. end
  340. if spell.english == "Army's Paeon VI" then
  341. send_command("@wait 3;input /ma Mage's Ballad <me>")
  342. end
  343. if spell.english == "Mage's Ballad" then
  344. Cycle4 = 'OFF'
  345. add_to_chat(158,"Song Cycle 4: ["..Cycle4.."]")
  346. end
  347. end
  348. if Cycle5 == 'ON' then
  349. if spell.english == "Valor Minuet IV" then
  350. send_command('@wait 3;input /ma "Valor Minuet III" <me>')
  351. end
  352. if spell.english == 'Valor Minuet III' then
  353. if buffactive['Clarion Call'] or
  354. songcount == 4 then
  355. send_command('@wait 3;input /ma "Valor Minuet" <me>')
  356. else
  357. send_command("@wait 3;input /ma Army's Paeon VI <me>")
  358. end
  359. end
  360. if spell.english == "Valor Minuet" then
  361. send_command("@wait 3;input /ma Army's Paeon VI <me>")
  362. end
  363. if spell.english == "Army's Paeon VI" then
  364. send_command('@wait 3;input /ma "Valor Minuet II" <me>')
  365. end
  366. if spell.english == 'Valor Minuet II' then
  367. Cycle5 = 'OFF'
  368. add_to_chat(158,"Song Cycle 5: ["..Cycle5.."]")
  369. end
  370. end
  371. if Cycle6 == 'ON' then
  372. if spell.english == "Archer's Prelude" then
  373. send_command('@wait 3;input /ja Pianissimo <me>;wait 1.5;input /ma "Valor Minuet V" Zubrin')
  374. end
  375. if spell.english == 'Valor Minuet V' then
  376. if buffactive['Clarion Call'] or
  377. songcount == 4 then
  378. send_command("@wait 3;input /ja Pianissimo <me>;wait 1.5;input /ma Hunter's Prelude Zubrin")
  379. else
  380. send_command("@wait 3;input /ja Pianissimo <me>;wait 1.5;input /ma Army's Paeon VI Zubrin")
  381. end
  382. end
  383. if spell.english == "Hunter's Prelude" then
  384. send_command("@wait 3;input /ja Pianissimo <me>;wait 1.5;input /ma Army's Paeon VI Zubrin")
  385. end
  386. if spell.english == "Army's Paeon VI" then
  387. send_command('@wait 3;input /ja Pianissimo <me>;wait 1.5;input /ma "Valor Minuet IV" Zubrin')
  388. end
  389. if spell.english == 'Valor Minuet IV' then
  390. Cycle6 = 'OFF'
  391. add_to_chat(158,"Song Cycle 6: ["..Cycle6.."]")
  392. end
  393. end
  394. if Cycle7 == 'ON' then
  395. if spell.english == "Archer's Prelude" then
  396. send_command("@wait 3;input /ma Hunter's Prelude <me>")
  397. end
  398. if spell.english == "Hunter's Prelude" then
  399. if buffactive['Clarion Call'] or
  400. songcount == 4 then
  401. send_command("@wait 3;input /ma Valor Minuet IV <me>")
  402. else
  403. send_command("@wait 3;input /ma Army's Paeon VI <me>")
  404. end
  405. end
  406. if spell.english == "Valor Minuet IV" then
  407. send_command("@wait 3;input /ma Army's Paeon VI <me>")
  408. end
  409. if spell.english == "Army's Paeon VI" then
  410. send_command('@wait 3;input /ma "Valor Minuet V" <me>')
  411. end
  412. if spell.english == 'Valor Minuet V' then
  413. Cycle7 = 'OFF'
  414. add_to_chat(158,"Song Cycle 7: ["..Cycle7.."]")
  415. end
  416. end
  417. if Cycle8 == 'ON' then
  418. if spell.english == "Mage's Ballad III" then
  419. send_command("@wait 3;input /ja Pianissimo <me>;wait 1.5;input /ma Mage's Ballad II Oshawott")
  420. end
  421. if spell.english == "Mage's Ballad II" then
  422. Cycle8 = 'OFF'
  423. add_to_chat(158,"Song Cycle 8: ["..Cycle8.."]")
  424. end
  425. end
  426.  
  427.  
  428. if player.status == 'Engaged' then
  429. equip(set_combine(sets.TP.Final,sets.DT.Mode))
  430. else
  431. equip(set_combine(sets.Idle,sets.DT.Mode))
  432. end
  433.  
  434. end
  435.  
  436. function status_change(new,old)
  437.  
  438. if new == 'Engaged' then
  439. equip(set_combine(sets.TP.Final,sets.DT.Mode))
  440. else
  441. equip(set_combine(sets.Idle,sets.DT.Mode))
  442. end
  443.  
  444. end
  445.  
  446. function self_command(command)
  447.  
  448. if command == 'Update' then
  449. if player.status == 'Engaged' then
  450. equip(set_combine(sets.TP.Final,sets.DT.Mode))
  451. else
  452. equip(set_combine(sets.Idle,sets.DT.Mode))
  453. end
  454. end
  455.  
  456. if command == 'SongCycle1' then
  457. Cycle1 = 'ON'
  458. add_to_chat(158,"Song Cycle 1: ["..Cycle1.."]")
  459. send_command("@input /ma Archer's Prelude <me>")
  460. end
  461.  
  462. if command == 'SongCycle2' then
  463. Cycle2 = 'ON'
  464. add_to_chat(158,"Song Cycle 2: ["..Cycle2.."]")
  465. send_command("@input /ja Pianissimo <me>;wait 1.5;input /ma Mage's Ballad III Oshawott")
  466. end
  467.  
  468. if command == 'SongCycle3' then
  469. Cycle3 = 'ON'
  470. add_to_chat(158,"Song Cycle 3: ["..Cycle3.."]")
  471. send_command("@input /ma Valor Minuet V <me>")
  472. end
  473.  
  474. if command == 'SongCycle4' then
  475. Cycle4 = 'ON'
  476. add_to_chat(158,"Song Cycle 4: ["..Cycle4.."]")
  477. send_command("@input /ja Tenuto <me>;wait 1.5;input /ma Mage's Ballad III <me>")
  478. end
  479.  
  480. if command == 'SongCycle5' then
  481. Cycle5 = 'ON'
  482. add_to_chat(158,"Song Cycle 5: ["..Cycle5.."]")
  483. send_command("@input /ma Valor Minuet IV <me>")
  484. end
  485.  
  486. if command == 'SongCycle6' then
  487. Cycle6 = 'ON'
  488. add_to_chat(158,"Song Cycle 6: ["..Cycle6.."]")
  489. send_command("@input /ja Pianissimo <me>;wait 1.5;input /ma Archer's Prelude Zubrin")
  490. end
  491.  
  492. if command == 'SongCycle7' then
  493. Cycle7 = 'ON'
  494. add_to_chat(158,"Song Cycle 7: ["..Cycle7.."]")
  495. send_command("@input /ma Archer's Prelude <me>")
  496. end
  497.  
  498. if command == 'SongCycle8' then
  499. Cycle8 = 'ON'
  500. add_to_chat(158,"Song Cycle 8: ["..Cycle8.."]")
  501. send_command("@input /ja Pianissimo <me>;wait 1.5;input /ma Mage's Ballad III Oshawott")
  502. end
  503.  
  504. if command == 'Vars' then
  505. add_to_chat(158,"Prelude: "..Cycle1.." PB: "..Cycle2.." March: "..Cycle3.." TB: "..Cycle4.."")
  506. end
  507.  
  508. if command == 'SongCount' then
  509. if songcount == 3 then
  510. songcount = 4
  511. add_to_chat(158,'Song Count: '..songcount..'')
  512. elseif songcount == 4 then
  513. songcount = 3
  514. add_to_chat(158,'Song Count: '..songcount..'')
  515. end
  516. end
  517.  
  518. end
Advertisement
Add Comment
Please, Sign In to add comment