patison234

INukes

Feb 15th, 2014
731
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 5.80 KB | None | 0 0
  1. # # # # # # # # # # # # # # # #
  2. # Script by PatisonPlayGames  #
  3. # Name: INukes                #
  4. # Version: Beta 1.0           #
  5. # Skript: 2.0.2/2.1           #
  6. # # # # # # # # # # # # # # # #
  7.  
  8.  
  9.  
  10. #=============================================#
  11. #  Licencja INukes 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.     # Czas po jakim bomba wybucha!:
  32.     czas: 5
  33.  
  34.     # Tag wyswietlany przed wiadomosciami skryptu!
  35.     tag: &8[&6INukes&8]
  36.  
  37.     # Wiadomosc przy braku uprawnien:
  38.     permission: &cNie masz uprawnien!
  39.  
  40.  
  41. on script load:
  42.     register new shaped recipe for nameditemstack from "tnt;&aBomba Nuklearna;&9Totalna masakra!" using none, diamond, none, diamond, tnt, diamond, none, diamond, none
  43.     register new shaped recipe for nameditemstack from "tnt;&aBomba Ogniowa;&9Pieklo wszedzie pieklo!" using none, 263, none, 263, tnt, 263, none, 263, none
  44.     register new shaped recipe for nameditemstack from "tnt;&aBomba Moba;&9Apokalipsa!" using none, string, none, bone, tnt, gunpowder, none, 367, none
  45.     register new shaped recipe for nameditemstack from "tnt;&aBomba Dymna;&9Czas na znikanie!!" using none, fire charge, none, fire charge, tnt, fire charge, none, fire charge, none
  46.     register new shaped recipe for nameditemstack from "tnt;&aBomba Piorun;&9Zemsta Zeusa!" using none, ghast tear, none, ghast tear, tnt, ghast tear, none, ghast tear, none
  47. on place of tnt:
  48.     if name of player's tool is  "&aBomba Nuklearna":
  49.         wait {@czas} seconds
  50.         loop blocks in radius 10 around event-location:
  51.             if chance of 70%:
  52.                 set loop-block to air
  53.         set event-block to air
  54.         create an explosion of force 10 at the event-location
  55.  
  56. on place of tnt:
  57.     if name of player's tool is "&aBomba Ogniowa":
  58.         wait {@czas} seconds
  59.         loop blocks in radius 5 of event-location:
  60.             if chance of 70%:
  61.                 set loop-block to fire
  62.         set event-block to air
  63.         create a fake explosion at the event-location  
  64.  
  65. on place of tnt:
  66.     if name of player's tool is "&aBomba Moba":
  67.         wait {@czas} seconds
  68.         loop blocks in radius 5 of event-location:
  69.             if chance of 70%:
  70.                 if chance of 3%:
  71.                     spawn 1 zombie at location of loop-block
  72.                 if chance of 3%:
  73.                     spawn 1 creeper at location of loop-block
  74.                 if chance of 3%:
  75.                     spawn 1 skeleton at location of loop-block
  76.                 if chance of 3%:
  77.                     spawn 1 spider at location of loop-block
  78.         set event-block to air
  79.         create a fake explosion at the event-location      
  80.  
  81.  
  82.  
  83. on place of tnt:
  84.     if name of player's tool is "&aBomba Dymna":
  85.         wait {@czas} seconds
  86.         loop blocks in radius 5 of event-location:
  87.             if chance of 70%:              
  88.                 play 150 of effect "smoke" with data 1 at the event-location
  89.         loop players in radius 5 around event-location:
  90.             apply invisibility to the loop-player for 5 seconds
  91.         set event-block to air
  92.         stop
  93.  
  94. on place of tnt:
  95.     if name of player's tool is "&aBomba Piorun":
  96.         wait {@czas} seconds
  97.         loop blocks in radius 5 of event-location:
  98.             if chance of 10%:              
  99.                 strike lightning at loop-block
  100.         set event-block to air
  101.         stop
  102.    
  103.  
  104. command /inukes [<text>] [<text>]:
  105.     trigger:
  106.         if arg 1 is not set:
  107.             send "&8======="
  108.             send "&6/inukes - &aPokazuje wszystkie komendy!"
  109.             send "&6/inukes give [piorun/mob/nuklear/ogien/dym] - &aDaje odpowiednią bombę"
  110.             send "&6/inukes reload"
  111.             send "&8======="
  112.         if arg 1 is "give":
  113.             if player has permission "inukes.give" or "inukes.*":
  114.                 if arg 2 is "piorun":
  115.                     give tnt named "&aBomba Piorun" to the player
  116.                     send "{@tag} &aOtrzymano bombe!"
  117.                     stop
  118.                 if arg 2 is "mob":
  119.                     give tnt named "&aBomba Mob" to the player
  120.                     send "{@tag} &aOtrzymano bombe!"
  121.                     stop
  122.                 if arg 2 is "nuklear":
  123.                     give tnt named "&aBomba Nuklearna" to the player
  124.                     send "{@tag} &aOtrzymano bombe!"
  125.                     stop
  126.                 if arg 2 is "ogien":
  127.                     give tnt named "&aBomba Ogniowa" to the player
  128.                     send "{@tag} &aOtrzymano bombe!"
  129.                     stop
  130.                 if arg 2 is "dym":
  131.                     give tnt named "&aBomba Dymna" to the player
  132.                     send "{@tag} &aOtrzymano bombe!"
  133.                     stop
  134.             else:
  135.                 send "{@tag} {@permission}"
  136.                 stop
  137.         if arg 1 is "reload":
  138.             if player has permission "inukes.reload" or "inukes.*":
  139.                 execute console command "/sk reload %script%"
  140.                 send "{@tag} &aPrzeladowano!"
  141.                 stop
  142.             else:
  143.                 send "{@tag} {@permission}"
  144.                 stop
  145.  
  146. on skript start:
  147.     send "&8INukes wymaga wersji Skript 2.0.2/2.1 ..." to the console
  148.     wait 1 seconds
  149.     send "&8Serwer pracuje na wersji: %skript version%" to the console
  150.     send "" to the console
  151.     send "&8--------------------------------------------------------------" to the console
  152.     send "&8|                                                            |" to the console
  153.     send "&8|                  Enable &9INukes                         &8|" to the console
  154.     send "&8|                                                            |" to the console
  155.     send "&8--------------------------------------------------------------" to the console
  156.     send "" to the console
  157.     send "&8Autor: &ePatisonPlayGames" to the console
  158.     send "" to the console
  159.  
  160.  
  161. #------------------------------------------------ End of Script / Thanks for Use ---------------------------------#
  162. #-------------------------------- © by PationPlayGames - Author / YouTube www.youtube.com/PatisonPlayGames -------#
Advertisement
Add Comment
Please, Sign In to add comment