Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2015
415
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.87 KB | None | 0 0
  1. ;by odzi
  2. ;ver. 1.1
  3. ;Kox magii/inta
  4. ;Skrypt w automacie czaruje anexy, i co 30 min zaczyna rzucac vas flamy, po zabiciu wszystkich mobow w kolo dzwoni i zatrzymuje skrypt
  5. ;Gdy %automat jest 0, czaruje vas flamy w atakujacy nas cel.
  6. ;Skrypt leczy nas kiedy dostaniemy obrażenia większe od 30 hp.
  7.  
  8. set %int 62 ;<- Ile mamy inta, aby skrypt wiedzial kiedy rzucac blesa
  9. set %automat 1 ;<- Czy skrypt ma czarowac w automacie anexy, czy automatycznie vas flamy [0 - vas flamy , 1 - anexy]
  10. set %mana 25 ;<- Od ilu ma medytowac
  11. set %sciezka F:\ringin.wav ;<- Sciezka do dzwieku
  12.  
  13. ;==============================================================================================================================================================
  14.  
  15. set %ji #jindex
  16. set #lpc 1000
  17. set %czar 0
  18. set *medyt 0
  19. set *bles 0
  20. set *czar 0
  21. set %piorun 0
  22. set %klatwa 0
  23. set %timer #scnt + 1800
  24. set %time 0
  25.  
  26. ;==============================================================================================================================================================
  27.  
  28. repeat
  29. {
  30. if %automat = 1
  31. {
  32. if %time < #scnt
  33. {
  34. set #sysmsgcol 75
  35. set %odlicz %timer - #scnt
  36. set %odlicz %odlicz / 60
  37. event sysmessage Pozostalo: %odlicz min
  38. set %time #scnt + 60
  39. }
  40. if #enemyid = N/A
  41. {
  42. sound %sciezka
  43. halt
  44. }
  45. }
  46. set *medyt 0
  47. set *bles 0
  48. set *czar 0
  49. if #charstatus = A
  50. {
  51. repeat
  52. until #charstatus <> A
  53. }
  54. set %hp #maxhits - 30
  55. if #hits <= %hp && #mana > 10
  56. {
  57. if #mana < 10
  58. gosub medyt
  59. gosub lecz
  60. if #result = strata
  61. continue
  62. }
  63. if #int = %str
  64. {
  65. set *bles 1
  66. gosub bles
  67. }
  68. if #mana <= %mana
  69. {
  70. gosub medyt
  71. if #result = lecz || #result = powrot
  72. continue
  73. }
  74. if #enemyid <> N/A
  75. {
  76. finditem * G_14
  77. for #findindex 1 #findcnt
  78. {
  79. if #findid = #enemyid
  80. {
  81. gosub czaruj
  82. ;if %czar = 2
  83. ;{
  84. ;gosub medyt
  85. ;set %czar 0
  86. ;}
  87. }
  88. }
  89. }
  90. }
  91. until #false
  92.  
  93. sub bles
  94. repeat
  95. {
  96. event macro 15 16
  97. set %czas #scnt + 7
  98. repeat
  99. {
  100. if %ji < #jindex
  101. {
  102. set %ji %ji + 1
  103. scanjournal %ji
  104. if Straciles_ in #journal
  105. {
  106. wait 4s
  107. return
  108. }
  109. if Zapisywanie in #journal
  110. gosub zapis
  111. }
  112. if #charstatus = A
  113. return
  114. if %czas < #scnt
  115. return
  116. }
  117. until #targcurs = 1
  118. event macro 23
  119. set %czas #scnt + 1
  120. repeat
  121. {
  122. if %ji < #jindex
  123. {
  124. set %ji %ji + 1
  125. scanjournal %ji
  126. if Straciles_ in #journal
  127. return strata
  128. if Zapisywanie in #journal
  129. gosub zapis
  130. }
  131. if #charstatus = A
  132. return
  133. if #targcurs <> 0 && %czas < #scnt
  134. event macro 23
  135. }
  136. until #targcurs = 0
  137. event macro 15 14
  138. wait 3s
  139. set *bles 0
  140. return
  141. }
  142. until #false
  143.  
  144. sub lecz
  145. set #lpc 1000
  146. repeat
  147. {
  148. if #mana < 11
  149. gosub medyt
  150. event macro 15 28
  151. set %czas #scnt + 7
  152. repeat
  153. {
  154. if %ji < #jindex
  155. {
  156. set %ji %ji + 1
  157. scanjournal %ji
  158. if Straciles_ in #journal
  159. {
  160. wait 4s
  161. return
  162. }
  163. if Zapisywanie in #journal
  164. gosub zapis
  165. }
  166. if #charstatus = A
  167. return
  168. if %czas < #scnt
  169. return
  170. }
  171. until #targcurs = 1
  172. event macro 23 0
  173. event macro 23 0
  174. set %czas #scnt2 + 3
  175. repeat
  176. {
  177. if %ji < #jindex
  178. {
  179. set %ji %ji + 1
  180. scanjournal %ji
  181. if Straciles_ in #journal
  182. return strata
  183. if Zapisywanie in #journal
  184. gosub zapis
  185. }
  186. if #targcurs <> 0
  187. event macro 23 0
  188. if #charstatus = A
  189. return
  190. }
  191. until #targcurs = 0
  192. wait 1s
  193. return
  194. }
  195. until #false
  196. return
  197.  
  198. sub zapis
  199. set #lpc 1000
  200. repeat
  201. {
  202. if %ji < #jindex
  203. {
  204. set %ji %ji + 1
  205. scanjournal %ji
  206. if Koniec_zapisywania. in #journal
  207. return
  208. }
  209. }
  210. until #false
  211. return
  212.  
  213. sub czaruj
  214. set %ji #jindex
  215. set *czar 1
  216. set %hp #maxhits - 30
  217. if #hits < %hp
  218. return
  219. if #mana < %mana
  220. return
  221. if %automat = 1
  222. {
  223. if %timer > #scnt
  224. {
  225. event macro 15 37
  226. repeat
  227. {
  228. event macro 26 0
  229. if #ltargetid = #charid || #ltargetid = PZWNG
  230. continue
  231. }
  232. until #ltargetid <> #charid
  233. }
  234. if %timer < #scnt
  235. {
  236. set #ltargetid #enemyid
  237. event macro 15 17 ;37
  238. }
  239. }
  240. if %automat = 0
  241. {
  242. set #ltargetid #enemyid
  243. event macro 15 17
  244. }
  245. set %czas #scnt + 5
  246. repeat
  247. {
  248. if %klatwa > 4 && %piorun > 0
  249. {
  250. set %klatwa 0
  251. set %piorun 0
  252. }
  253. if #hits <= %hp && #mana > 10
  254. {
  255. key esc
  256. if #mana < 10
  257. gosub medyt
  258. return
  259. if #result = strata
  260. continue
  261. }
  262. if %czas < #scnt
  263. return
  264. if %ji < #jindex
  265. {
  266. set %ji %ji + 1
  267. scanjournal %ji
  268. if Zapisywanie in #journal
  269. gosub zapis
  270. if Czar_sie_nie_ in #journal
  271. return
  272. if Stracil in #journal
  273. {
  274. set *czar 0
  275. wait 4s
  276. return
  277. }
  278. }
  279. if #charstatus = A
  280. {
  281. set *czar 0
  282. return
  283. }
  284. }
  285. until #targcurs = 1
  286. event macro 22 0
  287. set %czas #scnt + 1
  288. repeat
  289. {
  290. if #hits <= %hp && #mana > 10
  291. {
  292. key esc
  293. if #mana < 10
  294. gosub medyt
  295. return
  296. if #result = strata
  297. continue
  298. }
  299. if #charstatus = A
  300. return
  301. if %czas < #scnt
  302. event macro 22
  303. }
  304. until #targcurs = 0
  305. wait 3
  306. set %czar %czar + 1
  307. set *czar 0
  308. if %klatwa > 4 && %piorun > 0
  309. {
  310. set %klatwa 0
  311. set %piorun 0
  312. }
  313. return
  314.  
  315. sub medyt
  316. set *medyt 1
  317. event macro 13 46
  318. set %czas #scnt + 10
  319. set %czas1 #scnt + 5
  320. repeat
  321. {
  322. if %ji < #jindex
  323. {
  324. set %ji %ji + 1
  325. scanjournal %ji
  326. if *medytuje* in #journal || Rozpoczynasz_ in #journal
  327. break
  328. if You_must_ in #journal
  329. event macro 13 46
  330. if %czas1 < #scnt
  331. event macro 13 46
  332. }
  333. set %hp #maxhits - 30
  334. if #hits <= %hp && #mana > 10
  335. return lecz
  336. if #charstatus = A
  337. return
  338. }
  339. until %czas < #scnt
  340. set %czas #scnt + 30
  341. repeat
  342. {
  343. set %hp #maxhits - 30
  344. if #hits <= %hp && #mana > 10
  345. return lecz
  346. set %mana1 #mana
  347. set %czas2 #scnt + 1
  348. if #charstatus = A
  349. return
  350. while %czas2 < #scnt
  351. {
  352. if #charstatus = A
  353. return
  354. set %mana2 #mana - %mana1
  355. if %mana2 < 6
  356. event macro 13 46
  357. }
  358. if %ji < #jindex
  359. {
  360. set %ji %ji + 1
  361. scanjournal %ji
  362. if Straciles in #journal || Stracilas in #journal
  363. {
  364. set *medyt 0
  365. return strata
  366. }
  367. if Nie_mozesz_sie_skoncentrowac. in #journal
  368. {
  369. set *medyt 0
  370. return strata
  371. }
  372. if Konczysz_ in #journal && #mana < #maxmana
  373. {
  374. set *medyt 0
  375. return powrot
  376. }
  377. }
  378. if #charstatus = A
  379. return
  380. if #mana = #maxmana
  381. {
  382. set *medyt 0
  383. return nie
  384. }
  385. }
  386. until %czas < #scnt
  387. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement