xDreamMaster

[Skrypt] MHCEnchant

Dec 29th, 2015
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.78 KB | None | 0 0
  1. #-------------------------------------------#
  2. # Informacje #
  3. #-------------------------------------------#
  4. # * Wersja: 0.1 #
  5. # * Autor: xDreamMaster #
  6. # * Dla: MagicHc.pl #
  7. #-------------------------------------------#
  8. # Licensja #
  9. #-------------------------------------------#
  10. # Zabraniam! #
  11. #-------------------------------------------#
  12. # * Zmieniania Informacji O Autorze #
  13. # * Udostępniania Skryptu Bez Zgody #
  14. # * Podawania Się Za Auutora #
  15. #-------------------------------------------#
  16. # Zezwalam #
  17. #-------------------------------------------#
  18. # * Zmieniania Opcji #
  19. # * Używania Skryptu #
  20. #-------------------------------------------#
  21.  
  22.  
  23.  
  24.  
  25.  
  26. #-------------------------------------------#
  27. # Opcje #
  28. #-------------------------------------------#
  29. Options:
  30. CzasUsuwaniaEnchantu: 5
  31. CzasDodawaniaEnchantu: 5
  32. Sharpness: Ostrosc
  33. KnockBack: Odrzut
  34. FireAspect: Ogien
  35. Proteciton: Ochrona
  36. Poziom1: &aI
  37. Poziom2: &2II
  38. Poziom3: &2III
  39. Poziom4: &6IV
  40. Poziom5: &cV
  41. Tag: &8&l[&f&lMagic&2&lHC&8&l]
  42. Naglowek: &f&lMagic&2&lHC
  43. Kick: &aWbij_Za_10_Sekund
  44. BrakPotwierdzenia: Nie Masz Nic Do Potwierdzenia XD
  45. ProszeSieNieRuszac: &cProsze Sie Nie Ruszac!
  46. OdrzucenieSprawdzania: &aSprawdzanie Zostalo Odrzucone
  47. OdlegloscSprawdzania: 10
  48. UstawienieEnchantNaNormalny: &aTen Enchant Jest Teraz Normalny
  49. TenEnchantJestNormalny: &aTen Enchant Jest Juz Normalny
  50. MusiszWskazacEnchant: &cMuszisz Patrzec Na Enchant
  51. WlaczylesTrybUsuwaniaEnchantu: &cWlaczyles Tryb Usuwania Enchantu
  52. WlaczylesTrybDodawaniaEnchantu: &aWlaczyles Tryb Dodawania Enchantu
  53.  
  54.  
  55.  
  56. #-------------------------------------------#
  57. # Zmienne #
  58. #-------------------------------------------#
  59. Variables:
  60. {porwierdzenie} = 0
  61. {enchant::%block%} = 0
  62. {dodawanie::%player%} = 0
  63. {usuwanie::%player%} = 0
  64. {PodstawowyTrybEnchantu} = 0
  65.  
  66.  
  67. #-------------------------------------------#
  68. # Komendy #
  69. #-------------------------------------------#
  70.  
  71. command /e [<text>]:
  72. trigger:
  73. if arg 1 is not set:
  74. if player has permission "magichc.pl":
  75. send "&6-------------{@Naglowek}&6--------------" to player
  76. send json of "&6Sprawdz &c- &3Wlacza Skrypt Na Konkretne Enchanty" run "/e sprawdz" to player
  77. send json of "&6Reload &c- &3Przeladowuje Skrypt" run "/sk reload enchnat" to player
  78. send json of "&6Autor &c- &3Wyswietla Informacje O Autorze" run "/e autor" to player
  79. send json of "&6Wersja &c- &3Wyswietla Wersje Skryptu" run "/e wersja" to player
  80. send json of "&6Usun &c- &3Uwstawia Enchant W Normalny" run "/e usun" to player
  81. send json of "&6Dodaj &c- &3Uwstawia Enchant W Tryb Skryptu" run "/e dodaj" to player
  82. send "&aTrik: &2Kliknij W Wiadomosc Aby Uzyc Komendy" to player
  83. send "&6--------------{@Naglowek}&6--------------" to player
  84. if arg 1 is "sprawdz":
  85. if player has permission "magichc.pl":
  86. set {potwierdzenie} to "1"
  87. send "&cUwaga Ta Opcja Może Spowodowac Crasha Serwera!" to player
  88. send "&3Czy Chcesz Kontynuowac?"
  89. send json of "&6>>>>>>>>>> &a&lTak &6<<<<<<<<<<" run "/e potwierdz" to player
  90. send json of "&6>>>>>>>>>> &cNie &6<<<<<<<<<<" run "/e odrzuc" to player
  91. if arg 1 is "potwierdz":
  92. if player has permission "magichc.pl":
  93. if {potwierdzenie} is "1":
  94. send "&6----------------------------------------" to player
  95. send "{@Tag} &aSprawdzanie Zostalo Potwierdzone"
  96. send "&6----------------------------------------" to player
  97. wait 10 ticks
  98. send "&c&lUwaga Za 5 Sekund Rozpocznie Sie Sprawdzanie..."
  99. send "{@Tag}{@ProszeSieNieRuszac}"
  100. wait 1 second
  101. send "&c&lUwaga Za 4 Sekundy Rozpocznie Sie Sprawdzanie..."
  102. send "{@Tag}{@ProszeSieNieRuszac}"
  103. wait 1 second
  104. send "&c&lUwaga Za 3 Sekundy Rozpocznie Sie Sprawdzanie..."
  105. send "{@Tag}{@ProszeSieNieRuszac}"
  106. wait 1 second
  107. send "&c&lUwaga Za 2 Sekundy Rozpocznie Sie Sprawdzanie..."
  108. send "{@Tag}{@ProszeSieNieRuszac}"
  109. wait 1 second
  110. send "&c&lUwaga Za 1 Sekunde Rozpocznie Sie Sprawdzanie..."
  111. send "{@Tag}{@ProszeSieNieRuszac}"
  112. loop all blocks in radius {@OdlegloscSprawdzania} of player:
  113. if loop-block is enchantment table:
  114. set {enchant::%loop-block%} to "1"
  115. send "&6----------------------------------------" to player
  116. send "&aSprawdzono Wszystkie Enchant W Odleglosci {@OdlegloscSprawdzania} Kratek Od Ciebie"
  117. send "&6----------------------------------------" to player
  118. set {potwierdzenie} to "0"
  119. else:
  120. send "&6----------------------------------------" to player
  121. send "{@Tag} {@BrakPotwierdzenia}" to player
  122. send "&6----------------------------------------" to player
  123. if arg 1 is "odrzuc":
  124. if player has permission "magichc.pl":
  125. if {potwierdzenie} is "1":
  126. send "&6----------------------------------------" to player
  127. send "{@Tag} {@OdrzucenieSprawdzania}"
  128. send "&6----------------------------------------" to player
  129. if arg 1 is "autor":
  130. send "&6----------------------------------------"
  131. send "&3Autorem Jest &6&lxDreamMaster"
  132. send "&3Zapraszam Po Moje Inne Skrypty"
  133. send json of "&9Zazpraszam Po Inne Moje Skrypty" tooltip "&bKliknij Aby Otworzyc Strone" open "http://pastebin.com/u/XDreamMaster" to player
  134. send "&6----------------------------------------"
  135. if arg 1 is "wersja":
  136. send "&6----------------------------------------" to player
  137. send "&9Aktualna Wersja Skryptu: 0.1"
  138. send "&9Sprawdz Aktualizacje Na Moim Profilu PasteBin"
  139. send "&9Link Do Strony Pod Komenda /e autor"
  140. send "&6----------------------------------------" to player
  141. if arg 1 is "usun":
  142. if player has permission "magichc.pl":
  143. send "{@Tag} {@WlaczylesTrybUsuwaniaEnchantu}" to player
  144. send "{@Tag} &cMasz {@CzasUsuwaniaEnchantu} &cSekund"
  145. set {usuwanie::%player%} to "1"
  146. wait 5 second
  147. send "{@Tag} &3Czas Usuwania Enchantu Minol"
  148. set {usuwanie::%player%} to "0"
  149. if arg 1 is "dodaj":
  150. if player has permission "magichc.pl":
  151. send "{@Tag} {@WlaczylesTrybDodawaniaEnchantu}" to player
  152. send "{@Tag} &cMasz {@CzasDodawaniaEnchantu} &cSekund"
  153. set {dodawanie::%player%} to "1"
  154. wait 5 second
  155. send "{@Tag} &3Czas Dodawania Enchantu Minol"
  156. set {dodawanie::%player%} to "0"
  157.  
  158.  
  159.  
  160.  
  161. #-------------------------------------------#
  162. # Dzialanie #
  163. #-------------------------------------------#
  164.  
  165. On right click on enchantment table:
  166. if {enchant::%event-block%} is "1":
  167. close inventory of player
  168. loop all blocks in radius 2 of event-block:
  169. if loop-block is bookshelf:
  170. set {licz::%event-block%} to loop-block
  171. wait a tick
  172. open chest with 7 rows named "{@Naglowek}" to player
  173. wait a tick
  174. format slot 0 of player with 1 of bookshelf named "&6Bibloiteczki" to be unstealable
  175. format slot 9 of player with 1 of bookshelf named "&6Bibloiteczki" to be unstealable
  176. format slot 18 of player with 1 of bookshelf named "&6Bibloiteczki" to be unstealable
  177. format slot 27 of player with 1 of bookshelf named "&6Bibloiteczki" to be unstealable
  178. format slot 36 of player with 1 of bookshelf named "&6Bibloiteczki" to be unstealable
  179. format slot 45 of player with 1 of bookshelf named "&6Bibloiteczki" to be unstealable
  180. format slot 8 of player with 1 of bookshelf named "&6Bibloiteczki" to be unstealable
  181. format slot 17 of player with 1 of bookshelf named "&6Bibloiteczki" to be unstealable
  182. format slot 26 of player with 1 of bookshelf named "&6Bibloiteczki" to be unstealable
  183. format slot 35 of player with 1 of bookshelf named "&6Bibloiteczki" to be unstealable
  184. format slot 44 of player with 1 of bookshelf named "&6Bibloiteczki" to be unstealable
  185. format slot 53 of player with 1 of bookshelf named "&6Bibloiteczki" to be unstealable
  186. format slot 54 of player with 1 of book named "&9Twoje Bibloiteczki" with lore "&6%{licz::event-block}%" to be unstealable
  187. format slot 58 of player with 1 of paper named "&9Autor" with lore "&6Autorek Jest &3&lxDreamMaster" to be unstealable
  188.  
  189. On right click on enchantment table:
  190. if {usuwanie::%player%} is "1":
  191. set {enchant::%event-block%} to "0"
  192. send "{@Tag} &6Enchant Zostal Ustawiony Na Normalny Tryb."
  193. set {usuwanie::%player%} to "0"
  194. if {dodawanie::%player%} is "1":
  195. set {enchant::%event-block%} to "1"
  196. send "{@Tag} &6Enchant Zostal Ustawiony Na Tryb Skryptu."
  197. set {dodawanie::%player%} to "0"
Advertisement
Add Comment
Please, Sign In to add comment