patison234

FourSeasons Skript 2.1/2.0.2

Jan 31st, 2014
790
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 7.74 KB | None | 0 0
  1. # # # # # # # # # # # # # # # #
  2. # Script by PatisonPlayGames  #
  3. # Name: FourSeasons           #
  4. # Version: Beta 1.0           #
  5. # Skript: 2.0.2 /2.1          #
  6. # # # # # # # # # # # # # # # #
  7.  
  8.  
  9.  
  10. #=============================================#
  11. #  Licencja FourSeasons 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.     # Tag wyświetlany przed wiadomościami skryptu:
  32.     tag: &8[&6FourSeasons&8]
  33.    
  34.     #Komenda używana w skrypcie:
  35.     komenda: seasons
  36.    
  37.     #Skróty do komendy wyżej:
  38.     aliasy: fs, s, four
  39.    
  40.     #Nazwa pliku sk.Zanim wgrasz plik i zmieniles nazwe zmien ja takze tutaj i dopiero wgraj plik!:
  41.     sk: FourSeasons
  42.    
  43.    
  44. # # # # # # # # # # # # # #
  45. #                         #
  46. #       Permissions       #
  47. #                         #
  48. # # # # # # # # # # # # # #
  49.  
  50.  
  51.     # Wiadomośc przy braku uprawnienia:
  52.     permission: &cNie masz uprawnien by używać tej komendy!
  53.    
  54.    
  55.    
  56. # # # # # # # # # # # # # #
  57. #                         #
  58. #   Temperature Config    #
  59. #                         #
  60. # # # # # # # # # # # # # #
  61.  
  62.     # Max. temperatura w zimie:
  63.     wintermax: 4
  64.    
  65.     # Min. temperatura w zimie:
  66.     wintermin: -30
  67.    
  68.     # Max. temperatura w jesien:
  69.     autumnmax: 10
  70.    
  71.     # Min. temperatura w jesien:
  72.     autumnmin: -5
  73.    
  74.     # Max. temperatura w lecie:
  75.     summermax: 40
  76.    
  77.     # Min. temperatura w lecie:
  78.     summermin: 10
  79.    
  80.     #Max. temperatura w wiosne:
  81.     springmax: 15
  82.    
  83.     #Min. temperatura w wiosne:
  84.     springmin: 2
  85.    
  86. # Script Code
  87.  
  88. command /{@komenda} [<text>] [<text>]:
  89.     aliases: {@aliasy}
  90.     trigger:
  91.         if arg 1 is not set:
  92.             if player has permission "fourseason.help" or "fourseason.*":
  93.                 send "&8========{@tag}&8=========="
  94.                 send "&4     Admin Commands    "
  95.                 send "&6/{@komenda} - &aPokazuje liste komend!"
  96.                 send "&6/{@komenda} temp - &aPokazuje aktualna temperature!"
  97.                 send "&6/{@komenda} score off - &awylacza scoreboarda!"
  98.                 send "&6/{@komenda} score on - &aWlacza scoreboarda!"
  99.                 send "&6/{@komenda} autor - &apokazuje autora skryptu!"
  100.                 send "&6/{@komenda} reload - &aPrzeladowywuje skrypt!"
  101.                 send "&8=========================="
  102.                 stop
  103.             else:
  104.                 send "&8========{@tag}&8=========="
  105.                 send "&4    Player Commands       "
  106.                 send "&6/{@komenda} - &aPokazuje liste komend!"
  107.                 send "&6/{@komenda} temp - &aPokazuje aktualna temperature!"
  108.                 send "&6/{@komenda} autor - &apokazuje autora skryptu!"
  109.                 send "&8=========================="
  110.                 stop
  111.         if arg 1 is "help" or "pomoc":
  112.             if player has permission "fourseason.help" or "fourseason.*":
  113.                 send "&8========{@tag}&8=========="
  114.                 send "&4     Admin Commands       "
  115.                 send "&6/{@komenda} - &aPokazuje liste komend!"
  116.                 send "&6/{@komenda} temp - &aPokazuje aktualna temperature!"
  117.                 send "&6/{@komenda} score off - &awylacza scoreboarda!"
  118.                 send "&6/{@komenda} score on - &aWlacza scoreboarda!"
  119.                 send "&6/{@komenda} autor - &apokazuje autora skryptu!"
  120.                 send "&6/{@komenda} reload - &aPrzeladowywuje skrypt!"
  121.                 send "&8=========================="
  122.                 stop
  123.             else:
  124.                 send "&8========{@tag}&8=========="
  125.                 send "&4    Player Commands       "
  126.                 send "&6/{@komenda} - &aPokazuje liste komend!"
  127.                 send "&6/{@komenda} temp - &aPokazuje aktualna temperature!"
  128.                 send "&6/{@komenda} autor - &apokazuje autora skryptu!"
  129.                 send "&8=========================="
  130.                 stop
  131.         if arg 1 is "autor":
  132.             send "&7----------------------------------------------"
  133.             send " &8Autor: &aPatisonPlayGames"
  134.             send " &8Nazwa: &aFourSeason"
  135.             send "&8 &8&nYou&4&nTube:&a &nwww.youtube.com/PatisonPlayGames"
  136.             send "&7----------------------------------------------"
  137.             stop
  138.         if arg 1 is "temp" or "temperatura":
  139.             send "{@tag} &aAktualna temperatura: &c%{season.temp}%"
  140.             stop
  141.         if arg 1 is "score":
  142.             if arg 2 is "on":
  143.                 if player has permission "season.*" or "season.score.on":
  144.                     set {season.score} to true
  145.                     send "{@tag} &aWlaczano scoreboard!"
  146.                     stop
  147.                 else:
  148.                     send "{@tag} {@permission}"
  149.                     stop
  150.             if arg 2 is "off":
  151.                 if player has permission "season.*" or "season.score.off":
  152.                     set {season.score} to false
  153.                     send "{@tag} &aWylaczano scoreboard!"
  154.                     loop all players:
  155.                         display board named "reset" to loop-player
  156.                     stop
  157.                 else:
  158.                     send "{@tag} {@permission}"
  159.                     stop
  160.         if arg 1 is "reload" or "przeladuj":
  161.             if player has permission "season.*" or "season.reload":
  162.                 execute console command "/sk reload {@sk}"
  163.                 send "{@tag} &aPrzeladowano!"
  164.                 stop
  165.             else:
  166.                 send "{@tag} {@permission}"
  167.                 stop
  168.                
  169.                
  170. every 2 seconds:
  171.     loop all players:
  172.         if {season.score} is true:
  173.             display board named "&6Season" to loop-player
  174.             make score "&aTemp:&9" in board of loop-player to {season.temp}
  175.             make score "&a%{season.s}%" in board of loop-player to {season.season}
  176.             move display of loop-player to "sidebar"
  177.            
  178. every minecraft day:
  179.     add 1 to {season.days}
  180.     if {season.days} is 30:
  181.         add 1 to {season.month}
  182.         set {season.days} to 0
  183.     if {season.month} is 1:
  184.         set {season.winter} to false
  185.         set {season.autumn} to false
  186.         set {season.summer} to false
  187.         set {season.spring} to true
  188.     if {season.month} is 2:
  189.         set {season.winter} to false
  190.         set {season.autumn} to false
  191.         set {season.summer} to true
  192.         set {season.spring} to false
  193.     if {season.month} is 3:
  194.         set {season.winter} to false
  195.         set {season.autumn} to true
  196.         set {season.summer} to false
  197.         set {season.spring} to false
  198.     if {season.month} is 4:
  199.         set {seasons.month} to 0
  200.         broadcast "{@tag} &aNadszedl nowy rok wszystkiego najlepszego!"
  201.         set {season.winter} to true
  202.         set {season.autumn} to false
  203.         set {season.summer} to false
  204.         set {season.spring} to false
  205.                
  206. every 1 minutes:
  207.     if {season.winter} is true:
  208.         set {_winter} to a random integer between {@wintermin} and {@wintermax}
  209.         set {season.temp} to {_winter}
  210.         stop
  211.     if {season.autumn} is true:
  212.         set {_autumn} to a random integer between {@autumnmin} and {@autumnmax}
  213.         set {season.temp} to {_autumn}
  214.         stop
  215.     if {season.summer} is true:
  216.         set {_summer} to a random integer between {@summermin} and {@summermax}
  217.         set {season.temp} to {_summer}
  218.         stop
  219.     if {season.spring} is true:
  220.         set {_spring} to a random integer between {@springmin} and {@springmax}
  221.         set {season.temp} to {_spring}
  222.         stop
  223.  
  224.  
  225. every 1 seconds:
  226.     if {season.winter} is true:
  227.         set {season.season} to 1
  228.         set {season.s} to "Zima"
  229.         stop
  230.     if {season.autumn} is true:
  231.         set {season.season} to 2
  232.         set {season.s} to "Jesien"
  233.         stop
  234.     if {season.summer} is true:
  235.         set {season.season} to 3
  236.         set {season.s} to "Lato"
  237.         stop
  238.     if {season.spring} is true:
  239.         set {season.season} to 4
  240.         set {season.s} to "Wiosna"
  241.         stop
  242.  
  243. every 30 minutes:
  244.     loop all players:
  245.         if {season.temp} is smaller than {@wintermax}:
  246.             if loop-player's chestplate is empty:
  247.                 apply poison 2 to loop-player for 1 minutes
  248.                 stop
  249.         if {season.temp} is greater than {@summermin}:
  250.             if loop-player's helmet is empty:
  251.                 apply nausea 2 to loop-player for 1 minutes
  252.                 stop
  253.  
  254. #------------------------------------------------ End of Script / Thanks for Use ---------------------------------#
  255. #-------------------------------- © by PationPlayGames - Author / YouTube www.youtube.com/PatisonPlayGames -------#
Advertisement
Add Comment
Please, Sign In to add comment