Advertisement
Guest User

Untitled

a guest
Mar 24th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.64 KB | None | 0 0
  1. function bardPK(tunesmithing,limbtarget,stacktype)
  2.  
  3. if limbtarget == "rl" then
  4. toTarget = "right leg"
  5. elseif limbtarget == "ll" then
  6. toTarget = "left leg"
  7. elseif limbtarget == "la" then
  8. toTarget = "left arm"
  9. elseif limbtarget == "ra" then
  10. toTarget = "right arm"
  11. elseif limbtarget == "t" then
  12. toTarget = "torso"
  13. elseif limbtarget == "h" then
  14. toTarget = "head"
  15. else
  16. toTarget = "nothing"
  17. end
  18.  
  19. -- Do we need rapier? --
  20.  
  21. if not svo.me.wielded["301265"] then
  22. needWield = "get body|wield rapier shield"
  23. else
  24. needWield = "get body"
  25. end
  26.  
  27. --- What is our lock type? --
  28.  
  29. if stacktype == "afflict" then
  30. if affstrack.score.slickness<=50 and affstrack.score.asthma==100 and affstrack.score.impatience==100 then
  31. useVenom = "gecko"
  32. elseif affstrack.score.slickness<50 and affstrack.score.anorexia==100 and affstrack.score.asthma>=50 then
  33. elseVenom = "gecko"
  34. elseif affstrack.score.impatience==100 and affstrack.score.asthma<67 then
  35. useVenom = "kalmia"
  36. elseif affstrack.score.paralysis<100 then
  37. useVenom = "curare"
  38. elseif affstrack.score.asthma<67 then
  39. useVenom = "kalmia"
  40. elseif affstrack.score.weariness<67 then
  41. useVenom = "vernalius"
  42. elseif affstrack.score.clumsiness<67 then
  43. useVenom = "xentio"
  44. elseif affstrack.score.asthma==100 and affstrack.score.clumsiness>=66 then
  45. useVenom = "gecko"
  46. elseif affstrack.score.asthma==100 and affstrack.score.slickness>=50 and affstrack.score.impatience==100 then
  47. useVenom = "slike"
  48. elseif affstrack.score.recklessness<67 then
  49. useVenom = "eurypteria"
  50. else
  51. useVenom = "voyria"
  52. end
  53. voiceStack = "lock"
  54. else
  55. if affstrack.score.paralysis<100 then
  56. useVenom = "curare"
  57. elseif affstrack.score.sensitivity<100 then
  58. useVenom = "prefarar"
  59. elseif affstrack.score.stupidity<67 and affstrack.score.impatience>50 then
  60. useVenom = "aconite"
  61. elseif affstrack.score.dizziness<67 and affstrack.score.impatience>50 then
  62. useVenom = "larkspur"
  63. elseif affstrack.score.recklessness<67 and affstrack.score.impatience>50 then
  64. useVenom = "eurypteria"
  65. elseif affstrack.score.addiction<67 and affstrack.score.impatience>50 then
  66. useVenom = "vardrax"
  67. elseif affstrack.score.clumsiness<67 then
  68. useVenom = "xentio"
  69. elseif affstrack.score.darkshade<100 then
  70. useVenom = "darkshade"
  71. elseif affstrack.score.nausea<100 then
  72. useVenom = "euphorbia"
  73. else
  74. useVenom = "voyria"
  75. end
  76. voiceStack = "damage"
  77. end
  78.  
  79. -- Time for Voice --
  80.  
  81. if stacktype == "afflict" then
  82. if svo.bals.voice then
  83. if affstrack.score.asthma>=50 and affstrack.score.anorexia<100 and (affstrack.score.slicknes==100 or useVenom=="gecko") and affstrack.score.impatience==100 then
  84. useVoice = "sing qasida at"
  85. elseif affstrack.score.impatience<100 then
  86. useVoice = "sing limerick at"
  87. elseif affstrack.score.paralysis<100 and useVenom~="curare" then
  88. useVoice = "recite epic at"
  89. elseif affstrack.score.clumsiness<67 and useVenom~="xentio" then
  90. useVoice = "sing maqam at"
  91. elseif useVenom=="gecko" then
  92. useVoice = "sing qasida at"
  93. elseif affstrack.score.stupidity<67 then
  94. useVoice = "sing passion at"
  95. elseif affstrack.score.vertigo<67 then
  96. useVoice = "sing pastorale at"
  97. elseif affstrack.score.nausea<67 then
  98. useVoice = "recite poem at"
  99. elseif affstrack.score.confusion<67 then
  100. useVoice = "recite haiku at"
  101. elseif affstrack.score.addiction<67 then
  102. useVoice = "recite ode at"
  103. else
  104. useVoice = "sing solo at"
  105. end
  106. else
  107. if affstrack.score.asthma>=50 and affstrack.score.anorexia<100 and affstrack.score.slickness>=50 and affstrack.score.impatience==100 then
  108. useVoice = "sing qasida at"
  109. elseif affstrack.score.impatience<=50 and affstrack.score.asthma==100 then
  110. useVoice = "sing limerick at"
  111. elseif affstrack.score.paralysis<100 then
  112. useVoice = "recite epic at"
  113. elseif affstrack.score.impatience<100 then
  114. useVoice = "sing limerick at"
  115. elseif affstrack.score.clumsiness<100 then
  116. useVoice = "sing maqam at"
  117. elseif affstrack.score.stupidity<67 then
  118. useVoice = "sing passion at"
  119. elseif affstrack.score.vertigo<67 then
  120. useVoice = "sing pastorale at"
  121. elseif affstrack.score.nausea<67 then
  122. useVoice = "recite poem at"
  123. elseif affstrack.score.confusion<67 then
  124. useVoice = "recite haiku at"
  125. elseif affstrack.score.addiction<67 then
  126. useVoice = "recite ode at"
  127. end
  128. end
  129. else
  130. if svo.bals.voice then
  131. if affstrack.score.impatience<100 then
  132. useVoice = "sing limerick at"
  133. elseif affstrack.score.stupidity<100 and useVenom~="aconite" then
  134. useVoice = "sing passion at"
  135. elseif affstrack.score.paralysis<100 and useVenom~="curare" then
  136. useVoice = "recite epic at"
  137. elseif affstrack.score.clumsiness>67 and affstrack.score.dizziness<67 and useVenom~="larkspur" then
  138. useVoice = "sing maqam at"
  139. elseif affstrack.score.epilepsy<67 then
  140. useVoice = "sing ditty at"
  141. elseif affstrack.score.confusion<67 then
  142. useVoice = "recite haiku at"
  143. elseif affstrack.score.vertigo<67 then
  144. useVoice = "sing pastorale at"
  145. elseif affstrack.score.addiction<67 then
  146. useVoice = "recite ode at"
  147. elseif affstrack.score.paranoia<67 then
  148. useVoice = "sing requiem at"
  149. elseif affstrack.score.nausea<67 then
  150. useVoice = "recite poem at"
  151. else
  152. useVoice = "sing solo at"
  153. end
  154. else
  155. if affstrack.score.impatience<100 then
  156. useVoice = "sing limerick at"
  157. elseif affstrack.score.paralysis<100 then
  158. useVoice = "recite epic at"
  159. elseif affstrack.score.stupidity<67 then
  160. useVoice = "sing passion at"
  161. elseif affstrack.score.epilepsy<67 then
  162. useVoice = "sing ditty at"
  163. elseif affstrack.score.confusion<67 then
  164. useVoice = "recite haiku at"
  165. elseif affstrack.score.vertigo<67 then
  166. useVoice = "sing pastorale at"
  167. elseif affstrack.score.addiction<67 then
  168. useVoice = "recite ode at"
  169. elseif affstrack.score.paranoia<67 then
  170. useVoice = "sing requiem at"
  171. elseif affstrack.score.clumsiness<100 then
  172. useVoice = "sing maqam at"
  173. elseif affstrack.score.nausea<67 then
  174. useVoice = "recite poem at"
  175. else
  176. useVoice = "sing solo at"
  177. end
  178. end
  179. end
  180.  
  181. -- Tunesmithing --
  182.  
  183. if tunesmithing == "damage" then
  184. if affstrack.score.deaf<100 then
  185. useTune = "pesante"
  186. else
  187. useTune = "accentato"
  188. end
  189. elseif tunesmithing == "affliction" then
  190. if affstrack.score.prone<100 and affstrack.score.paralysis>=50 then
  191. useTune = "martellato"
  192. else
  193. useTune = "pesante"
  194. end
  195. elseif tunesmithing == "prone" then
  196. useTune = "martellato"
  197. elseif tunesmithing == "prep" then
  198. useTune = "acciaccatura"
  199. else
  200. if affstrack.score.deaf<100 then
  201. useTune = "pesante"
  202. else
  203. useTune = "accentato"
  204. end
  205. end
  206.  
  207. -- Actual Attacking --
  208.  
  209. if inretardation() then
  210. send("queue addclear jab "..target.." delphinium")
  211. else
  212.  
  213. send("setalias dovoice "..useVoice.." "..target)
  214.  
  215.  
  216. if rebounding==1 or shielded==1 then
  217. if svo.bals.voice then
  218. send("setalias dopk target "..toTarget.."/"..needWield.."/tunesmith rapier "..useTune.."/sing cantata at "..target.."/jab "..target.." "..useVenom.."/assess "..target,false)
  219. else
  220. send("setalias dopk "..needWield.."/raze "..target.."/assess "..target,false)
  221. end
  222. elseif svo.bals.voice then
  223. send("setalias dopk target "..toTarget.."/"..needWield.."/tunesmith rapier "..useTune.."/jab "..target.." "..useVenom.."/assess "..target.."/"..useVoice.." "..target)
  224. else
  225. send("setalias dopk target "..toTarget.."/"..needWield.."/tunesmith rapier "..useTune.."/jab "..target.." "..useVenom.."/assess "..target)
  226. end
  227. end
  228. end
  229.  
  230. -- ALIAS --
  231.  
  232. ^aff (.*)$|^aff$
  233.  
  234. if matches[2] then
  235. bardPK("affliction",matches[2],"afflict")
  236. else
  237. bardPK("affliction","nothing","afflict")
  238. end
  239. send("queue addclear eqbal dopk")
  240. if svo.bals.voice~="true" and affstrack.score.deaf==100 then
  241. send("queue addclear class dovoice")
  242. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement