ArtzifyHD

Skript Rewards

Jul 13th, 2017
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.30 KB | None | 0 0
  1. set {__r.%{__i}%} to random integer between 10 and 25
  2. {getDrop::idle::%{_p}%} = true
  3. format slot {__i} of {_p} with {__r.%{__i}%} of emerald named " " to be unstealable
  4.  
  5. set {__i} to 7
  6. loop 28 times:
  7. {getDrop::idle::%{_p}%} = true
  8. play raw sound "random.orb" at {_p} with pitch 1 volume 0.1
  9. wait 1 ticks
  10. {__i} is 0:
  11. set {__i} to 7
  12. remove 1 from {__i}
  13. set {__r.%{__i}%} to random integer between 10 and 25
  14. {getDrop::idle::%{_p}%} = true
  15. format slot {__i}+1 of {_p} with {__r.%{__i}%} of emerald named " " to be unstealable
  16. {getDrop::idle::%{_p}%} = true
  17. format slot 1 of {_p} with green stained glass pane named "{@werbe}" to be unstealable
  18. format slot 7 of {_p} with green stained glass pane named "{@werbe}" to be unstealable
  19.  
  20. set {__i} to 6
  21. loop 24 times:
  22. {getDrop::idle::%{_p}%} = true
  23. play raw sound "random.orb" at {_p} with pitch 1 volume 0.1
  24. wait 1 ticks
  25. {__i} is 1:
  26. set {__i} to 6
  27. remove 1 from {__i}
  28. set {__r.%{__i}%} to random integer between 10 and 25
  29. {getDrop::idle::%{_p}%} = true
  30. format slot {__i}+1 of {_p} with {__r.%{__i}%} of emerald named " " to be unstealable
  31. {getDrop::idle::%{_p}%} = true
  32. format slot 2 of {_p} with green stained glass pane named "{@werbe}" to be unstealable
  33. format slot 6 of {_p} with green stained glass pane named "{@werbe}" to be unstealable
  34.  
  35. set {__i} to 5
  36. loop 15 times:
  37. {getDrop::idle::%{_p}%} = true
  38. play raw sound "random.orb" at {_p} with pitch 1 volume 0.1
  39. wait 2 ticks
  40. {__i} is 2:
  41. set {__i} to 5
  42. remove 1 from {__i}
  43. set {__r.%{__i}%} to random integer between 10 and 25
  44. {getDrop::idle::%{_p}%} = true
  45. format slot {__i}+1 of {_p} with {__r.%{__i}%} of emerald named " " to be unstealable
  46. {getDrop::idle::%{_p}%} = true
  47. format slot 3 of {_p} with green stained glass pane named "{@werbe}" to be unstealable
  48. format slot 5 of {_p} with green stained glass pane named "{@werbe}" to be unstealable
  49.  
  50. set {__i} to 4
  51. loop 5 times:
  52. {getDrop::idle::%{_p}%} = true
  53. play raw sound "random.orb" at {_p} with pitch 1 volume 0.1
  54. wait 5 ticks
  55. {__i} is 3:
  56. set {__i} to 4
  57. remove 1 from {__i}
  58. set {__r.%{__i}%} to random integer between 10 and 25
  59. format slot {__i}+1 of {_p} with {__r.%{__i}%} of emerald named " " to be unstealable
  60.  
  61. wait 1 second
  62. {getDrop::idle::%{_p}%} = true
  63. play raw sound "random.levelup" at {_p} with pitch 1 volume 0.1
  64. set {__g} to {__r.%{__i}%}+1
  65. format slot {__i}+1 of {_p} with {__r.%{__i}%}+1 of emerald named "&e&lDEIN GEWINN: &a&l%{__r.%{__i}%}+1% Emeralds!" to run [getReward({_p}, "%{__g}%", "reward")]
  66. format slot {__i} of {_p} with glowing slimeball named "&aKlicke auf den Emerald, um Gewinn zu erhalten." to be unstealable
  67. format slot {__i}+2 of {_p} with glowing slimeball named "&aKlicke auf den Emerald, um Gewinn zu erhalten." to be unstealable
  68.  
  69. else:
  70. {_t2} is "reward"
  71. set {__g.%{_p}%} to {_t} parsed as an integer
  72. add {__g.%{_p}%} to {gems.%{_p}%}
  73. send "{@pr} &eFür den Täglichen Vote hast du &a&l%{__g.%{_p}%}% Gems &eerhalten!" to {_p}
  74. send "{@pr} &eDein Kontostand siehst du unter &a/gems &eoder auch im Scoreboard!" to {_p}
  75. close {_p}'s inventory
  76.  
  77. on inventory close:
  78. {getDrop::idle::%player%} = true:
  79. delete {getDrop::idle::%player%}
  80.  
  81. loop all items in player's inventory:
  82. loop-item is a emerald named " ":
  83. remove loop-item from player's inventory
  84. loop-item is a green stained glass pane named "{@werbe}":
  85. remove loop-item from player's inventory
  86. loop-item is a slimeball named "&aKlicke auf den Emerald, um Gewinn zu erhalten.":
  87. remove loop-item from player's inventory
  88.  
  89. function getReward1(p: player, t: text, t2: text):
  90. {_t} = "normal":
  91. difference between {getDrop1::normal::%{_p}%} and now is less than 30 days:
  92. send "{@pr} &eEs ist noch kein Monat vergangen!" to {_p}
  93. stop
  94. open chest with 1 row named "&3&lMonthly Reward" to {_p}
  95. set {getDrop1::normal::%{_p}%} to now
  96. set {getDrop1::idle::%{_p}%} to true
  97. wait 1 tick
  98. {getDrop1::idle::%{_p}%} = true
  99. format slot 0 of {_p} with green stained glass pane named "{@werbe}" to be unstealable
  100. format slot 8 of {_p} with green stained glass pane named "{@werbe}" to be unstealable
  101. set {__i1} to 0
  102. loop 8 times:
  103. {getDrop1::idle::%{_p}%} = true
  104. {__i1} is not more than 6:
  105. add 1 to {__i1}
  106. set {__r1.%{__i1}%} to random integer between 50 and 64
  107. {getDrop1::idle::%{_p}%} = true
  108. format slot {__i1} of {_p} with {__r1.%{__i1}%} of emerald named " " to be unstealable
  109.  
  110. set {__i1} to 7
  111. loop 28 times:
  112. {getDrop1::idle::%{_p}%} = true
  113. play raw sound "random.orb" at {_p} with pitch 1 volume 0.1
  114. wait 1 ticks
  115. {__i1} is 0:
  116. set {__i1} to 7
  117. remove 1 from {__i1}
  118. set {__r1.%{__i1}%} to random integer between 50 and 64
  119. {getDrop1::idle::%{_p}%} = true
  120. format slot {__i1}+1 of {_p} with {__r1.%{__i1}%} of emerald named " " to be unstealable
  121. {getDrop1::idle::%{_p}%} = true
  122. format slot 1 of {_p} with green stained glass pane named "{@werbe}" to be unstealable
  123. format slot 7 of {_p} with green stained glass pane named "{@werbe}" to be unstealable
  124.  
  125. set {__i1} to 6
  126. loop 24 times:
  127. {getDrop1::idle::%{_p}%} = true
  128. play raw sound "random.orb" at {_p} with pitch 1 volume 0.1
  129. wait 1 ticks
  130. {__i1} is 1:
  131. set {__i1} to 6
  132. remove 1 from {__i1}
  133. set {__r1.%{__i1}%} to random integer between 50 and 64
  134. {getDrop1::idle::%{_p}%} = true
  135. format slot {__i1}+1 of {_p} with {__r1.%{__i1}%} of emerald named " " to be unstealable
  136. {getDrop1::idle::%{_p}%} = true
  137. format slot 2 of {_p} with green stained glass pane named "{@werbe}" to be unstealable
  138. format slot 6 of {_p} with green stained glass pane named "{@werbe}" to be unstealable
  139.  
  140. set {__i1} to 5
  141. loop 15 times:
  142. {getDrop1::idle::%{_p}%} = true
  143. play raw sound "random.orb" at {_p} with pitch 1 volume 0.1
  144. wait 2 ticks
  145. {__i1} is 2:
  146. set {__i1} to 5
  147. remove 1 from {__i1}
  148. set {__r1.%{__i1}%} to random integer between 50 and 64
  149. {getDrop1::idle::%{_p}%} = true
  150. format slot {__i1}+1 of {_p} with {__r1.%{__i1}%} of emerald named " " to be unstealable
  151. {getDrop1::idle::%{_p}%} = true
  152. format slot 3 of {_p} with green stained glass pane named "{@werbe}" to be unstealable
  153. format slot 5 of {_p} with green stained glass pane named "{@werbe}" to be unstealable
  154.  
  155. set {__i1} to 4
  156. loop 5 times:
  157. {getDrop1::idle::%{_p}%} = true
  158. play raw sound "random.orb" at {_p} with pitch 1 volume 0.1
  159. wait 5 ticks
  160. {__i1} is 3:
  161. set {__i1} to 4
  162. remove 1 from {__i1}
  163. set {__r1.%{__i1}%} to random integer between 50 and 64
  164. format slot {__i1}+1 of {_p} with {__r1.%{__i1}%} of emerald named " " to be unstealable
  165.  
  166. wait 1 second
  167. {getDrop1::idle::%{_p}%} = true
  168. play raw sound "random.levelup" at {_p} with pitch 1 volume 0.1
  169. set {__g1} to {__r1.%{__i1}%}+1
  170. format slot {__i1}+1 of {_p} with {__r1.%{__i1}%}+1 of emerald named "&e&lDEIN GEWINN: &a&l%{__r1.%{__i1}%}+1% Emeralds!" to run [getReward1({_p}, "%{__g1}%", "reward")]
  171. format slot {__i1} of {_p} with glowing slimeball named "&aKlicke auf den Emerald, um Gewinn zu erhalten." to be unstealable
  172. format slot {__i1}+2 of {_p} with glowing slimeball named "&aKlicke auf den Emerald, um Gewinn zu erhalten." to be unstealable
  173.  
  174. else:
  175. {_t2} is "reward"
  176. set {__g1.%{_p}%} to {_t} parsed as an integer
  177. add {__g1.%{_p}%} to {gems.%{_p}%}
  178. send "{@pr} &eFür den Monatlichen Vote hast du &a&l%{__g1.%{_p}%}% Gems &eerhalten!" to {_p}
  179. send "{@pr} &eDein Kontostand siehst du unter &a/gems &eoder auch im Scoreboard!" to {_p}
  180. close {_p}'s inventory
  181.  
  182.  
  183. function getDailyMenu(p: player, t: text, i: integer):
  184. {_t} = "menu":
  185. open chest with 3 row named "&3&lTNTSpleef.minehut.me" to {_p}
  186. wait 1 tick
  187. loop 27 times:
  188. add 1 to {_i}
  189. {_i} is between 0 and 8:
  190. format slot {_i} of {_p} with black stained glass pane named " " to be unstealable
  191. {_i} is between 9 and 13:
  192. format slot {_i} of {_p} with white stained glass pane named " " to be unstealable
  193. {_i} is between 13 and 18:
  194. format slot {_i} of {_p} with white stained glass pane named " " to be unstealable
  195. {_i} is between 18 and 26:
  196. format slot {_i} of {_p} with black stained glass pane named " " to be unstealable
  197. difference between {getDrop::normal::%{_p}%} and now is less than 1 day:
  198. format slot 12 of {_p} with redstone block named "&cTäglicher Bonus" with lore "&cEs ist noch kein Tag vergangen!" to close
  199. else:
  200. format slot 12 of {_p} with glowing emerald named "&eTäglicher Bonus" with lore "&eKlicke, um den Täglichen Bonus zu erhalten" to run [getReward({_p}, "normal", "")]
  201. difference between {getDrop1::normal::%{_p}%} and now is less than 30 days:
  202. format slot 14 of {_p} with redstone block named "&cMonatlicher Bonus" with lore "&cEs ist noch kein Monat vergangen!" to close
  203. else:
  204. format slot 14 of {_p} with glowing emerald named "&aMonatlicher Bonus" with lore "&eKlicke, um den MonthlyReward zu Starten." to run [getReward1({_p}, "normal", "")]
  205. stop
  206.  
  207. on inventory close:
  208. {getDrop1::idle::%player%} = true:
  209. delete {getDrop1::idle::%player%}
  210.  
  211. loop all items in player's inventory:
  212. loop-item is a emerald named " ":
  213. remove loop-item from player's inventory
Advertisement
Add Comment
Please, Sign In to add comment