Advertisement
Guest User

Untitled

a guest
May 21st, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.73 KB | None | 0 0
  1. variables:
  2. {quest1a1::%player%} = 0
  3. {rudairon::%player%} = 0
  4. {rudagold::%player%} = 0
  5. {quest1a2::%player%} = 0
  6. {ckwiat::%player%} = 0
  7. {quest1a3::%player%} = 0
  8. {kamiennaprawy::%player%} = 0
  9. {emeraldgracza::%player%} = 0
  10.  
  11. on right click on entity:
  12. cancel event
  13. if name of the clicked entity is "Gornik1":
  14. If player have permission "quest.permisja":
  15. If {quest1a1::%player%} = 0:
  16. send "&eWykop dla mnie troche rudy zlota, bo potrzebuje jej troche do wybicia monet dla naszego wladcy, bede potrzebowal jej okolo 100" to player
  17. If {rudagold::%player%} is more than 99.8:
  18. remove 100 from {rudagold::%player%}
  19. set {quest1a1::%player%} to 1
  20. give 1 iron ingot named "&eSztabka Imperialna" to player
  21. send "&6Oto twoja nagroda" to player
  22. else:
  23. send "&ePotrzebujesz 100 rud zlota" to player
  24. If {quest1a1::%player%} = 1:
  25. send "&eWykop dla mnie troche rudy zlota, bo potrzebuje jej troche do wybicia monet dla naszego wladcy, bede potrzebowal jej okolo 300" to player
  26. If {rudagold::%player%} is more than 299.8:
  27. remove 300 from {rudagold::%player%}
  28. set {quest1a1::%player%} to 2
  29. give 2 iron ingot named "&eSztabka Imperialna" to player
  30. send "&6Oto twoja nagroda" to player
  31. else:
  32. send "&ePotrzebujesz 300 rud zlota" to player
  33. If {quest1a1::%player%} = 2:
  34. send "&eWykop dla mnie troche rudy zlota, bo potrzebuje jej troche do wybicia monet dla naszego wladcy, bede potrzebowal jej okolo 900" to player
  35. If {rudagold::%player%} is more than 899.8:
  36. remove 900 from {rudagold::%player%}
  37. set {quest1a1::%player%} to 3
  38. give 4 iron ingot named "&eSztabka Imperialna" to player
  39. send "&6Oto twoja nagroda" to player
  40. else:
  41. send "&ePotrzebujesz 900 rud zlota" to player
  42. If {quest1a1::%player%} = 3:
  43. send "&eWykop dla mnie troche rudy zlota, bo potrzebuje jej troche do wybicia monet dla naszego wladcy, bede potrzebowal jej okolo 2700" to player
  44. If {rudagold::%player%} is more than 2699.8:
  45. remove 2700 from {rudagold::%player%}
  46. set {quest1a1::%player%} to 4
  47. give 8 iron ingot named "&eSztabka Imperialna" to player
  48. send "&6Oto twoja nagroda" to player
  49. else:
  50. send "&ePotrzebujesz 8100 rud zlota" to player
  51. If {quest1a1::%player%} = 4:
  52. send "&eWykop dla mnie troche rudy zlota, bo potrzebuje jej troche do wybicia monet dla naszego wladcy, bede potrzebowal jej okolo 8100" to player
  53. If {rudagold::%player%} is more than 8099.8:
  54. remove 8100 from {rudagold::%player%}
  55. set {quest1a1::%player%} to 5
  56. give 16 iron ingot named "&eSztabka Imperialna" to player
  57. send "&6Oto twoja nagroda" to player
  58. else:
  59. send "&ePotrzebujesz 24300 rud zlota" to player
  60. If {quest1a1::%player%} = 5:
  61. send "&eWykop dla mnie troche rudy zlota, bo potrzebuje jej troche do wybicia monet dla naszego wladcy, bede potrzebowal jej okolo 24300" to player
  62. If {rudagold::%player%} is more than 24299.8:
  63. remove 24300 from {rudagold::%player%}
  64. set {quest1a1::%player%} to 6
  65. give 32 iron ingot named "&eSztabka Imperialna" to player
  66. send "&6Oto twoja nagroda" to player
  67. else:
  68. send "&ePotrzebujesz 24300 rud zlota" to player
  69. on mine of gold ore:
  70. If block under event-block is 22:0:
  71. cancel event
  72. add 0.2 to {rudagold::%player%}
  73. on right click on entity:
  74. cancel event
  75. if name of the clicked entity is "Gornik2":
  76. If player have permission "quest.permisja":
  77. If {quest1a2::%player%} = 0:
  78. send "&6Wykop dla mnie troche rudy zelaza, bo nasz wladca potrzebuje na zbrojenia, bedzie potrzebowal okolo 100 rud zelaza" to player
  79. If {rudairon::%player%} is more than 99.8:
  80. remove 100 from {rudairon::%player%}
  81. set {quest1a2::%player%} to 1
  82. give 1 iron ingot named "&eSztabka Imperialna" to player
  83. send "&6Oto twoja nagroda" to player
  84. else:
  85. send "&ePotrzebujesz 100 rud zelaza" to player
  86. If {quest1a2::%player%} = 1:
  87. send "&6Wykop dla mnie troche rudy zelaza, bo nasz wladca potrzebuje na zbrojenia, bedzie potrzebowal okolo 300 rud zelaza" to player
  88. If {rudairon::%player%} is more than 299.8:
  89. remove 300 from {rudairon::%player%}
  90. set {quest1a2::%player%} to 2
  91. give 2 iron ingot named "&eSztabka Imperialna" to player
  92. send "&6Oto twoja nagroda" to player
  93. else:
  94. send "&ePotrzebujesz 300 rud zelaza" to player
  95. If {quest1a2::%player%} = 2:
  96. send "&6Wykop dla mnie troche rudy zelaza, bo nasz wladca potrzebuje na zbrojenia, bedzie potrzebowal okolo 900 rud zelaza" to player
  97. If {rudairon::%player%} is more than 899.8:
  98. remove 900 from {rudairon::%player%}
  99. set {quest1a2::%player%} to 3
  100. give 4 iron ingot named "&eSztabka Imperialna" to player
  101. send "&6Oto twoja nagroda" to player
  102. else:
  103. send "&ePotrzebujesz 900 rud zelaza" to player
  104. If {quest1a2::%player%} = 3:
  105. send "&6Wykop dla mnie troche rudy zelaza, bo nasz wladca potrzebuje na zbrojenia, bedzie potrzebowal okolo 2700 rud zelaza" to player
  106. If {rudairon::%player%} is more than 2699.8:
  107. remove 2700 from {rudairon::%player%}
  108. set {quest1a2::%player%} to 4
  109. give 8 iron ingot named "&eSztabka Imperialna" to player
  110. send "&6Oto twoja nagroda" to player
  111. else:
  112. send "&ePotrzebujesz 2700 rud zelaza" to player
  113. If {quest1a2::%player%} = 4:
  114. send "&6Wykop dla mnie troche rudy zelaza, bo nasz wladca potrzebuje na zbrojenia, bedzie potrzebowal okolo 8100 rud zelaza" to player
  115. If {rudairon::%player%} is more than 8099.8:
  116. remove 8100 from {rudairon::%player%}
  117. set {quest1a2::%player%} to 5
  118. give 16 iron ingot named "&eSztabka Imperialna" to player
  119. send "&6Oto twoja nagroda" to player
  120. else:
  121. send "&ePotrzebujesz 8100 rud zelaza" to player
  122. If {quest1a2::%player%} = 5:
  123. send "&6Wykop dla mnie troche rudy zelaza, bo nasz wladca potrzebuje na zbrojenia, bedzie potrzebowal okolo 24300 rud zelaza" to player
  124. If {rudairon::%player%} is more than 24299.8:
  125. remove 24300 from {rudairon::%player%}
  126. set {quest1a2::%player%} to 6
  127. give 32 iron ingot named "&eSztabka Imperialna" to player
  128. send "&6Oto twoja nagroda" to player
  129. else:
  130. send "&ePotrzebujesz 24300 rud zelaza" to player
  131. on mine of iron ore:
  132. If block under event-block is 22:0:
  133. cancel event
  134. add 0.2 to {rudairon::%player%}
  135. on right click on entity:
  136. cancel event
  137. if name of the clicked entity is "&2KrolewskiKupiec":
  138. If player have permission "quest.permisja":
  139. If {rudairon::%player%} = 500:
  140. remove 500 from {rudairon::%player%}
  141. send "&6Oto twoja zaplata" to player
  142. give 1 gold ingot named "&eSztabka" to player
  143. else:
  144. send "&ePotrzebujesz 500 rud zelaza" to player
  145. on right click on entity:
  146. if name of the clicked entity is "KrolewskiKupiec2":
  147. If player have permission "quest.permisja":
  148. If {rudagold::%player%} = 500:
  149. remove 500 from {rudagold::%player%}
  150. send "&6Oto twoja zaplata" to player
  151. give 1 iron ingot named "&eSztabka" to player
  152. else:
  153. send "&ePotrzebujesz 500 rud zlota" to player
  154. command /przygodowa:
  155. trigger:
  156. send "&ePosiadasz: &4%{rudairon::%player%}% &eRud zelaza" to player
  157. send "&ePosiadasz: &4%{rudagold::%player%}% &eRud zlota" to player
  158. send "&ePosiadasz: &4%{ckwiat::%player%}% &eCzerwonych kwiatow" to player
  159. send "&ePosiadasz: &4%{kamiennaprawy::%player%}% &eKamieni naprawy" to player
  160. send "&ePosiadasz: &4%{emeraldgracza::%player%}% &eRud szmaragdow" to player
  161. on right click on 38:0:
  162. if block under event-block is 3:1:
  163. If player have permission "quest.permisja":
  164. send "&eTrwa zbieranie kwiatow" to player
  165. wait 5 second
  166. add 1 to {kwiat::%player%}
  167. send "&eZdobyto 1 czerwony kwiat" to player
  168. set event-block to air
  169. wait 120 second
  170. set event-block to 38:0
  171. on right click on entity:
  172. cancel event
  173. if name of the clicked entity is "Zielarz":
  174. If player have permission "quest.permisja":
  175. If {quest1a3::%player%} = 0:
  176. send "&ePotrzebuje troche lokalnych kwiatow, aby rozwinac lokalne zielarstwo, zdobadz 10 kwiatow, a ciebie wynagrodze" to player
  177. If {ckwiat::%player%} is more than 9:
  178. remove 10 from {ckwiat::%player%}
  179. send "&eOto twoja nagroda" to player
  180. set {quest1a3::%player%} to 1
  181. give 2 gold ingot named "&eSztabka" to player
  182. If {quest1a3::%player%} = 1:
  183. send "&ePotrzebuje troche lokalnych kwiatow, aby rozwinac lokalne zielarstwo, zdobadz 50 kwiatow, a ciebie wynagrodze" to player
  184. If {ckwiat::%player%} is more than 49:
  185. remove 50 from {ckwiat::%player%}
  186. send "&eOto twoja nagroda" to player
  187. set {quest1a3::%player%} to 2
  188. give 8 gold ingot named "&eSztabka" to player
  189. If {quest1a3::%player%} = 2:
  190. send "&ePotrzebuje troche lokalnych kwiatow, aby rozwinac lokalne zielarstwo, zdobadz 250 kwiatow, a ciebie wynagrodze" to player
  191. If {ckwiat::%player%} is more than 249:
  192. remove 250 from {ckwiat::%player%}
  193. send "&eOto twoja nagroda" to player
  194. set {quest1a3::%player%} to 3
  195. give 50 gold ingot named "&eSztabka" to player
  196. on right click on entity:
  197. cancel event
  198. if name of the clicked entity is "KowalThor":
  199. If player have permission "quest.permisja":
  200. If {kamiennaprawy::%player%} is more than 1:
  201. remove 1 from {kamiennaprawy::%player%}
  202. execute console command "/repair %player%"
  203. send "&eNaprawiono przedmiot" to player
  204. else:
  205. send "&ePotrzebujesz 1 kamienia naprawy" to player
  206. on right click on emerald ore:
  207. If block under event-block is obsidian:
  208. If player's tool is wooden pickaxe:
  209. cancel event
  210. set event-block to air
  211. apply slowness 2 to player for 10 seconds
  212. apply blindness 2 to player for 10 seconds
  213. wait 10 second
  214. send "&eWykopano rude" to player
  215. add 1 to {emeraldgracza::%player%}
  216. wait 300 second
  217. set event-block to emerald ore
  218. else:
  219. cancel event
  220. send "&ePotrzebujesz drewnianego kilofa" to player
  221. on right click on entity:
  222. cancel event
  223. if name of the clicked entity is "BratKowala":
  224. if {emeraldgracza::%player%} is more than 99:
  225. remove 100 from {emeraldgracza::%player%}
  226. add 1 to {kamiennaprawy::%player%}
  227. send "&eZamieniono 100 rud szmaragdow na 1 kamien naprawy" to player
  228. else:
  229. send "&ePotrzebujesz 100 rud szmaragdow" to player
  230. command /przygoda:
  231. trigger:
  232. If player have permission "quest.permisja":
  233. send "&eZa 60 sekund zostaniesz przeniesiony na mape przygodowa" to player
  234. wait 60 second
  235. execute console command "/warp przygoda %player%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement