Slupik98

MyDesire

Jun 27th, 2014
470
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.10 KB | None | 0 0
  1. #╔══════════════════════════════════════════════════════════════════════════════╗
  2. #║ _______ ______ _______ _______ _________ _______ _______ ║
  3. #║ ( )|\ /| ( __ \ ( ____ \( ____ \\__ __/( ____ )( ____ \ ║
  4. #║ | () () |( \ / ) | ( \ )| ( \/| ( \/ ) ( | ( )|| ( \/ ║
  5. #║ | || || | \ (_) / | | ) || (__ | (_____ | | | (____)|| (__ ║
  6. #║ | |(_)| | \ / | | | || __) (_____ ) | | | __)| __) ║
  7. #║ | | | | ) ( | | ) || ( ) | | | | (\ ( | ( ║
  8. #║ | ) ( | | | | (__/ )| (____/\/\____) |___) (___| ) \ \__| (____/\ ║
  9. #║ |/ \| \_/ (______/ (_______/\_______)\_______/|/ \__/(_______/ ║
  10. #╚══════════════════════════════════════════════════════════════════════════════╝
  11. #
  12. #╔═══════════════════════════════════════╗
  13. #║ Podstawowe informacje ║
  14. #║Nazwa skryptu: ║
  15. #║ ► MyDesire ║
  16. #║Autor: ║
  17. #║ ► Slupik98 ║
  18. #║Wersja: ║
  19. #║ ► Beta v1.0 ║
  20. #╠═══════════════════════════════════════╣
  21. #║ Licencja ║
  22. #║ ► Zakaz rozpowszechniania skryptu ║
  23. #║ bez zgody autora ║
  24. #║ ► Zakaz używania cześci skryptu ║
  25. #║ bez zgody autora ║
  26. #║ ► Zakaz czerpania bezpośrednich i ║
  27. #║ pośrednich korzyści ║
  28. #║ majątkowych z tego skryptu ║
  29. #║ ► Zakaz zmiany licencji ║
  30. #║ ► Skrypt można modyfikować tylko ║
  31. #║ na własy użytek ║
  32. #╚═══════════════════════════════════════╝
  33. #
  34. variables:
  35. {MyDesire.desire.%player%} = 3
  36. #
  37. Options:
  38. right.cooldwon: 10#Czas między użyciami supermocy aktywowanej prawym przyciskiem myszy w sekundach
  39. left.cooldwon: 10#Czas między użyciami supermocy aktywowanej lewym przyciskiem myszy w sekundach
  40. #╔═══════════════════════════════════════╗
  41. #║ ║
  42. #║ Pustynne zombie ║
  43. #║ ║
  44. #╚═══════════════════════════════════════╝
  45. on spawn of zombie:
  46. if biome at event-location is Desert:
  47. chance of 30%:
  48. set helmet of the event-entity to a leather helmet of Unbreaking 2
  49. dye event-entity's helmet yellow
  50. set chestplate of the event-entity to a leather chestplate
  51. dye event-entity's chestplate yellow
  52. set leggings of the event-entity to a leather leggings
  53. dye event-entity's leggings yellow
  54. set boots of the event-entity to a leather boots
  55. dye event-entity's boots yellow
  56. set the event-entity's display name to "&e&nPustynne Zombie &6[lvl &41&6]"
  57. stop
  58. chance of 20%:
  59. set helmet of the event-entity to a leather helmet of Unbreaking 2
  60. dye event-entity's helmet yellow
  61. set chestplate of the event-entity to a leather chestplate
  62. dye event-entity's chestplate yellow
  63. set leggings of the event-entity to a leather leggings
  64. dye event-entity's leggings yellow
  65. set boots of the event-entity to a leather boots
  66. dye event-entity's boots yellow
  67. set the event-entity's display name to "&e&nPustynne Zombie &6[lvl &42&6]"
  68.  
  69. set the event-entity's max health to 25
  70. heal last spawned entity
  71. stop
  72. chance of 10%:
  73. set helmet of the event-entity to a leather helmet of Unbreaking 2
  74. dye event-entity's helmet yellow
  75. set chestplate of the event-entity to a leather chestplate
  76. dye event-entity's chestplate yellow
  77. set leggings of the event-entity to a leather leggings
  78. dye event-entity's leggings yellow
  79. set boots of the event-entity to a leather boots
  80. dye event-entity's boots yellow
  81. set the event-entity's display name to "&e&nPustynne Zombie &6[lvl &43&6]"
  82.  
  83. set the event-entity's max health to 30
  84. heal last spawned entity
  85. stop
  86. chance of 100%:
  87. set helmet of the event-entity to a leather helmet of Unbreaking 2
  88. dye event-entity's helmet yellow
  89. set chestplate of the event-entity to a leather chestplate
  90. dye event-entity's chestplate yellow
  91. set leggings of the event-entity to a leather leggings
  92. dye event-entity's leggings yellow
  93. set boots of the event-entity to a leather boots
  94. dye event-entity's boots yellow
  95. set the event-entity's display name to "&e&nPustynne Zombie &6[lvl &40&6]"
  96. stop
  97. #
  98. #╔═══════════════════════════════════════╗
  99. #║ ║
  100. #║ Pustynny szkielet ║
  101. #║ ║
  102. #╚═══════════════════════════════════════╝
  103. on spawn of skeleton:
  104. if biome at event-location is Desert:
  105. chance of 30%:
  106. set helmet of the event-entity to a leather helmet of Unbreaking 2
  107. dye event-entity's helmet yellow
  108. set chestplate of the event-entity to a leather chestplate
  109. dye event-entity's chestplate yellow
  110. set leggings of the event-entity to a leather leggings
  111. dye event-entity's leggings yellow
  112. set boots of the event-entity to a leather boots
  113. dye event-entity's boots yellow
  114. set the event-entity's display name to "&e&nPustynny Szkielet &6[lvl &41&6]"
  115. stop
  116. chance of 20%:
  117. set helmet of the event-entity to a leather helmet of Unbreaking 2
  118. dye event-entity's helmet yellow
  119. set chestplate of the event-entity to a leather chestplate
  120. dye event-entity's chestplate yellow
  121. set leggings of the event-entity to a leather leggings
  122. dye event-entity's leggings yellow
  123. set boots of the event-entity to a leather boots
  124. dye event-entity's boots yellow
  125. set the event-entity's display name to "&e&nPustynny Szkielet &6[lvl &42&6]"
  126. #
  127. set the event-entity's max health to 25
  128. heal last spawned entity
  129. stop
  130. chance of 10%:
  131. set helmet of the event-entity to a leather helmet of Unbreaking 2
  132. dye event-entity's helmet yellow
  133. set chestplate of the event-entity to a leather chestplate
  134. dye event-entity's chestplate yellow
  135. set leggings of the event-entity to a leather leggings
  136. dye event-entity's leggings yellow
  137. set boots of the event-entity to a leather boots
  138. dye event-entity's boots yellow
  139. set the event-entity's display name to "&e&nPustynny Szkielet &6[lvl &43&6]"
  140. #
  141. set the event-entity's max health to 30
  142. heal last spawned entity
  143. stop
  144. chance of 100%:
  145. set helmet of the event-entity to a leather helmet of Unbreaking 2
  146. dye event-entity's helmet yellow
  147. set chestplate of the event-entity to a leather chestplate
  148. dye event-entity's chestplate yellow
  149. set leggings of the event-entity to a leather leggings
  150. dye event-entity's leggings yellow
  151. set boots of the event-entity to a leather boots
  152. dye event-entity's boots yellow
  153. set the event-entity's display name to "&e&nPustynny Szkielet &6[lvl &403&6]"
  154. stop
  155. #
  156. #╔═══════════════════════════════════════╗
  157. #║ ║
  158. #║ Mumie ║
  159. #║ ║
  160. #╚═══════════════════════════════════════╝
  161. on death of player:
  162. if biome at victim is desert or Desert Hills:
  163. chance of 90%:
  164. spawn 1 zombie at location of victim
  165. set helmet of the last spawned entity to a leather helmet of Unbreaking 2
  166. dye last spawned entity's helmet yellow
  167. set chestplate of the last spawned entity to a leather chestplate
  168. dye last spawned entity's chestplate yellow
  169. set leggings of the last spawned entity to a leather leggings
  170. dye last spawned entity's leggings yellow
  171. set boots of the last spawned entity to a leather boots
  172. dye last spawned entity's boots yellow
  173. set tool of the last spawned entity to tool of victim
  174. set the last spawned entity's display name to "&e&nMumia gracza %victim%"
  175. apply fire resistance 2 to the last spawned entity for 100 days
  176. apply speed 2 to the last spawned entity for 100 days
  177. stop
  178. chance of 100%:
  179. spawn 1 zombie at location of victim
  180. set helmet of the last spawned entity to a leather helmet of Unbreaking 2
  181. dye last spawned entity's helmet yellow
  182. set chestplate of the last spawned entity to a leather chestplate
  183. dye last spawned entity's chestplate yellow
  184. set leggings of the last spawned entity to a leather leggings
  185. dye last spawned entity's leggings yellow
  186. set boots of the last spawned entity to a leather boots
  187. dye last spawned entity's boots yellow
  188. set tool of the last spawned entity to Blaze Rod
  189. set the last spawned entity's display name to "&e&nMumia faraona %victim%"
  190. apply fire resistance 2 to the last spawned entity for 100 days
  191. apply speed 2 to the last spawned entity for 100 days
  192. set {_loc} to location of the last spawned entity
  193. set the last spawned entity's max health to 50
  194. heal last spawned entity
  195. stop
  196. on death of zombie:
  197. if name of victim contains "&e&nMumia faraona":
  198. add Blaze Rod with name "&6Pałka faraona" to attacker's inventory
  199. on damage of player:
  200. if attacker is zombie:
  201. if name of attacker contains "&e&nMumia faraona" or "&e&nMumia gracza":
  202. set {_is} to false
  203. loop all items in victim's inventory:
  204. if loop-item is Blaze Rod with name "&6Pałka faraona":
  205. set {_is} to true
  206. if {_is} is true:
  207. if {mumia.info.%victim%} is not set:
  208. set {mumia.info.%victim%} to false
  209. if {mumia.licznik.info.%victim%} is not set:
  210. set {mumia.licznik.info.%victim%} to 0
  211. if {mumia.licznik.info.%victim%} is more than or equal to 500:
  212. set {mumia.info.%victim%} to false
  213. set {mumia.licznik.info.%victim%} to 0
  214. else:
  215. add 1 to {mumia.licznik.info.%victim%}
  216. if {mumia.info.%victim%} is false:
  217. send "&6Te Zombie nic nie mogą Tobie zrobić, ponieważ strzeże Ciebie moc faraona!" to victim
  218. set {mumia.info.%victim%} to true
  219. cancel event
  220. on quit:
  221. if {mumia.info.%player%} is set:
  222. delete {mumia.info.%player%}
  223. if {mumia.licznik.info.%player%} is set:
  224. delete {mumia.licznik.info.%player%}
  225. if {PowerOfFaro.cooldown.left.%player%} is set:
  226. delete {PowerOfFaro.cooldown.left.%player%}
  227. if {PowerOfFaro.cooldown.right.%player%} is set:
  228. delete {PowerOfFaro.cooldown.right.%player%}
  229. #
  230. #╔═══════════════════════════════════════╗
  231. #║ ║
  232. #║ Super Moce faraona ║
  233. #║ ║
  234. #╚═══════════════════════════════════════╝
  235. on rightclick with blaze rod:
  236. if name of player's tool is "&6Pałka faraona":
  237. if {PowerOfFaro.cooldown.right.%player%} is true:
  238. if player have 1 lava bucket:
  239. if target block is not air:
  240. remove 1 lava bucket from player's inventory
  241. set {_x} to block 10 blocks above targeted block
  242. spawn falling Lava at {_x}
  243. #loop entities in radius 5 around the player:
  244. # loop-entity is falling block
  245. # push the loop-entity above player with speed 2
  246. # push the loop-entity behind with speed 2
  247. loop all players in radius 20 around player:
  248. send "&4Uważaj by Faraon czasem nie rzucił w Ciebie lawą!" to loop-player
  249. set {PowerOfFaro.cooldown.right.%player%} to false
  250. wait {@right.cooldwon} seconds
  251. set {PowerOfFaro.cooldown.right.%player%} to true
  252. else:
  253. send "&4Wskazany blok musi nie być powietrzem!"
  254. else:
  255. send "Nie masz ani jednego wiaderka lawy, więc nie możesz użyć tej supermocy!"
  256. else:
  257. send "Między użyciami supermocy musi minąć {@right.cooldwon} sekund"
  258. on leftclick with blaze rod:
  259. if name of player's tool is "&6Pałka faraona":
  260. if {PowerOfFaro.cooldown.left.%player%} is true:
  261. if player have 5 coal:
  262. remove 5 coal from player's inventory
  263. apply fire resistance 2 to the player for 1 minute
  264. loop all blocks in radius 5 around player:
  265. if loop-block is air:
  266. set loop-block to fire
  267. loop all players in radius 20 around player:
  268. send "&4Faraon zapłonął gniewem!" to loop-player
  269. set {PowerOfFaro.cooldown.left.%player%} to false
  270. wait {@left.cooldwon} seconds
  271. set {PowerOfFaro.cooldown.left.%player%} to true
  272. else:
  273. send "Nie masz 5 sztuk węgla kamiennego by użyć tej supermocy!"
  274. else:
  275. send "Między użyciami supermocy musi minąć {@left.cooldwon} sekund"
  276. on walking on water:
  277. if player's tool is blaze rod with name "&6Pałka faraona":
  278. set event-block to Sandstone
  279. wait 1 second
  280. set event-block to water
  281. on walking on lava:
  282. if player's tool is blaze rod with name "&6Pałka faraona":
  283. remove fire resistance from the player
  284. apply fire resistance 2 to the player for 1 minute
  285. set event-block to Sandstone
  286. wait 1 second
  287. set event-block to lava
  288. #
  289. #╔═══════════════════════════════════════╗
  290. #║ ║
  291. #║ Ustawnia przy dołączeniu ║
  292. #║ ║
  293. #╚═══════════════════════════════════════╝
  294. on join:
  295. set {PowerOfFaro.cooldown.left.%player%} to true
  296. set {PowerOfFaro.cooldown.right.%player%} to true
  297. set {mumia.info.%player%} to false
  298. set {mumia.licznik.info.%player%} to 0
  299. set {_size} to ({MyDesire.desire.%player%}/3)*100
  300. delete boss bar of player
  301. create boss bar with text "&3Stan nawodnienia to %{MyDesire.desire.%player%}%l/3l" and volume {_size} to player
  302. #
  303. #╔═══════════════════════════════════════╗
  304. #║ ║
  305. #║ Pragnienie ║
  306. #║ ║
  307. #╚═══════════════════════════════════════╝
  308. every 2 minutes:
  309. loop all players:
  310. if loop-player do not have permissions "mydesire.antydesire" or "mydesire.*":
  311. if loop-player is alive:
  312. set {_ok} to false
  313. if biome at loop-player is desert or Desert Hills or Savanna or Mesa or Hell:
  314. set {_ok} to true
  315. remove 0.5 from {MyDesire.desire.%loop-player%}
  316. if biome at loop-player is Jungle or Jungle Edge or Roofed Forest:
  317. set {_ok} to true
  318. remove 0.4 from {MyDesire.desire.%loop-player%}
  319. if biome at loop-player is Frozen River or Ice Plains or Ice Plains Spikes or Cold Beach or Cold Taiga:
  320. set {_ok} to true
  321. remove 0.1 from {MyDesire.desire.%loop-player%}
  322. if {_ok} is false:
  323. remove 0.2 from {MyDesire.desire.%loop-player%}
  324. if {MyDesire.desire.%loop-player%} is less than or equal to 0:
  325. send "&4Umierasz z pragnienia!" to loop-player
  326. loop 10000 times:
  327. if loop-player is alive:
  328. damage the loop-player by 1
  329. wait 1 second
  330. else:
  331. set {MyDesire.desire.%loop-player%} to 2
  332. set {_size} to ({MyDesire.desire.%loop-player%}/3)*100
  333. delete boss bar of loop-player
  334. create boss bar with text "&3Stan nawodnienia to %{MyDesire.desire.%loop-player%}%l/3l" and volume {_size} to loop-player
  335. #
  336. #╔═══════════════════════════════════════╗
  337. #║ ║
  338. #║ Uzupełnianie poziomu płynów ║
  339. #║ ║
  340. #╚═══════════════════════════════════════╝
  341. on player drink of water bottle:
  342. if player do not have permissions "mydesire.antydesire" or "mydesire.*":
  343. if {MyDesire.desire.%player%} is less than or equal to 3:
  344. add 0.2 to {MyDesire.desire.%player%}
  345. else:
  346. send "&3Jesteś już w pełni nawodniony"
  347. if {MyDesire.desire.%player%} is more than or equal to 3:
  348. set {MyDesire.desire.%player%} to 3
  349. send "&3Za dużo się napiłeś, ale już został przywrócony optymalny poziom nawodnienia"
  350. set {_size} to ({MyDesire.desire.%player%}/3)*100
  351. delete boss bar of player
  352. create boss bar with text "&3Stan nawodnienia to %{MyDesire.desire.%player%}%l/3l" and volume {_size} to player
  353. on rightclick with water Bucket on air:
  354. if player do not have permissions "mydesire.antydesire" or "mydesire.*":
  355. if {MyDesire.desire.%player%} is less than or equal to 3:
  356. add 0.8 to {MyDesire.desire.%player%}
  357. remove water bucket from player's inventory
  358. add bucket to player's inventory
  359. else:
  360. send "&3Jesteś już w pełni nawodniony"
  361. if {MyDesire.desire.%player%} is more than or equal to 3:
  362. set {MyDesire.desire.%player%} to 3
  363. send "&3Za dużo się napiłeś, ale już został przywrócony optymalny poziom nawodnienia"
  364. set {_size} to ({MyDesire.desire.%player%}/3)*100
  365. delete boss bar of player
  366. create boss bar with text "&3Stan nawodnienia to %{MyDesire.desire.%player%}%l/3l" and volume {_size} to player
  367. on death of player:
  368. set {MyDesire.desire.%player%} to 2
  369. set {_size} to ({MyDesire.desire.%player%}/3)*100
  370. delete boss bar of player
  371. create boss bar with text "&3Stan nawodnienia to %{MyDesire.desire.%player%}%l/3l" and volume {_size} to player
  372. #
  373. #╔═══════════════════════════════════════╗
  374. #║ ║
  375. #║ Spadek nawodnienia przez konsumpkcję ║
  376. #║ ║
  377. #╚═══════════════════════════════════════╝
  378. #żeby strawić pokarm organizm wydziela kwas solny, a także używa procesu hydrolizy, co pochłania wodę
  379. on eat:
  380. if player do not have permissions "mydesire.antydesire" or "mydesire.*":
  381. remove 0.1 from {MyDesire.desire.%player%}
  382. if {MyDesire.desire.%player%} is less than or equal to 0:
  383. send "&4Umierasz z pragnienia!"
  384. set {_index} to 2
  385. loop {_index} times:
  386. if player is alive:
  387. add 1 to {_index}
  388. set {_attacker} to "Pragnienie"
  389. make {_attacker} damage player by 1
  390. wait 1 second
  391. else:
  392. exit loop
  393. set {_size} to ({MyDesire.desire.%player%}/3)*100
  394. delete boss bar of player
  395. create boss bar with text "&3Stan nawodnienia to %{MyDesire.desire.%player%}%l/3l" and volume {_size} to player
  396. #
  397. #╔═══════════════════════════════════════╗
  398. #║ ║
  399. #║ Zastępcza komenda na ║
  400. #║ sprawdzenie nawodnienia ║
  401. #╚═══════════════════════════════════════╝
  402. command /desire:
  403. aliases: nawodnienie
  404. trigger:
  405. send "&3Obecnie posiadasz w swoim organizmie %{MyDesire.desire.%player%}% litrów wody na maxymalne 3"
  406. set {_size} to ({MyDesire.desire.%player%}/3)*100
  407. delete boss bar of player
  408. create boss bar with text "&3Stan nawodnienia to %{MyDesire.desire.%player%}%l/3l" and volume {_size} to player
Advertisement
Add Comment
Please, Sign In to add comment