szumielxd

JobsSk

Oct 5th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.38 KB | None | 0 0
  1. on break of stone:
  2. if "%region at player%" contains "kopalnia in world spawn":
  3. if player is in job Kopacz:
  4. set event-block to air
  5. wait 8 second
  6. set event-block to stone
  7. else:
  8. cancel event
  9. send "&cNie jestes gornikiem by kopac w kopalni" to player
  10.  
  11.  
  12. on rightclick with plain_glass_block:
  13. if player's tool is plain_glass_block named "&e&lMaska nurka &6&lLvl: I":
  14. if player is in job Nurek:
  15. cancel event
  16. set {_x} to player's tool
  17. set {_y} to helmet of the player
  18. set helmet of the player to {_x}
  19. set player's tool to {_y}
  20. remove {_x} from player
  21. send "&eZalozyles maske nurka lvl I" to player
  22. apply night vision to player for 9999999 second
  23. while player's helmet is plain_glass_block named "&e&lMaska nurka &6&lLvl: I":
  24. wait 10 seconds
  25. remove night vision from player
  26. else:
  27. send "&cNie jestes nurkiem by to zalozyc" to player
  28. if player's tool is plain_glass_block named "&e&lMaska nurka &6&lLvl: II":
  29. if player is in job Nurek:
  30. cancel event
  31. set {_x} to player's tool
  32. set {_y} to helmet of the player
  33. set helmet of the player to {_x}
  34. set player's tool to {_y}
  35. remove {_x} from player
  36. send "&eZalozyles maske nurka lvl II" to player
  37. apply water breathing 1 to player for 9999999 second
  38. apply night vision to player for 9999999 second
  39. while player's helmet is plain_glass_block named "&e&lMaska nurka &6&lLvl: II":
  40. wait 10 seconds
  41. remove night vision from player
  42. remove water breathing from player
  43. else:
  44. send "&cNie jestes nurkiem by to zalozyc" to player
  45.  
  46. command /asd:
  47. trigger:
  48. send "%addons list%"
  49.  
  50. on rightclick on entity:
  51. if name of entity is "&aKupiec ryb":
  52. if player is in job Rybak:
  53. open chest with 3 rows named "&2Sprzedaj ryby" to player
  54. else:
  55. send "&e&lFreeBuild &aMusisz byc w pracy rybak!" to player
  56.  
  57. #on close inventory:
  58. # if inventory name of player's current inventory is "&2Sprzedaj ryby":
  59. # set {_bezw} to 0
  60. # set {_x} to 0
  61. # set {_kasar} to 0
  62. # set {_ile} to 0
  63. # loop 27 times:
  64. # set {_sellryby::%player%::%loop-number%} to slot "%loop-number - 1%" parsed as an integer of current inventory of player
  65. # loop {_sellryby::%player%::*}:
  66. # if loop-value is not air:
  67. # if "%lore of loop-value%" contain "&bRyba zostala zlowiona przez":
  68. # set {_x} to item amount of loop-value
  69. # set {_lore} to "%uncoloured lore of loop-value%"
  70. # replace all "Ryba zostala zlowiona przez %player%||Wielkosc: " with "" in {_lore}
  71. # set {_a} to "%{_lore}%" parsed as number
  72. # set {_m} to {_a}/4
  73. # set {_kasa} to {_x}*{_m}
  74. # add {_kasa} to {_kasar}
  75. # add {_x} to {_ile}
  76. # wait 0.5 second
  77. # add {_kasar} to balance of player
  78. # send "&a[Kupiec ryb] &bDziekuje %player%, daje ci w zamian za %{_ile}% ryb %{_kasar}% $." to player
  79. # send action bar from "&6&lZarobiles &e%{_kasar}% $" to player set player's action bar to "&6&lZarobiles &e%{_kasa}% $"
  80.  
  81. options:
  82. tag: &e&lFreeBuild
  83.  
  84. #=======================================nurek================
  85.  
  86. command /nurekadd:
  87. trigger:
  88. if player has permission "op.sk":
  89. "%target block%" is "CHEST":
  90. set {_s} to size of {nurek.chests::*} + 1
  91. set {nurek.chests::%{_s}%} to location of target block
  92. send "&aUstawiles tchest nurka. Numer: &2%size of {nurek.chests::*}% &ana koordynatach &2%location of target block%" to player
  93. else:
  94. send "&cCzy %type of target block% wyglada jak CHEST?"
  95.  
  96. command /nurekdel <number>:
  97. trigger:
  98. if player has permission "op.sk":
  99. {nurek.chests::%arg-number%} is set:
  100.  
  101. {nurek.chests::%arg-number+1%} is set:
  102. set {_s} to size of {nurek.chests::*}
  103. set {nurek.chests::%arg-number%} to {nurek.chests::%{_s}%}
  104. delete {nurek.chests::%{_s}%}
  105. else:
  106. delete {nurek.chests::%arg-number%}
  107. send "&aUsunales tchest nurka. Numer: %arg-number%" to player
  108. else:
  109. send "&cNie ma skrzynki o takim numerze"
  110.  
  111. command /nureklist:
  112. trigger:
  113. if player has permission "op.sk":
  114. send "&3&lLista skrzynek nurka:"
  115. loop {nurek.chests::*}:
  116. send " &e%loop-index%. &b%loop-value%"
  117.  
  118.  
  119.  
  120. command /nurekchest:
  121. trigger:
  122. if {nurek.actual} is set:
  123. set block at location of {nurek.actual} to air
  124. delete {nurek.actual}
  125. set {_r} to random integer between 1 and size of {nurek.chests::*}
  126. set {nurek.actual} to location at {nurek.chests::%{_r}%}
  127. loop all players:
  128. if loop-player is in job Nurek:
  129. send loop-player title "&6&lWykryto skrzynie" with subtitle "Na kordach %{nurek.chests::%{_r}%}%" for 3 second
  130. send "{@tag} &6Centrum badawcze wykrylo skrzynie. Na kordach %{nurek.chests::%{_r}%}%" to loop-player
  131. set block at location of {nurek.chests::%{_r}%} to chest
  132.  
  133. every 3 minute in "world":
  134. if {nurek.actual} is set:
  135. set block at location of {nurek.actual} to air
  136. delete {nurek.actual}
  137. set {_r} to random integer between 1 and size of {nurek.chests::*}
  138. set {nurek.actual} to location at {nurek.chests::%{_r}%}
  139. loop all players:
  140. if loop-player is in job Nurek:
  141. send loop-player title "&6&lWykryto skrzynie" with subtitle "Na kordach %{nurek.chests::%{_r}%}%" for 3 second
  142. send "{@tag} &6Centrum badawcze wykrylo skrzynie. Na kordach %{nurek.chests::%{_r}%}%" to loop-player
  143. set block at location of {nurek.chests::%{_r}%} to chest
  144.  
  145.  
  146. on rightclick on chest:
  147. if "%location of event-block%" is "%{nurek.actual}%":
  148. if player is in job Nurek:
  149. cancel event
  150. set event-block to air
  151. delete {nurek.actual}
  152. open chest with 3 rows named "&6Skrzynia skarbow" to player
  153. wait 1 tick
  154. set {_losslot} to 0
  155. loop 27 times:
  156. chance of 1%:
  157. set {_losowyrok} to a random integer between 650 and 1650
  158. set slot {_losslot} of current inventory of player to gold nugget of unbreaking 100 named "&e&lZloto pirata" with lore "&5Zloto pirata, jest bardzo cennym||&5przedmiotem na rynku. Jest ono wart bardzo duzo.|| ||&7Zloto jest z: %{_losowyrok}% roku"
  159. chance of 11%:
  160. set slot {_losslot} of current inventory of player to yellow dye of unbreaking 100 named "&6&lBursztyn" with lore "&5Bursztyn jest cennym przedmiotem na rynku"
  161. chance of 32%:
  162. set slot {_losslot} of current inventory of player to light gray dye of unbreaking 100 named "&f&lMuszelka" with lore "&5Muszelka jest mniej cennym przedmiotem||&5na rynku niz Bursztyn"
  163. add 1 to {_losslot}
  164. else:
  165. cancel event
  166. send "{@tag} &cAby otworzyc skrzynie skrabow musisz byc nurkiem!" to player
  167.  
  168. on rightclick on entity:
  169. if name of entity is "&aMorski kupiec":
  170. if player is in job Nurek:
  171. set {napis::%player%} to 1
  172. if player's tool is not yellow dye of unbreaking 100 or light gray dye of unbreaking 100:
  173. send "&a[Morski kupiec] &cNie potrzebne mi to!!" to player
  174. if player's tool is yellow dye of unbreaking 100 named "&6&lBursztyn" with lore "&5Bursztyn jest cennym przedmiotem na rynku":
  175. set {_x} to item amount of player's tool
  176. remove player's tool from player
  177. set {_y} to random number between 0.88 and 5.6
  178. set {_kasa} to {_x}*{_y}
  179. add {_kasa} to balance of player
  180. send "&a[Morski kupiec] &bDobra robota %player%, daje ci w zamian za %{_x}% bursztyn %{_kasa}% $." to player
  181. set player's action bar to "&6&lZarobiles &e%{_kasa}% $"
  182. add {_kasa}+{_x} to {exp.nurek::%player%}
  183. if player's tool is light gray dye of unbreaking 100 named "&f&lMuszelka" with lore "&5Muszelka jest mniej cennym przedmiotem||&5na rynku niz Bursztyn":
  184. set {_x} to item amount of player's tool
  185. remove player's tool from player
  186. set {_y} to random number between 0.77 and 3.2
  187. set {_kasa} to {_x}*{_y}
  188. add {_kasa} to balance of player
  189. send "&a[Morski kupiec] &bDobra robota %player%, daje ci w zamian za %{_x}% muszelek %{_kasa}% $." to player
  190. set player's action bar to "&6&lZarobiles &e%{_kasa}% $"
  191. add {_kasa}+{_x} to {exp.nurek::%player%}
  192. wait 1 second
  193. if {exp.nurek::%player%} >= {wymagane.nurek::%player%}:
  194. if {napis::%player%} is 1:
  195. add 1 to {lvl.nurek::%player%}
  196. set {_zliczone.wymagane.nurek::%player%} to {wymagane.nurek::%player%}*2.5
  197. wait 1 tick
  198. set {wymagane.nurek::%player%} to {_zliczone.wymagane.nurek::%player%}
  199. delete {napis::%player%}
  200. wait 1 tick
  201. set {napis::%player%} to 0
  202. broadcast "{@tag} &aGracz %player% awansowal na %{lvl.nurek::%player%}% poziom nurka."
  203. else:
  204. send "{@tag} &aMusisz byc w pracy nurek!" to player
Advertisement
Add Comment
Please, Sign In to add comment