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 "kupa" to {slowa::*}
- add "knugi" to {slowa::*}
- command /gennnnnnnnnn:
- trigger:
- if {slowa::*} is not set:
- send "&cSlowniczek nie jest zapelniony!"
- 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 "&cSlowo do odgadniecia to: &a%{slowo.cale}%"
- exit loop
- on chat:
- if "%message%" is "%{slowo.cale.cale}%":
- cancel event
- broadcast "&cGracz &6%player% &codgadl slowo: &a%{slowo.cale.cale}%"
- give 2 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