Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # @@ SKRIPT BY CANDYY @@ #
- # @@ DuelY - V. 1.0 @@ #
- # @ Wersja MC: 1.7 -8 @ #
- # @ @ @ @ @ @ @ @ @ @ @ #
- options:
- # Wiadomosc podczas gdy drugi gracz jest podczas walki
- duringfight: "&2Ten gracz jest podczas walki."
- # Wiadomosc: Zaproszenie do walki
- zaproszenie: "&2Gracz %player% chce z toba walczyc &6(Odpowiedz klikajac PPM)"
- # Wyslano zaproszenie
- zapytanie: "&2Wyslano zaproszenie do %clicked entity%."
- #Wiadomosc po zabiciu
- kill: "&c%attacker% &6zabil &c%victim% &7(&c%attacker's health%&4♥&7) "
- #Osiagniecia
- unlocked-achievement1: "&2Odblokowales swoje pierwsze osiagniecie &3ZABOJCA!"
- #Osiagniecie 1
- ascore_1: 10 #Ile trzeba miec zabic na achievement1
- # Swiat na ktorym ma dzialac DuelY
- world: "world"
- #komenda na statystyki
- stats: stats
- aliases: /statystyki, /zabojstwa, /zgony
- # -- GUI -- #
- name-gui: "&8&l&m||&6 STATYSTYKI &8&l&m||"
- variables:
- {duel::status::%player%} = false
- {zapytanie::%player%} = false
- {zaproszenie::%player%} = false
- {killed.%player%} = "nikt,brak,nikogo"
- {kills::%player%} = 0
- {killers::%player%} = "nikt,brak,nikogo"
- {deaths::%player%} = 0
- {achievement1.%player%} = false
- {_} = 4 # Nie zmieniaj!
- damage of player:
- event-world is {@world}:
- {duel::status::%attacker%} = false:
- {duel::status::%victim%} = false:
- cancel event
- else:
- message {@duringfight}
- stop
- else:
- cancel event
- on right click on player:
- {duel::status::%player%} = false:
- {duel::status::%clicked entity%} = false:
- {zaproszenie::%player%} = false:
- set {zapytanie::%clicked entity%} to true
- set {zaproszenie::%player%} to true
- message {@zaproszenie} to clicked entity
- message {@zapytanie} to player
- else:
- {zapytanie::%player%} = true:
- {zaproszenie::%player%} = true:
- clear {zapytanie::%player%}
- clear {zaproszenie::%clicked entity%}
- message "&cWalka rozpocznie sie za:"
- loop 3 times:
- wait a second
- set {_} to {_}-1
- message "&c%{_}%" to clicked entity
- message "&c%{_}%" to player
- set {duel::status::%player%} to true
- set {duel::status::%clicked entity%} to true
- else:
- send "&cTen gracz cie zaprosil."
- else:
- message "&cTen gracz jest podczas walki"
- death of player:
- set {duel::status::%attacker%} to false
- set {duel::status::%victim%} to false
- add 1 to {kills::%attacker%}
- add 1 to {deaths::%victim%}
- set {killed.%attacker%} to "%victim%"
- set {killer.%victim%} to "%attacker%"
- set death message to {@kill}
- heal attacker
- stop
- {kills::%attacker%} = {@ascore_1}:
- set {achievement1.%attacker%} to true
- message {@unlocked-achievement1} to attacker
- command /{@stats}:
- aliases: {@aliases}
- trigger:
- open chest with 3 rows named {@name-gui} to the player
- format slot 0 of player with 1 of book named "&6Achievement" with lore "&7 - &6Zobacz swoje osiagniecia" to close then run "sudo %player% osiagniecia"
- 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"
- 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"
- command /achievements:
- aliases: /osiagniecia,
- trigger:
- open chest with 1 rows named "&6OSIAGNIECIA &7(DuelY)" to player
- format slot 8 of player with 1 of book named "&6INFO" with lore "&6Wiecej osiagniec w nowych update'ach" to close
- {achievement1.%player%} = true:
- format slot 0 of player with 1 of green clay named "&3ZABOJCA!" with lore "&7- &2Osiagnieto!" to be unstealable
- else:
- 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
- command /killed:
- trigger:
- # KILLED(BETA)... - tj. wersja beta
- open chest with 1 rows named "&3Zabici" to player
- format slot 4 of player with 1 of player head named "%{killed.%player%}%" to be unstealable
- command /killers:
- trigger:
- # KILLERS(BETA)... - tj. wersja beta
- open chest with 1 rows named "&4ZABOJCY" to player
- 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