Qevix

[SiimplyRaports] v.1.2 (alpha)

Feb 19th, 2015
535
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.12 KB | None | 0 0
  1. #========================================
  2. # Skrypt By Qevix(RembitPL)
  3. # Wersja: v.1.2 alpha
  4. #========================================
  5. on script load:
  6. wait 2 seconds
  7. send "&8[&6SimplyRaports&8]&7 Skrypt zostal pomyslnie wczytany!" to console
  8. set {no.permission} to value "Brak uprawnien" get of "Raporty/config.yml"
  9. set {uzycie.bug} to value "Poprawne uzycie.Bug" get of "Raporty/config.yml"
  10. set {uzycie.zglos} to value "Poprawne uzycie.Zglos" get of "Raporty/config.yml"
  11. set {uzycie.propozycja} to value "Poprawne uzycie.Propozycja" get of "Raporty/config.yml"
  12. set {wersja} to "v1.2 (alpha)"
  13. set {nowa.wersja} to result of connect to "http://pastebin.com/raw.php?i=2Qfza0RM"
  14. {wersja} is not {nowa.wersja}:
  15. wait 5 seconds
  16. send "&8[&6SimplyRaports&8] &f[&4UWAGA&f]&7 Dostepna jest nowa wersja &cSimplyRaports" to console
  17. send "&8[&6SimplyRaports&8] &7Twoja wersja:&c v.1.2 (alpha)" to console
  18. send "&8[&6SimplyRaports&8] &7Najnowsza wersja:&c %{nowa.wersja}%" to console
  19. send "&8[&6SimplyRaports&8] &f[&4UWAGA&f]&7 Pobierz ja tu: http://pastebin.com/raw.php?i=2sLiHjix" to console
  20. else:
  21. send "&8[&6SimplyRaports&8] &7Posiadasz najnowsza wersje &aSimplyRaports" to console
  22. every 1200 seconds:
  23. {wersja} is not {nowa.wersja}:
  24. send "&8[&6SimplyRaports&8] &f[&4UWAGA&f]&7 Dostepna jest nowa wersja &cSimplyRaports" to console
  25. send "&8[&6SimplyRaports&8] &7Twoja wersja:&c v.1.2 (alpha)" to console
  26. send "&8[&6SimplyRaports&8] &7Najnowsza wersja:&c %{nowa.wersja}%" to console
  27. send "&8[&6SimplyRaports&8] &f[&4UWAGA&f]&7 Pobierz ja tu:&a http://pastebin.com/raw.php?i=2sLiHjix" to console
  28.  
  29. #
  30. #
  31. command /RaportyStworz:
  32. trigger:
  33. if file "Raporty/bug.yml" doesn't exists:
  34. create file "Raporty/bug.yml"
  35. send " &8[&6SimplyRaports&8]&7 Plik &cbug.yml&7 zostal pomyslnie &astworzony&7!" to console
  36. #
  37. else:
  38. delete file "Raporty/bug.yml"
  39. create file "Raporty/bug.yml"
  40. send " &8[&6SimplyRaports&8]&7 Plik &cbug.yml&7 zostal pomyslnie &cusuniety i &astworzony&7!" to console
  41. #
  42. #
  43. #
  44. if file "Raporty/config.yml" doesn't exists:
  45. create file "Raporty/config.yml"
  46. send " &8[&6SimplyRaports&8]&7 Plik &cconfig.yml&7 zostal pomyslnie &astworzony&7!" to console
  47. #
  48. else:
  49. delete file "Raporty/config.yml"
  50. create file "Raporty/config.yml"
  51. send " &8[&6SimplyRaports&8]&7 Plik &cconfig.yml&7 zostal pomyslnie &cusuniety i &astworzony&7!" to console
  52. #
  53. #
  54. #
  55. if file "Raporty/gracze.yml" doesn't exists:
  56. create file "Raporty/gracze.yml"
  57. send " &8[&6SimplyRaports&8]&7 Plik &cgracze.yml&7 zostal pomyslnie &astworzony&7!" to console
  58. #
  59. else:
  60. delete file "Raporty/gracze.yml"
  61. create file "Raporty/gracze.yml"
  62. send " &8[&6SimplyRaports&8]&7 Plik &cgracze.yml&7 zostal pomyslnie &cusuniety i &astworzony&7!" to console
  63. #
  64. #
  65. #
  66. if file "Raporty/propozycje.yml" doesn't exists:
  67. create file "Raporty/propozycje.yml"
  68. send " &8[&6SimplyRaports&8]&7 Plik &cpropozycje.yml&7 zostal pomyslnie &astworzony&7!" to console
  69. #
  70. else:
  71. delete file "Raporty/propozycje.yml"
  72. create file "Raporty/propozycje.yml"
  73. send " &8[&6SimplyRaports&8]&7 Plik &cpropozycje.yml&7 zostal pomyslnie &cusuniety i &astworzony&7!" to console
  74. #
  75. #
  76. wait 5 seconds
  77. wf "## ====================[ Konfiguracja Skryptu ]==================== " to "Raporty/config.yml"
  78. wf "## " to "Raporty/config.yml"
  79. wf "## Brak uprawnien - Chodzi o wiadomosc ktora bedzie sie wyswietlala graczowi kiedy uzyje komendy do ktorej nie ma uprawnien " to "Raporty/config.yml"
  80. wf "## Poprawne uzycie (Bug/Zglos/Propozycja) - Wiadomosc ktorea pojawi sie kiedy gracz zle wpisze komende lub nie napisze ktorejs czesci komendy " to "Raporty/config.yml"
  81. set "Brak uprawnien" to "Nie masz uprawnien aby uzyc tej komendy :3" in yaml file "Raporty/config.yml"
  82. set "Poprawne uzycie.Bug" to "Poprawne uzycie /bug <tresc buga>" in yaml file "Raporty/config.yml"
  83. set "Poprawne uzycie.Zglos" to "Poprawne uzycie /zglos <nazwa gracza> <zgloszenie>" in yaml file "Raporty/config.yml"
  84. set "Poprawne uzycie.Propozycja" to "Poprawne uzycie /propozycja <propozycja>" in yaml file "Raporty/config.yml"
  85. wf "## " to "Raporty/config.yml"
  86. wf "## KOLORY - Jezeli chcesz uzyska kolorowa wiadomosc uzyj ""\xa7"" lub "" ยง ""zamiast ""&""! Np. ""Ale dzis mamy §b wyjatkowo ladny \xa73 dzien"" " to "Raporty/config.yml"
  87. wf "## =================[ Koniec Konfiguracji Skryptu ]================ " to "Raporty/config.yml"
  88. wf "## v.1.2 (alpha)" to "Raporty/config.yml"
  89. #
  90. #
  91. #
  92. command /StworzRaporty:
  93. trigger:
  94. if player has permissions "raport.tworzenie":
  95. #
  96. if file "Raporty/bug.yml" doesn't exists:
  97. create file "Raporty/bug.yml"
  98. send " &8[&6SimplyRaports&8]&7 Plik &cbug.yml&7 zostal pomyslnie &astworzony&7!" to console
  99. #
  100. else:
  101. delete file "Raporty/bug.yml"
  102. create file "Raporty/bug.yml"
  103. send " &8[&6SimplyRaports&8]&7 Plik &cbug.yml&7 zostal pomyslnie &cusuniety i &astworzony&7!" to console
  104. #
  105. #
  106. #
  107. if player has permissions "raport.tworzenie":
  108. #
  109. if file "Raporty/config.yml" doesn't exists:
  110. create file "Raporty/config.yml"
  111. send " &8[&6SimplyRaports&8]&7 Plik &cconfig.yml&7 zostal pomyslnie &astworzony&7!" to console
  112. #
  113. else:
  114. delete file "Raporty/config.yml"
  115. create file "Raporty/config.yml"
  116. send " &8[&6SimplyRaports&8]&7 Plik &cconfig.yml&7 zostal pomyslnie &cusuniety i &astworzony&7!" to console
  117. #
  118. #
  119. #
  120. if player has permissions "raport.tworzenie":
  121. #
  122. if file "Raporty/gracze.yml" doesn't exists:
  123. create file "Raporty/gracze.yml"
  124. send " &8[&6SimplyRaports&8]&7 Plik &cgracze.yml&7 zostal pomyslnie &astworzony&7!" to console
  125. #
  126. else:
  127. delete file "Raporty/gracze.yml"
  128. create file "Raporty/gracze.yml"
  129. send " &8[&6SimplyRaports&8]&7 Plik &cgracze.yml&7 zostal pomyslnie &cusuniety i &astworzony&7!" to console
  130. #
  131. #
  132. #
  133. if player has permissions "raport.tworzenie":
  134. #
  135. if file "Raporty/propozycje.yml" doesn't exists:
  136. create file "Raporty/propozycje.yml"
  137. send " &8[&6SimplyRaports&8]&7 Plik &cpropozycje.yml&7 zostal pomyslnie &astworzony&7!" to console
  138. #
  139. else:
  140. delete file "Raporty/propozycje.yml"
  141. create file "Raporty/propozycje.yml"
  142. send " &8[&6SimplyRaports&8]&7 Plik &cpropozycje.yml&7 zostal pomyslnie &cusuniety i &astworzony&7!" to console
  143. #
  144. #
  145. #
  146. if player has permissions "raport.tworzenie":
  147. wait 5 seconds
  148. wf "## ====================[ Konfiguracja Skryptu ]==================== " to "Raporty/config.yml"
  149. wf "## " to "Raporty/config.yml"
  150. wf "## Brak uprawnien - Chodzi o wiadomosc ktora bedzie sie wyswietlala graczowi kiedy uzyje komendy do ktorej nie ma uprawnien " to "Raporty/config.yml"
  151. wf "## Poprawne uzycie (Bug/Zglos/Propozycja) - Wiadomosc ktorea pojawi sie kiedy gracz zle wpisze komende lub nie napisze ktorejs czesci komendy " to "Raporty/config.yml"
  152. set "Brak uprawnien" to "Nie masz uprawnien aby uzyc tej komendy :3" in yaml file "Raporty/config.yml"
  153. set "Poprawne uzycie.Bug" to "Poprawne uzycie /bug <tresc buga>" in yaml file "Raporty/config.yml"
  154. set "Poprawne uzycie.Zglos" to "Poprawne uzycie /zglos <nazwa gracza> <zgloszenie>" in yaml file "Raporty/config.yml"
  155. set "Poprawne uzycie.Propozycja" to "Poprawne uzycie /propozycja <propozycja>" in yaml file "Raporty/config.yml"
  156. wf "## " to "Raporty/config.yml"
  157. wf "## KOLORY - Jezeli chcesz uzyska kolorowa wiadomosc uzyj ""\xa7"" lub "" ยง ""zamiast ""&""! Np. ""Ale dzis mamy §b wyjatkowo ladny \xa73 dzien"" " to "Raporty/config.yml"
  158. wf "## =================[ Koniec Konfiguracji Skryptu ]================ " to "Raporty/config.yml"
  159. wf "## v.1.2 (alpha)" to "Raporty/config.yml"
  160. #
  161. #
  162. else:
  163. send " %{no.permission}%" to player
  164. #
  165. #======================================================================================================================================================
  166. #
  167. command /bug [<text>]:
  168. trigger:
  169. if player has permissions "raport.bug":
  170. if arg 1 is set:
  171. set "%player%.(%{ile.%player%}%)" to "%arg 1%" in yaml file "Raporty/bug.yml"
  172. send "&7Wyslales twojego &c%{ile.%player%}% &7buga do bazy danych: ""&c%arg 1%&7"" " to player
  173. add 1 to {ile.%player%}
  174. else:
  175. send "%{uzycie.bug}%" to player
  176. else:
  177. send " %{no.permission}%" to player
  178. #
  179. #
  180. command /zglos [<player>] [<text>]:
  181. trigger:
  182. if player has permissions "raport.zglos":
  183. if arg 1 is set:
  184. if arg 2 is set:
  185. set "%player%.%arg 1%.(%{ile.%player%}%)" to "%arg 2%" in yaml file "Raporty/gracze.yml"
  186. send "&7Wyslales&c zgloszenie na gracza &c%arg 1% &7do bazy danych: ""&c%arg 2%&7"" " to player
  187. else:
  188. send "%{uzycie.zglos}%" to player
  189. else:
  190. send "%{uzycie.zglos}%" to player
  191. else:
  192. send " %{no.permission}%" to player
  193. #
  194. #
  195. command /propozycja [<text>]:
  196. trigger:
  197. if player has permissions "raport.propozycja":
  198. if arg 1 is set:
  199. set "%player%" to "%arg 1%" in yaml file "Raporty/propozycje.yml"
  200. send "&7Wyslales&c propozycje do bazy danych: ""&c%arg 1%&7"" " to player
  201. else:
  202. send "%{uzycie.propozycje}%" to player
  203. else:
  204. send " %{no.permission}%" to player
  205. #
  206. #
  207. variables:
  208. {ilebug.%player%} = 1
Advertisement
Add Comment
Please, Sign In to add comment