Guest User

Untitled

a guest
Jan 24th, 2014
722
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.59 KB | None | 0 0
  1. #------------------------------------------------------#
  2. #  Nie zezwalam na:                                    #
  3. #- Zarabianie na skrypcie                              #
  4. #- Przerabianie/modyfikowanie                          #
  5. #- Wykorzystywanie kodu skryptu w swoich skryptach     #
  6. #- Udostepnianiu skryptu innym bez zgody autora        #
  7. #- Usuwanie tresci zawierajacych iformacje autora      #
  8. #- Podszywanie sie pod autora                          #
  9. # Zezwalam na:                                         #
  10. # - Modyfikowanie wiadomosci skryptu na wlasne         #
  11. #   potrzeby                                           #
  12. #------------------------------------------------------#
  13.  
  14. Options:
  15.     sk: CobbleManager
  16.     komenda: cobblem
  17.     permission: &4Nie masz uprawnien by uzywac tej komendy!
  18.     tag: &6&lCobble &7>
  19.     alias: cm  
  20.     stone: stone
  21.     set: air
  22.  
  23. Variables:
  24.     {cobble.%player%.status} = true
  25.     {cobble.%player%.wykopany} = 0
  26.     {cobble.%player%.lvl} = 0
  27.  
  28. command /{@komenda} [<text>]:
  29.     aliases: {@alias}
  30.     trigger:
  31.         if arg 1 is not set:
  32.             send "&8===============&2CobbleManager&8===============" to player
  33.             send "&a&l1 &7>&9 /cobblem wylacz -&6 Wylacza Drop Cobbla." to player
  34.             send "&a&l2 &7>&9 /cobblem wlacz -&6 Wlacza Drop Cobbla." to player
  35.             send "&a&l3 &7>&9 /cmsprawdz [GRACZ] -&6 Pokazuje Czy Gracz Ma ON/OFF Drop Cobbla." to player
  36.             send "&a&l4 &7>&9 /cmlvl [GRACZ] -&6 Pokazuje Poziom Gracza I Ile Wykopal Stone'a." to player
  37.             send "&a&l5 &7>&9 /cobblem autor -&6 Pokazuje Autora Skryptu." to player
  38.        
  39.         if arg 1 is "pomoc" or "help":
  40.             send "&8===============&2CobbleManager&8===============" to player
  41.             send "&a&l1 &7>&9 /cobblem wylacz -&6 Wylacza Drop Cobbla." to player
  42.             send "&a&l2 &7>&9 /cobblem wlacz -&6 Wlacza Drop Cobbla." to player
  43.             send "&a&l3 &7>&9 /cmsprawdz [GRACZ] -&6 Pokazuje Czy Gracz Ma ON/OFF Drop Cobbla." to player
  44.             send "&a&l4 &7>&9 /cmlvl [GRACZ] -&6 Pokazuje Poziom Gracza I Ile Wykopal Stone'a." to player
  45.             send "&a&l4 &7>&9 /cobblem autor -&6 Pokazuje Autora Skryptu." to player              
  46.        
  47.         if arg 1 is "wylacz" or "off":
  48.             if player has permission "cm.uzywanie":
  49.                 set {cobble.%player%.status} to false
  50.                 send "{@tag} &cWylaczyles Drop Cobbla" to player              
  51.             else:
  52.                 send "{@tag} {@permission}" to player              
  53.         if arg 1 is "wlacz" or "on":
  54.             if player has permission "cm.uzywanie":
  55.                 set {cobble.%player%.status} to true
  56.                 send "{@tag} &aWlaczyles Drop Cobbla" to player
  57.             else:
  58.                 send "{@tag} {@permission}" to player
  59.         if arg 1 is "autor":
  60.             send "&8===============&2CobbleManager&8===============" to player
  61.             send "&a&lAutor &7>&6 Autorem Skryptu Jest &5xBaq &6(&5skillerek&6)." to player
  62.        
  63.         if arg 1 is "reload" or "przeladuj":
  64.             if player has permission "cm.reload":
  65.                 execute console command "/sk reload {@sk}"
  66.                 send "{@tag} &aPrzeladowano..."
  67.                 stop
  68.             else:
  69.                 send "{@tag} {@permission}" to player
  70.  
  71. command /cmsprawdz <text>:
  72.     usage: &cPoprawne Uzycie Komendy To &a/cmsprawdz [GRACZ]
  73.     trigger:
  74.         if {cobble.%argument 1%.status} is false:
  75.             send "{@tag} &a%player% &cMa Wylaczony Drop Cobbla" to player
  76.         if {cobble.%argument 1%.status} is true:
  77.             send "{@tag} &a%player% &cMa Wlaczony Drop Cobbla" to player
  78.  
  79. command /cmlvl [<player>]:
  80.     usage: &cPoprawne Uzycie Komendy To &a/cmlvl [GRACZ]
  81.     trigger:
  82.         send "{@tag} &cGracz &a%argument 1% &c Ma &a %{cobble.%argument 1%.lvl}% &cLvL." to player
  83.         send "{@tag} &cGracz &a%argument 1% &cWykopal &a %{cobble.%argument 1%.wykopany}% &cStone'a." to player
  84.  
  85. on break of stone:
  86.     if {cobble.%player%.status} is false:
  87.         cancel event
  88.         block is {@stone}
  89.         set block to {@set}
  90.         stop
  91.     if {cobble.%player%.status} is true:
  92.         stop
  93.  
  94. on break of stone:
  95.     add 1 to {cobble.%player%.wykopany}
  96.     if {cobble.%player%.wykopany} is 300:
  97.         set {cobble.%player%.lvl} to 1
  98.         send "{@tag} &cGratulacje! Awansowales Na &a1 &cPoziom."
  99.     if {cobble.%player%.wykopany} is 600:
  100.         set {cobble.%player%.lvl} to 2
  101.         send "{@tag} &cGratulacje! Awansowales Na &a2 &cPoziom."
  102.     if {cobble.%player%.wykopany} is 900:
  103.         set {cobble.%player%.lvl} to 3
  104.         send "{@tag} &cGratulacje! Awansowales Na &a3 &cPoziom."
  105.     if {cobble.%player%.wykopany} is 1200:
  106.         set {cobble.%player%.lvl} to 4
  107.         send "{@tag} &cGratulacje! Awansowales Na &a4 &cPoziom."
  108.     if {cobble.%player%.wykopany} is 1500:
  109.         set {cobble.%player%.lvl} to 5
  110.         send "{@tag} &cGratulacje! Awansowales Na &a5 &cPoziom."
  111.     if {cobble.%player%.wykopany} is 1800:
  112.         set {cobble.%player%.lvl} to 6
  113.         send "{@tag} &cGratulacje! Awansowales Na &a6 &cPoziom."
  114.  
  115. on join:
  116.     set {cobble.%player%.status} to true
  117.     stop
  118.  
  119. on chat:
  120.     set player's display name to "&3%{cobble.%player%.lvl}% &8> &7%player%"
  121.    if {cobble.%player%.lvl} is 0:
  122.        set player's display name to "&7%player%"
  123.  
  124. on Skript start:
  125.     send "&7|-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=|" to the console
  126.     send "&7|                 &5CobbleManager                &7|" to the console
  127.     send "&7|-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=|" to the console
Advertisement
Add Comment
Please, Sign In to add comment