Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Kod na dodawanie i zapamietywanie w 'bazie' slow :)
- on script load:
- delete {slowa::*}
- if {slowa::*} is not set:
- add "mleko" to {slowa::*}
- add "dirt" to {slowa::*}
- add "biurko" to {slowa::*}
- add "minecraft" to {slowa::*}
- add "krowa" to {slowa::*}
- add "trawa" to {slowa::*}
- add "woda" to {slowa::*}
- add "pochylnia" to {slowa::*}
- add "swinia" to {slowa::*}
- add "lusterko" to {slowa::*}
- add "czekolada" to {slowa::*}
- add "spodnie" to {slowa::*}
- add "lampka" to {slowa::*}
- add "kartka" to {slowa::*}
- add "pilot" to {slowa::*}
- add "telefon" to {slowa::*}
- add "monitor" to {slowa::*}
- add "komputer" to {slowa::*}
- add "laptop" to {slowa::*}
- add "konkurs" to {slowa::*}
- add "kod" to {slowa::*}
- add "lyzka" to {slowa::*}
- add "poczta" to {slowa::*}
- add "glosniki" to {slowa::*}
- add "lodowka" to {slowa::*}
- add "ul" to {slowa::*}
- add "szafa" to {slowa::*}
- add "kabel" to {slowa::*}
- add "misiek" to {slowa::*}
- add "olowek" to {slowa::*}
- add "miska" to {slowa::*}
- add "pies" to {slowa::*}
- add "kot" to {slowa::*}
- add "kon" to {slowa::*}
- add "knur" to {slowa::*}
- add "kajak" to {slowa::*}
- add "mysz" to {slowa::*}
- add "szczur" to {slowa::*}
- add "tibia" to {slowa::*}
- add "kolowrotek" to {slowa::*}
- add "gumka" to {slowa::*}
- add "dlugopis" to {slowa::*}
- add "drewno" to {slowa::*}
- add "drzewo" to {slowa::*}
- add "abc" to {slowa::*}
- add "alfabet" to {slowa::*}
- add "szczypce" to {slowa::*}
- add "bajka" to {slowa::*}
- add "patryk" to {slowa::*}
- add "knugi" to {slowa::*}
- command /gennnnnnnnnn:
- trigger:
- if {slowa::*} is not set:
- send "&cSlowniczek nie jest zapelniony!"
- stop
- if sender is player:
- if player doesn't have permission "pochylnia.rozsypanka":
- stop
- #Zabezpieczenie aby skrypt nie wywalal bledow
- loop {slowa::*}:
- if length of loop-value is smaller than 2:
- loop all players:
- if loop-player has permission "slowo.admin":
- loop 3 times:
- send "&cSlowo nr &e%loop-index% &7- &6%loop-value% &cposiada mniej znakow niz 2!" to loop-player
- stop
- loop 3 times:
- send "Slowo nr %loop-index% - %loop-value% posiada mniej znakow niz 2!" to console
- stop
- set {_o.l.s} to size of {slowa::*}
- loop 10 times:
- if {_o.loop} is set:
- exit loop
- loop {_o.l.s} times:
- chance of 100 / {_o.l.s}%:
- set {_o.loop} to loop-number-2
- exit loop
- loop {slowa::*}:
- if "%loop-index%" is "%{_o.loop}%":
- set {slowo.cale.cale} to loop-value
- set {_slowo.length} to length of loop-value
- loop {_slowo.length} times:
- set {_slowo.%loop-number%} to subtext of loop-value from loop-number to loop-number
- add "%{_slowo.%loop-number%}%" to {_slowo::*}
- set {slowo.cale} to ""
- loop 5 times:
- if {_slowo::*} is not set:
- exit loop
- loop {_slowo::*}:
- set {_slowo.r} to random element of {_slowo::*}
- set {slowo.cale} to "%{slowo.cale}%%{_slowo.r}%"
- remove {_slowo.r} from {_slowo::*}
- broadcast "&8[&6Slowo&8] &cSlowo do odgadniecia to: &a%{slowo.cale}%"
- exit loop
- on chat:
- if "%message%" is "%{slowo.cale.cale}%":
- cancel event
- broadcast "&8[&6Slowo&8] &cGracz &6%player% &codgadl slowo: &a%{slowo.cale.cale}%"
- give diamond to the player
- clear {slowo.cale}
- clear {slowo.cale.cale}
- every 1 second:
- if {slowo.time} is not set:
- set {slowo.time} to 60 * 15
- if {slowo.time} is larger than 0:
- remove 1 from {slowo.time}
- if {slowo.time} is 0:
- execute console command "gennnnnnnnnn"
- set {slowo.time} to 60 * 15
Advertisement
Add Comment
Please, Sign In to add comment