niccosaint

ThirstBar 1.4 (Skript)

Nov 30th, 2014
540
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.50 KB | None | 0 0
  1. # =================
  2. # ThirstBar by niccosaint
  3. # Zakazane:
  4. # - Usuwanie tresci o autorze!
  5. # - Udostepnaniu skryptu innym!
  6. # - Podszywanie sie pod autora!
  7. # - Uzywanie kodu skryptu w swoich skryptach!
  8. # - Zarabianie na skrypcie!
  9. # Dozwolone:
  10. # - Zmienianie configu na wlasne potrzeby
  11. # - Dodawanie wlasnego kodu
  12. # =================
  13. # Konfiguracja
  14. options:
  15. # Na jakich swiatach skrypt bedzie dzialal ?
  16. world: "2033"
  17. world2: "Survival"
  18. # Co ile sekund bedzie schodzilo pragnienie ?
  19. cd: 30
  20. # Koniec konfigu
  21. # NIE DOTYKAC! xD
  22. on load:
  23. set {nccore.working.thirst} to true
  24. on unload:
  25. set {nccore.working.thirst} to false
  26. on join:
  27. if {nccore.thirst.%player%} is not set:
  28. set {nccore.thirst.%player%} to 100
  29. every {@cd} seconds:
  30. loop all players in {@world} or {@world2}:
  31. if gamemode of loop-player is not creative:
  32. if {nccore.thirst.%loop-player%} > 100:
  33. if {nccore.thirst.%loop-player%} > 149:
  34. add -2 to {nccore.thirst.%loop-player%}
  35. loop 10 times:
  36. add 100 to {nccore.blood.%loop-player%}
  37. wait 1 second
  38. else:
  39. add -2 to {nccore.thirst.%loop-player%}
  40. loop 3 times:
  41. add 100 to {nccore.blood.%loop-player%}
  42. wait 1 second
  43. if {nccore.thirst.%loop-player%} < 5:
  44. send "&3Wody..." to loop-player
  45. if {nccore.thirst.%loop-player%} > 1:
  46. add -1 to {nccore.thirst.%loop-player%}
  47. else:
  48. kill loop-player
  49. set {nccore.thirst.%loop-player%} to 100
  50. on drink:
  51. if player is in {@world} or {@world2}:
  52. if player's tool is water bottle named "&7Czysta woda":
  53. add 10 to {nccore.thirst.%player%}
  54. else if player's tool is water bottle:
  55. add 5 to {nccore.thirst.%player%}
  56. on eat:
  57. if player is in {@world} or {@world2}:
  58. if player's tool is apple or melon:
  59. add 2 to {nccore.thirst.%player%}
  60. if player's tool is soup:
  61. add 3 to {nccore.thirst.%player%}
  62. if player's tool is carrot or potato:
  63. add 1 to {nccore.thirst.%player%}
  64. if player's tool is golden apple or enchanted golden apple:
  65. add 10 to {nccore.thirst.%player%}
  66.  
  67. command /water [<text>]:
  68. permission: water.admin
  69. permission message: &4Brak dostepu
  70. trigger:
  71. if arg 1 is not set:
  72. send "&6&m----------&6< &4ThirstBar by niccosaint &6>&6&m----------" to player
  73. send "&b/water get &a- Otrzymaj butelke czystej wody" to player
  74. send "&b/water refill &a- Zaspokoj pragnienie" to player
  75. send "&6&m------------------------------------" to player
  76. if arg 1 is "get":
  77. give 1 water bottle named "&7Czysta woda" to player
  78. if arg 1 is "refill":
  79. set {nccore.thirst.%player%} to 100
  80. command /thirst [<player>] [<number>]:
  81. trigger:
  82. if arg 1 is not set:
  83. if {nccore.thirst.%player%} > 5:
  84. if {nccore.thirst.%player%} > 10:
  85. if {nccore.thirst.%player%} > 15:
  86. if {nccore.thirst.%player%} > 20:
  87. if {nccore.thirst.%player%} > 25:
  88. if {nccore.thirst.%player%} > 30:
  89. if {nccore.thirst.%player%} > 35:
  90. if {nccore.thirst.%player%} > 40:
  91. if {nccore.thirst.%player%} > 45:
  92. if {nccore.thirst.%player%} > 50:
  93. if {nccore.thirst.%player%} > 55:
  94. if {nccore.thirst.%player%} > 60:
  95. if {nccore.thirst.%player%} > 65:
  96. if {nccore.thirst.%player%} > 70:
  97. if {nccore.thirst.%player%} > 75:
  98. if {nccore.thirst.%player%} > 80:
  99. if {nccore.thirst.%player%} > 85:
  100. if {nccore.thirst.%player%} > 90:
  101. if {nccore.thirst.%player%} > 95:
  102. if {nccore.thirst.%player%} >= 100:
  103. if {nccore.thirst.%player%} > 100:
  104. send "&3PRAGNIENIE / THIRST ( %sender% ) &a[%{nccore.thirst.%player%}%]"
  105. send "&b|||||||&e&lFULL&b|||||||||&a+"
  106. else:
  107. send "&3PRAGNIENIE / THIRST ( %sender% ) &a[%{nccore.thirst.%player%}%]"
  108. send "&b|||||||&e&lFULL&b|||||||||"
  109. else:
  110. send "&3PRAGNIENIE / THIRST ( %sender% ) &a[%{nccore.thirst.%player%}%]"
  111. send "&b|||||||||||||||||||&0|"
  112. else:
  113. send "&3PRAGNIENIE / THIRST ( %sender% ) &a[%{nccore.thirst.%player%}%]"
  114. send "&b||||||||||||||||||&0||"
  115. else:
  116. send "&3PRAGNIENIE / THIRST ( %sender% ) &a[%{nccore.thirst.%player%}%]"
  117. send "&b|||||||||||||||||&0|||"
  118. else:
  119. send "&3PRAGNIENIE / THIRST ( %sender% ) &a[%{nccore.thirst.%player%}%]"
  120. send "&b||||||||||||||||&0||||"
  121. else:
  122. send "&3PRAGNIENIE / THIRST ( %sender% ) &a[%{nccore.thirst.%player%}%]"
  123. send "&b|||||||||||||||&0|||||"
  124. else:
  125. send "&3PRAGNIENIE / THIRST ( %sender% ) &a[%{nccore.thirst.%player%}%]"
  126. send "&3||||||||||||||&0||||||"
  127. else:
  128. send "&3PRAGNIENIE / THIRST ( %sender% ) &a[%{nccore.thirst.%player%}%]"
  129. send "&3|||||||||||||&0|||||||"
  130. else:
  131. send "&3PRAGNIENIE / THIRST ( %sender% ) &a[%{nccore.thirst.%player%}%]"
  132. send "&3||||||||||||&0||||||||"
  133. else:
  134. send "&3PRAGNIENIE / THIRST ( %sender% ) &a[%{nccore.thirst.%player%}%]"
  135. send "&3|||||||||||&0|||||||||"
  136. else:
  137. send "&3PRAGNIENIE / THIRST ( %sender% ) &a[%{nccore.thirst.%player%}%]"
  138. send "&3|||||||||||&0|||||||||"
  139. else:
  140. send "&3PRAGNIENIE / THIRST ( %sender% ) &a[%{nccore.thirst.%player%}%]"
  141. send "&3||||||||||&0||||||||||"
  142. else:
  143. send "&3PRAGNIENIE / THIRST ( %sender% ) &a[%{nccore.thirst.%player%}%]"
  144. send "&3|||||||||&0|||||||||||"
  145. else:
  146. send "&3PRAGNIENIE / THIRST ( %sender% ) &a[%{nccore.thirst.%player%}%]"
  147. send "&3||||||||&0||||||||||||"
  148. else:
  149. send "&3PRAGNIENIE / THIRST ( %sender% ) &a[%{nccore.thirst.%player%}%]"
  150. send "&3|||||||&0|||||||||||||"
  151. else:
  152. send "&3PRAGNIENIE / THIRST ( %sender% ) &a[%{nccore.thirst.%player%}%]"
  153. send "&3||||||&0||||||||||||||"
  154. else:
  155. send "&3PRAGNIENIE / THIRST ( %sender% ) &a[%{nccore.thirst.%player%}%]"
  156. send "&3|||||&0|||||||||||||||"
  157. else:
  158. send "&3PRAGNIENIE / THIRST ( %sender% ) &a[%{nccore.thirst.%player%}%]"
  159. send "&1||||&0||||||||||||||||"
  160. else:
  161. send "&3PRAGNIENIE / THIRST ( %sender% ) &a[%{nccore.thirst.%player%}%]"
  162. send "&1|||&0||||||||||||&4ALERT"
  163. else:
  164. send "&3PRAGNIENIE / THIRST ( %sender% ) &a[%{nccore.thirst.%player%}%]"
  165. send "&1||&0|||||||||||||&4ALERT"
  166. else:
  167. send "&3PRAGNIENIE / THIRST ( %sender% ) &a[%{nccore.thirst.%player%}%]"
  168. send "&1|&0||||||||||||||&4ALERT"
  169. if arg 1 is set:
  170. if {nccore.thirst.%arg 1%} > 5:
  171. if {nccore.thirst.%arg 1%} > 10:
  172. if {nccore.thirst.%arg 1%} > 15:
  173. if {nccore.thirst.%arg 1%} > 20:
  174. if {nccore.thirst.%arg 1%} > 25:
  175. if {nccore.thirst.%arg 1%} > 30:
  176. if {nccore.thirst.%arg 1%} > 35:
  177. if {nccore.thirst.%arg 1%} > 40:
  178. if {nccore.thirst.%arg 1%} > 45:
  179. if {nccore.thirst.%arg 1%} > 50:
  180. if {nccore.thirst.%arg 1%} > 55:
  181. if {nccore.thirst.%arg 1%} > 60:
  182. if {nccore.thirst.%arg 1%} > 65:
  183. if {nccore.thirst.%arg 1%} > 70:
  184. if {nccore.thirst.%arg 1%} > 75:
  185. if {nccore.thirst.%arg 1%} > 80:
  186. if {nccore.thirst.%arg 1%} > 85:
  187. if {nccore.thirst.%arg 1%} > 90:
  188. if {nccore.thirst.%arg 1%} > 95:
  189. if {nccore.thirst.%arg 1%} >= 100:
  190. if {nccore.thirst.%player%} > 100:
  191. send "&3PRAGNIENIE / THIRST ( %sender% ) &a[%{nccore.thirst.%player%}%]"
  192. send "&b|||||||&e&lFULL&b|||||||||&a+"
  193. else:
  194. send "&3PRAGNIENIE / THIRST ( %arg 1% ) &a[%{nccore.thirst.%arg 1%}%]"
  195. send "&b|||||||&e&lFULL&2|||||||||"
  196. else:
  197. send "&3PRAGNIENIE / THIRST ( %arg 1% ) &a[%{nccore.thirst.%arg 1%}%]"
  198. send "&b|||||||||||||||||||&0|"
  199. else:
  200. send "&3PRAGNIENIE / THIRST ( %arg 1% ) &a[%{nccore.thirst.%arg 1%}%]"
  201. send "&b||||||||||||||||||&0||"
  202. else:
  203. send "&3PRAGNIENIE / THIRST ( %arg 1% ) &a[%{nccore.thirst.%arg 1%}%]"
  204. send "&b|||||||||||||||||&0|||"
  205. else:
  206. send "&3PRAGNIENIE / THIRST ( %arg 1% ) &a[%{nccore.thirst.%arg 1%}%]"
  207. send "&b||||||||||||||||&0||||"
  208. else:
  209. send "&3PRAGNIENIE / THIRST ( %arg 1% ) &a[%{nccore.thirst.%arg 1%}%]"
  210. send "&b|||||||||||||||&0|||||"
  211. else:
  212. send "&3PRAGNIENIE / THIRST ( %arg 1% ) &a[%{nccore.thirst.%arg 1%}%]"
  213. send "&3||||||||||||||&0||||||"
  214. else:
  215. send "&3PRAGNIENIE / THIRST ( %arg 1% ) &a[%{nccore.thirst.%arg 1%}%]"
  216. send "&3|||||||||||||&0|||||||"
  217. else:
  218. send "&3PRAGNIENIE / THIRST ( %arg 1% ) &a[%{nccore.thirst.%arg 1%}%]"
  219. send "&3||||||||||||&0||||||||"
  220. else:
  221. send "&3PRAGNIENIE / THIRST ( %arg 1% ) &a[%{nccore.thirst.%arg 1%}%]"
  222. send "&3|||||||||||&0|||||||||"
  223. else:
  224. send "&3PRAGNIENIE / THIRST ( %arg 1% ) &a[%{nccore.thirst.%arg 1%}%]"
  225. send "&3|||||||||||&0|||||||||"
  226. else:
  227. send "&3PRAGNIENIE / THIRST ( %arg 1% ) &a[%{nccore.thirst.%arg 1%}%]"
  228. send "&3||||||||||&0||||||||||"
  229. else:
  230. send "&3PRAGNIENIE / THIRST ( %arg 1% ) &a[%{nccore.thirst.%arg 1%}%]"
  231. send "&3|||||||||&0|||||||||||"
  232. else:
  233. send "&3PRAGNIENIE / THIRST ( %arg 1% ) &a[%{nccore.thirst.%arg 1%}%]"
  234. send "&3||||||||&0||||||||||||"
  235. else:
  236. send "&3PRAGNIENIE / THIRST ( %arg 1% ) &a[%{nccore.thirst.%arg 1%}%]"
  237. send "&3|||||||&0|||||||||||||"
  238. else:
  239. send "&3PRAGNIENIE / THIRST ( %arg 1% ) &a[%{nccore.thirst.%arg 1%}%]"
  240. send "&3||||||&0||||||||||||||"
  241. else:
  242. send "&3PRAGNIENIE / THIRST ( %arg 1% ) &a[%{nccore.thirst.%arg 1%}%]"
  243. send "&3|||||&0|||||||||||||||"
  244. else:
  245. send "&3PRAGNIENIE / THIRST ( %arg 1% ) &a[%{nccore.thirst.%arg 1%}%]"
  246. send "&1||||&0||||||||||||||||"
  247. else:
  248. send "&3PRAGNIENIE / THIRST ( %arg 1% ) &a[%{nccore.thirst.%arg 1%}%]"
  249. send "&1|||&0||||||||||||&4ALERT"
  250. else:
  251. send "&3PRAGNIENIE / THIRST ( %arg 1% ) &a[%{nccore.thirst.%arg 1%}%]"
  252. send "&1||&0|||||||||||||&4ALERT"
  253. else:
  254. send "&3PRAGNIENIE / THIRST ( %arg 1% ) &a[%{nccore.thirst.%arg 1%}%]"
  255. send "&1|&0||||||||||||||&4ALERT"
  256. if arg 2 is set:
  257. if sender has permission "thirst.admin":
  258. set {nccore.thirst.%arg 1%} to arg 2
  259. send "&2Ustawiono poziom pragnienia %arg 1% do %arg 2%"
  260. else:
  261. send "&4Brak dostepu"
Advertisement
Add Comment
Please, Sign In to add comment