Guest User

MinerStats 1.0

a guest
Oct 20th, 2013
2,517
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 4.54 KB | None | 0 0
  1. #=========================# Początek całego skryptu #=========================#
  2.  
  3. #|--------------------------------------------------|#
  4. #|Skrypt jest chroniony prawami autorskimi          |#
  5. #|Autorem skryptu jest xCrysiSx                     |#
  6. #|Wersja skryptu 1.0                                |#
  7. #|Zakaz kopiowania, podszywania sie pod autora!     |#
  8. #|Zakaz zmieniania nazwy autora skryptu!            |#
  9. #|--------------------------------------------------|#
  10. options:
  11. #=========================# Ustawienia dla gracza #=========================#
  12.     pkt: 10 #Ilosc potrzebnych punktow do awansowania na kolejny lvl
  13.     procent: 100 #Ilosc procent na wykopanie 1 punkta expa (lvl)
  14.     blok: stone #Po wykopaniu jakiego bloku ma dodawac punkty ?
  15.     wersja: 1.0 #Wersja skryptu (linijka dla autora skryptu)
  16.     skname: MinerStats #Nazwa skryptu
  17. #=========================# Koniec ustawien dla gracza #=========================#
  18.  
  19. #=========================# Variables skryptu, jezeli sie nie znasz nie ruszaj! #=========================#
  20. variables:
  21.     {lvl.%player%} = 0
  22.     {plvl.%player%} = 0
  23.     {pplvl.%player%} = false
  24. #=========================# Koniec Variables skryptu! #=========================#
  25.  
  26. #=========================# Kod skryptu, jezeli sie nie znasz nie ruszaj! #=========================#
  27. on mine of {@blok}:
  28.     if {pplvl.%player%} is true:
  29.         chance of {@procent}%:
  30.             add 1 to {lvl.%player%}
  31.         if {lvl.%player%} is {@pkt}:
  32.             set {lvl.%player%} to 0
  33.             add 1 to {plvl.%player%}
  34.             send "&aGratulacje awansowales na kolejny lvl kopania!"
  35.             execute console command "playsound random.levelup %player%"
  36.             if {plvl.%player%} is 30 or 40 or 50 or 60 or 70 or 80 or 90:
  37.                 broadcast "&aGracz &3%player% &aawansowal na %{plvl.%player%}% lvl kopania!"
  38.             if {plvl.%player%} is 100:
  39.                 if {pplvl.%player%} is true:
  40.                     set {pplvl.%player%} to false
  41.                     broadcast "&aGracz &3%player% &aawansowal na 100 lvl kopania (maksymalny)!"
  42.                     stop
  43. on Skript start:
  44.     send "" to console
  45.     send "" to the console
  46.     send "" to the console
  47.     send "&c###################################################" to the console
  48.     send "&6Nazwa skryptu: &7MinerStats" to the console
  49.     send "&6Autor skryptu: &7xCrysiSx" to the console
  50.     send "&6Wersja skryptu: &7{@wersja}" to the console
  51.     send "&c###################################################" to the console
  52.     send "" to the console
  53.     send "" to the console
  54. #=========================# Koniec kody skryptu #=========================#
  55.  
  56. #=========================# Chat skryptu #=========================#
  57. on chat:
  58.     set the player's display name to "&b[%{plvl.%player%}%] &7%player%&8: "
  59. #=========================# Koniec chatu skryptu #=========================#
  60.  
  61. #=========================# Komendy skryptu #=========================#
  62. command /lvl [<text>] [<text>]:
  63.     trigger:
  64.         if arg 1 is not set:
  65.             send "&3Dostepne komendy skryptu:"
  66.             send "&b/lvl sprawdz &8- &aPokazuje twoje statystyki kopania"
  67.             send "&b/lvl daj [nick] &8- &aDodaje 1 lvl danemu graczowi"
  68.             send "&b/lvl resetuj [nick] &8- &aResetuje lvl danemu graczowi"
  69.             send "&b/lvl przeladuj &8- &aInformacje o autorze skryptu"
  70.             send "&b/lvl autor &8- &aInformacje o autorze skryptu"
  71.         if arg 1 is "sprawdz":
  72.             send "&3Twoje statystyki kopania:"
  73.             send "&8* &aPunkty Kopania: &b%{lvl.%player%}%/{@pkt}"
  74.             send "&8* &aLvl Kopania: &b%{plvl.%player%}% (maksymalny lvl 100)"
  75.             stop
  76.         if arg 1 is "autor":
  77.             send "&6Nazwa skryptu: &7{@skname}"
  78.             send "&6Autor skryptu: &7xCrysiSx"
  79.             send "&6Wersja skryptu: &7{@wersja}"
  80.             stop
  81.         if arg 1 is "przeladuj":
  82.             if has permission "lvl.przeladuj":
  83.                 send "&cTrwa przeladowywanie skryptu..."
  84.                 execute console command "skript reload {@skname}"
  85.                 wait 2 second
  86.                 send "&cSkrypt zostal przeladowany!"
  87.                 stop
  88.         if arg 1 is "resetuj":
  89.             if arg 2 is not empty:
  90.                 if has permissions "lvl.resetuj":
  91.                     set {plvl.%arg 2%} to 0
  92.                     set {pplvl.%arg 2%} to true
  93.                     send "&aZresetowales lvl kopania graczowi &b%arg 2%"
  94.                 else:
  95.                     send "&4Blad: &cNie masz dostepu do tej komendy!"
  96.             else:
  97.                 send "&4Blad: &cPoprawne uzycie /lvl resetuj [nick]"
  98.         if arg 1 is "daj":
  99.             if arg 2 is not empty:
  100.                 if has permissions "lvl.daj":
  101.                     add 1 to {plvl.%arg 2%}
  102.                     send "&aDodales &b(1) &alvl graczowi &b%arg 2%"
  103.                 else:
  104.                     send "&4Blad: &cNie masz dostepu do tej komendy!"
  105.             else:
  106.                 send "&4Blad: &cPoprawne uzycie /lvl daj [nick]"
  107. #=========================# Koniec komend skryptu #=========================#
  108.  
  109. #=========================# Koniec całego skryptu #=========================#
Advertisement
Add Comment
Please, Sign In to add comment