Advertisement
Guest User

Untitled

a guest
Jan 28th, 2020
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.62 KB | None | 0 0
  1. ;Macro bY SabiK
  2. ;kupowanie.txt
  3. ;Wersja 1.2
  4. ;Skrypt kupuje zaznaczone przedmioty (regi, jedzenie, strzały, bełty)
  5. ;Po nacisnięciu klawisza skrypt mówi 'Chce cos kupic' i kupuje wybrane przedmioty
  6.  
  7. ;U W A G A !!! USTAW PONIZSZE ZMIENNE PRZED WLACZENIEM SKRYPTU !!!
  8. set %key q ;Tutaj ustaw klawisz, ktory uruchami skrypt
  9. set %sieci 1
  10. set %siarka 1
  11. set %wilcze 0
  12. set %mandra 1
  13. set %zenszen 0
  14. set %czosnek 0
  15. set %mech 0
  16. set %perly 1
  17. set %jedzenie 0 ;kupuje chleb, salatke, ciasteczka
  18. set %butelki 0
  19. set %belty 0
  20. ;------------------------------------------------------------------------------------------------------------
  21.  
  22. initevents
  23. set %ilosc %sieci + %siarka + %wilcze + %mandra + %zenszen + %czosnek + %mech + %perly
  24. if %jedzenie = 1
  25. set %ilosc %sieci + %siarka + %wilcze + %mandra + %zenszen + %czosnek + %mech + %perly + 3
  26. if %strzaly = 1 || %belty = 1
  27. {
  28. if %belty = 1 && %strzaly = 0
  29. {
  30. set %ilosc %sieci + %siarka + %wilcze + %mandra + %zenszen + %czosnek + %mech + %perly + %belty
  31. goto starcik
  32. }
  33. if %belty = 0 && %strzaly = 1
  34. {
  35. set %ilosc %sieci + %siarka + %wilcze + %mandra + %zenszen + %czosnek + %mech + %perly + %strzaly
  36. goto starcik
  37. }
  38. set %ilosc %sieci + %siarka + %wilcze + %mandra + %zenszen + %czosnek + %mech + %perly + %strzaly + %belty
  39. }
  40. starcik:
  41. set #sysmsgcol 1082
  42. event sysmessage Skrypt [kupowanie] odpalony (by SabiK)
  43. wait 1
  44.  
  45. start:
  46. onhotkey %key
  47. {
  48. event macro 1 ^ chce cos kupic
  49. goto start2
  50. }
  51. goto start
  52.  
  53.  
  54. start2:
  55. if #contsize = 283_248
  56. goto start3
  57. goto start2
  58. start3:
  59. onhotkey %key
  60. {
  61. set #sysmsgcol 1082
  62. event sysmessage Skrypt wraca do poczatku
  63. goto start
  64. }
  65. getShopInfo
  66. if ( #shopItemType = RZF ) && ( %sieci = 1 )
  67. {
  68. click 285 85 d
  69. setShopItem #shopItemID #shopItemMax
  70. set %ile %ile + 1
  71. goto start1
  72. }
  73. if ( #shopItemType = SZF ) && ( %siarka = 1 )
  74. {
  75. click 285 85 d
  76. setShopItem #shopItemID #shopItemMax
  77. set %ile %ile + 1
  78. goto start1
  79. }
  80. if ( #shopItemType = WZF ) && ( %wilcze = 1 )
  81. {
  82. click 285 85 d
  83. setShopItem #shopItemID #shopItemMax
  84. set %ile %ile + 1
  85. goto start1
  86. }
  87. if ( #shopItemType = MZF ) && ( %mandra = 1 )
  88. {
  89. click 285 85 d
  90. setShopItem #shopItemID #shopItemMax
  91. set %ile %ile + 1
  92. goto start1
  93. }
  94. if ( #shopItemType = JZF ) && ( %zenszen = 1 )
  95. {
  96. click 285 85 d
  97. setShopItem #shopItemID #shopItemMax
  98. set %ile %ile + 1
  99. goto start1
  100. }
  101. if ( #shopItemType = KZF ) && ( %czosnek = 1 )
  102. {
  103. click 285 85 d
  104. setShopItem #shopItemID #shopItemMax
  105. set %ile %ile + 1
  106. goto start1
  107. }
  108. if ( #shopItemType = JUF ) && ( %mech = 1 )
  109. {
  110. click 285 85 d
  111. setShopItem #shopItemID #shopItemMax
  112. set %mech1 1
  113. goto start1
  114. }
  115. if ( #shopItemType = KUF ) && ( %perly = 1 )
  116. {
  117. click 285 85 d
  118. setShopItem #shopItemID #shopItemMax
  119. set %ile %ile + 1
  120. goto start1
  121. }
  122. if ( #shopItemType = MGG ) && ( %jedzenie = 1 )
  123. {
  124. click 285 85 d
  125. setShopItem #shopItemID #shopItemMax
  126. set %ile %ile + 1
  127. goto start1
  128. }
  129. if ( #shopItemType = SLI ) && ( %jedzenie = 1 )
  130. {
  131. click 285 85 d
  132. setShopItem #shopItemID #shopItemMax
  133. set %ile %ile + 1
  134. goto start1
  135. }
  136. if ( #shopItemType = JGI ) && ( %jedzenie = 1 )
  137. {
  138. click 285 85 d
  139. setShopItem #shopItemID #shopItemMax
  140. set %ile %ile + 1
  141. goto start1
  142. }
  143. if ( #shopItemType = WUF ) && ( %strzaly = 1 )
  144. {
  145. click 285 85 d
  146. setShopItem #shopItemID #shopItemMax
  147. set %ile %ile + 1
  148. goto start1
  149. }
  150. if ( #shopItemType = LNK ) && ( %belty = 1 )
  151. {
  152. click 285 85 d
  153. setShopItem #shopItemID #shopItemMax
  154. set %ile %ile + 1
  155. goto start1
  156. }
  157. start1:
  158. if %ile = %ilosc
  159. goto koniec
  160. if #shopCurPos = #shopCnt
  161. goto koniec
  162. click 393 207
  163. goto start3
  164.  
  165. koniec:
  166. click 363 428
  167. set %ile 0
  168. goto start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement