Guest User

Untitled

a guest
Dec 11th, 2014
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. command /los [<text>]:
  2. trigger:
  3. if arg 1 is not set:
  4. send "Wprowadz slowo do zmiany znakow:"
  5. stop
  6. if length of arg 1 is smaller than 2:
  7. send "Argument musi miec wiecej jak dwa znaki!"
  8. stop
  9. set {_slowo.length} to length of arg 1
  10. loop {_slowo.length} times:
  11. set {_slowo.%loop-number%} to subtext of arg 1 from loop-number to loop-number
  12. add "%{_slowo.%loop-number%}%" to {_slowo::*}
  13. set {_slowo.cale} to ""
  14. loop 5 times:
  15. if {_slowo::*} is not set:
  16. exit loop
  17. loop {_slowo::*}:
  18. set {_slowo.r} to random element of {_slowo::*}
  19. set {_slowo.cale} to "%{_slowo.cale}%%{_slowo.r}%"
  20. remove {_slowo.r} from {_slowo::*}
  21. send "&cSlowo &6'%arg 1%' &cprzeksztalcilem w: &a'%{_slowo.cale}%'"
Advertisement
Add Comment
Please, Sign In to add comment