Advertisement
ShiZzeR1337

Untitled

Jun 21st, 2015
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.79 KB | None | 0 0
  1. on script load:
  2. message "Skrypt na efekty zostal - WLACZONY" to console
  3.  
  4.  
  5. command /efekty:
  6. executable by: players
  7. trigger:
  8. execute console command "gui 1 %player%"
  9.  
  10. command /gui [<integer>] [<player>]:
  11. executable by: console
  12. trigger:
  13. if arg 1 is 1:
  14. wait 2 ticks
  15. open chest with 1 rows named "&2Efekty (1/1)" to player-arg
  16. wait 2 ticks
  17. format slot 0 of player-arg with 1 of emerald of power 10 named "&aEmeraldy" with lore "&aPosiadasz &2%number of emeralds in player-arg's inventory% &aemeraldow" to be unstealable
  18. format slot 3 of player-arg with 1 of diamond sword of power 10 named "&3Efekt Zabojcy" with lore "- Uniewidacznia cialo||- Zwieksza skok||- Zwieksza szybkosc||- Zwieksza sile||&f-----------------||&2Koszt: 64 emeraldy||&4Czas: 60 sekund" to close then run "dajefekt %player-arg% zabojca"
  19. format slot 4 of player-arg with 1 of diamond chestplate of power 10 named "&3Efekt Tanka" with lore "- Regeneruje zycie||- Zwieksza oddychanie pod woda||- Zwieksza sile||- Redukuje obrazenia upadku||&f----------------------------||&2Koszt: 64 emeraldy||&4Czas: 120 sekund" to close then run "dajefekt %player-arg% tank"
  20. format slot 5 of player-arg with 1 of bow of power 10 named "&3Efekt Lucznika" with lore "Przeciwnik dostaje:||- otrucie||- spowolnienie ||podczas otrzymania obrazen||&f-------------------------||&2Koszt: 64 emeraldy||&4Czas: 60 sekund" to close then run "dajefekt %player-arg% lucznik"
  21. format slot 7 of player-arg with 1 of glass of power 10 named "&aEfekty" with lore "&aEfekty"
  22. format slot 8 of player-arg with 1 of emerald of power 1 named "&aEmeraldy" with lore "&aPosiadasz &2%number of emeralds in player-arg's inventory% &aemeraldow" to be unstealable
  23.  
  24.  
  25. command /dajefekt [<player>] [<text>]:
  26. trigger:
  27. if arg 2 is "zabojca":
  28. if {zabojca.%player-arg%} is true:
  29. message "&4Juz masz ten efekt!" to player-arg
  30. else:
  31. if number of emeralds in the player-arg's inventory is more or equal to 64:
  32. set {zabojca.%player-arg%} to true
  33. message "&3Efekt Zabojcy zostal zakupiony!" to player-arg
  34. remove 64 of emerald from player-arg's inventory
  35. apply invisibility to player-arg for 360 seconds
  36. apply jump boost 2 to player-arg for 360 seconds
  37. apply speed 2 to player-arg for 360 seconds
  38. apply strength 2 to player-arg for 360 seconds
  39. wait 30 seconds
  40. apply strength to player-arg for 360 seconds
  41. wait 20 seconds
  42. message "&4Za 10 sekund &3Efekt Zabojcy &4wygasnie!" to player-arg
  43. wait 10 seconds
  44. message "&3Efekt Zabojcy &4wygasl" to player-arg
  45. delete {zabojca.%player-arg%}
  46. else:
  47. message "&4Nie masz tyle emeraldow!" to player-arg
  48.  
  49. else if arg 2 is "tank":
  50. if {tank.%player-arg%} is true:
  51. message "&4Juz masz ten efekt!" to player-arg
  52. else:
  53. if number of emeralds in the player-arg's inventory is more or equal to 64:
  54. set {tank.%player-arg%} to true
  55. message "&3Efekt Tanka zostal zakupiony!" to player-arg
  56. remove 64 of emerald from player-arg's inventory
  57. apply regeneration 2 to player-arg for 60 seconds
  58. apply water breathing to player-arg for 120 seconds
  59. apply strength to player for 60 seconds
  60. set {redukcja.obrazen.upadku.gracza.%player-arg%} to true
  61. wait 110 seconds
  62. message "&4Za 10 sekund &3Efekt Tanka &4wygasnie!" to player-arg
  63. wait 10 seconds
  64. delete {redukcja.obrazen.upadku.gracza.%player-arg%}
  65. message "&3Efekt Tanka &4wygasl" to player-arg
  66. delete {tank.%player-arg%}
  67. else:
  68. message "&4Nie masz tyle emeraldow!" to player-arg
  69.  
  70. else if arg 2 is "lucznik":
  71. if {lucznik.%player-arg%} is true:
  72. message "&4Juz masz ten efekt!" to player-arg
  73. else:
  74. if number of emeralds in the player-arg's inventory is more or equal to 64:
  75. message "&3Efekt Lucznika zostal zakupiony!" to player-arg
  76. set {lucznik.%player-arg%} to true
  77. set {trucie.atakujacych.przez.gracza.%player-arg%} to true
  78. set {spowalnianie.atakujacych.przez.gracza.%player-arg%} to true
  79. wait 50 seconds
  80. message "&4Za 10 sekund &3Efekt Tanka &4wygasnie!" to player-arg
  81. wait 10 seconds
  82. message "&3Efekt Lucznika &4wygasl" to player-arg
  83. delete {trucie.atakujacych.przez.gracza.%player-arg%}
  84. delete {spowalnianie.atakujacych.przez.gracza.%player-arg%}
  85. delete {lucznik.%player-arg%}
  86. else:
  87. message "&4Nie masz tyle emeraldow!" to player-arg
  88.  
  89. on damage:
  90. victim is a player:
  91. if damage cause is fall:
  92. {redukcja.obrazen.upadku.gracza.%victim%} is true:
  93. cancel event
  94. attacker is a player:
  95. if damage cause is arrow:
  96. {trucie.atakujacych.przez.gracza.%attacker%} is true:
  97. apply poison to victim for 5 seconds
  98. {spowalnianie.atakujacych.przez.gracza.%attacker%} is true:
  99. apply slowness to victim for 2 seconds
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement