Advertisement
Kacperski89

DuelY by Candy

Apr 30th, 2016
462
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.18 KB | None | 0 0
  1. # @@ SKRIPT BY CANDYY @@ #
  2. # @@ DuelY - V. 1.0 @@ #
  3. # @ Wersja MC: 1.7 -8 @ #
  4. # @ @ @ @ @ @ @ @ @ @ @ #
  5.  
  6. options:
  7.  
  8. # Wiadomosc podczas gdy drugi gracz jest podczas walki
  9. duringfight: "&2Ten gracz jest podczas walki."
  10.  
  11. # Wiadomosc: Zaproszenie do walki
  12. zaproszenie: "&2Gracz %player% chce z toba walczyc &6(Odpowiedz klikajac PPM)"
  13. # Wyslano zaproszenie
  14. zapytanie: "&2Wyslano zaproszenie do %clicked entity%."
  15.  
  16. #Wiadomosc po zabiciu
  17. kill: "&c%attacker% &6zabil &c%victim% &7(&c%attacker's health%&4♥&7) "
  18.  
  19. #Osiagniecia
  20. unlocked-achievement1: "&2Odblokowales swoje pierwsze osiagniecie &3ZABOJCA!"
  21.  
  22. #Osiagniecie 1
  23. ascore_1: 10 #Ile trzeba miec zabic na achievement1
  24.  
  25. # Swiat na ktorym ma dzialac DuelY
  26. world: "world"
  27.  
  28. #komenda na statystyki
  29. stats: stats
  30. aliases: /statystyki, /zabojstwa, /zgony
  31.  
  32. # -- GUI -- #
  33.  
  34. name-gui: "&8&l&m||&6 STATYSTYKI &8&l&m||"
  35. variables:
  36. {duel::status::%player%} = false
  37. {zapytanie::%player%} = false
  38. {zaproszenie::%player%} = false
  39. {killed.%player%} = "nikt,brak,nikogo"
  40. {kills::%player%} = 0
  41. {killers::%player%} = "nikt,brak,nikogo"
  42. {deaths::%player%} = 0
  43. {achievement1.%player%} = false
  44. {_} = 4 # Nie zmieniaj!
  45. damage of player:
  46. event-world is {@world}:
  47. {duel::status::%attacker%} = false:
  48. {duel::status::%victim%} = false:
  49. cancel event
  50. else:
  51. message {@duringfight}
  52. stop
  53. else:
  54. cancel event
  55.  
  56. on right click on player:
  57. {duel::status::%player%} = false:
  58. {duel::status::%clicked entity%} = false:
  59. {zaproszenie::%player%} = false:
  60. set {zapytanie::%clicked entity%} to true
  61. set {zaproszenie::%player%} to true
  62. message {@zaproszenie} to clicked entity
  63. message {@zapytanie} to player
  64. else:
  65. {zapytanie::%player%} = true:
  66. {zaproszenie::%player%} = true:
  67. clear {zapytanie::%player%}
  68. clear {zaproszenie::%clicked entity%}
  69. message "&cWalka rozpocznie sie za:"
  70. loop 3 times:
  71. wait a second
  72. set {_} to {_}-1
  73. message "&c%{_}%" to clicked entity
  74. message "&c%{_}%" to player
  75. set {duel::status::%player%} to true
  76. set {duel::status::%clicked entity%} to true
  77. else:
  78. send "&cTen gracz cie zaprosil."
  79. else:
  80. message "&cTen gracz jest podczas walki"
  81.  
  82. death of player:
  83. set {duel::status::%attacker%} to false
  84. set {duel::status::%victim%} to false
  85. add 1 to {kills::%attacker%}
  86. add 1 to {deaths::%victim%}
  87. set {killed.%attacker%} to "%victim%"
  88. set {killer.%victim%} to "%attacker%"
  89. set death message to {@kill}
  90. heal attacker
  91. stop
  92. {kills::%attacker%} = {@ascore_1}:
  93. set {achievement1.%attacker%} to true
  94. message {@unlocked-achievement1} to attacker
  95.  
  96. command /{@stats}:
  97. aliases: {@aliases}
  98. trigger:
  99. open chest with 3 rows named {@name-gui} to the player
  100. format slot 0 of player with 1 of book named "&6Achievement" with lore "&7 - &6Zobacz swoje osiagniecia" to close then run "sudo %player% osiagniecia"
  101. format slot 7 of player with 1 of green wool named "&2ZABOJSTWA" with lore "&7- &6%{kills::%player%}%" to close then run "sudo %player% killed"
  102. format slot 8 of player with 1 of red wool named "&4ZGONY" with lore "&7- &6%{deaths::%player%}%" to close then run "sudo %player% killers"
  103. command /achievements:
  104. aliases: /osiagniecia,
  105. trigger:
  106. open chest with 1 rows named "&6OSIAGNIECIA &7(DuelY)" to player
  107. format slot 8 of player with 1 of book named "&6INFO" with lore "&6Wiecej osiagniec w nowych update'ach" to close
  108. {achievement1.%player%} = true:
  109. format slot 0 of player with 1 of green clay named "&3ZABOJCA!" with lore "&7- &2Osiagnieto!" to be unstealable
  110. else:
  111. format slot 0 of player with 1 of brown clay named "&3ZABOJCA!" with lore "&7- &cNie osiagnieto||&7Stan: &c%{kills::%player%}%&7/&3{@ascore_1}" to be unstealable
  112. command /killed:
  113. trigger:
  114. # KILLED(BETA)... - tj. wersja beta
  115. open chest with 1 rows named "&3Zabici" to player
  116. format slot 4 of player with 1 of player head named "%{killed.%player%}%" to be unstealable
  117. command /killers:
  118. trigger:
  119. # KILLERS(BETA)... - tj. wersja beta
  120. open chest with 1 rows named "&4ZABOJCY" to player
  121. format slot 4 of player with 1 of player head named "%{killer.%player%}%" to be unstealable
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement