Advertisement
Guest User

Untitled

a guest
Aug 24th, 2015
478
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.10 KB | None | 0 0
  1. ;by odzi
  2. ;ver. 1.0
  3. ;Bierny kox inta na nowych zasadach czynnego koxu;) pozdrawiam.
  4.  
  5. set %str 73
  6.  
  7. set %ji #jindex
  8. set #lpc 1000
  9. set %mana 5
  10. repeat
  11. {
  12. if #charstatus = A
  13. {
  14. repeat
  15. until #charstatus <> A
  16. }
  17. set %hp #maxhits - 30
  18. if #hits <= %hp && #mana > 10
  19. {
  20. if #mana < 10
  21. gosub medyt
  22. gosub lecz
  23. if #result = strata
  24. continue
  25. }
  26. if #str = %str
  27. gosub bles
  28. if #mana <= %mana
  29. {
  30. gosub medyt
  31. if #result = lecz || #result = powrot
  32. continue
  33. }
  34. if #enemyid <> N/A
  35. {
  36. finditem * G_14
  37. for #findindex 1 #findcnt
  38. {
  39. if #findid = #enemyid
  40. gosub czaruj
  41. else
  42. continue
  43. }
  44. }
  45. }
  46. until #false
  47.  
  48. sub bles
  49. set #lpc 1000
  50. repeat
  51. {
  52. event macro 15 16
  53. set %czas #scnt + 7
  54. repeat
  55. {
  56. if %ji < #jindex
  57. {
  58. set %ji %ji + 1
  59. scanjournal %ji
  60. if Straciles_ in #journal
  61. {
  62. wait 4s
  63. return
  64. }
  65. if Zapisywanie in #journal
  66. gosub zapis
  67. }
  68. if #charstatus = A
  69. return
  70. if %czas < #scnt
  71. return
  72. }
  73. until #targcurs = 1
  74. event macro 23
  75. set %czas #scnt2 + 3
  76. repeat
  77. {
  78. if %ji < #jindex
  79. {
  80. set %ji %ji + 1
  81. scanjournal %ji
  82. if Straciles_ in #journal
  83. return strata
  84. if Zapisywanie in #journal
  85. gosub zapis
  86. }
  87. if #charstatus = A
  88. return
  89. if #targcurs <> 0 && %czas < #scnt2
  90. event macro 23
  91. }
  92. until #targcurs = 0
  93. event macro 15 14
  94. wait 3s
  95. return
  96. }
  97. until #false
  98.  
  99. sub lecz
  100. set #lpc 1000
  101. repeat
  102. {
  103. if #mana < 11
  104. gosub medyt
  105. event macro 15 28
  106. set %czas #scnt + 7
  107. repeat
  108. {
  109. if %ji < #jindex
  110. {
  111. set %ji %ji + 1
  112. scanjournal %ji
  113. if Straciles_ in #journal
  114. {
  115. wait 4s
  116. return
  117. }
  118. if Zapisywanie in #journal
  119. gosub zapis
  120. }
  121. if #charstatus = A
  122. return
  123. if %czas < #scnt
  124. return
  125. }
  126. until #targcurs = 1
  127. event macro 23 0
  128. event macro 23 0
  129. set %czas #scnt2 + 3
  130. repeat
  131. {
  132. if %ji < #jindex
  133. {
  134. set %ji %ji + 1
  135. scanjournal %ji
  136. if Straciles_ in #journal
  137. return strata
  138. if Zapisywanie in #journal
  139. gosub zapis
  140. }
  141. if #targcurs <> 0
  142. event macro 23 0
  143. if #charstatus = A
  144. return
  145. }
  146. until #targcurs = 0
  147. wait 1s
  148. return
  149. }
  150. until #false
  151. return
  152.  
  153. sub zapis
  154. set #lpc 1000
  155. repeat
  156. {
  157. if %ji < #jindex
  158. {
  159. set %ji %ji + 1
  160. scanjournal %ji
  161. if Koniec_zapisywania. in #journal
  162. return
  163. }
  164. }
  165. until #false
  166. return
  167.  
  168. sub czaruj
  169. set #lpc 1000
  170. set %hp #maxhits - 30
  171. if #hits < %hp
  172. return
  173. if #mana < %mana
  174. return
  175. event macro 15 4
  176. set %czas #scnt + 2
  177. repeat
  178. {
  179. if %ji < #jindex
  180. {
  181. set %ji %ji + 1
  182. scanjournal %ji
  183. if Zapisywanie in #journal
  184. gosub zapis
  185. if Straciles in #journal
  186. {
  187. wait 4s
  188. return
  189. }
  190. }
  191. if #charstatus = A
  192. return
  193. if %czas < #scnt
  194. return
  195. }
  196. until #targcurs = 1
  197. set #ltargetid #enemyid
  198. event macro 22 0
  199. event macro 22 0
  200. set %czas #scnt + 3
  201. repeat
  202. {
  203. if %ji < #jindex
  204. {
  205. set %ji %ji + 1
  206. scanjournal %ji
  207. if Zapisywanie in #journal
  208. gosub zapis
  209. }
  210. if %czas < #scnt
  211. return
  212. if #charstatus = A
  213. return
  214. if #targcurs = 1
  215. {
  216. event macro 22 0
  217. event macro 22 0
  218. }
  219. }
  220. until #targcurs = 0
  221. return
  222.  
  223. sub medyt
  224. set #lpc 1000
  225. event macro 13 46
  226. set %czas #scnt + 5
  227. set %czas1 #scnt + 5
  228. repeat
  229. {
  230. if %ji < #jindex
  231. {
  232. set %ji %ji + 1
  233. scanjournal %ji
  234. if *medytuje* in #journal
  235. break
  236. if %czas1 < #scnt
  237. event macro 13 46
  238. }
  239. set %hp #maxhits - 30
  240. if #hits <= %hp && #mana > 10
  241. return lecz
  242. if #charstatus = A
  243. return
  244. }
  245. until %czas < #scnt
  246. set %czas #scnt + 15
  247. repeat
  248. {
  249. set %hp #maxhits - 30
  250. if #hits <= %hp && #mana > 10
  251. return lecz
  252. set %mana1 #mana
  253. set %czas2 #scnt + 1
  254. if #charstatus = A
  255. return
  256. while %czas2 < #scnt
  257. {
  258. if #charstatus = A
  259. return
  260. set %mana2 #mana - %mana1
  261. if %mana2 < 6
  262. event macro 13 46
  263. }
  264. if %ji < #jindex
  265. {
  266. set %ji %ji + 1
  267. scanjournal %ji
  268. if Straciles in #journal || Stracilas in #journal
  269. return strata
  270. if Nie_mozesz_sie_skoncentrowac. in #journal
  271. return strata
  272. if Konczysz_ in #journal && #mana < #maxmana
  273. return powrot
  274. }
  275. if #charstatus = A
  276. return
  277. if #mana = #maxmana
  278. return nie
  279. }
  280. until %czas < #scnt
  281. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement