Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.94 KB | None | 0 0
  1. debug 10
  2.  
  3.  
  4. gosub COUNT jadice flower
  5. gosub COUNT yelith root
  6. gosub COUNT plovik leaf
  7. gosub COUNT ithor potion
  8. gosub COUNT nemoih salve
  9. gosub COUNT eghmok potion
  10. gosub COUNT georin salve
  11. gosub COUNT riolur leaf
  12. gosub COUNT hulnik grass
  13. gosub COUNT junliar stem
  14. gosub COUNT nilos salve
  15. gosub COUNT muljin sap
  16. gosub COUNT sufil sap
  17. gosub COUNT aevaes solution
  18.  
  19.  
  20. var herblist jadice flower|yelith root|plovik leaf|ithor potion|nemoih salve|eghmok potion|georin salve|riolur leaf|hulnik grass|junliar stem|nilos salve|muljin sap|sufil sap|aevaes solution
  21. var herbcount %jadicecount|%yelithcount|%plovikcount|%ithorcount|%nemoihcount|%eghmokcount|%georincount|%riolurcount|%hulnikcount|%junliarcount|%niloscount|%muljincount|%sufilcount|%aevaescount
  22.  
  23. eval length count("%herblist","|")
  24. var count 1000
  25. var index 0
  26. herb_loop:
  27. eval herbs %herblist(%index)
  28. eval amt %herbcount(%index)
  29. if (%amt < %count) then
  30. {
  31. var herb_to_buy %herbs
  32. var count %amt
  33. }
  34. math index add 1
  35. if (%index < %length) then goto herb_loop
  36.  
  37. put #echo herb to buy: %herb_to_buy
  38. exit
  39.  
  40.  
  41. COUNT:
  42. var herb $1
  43. matchre count1 (There are|You count out) (1|one) (part|use)
  44. matchre count2 (There are|You count out) (2|two) (parts|uses)
  45. matchre count3 (There are|You count out) (3|three) (parts|uses)
  46. matchre count4 (There are|You count out) (4|four) (parts|uses)
  47. matchre count5 (There are|You count out) (5|five) (parts|uses)
  48. matchre count6 (There are|You count out) (6|six) (parts|uses)
  49. matchre count7 (There are|You count out) (7|seven) (parts|uses)
  50. matchre count8 (There are|You count out) (8|eight) (parts|uses)
  51. matchre count9 (There are|You count out) (9|nine) (parts|uses)
  52. matchre count10 (There are|You count out) (10|ten) (parts|uses)
  53. matchre count11 (There are|You count out) (11|eleven) (parts|uses)
  54. matchre count12 (There are|You count out) (12|twelve) (parts|uses)
  55. matchre count13 (There are|You count out) (13|thirteen) (parts|uses)
  56. matchre count14 (There are|You count out) (14|fourteen) (parts|uses)
  57. matchre count15 (There are|You count out) (15|fifteen) (parts|uses)
  58. matchre count16 (There are|You count out) (16|sixteen) (parts|uses)
  59. matchre count17 (There are|You count out) (17|seventeen) (parts|uses)
  60. matchre count18 (There are|You count out) (18|eighteen) (parts|uses)
  61. matchre count19 (There are|You count out) (19|nineteen) (parts|uses)
  62. matchre count20 (There are|You count out) (20|twenty) (parts|uses)
  63. matchre count21 (There are|You count out) (21|twenty-one) (parts|uses)
  64. matchre count22 (There are|You count out) (22|twenty-two) (parts|uses)
  65. matchre count23 (There are|You count out) (23|twenty-three) (parts|uses)
  66. matchre count24 (There are|You count out) (24|twenty-four) (parts|uses)
  67. matchre count25 (There are|You count out) (25|twenty-five) (parts|uses)
  68. matchre count26 (There are|You count out) (26|twenty-six) (parts|uses)
  69. matchre count27 (There are|You count out) (27|twenty-seven) (parts|uses)
  70. matchre count28 (There are|You count out) (28|twenty-eight) (parts|uses)
  71. matchre count29 (There are|You count out) (29|twenty-nine) (parts|uses)
  72. put count $0 in smock
  73. matchwait
  74.  
  75. count1:
  76. var herbcount 1
  77. goto %herb
  78. count2:
  79. var herbcount 2
  80. goto %herb
  81. count3:
  82. var herbcount 3
  83. goto %herb
  84. count4:
  85. var herbcount 4
  86. goto %herb
  87. count5:
  88. var herbcount 5
  89. goto %herb
  90. count6:
  91. var herbcount 6
  92. goto %herb
  93. count7:
  94. var herbcount 7
  95. goto %herb
  96. count8:
  97. var herbcount 8
  98. goto %herb
  99. count9:
  100. var herbcount 9
  101. goto %herb
  102. count10:
  103. var herbcount 10
  104. goto %herb
  105. count11:
  106. var herbcount 11
  107. goto %herb
  108. count12:
  109. var herbcount 12
  110. goto %herb
  111. count13:
  112. var herbcount 13
  113. goto %herb
  114. count14:
  115. var herbcount 14
  116. goto %herb
  117. count15:
  118. var herbcount 15
  119. goto %herb
  120. count16:
  121. var herbcount 16
  122. goto %herb
  123. count17:
  124. var herbcount 17
  125. goto %herb
  126. count18:
  127. var herbcount 18
  128. goto %herb
  129. count19:
  130. var herbcount 19
  131. goto %herb
  132. count20:
  133. var herbcount 20
  134. goto %herb
  135. count21:
  136. var herbcount 21
  137. goto %herb
  138. count22:
  139. var herbcount 22
  140. goto %herb
  141. count23:
  142. var herbcount 23
  143. goto %herb
  144. count24:
  145. var herbcount 24
  146. goto %herb
  147. count25:
  148. var herbcount 25
  149. goto %herb
  150. count26:
  151. var herbcount 26
  152. goto %herb
  153. count27:
  154. var herbcount 27
  155. goto %herb
  156. count28:
  157. var herbcount 28
  158. goto %herb
  159. count29:
  160. var herbcount 29
  161. goto %herb
  162.  
  163.  
  164.  
  165.  
  166. jadice:
  167. var jadicecount %herbcount
  168. put #echo Jadice %jadicecount
  169. return
  170.  
  171. yelith:
  172. var yelithcount %herbcount
  173. return
  174.  
  175. plovik:
  176. var plovikcount %herbcount
  177. return
  178.  
  179. ithor:
  180. var ithorcount %herbcount
  181. return
  182.  
  183. nemoih:
  184. var nemoihcount %herbcount
  185. return
  186.  
  187. eghmok:
  188. var eghmokcount %herbcount
  189. return
  190.  
  191. georin:
  192. var georincount %herbcount
  193. return
  194.  
  195. riolur:
  196. var riolurcount %herbcount
  197. return
  198.  
  199. hulnik:
  200. var hulnikcount %herbcount
  201. return
  202.  
  203. junliar:
  204. var junliarcount %herbcount
  205. return
  206.  
  207. nilos:
  208. var niloscount %herbcount
  209. return
  210.  
  211. muljin:
  212. var muljincount %herbcount
  213. return
  214.  
  215. sufil:
  216. var sufilcount %herbcount
  217. return
  218.  
  219. aevaes:
  220. var aevaescount %herbcount
  221. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement