Yamoman

Blu

Mar 23rd, 2014
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.25 KB | None | 0 0
  1.  
  2.  
  3.  
  4.  
  5.  
  6. --TP set toggle input: //gs c toggle TP set----1 Standard, 2 Solo, 3AccuracyLite, 4AccuracyMax, 5DT, 6DTAccuracy--
  7. --Idle set toggle input: //gs c toggle Idle set----1 Standard, 2 DT--
  8. --Requiescat set toggle input: //gs c toggle Req set----1 Attack, 2 Accuracy--
  9. --Chand du Cygne set toggle input: //gs c toggle CDC set----1 Attack, 2 Accuracy--
  10.  
  11. function get_sets()
  12.  
  13. --Idle Sets--
  14. sets.Idle = {}
  15.  
  16. sets.Idle.index = {'Standard','DT'}
  17. Idle_ind = 1
  18.  
  19. sets.Idle.Standard = {ammo="Cheruski needle",
  20. head="wivre hairpin",neck="wiglen gorget", ear1="Brutal earring", ear2="Suppanomimi",
  21. body="Hagondes coat",hands="Serpentes cuffs",ring1="Paguroidea ring",ring2="Sheltered ring",
  22. back="letalis mantle",waist="Windbuffet belt",legs="Desultor Tassets",feet="Serpentes sabots"}
  23.  
  24. sets.Idle.DT = {ammo="Cheruski needle",
  25. head="Uk'uxkaj Cap",neck="Twilight torque", ear1="Ethereal earring", ear2="Suppanomimi",
  26. body="Hagondes coat",hands="Assim. Bazu +1",ring1="Dark ring",ring2="Dark ring",
  27. back="Letalis mantle",waist="belt",legs="Iuitl tights",feet="Iuitl gaiters"}
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34. --TP Sets--
  35. sets.TP = {}
  36.  
  37. sets.TP.index = {'Standard', 'Solo', 'RefreshFull', 'RefreshLite', 'AccuracyLite', 'AccuracyFull', 'DT', 'DTAccuracy'}
  38. --1=Standard, 2=Solo, 3=RefreshFull, 4=RefreshLite, 5=AccuracyLite, 6=AccuracyFull, 7=DT, 8=DTAccuracy--
  39. TP_ind = 2
  40.  
  41. sets.TP.Standard = {ammo="Cheruski needle",
  42. head="Thurandaut chapeau +1",neck="Asperity necklace", ear1="Brutal earring", ear2="Suppanomimi",
  43. body="Thaumas coat",hands="Assim. Bazu +1",ring1="Epona's ring",ring2="Rajas ring",
  44. back="Atheling mantle",waist="Windbuffet belt",legs="Iuitl tights",feet="Manibozho boots"}
  45.  
  46. sets.TP.RefreshFull = {ammo="Cheruski needle",
  47. head="wivre hairpin",neck="Asperity necklace", ear1="Brutal earring", ear2="Suppanomimi",
  48. body="Hagondes coat",hands="Serpentes cuffs",ring1="Epona's ring",ring2="Rajas ring",
  49. back="Atheling mantle",waist="Twilight belt",legs="stearc subliger",feet="Serpentes sabots"}
  50.  
  51. sets.TP.RefreshLite = {ammo="Cheruski needle",
  52. head="wivre hairpin",neck="Asperity necklace", ear1="Dudgeon earring", ear2="Heartseeker earring",
  53. body="Hagondes coat",hands="Assim. Bazu +1",ring1="Epona's ring",ring2="Rajas ring",
  54. back="Atheling mantle",waist="Twilight belt",legs="stearc subliger",feet="Manibozho boots"}
  55. sets.TP.Marches = {ammo="Cheruski needle",
  56. head="Thurandaut chapeau +1",neck="Asperity necklace", ear1="Brutal earring", ear2="Suppanomimi",
  57. body="Thaumas coat",hands="Manibozho gloves",ring1="Epona's ring",ring2="Rajas ring",
  58. back="Atheling mantle",waist="Twilight belt",legs="Iuitl tights",feet="Manibozho boots"}
  59.  
  60. sets.TP.Solo = {ammo="Cheruski needle",
  61. head="Thurandaut chapeau +1",neck="Asperity necklace", ear1="Brutal earring", ear2="Suppanomimi",
  62. body="Hagondes coat",hands="Manibozho gloves",ring1="Epona's ring",ring2="Rajas ring",
  63. back="Atheling mantle",waist="Twilight belt",legs="Iuitl tights",feet="Manibozho boots"}
  64.  
  65. sets.TP.AccuracyLite = {ammo="Honed tathlum",
  66. head="Thurandaut chapeau +1",neck="Asperity necklace", ear1="Brutal earring", ear2="Suppanomimi",
  67. body="Thaumas coat",hands="Manibozho gloves",ring1="Epona's ring",ring2="Rajas ring",
  68. back="Letalis mantle",waist="Twilight belt",legs="Iuitl tights",feet="Manibozho boots"}
  69.  
  70. sets.TP.AccuracyFull = {ammo="Honed tathlum",
  71. head="Uk'uxkaj Cap",neck="Asperity necklace", ear1="Dudgeon earring", ear2="Heartseeker earring",
  72. body="Thaumas coat",hands="Buremte gloves",ring1="Epona's ring",ring2="Rajas ring",
  73. back="Letalis mantle",waist="Windbuffet belt",legs="Iuitl tights",feet="Manibozho boots"}
  74.  
  75. sets.TP.DT = {ammo="Cheruski needle",
  76. head="Iuitl headgear",neck="Twilight torque", ear1="Brutal earring", ear2="Suppanomimi",
  77. body="Hagondes coat",hands="Assim. Bazu +1",ring1="Dark ring",ring2="Dark ring",
  78. back="Mollusca mantle",waist="Twilight belt",legs="Iuitl tights",feet="Iuitl gaiters"}
  79.  
  80. sets.TP.DTAccuracy = {ammo="Honed Tathlum",
  81. head="Iuitl headgear",neck="Twilight torque", ear1="Dudgeon earring", ear2="Heartseeker earring",
  82. body="Hagondes coat",hands="Assim. Bazu +1",ring1="Dark ring",ring2="Dark ring",
  83. back="Mollusca mantle",waist="Hurch'lan sash",legs="Iuitl tights",feet="Iuitl gaiters"}
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90. --Weaponskill Sets--
  91. sets.WS = {}
  92.  
  93. sets.Requiescat = {}
  94.  
  95. sets.Requiescat.index = {'Attack','Accuracy'}
  96. Requiescat_ind = 1
  97.  
  98. sets.Requiescat.Attack = {ammo="Cheruski needle",
  99. head="Uk'uxkaj Cap",neck="Soil gorget",ear1="Brutal earring",ear2="Moonshade earring",
  100. body="Wayfarer robe",hands="Assim. Bazu. +1",ring1="Epona's ring",ring2="Aquasoul ring",
  101. back="Atheling mantle",waist="Shadow Belt",legs="Quiahuiz Trousers",feet="Assim. Charuqs +1"}
  102.  
  103. sets.Requiescat.Accuracy = {ammo="Honed tathlum",
  104. head="Uk'uxkaj Cap",neck="Soil gorget",ear1="Brutal earring",ear2="Moonshade earring",
  105. body="Wayfarer robe",hands="Buremte gloves",ring1="Epona's ring",ring2="Aquasoul ring",
  106. back="Letalis mantle",waist="Shadow Belt",legs="Quiahuiz Trousers",feet="Assim. Charuqs +1"}
  107.  
  108. sets.ChantDuCygne = {}
  109.  
  110. sets.ChantDuCygne.index = {'Attack','Accuracy'}
  111. ChantDuCygne_ind = 1
  112.  
  113. sets.ChantDuCygne.Attack = {ammo="Cheruski needle",
  114. head="Uk'uxkaj cap",neck="Rancor Collar",ear1="Bladeborn earring",ear2="Steelflash earring",
  115. body="Assim. jubbah",hands="Assim. Bazu. +1",ring1="Epona's ring",ring2="Rajas ring",
  116. back="Atheling Mantle",waist="Wanion belt",legs="Manibozho brais",feet="Assim. Charuqs +1"}
  117.  
  118. sets.ChantDuCygne.Accuracy = {ammo="Honed tathlum",
  119. head="Uk'uxkaj cap",neck="Rancor Collar",ear1="Bladeborn earring",ear2="Steelflash earring",
  120. body="Assim. jubbah",hands="Buremte gloves",ring1="Epona's ring",ring2="Rajas ring",
  121. back="Atheling Mantle",waist="Windbuffet belt",legs="Manibozho brais",feet="Assim. Charuqs +1"}
  122.  
  123. sets.WS.SanguineBlade = {}
  124.  
  125. sets.WS.SanguineBlade = {ammo="Erlene's notebook",
  126. head="Hagondes hat",neck="Eddy necklace",ear1="Hecate's earring",ear2="Friomisi earring",
  127. body="Hagondes coat",hands="Mv. bazubands +2",ring1="Archon ring",ring2="Diamond ring",
  128. back="Toro cape",waist="Penitent's rope",legs="Hagondes pants",feet="Mavi basmak +2"}
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135. --Blue Magic Sets--
  136. sets.BlueMagic = {}
  137.  
  138. sets.BlueMagic.STR = {ammo="Mavi tathlum",
  139. head="Uk'uxkaj Cap",neck="Ire torque +1",ear1="Flame pearl",ear2="Flame pearl",
  140. body="Assim. jubbah",hands="Boor Bracelets",ring1="Pyrosoul ring",ring2="Rajas ring",
  141. back="Cornflower Cape",waist="Wanion belt",legs="Quiahuiz Trousers",feet="Assim. Charuqs +1"}
  142.  
  143. sets.BlueMagic.STRDEX = {ammo="Cheruski needle",
  144. head="Uk'uxkaj cap",neck="Ire torque +1",ear1="Flame pearl",ear2="Flame pearl",
  145. body="Assim. jubbah",hands="Buremte gloves",ring1="Pyrosoul ring",ring2="Rajas ring",
  146. back="Cornflower Cape",waist="Wanion belt",legs="Manibozho brais",feet="Assim. Charuqs +1"}
  147.  
  148. sets.BlueMagic.STRVIT = {ammo="Mavi tathlum",
  149. head="Uk'uxkaj Cap",neck="Ire torque +1",ear1="Flame pearl",ear2="Flame pearl",
  150. body="Assim. jubbah",hands="Buremte gloves",ring1="Pyrosoul ring",ring2="Spiral ring",
  151. back="Cornflower Cape",waist="Caudata belt",legs="Quiahuiz Trousers",feet="Assim. Charuqs +1"}
  152.  
  153. sets.BlueMagic.STRMND = {ammo="Mavi tathlum",
  154. head="Uk'uxkaj cap",neck="Ire torque +1",ear1="Flame pearl",ear2="Flame pearl",
  155. body="Assim. jubbah",hands="Assim. Bazu +1",ring1="Pyrosoul ring",ring2="Aquasoul ring",
  156. back="Cornflower Cape",waist="caudata belt",legs="Quiahuiz Trousers",feet="Assim. Charuqs +1"}
  157.  
  158. sets.BlueMagic.AGI = {ammo="Mavi tathlum",
  159. head="Uk'uxkaj cap",neck="Ire torque +1",ear1="Flame pearl",ear2="Flame pearl",
  160. body="Assim. jubbah",hands="Assim. Bazu +1",ring1="Pyrosoul ring",ring2="Rajas ring",
  161. back="Cornflower Cape",waist="Wanion belt",legs="Quiahuiz Trousers",feet="Assim. Charuqs +1"}
  162.  
  163. sets.BlueMagic.INT = {ammo="Mavi tathlum",
  164. head="Uk'uxkaj Cap",neck="Stoicheion Medal",ear1="Hecate's earring",ear2="Friomisi earring",
  165. body="Hagondes coat",hands="Hagondes Cuffs",ring1="Spiral ring",ring2="Strendu ring",
  166. back="Cornflower cape",waist="Penitent's rope",legs="Hagondes pants",feet="Mavi basmak +2"}
  167.  
  168. sets.BlueMagic.Cures = {ammo="Mavi Tathlum",
  169. head="Uk'uxkaj cap",neck="Phalaina Locket",ear1="Loquac. earring",ear2="Novia earring",
  170. body="Wayfarer robe",hands="Buremte gloves",ring1="Prolix ring",ring2="Aquasoul ring",
  171. back="Swith cape",waist="Witful Belt",legs="Praeco Slacks",feet="Assim. Charuqs +1"}
  172.  
  173. sets.BlueMagic.Stun = {ammo="Mavi tathlum",
  174. head="Assim. keffiyeh",neck="Stoicheion Medal",ear1="Loquac. earring",
  175. body="Assim. Jubbah",hands="Hagondes cuffs",ring1="Prolix ring",ring2="Sangoma ring",
  176. back="Cornflower Cape",waist="Twilight belt",legs="Mavi tayt +2",feet="Iuitl gaiters"}
  177.  
  178. sets.BlueMagic.HeavyStrike = {ammo="Honed tathlum",
  179. head="Uk'uxkaj Cap",neck="Ire torque +1",ear1="Flame pearl",ear2="Heartseeker earring",
  180. body="Assim. Jubbah",hands="Buremte gloves",ring1="Pyrosoul ring",ring2="Rajas ring",
  181. back="Cornflower Cape",waist="Anguinus Belt",legs="Manibozho brais",feet="Assim. Charuqs +1"}
  182.  
  183. sets.BlueMagic.ChargedWhisker = {ammo="Cheruski Needle",
  184. head="Uk'uxkaj cap",neck="Stoicheion Medal",ear1="Hecate's earring",ear2="Friomisi earring",
  185. body="Hagondes coat",hands="Buremte gloves",ring1="Strendu ring",ring2="Rajas ring",
  186. back="Cornflower cape",waist="Wanion belt",legs="Manibozho Brais",feet="Assim. Charuqs +1"}
  187.  
  188. sets.BlueMagic.MagicAccuracy = {ammo="Mavi Tathlum",
  189. head="Uk'uxkaj Cap",neck="Stoicheion Medal",ear1="Psystorm earring",ear2="Lifestorm earring",
  190. body="Assim. jubbah",hands="Hagondes cuffs",ring1="Spiral ring",ring2="Strendu ring",
  191. back="Cornflower Cape",waist="wanion belt",legs="Mavi tayt +2",feet="Iuitl gaiters"}
  192.  
  193. sets.BlueMagic.Skill = {ammo="Mavi tathlum",
  194. head="Mirage keffiyeh +2",neck="Jeweled collar",ear1="Loquac. earring",
  195. body="Assim. Jubbah",hands="Kheper wristbands",ring1="Prolix ring",
  196. back="Cornflower Cape",waist="Twilight belt",legs="Mavi tayt +2",feet="Iuitl gaiters"}
  197.  
  198. sets.BlueMagic.SkillRecast = {ammo="Mavi tathlum",
  199. head="Uk'uxkaj Cap",neck="Jeweled collar",ear1="Loquac. earring",
  200. body="Assim. Jubbah",hands="Mv. Bazubands +2",ring1="Prolix ring",
  201. back="Swith cape",waist="Twilight belt",legs="Mavi tayt +2",feet="Iuitl gaiters"}
  202.  
  203.  
  204.  
  205.  
  206.  
  207.  
  208. --Utility Sets--
  209. sets.Utility = {}
  210.  
  211. sets.Utility.Stoneskin = {head="Uk'uxkaj Cap",neck="Stone Gorget",ear1="Loquac. earring",ear2="Earthcry earring",
  212. body="Assim. jubbah",hands="Stone Mufflers",ring1="Prolix ring",
  213. back="Swith cape",waist="Siegel sash",legs="Haven hose",feet="Iuitl gaiters"}
  214.  
  215. sets.Utility.Phalanx = {head="Uk'uxkaj Cap",neck="Colossus's torque",ear1="Loquac. earring",ear2="Augment. earring",
  216. body="Assim. jubbah",hands="Manibozho gloves",ring1="Prolix ring",
  217. back="Swith cape",waist="Pythia sash +1",legs="Portent pants",feet="Iuitl gaiters"}
  218.  
  219. sets.Utility.Steps = {ammo="Honed tathlum",
  220. head="Uk'uxkaj Cap",ear2="Heartseeker earring",
  221. body="Thaumas coat",hands="Buremte gloves",
  222. back="Letalis cape",waist="Tarutaru sash",legs="Manibozho brais",feet="Assim. charuqs +1"}
  223.  
  224. sets.Utility.PDT = {head="Uk'uxkaj Cap",neck="Twilight torque",ear1="Ethereal earring",
  225. body="Iuitl vest",hands="Assim. Bazu +1",ring1="Dark ring",ring2="Dark ring",
  226. back="Mollusca mantle",waist="Flume belt",legs="Iuitl tights",feet="Iuitl gaiters"}
  227.  
  228. sets.Utility.MDT = {head="Uk'uxkaj Cap",neck="Twilight torque",
  229. body="Coral scale mail +1",hands="Wayfarer cuffs",ring1="Dark ring",ring2="Dark ring",
  230. back="Mollusca mantle",legs="Coral cuisses +1",feet="Wayfarer clogs"}
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237. --Job Ability Sets--
  238.  
  239. sets.JA = {}
  240.  
  241. sets.JA.ChainAffinity = {feet="Assim. "}
  242.  
  243. sets.JA.BurstAffinity = {feet="Assim. Charuqs +1"}
  244.  
  245. sets.JA.Efflux = {legs="Mavi tayt +2"}
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252. --Precast Sets--
  253. sets.precast = {}
  254.  
  255. sets.precast.FC = {}
  256.  
  257. sets.precast.FC.Standard = {head="Athos's Chapeau",neck="Jeweled collar", ear1="Loquac. Earring",
  258. body="Mavi Mintan +2",hands="Thaumas Gloves",
  259. back="Swith Cape",ring1="Prolix ring",waist="Witful Belt",legs="Quiahuiz Trousers",feet="Iuitl gaiters"}
  260.  
  261. sets.precast.FC.Blue = {head="Athos's Chapeau",neck="Jeweled collar", ear1="Loquac. Earring",
  262. body="Mavi Mintan +2",hands="Thaumas Gloves",ring1="Prolix ring",
  263. back="Swith Cape",waist="Witful Belt",legs="Quiahuiz Trousers",feet="Iuitl gaiters"}
  264. end
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271. function precast(spell)
  272. if spell.action_type == 'Magic' then
  273. equip(sets.precast.FC.Standard)
  274.  
  275. elseif spell.action_type == 'BlueMagic' then
  276. equip(sets.precast.FC.Blue)
  277. end
  278.  
  279. if spell.english == 'Requiescat' then
  280. equip(sets.Requiescat[sets.Requiescat.index[Requiescat_ind]])
  281. end
  282.  
  283. if spell.english == 'Chant du Cygne' then
  284. equip(sets.ChantDuCygne[sets.ChantDuCygne.index[ChantDuCygne_ind]])
  285. end
  286.  
  287. if spell.english == 'Sanguine Blade' then
  288. equip(sets.WS.SanguineBlade)
  289. end
  290. end
  291.  
  292. function midcast(spell,act)
  293. if spell.english == 'Vertical Cleave' or spell.english == 'Death Scissors' or spell.english == 'Empty Thrash' or spell.english == 'Dimensional Death' or spell.english == 'Quadrastrike' or spell.english == 'Bloodrake' or spell.english == 'Circle Blade' then
  294. equip(sets.BlueMagic.STR)
  295. if buffactive['Chain Affinity'] then
  296. equip(sets.JA.ChainAffinity)
  297. end
  298. if buffactive['Efflux'] then
  299. equip(sets.JA.Efflux)
  300. end
  301. end
  302.  
  303. if spell.english == 'Disseverment' or spell.english == 'Hysteric Barrage' or spell.english == 'Frenetic Rip' or spell.english == 'Seedspray' or spell.english == 'Vanity Dive' or spell.english == 'Goblin Rush' or spell.english == 'Paralyzing Triad' then
  304. equip(sets.BlueMagic.STRDEX)
  305. if buffactive['Chain Affinity'] then
  306. equip(sets.JA.ChainAffinity)
  307. end
  308. if buffactive['Efflux'] then
  309. equip(sets.JA.Efflux)
  310. end
  311. end
  312.  
  313. if spell.english == 'Quad. Continuum' or spell.english == 'Delta Thrust' or spell.english == 'Cannonball' or spell.english == 'Glutinous Dart' then
  314. equip(sets.BlueMagic.STRVIT)
  315. if buffactive['Chain Affinity'] then
  316. equip(sets.JA.ChainAffinity)
  317. end
  318. if buffactive['Efflux'] then
  319. equip(sets.JA.Efflux)
  320. end
  321. end
  322.  
  323. if spell.english == 'Whirl of Rage' then
  324. equip(sets.BlueMagic.STRMND)
  325. if buffactive['Chain Affinity'] then
  326. equip(sets.JA.ChainAffinity)
  327. end
  328. if buffactive['Efflux'] then
  329. equip(sets.JA.Efflux)
  330. end
  331. end
  332.  
  333. if spell.english == 'Benthic Typhoon' or spell.english == 'Final Sting' or spell.english == 'Spiral Spin' then
  334. equip(sets.BlueMagic.AGI)
  335. if buffactive['Chain Affinity'] then
  336. equip(sets.JA.ChainAffinity)
  337. end
  338. if buffactive['Efflux'] then
  339. equip(sets.JA.Efflux)
  340. end
  341. end
  342.  
  343. if spell.english == 'Gates of Hades' or spell.english == 'Leafstorm' or spell.english == 'Firespit' or spell.english == 'Acrid Stream' or spell.english == 'Regurgitation' or spell.english == 'Corrosive Ooze' or spell.english == 'Thermal Pulse' or spell.english == 'Magic Hammer' or spell.english == 'Evryone. Grudge' or spell.english == 'Water Bomb' or spell.english == 'Dark Orb' or spell.english == 'Thunderbolt' or spell.english == 'Tem. Upheaval' or spell.english == 'Embalming Earth' or spell.english == 'Foul Waters' or spell.english == 'Rending Deluge' or spell.english == 'Droning Whirlwind' then
  344. equip(sets.BlueMagic.INT)
  345. if buffactive['Burst Affinity'] then
  346. equip(sets.JA.BurstAffinity)
  347. end
  348. end
  349.  
  350. if spell.english == 'Magic Fruit' or spell.english == 'Plenilune Embrace' or spell.english == 'Wild Carrot' or spell.english == 'Pollen' then
  351. equip(sets.BlueMagic.Cures)
  352. end
  353.  
  354. if spell.english == 'Head Butt' or spell.english == 'Sudden Lunge' or spell.english == 'Blitzstrahl' then
  355. equip(sets.BlueMagic.Stun)
  356. end
  357.  
  358. if spell.english == 'Heavy Strike' then
  359. equip(sets.BlueMagic.HeavyStrike)
  360. end
  361.  
  362. if spell.english == 'Charged Whisker' then
  363. equip(sets.BlueMagic.ChargedWhisker)
  364. if buffactive['Burst Affinity'] then
  365. equip(sets.JA.BurstAffinity)
  366. end
  367. end
  368.  
  369. if spell.english == 'Frightful Roar' or spell.english == 'Infrasonics' or spell.english == 'Barbed Crescent' or spell.english == 'Tourbillion' or spell.english == 'Cimicine Discharge' or spell.english == 'Sub-zero smash' or spell.english == 'Filamented Hold' or spell.english == 'Mind Blast' or spell.english == 'Sandspin' or spell.english == 'Hecatomb Wave' or spell.english == 'Cold Wave' then
  370. equip(sets.BlueMagic.MagicAccuracy)
  371. end
  372.  
  373. 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 spell.english == 'Magic Barrier' or spell.english == 'Diamondhide' or spell.english == 'Metallic Body' or spell.english == 'Retinal Glare' then
  374. equip(sets.BlueMagic.SkillRecast)
  375. end
  376. end
  377.  
  378. function aftercast(spell)
  379. if player.status == 'Engaged' then
  380. equip(sets.TP[sets.TP.index[TP_ind]])
  381. else
  382. equip(sets.Idle[sets.Idle.index[Idle_ind]])
  383. end
  384. end
  385.  
  386. function status_change(new,old)
  387. if new == 'Engaged' then
  388. equip(sets.TP[sets.TP.index[TP_ind]])
  389. else
  390. equip(sets.Idle[sets.Idle.index[Idle_ind]])
  391. end
  392. end
  393.  
  394. function equip_TP_set()
  395. if TP_ind == 1 and ( (buffactive['march'] == 2 and buffactive['haste']) or (buffactive['embrava'] and buffactive['haste']) ) then
  396. equip(sets.TP['Marches'])
  397. else
  398. equip(sets.TP[sets.TP.index[TP_ind]])
  399. end
  400. end
  401.  
  402. function self_command(command)
  403. if command == 'toggle TP set' then
  404. TP_ind = TP_ind +1
  405. if TP_ind > #sets.TP.index then TP_ind = 1 end
  406. send_command('@input /echo <----- TP Set changed to '..sets.TP.index[TP_ind]..' ----->')
  407. equip(sets.TP[sets.TP.index[TP_ind]])
  408. elseif command == 'toggle Idle set' then
  409. Idle_ind = Idle_ind +1
  410. if Idle_ind > #sets.Idle.index then Idle_ind = 1 end
  411. send_command('@input /echo <----- Idle Set changed to '..sets.Idle.index[Idle_ind]..' ----->')
  412. equip(sets.Idle[sets.Idle.index[Idle_ind]])
  413. elseif command == 'toggle Req set' then
  414. Requiescat_ind = Requiescat_ind +1
  415. if Requiescat_ind > #sets.Requiescat.index then Requiescat_ind = 1 end
  416. send_command('@input /echo <----- Requiescat Set changed to '..sets.Requiescat.index[Requiescat_ind]..' ----->')
  417. elseif command == 'toggle CDC set' then
  418. ChantDuCygne_ind = ChantDuCygne_ind +1
  419. if ChantDuCygne_ind > #sets.ChantDuCygne.index then ChantDuCygne_ind = 1 end
  420. send_command('@input /echo <----- Chant du Cygne Set changed to '..sets.ChantDuCygne.index[ChantDuCygne_ind]..' ----->')
  421. elseif command == 'equip TP set' then
  422. equip_TP_set()
  423. elseif command == 'equip Idle set' then
  424. equip_Idle_set()
  425. end
  426. end
Advertisement
Add Comment
Please, Sign In to add comment