Advertisement
Guest User

Untitled

a guest
Aug 24th, 2015
383
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.54 KB | None | 0 0
  1. ;by odzi ver. 1.1
  2. ;[jedzenie - Ciastka, ser, salatka, sok, chleb]
  3.  
  4. ;==============================================================================================
  5.  
  6. set %jedzenie 1 ;<- [1] - jedzenie automatyczne [0] - jedzenie pod bindem
  7. set %key end ;<- Przycisk pod jakim ma jesc
  8. set *stop 0
  9. set %ji #jindex
  10.  
  11. ;============================================================================================
  12. set #sysmsgcol 80
  13. event sysmessage Skrypt na jedzenie (ciastka, ser, salatka, sok, chleb) odpalony [Created bY odzi:)]
  14. repeat
  15. {
  16. if %jedzenie = 1
  17. {
  18. if %ji < #jindex
  19. {
  20. set %ji %ji + 1
  21. scanjournal %ji
  22. if Zapisywanie in #journal
  23. gosub czekaj
  24. if Czujesz_sie in #journal || Moglabys_czuc in #journal
  25. {
  26. set *STOP 1
  27. gosub sprawdz_glod
  28. }
  29. }
  30. }
  31. if %jedzenie = 0
  32. {
  33. onhotkey %key
  34. {
  35. set *STOP 1
  36. gosub sprawdz_glod
  37. set *STOP 0
  38. }
  39. }
  40. }
  41. until #false
  42.  
  43. sub sprawdz_glod
  44. repeat
  45. {
  46. set %ji #jindex
  47. event macro 1 0 .glod wszystko
  48. wait 1s
  49. repeat
  50. {
  51. if %ji < #jindex
  52. {
  53. set %ji %ji + 1
  54. scanjournal %ji
  55. if Zapisywanie in #journal
  56. gosub czekaj
  57. if Glod:_Norma in #journal || Glod:_Niewiele in #journal
  58. set %glod 0
  59. if Bialka:_Norma in #journal || Bialka:_Niewiele in #journal
  60. set %bialko 0
  61. if Witaminy:_Norma in #journal || Witaminy:_Niewiele in #journal
  62. set %wit 0
  63. if Weglowodany:_Norma in #journal || Weglowodany:_Niewiele in #journal
  64. set %wegle 0
  65. if Glod:_Optymalne_zaspokojenie in #journal || Glod:_Przejedzenie in #journal || Glod:_Bardzo_duze_przejedzenie in #journal
  66. set %glod 1
  67. if Bialka:_Optymalne_Zaspokojenie in #journal || Bialka:_Przejedzenie in #journal || Bialka:_Bardzo_duze_przejedzenie in #journal
  68. set %bialko 1
  69. if Witaminy:_Optymalne_Zaspokojenie in #journal || Witaminy:_Przejedzenie in #journal || Witaminy:_Bardzo_duze_przejedzenie in #journal
  70. set %wit 1
  71. if Weglowodany:_Optymalne_zaspokojenie in #journal || Weglowodany:_Przejedzenie in #journal || Weglowodany:_Bardzo_duze_przejedzenie in #journal
  72. set %wegle 1
  73. }
  74. }
  75. until %ji = #jindex
  76. if %glod = 0 && %bialko = 0 && %wit = 0 && %wegle = 0
  77. {
  78. gosub zjedz MGG chleba
  79. if #result = koniec || #result = brak
  80. {
  81. gosub koniec
  82. return
  83. }
  84. if %jedz = 1
  85. {
  86. set %jedz 0
  87. continue
  88. }
  89. gosub zjedz JGI salatki
  90. if #result = koniec || #result = brak
  91. {
  92. gosub koniec
  93. return
  94. }
  95. if %jedz = 1
  96. {
  97. set %jedz 0
  98. continue
  99. }
  100. gosub zjedz SLI ciasteczek
  101. if #result = koniec || #result = brak
  102. {
  103. gosub koniec
  104. return
  105. }
  106. if %jedz = 1
  107. {
  108. set %jedz 0
  109. continue
  110. }
  111. }
  112. if %glod = 1 && %bialko = 0 && %wit = 0 && %wegle = 0
  113. {
  114. gosub zjedz ZBM soku , #spc , kokosowego
  115. if #result = koniec || #result = brak
  116. {
  117. gosub koniec
  118. return
  119. }
  120. set %jedz 1
  121. continue
  122. }
  123. if %bialko = 0
  124. {
  125. if %glod = 1
  126. {
  127. gosub zjedz END sera
  128. if #result = koniec || #result = brak
  129. {
  130. gosub koniec
  131. return
  132. }
  133. set %jedz 1
  134. continue
  135. }
  136. else
  137. {
  138. gosub zjedz MGG chleba
  139. if #result = koniec || #result = brak
  140. {
  141. gosub koniec
  142. return
  143. }
  144. set %jedz 1
  145. continue
  146. }
  147. }
  148. if %wit = 0
  149. {
  150. gosub zjedz JGI salatki
  151. if #result = koniec || #result = brak
  152. {
  153. gosub koniec
  154. return
  155. }
  156. set %jedz 1
  157. continue
  158. }
  159. if %wegle = 0
  160. {
  161. gosub zjedz SLI ciasteczek
  162. if #result = koniec || #result = brak
  163. {
  164. gosub koniec
  165. return
  166. }
  167. set %jedz 1
  168. continue
  169. }
  170. if %glod = 0 && %bialko = 1 && %wit = 1 && %wegle = 1
  171. {
  172. gosub zjedz JGI salatki
  173. if #result = koniec || #result = brak
  174. {
  175. gosub koniec
  176. return
  177. }
  178. set %jedz 1
  179. continue
  180. }
  181. }
  182. until %glod = 1 && %bialko = 1 && %wit = 1 && %wegle = 1
  183. gosub koniec
  184. return
  185.  
  186. sub czekaj
  187. repeat
  188. {
  189. if %ji < #jindex
  190. {
  191. set %ji %ji + 1
  192. scanjournal %ji
  193. if Koniec_zapisywania in #journal
  194. return
  195. }
  196. }
  197. until #false
  198. return
  199.  
  200. sub zjedz
  201. finditem %1
  202. if #findkind = -1
  203. {
  204. set #sysmsgcol 55
  205. event sysmessage Nie znalazlem %2 skrypt wylaczony
  206. set *STOP 0
  207. return brak
  208. }
  209. set #lobjectid #findid
  210. event macro 17
  211. wait 1s
  212. return
  213.  
  214. sub koniec
  215. if #result = brak
  216. {
  217. set #sysmsgcol 45
  218. event sysmessage Koniec jedzenia
  219. set *STOP 0
  220. return
  221. }
  222. set #sysmsgcol 75
  223. event sysmessage Zakonczono jedzenie
  224. set *STOP 0
  225. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement