knugi

Untitled

Jan 29th, 2015
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.55 KB | None | 0 0
  1. #Kod na dodawanie i zapamietywanie w 'bazie' slow :)
  2. on script load:
  3. delete {slowa::*}
  4. if {slowa::*} is not set:
  5. add "mleko" to {slowa::*}
  6. add "dirt" to {slowa::*}
  7. add "biurko" to {slowa::*}
  8. add "minecraft" to {slowa::*}
  9. add "krowa" to {slowa::*}
  10. add "trawa" to {slowa::*}
  11. add "woda" to {slowa::*}
  12. add "pochylnia" to {slowa::*}
  13. add "swinia" to {slowa::*}
  14. add "lusterko" to {slowa::*}
  15. add "czekolada" to {slowa::*}
  16. add "spodnie" to {slowa::*}
  17. add "lampka" to {slowa::*}
  18. add "kartka" to {slowa::*}
  19. add "pilot" to {slowa::*}
  20. add "telefon" to {slowa::*}
  21. add "monitor" to {slowa::*}
  22. add "komputer" to {slowa::*}
  23. add "laptop" to {slowa::*}
  24. add "konkurs" to {slowa::*}
  25. add "kod" to {slowa::*}
  26. add "lyzka" to {slowa::*}
  27. add "poczta" to {slowa::*}
  28. add "glosniki" to {slowa::*}
  29. add "lodowka" to {slowa::*}
  30. add "ul" to {slowa::*}
  31. add "szafa" to {slowa::*}
  32. add "kabel" to {slowa::*}
  33. add "misiek" to {slowa::*}
  34. add "olowek" to {slowa::*}
  35. add "miska" to {slowa::*}
  36. add "pies" to {slowa::*}
  37. add "kot" to {slowa::*}
  38. add "kon" to {slowa::*}
  39. add "knur" to {slowa::*}
  40. add "kajak" to {slowa::*}
  41. add "mysz" to {slowa::*}
  42. add "szczur" to {slowa::*}
  43. add "tibia" to {slowa::*}
  44. add "kolowrotek" to {slowa::*}
  45. add "gumka" to {slowa::*}
  46. add "dlugopis" to {slowa::*}
  47. add "drewno" to {slowa::*}
  48. add "drzewo" to {slowa::*}
  49. add "abc" to {slowa::*}
  50. add "alfabet" to {slowa::*}
  51. add "szczypce" to {slowa::*}
  52. add "bajka" to {slowa::*}
  53. add "patryk" to {slowa::*}
  54. add "knugi" to {slowa::*}
  55. command /gennnnnnnnnn:
  56. trigger:
  57. if {slowa::*} is not set:
  58. send "&cSlowniczek nie jest zapelniony!"
  59. stop
  60. if sender is player:
  61. if player doesn't have permission "pochylnia.rozsypanka":
  62. stop
  63. #Zabezpieczenie aby skrypt nie wywalal bledow
  64. loop {slowa::*}:
  65. if length of loop-value is smaller than 2:
  66. loop all players:
  67. if loop-player has permission "slowo.admin":
  68. loop 3 times:
  69. send "&cSlowo nr &e%loop-index% &7- &6%loop-value% &cposiada mniej znakow niz 2!" to loop-player
  70. stop
  71. loop 3 times:
  72. send "Slowo nr %loop-index% - %loop-value% posiada mniej znakow niz 2!" to console
  73. stop
  74. set {_o.l.s} to size of {slowa::*}
  75. loop 10 times:
  76. if {_o.loop} is set:
  77. exit loop
  78. loop {_o.l.s} times:
  79. chance of 100 / {_o.l.s}%:
  80. set {_o.loop} to loop-number-2
  81. exit loop
  82. loop {slowa::*}:
  83. if "%loop-index%" is "%{_o.loop}%":
  84. set {slowo.cale.cale} to loop-value
  85. set {_slowo.length} to length of loop-value
  86. loop {_slowo.length} times:
  87. set {_slowo.%loop-number%} to subtext of loop-value from loop-number to loop-number
  88. add "%{_slowo.%loop-number%}%" to {_slowo::*}
  89. set {slowo.cale} to ""
  90. loop 5 times:
  91. if {_slowo::*} is not set:
  92. exit loop
  93. loop {_slowo::*}:
  94. set {_slowo.r} to random element of {_slowo::*}
  95. set {slowo.cale} to "%{slowo.cale}%%{_slowo.r}%"
  96. remove {_slowo.r} from {_slowo::*}
  97. broadcast "&8[&6Slowo&8] &cSlowo do odgadniecia to: &a%{slowo.cale}%"
  98. exit loop
  99. on chat:
  100. if "%message%" is "%{slowo.cale.cale}%":
  101. cancel event
  102. broadcast "&8[&6Slowo&8] &cGracz &6%player% &codgadl slowo: &a%{slowo.cale.cale}%"
  103. give diamond to the player
  104. clear {slowo.cale}
  105. clear {slowo.cale.cale}
  106.  
  107. every 1 second:
  108. if {slowo.time} is not set:
  109. set {slowo.time} to 60 * 15
  110. if {slowo.time} is larger than 0:
  111. remove 1 from {slowo.time}
  112. if {slowo.time} is 0:
  113. execute console command "gennnnnnnnnn"
  114. set {slowo.time} to 60 * 15
Advertisement
Add Comment
Please, Sign In to add comment