Advertisement
bongarippa

SalBLU

Nov 16th, 2023
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.03 KB | None | 0 0
  1. function get_sets()
  2. include('organizer-lib')
  3.  
  4. send_command('bind f9 gs c toggle TP set')
  5. send_command('bind f10 gs c toggle Idle set')
  6. send_command('bind f11 gs c toggle CDC set')
  7. send_command('bind f12 gs c toggle BlueMagicP set')
  8. send_command('bind !f12 gs c toggle Rea set')
  9.  
  10.  
  11. function file_unload()
  12.  
  13.  
  14. send_command('unbind ^f9')
  15. send_command('unbind ^f10')
  16. send_command('unbind ^f11')
  17. send_command('unbind ^f12')
  18.  
  19. send_command('unbind !f9')
  20. send_command('unbind !f10')
  21. send_command('unbind !f11')
  22. send_command('unbind !f12')
  23.  
  24. send_command('unbind f9')
  25. send_command('unbind f10')
  26. send_command('unbind f11')
  27. send_command('unbind f12')
  28.  
  29.  
  30.  
  31. end
  32.  
  33. function user_setup()
  34. select_default_macro_book()
  35. end
  36.  
  37. --Idle Sets--
  38. sets.Idle = {}
  39.  
  40. sets.Idle.index = {'Standard','DT'}
  41. Idle_ind = 1
  42.  
  43. sets.Idle.Standard = {ammo="Ginsen",
  44. head="Jhakri Robe +2",neck="Loricate Torque +1", ear1="Merman's earring", ear2="Mendi. earring",
  45. body="Mekosuchinae harness",hands="Serpentes cuffs",ring1="Dark ring",ring2="Defending Ring",
  46. back="Repulse mantle",waist="Fucho-no-obi",legs="Carmine cuisses +1",feet="Serpentes sabots"}
  47.  
  48. sets.Idle.DT = {ammo="Ginsen",
  49. head="Iuitl headgear +1",neck="Loricate Torque +1", ear1="Dudgeon Earring", ear2="Heartseeker earring",
  50. body="Emet harness +1",hands="Umuthi gloves",ring1="Dark ring",ring2="Defending Ring",
  51. back="Repulse mantle",waist="Kentarch belt +1",legs="Carmine cuisses +1",feet="Herculean Boots"}
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58. --TP Sets--
  59. sets.TP = {}
  60.  
  61. sets.TP.index = {'Standard', 'AccuracyFull', 'DT'}
  62. --1=Standard, 2=AccuracyFull, 3=DT,
  63. TP_ind = 1
  64.  
  65. sets.TP.Standard = {ammo="Ginsen",
  66. head={ name="Adhemar Bonnet", augments={'DEX+10','AGI+10','Accuracy+15',}},
  67. body={ name="Adhemar Jacket", augments={'DEX+10','AGI+10','Accuracy+15',}},
  68. hands={ name="Herculean Gloves", augments={'Accuracy+11','"Triple Atk."+4','AGI+8','Attack+8',}},
  69. legs={ name="Samnuha Tights", augments={'STR+10','DEX+10','"Dbl.Atk."+3','"Triple Atk."+3',}},
  70. feet={ name="Herculean Boots", augments={'Accuracy+22 Attack+22','"Triple Atk."+3',}},
  71. neck="Lissome Necklace",
  72. waist="Reiki Yotai",
  73. left_ear="Suppanomimi",
  74. right_ear="Telos Earring",
  75. left_ring="Epona's Ring",
  76. right_ring="Petrov Ring",
  77. back={ name="Rosmerta's Cape", augments={'DEX+20','Accuracy+20 Attack+20','Crit.hit rate+10',}}}
  78.  
  79. sets.TP.AccuracyFull = {ammo="Falcon Eye",
  80. head="Dampening tam",neck="Lissome necklace", ear1="Dignitary's earring", ear2="Telos Earring", body="Adhemar jacket",hands="Leyline gloves",ring1="Ramuh Ring +1",ring2="Ramuh Ring +1", back="Rosmerta's cape",waist="Kentarch belt +1",legs="Carmine cuisses +1",feet="Herculean boots"}
  81.  
  82. sets.TP.DT = {ammo="Ginsen",
  83. head="Iuitl headgear +1",neck="Loricate Torque +1", ear1="Suppanomimi", ear2="Telos Earring",
  84. body="Emet harness +1",hands="Umuthi gloves",ring1="Dark ring",ring2="Defending Ring",
  85. back="Moonbeam cape",waist="Flume belt",legs="Miasmic pants",feet="Battlecast gaiters"}
  86.  
  87.  
  88.  
  89.  
  90.  
  91. --Weaponskill Sets--
  92. sets.WS = {}
  93.  
  94. sets.Requiescat = {}
  95.  
  96. sets.Requiescat.index = {'Attack','Accuracy'}
  97. Requiescat_ind = 1
  98.  
  99. sets.Requiescat.Attack = {ammo="Ginsen",
  100. head="Jhakri Coronal +1",neck="Fotia gorget",ear1="Moonshade earring",ear2="Telos Earring",
  101. body="Jhakri Robe +2",hands="Jhakri Cuffs +1",ring1="Epona's ring",ring2="Hetaroi ring",
  102. back="Rosmerta's cape",waist="Fotia belt",legs="Jhakri Slops +1",feet="Jhakri Pigaches +1"}
  103.  
  104. sets.Requiescat.Accuracy = {ammo="Falcon eye",
  105. head="Jhakri Coronal +1",neck="Fotia gorget",ear1="Moonshade earring",ear2="Telos Earring",
  106. body="Jhakri Robe +2",hands="Jhakri Cuffs +1",ring1="Epona's ring",ring2="Hetaroi ring",
  107. back="Rosmerta's cape",waist="Fotia belt",legs="Jhakri Slops +1",feet="Jhakri Pigaches +1"}
  108.  
  109. sets.ChantDuCygne = {}
  110.  
  111. sets.ChantDuCygne.index = {'Attack','Accuracy'}
  112. ChantDuCygne_ind = 1
  113.  
  114. sets.ChantDuCygne.Attack = {ammo="Falcon Eye",
  115. head={ name="Adhemar Bonnet", augments={'DEX+10','AGI+10','Accuracy+15',}},
  116. body={ name="Herculean Vest", augments={'Attack+21','"Triple Atk."+4','Accuracy+13',}},
  117. hands={ name="Herculean Gloves", augments={'Accuracy+11','"Triple Atk."+4','AGI+8','Attack+8',}},
  118. legs={ name="Samnuha Tights", augments={'STR+10','DEX+10','"Dbl.Atk."+3','"Triple Atk."+3',}},
  119. feet={ name="Herculean Boots", augments={'Attack+27','Weapon skill damage +4%',}},
  120. neck="Fotia Gorget",
  121. waist="Fotia Belt",
  122. left_ear={ name="Moonshade Earring", augments={'Attack+4','TP Bonus +250',}},
  123. right_ear="Brutal Earring",
  124. left_ring="Epona's Ring",
  125. right_ring="Hetairoi Ring",
  126. back={ name="Rosmerta's Cape", augments={'DEX+20','Accuracy+20 Attack+20','Crit.hit rate+10',}}}
  127.  
  128. sets.ChantDuCygne.Accuracy = {ammo="Falcon Eye",
  129. head={ name="Adhemar Bonnet", augments={'DEX+10','AGI+10','Accuracy+15',}},
  130. body={ name="Herculean Vest", augments={'Attack+21','"Triple Atk."+4','Accuracy+13',}},
  131. hands={ name="Herculean Gloves", augments={'Accuracy+11','"Triple Atk."+4','AGI+8','Attack+8',}},
  132. legs={ name="Samnuha Tights", augments={'STR+10','DEX+10','"Dbl.Atk."+3','"Triple Atk."+3',}},
  133. feet={ name="Herculean Boots", augments={'Attack+27','Weapon skill damage +4%',}},
  134. neck="Fotia Gorget",
  135. waist="Fotia Belt",
  136. left_ear={ name="Moonshade Earring", augments={'Attack+4','TP Bonus +250',}},
  137. right_ear="Brutal Earring",
  138. left_ring="Epona's Ring",
  139. right_ring="Hetairoi Ring",
  140. back={ name="Rosmerta's Cape", augments={'DEX+20','Accuracy+20 Attack+20','Crit.hit rate+10',}}}
  141.  
  142. sets.WS.SanguineBlade = {}
  143.  
  144. sets.WS.SanguineBlade = {ammo="Ghastly tathlum +1",
  145. head="Jhakri Coronal +1",neck="Fotia gorget",ear1="Friomisi earring",ear2="Crematio earring",
  146. body="Jhakri Robe +2",hands="Jhakri Cuffs +1",ring1="Archon ring",ring2="Acumen ring",
  147. back="Rosmerta's cape",waist="Fotia belt",legs="Jhakri Slops +1",feet="Jhakri Pigaches +1"}
  148.  
  149. sets.WS.CircleBlade = {}
  150.  
  151. sets.WS.CircleBlade = {ammo="Ginsen",
  152. head="Uk'uxkaj cap",neck="Fotia Gorget",ear1="Moonshade earring",ear2="Telos Earring",
  153. body="Assim. jubbah +1",hands="Luh. bazubands +1",ring1="Epona's ring",ring2="Ifrit ring +1",
  154. back="Rosmerta's cape",waist="Fotia belt",legs="Samnuha tights",feet="Luhlaza Charuqs",}
  155.  
  156. sets.WS.Expiacion = {}
  157.  
  158. sets.WS.Expiacion = {ammo="Cheruski needle",
  159. head="Uk'uxkaj cap",neck="Fotia Gorget",ear1="Moonshade earring",ear2="Telos Earring",
  160. body="Assim. jubbah +1",hands="Luh. bazubands +1",ring1="Epona's ring",ring2="Ifrit ring +1",
  161. back="Rosmerta's cape",waist="Fotia belt",legs="Samnuha tights",feet="Luhlaza Charuqs"}
  162.  
  163. sets.Realmrazer = {}
  164.  
  165. sets.Realmrazer.index = {'Attack','Accuracy'}
  166. Realmrazer_ind = 1
  167.  
  168. sets.Realmrazer.Attack = {ammo="Cheruski needle",
  169. head="Adhemar Bonnet",neck="Fotia gorget",ear1="Bladeborn earring",ear2="Steelflash Earring",
  170. body="Luhlaza jubbah +1",hands="Luh. Bazubands +1",ring1="Levia. ring",ring2="Levia. ring",
  171. back="Rosmerta's cape",waist="Fotia belt",legs="Samnuha tights",feet="Luhlaza Charuqs"}
  172.  
  173. sets.Realmrazer.Accuracy = {ammo="Ginsen",
  174. head="Adhemar Bonnet",neck="Fotia gorget",ear1="Bladeborn earring",ear2="Zennaroi earring",
  175. body="Luhlaza jubbah +1",hands="Luh. Bazubands +1",ring1="Levia. ring",ring2="Aquasoul ring",
  176. back="Rosmerta's cape",waist="Fotia belt",legs="Samnuha tights",feet="Assim. charuqs +1"}
  177. sets.SavageBlade = {ammo="Ginsen",
  178. head="Adhemar bonnet",neck="Fotia gorget",ear1="Moonshade earring",ear2="Telos Earring",
  179. body="Herculean Vest",hands="Jhakri cuffs +1",ring1="Epona's ring",ring2="Petrov ring",
  180. back="Rosmerta's cape",waist="Fotia belt",legs="Carmine cuisses +1",feet="Thereoid Greaves"}
  181.  
  182. sets.WS.FlashNova = {}
  183.  
  184. sets.WS.FlashNova = {ammo="Ghastly Tathlum +1",
  185. head="Amalric Coif +1",neck="Eddy necklace",ear1="Hecate's earring",ear2="Friomisi earring",
  186. body="Jhakri Robe +2",hands="Amalric gages",ring1="Weatherspoon ring",ring2="Weatherspoon ring",
  187. back="Cornflower cape",waist="Aswang sash",legs="Jhakri Slops +1",feet="Hashishin basmak +1"}
  188.  
  189.  
  190.  
  191.  
  192.  
  193. --Blue Magic P Sets--
  194. sets.BlueMagicP = {}
  195.  
  196. sets.BlueMagicP.index = {'Attack','Accuracy'}
  197. BlueMagicP_ind = 1
  198.  
  199. sets.BlueMagicP.Attack = {ammo="Ginsen",
  200. head="Adhemar Bonnet",neck="Sanctity Necklace",ear1="Flame pearl",ear2="Flame pearl",
  201. body="Herculean vest",hands="Herculean gloves",ring1="Pyrosoul ring",ring2="Petrov ring",
  202. back="Cornflower cape",waist="Prosilio belt",legs="Samnuha tights",feet="Adhemar Gamashes"}
  203.  
  204. sets.BlueMagicP.Accuracy = {ammo="Ginsen",
  205. head="Carmine Mask",neck="Ej necklace",ear1="Flame pearl",ear2="Flame pearl",
  206. body="Herculean vest",hands="Herculean gloves",ring1="Pyrosoul Ring",ring2="Petrov ring",
  207. back="Rosmerta's cape",waist="Kentarch belt +1",legs="Samnuha tights",feet="Herculean boots"}
  208.  
  209. --Blue Magic M Sets--
  210. sets.BlueMagic = {}
  211.  
  212. sets.BlueMagic.INT = {ammo="Pemphredo Tathlum",
  213. head="Amalric Coif +1",neck="Sanctity necklace",ear1="Crematio earring",ear2="Friomisi earring",
  214. body="Jhakri Robe +2",hands="Amalric gages",ring1="Weatherspoon ring",ring2="Acumen ring",
  215. back="Cornflower cape",waist="Yamabuki-no-Obi",legs="Jhakri Slops +1",feet="Jhakri Pigaches +1"}
  216.  
  217. sets.BlueMagic.DarkINT = set_combine(sets.BlueMagic.INT, {head="Pixie hairpin +1", ring1="Archon ring"})
  218.  
  219. sets.BlueMagic.LightINT = set_combine(sets.BlueMagic.INT, {ring1="Weatherspoon ring"})
  220.  
  221. sets.BlueMagic.Cures = {ammo="Hydrocera",
  222. head="Carmine Mask",neck="Phalaina Locket",ear1="Mendi. Earring",ear2="Lifestorm earring",body="Vrikodara jupon",hands="Telchine gloves",ring1="Sirona's ring",ring2="Metamor. ring +1", back="Pahtli's cape",waist="Luminary sash",legs="Carmine cuisses +1",feet="Medium's sabots"}
  223.  
  224. sets.BlueMagic.SelfCures = {ammo="Hydrocera",
  225. head="Carmine Mask",neck="Phalaina Locket",ear1="Mendi. Earring",ear2="Lifestorm earring",body="Vrikodara jupon",hands="Telchine gloves",ring1="Sirona's ring",ring2="Metamor. ring +1",back="Pahtli's cape",waist="Luminary sash",legs="Carmine cuisses +1",feet="Medium's sabots"}
  226.  
  227. sets.BlueMagic.Stun = {ammo="Ginsen",
  228. head="Amalric Coif +1",neck="Ej necklace",ear1="Psystorm earring",ear2="Lifestorm earring",
  229. body="Hashishin mintan +1",hands="Rawhide gloves",ring1="Weatherspoon ring",ring2="Sangoma ring",
  230. back="Cornflower cape",waist="Kentarch belt +1",legs="Miasmic pants",feet="Jhakri Pigaches +1"}
  231.  
  232. sets.BlueMagic.HeavyStrike = {ammo="Ginsen",
  233. head="Adhemar Bonnet",neck="Ire torque +1",ear1="Flame pearl",ear2="Heartseeker earring",
  234. body="Luhlaza jubbah +1",hands="Herculean gloves",ring1="Ifrit ring +1",ring2="Petrov ring",
  235. back="Rosmerta's cape",waist="Kentarch belt +1",legs="Samnuha tights",feet="Assim. charuqs +1"}
  236.  
  237. sets.BlueMagic.WhiteWind = {ammo="Hydrocera",
  238. head="Carmine Mask",neck="Phalaina Locket",ear1="Mendi. Earring",ear2="Lifestorm earring",body="Vrikodara jupon",hands="Telchine gloves",ring1="Sirona's ring",ring2="Metamor. ring +1",back="Pahtli's cape",waist="Luminary sash",legs="Carmine cuisses +1",feet="Medium's sabots"}
  239.  
  240. sets.BlueMagic.MagicAccuracy = {ammo="Pemphredo Tathlum",
  241. head="Amalric Coif +1",neck="Sanctity necklace",ear1="Gwati earring",ear2="Dignitary's earring",
  242. body="Jhakri Robe +2",hands="Rawhide gloves",ring1="Weatherspoon ring",ring2="Metamorph Ring +1",
  243. back="Cornflower cape",waist="Luminary sash",legs="Psycloth Lappas",feet="Hashishin basmak +1"}
  244.  
  245. sets.BlueMagic.Skill = {ammo="Ghastly Tathlum +1",
  246. head="Luh. Keffiyeh +1",neck="Voltsurge torque",ear1="Loquac. earring",
  247. body="Assim. jubbah +1",hands="Rawhide gloves",ring1="Prolix ring", ring2="Weatherspoon ring",
  248. back="Cornflower cape",waist="Twilight belt",legs="Hashishin tayt +1",feet="Luhlaza Charuqs"}
  249.  
  250. sets.BlueMagic.SkillRecast = {ammo="Ghastly Tathlum +1",
  251. head="Luh. Keffiyeh +1",neck="Voltsurge torque",ear1="Loquac. earring",
  252. body="Assim. jubbah +1",hands="Mv. Bazubands +2",ring1="Prolix ring",
  253. back="Swith cape",waist="Twilight belt",legs="Hashishin tayt +1",feet="Luhlaza Charuqs"}
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260. --Utility Sets--
  261. sets.Utility = {}
  262.  
  263. sets.Utility.Stoneskin = {head="Haruspex hat",neck="Fotia gorget",ear1="Loquac. earring",ear2="Earthcry earring",
  264. body="Assim. jubbah +1",hands="Stone Mufflers",ring1="Prolix ring",
  265. back="Swith cape",waist="Siegel sash",legs="Haven hose",feet="Iuitl gaiters"}
  266.  
  267. sets.Utility.Phalanx = {head="Haruspex hat",neck="Incanter's Torque",ear1="Loquac. earring",ear2="Augment. earring",
  268. body="Assim. jubbah +1",hands="Ayao's gages",ring1="Prolix ring",
  269. back="Swith cape",waist="Pythia sash +1",legs="Portent pants",feet="Iuitl gaiters"}
  270.  
  271. sets.Utility.Steps = {ammo="Ginsen",
  272. head="Adhemar Bonnet",ear2="Heartseeker earring",
  273. body="Herculean vest",hands="Umuthi gloves",
  274. back="Rosmerta's cape",waist="Chaac belt",legs="Samnuha tights",feet="Herculean boots"}
  275.  
  276. sets.Utility.PDT = {head="Iuitl headgear +1",neck="Loricate Torque +1",ear1="Ethereal earring",
  277. body="Iuitl vest +1",hands="Umuthi gloves",ring1="Dark ring",ring2="Defending Ring",
  278. back="Mollusca mantle",waist="Flume belt",legs="Iuitl Tights +1",feet="Iuitl gaiters +1"}
  279.  
  280. sets.Utility.MDT = {head="Adhemar Bonnet",neck="Loricate Torque +1",
  281. body="Assim. jubbah +1",hands="Umuthi gloves",ring1="Dark ring",ring2="Defending Ring",
  282. back="Mollusca mantle",legs="Samnuha tights",feet="Luhlaza Charuqs"}
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289. --Job Ability Sets--
  290.  
  291. sets.JA = {}
  292.  
  293. sets.JA.ChainAffinity = {head="Hashishin kavuk",feet="Assim. charuqs +1"}
  294.  
  295. sets.JA.BurstAffinity = {legs="Assim. shalwar",feet="Hashishin basmak +1"}
  296.  
  297. sets.JA.BurstAffinity2 = {"Hashishin basmak +1"}
  298.  
  299. sets.JA.Efflux = {legs="Hashishin tayt +1"}
  300.  
  301. sets.JA.AzureLore = {hands="Luh. bazubands +1"}
  302.  
  303. sets.JA.Diffusion = {feet="Luhlaza Charuqs"}
  304.  
  305.  
  306.  
  307.  
  308.  
  309.  
  310. --Precast Sets--
  311. sets.precast = {}
  312.  
  313. sets.precast.FC = {}
  314.  
  315. sets.precast.FC.Standard = {ammo="Impatiens",
  316. head="Amalric Coif +1",neck="Baetyl Pendant",ear1="Loquac. Earring",ear2="Etiolation earring",
  317. body="Luhlaza jubbah +1",hands="Leyline Gloves",ring1="Prolix ring",ring2="Weatherspoon ring",
  318. back="Swith Cape",waist="Witful Belt",legs="Enif Cosciales",feet="Jhakri Pigaches +1"}
  319.  
  320. sets.precast.FC.Blue = {ammo="Impatiens",head="Carmine mask",neck="Baetyl Pendant",ear1="Loquac. Earring",
  321. body="Hashishin mintan +1",hands="Leyline Gloves",ring1="prolix ring",ring2="Weatherspoon ring",
  322. back="Swith Cape",waist="Witful Belt",legs="Enif Cosciales",feet="Jhakri Pigaches +1"}
  323. end
  324.  
  325.  
  326. function precast(spell)
  327. if spell.action_type == 'Magic' then
  328. equip(sets.precast.FC.Standard)
  329.  
  330. if spell.skill == 'Blue Magic' then
  331. equip(sets.precast.FC.Blue)
  332. end
  333. end
  334.  
  335. if spell.english == 'Azure Lore' then
  336. equip(sets.JA.AzureLore)
  337. end
  338.  
  339. if spell.english == 'Chain Affinity' then
  340. equip(sets.JA.ChainAffinity)
  341. end
  342.  
  343. if spell.english == 'Burst Affinity' then
  344. equip(sets.JA.BurstAffinity)
  345. end
  346.  
  347. if spell.english == 'Efflux' then
  348. equip(sets.JA.Efflux)
  349. end
  350.  
  351. if spell.english == 'Diffusion' then
  352. equip(sets.JA.Diffusion)
  353. end
  354.  
  355. if spell.english == 'Requiescat' or spell.english == 'Savage Blade' then
  356. equip(sets.Requiescat[sets.Requiescat.index[Requiescat_ind]])
  357. end
  358.  
  359. if spell.english == 'Chant du Cygne' then
  360. equip(sets.ChantDuCygne[sets.ChantDuCygne.index[ChantDuCygne_ind]])
  361. end
  362.  
  363. if spell.english == 'Circle Blade' then
  364. equip(sets.WS.CircleBlade)
  365. end
  366.  
  367. if spell.english == 'Expiacion' then
  368. equip(sets.WS.Expiacion)
  369. end
  370.  
  371. if spell.english == 'Sanguine Blade' then
  372. equip(sets.WS.SanguineBlade)
  373. end
  374.  
  375. if spell.english == 'Box Step' then
  376. equip(sets.Utility.Steps)
  377. end
  378.  
  379. if spell.english == 'Realmrazer' then
  380. equip(sets.Realmrazer[sets.Realmrazer.index[Realmrazer_ind]])
  381. end
  382.  
  383. if spell.english == 'Flash Nova' then
  384. equip(sets.WS.FlashNova)
  385. end
  386. end
  387.  
  388. function sub_job_change()
  389. send_command('wait 7;input /lockstyleset 4')
  390. end
  391.  
  392. function midcast(spell,act)
  393. if spell.english == 'Vertical Cleave' or spell.english == 'Death Scissors' or spell.english == 'Empty Thrash' or spell.english == 'Dimensional Death' or
  394. spell.english == 'Quadrastrike' or spell.english == 'Bloodrake' or spell.english == 'Sinker Drill' or spell.english == 'Disseverment' or spell.english == 'Hysteric Barrage' or
  395. spell.english == 'Frenetic Rip' or spell.english == 'Seedspray' or spell.english == 'Vanity Dive' or spell.english == 'Goblin Rush' or spell.english == 'Thrashing Assault' or
  396. spell.english == 'Quad. Continuum' or spell.english == 'Delta Thrust' or spell.english == 'Cannonball' or spell.english == 'Glutinous Dart' or spell.english == 'Whirl of Rage' or
  397. spell.english == 'Saurian Slide' or spell.english == 'Benthic Typhoon' or spell.english == 'Final Sting' or spell.english == 'Spiral Spin' then
  398. equip(sets.BlueMagicP[sets.BlueMagicP.index[BlueMagicP_ind]])
  399. if buffactive['Chain Affinity'] then
  400. equip(sets.JA.ChainAffinity)
  401. end
  402. if buffactive['Efflux'] then
  403. equip(sets.JA.Efflux)
  404. end
  405. end
  406.  
  407. if spell.english == 'Gates of Hades' or spell.english == 'Leafstorm' or spell.english == 'Firespit' or spell.english == 'Acrid Stream' or spell.english == 'Regurgitation' or
  408. spell.english == 'Corrosive Ooze' or spell.english == 'Thermal Pulse' or spell.english == 'Water Bomb' or spell.english == 'Thunderbolt' or spell.english == 'Tem. Upheaval' or
  409. spell.english == 'Embalming Earth' or spell.english == 'Foul Waters' or spell.english == 'Rending Deluge' or spell.english == 'Droning Whirlwind' or spell.english == 'Subduction' or
  410. spell.english == 'Anvil Lightning' or spell.english == 'Entomb' or spell.english == 'Silent Storm' or spell.english == 'Searing Tempest' or spell.english == 'Spectral Floe' or
  411. spell.english == 'Scouring Spate' or spell.english == 'Charged Whisker' or spell.english == 'Crashing Thunder' or spell.english == 'Polar Roar' then
  412. equip(sets.BlueMagic.INT)
  413. if buffactive['Burst Affinity'] then
  414. equip(sets.JA.BurstAffinity)
  415. end
  416. end
  417.  
  418. if spell.english == 'Tenebral Crush' or spell.english == 'Palling Salvo' or spell.english == 'Evryone. Grudge' or spell.english == 'Dark Orb' then
  419. equip(sets.BlueMagic.DarkINT)
  420. if buffactive['Burst Affinity'] then
  421. equip(sets.JA.BurstAffinity)
  422. end
  423. end
  424.  
  425. if spell.english == 'Blinding Fulgor' or spell.english == 'Retinal Glare' or spell.english == 'Rail Cannon' or spell.english == 'Uproot' or spell.english == 'Magic Hammer' then
  426. equip(sets.BlueMagic.LightINT)
  427. if buffactive['Burst Affinity'] then
  428. equip(sets.JA.BurstAffinity)
  429. end
  430. end
  431.  
  432. if spell.english == 'Magic Fruit' or spell.english == 'Plenilune Embrace' or spell.english == 'Wild Carrot' or spell.english == 'Pollen' or spell.english == 'Cure III' or
  433. spell.english == 'Cure IV' or spell.english == 'Restoral' then
  434. equip(sets.BlueMagic.Cures)
  435. if spell.target.name == player.name and string.find(spell.english, 'Magic Fruit') or string.find(spell.english, 'Plenilune Embrace') or string.find(spell.english, 'Wild Carrot') or
  436. string.find(spell.english, 'Cure III') or string.find(spell.english, 'Cure IV') then
  437. equip(sets.BlueMagic.SelfCures)
  438. end
  439. end
  440.  
  441. if spell.english == 'White Wind' then
  442. equip(sets.BlueMagic.WhiteWind)
  443. end
  444.  
  445. if spell.english == 'Head Butt' or spell.english == 'Sudden Lunge' or spell.english == 'Blitzstrahl' or spell.english == 'Barbed Crescent' or spell.english == 'Tourbillion' or spell.english == 'Sub-zero smash' or
  446. spell.english == 'Sweeping Gouge' or spell.english == 'Paralyzing Triad' then
  447. equip(sets.BlueMagic.Stun)
  448. end
  449.  
  450. if spell.english == 'Heavy Strike' then
  451. equip(sets.BlueMagic.HeavyStrike)
  452. end
  453.  
  454. if spell.english == 'Frightful Roar' or spell.english == 'Infrasonics' or spell.english == 'Cimicine Discharge' or spell.english == 'Filamented Hold' or spell.english == 'Mind Blast' or
  455. spell.english == 'Sandspin' or spell.english == 'Hecatomb Wave' or spell.english == 'Cold Wave' or spell.english == 'Terror Touch' or spell.english == 'Dream Flower' or spell.english == 'Sheep Song' or
  456. spell.english == 'Yawn' then
  457. equip(sets.BlueMagic.MagicAccuracy)
  458. end
  459.  
  460. if spell.english == 'MP Drainkiss' or spell.english == 'Digest' or spell.english == 'Blood Saber' or spell.english == 'Blood Drain' or spell.english == 'Osmosis' or spell.english == 'Occultation' or
  461. spell.english == 'Magic Barrier' or spell.english == 'Diamondhide' or spell.english == 'Metallic Body' then
  462. equip(sets.BlueMagic.Skill)
  463. if buffactive['Diffusion'] then
  464. equip(sets.JA.Diffusion)
  465. end
  466. end
  467.  
  468. if spell.english == 'Cocoon' or spell.english == 'Harden Shell' or spell.english == 'Animating Wail' or spell.english == 'Battery Charge' or spell.english == 'Nat. Meditation' or
  469. spell.english == 'Carcharian Verve' or spell.english == 'O. Counterstance' or spell.english == 'Barrier Tusk' or spell.english == 'Saline Coat' or spell.english == 'Regeneration' or
  470. spell.english == 'Erratic Flutter' then
  471. if buffactive['Diffusion'] then
  472. equip(sets.JA.Diffusion)
  473. end
  474. end
  475. end
  476.  
  477. function aftercast(spell)
  478. if player.status == 'Engaged' then
  479. equip(sets.TP[sets.TP.index[TP_ind]])
  480. else
  481. equip(sets.Idle[sets.Idle.index[Idle_ind]])
  482. end
  483.  
  484. if spell.action_type == 'Weaponskill' then
  485. add_to_chat(158,'TP Return: ['..tostring(player.tp)..']')
  486. end
  487. end
  488.  
  489. function status_change(new,old)
  490. if new == 'Engaged' then
  491. equip(sets.TP[sets.TP.index[TP_ind]])
  492. else
  493. equip(sets.Idle[sets.Idle.index[Idle_ind]])
  494. end
  495. end
  496.  
  497. function self_command(command)
  498. if command == 'toggle TP set' then
  499. TP_ind = TP_ind +1
  500. if TP_ind > #sets.TP.index then TP_ind = 1 end
  501. send_command('@input /echo <----- TP Set changed to '..sets.TP.index[TP_ind]..' ----->')
  502. equip(sets.TP[sets.TP.index[TP_ind]])
  503. elseif command == 'toggle Idle set' then
  504. Idle_ind = Idle_ind +1
  505. if Idle_ind > #sets.Idle.index then Idle_ind = 1 end
  506. send_command('@input /echo <----- Idle Set changed to '..sets.Idle.index[Idle_ind]..' ----->')
  507. equip(sets.Idle[sets.Idle.index[Idle_ind]])
  508. elseif command == 'toggle BlueMagicP set' then
  509. BlueMagicP_ind = BlueMagicP_ind +1
  510. if BlueMagicP_ind > #sets.BlueMagicP.index then BlueMagicP_ind = 1 end
  511. send_command('@input /echo <----- Physical Blue Magic Set changed to '..sets.BlueMagicP.index[BlueMagicP_ind]..' ----->')
  512. elseif command == 'toggle CDC set' then
  513. ChantDuCygne_ind = ChantDuCygne_ind +1
  514. if ChantDuCygne_ind > #sets.ChantDuCygne.index then ChantDuCygne_ind = 1 end
  515. send_command('@input /echo <----- Chant du Cygne Set changed to '..sets.ChantDuCygne.index[ChantDuCygne_ind]..' ----->')
  516. elseif command == 'toggle Rea set' then
  517. Realmrazer_ind = Realmrazer_ind +1
  518. if Realmrazer_ind > #sets.Realmrazer.index then Realmrazer_ind = 1 end
  519. send_command('@input /echo <----- Realmrazer Set changed to '..sets.Realmrazer.index[Realmrazer_ind]..' ----->')
  520. elseif command == 'equip TP set' then
  521. equip(sets.TP[sets.TP.index[TP_ind]])
  522. elseif command == 'equip Idle set' then
  523. equip(sets.Idle[sets.Idle.index[Idle_ind]])
  524. end
  525. end
  526.  
  527. -- Select default macro book on initial load or subjob change.
  528. function select_default_macro_book()
  529. set_macro_page(2, 2)
  530. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement