Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {radiation.%player%} = 0
- options:
- swiat: "2033"
- swiat2: "Survival"
- modifier: 1
- tag: &3[&6ncRAD&3]
- tag.success: &aSUKCES!
- tag.warn: &cUWAGA!
- tag.error: &4BLAD
- every minute:
- loop all players in {@swiat} or {@swiat2}:
- add -0.01 to {radiation.%loop-player%}
- if sunlight level at the loop-player is greater than 10:
- set {_lvl.%loop-player%} to level of loop-player
- set {_rad.%loop-player%} to ({@modifier}/{_lvl.%loop-player%})
- if {_lvl.%loop-player%} = 0:
- set {_lvl.%loop-player%} to 1
- if loop-player is wearing all gold armor:
- add {_rad.%loop-player%} to {radiation.%loop-player%}
- else:
- add {_rad.%loop-player%} to {radiation.%loop-player%}
- add {_rad.%loop-player%} to {radiation.%loop-player%}
- if {radiation.%loop-player%} >= 5:
- if {radiation.%loop-player%} >= 20:
- if {radiation.%loop-player%} >= 75:
- add -500 to {nccore.blood.%loop-player%}
- else:
- add -200 to {nccore.blood.%loop-player%}
- else:
- add -100 to {nccore.blood.%loop-player%}
- on rightclick:
- if player's tool is clock named "&3Licznik Geigera":
- send "&7&oPrzykladasz licznik na swoje cialo"
- wait 4 ticks
- send "&7&oCzekasz na odczyt"
- wait 1 second
- send "&6ODCZYT: %{radiation.%sender%}% rad"
- if {radiation.%player%} >= 5:
- if {radiation.%player%} >= 20:
- if {radiation.%player%} >= 75:
- send "&4-500 HP/min"
- else:
- send "&c-200 HP/min"
- else:
- send "&c-100 HP/min"
- on death:
- set {radiation.%player%} to 0
- command /rad [<text>] [<player>] [<number>]:
- trigger:
- if arg 1 is not set:
- send "&3&m--------------&3[ &6&lncRAD by niccosaint &3]&3&m--------------"
- send "&b<> - Wymagane [] - Opcjonalnie"
- send "&2Dla wszystkich &6Dla VIP &4Dla adminow &0Tylko Konsola"
- send " "
- send "&2/rad settings &b- Ustawienia"
- send "&2/rad geiger [nick] &b- Sprawdz poziom promieniowania"
- send "&4/rad give <nick> &b- Otrzymaj licznik Geigera"
- send "&4/rad modify <nick> <ilosc> &b- Zmodyfikuj graczowi poziom promieniowania"
- send "&4/rad set <nick> <ilosc> &b- Ustaw graczowi poziom promieniowania"
- send "&4/rad reset <nick> &b- Wyzeruj graczowi promieniowanie"
- if arg 1 is "geiger":
- if sender has clock named "&3Licznik Geigera":
- if arg 2 is set:
- send "&7&oWyciagasz licznik Geigera"
- wait 3 seconds
- if distance between the sender and arg 2 is smaller than 5:
- send "&7&oPrzykladasz licznik na cialo %arg 2%"
- wait 4 ticks
- send "&7&oCzekasz na odczyt"
- wait 1 second
- send "&6ODCZYT: %{radiation.%arg 2%}% rad"
- if {radiation.%arg 2%} >= 5:
- if {radiation.%arg 2%} >= 20:
- if {radiation.%arg 2%} >= 75:
- send "&4-500 HP/min"
- else:
- send "&c-200 HP/min"
- else:
- send "&c-100 HP/min"
- else:
- send "&7&oOsoba sie oddalila, nie mozesz przeprowadzic odczytu"
- else:
- send "&7&oWyciagasz licznik Geigera"
- wait 3 seconds
- send "&7&oPrzykladasz licznik na swoje cialo"
- wait 4 ticks
- send "&7&oCzekasz na odczyt"
- wait 1 second
- send "&6ODCZYT: %{radiation.%sender%}% rad"
- if {radiation.%arg 2%} >= 5:
- if {radiation.%arg 2%} >= 20:
- if {radiation.%arg 2%} >= 75:
- send "&4-500 HP/min"
- else:
- send "&c-200 HP/min"
- else:
- send "&c-100 HP/min"
- else:
- send "{@tag} {@tag.warn} Nie masz &3Licznika Geigera &caby wykonac te komende"
- if arg 1 is "settings":
- set {_lvl.%sender%} to level of sender
- set {_rad.%sender%} to ({@modifier}/{_lvl.%sender%})
- set {_rad2.%sender%} to ({_rad.%sender%}*2)
- send "&2Ustawienia:"
- send "&6Wchlanianie promieniowania:"
- send "&ez kombinezonem: &6&l%{_rad.%sender%}%/min"
- send "&abez kombinezonu: &2&l %{_rad2.%sender%}%/min"
- send "&c-100 HP/min, gdy masz >= 5 rad"
- send "&c-200 HP/min, gdy masz >= 20 rad"
- send "&4-500 HP/min, gdy masz >= 75 rad"
- if arg 1 is "give":
- if sender has permission "rad.admin":
- if arg 2 is set:
- give 1 clock named "&3Licznik Geigera" to arg 2
- else:
- send "&4/rad get <nick> &b- Otrzymaj licznik Geigera"
- else:
- send "{@tag} {@tag.error} Brak dostepu do tej komendy"
- if arg 1 is "modify":
- if sender has permission "rad.admin":
- if arg 2 is set:
- if arg 3 is set:
- add arg 3 to {radiation.%arg 2%}
- else:
- send "{@tag} {@tag.error} &6Popraw &3&nzaznaczony &6tekst"
- send "&3/rad modify %arg 2% &3&n<ilosc>"
- else:
- send "{@tag} {@tag.error} &6Popraw &3&nzaznaczony &6tekst"
- send "&3/rad modify &3&n<nick> &3<ilosc>"
- else:
- send "{@tag} {@tag.error} Brak dostepu do tej komendy"
- if arg 1 is "set":
- if sender has permission "rad.admin":
- if arg 2 is set:
- if arg 3 is set:
- set {radiation.%arg 2%} to arg 3
- send "{@tag} {@tag.success} Ustawiono nowy poziom :D"
- else:
- send "{@tag} {@tag.error} &6Popraw &3&nzaznaczony &6tekst"
- send "&3/rad set %arg 2% &3&n<ilosc>"
- else:
- send "{@tag} {@tag.error} &6Popraw &3&nzaznaczony &6tekst"
- send "&3/rad set &3&n<nick> &3<ilosc>"
- else:
- send "{@tag} {@tag.error} Brak dostepu do tej komendy"
- if arg 1 is "reset":
- if sender has permission "rad.admin":
- if arg 2 is set:
- send "{@tag} &1Zerowanie statystyk gracza %arg 2%"
- delete {radiation.%arg 2%}
- set {radiation.%arg 2%} to 0
- send "{@tag} {@tag.success} Wyzerowano!"
- else:
- send "&7/rad reset <nick> &b- Wyzeruj graczowi statystyki"
- else:
- send "{@tag} {@tag.error} Brak dostepu do tej komendy"
Advertisement
Add Comment
Please, Sign In to add comment