Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {lek.on} = true
- {statut} = false
- {zdrowie::%player%} = 0
- {lekarze} = 0
- {wkurzenie} = false
- on script load:
- set {klik::*} to 0
- set {klik2::*} to 0
- set {lekarze} to 0
- remove players from {_chorzy}
- delete {chorzy}
- remove players from {chory}
- delete {chory}
- delete {chorzy::*}
- remove players from {chory::*}
- delete {chory::*}
- set {zdrowie::*} to 0
- remove nausea and Slowness and weakness and poison and blindness from all players
- every 40 minutes in "world":
- if {lek.on} is true:
- loop all players:
- if {wkurzenie} is true:
- if loop-player is "kati15":
- add loop-player to {chorzy::*}
- if group of loop-player is "lekarz":
- add 1 to {lekarze}
- loop {lekarze} times:
- loop all players:
- if group of loop-player is not "lekarz" or "wlasciciel" or "admin" or "moderator" or "inspektor" or "budowniczy" or "ordynator":
- if loop-player is "xxdamixx":
- send "&6Nie zostajesz zarazony. :)" to loop-player
- if loop-player is not "xxdamixx":
- if {zdrowie::%loop-value-2%} is 0:
- add loop-player to {chory::*}
- if {zdrowie::%loop-value-2%} is not set:
- add loop-player to {chory::*}
- loop {lekarze} times:
- add random player out of {chory::*} to {chorzy::*}
- set {lekarze} to 0
- loop {chorzy::*}:
- if {zdrowie::%loop-value%} is 0:
- set {zdrowie::%loop-value%} to 1 or 2 or 3 or 4
- if {zdrowie::%loop-value%} is 1:
- apply nausea potion of tier 2 to the loop-value for 999999 minutes
- send "&8[&cEpidemia&8]&6 %loop-value% zachorowal." to all players
- if {zdrowie::%loop-value%} is 2:
- apply weakness and nausea potion of tier 2 to the loop-value for 999999 minutes
- send "&8[&cEpidemia&8]&6 %loop-value% zachorowal." to all players
- if {zdrowie::%loop-value%} is 3:
- apply weakness and slowness potion of tier 5 to the loop-value for 999999 minutes
- send "&8[&cEpidemia&8]&6 %loop-value% zachorowal." to all players
- if {zdrowie::%loop-value%} is 4:
- apply weakness and slowness potion of tier 5 to the loop-value for 999999 minutes
- send "&8[&cEpidemia&8]&6 %loop-value% zachorowal." to all players
- if {zdrowie::%loop-value%} is not set:
- set {zdrowie::%loop-value%} to 1 or 2 or 3 or 4
- send "nalozono chorobe" to all players
- if {zdrowie::%loop-value%} is 1:
- apply nausea potion of tier 2 to the loop-value for 999999 minutes
- send "&8[&cEpidemia&8]&6 %loop-value% zachorowal." to all players
- if {zdrowie::%loop-value%} is 2:
- apply weakness and nausea potion of tier 2 to the loop-value for 999999 minutes
- send "&8[&cEpidemia&8]&6 %loop-value% zachorowal." to all players
- if {zdrowie::%loop-value%} is 3:
- apply weakness and slowness potion of tier 5 to the loop-value for 999999 minutes
- send "&8[&cEpidemia&8]&6 %loop-value% zachorowal." to all players
- if {zdrowie::%loop-value%} is 4:
- apply weakness and slowness potion of tier 5 to the loop-value for 999999 minutes
- send "&8[&cEpidemia&8]&6 %loop-value% zachorowal." to all players
- delete {chorzy::*}
- command /aaa1 [<player>]:
- permission: choroba.admin
- trigger:
- send "%{zdrowie::%arg-1%}%"
- command /aaa2:
- permission: choroba.admin
- trigger:
- loop all players:
- set {zdrowie::loop-player} to 0
- command /aaa3 [<player>]:
- permission: choroba.admin
- trigger:
- send "zdrowie arg-1: %{zdrowie::%arg-1%}%"
- send "grupa chorych: %{chorzy::*}%"
- send "lekarze: %{lekarze}%"
- command /choroba [<text>] [<player>]:
- permission: choroba.admin
- trigger:
- if arg 1 is "ulecz":
- if arg 2 is set:
- if player has permission "choroba.admin":
- remove nausea and Slowness and weakness and poison and blindness from player-arg
- set {zdrowie::%player-arg%} to 0
- send "&8[&cEpidemia&8]&aUleczyles gracza %player-arg%." to player
- send "&8[&cEpidemia&8]&aZostales uleczony przez administratora!" to player-arg
- if arg 1 is "uleczall":
- if player has permission "choroba.admin":
- loop all players:
- if {zdrowie::%loop-player%} is 1 or 2 or 3 or 4:
- remove nausea and Slowness and weakness and poison and blindness from loop-player
- set {zdrowie::%loop-player%} to 0
- send "&8[&cEpidemia&8]&aUleczyles gracza %loop-player%." to player
- send "&8[&cEpidemia&8]&aZostales uleczony przez administratora!" to loop-player
- if arg 1 is "zaraz":
- if arg 2 is set:
- if arg 2 is "xxdamixx":
- send "&[&cEpidemia&8] &cPowalilo cie? Nie mozesz zarazic Damixa :)"
- if arg 2 is not "xxdamixx":
- if {zdrowie::%player-arg%} is 0:
- set {zdrowie::%player-arg%} to 1 or 2 or 3 or 4
- if {zdrowie::%player-arg%} is 1:
- apply nausea potion of tier 2 to the arg 2 for 999999 minutes
- send "&8[&cEpidemia&8]&6 %player-arg% zachorowal." to all players
- if {zdrowie::%player-arg%} is 2:
- apply weakness and nausea potion of tier 2 to the arg 2 for 999999 minutes
- send "&8[&cEpidemia&8]&6 %player-arg% zachorowal." to all players
- if {zdrowie::%player-arg%} is 3:
- apply weakness and slowness potion of tier 5 to the arg 2 for 999999 minutes
- send "&8[&cEpidemia&8]&6 %player-arg% zachorowal." to all players
- if {zdrowie::%player-arg%} is 4:
- apply weakness and slowness potion of tier 5 to the arg 2 for 999999 minutes
- send "&8[&cEpidemia&8]&6 %player-arg% zachorowal." to all players
- if {zdrowie::%player-arg%} is not set:
- set {zdrowie::%player-arg%} to 1 or 2 or 3 or 4
- send "nalozono chorobe" to all players
- if {zdrowie::%player-arg%} is 1:
- apply nausea potion of tier 2 to the arg 2 for 999999 minutes
- send "&8[&cEpidemia&8]&6 %player-arg% zachorowal." to all players
- if {zdrowie::%player-arg%} is 2:
- apply weakness and nausea potion of tier 2 to the arg 2 for 999999 minutes
- send "&8[&cEpidemia&8]&6 %player-arg% zachorowal." to all players
- if {zdrowie::%player-arg%} is 3:
- apply weakness and slowness potion of tier 5 to the arg 2 for 999999 minutes
- send "&8[&cEpidemia&8]&6 %player-arg% zachorowal." to all players
- if {zdrowie::%player-arg%} is 4:
- apply weakness and slowness potion of tier 5 to the arg 2 for 999999 minutes
- send "&8[&cEpidemia&8]&6 %player-arg% zachorowal." to all players
- else:
- send "&8[&cEpidemia&8]&cNie możesz zarazic gracza &f%player-arg%. &cJest on juz chory na %{zdrowie::%player-arg%}%" to player
- else:
- send "&8[&cEpidemia&8]&cNie podano gracza, ktorego chcesz zarazic." to player
- if arg 1 is "zarazlosowo":
- loop all players:
- if group of loop-player is "lekarz":
- add 1 to {lekarze}
- loop {lekarze} times:
- loop all players:
- if group of loop-player is not "lekarz" or "wlasciciel" or "admin" or "moderator" or "inspektor" or "budowniczy" or "ordynator":
- if loop-player is "xxdamixx":
- send "&6Nie zostajesz zarazony :)" to loop-player
- if loop-player is not "xxdamixx":
- if {zdrowie::%loop-value-2%} is 0:
- add loop-player to {chory::*}
- if {zdrowie::%loop-value-2%} is not set:
- add loop-player to {chory::*}
- loop {lekarze} times:
- add random player out of {chory::*} to {chorzy::*}
- set {lekarze} to 0
- loop {chorzy::*}:
- if {zdrowie::%loop-value%} is 0:
- set {zdrowie::%loop-value%} to 1 or 2 or 3 or 4
- if {zdrowie::%loop-value%} is 1:
- apply nausea potion of tier 2 to the loop-value for 999999 minutes
- send "&8[&cEpidemia&8]&6 %loop-value% zachorowal." to all players
- if {zdrowie::%loop-value%} is 2:
- apply weakness and nausea potion of tier 2 to the loop-value for 999999 minutes
- send "&8[&cEpidemia&8]&6 %loop-value% zachorowal." to all players
- if {zdrowie::%loop-value%} is 3:
- apply weakness and slowness potion of tier 5 to the loop-value for 999999 minutes
- send "&8[&cEpidemia&8]&6 %loop-value% zachorowal." to all players
- if {zdrowie::%loop-value%} is 4:
- apply weakness and slowness potion of tier 5 to the loop-value for 999999 minutes
- send "&8[&cEpidemia&8]&6 %loop-value% zachorowal." to all players
- if {zdrowie::%loop-value%} is not set:
- set {zdrowie::%loop-value%} to 1 or 2 or 3
- send "nalozono chorobe" to all players
- if {zdrowie::%loop-value%} is 1:
- apply nausea potion of tier 2 to the loop-value for 999999 minutes
- send "&8[&cEpidemia&8]&6 %loop-value% zachorowal." to all players
- if {zdrowie::%loop-value%} is 2:
- apply weakness and nausea potion of tier 2 to the loop-value for 999999 minutes
- send "&8[&cEpidemia&8]&6 %loop-value% zachorowal." to all players
- if {zdrowie::%loop-value%} is 3:
- apply weakness and slowness potion of tier 5 to the loop-value for 999999 minutes
- send "&8[&cEpidemia&8]&6 %loop-value% zachorowal." to all players
- if arg 1 is "on":
- set {lek.on} to true
- send "&8[&cEpidemia&8]&6Choroby zostaly &awlaczone&6!" to all players
- if arg 1 is "off":
- set {lek.on} to false
- send "&8[&cEpidemia&8]&6Choroby zostaly &cwylaczone&6!" to all players
- if arg 1 is "statut":
- if {lek.on} is true:
- send "&8[&cEpidemia&8]&6Choroby sa &awlaczone&6!" to player
- if {lek.on} is false:
- send "&8[&cEpidemia&8]&6Choroby sa &cwyaczone&6!" to player
- command /badanie [<text>] [<player>]:
- permission: choroba.ulecz
- trigger:
- if arg 2 is not set:
- send "&8[&dBadanie&8]&c Musisz podac nick pacjenta!" to player
- if arg 2 is set:
- if arg 1 is "skora":
- send "&8[&dBadanie&8]&7 Lekarz przyglada sie skorze" to player-arg
- if {zdrowie::%player-arg%} is not set:
- send "&8[&dBadanie&8]&f Badanie nie wykazuje zadnych zmian skornych" to player
- if {zdrowie::%player-arg%} is 0:
- send "&8[&dBadanie&8]&f Badanie nie wykazuje zadnych zmian skornych" to player
- if {zdrowie::%player-arg%} is 1: #bol glowy
- send "&8[&dBadanie&8]&f Badanie nie wykazuje zadnych zmian skornych" to player
- if {zdrowie::%player-arg%} is 2: #ospa
- send "&8[&dBadanie&8]&f Na skorze pacjenta widoczna jest wysypka" to player
- if {zdrowie::%player-arg%} is 3: #grypa
- send "&8[&dBadanie&8]&f Badanie nie wykazuje zadnych zmian skornych" to player
- if {zdrowie::%player-arg%} is 4: #zapalenie
- send "&8[&dBadanie&8]&f Badanie nie wykazuje zadnych zmian skornych" to player
- if arg 1 is "wzrok":
- send "&8[&dBadanie&8]&7 Lekarz przyglada sie skorze" to player-arg
- if {zdrowie::%player-arg%} is not set:
- send "&8[&dBadanie&8]&f Wyglada na to, ze oczy na swiatlo reaguja prawidlowo" to player
- if {zdrowie::%player-arg%} is 0:
- send "[&dBadanie&8]&f Wyglada na to, ze oczy na swiatlo reaguja prawidlowo" to player
- if {zdrowie::%player-arg%} is 1: #bol glowy
- send "&8[&dBadanie&8]&f U pacjenta wystepuje swiatlowstret" to player
- if {zdrowie::%player-arg%} is 2: #ospa
- send "&8[&dBadanie&8]&f Wyglada na to, ze oczy na swiatlo reaguja prawidlowo" to player
- if {zdrowie::%player-arg%} is 3: #grypa
- send "&8[&dBadanie&8]&f Wyglada na to, ze oczy na swiatlo reaguja prawidlowo" to player
- if {zdrowie::%player-arg%} is 4: #zapalenie
- send "&8[&dBadanie&8]&f Wyglada na to, ze oczy na swiatlo reaguja prawidlowo" to player
- #TERMOMETR
- on rightclick with stick:
- name of player's tool is "&4&l[Termometr]":
- if target is not set:
- stop
- if distance between player and target is not higher than 6:
- add 1 to {klik::%player%}
- if {klik::%player%}>2:
- send "&8[&dBadanie&8]&c Nie mozesz ponownie uzyc narzedzia, sprobuj za jakis czas!"
- wait 20 seconds
- set {klik::%player%} to 0
- stop
- if {klik::%player%}<2:
- send "[&dBadanie&8]&7 Lekarz mierzy temperature" to target
- if {zdrowie::%target%} is not set:
- send "&8[&dBadanie&8]&f Temperatura: &736,6°C"
- if {zdrowie::%target%} is 0:
- send "&8[&dBadanie&8]&f Temperatura: &736,6°C"
- if {zdrowie::%target%} is 1: #bol glowy
- send "&8[&dBadanie&8]&fTemperatura: &736°C"
- if {zdrowie::%target%} is 2: #ospa
- send "&8[&dBadanie&8]&f Temperatura: &c39°C"
- if {zdrowie::%target%} is 3: #grypa
- send "&8[&dBadanie&8]&f Temperatura: &c38,7°C"
- if {zdrowie::%target%} is 4: #zapalenie
- send "&8[&dBadanie&8]&f Temperatura: &c39,7°C"
- #STETOSKOP
- on rightclick with lead:
- name of player's tool is "&4&l[STETOSKOP]":
- if target is not set:
- stop
- if distance between player and target is not higher than 6:
- add 1 to {klik2::%player%}
- if {klik::%player%}>2:
- send "&8[&dBadanie&8]&c Nie mozesz ponownie uzyc narzedzia, sprobuj za jakis czas!"
- wait 20 seconds
- set {klik2::%player%} to 0
- stop
- if {klik2::%player%}<2:
- send "&8[&dBadanie&8]&7 Trwa osluchanie serca" to target
- if {zdrowie::%target%} is not set:
- send "&8[&dBadanie&8]&f Badanie nie wykazuje nieprawidłowego funkcjonowania serca ani pluc" to player
- if {zdrowie::%target%} is 0:
- send "&8[&dBadanie&8]&f Badanie nie wykazuje nieprawidłowego funkcjonowania serca ani pluc" to player
- if {zdrowie::%target%} is 1:
- send "&8[&dBadanie&8]&f Badanie nie wykazuje nieprawidłowego funkcjonowania serca ani pluc" to player
- if {zdrowie::%target%} is 2:
- send "&8[&dBadanie&8]&f Badanie nie wykazuje nieprawidłowego funkcjonowania serca ani pluc" to player
- if {zdrowie::%target%} is 3:
- send "&8[&dBadanie&8]&f Badanie nie wykazuje nieprawidłowego funkcjonowania serca ani pluc" to player
- if {zdrowie::%target%} is 4:
- send "&8[&dBadanie&8]&f Podczas badania slychac szmery w plucach" to player
- #LEKI
- command /wez [<text>]:
- permission: choroba.ulecz
- trigger:
- if arg 1 is "ibuprom":
- give 1 prismarine_crystals named "&f&libuprom" to player
- send "&7 Otrzymales lek!"
- if arg 1 is "puder":
- give 1 lever named "&f&lpudroderm" to player
- send "&7 Otrzymales lek!"
- if arg 1 is "gripex":
- give 1 water_bottle named "&f&lgripex" to player
- send "&7 Otrzymales lek!"
- if arg 1 is "antybiotyk":
- give 1 water_bottle named "&f&lantybiotyk" to player
- send "&7 Otrzymales lek!" to player
- on right click with prismarine_crystals:
- name of player's tool is "&f&libuprom":
- if {zdrowie::%player%} is 1:
- send "&8[&cEpidemia&8]&6 Zarzyles tabletke. &aWyzdrowiales!" to player
- remove nausea and Slowness and weakness and poison and blindness from player
- remove 1 prismarine_crystals named "&f&libuprom]" from the player
- show 100 villager happy particles at location of player offset by 0.8, 1.0, 0.8
- else:
- send "&8[&cEpidemia&8]&6 Zarzyles ibuprom - ten lek nie wyleczyl twojej choroby" to player
- remove 1 prismarine_crystals named "&f&libuprom" from the player
- on rightclick with lever:
- name of player's tool is "&f&lpudroderm":
- if {zdrowie::%player%} is 2:
- send "&8[&cEpidemia&8]&6 Wypiles lek. &aWyzdrowiales!" to player
- remove nausea and Slowness and weakness and poison and blindness from player
- remove 1 lever named "&f&lpudroderm" from the player
- show 100 villager happy particles at location of player offset by 0.8, 1.0, 0.8
- else:
- send "&8[&cEpidemia&8]&6 Posmarowales skore pudrem - ten lek nie wyleczyl twojej choroby" to player
- remove 1 lever named "&f&lPudroderm" from the player
- on consume of water_bottle:
- name of player's tool is "&f&lgripex":
- if {zdrowie::%player%} is 3:
- send "&8[&cEpidemia&8]&6 Wypiles lek. &aWyzdrowiales!" to player
- remove 1 water_bottle named "&f&lgripex" from the player
- remove nausea and Slowness and weakness and poison and blindness from player
- show 100 villager happy particles at location of player offset by 0.8, 1.0, 0.8
- else:
- send "&8[&cEpidemia&8]&6 Wypiles lek - ten lek nie wyleczyl twojej choroby" to player
- remove 1 water_bottle named "&f&libuprom" from the player
- on consume of water_bottle:
- name of player's tool is "&f&lantybiotyk":
- if {zdrowie::%player%} is 4:
- send "&8[&cEpidemia&8]&6 Wypiles lek. &aWyzdrowiales!" to player
- remove nausea and Slowness and weakness and poison and blindness from player
- remove 1 water_bottle named "&f&lantybiotyk" from the player
- show 100 villager happy particles at location of player offset by 0.8, 1.0, 0.8
- else:
- send "&8[&cEpidemia&8]&6 Wypiles lek - ten lek nie wyleczyl twojej choroby" to player
- remove 1 water_bottle named "&f&libuprom" from the player
- #TABLICZKI na leki
- on rightclick on sign:
- if line 2 contains "&a&lKup lek":
- if line 3 contains "&d&lIBUPROM":
- if line 4 contains "Cena: 680 PLN":
- if player's account is greater than 679:
- remove 680 from the player's account
- give 1 prismarine_crystals named "&f&libuprom" to player
- if line 3 contains "&d&lGRIPEX":
- if line 4 contains "Cena: 800 PLN":
- if player's account is greater than 799:
- remove 800 from the player's account
- give 1 water_bottle named "&f&lgripex" to player
- if line 3 contains "&d&lPUDRODERM":
- if line 4 contains "Cena: 770 PLN":
- if player's account is greater than 769:
- remove 770 from the player's account
- give 1 lever named "&f&lpudroderm" to player
- #TABLICZKA NA ULECZENIE
- on rightclick on sign:
- if line 2 contains "&4&l[Ulecz]":
- if {lek.on} is true:
- if player's account is greater than 7999:
- remove 8000 from the player's account
- remove nausea and Slowness and weakness and poison and blindness from player
- set {chrooba::%player%} to false
- send "&8[&cEpidemia&8]&a Zostales uleczony! Koszt uleczenia z tabliczki to &c8.000PLN"
- set {zdrowie::%player%} to 0
- else:
- send "&8[&cEpidemia&8] Nie masz wystarczajaco pieniedzy!"
- command /wkurzonakala [<text>]:
- permission: choroba.admin
- trigger:
- if arg 1 is "on":
- set {wkurzenie} to true
- send "&5Wkurzenie on :3" to player
- if arg 1 is "off":
- set {wkurzenie} to false
- send "&5Wkurzenie off :/" to player
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement