User987

Untitled

Oct 15th, 2014
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. on script load:
  2. if {anaranking::logi} is "tak":
  3. send "[AnaRanking] Skrypt zostal pomyslnie zaladowany" to the console
  4. send "[AnaRanking] Wersja: %{anaranking::version}% Autor: %{anaranking::author}%" to the console
  5. if folder "plugins/AnaRanking" doesn't exists:
  6. send "[AnaRanking] Folder AnaRanking nie istnieje i zostanie utworzony" to the console
  7. wait 1 tick
  8. create folder "plugins/AnaRanking"
  9. if file "plugins/AnaRanking/konfiguracja.yml" doesn't exists:
  10. send "[AnaRanking] Plik konfiguracyjny nie istnieje wiec zostal utworzony" to the console
  11. wait 1 tick
  12. create file "plugins/AnaRanking/konfiguracja.yml"
  13. send "[AnaRanking] Trwa uzupelnianie pliku konfiguracyjnego" to the console
  14. wf "logi: 'tak'" to "plugins/AnaRanking/konfiguracja.yml"
  15. wf "autor: 'anastair'" to "plugins/AnaRanking/konfiguracja.yml"
  16. wf "wersja: '1.0'" to "plugins/AnaRanking/konfiguracja.yml"
  17. set {anaranking::logi} to single value "logi" get of "plugins/AnaRanking/konfiguracja.yml"
  18. set {anaranking::author} to single value "autor" get of "plugins/AnaRanking/konfiguracja.yml"
  19. set {anaranking::version} to single value "wersja" get of "plugins/AnaRanking/konfiguracja.yml"
  20.  
  21. on script unload:
  22. if {anaranking::logi} is "tak":
  23. send "[AnaRanking] Skrypt zostal pomyslnie wylaczony" to the console
  24. send "[AnaRanking] Dziekuje za uzywanie anaranking" to the console
  25.  
  26. #Sprawdzanie nowych aktulizacji
  27. every 30 minutes:
  28. set {_anaranking} to result of connect to "http://anaranking.zlsw.pl/aktualnawersja.sk"
  29. if {_anarankingversion} is not {anaranking::version}:
  30. if {anaranking::logi} is "tak":
  31. send "" to the console
  32. send "" to the console
  33. send "[]=======================[]" to the console
  34. send "[AnaRanking] Twoja wersja skryptu jest nieaktualna!" to the console
  35. send "[AnaRanking] Twoja wersja: %{version}% a najnowsza wersja: %{_version}%" to the console
  36. send "[AnaRanking] Wpisz /anaranking aktulizacja lub wejdz na www.anaranking.zlsw.pl" to the console
  37. send "[]=======================[]" to the console
  38. send "" to the console
  39. send "" to the console
Advertisement
Add Comment
Please, Sign In to add comment