patison234

SuperWand Beta v.1.1 [Skript 2.0.2]

Nov 13th, 2013
2,847
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 6.52 KB | None | 0 0
  1. # # # # # # # # # # # # # # # #
  2. # Script by PatisonPlayGames  #
  3. # Name: SuperWand             #
  4. # Version: Beta 1.0           #
  5. # Skript: 2.0.2               #
  6. # # # # # # # # # # # # # # # #
  7.  
  8.  
  9.  
  10. #=============================================#
  11. #  Licencja SuperWand by PatisonPlayGames!    #
  12. # + Nie zezwalam na:                          #
  13. # - Usuwanie tresci o autorze!                #
  14. # - Udostepnaniu skryptu innym!               #
  15. # - Podszywanie sie pod autora!               #
  16. # - Uzywanie kodu skryptu w swoich skryptach! #
  17. # - Zarabianie na skrypcie!                   #
  18. # + Zezwalam na:                              #
  19. # - Dodawanie kodu na swoja potrzebe!         #
  20. # - Modyfikowanie wiadomosci!                 #
  21. #=============================================#
  22.  
  23. options:
  24. # # # # # # # # # # # # # # #
  25. #                           #
  26. #       General Config      #
  27. #                           #
  28. # # # # # # # # # # # # # # #
  29.  
  30.  
  31.  
  32.     # Komenda uzywana w skrypcie:  
  33.     komenda: SuperWand
  34.     # Skroty do komendy wyzej: 
  35.     aliasy: sw, super, wand
  36.     # Tag wyswietlany przed wiadomosciami skryptu! 
  37.     tag: &8[&9SuperWand&8]
  38.     #Nazwa pliku sk.Zanim wgrasz plik i zmieniles nazwe zmien ja takze tutaj i dopiero wgraj plik!:
  39.     sk: SuperWand
  40.  
  41.  
  42.    
  43. # # # # # # # # # # # # # # #
  44. #                           #
  45. #       Crafting Config     #
  46. #                           #
  47. # # # # # # # # # # # # # # #
  48.  
  49.  
  50.  
  51.     # Itemki jakie wkladamy do pieca . Pierwszy to na gorze drugi to na dole miedzy itemami wstawiamy and!
  52.     itemki: 1 redstone and 1 stick
  53.     # Item ktory ma z tego wyjsc a takze item usuwany po teleportacji!
  54.     item: stick
  55.     # Wpisz tutaj pierwzy item jaki wkladasz do gornego slota pieca:
  56.     item1: 1 redstone
  57.     # Wpisz tutaj item jaki wkladasz do dolnego slota pieca:
  58.     item2: 1 stick
  59.    
  60.    
  61.    
  62. # # # # # # # # # # # # # #
  63. #                         #
  64. #       Permissions       #
  65. #                         #
  66. # # # # # # # # # # # # # #
  67.  
  68.  
  69.  
  70.     # Wiadomosc przy braku uprawnienia:
  71.     permission: &4Nie masz uprawnien by uzywac tej komendy!
  72.  
  73.  
  74.    
  75. # Autor Config
  76.     version: Beta 1.1
  77.    
  78. # Burn Item
  79.  
  80. on rightclick on furnace:
  81.     if {transform.%clicked block%} is less than 100:
  82.         stop
  83.     if {transform.%clicked block%} is more than 99:
  84.         clear {transform.%clicked block%}
  85.     if {transform.%clicked block%} is not set:
  86.         loop 100 times:
  87.             wait 2 seconds
  88.             if clicked block contains {@itemki}:
  89.                 wait 1 tick
  90.                 add 1 {@item} of infinity 10 named "&4Teleport na spawn!" to clicked block
  91.                 wait 1 tick
  92.                 remove {@item1} from clicked block
  93.                 remove {@item2} from clicked block
  94.                
  95. # Teleportation ...
  96.  
  97. on rightclick with a stick of infinity 10:
  98.     set {_pos} to location of player
  99.     send "{@tag}&7Czekaj &65 sekund&7, nie wolno Ci sie ruszyc!"
  100.     if {_pos} isn't location of player:
  101.         send "{@tag}&cWykryto ruch, teleportacja anulowana!"
  102.         stop
  103.     wait 1 second
  104.     if {_pos} isn't location of player:
  105.         send "{@tag}&cWykryto ruch, teleportacja anulowana!"
  106.         stop
  107.     wait 1 second
  108.     if {_pos} isn't location of player:
  109.         send "{@tag}&cWykryto ruch, teleportacja anulowana!"
  110.         stop
  111.     wait 1 second
  112.     if {_pos} isn't location of player:
  113.         send "{@tag}&cWykryto ruch, teleportacja anulowana!"
  114.         stop
  115.     wait 1 second
  116.     if {_pos} isn't location of player:
  117.         send "{@tag}&cWykryto ruch, teleportacja anulowana!"
  118.         stop
  119.     wait 1 second
  120.     if {_pos} is location of player:
  121.         remove 1 {@item} of infinity 10 from the player
  122.         teleport player to {teleport.spawn}
  123.         send "{@tag}&7Teleportacja..."
  124.         stop
  125.     else:
  126.         send "{@tag}&cWykryto ruch, teleportacja anulowana!"
  127.         stop
  128.        
  129. # Basic Commands
  130.  
  131. command /{@komenda} [<text>]:
  132.     aliases: {@aliasy}
  133.     trigger:
  134.         if arg 1 is not set:
  135.             send "&7============{@tag}================"
  136.             send "&6/{@komenda} - &aPokazuje liste komend!"
  137.             send "&6/{@komenda} setspawn - &a Ustawia spawn dla teleportacji!"
  138.             send "&6/{@komenda} reload - &aPrzeladowywuje skrypt!"
  139.             send "&6/{@komenda} wersja - &aPokazuje wersje skryptu!"
  140.             send "&6/{@komenda} autor - &aNotka o autorze!"
  141.             send "&7=================================="
  142.             stop
  143.         if arg 1 is "help" or "pomoc":
  144.             send "&7============{@tag}================"
  145.             send "&6/{@komenda} - &aPokazuje liste komend!"
  146.             send "&6/{@komenda} setspawn - &a Ustawia spawn dla teleportacji!"
  147.             send "&6/{@komenda} reload - &aPrzeladowywuje skrypt!"
  148.             send "&6/{@komenda} wersja - &aPokazuje wersje skryptu!"
  149.             send "&6/{@komenda} autor - &aNotka o autorze!"
  150.             send "&7=================================="
  151.             stop
  152.         if arg 1 is "setspawn" or "ustawspawn":
  153.             if player has permission "superwand.setspawn" or "superwand.admin":
  154.                 set {teleport.spawn} to location of player
  155.                 send "{@tag}&7Ustawiono spawn dla teleportacji !"
  156.                 stop
  157.             else:
  158.                 send "{@tag} {@permission}"
  159.                 stop
  160.         if arg 1 is "reload" or "przeladuj":
  161.             if player has permission "superwand.reload" or "superwand.admin":
  162.                 execute console command "/sk reload {@sk}"
  163.                 send "{@tag} &aPrzeladowano..."
  164.                 stop
  165.             else:
  166.                 send "{@tag} {@permission}"
  167.         if arg 1 is "wersja" or "version":
  168.             send "&7----------------------------------------------"
  169.             send " &8Nazwa: &aSuperWand"
  170.             send " &8Wersja: &a&n{@version}"
  171.             send "&7----------------------------------------------"
  172.             stop
  173.         if arg 1 is "author" or "autor":
  174.             send "&7----------------------------------------------"
  175.             send " &8Autor: &aPatisonPlayGames"
  176.             send " &8Nazwa: &aSuperWand"
  177.             send "&8 &8&nYou&4&nTube:&a &nwww.youtube.com/PatisonPlayGames"
  178.             send "&7----------------------------------------------"
  179.             stop
  180.         if arg 1 is not "setspawn" or "ustawspawn" or "help" or "pomoc" or "reload" or "przeladuj" or "wersja" or "version" or "author" or "autor":
  181.             send "{@tag} &4Nie ma takiej komendy! &aWpisz /{@komenda}!"
  182.             stop
  183.            
  184. #Config Load
  185.  
  186. on skript start:
  187.     send "&8SuperWand wymaga wersji Skript 2.0.2 ..." to the console
  188.     wait 1 seconds
  189.     send "&8Serwer pracuje na wersji: %skript version%" to the console
  190.     send "" to the console
  191.     send "&8--------------------------------------------------------------" to the console
  192.     send "&8|                                                            |" to the console
  193.     send "&8|                  Enable &9SuperWand                      &8|" to the console
  194.     send "&8|                                                            |" to the console
  195.     send "&8--------------------------------------------------------------" to the console
  196.     send "" to the console
  197.     send "&8Autor: &ePatisonPlayGames" to the console
  198.     send "&8Version: &7{@version}" to the console
  199.     send "" to the console
Advertisement
Add Comment
Please, Sign In to add comment