Advertisement
ToadieOdie

BST.lua

Nov 2nd, 2014
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.72 KB | None | 0 0
  1. ------------------- Gear Sets ----------------------
  2. function get_sets()
  3. ------------------- Engaged Sets ----------------------
  4. sets.engaged = {}
  5. sets.engaged.reward={
  6. ammo="Pet Food Zeta",
  7. head="Bison Warbonnet",
  8. body="Bst. Jackcoat +1",
  9. hands="Ogre Gloves",
  10. legs={ name="Mst. Trousers +2", augments={'Enhances "Familiar" effect',}},
  11. feet={ name="Mst. Gaiters +2", augments={'Enhances "Beast Healer" effect',}},
  12. neck="Promise Badge",
  13. waist="Crudelis Belt",
  14. right_ear="Celestial Earring",
  15. left_ring="Solemn Ring",
  16. }
  17. sets.engaged.petcmd={
  18. hands="Frn. Manoplas +2",
  19. feet="Ferine Ocreae +2",
  20. }
  21. sets.engaged.tp={
  22. main={ name="Astolfo", augments={'AGI+11','Pet: Evasion+22',}},
  23. sub={ name="Astolfo", augments={'VIT+11','Pet: Phys. dmg. taken -11%',}},
  24. head="Zelus Tiara",
  25. body="Ferine Gausape +2",
  26. hands="Brego Gloves",
  27. legs="Calmecac Trousers",
  28. feet="Phorcys Schuhs",
  29. neck="Ferine Necklace",
  30. waist="Twilight Belt",
  31. left_ear="Brutal Earring",
  32. right_ear="Suppanomimi",
  33. left_ring="Keen Ring",
  34. right_ring="Epona's Ring",
  35. back="Atheling Mantle",
  36. }
  37. ------------------- Idle Combat Sets ----------------------
  38. sets.idle = {}
  39. sets.idle.pettank={
  40. main={ name="Astolfo", augments={'AGI+11','Pet: Evasion+22',}},
  41. sub={ name="Astolfo", augments={'VIT+11','Pet: Phys. dmg. taken -11%',}},
  42. head={ name="Anwig Salade", augments={'Attack+3','Pet: Damage taken -10%','Attack+3','Pet: "Regen"+1',}},
  43. body="Ferine Gausape +2",
  44. hands="Frn. Manoplas +2",
  45. legs="Ferine Quijotes +2",
  46. feet="Ferine Ocreae +2",
  47. neck="Ferine Necklace",
  48. waist="Primal Belt",
  49. left_ear="Ferine Earring",
  50. right_ear="Ethereal Earring",
  51. back="Oneiros Cappa",
  52. }
  53. sets.idle.reward={
  54. main="Zoraal Ja's Axe",
  55. sub="Zoraal Ja's Axe",
  56. ammo="Pet Food Zeta",
  57. head="Bison Warbonnet",
  58. body="Bst. Jackcoat +1",
  59. hands="Ogre Gloves",
  60. legs={ name="Mst. Trousers +2", augments={'Enhances "Familiar" effect',}},
  61. feet={ name="Mst. Gaiters +2", augments={'Enhances "Beast Healer" effect',}},
  62. neck="Promise Badge",
  63. waist="Crudelis Belt",
  64. right_ear="Celestial Earring",
  65. left_ring="Solemn Ring",
  66. }
  67. sets.idle.petcmd={
  68. main="Charmer's Merlin",
  69. hands="Frn. Manoplas +2",
  70. feet="Ferine Ocreae +2",
  71. }
  72. ------------------- JA Sets ----------------------
  73. sets.precast = {}
  74. sets.precast.JA = {}
  75. sets.precast.JA.call={
  76. hands={ name="Mst. Gloves +2", augments={'Enhances "Beast Affinity" effect',}},
  77. }
  78. sets.precast.JA.charm={
  79. head={ name="Mst. Helm +2", augments={'Enhances "Killer Instinct" effect',}},
  80. body="Bst. Jackcoat +1",
  81. hands={ name="Mst. Gloves +2", augments={'Enhances "Beast Affinity" effect',}},
  82. legs="Bst. Trousers +1",
  83. feet={ name="Mst. Gaiters +2", augments={'Enhances "Beast Healer" effect',}},
  84. }
  85. sets.precast.JA.waltz={
  86. ammo="Light Sachet",
  87. head="Ferine Cabasset +2",
  88. body={ name="Kirin's Osode", augments={'Attack+4',}},
  89. hands="Ample Gloves",
  90. legs="Ferine Quijotes +2",
  91. neck="Ferine Necklace",
  92. waist="Aristo Belt",
  93. left_ring="Dawnsoul Ring",
  94. right_ring="Airy Ring",
  95. back="Aisance Mantle",
  96. }
  97. ------------------- Weaponskill Sets ----------------------
  98. sets.precast.WS={
  99. head="Nocturnus Helm",
  100. body="Ferine Gausape +2",
  101. hands="Frn. Manoplas +2",
  102. legs="Ferine Quijotes +2",
  103. feet="Alcide's Leggings",
  104. neck="Ferine Necklace",
  105. waist="Cuchulain's Belt",
  106. left_ear="Ghillie Earring",
  107. right_ear="Ghillie Earring",
  108. left_ring="Keen Ring",
  109. right_ring="Demonry Ring",
  110. back="Atheling Mantle",
  111. }
  112. sets.precast.WS.Soil={
  113. head="Nocturnus Helm",
  114. body="Ferine Gausape +2",
  115. hands="Frn. Manoplas +2",
  116. legs="Ferine Quijotes +2",
  117. feet="Alcide's Leggings",
  118. neck="Soil Gorget",
  119. waist="Soil Belt",
  120. left_ear="Ghillie Earring",
  121. right_ear="Ghillie Earring",
  122. left_ring="Keen Ring",
  123. right_ring="Demonry Ring",
  124. back="Atheling Mantle",
  125. }
  126. sets.precast.WS.Aqua={
  127. head="Nocturnus Helm",
  128. body="Ferine Gausape +2",
  129. hands="Frn. Manoplas +2",
  130. legs="Ferine Quijotes +2",
  131. feet="Alcide's Leggings",
  132. neck="Aqua Gorget",
  133. waist="Aqua Belt",
  134. left_ear="Ghillie Earring",
  135. right_ear="Ghillie Earring",
  136. left_ring="Keen Ring",
  137. right_ring="Demonry Ring",
  138. back="Atheling Mantle",
  139. }
  140. ------------------- Trigger Gear Sets ----------------------
  141. gear = {}
  142. gear.axe={
  143. main={ name="Astolfo", augments={'AGI+11','Pet: Evasion+22',}},
  144. sub={ name="Astolfo", augments={'VIT+11','Pet: Phys. dmg. taken -11%',}},
  145. }
  146. gear.H2H={
  147. main="Afflictors",
  148. }
  149. gear.dagger={
  150. main="Galkan Dagger",
  151. sub="Pallas's Shield",
  152. }
  153. gear.club={
  154. main="Rounsey Wand",
  155. sub="Pallas's Shield",
  156. }
  157. gear.scythe={
  158. main="Bounty Sickle",
  159. sub="Danger Grip",
  160. }
  161. gear.staff={
  162. main="Iridal Staff",
  163. sub="Danger Grip",
  164. }
  165.  
  166. end
  167.  
  168. ------------------- Gear Swap Rules ----------------------
  169.  
  170. function precast(spell)
  171. if spell.type == 'Waltz' then
  172. equip(sets.precast.JA.waltz)
  173. elseif spell.type == 'WeaponSkill' then
  174. equip(sets.precast.WS)
  175. elseif spell.name == 'Avalanche Axe' or spell.name == 'Calamity' or spell.name == 'Primal Rend' or spell.name == 'Rampage' or spell.name == 'Onslaught' or spell.name == 'Spinning Axe' then
  176. equip(sets.precast.WS.Soil)
  177. elseif spell.name == 'Decimation' or spell.name == 'Smash Axe' or spell.name == 'Ruinator' then
  178. equip(sets.precast.WS.Aqua)
  179. elseif spell.name == 'Call Beast' then
  180. equip(sets.precast.JA.call)
  181. elseif spell.name == 'Charm' then
  182. equip(sets.precast.JA.charm)
  183. elseif spell.type == 'PetCommand' and status == 'Engaged' then
  184. equip(sets.engaged.petcmd)
  185. elseif spell.type == 'PetCommand' and status == 'Idle' then
  186. equip(sets.idle.petcmd)
  187. elseif spell.name == 'Reward' and status == 'Engaged' then
  188. equip(sets.engaged.reward)
  189. elseif spell.type == 'Reward' and status == 'Idle' then
  190. equip(sets.idle.reward)
  191. end
  192. end
  193.  
  194. function status_change(new,old)
  195. if new == 'Engaged' then
  196. equip(sets.engaged.TP)
  197. else
  198. equip(sets.idle.pettank)
  199. end
  200. end
  201.  
  202. function aftercast(spell)
  203. if player.status == 'Engaged' then
  204. equip(sets.engaged.TP)
  205. else
  206. equip(sets.idle.pettank)
  207. end
  208. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement