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
- {_krop.czas::*} = 15
- 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
- on first join:
- set {zdrowie::%player%} to 0
- set {kroplowka::%player%} to false
- on join:
- if {zdrowie::%player%} is not 1 or 2 or 3 or 4 or 5:
- set {zdrowie::%player%} to 0
- if {kroplowka::player-arg} is not true:
- set {kroplowka::player-arg} to false
- command /lekarzustaw [<player>] [<text>]:
- permission: choroba.admin
- trigger:
- if arg 1 is not set:
- send "&cPrawidloweuzycie: /lekarzustaw <nick> <1/0>"
- if arg 1 is set:
- if arg 2 is not set:
- send "&cPrawidloweuzycie: /lekarzustaw <nick> <1/0> = 1=awans, 0=degrad"
- if arg 2 is "1":
- set {lekarz::%player-arg%} to 1
- if arg 2 is "0":
- set {lekarz::%player-arg%} to 0
- 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 {lekarz::%loop-player%} is 1:
- add 1 to {lekarze}
- loop {lekarze} times:
- loop all players:
- if {lekarz::%loop-player%} is not set:
- 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::*}
- 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
- 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}%"
- send "zmienna %{lekarz::%player%}%"
- send "krop.czas: %{_krop.czas::*}%"
- 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 or 5:
- 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
- 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 {lekarz::%loop-player%} is 1:
- add 1 to {lekarze}
- loop {lekarze} times:
- loop all players:
- if loop-player is "xxdamixx":
- send "&6Nie zostajesz zarazony :)" to loop-player
- if loop-player is not "xxdamixx":
- if {lekarz::%loop-player%} is not set:
- if {zdrowie::%loop-value-2%} is 0:
- add loop-player to {chory::*}
- if {lekarz::%loop-player%} is 0:
- if {zdrowie::%loop-value-2%} is 0:
- 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
- delete {chorzy::*}
- 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 1 is not set:
- send "&8[&dBadanie&8]&f Dostepne badania: &cwzrok, skora, brzuch"
- 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 {zdrowie::%player-arg%} is 5: #zatrucie
- 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
- if {zdrowie::%player-arg%} is 5: #zatrucie
- send "&8[&dBadanie&8]&f Wyglada na to, ze oczy na swiatlo reaguja prawidlowo" to player
- if arg 1 is "brzuch":
- send "&8[&dBadanie&8]&7 Nastepuje badanie brzucha" to player-arg
- if {zdrowie::%player-arg%} is not set:
- send "&8[&dBadanie&8]&f Nic nie wstazuje na nieprawidlowanie funkcjonowanie ukladu pokarmowego" to player
- if {zdrowie::%player-arg%} is 0:
- send "[&dBadanie&8]&f Nic nie wstazuje na nieprawidlowanie funkcjonowanie ukladu pokarmowego" to player
- if {zdrowie::%player-arg%} is 1: #bol glowy
- send "&8[&dBadanie&8]&f Nic nie wstazuje na nieprawidlowanie funkcjonowanie ukladu pokarmowego" to player
- if {zdrowie::%player-arg%} is 2: #ospa
- send "&8[&dBadanie&8]&f Nic nie wstazuje na nieprawidlowanie funkcjonowanie ukladu pokarmowego" to player
- if {zdrowie::%player-arg%} is 3: #grypa
- send "&8[&dBadanie&8]&f Nic nie wstazuje na nieprawidlowanie funkcjonowanie ukladu pokarmowego" to player
- if {zdrowie::%player-arg%} is 4: #zapalenie
- send "&8[&dBadanie&8]&f Nic nie wstazuje na nieprawidlowanie funkcjonowanie ukladu pokarmowego" to player
- if {zdrowie::%player-arg%} is 5: #zatrucie
- send "&8[&dBadanie&8]&f Pacjenta wyraznie boli brzuch." 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 "&8[&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"
- if {zdrowie::%target%} is 5: #zatrucie
- send "&8[&dBadanie&8]&f Temperatura: &736,6°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
- if {zdrowie::%target%} is 5: #zatrucie
- send "&8[&dBadanie&8]&f Badanie nie wykazuje nieprawidłowego funkcjonowania serca ani pluc" to player
- #KROPLOWKA
- command /kroplowka [<player>]:
- permission: choroba.ulecz
- trigger:
- if arg 1 is not set:
- send "&8[&aLeczenie&8] &cMusisz podac nick gracza"
- if arg 1 is set:
- if {zdrowie::%arg-1%} is 1 or 2 or 3 or 4 or 5:
- send "&8[&aLeczenie&8] &fLekarz podlacza kroplowke, aby nawodnic organizm. &cPrzez 30s prosze sie nie ruszac!" to player-arg
- send "&8[&aLeczenie&8] &fPodlaczyles gracz pod kroplowke, przez 30s nie powinien sie ruszac." to player
- set {kroplowka::player-arg} to true
- set {_kl} to location of player-arg
- loop 30 times:
- wait 1 second
- if location of player-arg is not {_kl}:
- teleport player-arg to {_kl}
- delete {_kl}
- set {kroplowka::player-arg} to false
- remove nausea and Slowness and weakness and poison and blindness from player-arg
- set {zdrowie::%player%} to 0
- send "&8[&cEpidemia&8] &aTwoj organizm zostal nawodniony oraz objawy zniknely! Mozesz wracac do domu." to player-arg
- show 100 villager happy particles at location of player-arg offset by 0.8, 1.0, 0.8
- #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
- if arg 1 is "deespa":
- give 1 beetroot_seeds named "&f&ldeespa" 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
- set {zdrowie::%player%} to 0
- 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
- set {zdrowie::%player%} to 0
- 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
- set {zdrowie::%player%} to 0
- 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
- set {zdrowie::%player%} to 0
- 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
- every 30 second:
- loop all players:
- wait 1 tick
- if {zdrowie::loop-player} is 1 or 2 or 3 or 4:
- send "&8[&cEpidemia&8] &eJestes chory, zglos sie do lekarza badz udaj sie do szpitala!" to loop-value
- if {zdrowie::loop-player} is 5: #bol brzucha
- send "&8[&cEpidemia&8] &6Boli cie brzuch, lepiej zglos sie do lekarza badz udaj sie do apteki po leki!" to loop-value
- on drink milk:
- if {zdrowie::%player%} is 1 or 2 or 3 or 4 or 5:
- cancel event
- send "&8[&cEpidemia&8]&6 Aby sie uleczyc musisz udac sie do lekarza! Mloko nie pomoze."
- #===========================================================================================================
- # ZATRUCIA
- #===========================================================================================================
- on consume of rotten_flesh:
- if {lek.on} is true:
- set {zdrowie::%player%} to 5
- apply nausea potion of tier 2 to the player for 999999 minutes
- send "&8[&cEpidemia&8] &6Zatrules sie zgnilym miesem! Udaj sie do lekarza, badz do apteki po leki na bol brzucha." to player
- on consume of potato or poisonous_potato:
- if {lek.on} is true:
- set {zdrowie::%player%} to 5
- apply nausea potion of tier 2 to the player for 999999 minutes
- send "&8[&cEpidemia&8] &6Zatrules sie surowym ziemniakiem! Udaj sie do lekarza, badz do apteki po leki na bol brzucha." to player
- on right click with beetroot_seeds:
- name of player's tool is "&f&ldeespa":
- if {zdrowie::%player%} is 5:
- send "&8[&cEpidemia&8]&6 Zjadles tabletke, na jakis czas brzuch przestal cie bolec." to player
- remove 1 beetroot_seeds named "&f&ldeespa" from the player
- remove nausea from player
- wait 10 minutes
- apply nausea potion of tier 2 to the player for 999999 minutes
- send "&8[&cEpidemia&8]&6 Tabletki przestaly dzialac, udaj sie do lekarza, aby calkowicie wyleczyc zatrucie, badz kup kolejne leki, aby zyskac czas." to player
- else:
- send "&8[&cEpidemia&8]&6 Zjadles tabletke - ten lek nie wyleczyl twojej choroby" to player
- remove 1 beetroot_seeds named "&f&ldeespa" from the player
- on rightclick on sign:
- if line 1 contains "&f&lKup lek:":
- if line 2 contains "&d&ldeespa":
- if line 3 contains "Cena: &2200PLN":
- if {lek.on} is true:
- if player's account is greater than 199:
- remove 200 from the player's account
- give 1 beetroot_seeds named "&f&ldeespa" to player
- send "&8[&3&lApteka&8] &fOtrzymales lek na zlagodzenie bolu brzucha, aby go calkowicie wyleczyc udaj sie do lekarza. Z twojego konta pobrano &2200PLN" to player
- command /operacja [<player>] [<text>]:
- permission: choroba.ulecz
- trigger:
- if arg 1 is set:
- if arg 2 is set:
- if player-arg's account is greater than 4999:
- remove 5000 from the player-arg's account
- add 1000 to the player's account
- execute console command "skin set %arg 1% %arg 2%"
- send "&8[&cOperacja&8] &bTwoj skin zostal zmieniony na %arg 2% &7(Koszt to &c5000 PLN&7)." to player-arg
- send "&8[&cOperacja&8] &cZabrano ci &l5000 PLN" to player-arg
- send "&8[&cOperacja&8] &bZmieniles skin gracza &3%arg 1% na %arg 2%"
- send "&8[&cOperacja&8] &aDostales &l1000 PLN"
- wait 5 seconds
- execute console command "skin set %arg 1% %arg 2%"
- else:
- send "&8>> &cGracz nie posiada pieniedzy na operacje!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement