Guest User

Untitled

a guest
Oct 20th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.18 KB | None | 0 0
  1. ;Autor: [nGz]
  2. ;Wersja: 3.5
  3. ;Leczy automatycznie hp i lyka miksa czerwonego gdy masz mniej jak 4 staminy.
  4. ;Jesli wlaczysz w Easyuo opcje Enable Event Sysmessage(Options-->Configuration)
  5. ;to skrypt powiadomi Cie gdy bedziesz mial mniej niz 11 bandazy lub mniej niz 20 HP.
  6. initevents
  7. set %band 0
  8. set %stna 0
  9. set %licz3 0
  10. set %last_hp #hits
  11. start1:
  12. set %useba 0
  13. set %licz #scnt2 + 180
  14. set %hp #hits
  15. start:
  16. if #hits < %last_hp
  17. {
  18. set %ilosc %last_hp - #hits
  19. set #sysmsgcol 50
  20. event sysmessage DOSTALES ZA %ilosc HP
  21. set %last_hp #hits
  22. }
  23. if #hits > %last_hp
  24. set %last_hp #hits
  25.  
  26. if #str = N/A
  27. {
  28. set %stna 1
  29. event macro 8 2
  30. }
  31. ignoreitem reset
  32. if H in #charstatus
  33. goto start1
  34. if %useba = 1
  35. goto stamina
  36. if #hits < #maxhits
  37. {
  38. bandaze:
  39. finditem zlf
  40. if #findkind = -1
  41. {
  42. set %band 1
  43. goto stamina
  44. }
  45. if #findkind = 1
  46. {
  47. ignoreitem #findid
  48. goto bandaze
  49. }
  50. set %hp #hits + 3
  51. wiecej:
  52. set %licz2 0
  53. if #shard = DREAM , #spc , MASTERS
  54. event macro 1 0 .um uzdrawianie
  55. else
  56. {
  57. set #lobjectid #findid
  58. event macro 17
  59. }
  60. loop:
  61. scanjournal 1
  62. set %licz2 %licz2 + 1
  63. wait 1
  64. wait 1
  65. if #targcurs = 1
  66. goto tself
  67. if I_am_frozen in #journal
  68. goto start1
  69. if I_am_already in #sysmsg
  70. goto czekaj
  71. if Nie_mozesz_teraz in #sysmsg
  72. goto tself
  73. if Nie_mozesz_tego in #sysmsg
  74. goto tself
  75. if %licz2 > 8
  76. goto wiecej
  77. goto loop
  78. tself:
  79. event macro 23
  80. event macro 23
  81. event macro 23
  82. ;liczenie
  83. set %czas_l #SCNT
  84. set %odliczanie #SCNT2
  85. set %iterator 0
  86.  
  87. if Kogo_Chcial in #sysmsg
  88. goto tself
  89. set %useba 1
  90. set %licz #scnt2 + 180
  91. set %iband #findstack - 1
  92. set #sysmsgcol 1080
  93. if %iband < 50
  94. {
  95. if %iband > 0
  96. event sysmessage Koncza Ci sie bandaze: %iband
  97. }
  98. if %iband = 0
  99. event sysmessage Skonczyly Ci sie bandaze!!!
  100. if #targcurs = 1
  101. goto tself
  102. }
  103. stamina:
  104. if %useba = 1
  105. {
  106. if #stamina < 2
  107. goto stam2
  108. if %licz - #scnt2 < 100
  109. goto czekaj
  110. }
  111. stam2:
  112. if #stamina < 0
  113. {
  114. if #stamina = 0
  115. {
  116. if %stna = 1
  117. {
  118. set %stna 0
  119. wait 5
  120. goto czekaj
  121. }
  122. }
  123. if #stamina = N/A
  124. {
  125. set %stna 1
  126. goto czekaj
  127. }
  128. miks:
  129. finditem zuf
  130. if #findkind = -1
  131. {
  132. if %band = 1
  133. halt
  134. goto czekaj
  135. }
  136. if #findkind = 1
  137. {
  138. ignoreitem #findid
  139. goto miks
  140. }
  141. set #lobjectid #findid
  142. event macro 17
  143. wait 10
  144. }
  145. czekaj:
  146. if #sex = 1
  147. {
  148. if #sysmsg = Przestalas_sie_leczyc.
  149. goto start1
  150. if Wyleczylas_sie in #sysmsg
  151. goto start1
  152. }
  153. if #sex = 0
  154. {
  155. if #sysmsg = Przestales_sie_leczyc.
  156. goto start1
  157. if Wyleczyles_sie in #sysmsg
  158. goto start1
  159. }
  160. if Your_skill_in_Healing in #sysmsg
  161. {
  162. scanjournal 1
  163. if Your_skill_in_Healing in #journal
  164. goto start1
  165. }
  166. if Your_skill_in_Uzdrawianie in #sysmsg
  167. {
  168. scanjournal 1
  169. if Your_skill_in_Uzdrawianie in #journal
  170. goto start1
  171. }
  172. if Your_dexterity in #sysmsg
  173. {
  174. scanjournal 1
  175. if Your_dexterity in #journal
  176. goto start1
  177. }
  178. if #sysmsg = Nie_udalo_ci_sie_wyleczyc_tej_osoby.
  179. goto start1
  180. if #sysmsg = Anulowano.
  181. goto start1
  182. if %licz3 > 0
  183. {
  184. set %licz3 %licz3 + 1
  185. if %licz3 > 17
  186. set %licz3 0
  187. goto ohptxt
  188. }
  189. if #hits < 91
  190. {
  191. set %licz3 1
  192. set #sysmsgcol 1080
  193. event sysmessage MASZ #hits HP!!!
  194. sound C:\missile.wa
  195. }
  196. ohptxt:
  197. if #hits = #maxhits
  198. goto start1
  199.  
  200. if #hits > %hp
  201. goto start1
  202. if %licz < #scnt2
  203. {
  204. gosub licz
  205. event sysmessage Leczyles sie cos za dlugo!
  206. goto start1
  207. }
  208. if Tego_nie_uda_Ci_sie_wskrzesic in #sysmsg
  209. goto start1
  210. if Nie_widzisz_tego in #sysmsg
  211. goto start1
  212. if To_zwierze_jest_w in #sysmsg
  213. goto start1
  214. if Nie_mozesz_go_wyleczyc in #sysmsg
  215. goto start1
  216. if Nie_mozesz_tego_wyleczyc in #sysmsg
  217. goto start1
  218.  
  219. if %odliczanie < #SCNT2 - 10
  220. {
  221. set %iterator %iterator + 1
  222. set #sysmsgcol 101
  223. event sysmessage leczysz sie %iterator sek
  224. set %odliczanie %odliczanie + 10
  225. }
  226. goto start
Add Comment
Please, Sign In to add comment