#=====================================================# # SKRYPT NAPISANY PRZEZ PGMAJSTER # # SKRIPT.PL & PGMAJSTER.EU # # ZAKAZ KOPIOWANIA ORAZ ROZPRZESZCZENIANIA SKRYPTU # #=====================================================# #=====================================================# # WSTĘPNA KONFIGURACJA # #=====================================================# variables: {uzaleznienie.%player%} = 0 #uzaleznienie, DOMYŚLNIE 0, NIE EDYTUJ! options: skrypt: NewDrink #NAZWA SKRYPTU, NIE EDYTOWAĆ! mob: zombie #NAZWA MOBA PO ANG. NP. CREEPER, ZOMBIE, SKELETON mob2: creeper #NAZWA MOBA PO ANG. NP. CREEPER, ZOMBIE, SKELETON mob3: skeleton #NAZWA MOBA PO ANG. NP. CREEPER, ZOMBIE, SKELETON tag: &f&l[&6&lNewDrink&f&l] #TAG PRZED KAŻDĄ WIADOMOŚCIĄ permissions: newdrink.debug #PERMISSIONS DO KOMENDY /ND DEBUG times: 30 #CO ILE MINUT MA ZMNIEJSZAĆ POZIOM UZALEŻNIENIA time: 10 #CO ILE SEKUND MA BIĆ GRACZA (ZABIERA 1 LUB 2 SERCA, ZALEŻY OD POZIOMU UZALEŻNIENIA) szansa.uzaleznienie1: 50 #SZANSA NA USUNIECIE 1 PKT UZALEZNIENIA szansa.uzaleznienie2: 50 #SZANSA NA EFEKT szansa.uzaleznienie3: 50 #SZANSA NA USUNIECIE 2 PKT UZALEZNIENIA szansa.uzaleznienie4: 50 #SZANSA NA EFEKT #=====================================================# # SZANSA NA DROP DRINKÓW # #=====================================================# szansa.cola: 10 #SZANSA NA WYDROPIENIE Z MOBA COLI szansa.pepsi: 25 #SZANSA NA WYDROPIENIE Z MOBA PEPSI szansa.wodka: 20 #SZANSA NA WYDROPIENIE Z MOBA WÓDKI szansa.piwo: 90 #SZANSA NA WYDROPIENIE Z MOBA PIWA szansa.woda: 10 #SZANSA NA WYDROPIENIE Z MOBA WODY #=====================================================# # DRINKI # #=====================================================# drink1: Coca-Cola #DRINK: COCA-COLA drink2: Pepsi #DRINK: PEPSI drink3: Wódka #DRINK: WÓDKA drink4: Piwo #DRINK: PIWO drink5: Woda #DRINK: WODA napoje: 5 #=====================================================# # DODATKOWE KOMENDY # # NIE POTRZEBNA ADNOTACJA DO TYCH LINIJEK! # #=====================================================# command /nd []: trigger: if arg 1 is not set: send "{@tag}&7 Wpisz /nd help" to player if arg 1 is "help": send "{@tag}&7 Dostepne komendy:" to player send "&7/nd list - lista napojow" to player send "&7/nd stan - sprawdzenie stanu uzależnienia" to player send "&7/nd debug - debugowanie, sprawdzanie ustawien" to player send "&7/nd reload - przeladowanie skryptu" to player if arg 1 is "list": send "{@tag}&7 Napoje:" to player send "{@tag}&7 {@drink1}" to player send "{@tag}&7 {@drink2}" to player send "{@tag}&7 {@drink3}" to player send "{@tag}&7 {@drink4}" to player send "{@tag}&7 {@drink5}" to player if arg 1 is "debug": if player has permission "{@permissions}": send "{@tag}&c Debugowanie wlaczone..." to player send "{@tag}&7 Nazwa skryptu: {@skrypt}" to player send "{@tag}&7 Liczba napojow: {@napoje}" to player send "{@tag}&7 Tag: {@tag}" to player send "{@tag}&7 Permissions: {@permissions}" to player send "{@tag}&7 Mob 1: {@mob}" to player send "{@tag}&7 Mob 2: {@mob2}" to player send "{@tag}&7 Mob 3: {@mob3}" to player send "{@tag}&a Debugowanie wylaczone..." to player else: send "{@tag}&c Nie masz uprawnien!" to player if arg 1 is "reload": execute player command "/sk reload {@skrypt}" if arg 1 is "stan": if {uzaleznienie.%player%} is 0: send "{@tag}&7 Nic nie piles? Ale z Ciebie baba!" to player if {uzaleznienie.%player%} is 1: send "{@tag}&7 Nie jest tak zle, dopiero 1 poziom..." to player if {uzaleznienie.%player%} is 2: send "{@tag}&7 Dopiero tyle wypiles?" to player if {uzaleznienie.%player%} is 3: send "{@tag}&7 Oj pilnuj sie!" to player if {uzaleznienie.%player%} is 4: send "{@tag}&7 Bosko! Jeszcze jedna buteleczka i.. zaczna sie problemy!" to player if {uzaleznienie.%player%} is 5: send "{@tag}&7 Nie za duzo? Zaraz bedziesz mial powazny problem..." to player if {uzaleznienie.%player%} is 6: send "{@tag}&7 Jeszcze 4 piwka!" to player if {uzaleznienie.%player%} is 7: send "{@tag}&c Jeszcze 3 piwka i..." to player if {uzaleznienie.%player%} is 8: send "{@tag}&c Zatrzymaj sie! Jeszcze dwa piwka i zginiesz!" to player if {uzaleznienie.%player%} is 9: send "{@tag}&c Zeby nie bylo, ze nie ostrzegalem! Jedno piwo i watroba Ci wysiadzie!" to player if {uzaleznienie.%player%} is 10: send "{@tag}&c Zgon" to player send "{@tag}&7 Twoje pragnienie: %{uzaleznienie.%player%}%" to player stop #================================================================# # EFEKTY PO WYPICIU DRINKÓW # #================================================================# on player drink of water bottle: #GDY GRACZ WYPIJE BUTELKE WODY if name of event-item is "&f&l{@drink1}": #Z NAZWĄ {@DRINK1} apply speed to player for 1 minute #OTRZYMANIE EFEKTU SZYBKOŚCI if name of event-item is "&f&l{@drink2}": #DALEJ TO SAMO apply speed 2 to player for 1 minute if name of event-item is "&f&l{@drink3}": apply nausea to player for 3 minute apply poison to player for 1 minute add 2 to {uzaleznienie.%player%} if name of event-item is "&f&l{@drink4}": apply poison to player for 0.3 minute apply nausea to player for 1 minute add 1 to {uzaleznienie.%player%} if name of event-item is "&f&l{@drink5}": apply jump to player for 1 minute on player drink of milk bucket: #GDY GRACZ NAPIJE SIE MLEKA if {uzaleznienie.%player%} is bigger than 0: #GDY STATUS UZALEZNIENIA JEST WIEKSZY OD 0 remove 1 from {uzaleznienie.%player%} #USUWAMY 1 PKT UZALEZNIENIA send "{@tag}&7 Napiles sie mleka, poziom uzaleznienia sie zmniejszyl!" to player #WIADOMOŚĆ stop #STOPUJEMY #=====================================================# # DROP Z MOBÓW # #=====================================================# on death of {@mob} and {@mob2} and {@mob3}: #GDY ZABIJEMY JEDNEGO Z 3 MOBÓW attacker is a player #ATAKUJĄCY TO GRACZ/MY chance of {@szansa.cola}%: #SZANSA NA COLE give 1 water bottle named "&f&l{@drink1}" to attacker #OTRZYMANIE DRINKA send "{@tag}&7 Otrzymales &f&l{@drink1}" to attacker #WYSŁANIE WIADOMOŚCI O OTRZYMANIU DRINA chance of {@szansa.pepsi}%: #NIŻEJ TO SAMO! give 1 water bottle named "&f&l{@drink2}" to attacker send "{@tag}&7 Otrzymales &f&l{@drink2}" to attacker chance of {@szansa.wodka}%: give 1 water bottle named "&f&l{@drink3}" to attacker send "{@tag}&7 Otrzymales &f&l{@drink3}" to attacker chance of {@szansa.piwo}%: give 1 water bottle named "&f&l{@drink4}" to attacker send "{@tag}&7 Otrzymales &f&l{@drink4}" to attacker chance of {@szansa.woda}%: give 1 water bottle named "&f&l{@drink5}" to attacker send "{@tag}&7 Otrzymales &f&l{@drink5}" to attacker #===============================================================# # SPRAWDZANIE UZALEZNIENIA # #===============================================================# every 30 seconds: #CO 30 SEKUND loop all players: #ZAPĘTLAMY WSZYSTKICH GRACZY ONLINE if {uzaleznienie.%loop-player%} is bigger than 4: #JEŻELI KTOŚ MA POZIOM uzaleznienieU WIĘKSZY NIŻ 5 send "{@tag}&c Jestes uzalezniony od alkoholu!" to loop-player #WYSYŁA WIADOMOŚĆ if {uzaleznienie.%loop-player%} is bigger than 9: #JEŻELI KTOŚ MA POZIOM uzaleznienieU WIĘKSZY NIŻ 9 (10) send "{@tag}&c Wysiadla Ci watroba! Umarles..." to loop-player #WYSYŁAMY WIADOMOŚĆ O ZGONIE set {uzaleznienie.%loop-player%} to 0 #RESETUJEMY POZIOM uzaleznienieU kill loop-player #ZABIJAMY GRACZA stop #STOPUJEMY every {@times} minutes: #NIŻEJ NIE POTRZEBA ADNOTACJI, NIE POWINNO SIĘ EDYTOWAĆ. :) loop all players: if {uzaleznienie.%loop-player%} is 1: chance of {@szansa.uzaleznienie1}%: remove 1 from {uzaleznienie.%loop-player%} chance of {@szansa.uzaleznienie2}%: send "{@tag}&c Jestes pijany!" to loop-player apply nausea 2 to the loop-player for 30 minutes send "{@tag}&c Napij sie mleka, a troche przejdzie." to loop-player if {uzaleznienie.%loop-player%} is bigger than 1: chance of {@szansa.uzaleznienie3}%: remove 2 from {uzaleznienie.%loop-player%} chance of {@szansa.uzaleznienie4}%: send "{@tag}&c Jestes pijany!" to loop-player apply nausea 2 to the loop-player for 30 minutes send "{@tag}&c Napij sie mleka, a troche przejdzie." to loop-player stop every {@time} seconds: loop all players: if {uzaleznienie.%loop-player%} is 9: damage loop-player by 2 hearts send "{@tag}&c Twoje uzaleznienie sie nasila!" to loop-player if {uzaleznienie.%loop-players%} is 5: damage loop-player by 1 hearts send "{@tag}&c Twoje uzaleznienie sie nasila!" to loop-player stop