Advertisement
Cherylin

Cherylin_BST.lua

Dec 17th, 2016
413
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.66 KB | None | 0 0
  1. function get_sets()
  2. mote_include_version = 2
  3. include('Mote-Include.lua')
  4. end
  5.  
  6. function job_setup()
  7. get_combat_form()
  8. end
  9.  
  10. function user_setup()
  11. state.IdleMode:options('Normal', 'Reraise')
  12. state.OffenseMode:options('Normal', 'PetDT')
  13. state.CorrelationMode = M{['description']='Correlation Mode', 'Neutral', 'HighAcc', 'MaxAcc',}
  14. send_command('bind ^f8 gs c cycle CorrelationMode')
  15. end
  16.  
  17. -- Complete list of Ready moves to use with Sic & Ready Recast -5 Desultor Tassets.
  18. ready_moves_to_check = S{'Sic',
  19. 'Whirl Claws','Foot Kick',
  20. 'Big Scissors',
  21. 'Blockhead', 'Tail Blow',
  22. 'Sensilla Blades','Tegmina Buffet',
  23. 'Lamb Chop', 'Sheep Charge',
  24. 'Sheep Song','Sheep Charge','Lamb Chop', 'Rage',
  25. 'Pentapeck', 'Swooping Frenzy',
  26. 'Recoil Dive',
  27. 'Frogkick',
  28. 'Nimble Snap', 'Cyclotail',
  29. 'Somersault',
  30. 'Tickling Tendrils',
  31. 'Barreling Smash', 'Sweeping Gouge',
  32. 'Double Claw', 'Grapple', 'Spinning Top',
  33. 'Power Attack', 'Rhino Attack',
  34. 'Razor Fang', 'Claw Cyclone',
  35. 'Ripper Fang', 'Chomp Rush', 'Scythe Tail',
  36. 'Pecking Flurry',
  37. 'Sickle Slash',
  38. 'Mandibular Bite',
  39. 'Wing Slap', 'Beak Lunge',
  40. 'Sudden Lunge', 'Spiral Spin',
  41. 'Head Butt', 'Wild Oats', 'Leaf Dagger',
  42. 'Infected Leech'
  43. }
  44.  
  45.  
  46. mab_ready_moves = S{
  47. 'Cursed Sphere','Venom','Toxic Spit',
  48. 'Venom Spray','Bubble Shower',
  49. 'Fireball','Plague Breath',
  50. 'Snow Cloud','Acid Spray','Silence Gas','Dark Spore',
  51. 'Charged Whisker','Purulent Ooze','Aqua Breath','Stink Bomb',
  52. 'Nectarous Deluge','Nepenthic Plunge','Foul Waters','Dust Cloud','Sheep Song','Scream','Dream Flower','Roar','Gloeosuccus','Palsy Pollen',
  53. 'Soporific','Geist Wall','Numbing Noise','Spoil','Hi-Freq Field',
  54. 'Sandpit','Sandblast','Filamented Hold',
  55. 'Spore','Infrasonics','Chaotic Eye',
  56. 'Blaster','Intimidate','Noisome Powder','TP Drainkiss','Jettatura','Spider Web',
  57. 'Corrosive Ooze','Molting Plumage','Swooping Frenzy',
  58. 'Pestilent Plume',}
  59.  
  60. function file_unload()
  61. if binds_on_unload then
  62. binds_on_unload()
  63. send_command('unbind !=')
  64. send_command('unbind ^=')
  65. send_command('unbind !f8')
  66. send_command('unbind ^f8')
  67. send_command('unbind @f8')
  68. send_command('unbind ^f11')
  69. end
  70. end
  71.  
  72. function init_gear_sets()
  73. -- PRECAST SETS
  74. sets.precast.JA['Killer Instinct'] = {}
  75. sets.precast.JA['Bestial Loyalty'] = {hands="Ankusa Gloves",}
  76. sets.precast.JA['Call Beast'] = sets.precast.JA['Bestial Loyalty']
  77. sets.precast.JA.Familiar = {legs="Nukumi Quijotes +1"}
  78. sets.precast.JA.Tame = {}
  79. sets.precast.JA.Spur = {}
  80.  
  81. --This is what will equip when you use Reward. No need to manually equip Pet Food Theta.
  82. sets.precast.JA.Reward = {ammo="Pet Food Theta"}
  83.  
  84. --This is your base FastCast set that equips during precast for all spells/magic.
  85. sets.precast.FC = {ammo="Sapience Orb", neck="Orunmila's Torque", ear1="Etiolation Earring", ear2="Loquac. Earring", ring1="Prolix Ring"}
  86.  
  87. sets.midcast.Stoneskin = {ammo="Sapience Orb", neck="Orunmila's Torque", ear1="Etiolation Earring", ear2="Loquac. Earring", ring1="Prolix Ring"}
  88.  
  89. -- WEAPONSKILLS
  90. sets.precast.WS = {
  91. ammo="Ginsen",
  92. head="Valorous Mask",
  93. neck="Fotia Gorget",
  94. ear1="Steelflash Earring",
  95. ear2="Bladeborn Earring",
  96. body="Meghanada Cuirie +1",
  97. hands="Meghanada Gloves +1",
  98. ring1="Epona's Ring",
  99. ring2="Rajas Ring",
  100. back="Letalis Mantle",
  101. waist="Fotia Belt",
  102. legs="Valor. Hose",
  103. feet="Valorous Greaves",}
  104.  
  105. -- Specific weaponskill sets.
  106. sets.precast.WS['Ruinator'] = sets.precast.WS
  107. sets.precast.WS['Onslaught'] = sets.precast.WS
  108. sets.precast.WS['Primal Rend'] = sets.precast.WS
  109. sets.precast.WS['Cloudsplitter'] = set_combine(sets.precast.WS, {ear1="Digni. Earring", ear2="Gwati Earring", ring1="Sangoma Ring", ring2="Weather. Ring"})
  110.  
  111. -- PET SIC & READY MOVES
  112. sets.midcast.Pet.WS = {
  113. ammo="Demonry Core",
  114. head="Valorous Mask",
  115. neck="Lissome Necklace",
  116. ear1="Steelflash Earring",
  117. ear2="Bladeborn Earring",
  118. body="Meghanada Cuirie +1",
  119. hands="Meghanada Gloves +1",
  120. ring1="Epona's Ring",
  121. ring2="Rajas Ring",
  122. back="Artio's Mantle",
  123. waist="Isa Belt",
  124. legs="Desultor Tassets",
  125. feet="Valorous Greaves",}
  126.  
  127. sets.midcast.Pet.MabReady = set_combine(sets.midcast.Pet.WS, {})
  128. sets.midcast.Pet.TPBonus = {hands="Nukumi Manoplas +1",}
  129. sets.midcast.Pet.ReadyRecast = {legs="Desultor Tassets",}
  130.  
  131. -- IDLE SETS (TOGGLE between RERAISE and NORMAL with CTRL+F12)
  132. sets.idle = {
  133. ammo="Ginsen",
  134. head="Valorous Mask",
  135. neck="Fotia Gorget",
  136. ear1="Arete del Luna",
  137. ear2="Infused Earring",
  138. body="Meghanada Cuirie +1",
  139. hands="Meghanada Gloves +1",
  140. ring1="Defending Ring",
  141. ring2="Rajas Ring",
  142. back="Letalis Mantle",
  143. waist="Fotia Belt",
  144. legs="Valor. Hose",
  145. feet="Skadi's Jambeaux +1",}
  146.  
  147. sets.idle.Pet = {
  148. ammo="Demonry Core",
  149. head="Valorous Mask",
  150. neck="Fotia Gorget",
  151. ear1="Steelflash Earring",
  152. ear2="Bladeborn Earring",
  153. body="Meghanada Cuirie +1",
  154. hands="Meghanada Gloves +1",
  155. ring1="Epona's Ring",
  156. ring2="Rajas Ring",
  157. back="Letalis Mantle",
  158. waist="Fotia Belt",
  159. legs="Valor. Hose",
  160. feet="Skadi's Jambeaux +1",}
  161.  
  162. sets.idle.Pet.Engaged = {
  163. ammo="Demonry Core",
  164. head="Valorous Mask",
  165. neck="Fotia Gorget",
  166. ear1="Steelflash Earring",
  167. ear2="Bladeborn Earring",
  168. body="Meghanada Cuirie +1",
  169. hands="Meghanada Gloves +1",
  170. ring1="Epona's Ring",
  171. ring2="Rajas Ring",
  172. back="Letalis Mantle",
  173. waist="Fotia Belt",
  174. legs="Valor. Hose",
  175. feet="Skadi's Jambeaux +1",}
  176.  
  177. -- MELEE SETS
  178.  
  179. sets.engaged = {
  180. ammo="Ginsen",
  181. head="Valorous Mask",
  182. neck="Asperity Necklace",
  183. ear1="Heartseeker Earring",
  184. ear2="Dudgeon Earring",
  185. body="Meghanada Cuirie +1",
  186. hands="Meghanada Gloves +1",
  187. ring1="Epona's Ring",
  188. ring2="Rajas Ring",
  189. back="Letalis Mantle",
  190. waist="Patentia Sash",
  191. legs="Valor. Hose",
  192. feet="Valorous Greaves",}
  193.  
  194. sets.engaged.DW = {
  195. ammo="Ginsen",
  196. head="Valorous Mask",
  197. neck="Asperity Necklace",
  198. ear1="Heartseeker Earring",
  199. ear2="Dudgeon Earring",
  200. body="Meghanada Cuirie +1",
  201. hands="Meghanada Gloves +1",
  202. ring1="Epona's Ring",
  203. ring2="Rajas Ring",
  204. back="Letalis Mantle",
  205. waist="Patentia Sash",
  206. legs="Valor. Hose",
  207. feet="Valorous Greaves",}
  208.  
  209. sets.engaged.PetDT = {
  210. ammo="Ginsen",
  211. head="Valorous Mask",
  212. neck="Asperity Necklace",
  213. ear1="Heartseeker Earring",
  214. ear2="Dudgeon Earring",
  215. body="Meghanada Cuirie +1",
  216. hands="Meghanada Gloves +1",
  217. ring1="Epona's Ring",
  218. ring2="Rajas Ring",
  219. back="Letalis Mantle",
  220. waist="Patentia Sash",
  221. legs="Valor. Hose",
  222. feet="Valorous Greaves",}
  223.  
  224. sets.engaged.DW.PetDT = {
  225. ammo="Ginsen",
  226. head="Valorous Mask",
  227. neck="Asperity Necklace",
  228. ear1="Heartseeker Earring",
  229. ear2="Dudgeon Earring",
  230. body="Meghanada Cuirie +1",
  231. hands="Meghanada Gloves +1",
  232. ring1="Epona's Ring",
  233. ring2="Rajas Ring",
  234. back="Letalis Mantle",
  235. waist="Patentia Sash",
  236. legs="Valor. Hose",
  237. feet="Valorous Greaves",}
  238.  
  239. end
  240. -------------------------------------------------------------------------------------------------------------------
  241. -- Job-specific hooks that are called to process player actions at specific points in time.
  242. -------------------------------------------------------------------------------------------------------------------
  243. function job_precast(spell, action, spellMap, eventArgs)
  244. cancel_conflicting_buffs(spell, action, spellMap, eventArgs)
  245. -- Define class for Sic and Ready moves.
  246. if ready_moves_to_check:contains(spell.name) and pet.status == 'Engaged' then
  247. classes.CustomClass = "WS"
  248. equip(sets.midcast.Pet.ReadyRecast)
  249. end
  250. end
  251.  
  252. function job_pet_midcast(spell, action, spellMap, eventArgs)
  253.  
  254. equip(set_combine(sets.midcast.Pet.WS, sets.midcast.Pet[state.CorrelationMode.value]))
  255.  
  256. -- Equip monster correlation gear, as appropriate
  257. if mab_ready_moves:contains(spell.english) and pet.status == 'Engaged' then
  258. equip(sets.midcast.Pet.MabReady)
  259. end
  260.  
  261. if buffactive['Unleash'] then
  262. hands="Nukumi Manoplas +1"
  263. end
  264. end
  265.  
  266. -- Return true if we handled the aftercast work. Otherwise it will fall back
  267. -- to the general aftercast() code in Mote-Include.
  268. function job_aftercast(spell, action, spellMap, eventArgs)
  269. end
  270.  
  271. function job_state_change(stateField, newValue, oldValue)
  272. if stateField == 'Correlation Mode' then
  273. state.CorrelationMode:set(newValue)
  274. end
  275. end
  276.  
  277. function get_combat_form()
  278. if player.sub_job == 'NIN' or player.sub_job == 'DNC' then
  279. state.CombatForm:set('DW')
  280. else
  281. state.CombatForm:reset()
  282. end
  283. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement