Advertisement
Guest User

Untitled

a guest
Jan 20th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.49 KB | None | 0 0
  1.  
  2.  
  3. 35%
  4. help support pastebin
  5.  
  6.  
  7.  
  8. SHARE
  9. TWEET
  10.  
  11. Untitled
  12. a guest Dec 20th, 2017 33 Never
  13.  
  14.  
  15.  
  16. Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  17. rawdownloadcloneembedreportprint
  18. text 5.25 KB
  19. yyyy;;;;;;;;;;;;;;;;;;;;;;;;;
  20. ;;;;;;;;;;;;;;;;;;;;;;;;;
  21.  
  22. ;;;;;;;;;;;;;;;;
  23. ;;HitPointVars;;
  24. ;;;;;;;;;;;;;;;;
  25. set %AppleHP 100
  26. set %EvadeHP 200
  27. set %HealHP 200
  28. set %CureHP 275
  29. set %RefreshS 50
  30. set %CounterHP 250
  31. ;set %ManaM 60
  32. ;;;;;;;;;;;;;;;;
  33. ;; Setup Vars ;;
  34. ;;;;;;;;;;;;;;;;
  35. set *Weapon
  36. set %PotionBag ERBEQND
  37. set %UseAids #true
  38. set %Evasion #true
  39. set %CurePots #true
  40. set %HealPots #true
  41. set %RefreshPots #true
  42. set %StatPots #false
  43. set %ManaPots #false
  44. set %UseApples #false
  45. set %Counter #true
  46. ;;;;;;;;;;;;;;;;
  47. ;; Timer Vars ;;
  48. ;;;;;;;;;;;;;;;;
  49. set %BandageLag 10
  50. set %ReArm #sCnt2
  51. set %Aidwait #sCnt2
  52. set %Armwait #sCnt2
  53. set %Evadewait #Scnt
  54. set %Counterwait #Scnt
  55. set %Healwait #Scnt
  56. ;set %Manawait #Scnt
  57. set %Applewait #Scnt
  58. set %Curewait #Scnt
  59. set %Strwait #Scnt
  60. set %Dexwait #Scnt
  61. set %dex #DEX
  62. set %str #STR
  63. ;;;;;;;;;;;;;;;;
  64. ;; Item Vars ;;
  65. ;;;;;;;;;;;;;;;;
  66. set %Spellstone TIY
  67. set %Apples CBS
  68. set %Cure NUF
  69. set %Heal UUF
  70. set %Refresh ZUF
  71. set %Agility YUF
  72. set %Strength XUF
  73. set %baid ZLF
  74. ;set %Mana UUF
  75.  
  76. ;;;;;;;;;;;;;;;;;;;;;;;;;
  77. ;;;;;;;;;;;;;;;;;;;;;;;;;
  78.  
  79. Loop:
  80. if #hits = #maxhits && C notin #charstatus && *PvM
  81. goto SkipMain
  82. if H notin #charstatus && #charghost = no
  83. {
  84. if #targcurs = 0
  85. {
  86. if %CurePots && C in #charstatus && #Scnt >= %Curewait && ! *Mortalled
  87. gosub CheckHP %CureHP Potion %Cure
  88. if %HealPots && C notin #charstatus && #Scnt > %Healwait && ! *Mortalled
  89. {
  90. set %PotType Heal
  91. gosub CheckHP %HealHP Potion %Heal
  92. }
  93. if %RefreshPots && #stamina < %RefreshS
  94. gosub Potion %Refresh
  95. if %StatPots && %dex > #dex && #sCnt >= %Dexwait
  96. gosub Potion %Agility
  97. if %StatPots && %str > #str && #sCnt >= %Strwait
  98. gosub Potion %Strength
  99. if %Evasion && #Scnt >= %Evadewait
  100. gosub CheckHP %EvadeHP Evasion
  101. if %Counter && #Scnt >= %Counterwait
  102. gosub CheckHP %CounterHP Counter
  103. }
  104. if %UseAids && ( ( ! *Mortalled && #hits < #maxhits ) || C in #charstatus ) && #sCnt2 >= %Aidwait
  105. gosub Aids
  106. if %UseApples && *Mortalled && #Scnt >= %Applewait
  107. gosub CheckHP %AppleHP Apples
  108. }
  109. SkipMain:
  110. gosub RearmWeapon
  111. goto Loop
  112.  
  113. ;;;;;;;;;;;;;;;;;;
  114. ;; Subs ;;
  115. ;;;;;;;;;;;;;;;;;;
  116.  
  117. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  118. sub RearmWeapon
  119. finditem *Weapon C_ , #CharID
  120. if #findcnt < 1 && #sCnt2 > %ReArm
  121. {
  122. finditem *Weapon C_ , #BackpackID
  123. exevent Drag #findid
  124. exevent Droppd
  125. set %ReArm #sCnt2 + 55
  126. }
  127. return
  128. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  129. sub Apples
  130. finditem CBS C_ , #BackpackID
  131. set #LObjectID #findid
  132. event macro 17 0
  133. set %Applewait ( #sCnt + 16 )
  134. set *Mortalled #false
  135. return
  136. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;c
  137.  
  138. sub Evasion
  139. event macro 15 147
  140. set %Evadewait ( #sCnt + 21 )
  141. return
  142. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  143.  
  144. sub Counter
  145. event macro 15 148
  146. set %Counterwait (#sCnt +21)
  147. return
  148. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  149.  
  150. sub Aids
  151. finditem %baid
  152. set #lobjectid #findid
  153. event macro 17 0
  154. target
  155. event macro 23 0
  156. ;event macro 1 0 [bs
  157. set %Aidwait #sCnt2 + ( 205 - #dex ) / 2 + 20 - 5 + %BandageLag
  158. if #sCnt2 - %Aidwait < 20
  159. set %Aidwait #sCnt2 + 20 + %BandageLag
  160.  
  161. return
  162. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  163. sub Potion
  164. finditem %1 C_ , %PotionBag
  165. if #findcnt < 1
  166. goto SkipPots
  167. if %1 = UUF
  168. {
  169. for #findindex 1 #findcnt
  170. {
  171. event property #FindID
  172. if %PotType in #property
  173. {
  174. set #LobjectID #findid
  175. goto Chug
  176. }
  177. if Mana in #property
  178. {
  179. set #LobjectID #findid
  180. goto Chug
  181. }
  182. }
  183. }
  184. set #LobjectID #findid
  185. Chug:
  186. event macro 17 0
  187. if %1 = UUF && %PotType = Heal
  188. set %Healwait ( #sCnt + 11 )
  189. if %1 = NUF
  190. set %Curewait ( #sCnt + 1 )
  191. if %1 = YUF
  192. {
  193. set %Dexwait ( #sCnt + 5 )
  194. wait 5
  195. set %dex #dex
  196. }
  197. if %1 = XUF
  198. {
  199. set %Strwait ( #sCnt + 5 )
  200. wait 5
  201. set %str #str
  202. }
  203. SkipPots:
  204. return
  205. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  206. sub CheckHP
  207. if #Hits < %1
  208. gosub %2 %3
  209. return
  210. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement